@odoo/o-spreadsheet 19.1.18 → 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 +20 -20
|
@@ -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
|
import { App, Component, blockDom, markRaw, onMounted, onPatched, onWillPatch, onWillStart, onWillUnmount, onWillUpdateProps, status, toRaw, useChildSubEnv, useComponent, useEffect, useEnv, useExternalListener, useRef, useState, useSubEnv, whenReady, xml } from "@odoo/owl";
|
|
@@ -2036,6 +2036,7 @@ var DependencyContainer = class extends EventBus {
|
|
|
2036
2036
|
}
|
|
2037
2037
|
};
|
|
2038
2038
|
var StoreFactory = class {
|
|
2039
|
+
get;
|
|
2039
2040
|
pendingBuilds = /* @__PURE__ */ new Set();
|
|
2040
2041
|
constructor(get) {
|
|
2041
2042
|
this.get = get;
|
|
@@ -2080,6 +2081,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
2080
2081
|
return MetaStore;
|
|
2081
2082
|
}
|
|
2082
2083
|
var DisposableStore = class {
|
|
2084
|
+
get;
|
|
2083
2085
|
disposeCallbacks = [];
|
|
2084
2086
|
constructor(get) {
|
|
2085
2087
|
this.get = get;
|
|
@@ -2835,6 +2837,7 @@ function getAlternatingColorsPalette(quantity) {
|
|
|
2835
2837
|
else return ALTERNATING_COLORS_XL;
|
|
2836
2838
|
}
|
|
2837
2839
|
var ColorGenerator = class {
|
|
2840
|
+
preferredColors;
|
|
2838
2841
|
currentColorIndex = 0;
|
|
2839
2842
|
palette;
|
|
2840
2843
|
constructor(paletteSize, preferredColors = []) {
|
|
@@ -3553,6 +3556,7 @@ const _t = function(s, ...values) {
|
|
|
3553
3556
|
return sprintf(_translate(s), ...values);
|
|
3554
3557
|
};
|
|
3555
3558
|
var LazyTranslatedString = class extends String {
|
|
3559
|
+
values;
|
|
3556
3560
|
constructor(str, values) {
|
|
3557
3561
|
super(str);
|
|
3558
3562
|
this.values = values;
|
|
@@ -3582,6 +3586,8 @@ const CellErrorType = {
|
|
|
3582
3586
|
};
|
|
3583
3587
|
const errorTypes = new Set(Object.values(CellErrorType));
|
|
3584
3588
|
var EvaluationError = class {
|
|
3589
|
+
message;
|
|
3590
|
+
value;
|
|
3585
3591
|
constructor(message = _t("Error"), value = CellErrorType.GenericError) {
|
|
3586
3592
|
this.message = message;
|
|
3587
3593
|
this.value = value;
|
|
@@ -3614,6 +3620,7 @@ var UnknownFunctionError = class extends EvaluationError {
|
|
|
3614
3620
|
}
|
|
3615
3621
|
};
|
|
3616
3622
|
var SplillBlockedError = class extends EvaluationError {
|
|
3623
|
+
errorOriginPosition;
|
|
3617
3624
|
constructor(message = _t("Spill range is not empty"), errorOriginPosition) {
|
|
3618
3625
|
super(message, CellErrorType.SpilledBlocked);
|
|
3619
3626
|
this.errorOriginPosition = errorOriginPosition;
|
|
@@ -10065,6 +10072,7 @@ function getScorecardConfiguration({ width, height }, runtime) {
|
|
|
10065
10072
|
}, runtime).computeDesign();
|
|
10066
10073
|
}
|
|
10067
10074
|
var ScorecardChartConfigBuilder = class {
|
|
10075
|
+
runtime;
|
|
10068
10076
|
context;
|
|
10069
10077
|
width;
|
|
10070
10078
|
height;
|
|
@@ -16112,6 +16120,10 @@ var GaugeChartComponent = class extends Component {
|
|
|
16112
16120
|
* Animation interpolating values using the ease-out quartic curve function (chartJS default easing)
|
|
16113
16121
|
*/
|
|
16114
16122
|
var Animation = class {
|
|
16123
|
+
startValue;
|
|
16124
|
+
endValue;
|
|
16125
|
+
duration;
|
|
16126
|
+
callback;
|
|
16115
16127
|
startTime = void 0;
|
|
16116
16128
|
animationFrameId = null;
|
|
16117
16129
|
constructor(startValue, endValue, duration, callback) {
|
|
@@ -16575,6 +16587,11 @@ var Popover = class extends Component {
|
|
|
16575
16587
|
}
|
|
16576
16588
|
};
|
|
16577
16589
|
var PopoverPositionContext = class {
|
|
16590
|
+
anchorRect;
|
|
16591
|
+
containerRect;
|
|
16592
|
+
propsMaxSize;
|
|
16593
|
+
spreadsheetOffset;
|
|
16594
|
+
lastPosition;
|
|
16578
16595
|
constructor(anchorRect, containerRect, propsMaxSize, spreadsheetOffset, lastPosition) {
|
|
16579
16596
|
this.anchorRect = anchorRect;
|
|
16580
16597
|
this.containerRect = containerRect;
|
|
@@ -28530,6 +28547,7 @@ var AbstractComposerStore = class extends SpreadsheetStore {
|
|
|
28530
28547
|
//#endregion
|
|
28531
28548
|
//#region src/components/composer/standalone_composer/standalone_composer_store.ts
|
|
28532
28549
|
var StandaloneComposerStore = class extends AbstractComposerStore {
|
|
28550
|
+
args;
|
|
28533
28551
|
constructor(get, args) {
|
|
28534
28552
|
super(get);
|
|
28535
28553
|
this.args = args;
|
|
@@ -29372,6 +29390,7 @@ var DOMDndHelper = class {
|
|
|
29372
29390
|
}
|
|
29373
29391
|
};
|
|
29374
29392
|
var ContainerWrapper = class {
|
|
29393
|
+
el;
|
|
29375
29394
|
constructor(el) {
|
|
29376
29395
|
this.el = el;
|
|
29377
29396
|
}
|
|
@@ -29443,6 +29462,10 @@ var FocusStore = class {
|
|
|
29443
29462
|
* This plugin handles this internal state.
|
|
29444
29463
|
*/
|
|
29445
29464
|
var SelectionInputStore = class extends SpreadsheetStore {
|
|
29465
|
+
initialRanges;
|
|
29466
|
+
inputHasSingleRange;
|
|
29467
|
+
colors;
|
|
29468
|
+
disabledRanges;
|
|
29446
29469
|
mutators = [
|
|
29447
29470
|
"resetWithRanges",
|
|
29448
29471
|
"focusById",
|
|
@@ -31962,6 +31985,7 @@ function buildTableStyle(name, templateName, primaryColor) {
|
|
|
31962
31985
|
* Represent a raw XML string
|
|
31963
31986
|
*/
|
|
31964
31987
|
var XMLString = class {
|
|
31988
|
+
xmlString;
|
|
31965
31989
|
/**
|
|
31966
31990
|
* @param xmlString should be a well formed, properly escaped XML string
|
|
31967
31991
|
*/
|
|
@@ -38340,13 +38364,30 @@ var PivotRuntimeDefinition = class {
|
|
|
38340
38364
|
break;
|
|
38341
38365
|
}
|
|
38342
38366
|
return {
|
|
38367
|
+
/**
|
|
38368
|
+
* Get the id of the measure, as it is stored in the pivot formula
|
|
38369
|
+
*/
|
|
38343
38370
|
id: measure.id,
|
|
38371
|
+
/**
|
|
38372
|
+
* Display name of the measure
|
|
38373
|
+
* e.g. "__count" -> "Count", "amount_total" -> "Total Amount"
|
|
38374
|
+
*/
|
|
38344
38375
|
get displayName() {
|
|
38345
38376
|
return measure.userDefinedName ?? field?.string ?? measure.fieldName;
|
|
38346
38377
|
},
|
|
38347
38378
|
userDefinedName: measure.userDefinedName,
|
|
38379
|
+
/**
|
|
38380
|
+
* Get the name of the field of the measure
|
|
38381
|
+
*/
|
|
38348
38382
|
fieldName,
|
|
38383
|
+
/**
|
|
38384
|
+
* Get the aggregator of the measure
|
|
38385
|
+
*/
|
|
38349
38386
|
aggregator,
|
|
38387
|
+
/**
|
|
38388
|
+
* Get the type of the measure field
|
|
38389
|
+
* e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
|
|
38390
|
+
*/
|
|
38350
38391
|
type: fieldName === "__count" ? "integer" : field?.type ?? "integer",
|
|
38351
38392
|
isValid,
|
|
38352
38393
|
isHidden: measure.isHidden,
|
|
@@ -38360,10 +38401,30 @@ var PivotRuntimeDefinition = class {
|
|
|
38360
38401
|
const type = field?.type ?? "integer";
|
|
38361
38402
|
const granularity = field && isDateOrDatetimeField(field) ? dimension.granularity : void 0;
|
|
38362
38403
|
return {
|
|
38404
|
+
/**
|
|
38405
|
+
* Get the display name of the dimension
|
|
38406
|
+
* e.g. "stage_id" -> "Stage", "create_date:month" -> "Create Date"
|
|
38407
|
+
*/
|
|
38363
38408
|
displayName: field?.string ?? dimension.fieldName,
|
|
38409
|
+
/**
|
|
38410
|
+
* Get the name of the dimension, as it is stored in the pivot formula
|
|
38411
|
+
* e.g. "stage_id", "create_date:month"
|
|
38412
|
+
*/
|
|
38364
38413
|
nameWithGranularity: dimension.fieldName + (granularity ? `:${granularity}` : ""),
|
|
38414
|
+
/**
|
|
38415
|
+
* Get the name of the field of the dimension
|
|
38416
|
+
* e.g. "stage_id" -> "stage_id", "create_date:month" -> "create_date"
|
|
38417
|
+
*/
|
|
38365
38418
|
fieldName: dimension.fieldName,
|
|
38419
|
+
/**
|
|
38420
|
+
* Get the aggregate operator of the dimension
|
|
38421
|
+
* e.g. "stage_id" -> undefined, "create_date:month" -> "month"
|
|
38422
|
+
*/
|
|
38366
38423
|
granularity,
|
|
38424
|
+
/**
|
|
38425
|
+
* Get the type of the field of the dimension
|
|
38426
|
+
* e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
|
|
38427
|
+
*/
|
|
38367
38428
|
type: field?.isCustomField ? "custom" : type,
|
|
38368
38429
|
order: dimension.order,
|
|
38369
38430
|
isValid: !!field,
|
|
@@ -49229,6 +49290,8 @@ var MoreFormatsPanel = class extends Component {
|
|
|
49229
49290
|
//#endregion
|
|
49230
49291
|
//#region src/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel_store.ts
|
|
49231
49292
|
var PivotMeasureDisplayPanelStore = class extends SpreadsheetStore {
|
|
49293
|
+
pivotId;
|
|
49294
|
+
initialMeasure;
|
|
49232
49295
|
mutators = [
|
|
49233
49296
|
"cancelMeasureDisplayEdition",
|
|
49234
49297
|
"updateMeasureDisplayType",
|
|
@@ -49681,6 +49744,7 @@ var PivotDimensionOrder = class extends Component {
|
|
|
49681
49744
|
//#endregion
|
|
49682
49745
|
//#region src/formulas/code_builder.ts
|
|
49683
49746
|
var FunctionCodeBuilder = class {
|
|
49747
|
+
scope;
|
|
49684
49748
|
code = "";
|
|
49685
49749
|
constructor(scope = new Scope()) {
|
|
49686
49750
|
this.scope = scope;
|
|
@@ -49696,6 +49760,8 @@ var FunctionCodeBuilder = class {
|
|
|
49696
49760
|
}
|
|
49697
49761
|
};
|
|
49698
49762
|
var FunctionCodeImpl = class {
|
|
49763
|
+
scope;
|
|
49764
|
+
returnExpression;
|
|
49699
49765
|
code;
|
|
49700
49766
|
constructor(scope, code, returnExpression) {
|
|
49701
49767
|
this.scope = scope;
|
|
@@ -50586,6 +50652,8 @@ function extractFormulaIdFromToken(tokenAtCursor) {
|
|
|
50586
50652
|
//#endregion
|
|
50587
50653
|
//#region src/components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store.ts
|
|
50588
50654
|
var PivotSidePanelStore = class extends SpreadsheetStore {
|
|
50655
|
+
pivotId;
|
|
50656
|
+
updateMode;
|
|
50589
50657
|
mutators = [
|
|
50590
50658
|
"reset",
|
|
50591
50659
|
"deferUpdates",
|
|
@@ -54037,6 +54105,10 @@ var CellPlugin = class extends CorePlugin {
|
|
|
54037
54105
|
}
|
|
54038
54106
|
};
|
|
54039
54107
|
var FormulaCellWithDependencies = class {
|
|
54108
|
+
id;
|
|
54109
|
+
format;
|
|
54110
|
+
sheetId;
|
|
54111
|
+
getRangeString;
|
|
54040
54112
|
isFormula = true;
|
|
54041
54113
|
compiledFormula;
|
|
54042
54114
|
constructor(id, compiledFormula, format, dependencies, sheetId, getRangeString) {
|
|
@@ -54070,6 +54142,10 @@ var FormulaCellWithDependencies = class {
|
|
|
54070
54142
|
}
|
|
54071
54143
|
};
|
|
54072
54144
|
var RangeReferenceToken = class {
|
|
54145
|
+
ranges;
|
|
54146
|
+
rangeIndex;
|
|
54147
|
+
sheetId;
|
|
54148
|
+
getRangeString;
|
|
54073
54149
|
type = "REFERENCE";
|
|
54074
54150
|
constructor(ranges, rangeIndex, sheetId, getRangeString) {
|
|
54075
54151
|
this.ranges = ranges;
|
|
@@ -57928,6 +58004,8 @@ function buildCompilationParameters(context, getters, computeCell) {
|
|
|
57928
58004
|
return new CompilationParametersBuilder(context, getters, computeCell).getParameters();
|
|
57929
58005
|
}
|
|
57930
58006
|
var CompilationParametersBuilder = class {
|
|
58007
|
+
getters;
|
|
58008
|
+
computeCell;
|
|
57931
58009
|
evalContext;
|
|
57932
58010
|
rangeCache = {};
|
|
57933
58011
|
constructor(context, getters, computeCell) {
|
|
@@ -58874,6 +58952,7 @@ const ERROR_CYCLE_CELL = Object.freeze(createEvaluatedCell({
|
|
|
58874
58952
|
}));
|
|
58875
58953
|
const EMPTY_CELL = Object.freeze(createEvaluatedCell({ value: null }));
|
|
58876
58954
|
var Evaluator = class {
|
|
58955
|
+
context;
|
|
58877
58956
|
getters;
|
|
58878
58957
|
compilationParams;
|
|
58879
58958
|
evaluatedCells = new PositionMap();
|
|
@@ -61355,6 +61434,8 @@ var PivotUIPlugin = class extends CoreViewPlugin {
|
|
|
61355
61434
|
//#endregion
|
|
61356
61435
|
//#region src/clipboard_handlers/abstract_clipboard_handler.ts
|
|
61357
61436
|
var ClipboardHandler = class {
|
|
61437
|
+
getters;
|
|
61438
|
+
dispatch;
|
|
61358
61439
|
constructor(getters, dispatch) {
|
|
61359
61440
|
this.getters = getters;
|
|
61360
61441
|
this.dispatch = dispatch;
|
|
@@ -63624,6 +63705,8 @@ function transformPositionWithMerge(toTransform, executed) {
|
|
|
63624
63705
|
//#endregion
|
|
63625
63706
|
//#region src/collaborative/revisions.ts
|
|
63626
63707
|
var Revision = class {
|
|
63708
|
+
rootCommand;
|
|
63709
|
+
timestamp;
|
|
63627
63710
|
id;
|
|
63628
63711
|
clientId;
|
|
63629
63712
|
_commands = [];
|
|
@@ -63660,6 +63743,9 @@ var Revision = class {
|
|
|
63660
63743
|
//#region src/collaborative/session.ts
|
|
63661
63744
|
var ClientDisconnectedError = class extends Error {};
|
|
63662
63745
|
var Session = class extends EventBus {
|
|
63746
|
+
revisions;
|
|
63747
|
+
transportService;
|
|
63748
|
+
serverRevisionId;
|
|
63663
63749
|
/**
|
|
63664
63750
|
* Positions of the others client.
|
|
63665
63751
|
*/
|
|
@@ -67161,6 +67247,9 @@ var GridSelectionPlugin = class extends UIPlugin {
|
|
|
67161
67247
|
//#endregion
|
|
67162
67248
|
//#region src/helpers/internal_viewport.ts
|
|
67163
67249
|
var InternalViewport = class {
|
|
67250
|
+
getters;
|
|
67251
|
+
sheetId;
|
|
67252
|
+
boundaries;
|
|
67164
67253
|
top;
|
|
67165
67254
|
bottom;
|
|
67166
67255
|
left;
|
|
@@ -71878,6 +71967,7 @@ function instantiateClipboard() {
|
|
|
71878
71967
|
return new WebClipboardWrapper(navigator.clipboard);
|
|
71879
71968
|
}
|
|
71880
71969
|
var WebClipboardWrapper = class {
|
|
71970
|
+
clipboard;
|
|
71881
71971
|
constructor(clipboard) {
|
|
71882
71972
|
this.clipboard = clipboard;
|
|
71883
71973
|
}
|
|
@@ -72141,6 +72231,7 @@ var Spreadsheet = class extends Component {
|
|
|
72141
72231
|
//#endregion
|
|
72142
72232
|
//#region src/collaborative/readonly_transport_filter.ts
|
|
72143
72233
|
var ReadonlyTransportFilter = class {
|
|
72234
|
+
transportService;
|
|
72144
72235
|
constructor(transportService) {
|
|
72145
72236
|
this.transportService = transportService;
|
|
72146
72237
|
}
|
|
@@ -72172,6 +72263,8 @@ function inverseCommand(cmd) {
|
|
|
72172
72263
|
* @param operations initial operations
|
|
72173
72264
|
*/
|
|
72174
72265
|
var Branch = class Branch {
|
|
72266
|
+
buildTransformation;
|
|
72267
|
+
operations;
|
|
72175
72268
|
constructor(buildTransformation, operations = []) {
|
|
72176
72269
|
this.buildTransformation = buildTransformation;
|
|
72177
72270
|
this.operations = operations;
|
|
@@ -72288,6 +72381,8 @@ var Branch = class Branch {
|
|
|
72288
72381
|
* to revert it).
|
|
72289
72382
|
*/
|
|
72290
72383
|
var Operation = class {
|
|
72384
|
+
id;
|
|
72385
|
+
data;
|
|
72291
72386
|
constructor(id, data) {
|
|
72292
72387
|
this.id = id;
|
|
72293
72388
|
this.data = data;
|
|
@@ -72297,6 +72392,8 @@ var Operation = class {
|
|
|
72297
72392
|
}
|
|
72298
72393
|
};
|
|
72299
72394
|
var LazyOperation = class LazyOperation {
|
|
72395
|
+
id;
|
|
72396
|
+
lazyData;
|
|
72300
72397
|
constructor(id, lazyData) {
|
|
72301
72398
|
this.id = id;
|
|
72302
72399
|
this.lazyData = lazyData;
|
|
@@ -72322,6 +72419,7 @@ var LazyOperation = class LazyOperation {
|
|
|
72322
72419
|
* ```
|
|
72323
72420
|
*/
|
|
72324
72421
|
var OperationSequence = class OperationSequence {
|
|
72422
|
+
operations;
|
|
72325
72423
|
constructor(operations) {
|
|
72326
72424
|
this.operations = operations;
|
|
72327
72425
|
}
|
|
@@ -72397,6 +72495,7 @@ var OperationSequence = class OperationSequence {
|
|
|
72397
72495
|
*
|
|
72398
72496
|
*/
|
|
72399
72497
|
var Tree = class {
|
|
72498
|
+
buildTransformation;
|
|
72400
72499
|
branches;
|
|
72401
72500
|
branchingOperationIds = /* @__PURE__ */ new Map();
|
|
72402
72501
|
constructor(buildTransformation, initialBranch) {
|
|
@@ -73209,6 +73308,7 @@ var EventStream = class {
|
|
|
73209
73308
|
* with the new selected anchor
|
|
73210
73309
|
*/
|
|
73211
73310
|
var SelectionStreamProcessorImpl = class {
|
|
73311
|
+
getters;
|
|
73212
73312
|
stream;
|
|
73213
73313
|
/**
|
|
73214
73314
|
* "Active" anchor used as a reference to compute new anchors
|
|
@@ -78946,6 +79046,6 @@ const chartHelpers = {
|
|
|
78946
79046
|
//#endregion
|
|
78947
79047
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, ClientDisconnectedError, CommandResult, CorePlugin, CoreViewPlugin, DEFAULT_LOCALE, DEFAULT_LOCALES, DispatchResult, EvaluationError, LocalTransportService, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, categories, chartHelpers, components, constants, convertAstNodes, coreTypes, createAutocompleteArgumentsProvider, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
78948
79048
|
|
|
78949
|
-
__info__.version = "19.1.
|
|
78950
|
-
__info__.date = "2026-05-
|
|
78951
|
-
__info__.hash = "
|
|
79049
|
+
__info__.version = "19.1.20";
|
|
79050
|
+
__info__.date = "2026-05-15T07:06:03.182Z";
|
|
79051
|
+
__info__.hash = "b6a68b8";
|