@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
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
@@ -1431,6 +1431,7 @@ function getAlternatingColorsPalette(quantity) {
|
|
|
1431
1431
|
else return ALTERNATING_COLORS_XL;
|
|
1432
1432
|
}
|
|
1433
1433
|
var ColorGenerator = class {
|
|
1434
|
+
preferredColors;
|
|
1434
1435
|
currentColorIndex = 0;
|
|
1435
1436
|
palette;
|
|
1436
1437
|
constructor(paletteSize, preferredColors = []) {
|
|
@@ -1638,6 +1639,7 @@ const _t = function(s, ...values) {
|
|
|
1638
1639
|
return sprintf(_translate(s), ...values);
|
|
1639
1640
|
};
|
|
1640
1641
|
var LazyTranslatedString = class extends String {
|
|
1642
|
+
values;
|
|
1641
1643
|
constructor(str, values) {
|
|
1642
1644
|
super(str);
|
|
1643
1645
|
this.values = values;
|
|
@@ -2796,6 +2798,8 @@ const CellErrorType = {
|
|
|
2796
2798
|
};
|
|
2797
2799
|
const errorTypes = new Set(Object.values(CellErrorType));
|
|
2798
2800
|
var EvaluationError = class {
|
|
2801
|
+
message;
|
|
2802
|
+
value;
|
|
2799
2803
|
constructor(message = _t("Error"), value = CellErrorType.GenericError) {
|
|
2800
2804
|
this.message = message;
|
|
2801
2805
|
this.value = value;
|
|
@@ -2828,6 +2832,7 @@ var UnknownFunctionError = class extends EvaluationError {
|
|
|
2828
2832
|
}
|
|
2829
2833
|
};
|
|
2830
2834
|
var SplillBlockedError = class extends EvaluationError {
|
|
2835
|
+
errorOriginPosition;
|
|
2831
2836
|
constructor(message = _t("Spill range is not empty"), errorOriginPosition) {
|
|
2832
2837
|
super(message, CellErrorType.SpilledBlocked);
|
|
2833
2838
|
this.errorOriginPosition = errorOriginPosition;
|
|
@@ -6460,6 +6465,8 @@ const selectPastedZone = (selection, sourceZones, pastedZones) => {
|
|
|
6460
6465
|
//#endregion
|
|
6461
6466
|
//#region src/clipboard_handlers/abstract_clipboard_handler.ts
|
|
6462
6467
|
var ClipboardHandler = class {
|
|
6468
|
+
getters;
|
|
6469
|
+
dispatch;
|
|
6463
6470
|
constructor(getters, dispatch) {
|
|
6464
6471
|
this.getters = getters;
|
|
6465
6472
|
this.dispatch = dispatch;
|
|
@@ -8894,6 +8901,7 @@ var DependencyContainer = class extends EventBus {
|
|
|
8894
8901
|
}
|
|
8895
8902
|
};
|
|
8896
8903
|
var StoreFactory = class {
|
|
8904
|
+
get;
|
|
8897
8905
|
pendingBuilds = /* @__PURE__ */ new Set();
|
|
8898
8906
|
constructor(get) {
|
|
8899
8907
|
this.get = get;
|
|
@@ -8938,6 +8946,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
8938
8946
|
return MetaStore;
|
|
8939
8947
|
}
|
|
8940
8948
|
var DisposableStore = class {
|
|
8949
|
+
get;
|
|
8941
8950
|
disposeCallbacks = [];
|
|
8942
8951
|
constructor(get) {
|
|
8943
8952
|
this.get = get;
|
|
@@ -18621,6 +18630,7 @@ function insertTokenAtArgStartingPosition(tokenAtCursor, value) {
|
|
|
18621
18630
|
//#endregion
|
|
18622
18631
|
//#region src/formulas/code_builder.ts
|
|
18623
18632
|
var FunctionCodeBuilder = class {
|
|
18633
|
+
scope;
|
|
18624
18634
|
code = "";
|
|
18625
18635
|
constructor(scope = new Scope()) {
|
|
18626
18636
|
this.scope = scope;
|
|
@@ -18636,6 +18646,8 @@ var FunctionCodeBuilder = class {
|
|
|
18636
18646
|
}
|
|
18637
18647
|
};
|
|
18638
18648
|
var FunctionCodeImpl = class {
|
|
18649
|
+
scope;
|
|
18650
|
+
returnExpression;
|
|
18639
18651
|
code;
|
|
18640
18652
|
constructor(scope, code, returnExpression) {
|
|
18641
18653
|
this.scope = scope;
|
|
@@ -20606,6 +20618,7 @@ function getScorecardConfiguration({ width, height }, runtime) {
|
|
|
20606
20618
|
}, runtime).computeDesign();
|
|
20607
20619
|
}
|
|
20608
20620
|
var ScorecardChartConfigBuilder = class {
|
|
20621
|
+
runtime;
|
|
20609
20622
|
context;
|
|
20610
20623
|
width;
|
|
20611
20624
|
height;
|
|
@@ -24266,6 +24279,10 @@ var GaugeChartComponent = class extends _odoo_owl.Component {
|
|
|
24266
24279
|
* Animation interpolating values using the ease-out quartic curve function (chartJS default easing)
|
|
24267
24280
|
*/
|
|
24268
24281
|
var Animation = class {
|
|
24282
|
+
startValue;
|
|
24283
|
+
endValue;
|
|
24284
|
+
duration;
|
|
24285
|
+
callback;
|
|
24269
24286
|
startTime = void 0;
|
|
24270
24287
|
animationFrameId = null;
|
|
24271
24288
|
constructor(startValue, endValue, duration, callback) {
|
|
@@ -26592,6 +26609,7 @@ function getMaxFigureSize(getters, figureSize) {
|
|
|
26592
26609
|
* Represent a raw XML string
|
|
26593
26610
|
*/
|
|
26594
26611
|
var XMLString = class {
|
|
26612
|
+
xmlString;
|
|
26595
26613
|
/**
|
|
26596
26614
|
* @param xmlString should be a well formed, properly escaped XML string
|
|
26597
26615
|
*/
|
|
@@ -27427,6 +27445,11 @@ var Popover = class extends _odoo_owl.Component {
|
|
|
27427
27445
|
}
|
|
27428
27446
|
};
|
|
27429
27447
|
var PopoverPositionContext = class {
|
|
27448
|
+
anchorRect;
|
|
27449
|
+
containerRect;
|
|
27450
|
+
propsMaxSize;
|
|
27451
|
+
spreadsheetOffset;
|
|
27452
|
+
lastPosition;
|
|
27430
27453
|
constructor(anchorRect, containerRect, propsMaxSize, spreadsheetOffset, lastPosition) {
|
|
27431
27454
|
this.anchorRect = anchorRect;
|
|
27432
27455
|
this.containerRect = containerRect;
|
|
@@ -30722,6 +30745,7 @@ var AbstractComposerStore = class extends SpreadsheetStore {
|
|
|
30722
30745
|
//#endregion
|
|
30723
30746
|
//#region src/components/composer/standalone_composer/standalone_composer_store.ts
|
|
30724
30747
|
var StandaloneComposerStore = class extends AbstractComposerStore {
|
|
30748
|
+
args;
|
|
30725
30749
|
constructor(get, args) {
|
|
30726
30750
|
super(get);
|
|
30727
30751
|
this.args = args;
|
|
@@ -31773,6 +31797,7 @@ var DOMDndHelper = class {
|
|
|
31773
31797
|
}
|
|
31774
31798
|
};
|
|
31775
31799
|
var ContainerWrapper = class {
|
|
31800
|
+
el;
|
|
31776
31801
|
constructor(el) {
|
|
31777
31802
|
this.el = el;
|
|
31778
31803
|
}
|
|
@@ -31844,6 +31869,10 @@ var FocusStore = class {
|
|
|
31844
31869
|
* This plugin handles this internal state.
|
|
31845
31870
|
*/
|
|
31846
31871
|
var SelectionInputStore = class extends SpreadsheetStore {
|
|
31872
|
+
initialRanges;
|
|
31873
|
+
inputHasSingleRange;
|
|
31874
|
+
colors;
|
|
31875
|
+
disabledRanges;
|
|
31847
31876
|
mutators = [
|
|
31848
31877
|
"resetWithRanges",
|
|
31849
31878
|
"focusById",
|
|
@@ -40665,13 +40694,30 @@ var PivotRuntimeDefinition = class {
|
|
|
40665
40694
|
break;
|
|
40666
40695
|
}
|
|
40667
40696
|
return {
|
|
40697
|
+
/**
|
|
40698
|
+
* Get the id of the measure, as it is stored in the pivot formula
|
|
40699
|
+
*/
|
|
40668
40700
|
id: measure.id,
|
|
40701
|
+
/**
|
|
40702
|
+
* Display name of the measure
|
|
40703
|
+
* e.g. "__count" -> "Count", "amount_total" -> "Total Amount"
|
|
40704
|
+
*/
|
|
40669
40705
|
get displayName() {
|
|
40670
40706
|
return measure.userDefinedName ?? field?.string ?? measure.fieldName;
|
|
40671
40707
|
},
|
|
40672
40708
|
userDefinedName: measure.userDefinedName,
|
|
40709
|
+
/**
|
|
40710
|
+
* Get the name of the field of the measure
|
|
40711
|
+
*/
|
|
40673
40712
|
fieldName,
|
|
40713
|
+
/**
|
|
40714
|
+
* Get the aggregator of the measure
|
|
40715
|
+
*/
|
|
40674
40716
|
aggregator,
|
|
40717
|
+
/**
|
|
40718
|
+
* Get the type of the measure field
|
|
40719
|
+
* e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
|
|
40720
|
+
*/
|
|
40675
40721
|
type: fieldName === "__count" ? "integer" : field?.type ?? "integer",
|
|
40676
40722
|
isValid,
|
|
40677
40723
|
isHidden: measure.isHidden,
|
|
@@ -40685,10 +40731,30 @@ var PivotRuntimeDefinition = class {
|
|
|
40685
40731
|
const type = field?.type ?? "integer";
|
|
40686
40732
|
const granularity = field && isDateOrDatetimeField(field) ? dimension.granularity : void 0;
|
|
40687
40733
|
return {
|
|
40734
|
+
/**
|
|
40735
|
+
* Get the display name of the dimension
|
|
40736
|
+
* e.g. "stage_id" -> "Stage", "create_date:month" -> "Create Date"
|
|
40737
|
+
*/
|
|
40688
40738
|
displayName: field?.string ?? dimension.fieldName,
|
|
40739
|
+
/**
|
|
40740
|
+
* Get the name of the dimension, as it is stored in the pivot formula
|
|
40741
|
+
* e.g. "stage_id", "create_date:month"
|
|
40742
|
+
*/
|
|
40689
40743
|
nameWithGranularity: dimension.fieldName + (granularity ? `:${granularity}` : ""),
|
|
40744
|
+
/**
|
|
40745
|
+
* Get the name of the field of the dimension
|
|
40746
|
+
* e.g. "stage_id" -> "stage_id", "create_date:month" -> "create_date"
|
|
40747
|
+
*/
|
|
40690
40748
|
fieldName: dimension.fieldName,
|
|
40749
|
+
/**
|
|
40750
|
+
* Get the aggregate operator of the dimension
|
|
40751
|
+
* e.g. "stage_id" -> undefined, "create_date:month" -> "month"
|
|
40752
|
+
*/
|
|
40691
40753
|
granularity,
|
|
40754
|
+
/**
|
|
40755
|
+
* Get the type of the field of the dimension
|
|
40756
|
+
* e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
|
|
40757
|
+
*/
|
|
40692
40758
|
type: field?.isCustomField ? "custom" : type,
|
|
40693
40759
|
order: dimension.order,
|
|
40694
40760
|
isValid: !!field,
|
|
@@ -51859,6 +51925,8 @@ var MoreFormatsPanel = class extends _odoo_owl.Component {
|
|
|
51859
51925
|
//#endregion
|
|
51860
51926
|
//#region src/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel_store.ts
|
|
51861
51927
|
var PivotMeasureDisplayPanelStore = class extends SpreadsheetStore {
|
|
51928
|
+
pivotId;
|
|
51929
|
+
initialMeasure;
|
|
51862
51930
|
mutators = [
|
|
51863
51931
|
"cancelMeasureDisplayEdition",
|
|
51864
51932
|
"updateMeasureDisplayType",
|
|
@@ -52955,6 +53023,7 @@ function getNumberOfPivotFunctions(tokens) {
|
|
|
52955
53023
|
//#endregion
|
|
52956
53024
|
//#region src/components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store.ts
|
|
52957
53025
|
var PivotSidePanelStore = class extends SpreadsheetStore {
|
|
53026
|
+
pivotId;
|
|
52958
53027
|
mutators = [
|
|
52959
53028
|
"reset",
|
|
52960
53029
|
"deferUpdates",
|
|
@@ -56486,6 +56555,11 @@ var CellPlugin = class extends CorePlugin {
|
|
|
56486
56555
|
}
|
|
56487
56556
|
};
|
|
56488
56557
|
var FormulaCellWithDependencies = class {
|
|
56558
|
+
id;
|
|
56559
|
+
format;
|
|
56560
|
+
style;
|
|
56561
|
+
sheetId;
|
|
56562
|
+
getRangeString;
|
|
56489
56563
|
isFormula = true;
|
|
56490
56564
|
compiledFormula;
|
|
56491
56565
|
constructor(id, compiledFormula, format, style, dependencies, sheetId, getRangeString) {
|
|
@@ -56520,6 +56594,10 @@ var FormulaCellWithDependencies = class {
|
|
|
56520
56594
|
}
|
|
56521
56595
|
};
|
|
56522
56596
|
var RangeReferenceToken = class {
|
|
56597
|
+
ranges;
|
|
56598
|
+
rangeIndex;
|
|
56599
|
+
sheetId;
|
|
56600
|
+
getRangeString;
|
|
56523
56601
|
type = "REFERENCE";
|
|
56524
56602
|
constructor(ranges, rangeIndex, sheetId, getRangeString) {
|
|
56525
56603
|
this.ranges = ranges;
|
|
@@ -60505,6 +60583,8 @@ function buildCompilationParameters(context, getters, computeCell) {
|
|
|
60505
60583
|
return new CompilationParametersBuilder(context, getters, computeCell).getParameters();
|
|
60506
60584
|
}
|
|
60507
60585
|
var CompilationParametersBuilder = class {
|
|
60586
|
+
getters;
|
|
60587
|
+
computeCell;
|
|
60508
60588
|
evalContext;
|
|
60509
60589
|
rangeCache = {};
|
|
60510
60590
|
constructor(context, getters, computeCell) {
|
|
@@ -61622,6 +61702,7 @@ const ERROR_CYCLE_CELL = Object.freeze(createEvaluatedCell({
|
|
|
61622
61702
|
}));
|
|
61623
61703
|
const EMPTY_CELL = Object.freeze(createEvaluatedCell({ value: null }));
|
|
61624
61704
|
var Evaluator = class {
|
|
61705
|
+
context;
|
|
61625
61706
|
getters;
|
|
61626
61707
|
compilationParams;
|
|
61627
61708
|
evaluatedCells = new PositionMap();
|
|
@@ -65742,6 +65823,8 @@ function transformPositionWithMerge(toTransform, executed) {
|
|
|
65742
65823
|
//#endregion
|
|
65743
65824
|
//#region src/collaborative/revisions.ts
|
|
65744
65825
|
var Revision = class {
|
|
65826
|
+
rootCommand;
|
|
65827
|
+
timestamp;
|
|
65745
65828
|
id;
|
|
65746
65829
|
clientId;
|
|
65747
65830
|
_commands = [];
|
|
@@ -65778,6 +65861,9 @@ var Revision = class {
|
|
|
65778
65861
|
//#region src/collaborative/session.ts
|
|
65779
65862
|
var ClientDisconnectedError = class extends Error {};
|
|
65780
65863
|
var Session = class extends EventBus {
|
|
65864
|
+
revisions;
|
|
65865
|
+
transportService;
|
|
65866
|
+
serverRevisionId;
|
|
65781
65867
|
/**
|
|
65782
65868
|
* Positions of the others client.
|
|
65783
65869
|
*/
|
|
@@ -69494,6 +69580,9 @@ var GridSelectionPlugin = class extends UIPlugin {
|
|
|
69494
69580
|
//#endregion
|
|
69495
69581
|
//#region src/helpers/internal_viewport.ts
|
|
69496
69582
|
var InternalViewport = class {
|
|
69583
|
+
getters;
|
|
69584
|
+
sheetId;
|
|
69585
|
+
boundaries;
|
|
69497
69586
|
top;
|
|
69498
69587
|
bottom;
|
|
69499
69588
|
left;
|
|
@@ -74629,6 +74718,7 @@ function instantiateClipboard() {
|
|
|
74629
74718
|
return new WebClipboardWrapper(navigator.clipboard);
|
|
74630
74719
|
}
|
|
74631
74720
|
var WebClipboardWrapper = class {
|
|
74721
|
+
clipboard;
|
|
74632
74722
|
constructor(clipboard) {
|
|
74633
74723
|
this.clipboard = clipboard;
|
|
74634
74724
|
}
|
|
@@ -75115,6 +75205,7 @@ var Spreadsheet = class extends _odoo_owl.Component {
|
|
|
75115
75205
|
//#endregion
|
|
75116
75206
|
//#region src/collaborative/readonly_transport_filter.ts
|
|
75117
75207
|
var ReadonlyTransportFilter = class {
|
|
75208
|
+
transportService;
|
|
75118
75209
|
constructor(transportService) {
|
|
75119
75210
|
this.transportService = transportService;
|
|
75120
75211
|
}
|
|
@@ -75146,6 +75237,8 @@ function inverseCommand(cmd) {
|
|
|
75146
75237
|
* @param operations initial operations
|
|
75147
75238
|
*/
|
|
75148
75239
|
var Branch = class Branch {
|
|
75240
|
+
buildTransformation;
|
|
75241
|
+
operations;
|
|
75149
75242
|
constructor(buildTransformation, operations = []) {
|
|
75150
75243
|
this.buildTransformation = buildTransformation;
|
|
75151
75244
|
this.operations = operations;
|
|
@@ -75262,6 +75355,8 @@ var Branch = class Branch {
|
|
|
75262
75355
|
* to revert it).
|
|
75263
75356
|
*/
|
|
75264
75357
|
var Operation = class {
|
|
75358
|
+
id;
|
|
75359
|
+
data;
|
|
75265
75360
|
constructor(id, data) {
|
|
75266
75361
|
this.id = id;
|
|
75267
75362
|
this.data = data;
|
|
@@ -75271,6 +75366,8 @@ var Operation = class {
|
|
|
75271
75366
|
}
|
|
75272
75367
|
};
|
|
75273
75368
|
var LazyOperation = class LazyOperation {
|
|
75369
|
+
id;
|
|
75370
|
+
lazyData;
|
|
75274
75371
|
constructor(id, lazyData) {
|
|
75275
75372
|
this.id = id;
|
|
75276
75373
|
this.lazyData = lazyData;
|
|
@@ -75296,6 +75393,7 @@ var LazyOperation = class LazyOperation {
|
|
|
75296
75393
|
* ```
|
|
75297
75394
|
*/
|
|
75298
75395
|
var OperationSequence = class OperationSequence {
|
|
75396
|
+
operations;
|
|
75299
75397
|
constructor(operations) {
|
|
75300
75398
|
this.operations = operations;
|
|
75301
75399
|
}
|
|
@@ -75371,6 +75469,7 @@ var OperationSequence = class OperationSequence {
|
|
|
75371
75469
|
*
|
|
75372
75470
|
*/
|
|
75373
75471
|
var Tree = class {
|
|
75472
|
+
buildTransformation;
|
|
75374
75473
|
branches;
|
|
75375
75474
|
branchingOperationIds = /* @__PURE__ */ new Map();
|
|
75376
75475
|
constructor(buildTransformation, initialBranch) {
|
|
@@ -75950,6 +76049,7 @@ var EventStream = class {
|
|
|
75950
76049
|
* with the new selected anchor
|
|
75951
76050
|
*/
|
|
75952
76051
|
var SelectionStreamProcessorImpl = class {
|
|
76052
|
+
getters;
|
|
75953
76053
|
stream;
|
|
75954
76054
|
/**
|
|
75955
76055
|
* "Active" anchor used as a reference to compute new anchors
|
|
@@ -79416,6 +79516,6 @@ exports.stores = stores;
|
|
|
79416
79516
|
exports.tokenColors = tokenColors;
|
|
79417
79517
|
exports.tokenize = tokenize;
|
|
79418
79518
|
|
|
79419
|
-
__info__.version = "19.0.
|
|
79420
|
-
__info__.date = "2026-05-
|
|
79421
|
-
__info__.hash = "
|
|
79519
|
+
__info__.version = "19.0.35";
|
|
79520
|
+
__info__.date = "2026-05-15T07:06:09.392Z";
|
|
79521
|
+
__info__.hash = "5de341b";
|
package/dist/o_spreadsheet.css
CHANGED
|
@@ -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:11.153Z
|
|
7
|
+
* @hash 5de341b
|
|
8
8
|
*/
|
|
9
9
|
/* Originates from src/components/top_bar/top_bar.scss */
|
|
10
10
|
@media (max-width: 1200px) {
|