@odoo/o-spreadsheet 19.1.19 → 19.1.20
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 +12 -12
- package/dist/o_spreadsheet.xml +4 -4
- package/package.json +17 -17
|
@@ -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.1.
|
|
6
|
-
* @date 2026-05-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.1.20
|
|
6
|
+
* @date 2026-05-15T07:06:03.182Z
|
|
7
|
+
* @hash b6a68b8
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function(exports, _odoo_owl) {
|
|
@@ -2038,6 +2038,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2038
2038
|
}
|
|
2039
2039
|
};
|
|
2040
2040
|
var StoreFactory = class {
|
|
2041
|
+
get;
|
|
2041
2042
|
pendingBuilds = /* @__PURE__ */ new Set();
|
|
2042
2043
|
constructor(get) {
|
|
2043
2044
|
this.get = get;
|
|
@@ -2082,6 +2083,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
2082
2083
|
return MetaStore;
|
|
2083
2084
|
}
|
|
2084
2085
|
var DisposableStore = class {
|
|
2086
|
+
get;
|
|
2085
2087
|
disposeCallbacks = [];
|
|
2086
2088
|
constructor(get) {
|
|
2087
2089
|
this.get = get;
|
|
@@ -2837,6 +2839,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
2837
2839
|
else return ALTERNATING_COLORS_XL;
|
|
2838
2840
|
}
|
|
2839
2841
|
var ColorGenerator = class {
|
|
2842
|
+
preferredColors;
|
|
2840
2843
|
currentColorIndex = 0;
|
|
2841
2844
|
palette;
|
|
2842
2845
|
constructor(paletteSize, preferredColors = []) {
|
|
@@ -3555,6 +3558,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
3555
3558
|
return sprintf(_translate(s), ...values);
|
|
3556
3559
|
};
|
|
3557
3560
|
var LazyTranslatedString = class extends String {
|
|
3561
|
+
values;
|
|
3558
3562
|
constructor(str, values) {
|
|
3559
3563
|
super(str);
|
|
3560
3564
|
this.values = values;
|
|
@@ -3584,6 +3588,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
3584
3588
|
};
|
|
3585
3589
|
const errorTypes = new Set(Object.values(CellErrorType));
|
|
3586
3590
|
var EvaluationError = class {
|
|
3591
|
+
message;
|
|
3592
|
+
value;
|
|
3587
3593
|
constructor(message = _t("Error"), value = CellErrorType.GenericError) {
|
|
3588
3594
|
this.message = message;
|
|
3589
3595
|
this.value = value;
|
|
@@ -3616,6 +3622,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
3616
3622
|
}
|
|
3617
3623
|
};
|
|
3618
3624
|
var SplillBlockedError = class extends EvaluationError {
|
|
3625
|
+
errorOriginPosition;
|
|
3619
3626
|
constructor(message = _t("Spill range is not empty"), errorOriginPosition) {
|
|
3620
3627
|
super(message, CellErrorType.SpilledBlocked);
|
|
3621
3628
|
this.errorOriginPosition = errorOriginPosition;
|
|
@@ -10067,6 +10074,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
10067
10074
|
}, runtime).computeDesign();
|
|
10068
10075
|
}
|
|
10069
10076
|
var ScorecardChartConfigBuilder = class {
|
|
10077
|
+
runtime;
|
|
10070
10078
|
context;
|
|
10071
10079
|
width;
|
|
10072
10080
|
height;
|
|
@@ -16114,6 +16122,10 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
16114
16122
|
* Animation interpolating values using the ease-out quartic curve function (chartJS default easing)
|
|
16115
16123
|
*/
|
|
16116
16124
|
var Animation = class {
|
|
16125
|
+
startValue;
|
|
16126
|
+
endValue;
|
|
16127
|
+
duration;
|
|
16128
|
+
callback;
|
|
16117
16129
|
startTime = void 0;
|
|
16118
16130
|
animationFrameId = null;
|
|
16119
16131
|
constructor(startValue, endValue, duration, callback) {
|
|
@@ -16577,6 +16589,11 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
16577
16589
|
}
|
|
16578
16590
|
};
|
|
16579
16591
|
var PopoverPositionContext = class {
|
|
16592
|
+
anchorRect;
|
|
16593
|
+
containerRect;
|
|
16594
|
+
propsMaxSize;
|
|
16595
|
+
spreadsheetOffset;
|
|
16596
|
+
lastPosition;
|
|
16580
16597
|
constructor(anchorRect, containerRect, propsMaxSize, spreadsheetOffset, lastPosition) {
|
|
16581
16598
|
this.anchorRect = anchorRect;
|
|
16582
16599
|
this.containerRect = containerRect;
|
|
@@ -28532,6 +28549,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
28532
28549
|
//#endregion
|
|
28533
28550
|
//#region src/components/composer/standalone_composer/standalone_composer_store.ts
|
|
28534
28551
|
var StandaloneComposerStore = class extends AbstractComposerStore {
|
|
28552
|
+
args;
|
|
28535
28553
|
constructor(get, args) {
|
|
28536
28554
|
super(get);
|
|
28537
28555
|
this.args = args;
|
|
@@ -29374,6 +29392,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
29374
29392
|
}
|
|
29375
29393
|
};
|
|
29376
29394
|
var ContainerWrapper = class {
|
|
29395
|
+
el;
|
|
29377
29396
|
constructor(el) {
|
|
29378
29397
|
this.el = el;
|
|
29379
29398
|
}
|
|
@@ -29445,6 +29464,10 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
29445
29464
|
* This plugin handles this internal state.
|
|
29446
29465
|
*/
|
|
29447
29466
|
var SelectionInputStore = class extends SpreadsheetStore {
|
|
29467
|
+
initialRanges;
|
|
29468
|
+
inputHasSingleRange;
|
|
29469
|
+
colors;
|
|
29470
|
+
disabledRanges;
|
|
29448
29471
|
mutators = [
|
|
29449
29472
|
"resetWithRanges",
|
|
29450
29473
|
"focusById",
|
|
@@ -31964,6 +31987,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
31964
31987
|
* Represent a raw XML string
|
|
31965
31988
|
*/
|
|
31966
31989
|
var XMLString = class {
|
|
31990
|
+
xmlString;
|
|
31967
31991
|
/**
|
|
31968
31992
|
* @param xmlString should be a well formed, properly escaped XML string
|
|
31969
31993
|
*/
|
|
@@ -38342,13 +38366,30 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
38342
38366
|
break;
|
|
38343
38367
|
}
|
|
38344
38368
|
return {
|
|
38369
|
+
/**
|
|
38370
|
+
* Get the id of the measure, as it is stored in the pivot formula
|
|
38371
|
+
*/
|
|
38345
38372
|
id: measure.id,
|
|
38373
|
+
/**
|
|
38374
|
+
* Display name of the measure
|
|
38375
|
+
* e.g. "__count" -> "Count", "amount_total" -> "Total Amount"
|
|
38376
|
+
*/
|
|
38346
38377
|
get displayName() {
|
|
38347
38378
|
return measure.userDefinedName ?? field?.string ?? measure.fieldName;
|
|
38348
38379
|
},
|
|
38349
38380
|
userDefinedName: measure.userDefinedName,
|
|
38381
|
+
/**
|
|
38382
|
+
* Get the name of the field of the measure
|
|
38383
|
+
*/
|
|
38350
38384
|
fieldName,
|
|
38385
|
+
/**
|
|
38386
|
+
* Get the aggregator of the measure
|
|
38387
|
+
*/
|
|
38351
38388
|
aggregator,
|
|
38389
|
+
/**
|
|
38390
|
+
* Get the type of the measure field
|
|
38391
|
+
* e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
|
|
38392
|
+
*/
|
|
38352
38393
|
type: fieldName === "__count" ? "integer" : field?.type ?? "integer",
|
|
38353
38394
|
isValid,
|
|
38354
38395
|
isHidden: measure.isHidden,
|
|
@@ -38362,10 +38403,30 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
38362
38403
|
const type = field?.type ?? "integer";
|
|
38363
38404
|
const granularity = field && isDateOrDatetimeField(field) ? dimension.granularity : void 0;
|
|
38364
38405
|
return {
|
|
38406
|
+
/**
|
|
38407
|
+
* Get the display name of the dimension
|
|
38408
|
+
* e.g. "stage_id" -> "Stage", "create_date:month" -> "Create Date"
|
|
38409
|
+
*/
|
|
38365
38410
|
displayName: field?.string ?? dimension.fieldName,
|
|
38411
|
+
/**
|
|
38412
|
+
* Get the name of the dimension, as it is stored in the pivot formula
|
|
38413
|
+
* e.g. "stage_id", "create_date:month"
|
|
38414
|
+
*/
|
|
38366
38415
|
nameWithGranularity: dimension.fieldName + (granularity ? `:${granularity}` : ""),
|
|
38416
|
+
/**
|
|
38417
|
+
* Get the name of the field of the dimension
|
|
38418
|
+
* e.g. "stage_id" -> "stage_id", "create_date:month" -> "create_date"
|
|
38419
|
+
*/
|
|
38367
38420
|
fieldName: dimension.fieldName,
|
|
38421
|
+
/**
|
|
38422
|
+
* Get the aggregate operator of the dimension
|
|
38423
|
+
* e.g. "stage_id" -> undefined, "create_date:month" -> "month"
|
|
38424
|
+
*/
|
|
38368
38425
|
granularity,
|
|
38426
|
+
/**
|
|
38427
|
+
* Get the type of the field of the dimension
|
|
38428
|
+
* e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
|
|
38429
|
+
*/
|
|
38369
38430
|
type: field?.isCustomField ? "custom" : type,
|
|
38370
38431
|
order: dimension.order,
|
|
38371
38432
|
isValid: !!field,
|
|
@@ -49231,6 +49292,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
49231
49292
|
//#endregion
|
|
49232
49293
|
//#region src/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel_store.ts
|
|
49233
49294
|
var PivotMeasureDisplayPanelStore = class extends SpreadsheetStore {
|
|
49295
|
+
pivotId;
|
|
49296
|
+
initialMeasure;
|
|
49234
49297
|
mutators = [
|
|
49235
49298
|
"cancelMeasureDisplayEdition",
|
|
49236
49299
|
"updateMeasureDisplayType",
|
|
@@ -49683,6 +49746,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
49683
49746
|
//#endregion
|
|
49684
49747
|
//#region src/formulas/code_builder.ts
|
|
49685
49748
|
var FunctionCodeBuilder = class {
|
|
49749
|
+
scope;
|
|
49686
49750
|
code = "";
|
|
49687
49751
|
constructor(scope = new Scope()) {
|
|
49688
49752
|
this.scope = scope;
|
|
@@ -49698,6 +49762,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
49698
49762
|
}
|
|
49699
49763
|
};
|
|
49700
49764
|
var FunctionCodeImpl = class {
|
|
49765
|
+
scope;
|
|
49766
|
+
returnExpression;
|
|
49701
49767
|
code;
|
|
49702
49768
|
constructor(scope, code, returnExpression) {
|
|
49703
49769
|
this.scope = scope;
|
|
@@ -50588,6 +50654,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
50588
50654
|
//#endregion
|
|
50589
50655
|
//#region src/components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store.ts
|
|
50590
50656
|
var PivotSidePanelStore = class extends SpreadsheetStore {
|
|
50657
|
+
pivotId;
|
|
50658
|
+
updateMode;
|
|
50591
50659
|
mutators = [
|
|
50592
50660
|
"reset",
|
|
50593
50661
|
"deferUpdates",
|
|
@@ -54039,6 +54107,10 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
54039
54107
|
}
|
|
54040
54108
|
};
|
|
54041
54109
|
var FormulaCellWithDependencies = class {
|
|
54110
|
+
id;
|
|
54111
|
+
format;
|
|
54112
|
+
sheetId;
|
|
54113
|
+
getRangeString;
|
|
54042
54114
|
isFormula = true;
|
|
54043
54115
|
compiledFormula;
|
|
54044
54116
|
constructor(id, compiledFormula, format, dependencies, sheetId, getRangeString) {
|
|
@@ -54072,6 +54144,10 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
54072
54144
|
}
|
|
54073
54145
|
};
|
|
54074
54146
|
var RangeReferenceToken = class {
|
|
54147
|
+
ranges;
|
|
54148
|
+
rangeIndex;
|
|
54149
|
+
sheetId;
|
|
54150
|
+
getRangeString;
|
|
54075
54151
|
type = "REFERENCE";
|
|
54076
54152
|
constructor(ranges, rangeIndex, sheetId, getRangeString) {
|
|
54077
54153
|
this.ranges = ranges;
|
|
@@ -57930,6 +58006,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
57930
58006
|
return new CompilationParametersBuilder(context, getters, computeCell).getParameters();
|
|
57931
58007
|
}
|
|
57932
58008
|
var CompilationParametersBuilder = class {
|
|
58009
|
+
getters;
|
|
58010
|
+
computeCell;
|
|
57933
58011
|
evalContext;
|
|
57934
58012
|
rangeCache = {};
|
|
57935
58013
|
constructor(context, getters, computeCell) {
|
|
@@ -58876,6 +58954,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
58876
58954
|
}));
|
|
58877
58955
|
const EMPTY_CELL = Object.freeze(createEvaluatedCell({ value: null }));
|
|
58878
58956
|
var Evaluator = class {
|
|
58957
|
+
context;
|
|
58879
58958
|
getters;
|
|
58880
58959
|
compilationParams;
|
|
58881
58960
|
evaluatedCells = new PositionMap();
|
|
@@ -61357,6 +61436,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
61357
61436
|
//#endregion
|
|
61358
61437
|
//#region src/clipboard_handlers/abstract_clipboard_handler.ts
|
|
61359
61438
|
var ClipboardHandler = class {
|
|
61439
|
+
getters;
|
|
61440
|
+
dispatch;
|
|
61360
61441
|
constructor(getters, dispatch) {
|
|
61361
61442
|
this.getters = getters;
|
|
61362
61443
|
this.dispatch = dispatch;
|
|
@@ -63626,6 +63707,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
63626
63707
|
//#endregion
|
|
63627
63708
|
//#region src/collaborative/revisions.ts
|
|
63628
63709
|
var Revision = class {
|
|
63710
|
+
rootCommand;
|
|
63711
|
+
timestamp;
|
|
63629
63712
|
id;
|
|
63630
63713
|
clientId;
|
|
63631
63714
|
_commands = [];
|
|
@@ -63662,6 +63745,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
63662
63745
|
//#region src/collaborative/session.ts
|
|
63663
63746
|
var ClientDisconnectedError = class extends Error {};
|
|
63664
63747
|
var Session = class extends EventBus {
|
|
63748
|
+
revisions;
|
|
63749
|
+
transportService;
|
|
63750
|
+
serverRevisionId;
|
|
63665
63751
|
/**
|
|
63666
63752
|
* Positions of the others client.
|
|
63667
63753
|
*/
|
|
@@ -67163,6 +67249,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
67163
67249
|
//#endregion
|
|
67164
67250
|
//#region src/helpers/internal_viewport.ts
|
|
67165
67251
|
var InternalViewport = class {
|
|
67252
|
+
getters;
|
|
67253
|
+
sheetId;
|
|
67254
|
+
boundaries;
|
|
67166
67255
|
top;
|
|
67167
67256
|
bottom;
|
|
67168
67257
|
left;
|
|
@@ -71880,6 +71969,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
71880
71969
|
return new WebClipboardWrapper(navigator.clipboard);
|
|
71881
71970
|
}
|
|
71882
71971
|
var WebClipboardWrapper = class {
|
|
71972
|
+
clipboard;
|
|
71883
71973
|
constructor(clipboard) {
|
|
71884
71974
|
this.clipboard = clipboard;
|
|
71885
71975
|
}
|
|
@@ -72143,6 +72233,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
72143
72233
|
//#endregion
|
|
72144
72234
|
//#region src/collaborative/readonly_transport_filter.ts
|
|
72145
72235
|
var ReadonlyTransportFilter = class {
|
|
72236
|
+
transportService;
|
|
72146
72237
|
constructor(transportService) {
|
|
72147
72238
|
this.transportService = transportService;
|
|
72148
72239
|
}
|
|
@@ -72174,6 +72265,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
72174
72265
|
* @param operations initial operations
|
|
72175
72266
|
*/
|
|
72176
72267
|
var Branch = class Branch {
|
|
72268
|
+
buildTransformation;
|
|
72269
|
+
operations;
|
|
72177
72270
|
constructor(buildTransformation, operations = []) {
|
|
72178
72271
|
this.buildTransformation = buildTransformation;
|
|
72179
72272
|
this.operations = operations;
|
|
@@ -72290,6 +72383,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
72290
72383
|
* to revert it).
|
|
72291
72384
|
*/
|
|
72292
72385
|
var Operation = class {
|
|
72386
|
+
id;
|
|
72387
|
+
data;
|
|
72293
72388
|
constructor(id, data) {
|
|
72294
72389
|
this.id = id;
|
|
72295
72390
|
this.data = data;
|
|
@@ -72299,6 +72394,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
72299
72394
|
}
|
|
72300
72395
|
};
|
|
72301
72396
|
var LazyOperation = class LazyOperation {
|
|
72397
|
+
id;
|
|
72398
|
+
lazyData;
|
|
72302
72399
|
constructor(id, lazyData) {
|
|
72303
72400
|
this.id = id;
|
|
72304
72401
|
this.lazyData = lazyData;
|
|
@@ -72324,6 +72421,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
72324
72421
|
* ```
|
|
72325
72422
|
*/
|
|
72326
72423
|
var OperationSequence = class OperationSequence {
|
|
72424
|
+
operations;
|
|
72327
72425
|
constructor(operations) {
|
|
72328
72426
|
this.operations = operations;
|
|
72329
72427
|
}
|
|
@@ -72399,6 +72497,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
72399
72497
|
*
|
|
72400
72498
|
*/
|
|
72401
72499
|
var Tree = class {
|
|
72500
|
+
buildTransformation;
|
|
72402
72501
|
branches;
|
|
72403
72502
|
branchingOperationIds = /* @__PURE__ */ new Map();
|
|
72404
72503
|
constructor(buildTransformation, initialBranch) {
|
|
@@ -73211,6 +73310,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
73211
73310
|
* with the new selected anchor
|
|
73212
73311
|
*/
|
|
73213
73312
|
var SelectionStreamProcessorImpl = class {
|
|
73313
|
+
getters;
|
|
73214
73314
|
stream;
|
|
73215
73315
|
/**
|
|
73216
73316
|
* "Active" anchor used as a reference to compute new anchors
|
|
@@ -79001,8 +79101,8 @@ exports.stores = stores;
|
|
|
79001
79101
|
exports.tokenColors = tokenColors;
|
|
79002
79102
|
exports.tokenize = tokenize;
|
|
79003
79103
|
|
|
79004
|
-
__info__.version = "19.1.
|
|
79005
|
-
__info__.date = "2026-05-
|
|
79006
|
-
__info__.hash = "
|
|
79104
|
+
__info__.version = "19.1.20";
|
|
79105
|
+
__info__.date = "2026-05-15T07:06:03.182Z";
|
|
79106
|
+
__info__.hash = "b6a68b8";
|
|
79007
79107
|
|
|
79008
79108
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|