@odoo/o-spreadsheet 19.2.12 → 19.2.13
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 +105 -6
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.esm.js +105 -6
- package/dist/o_spreadsheet.iife.js +105 -6
- package/dist/o_spreadsheet.iife.min.js +11 -11
- 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.2.
|
|
6
|
-
* @date 2026-05-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.2.13
|
|
6
|
+
* @date 2026-05-15T07:07:37.391Z
|
|
7
|
+
* @hash fece642
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
@@ -2062,6 +2062,7 @@ var DependencyContainer = class extends EventBus {
|
|
|
2062
2062
|
}
|
|
2063
2063
|
};
|
|
2064
2064
|
var StoreFactory = class {
|
|
2065
|
+
get;
|
|
2065
2066
|
pendingBuilds = /* @__PURE__ */ new Set();
|
|
2066
2067
|
constructor(get) {
|
|
2067
2068
|
this.get = get;
|
|
@@ -2106,6 +2107,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
2106
2107
|
return MetaStore;
|
|
2107
2108
|
}
|
|
2108
2109
|
var DisposableStore = class {
|
|
2110
|
+
get;
|
|
2109
2111
|
disposeCallbacks = [];
|
|
2110
2112
|
constructor(get) {
|
|
2111
2113
|
this.get = get;
|
|
@@ -2861,6 +2863,7 @@ function getAlternatingColorsPalette(quantity) {
|
|
|
2861
2863
|
else return ALTERNATING_COLORS_XL;
|
|
2862
2864
|
}
|
|
2863
2865
|
var ColorGenerator = class {
|
|
2866
|
+
preferredColors;
|
|
2864
2867
|
currentColorIndex = 0;
|
|
2865
2868
|
palette;
|
|
2866
2869
|
constructor(paletteSize, preferredColors = []) {
|
|
@@ -3579,6 +3582,7 @@ const _t = function(s, ...values) {
|
|
|
3579
3582
|
return sprintf(_translate(s), ...values);
|
|
3580
3583
|
};
|
|
3581
3584
|
var LazyTranslatedString = class extends String {
|
|
3585
|
+
values;
|
|
3582
3586
|
constructor(str, values) {
|
|
3583
3587
|
super(str);
|
|
3584
3588
|
this.values = values;
|
|
@@ -3608,6 +3612,8 @@ const CellErrorType = {
|
|
|
3608
3612
|
};
|
|
3609
3613
|
const errorTypes = new Set(Object.values(CellErrorType));
|
|
3610
3614
|
var EvaluationError = class {
|
|
3615
|
+
message;
|
|
3616
|
+
value;
|
|
3611
3617
|
constructor(message = _t("Error"), value = CellErrorType.GenericError) {
|
|
3612
3618
|
this.message = message;
|
|
3613
3619
|
this.value = value;
|
|
@@ -3640,6 +3646,7 @@ var UnknownFunctionError = class extends EvaluationError {
|
|
|
3640
3646
|
}
|
|
3641
3647
|
};
|
|
3642
3648
|
var SplillBlockedError = class extends EvaluationError {
|
|
3649
|
+
errorOriginPosition;
|
|
3643
3650
|
constructor(message = _t("Spill range is not empty"), errorOriginPosition) {
|
|
3644
3651
|
super(message, CellErrorType.SpilledBlocked);
|
|
3645
3652
|
this.errorOriginPosition = errorOriginPosition;
|
|
@@ -10135,6 +10142,7 @@ function getScorecardConfiguration({ width, height }, runtime) {
|
|
|
10135
10142
|
}, runtime).computeDesign();
|
|
10136
10143
|
}
|
|
10137
10144
|
var ScorecardChartConfigBuilder = class {
|
|
10145
|
+
runtime;
|
|
10138
10146
|
context;
|
|
10139
10147
|
width;
|
|
10140
10148
|
height;
|
|
@@ -16214,6 +16222,10 @@ var GaugeChartComponent = class extends _odoo_owl.Component {
|
|
|
16214
16222
|
* Animation interpolating values using the ease-out quartic curve function (chartJS default easing)
|
|
16215
16223
|
*/
|
|
16216
16224
|
var Animation = class {
|
|
16225
|
+
startValue;
|
|
16226
|
+
endValue;
|
|
16227
|
+
duration;
|
|
16228
|
+
callback;
|
|
16217
16229
|
startTime = void 0;
|
|
16218
16230
|
animationFrameId = null;
|
|
16219
16231
|
constructor(startValue, endValue, duration, callback) {
|
|
@@ -16680,6 +16692,11 @@ var Popover = class extends _odoo_owl.Component {
|
|
|
16680
16692
|
}
|
|
16681
16693
|
};
|
|
16682
16694
|
var PopoverPositionContext = class {
|
|
16695
|
+
anchorRect;
|
|
16696
|
+
containerRect;
|
|
16697
|
+
propsMaxSize;
|
|
16698
|
+
spreadsheetOffset;
|
|
16699
|
+
lastPosition;
|
|
16683
16700
|
constructor(anchorRect, containerRect, propsMaxSize, spreadsheetOffset, lastPosition) {
|
|
16684
16701
|
this.anchorRect = anchorRect;
|
|
16685
16702
|
this.containerRect = containerRect;
|
|
@@ -25784,6 +25801,7 @@ for (const category of categories) {
|
|
|
25784
25801
|
* Represent a raw XML string
|
|
25785
25802
|
*/
|
|
25786
25803
|
var XMLString = class {
|
|
25804
|
+
xmlString;
|
|
25787
25805
|
/**
|
|
25788
25806
|
* @param xmlString should be a well formed, properly escaped XML string
|
|
25789
25807
|
*/
|
|
@@ -34022,6 +34040,7 @@ var AbstractComposerStore = class extends SpreadsheetStore {
|
|
|
34022
34040
|
//#endregion
|
|
34023
34041
|
//#region src/components/composer/standalone_composer/standalone_composer_store.ts
|
|
34024
34042
|
var StandaloneComposerStore = class extends AbstractComposerStore {
|
|
34043
|
+
args;
|
|
34025
34044
|
constructor(get, args) {
|
|
34026
34045
|
super(get);
|
|
34027
34046
|
this.args = args;
|
|
@@ -34925,6 +34944,7 @@ var DOMDndHelper = class {
|
|
|
34925
34944
|
}
|
|
34926
34945
|
};
|
|
34927
34946
|
var ContainerWrapper = class {
|
|
34947
|
+
el;
|
|
34928
34948
|
constructor(el) {
|
|
34929
34949
|
this.el = el;
|
|
34930
34950
|
}
|
|
@@ -34996,6 +35016,10 @@ var FocusStore = class {
|
|
|
34996
35016
|
* This plugin handles this internal state.
|
|
34997
35017
|
*/
|
|
34998
35018
|
var SelectionInputStore = class extends SpreadsheetStore {
|
|
35019
|
+
initialRanges;
|
|
35020
|
+
inputHasSingleRange;
|
|
35021
|
+
colors;
|
|
35022
|
+
disabledRanges;
|
|
34999
35023
|
mutators = [
|
|
35000
35024
|
"resetWithRanges",
|
|
35001
35025
|
"focusById",
|
|
@@ -43089,6 +43113,8 @@ var MoreFormatsPanel = class extends _odoo_owl.Component {
|
|
|
43089
43113
|
//#endregion
|
|
43090
43114
|
//#region src/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel_store.ts
|
|
43091
43115
|
var PivotMeasureDisplayPanelStore = class extends SpreadsheetStore {
|
|
43116
|
+
pivotId;
|
|
43117
|
+
initialMeasure;
|
|
43092
43118
|
mutators = [
|
|
43093
43119
|
"cancelMeasureDisplayEdition",
|
|
43094
43120
|
"updateMeasureDisplayType",
|
|
@@ -43571,6 +43597,7 @@ var PivotDimensionOrder = class extends _odoo_owl.Component {
|
|
|
43571
43597
|
//#endregion
|
|
43572
43598
|
//#region src/formulas/code_builder.ts
|
|
43573
43599
|
var FunctionCodeBuilder = class {
|
|
43600
|
+
scope;
|
|
43574
43601
|
code = "";
|
|
43575
43602
|
constructor(scope = new Scope()) {
|
|
43576
43603
|
this.scope = scope;
|
|
@@ -43586,6 +43613,8 @@ var FunctionCodeBuilder = class {
|
|
|
43586
43613
|
}
|
|
43587
43614
|
};
|
|
43588
43615
|
var FunctionCodeImpl = class {
|
|
43616
|
+
scope;
|
|
43617
|
+
returnExpression;
|
|
43589
43618
|
code;
|
|
43590
43619
|
constructor(scope, code, returnExpression) {
|
|
43591
43620
|
this.scope = scope;
|
|
@@ -43668,6 +43697,13 @@ const collator = new Intl.Collator("en", { sensitivity: "accent" });
|
|
|
43668
43697
|
* without recompiling it (for example when the formula is copied to another cell, or when we want to replace literal values but keep the same structure).
|
|
43669
43698
|
* */
|
|
43670
43699
|
var CompiledFormula = class CompiledFormula {
|
|
43700
|
+
sheetId;
|
|
43701
|
+
tokens;
|
|
43702
|
+
literalValues;
|
|
43703
|
+
symbols;
|
|
43704
|
+
isBadExpression;
|
|
43705
|
+
normalizedFormula;
|
|
43706
|
+
execute;
|
|
43671
43707
|
rangeDependencies;
|
|
43672
43708
|
hasDependencies;
|
|
43673
43709
|
constructor(sheetId, tokens, literalValues, symbols, dependencies, isBadExpression, normalizedFormula, execute) {
|
|
@@ -44552,13 +44588,30 @@ var PivotRuntimeDefinition = class {
|
|
|
44552
44588
|
break;
|
|
44553
44589
|
}
|
|
44554
44590
|
return {
|
|
44591
|
+
/**
|
|
44592
|
+
* Get the id of the measure, as it is stored in the pivot formula
|
|
44593
|
+
*/
|
|
44555
44594
|
id: measure.id,
|
|
44595
|
+
/**
|
|
44596
|
+
* Display name of the measure
|
|
44597
|
+
* e.g. "__count" -> "Count", "amount_total" -> "Total Amount"
|
|
44598
|
+
*/
|
|
44556
44599
|
get displayName() {
|
|
44557
44600
|
return measure.userDefinedName ?? field?.string ?? measure.fieldName;
|
|
44558
44601
|
},
|
|
44559
44602
|
userDefinedName: measure.userDefinedName,
|
|
44603
|
+
/**
|
|
44604
|
+
* Get the name of the field of the measure
|
|
44605
|
+
*/
|
|
44560
44606
|
fieldName,
|
|
44607
|
+
/**
|
|
44608
|
+
* Get the aggregator of the measure
|
|
44609
|
+
*/
|
|
44561
44610
|
aggregator,
|
|
44611
|
+
/**
|
|
44612
|
+
* Get the type of the measure field
|
|
44613
|
+
* e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
|
|
44614
|
+
*/
|
|
44562
44615
|
type: fieldName === "__count" ? "integer" : field?.type ?? "integer",
|
|
44563
44616
|
isValid,
|
|
44564
44617
|
isHidden: measure.isHidden,
|
|
@@ -44572,10 +44625,30 @@ var PivotRuntimeDefinition = class {
|
|
|
44572
44625
|
const type = field?.type ?? "integer";
|
|
44573
44626
|
const granularity = field && isDateOrDatetimeField(field) ? dimension.granularity : void 0;
|
|
44574
44627
|
return {
|
|
44628
|
+
/**
|
|
44629
|
+
* Get the display name of the dimension
|
|
44630
|
+
* e.g. "stage_id" -> "Stage", "create_date:month" -> "Create Date"
|
|
44631
|
+
*/
|
|
44575
44632
|
displayName: field?.string ?? dimension.fieldName,
|
|
44633
|
+
/**
|
|
44634
|
+
* Get the name of the dimension, as it is stored in the pivot formula
|
|
44635
|
+
* e.g. "stage_id", "create_date:month"
|
|
44636
|
+
*/
|
|
44576
44637
|
nameWithGranularity: dimension.fieldName + (granularity ? `:${granularity}` : ""),
|
|
44638
|
+
/**
|
|
44639
|
+
* Get the name of the field of the dimension
|
|
44640
|
+
* e.g. "stage_id" -> "stage_id", "create_date:month" -> "create_date"
|
|
44641
|
+
*/
|
|
44577
44642
|
fieldName: dimension.fieldName,
|
|
44643
|
+
/**
|
|
44644
|
+
* Get the aggregate operator of the dimension
|
|
44645
|
+
* e.g. "stage_id" -> undefined, "create_date:month" -> "month"
|
|
44646
|
+
*/
|
|
44578
44647
|
granularity,
|
|
44648
|
+
/**
|
|
44649
|
+
* Get the type of the field of the dimension
|
|
44650
|
+
* e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
|
|
44651
|
+
*/
|
|
44579
44652
|
type: field?.isCustomField ? "custom" : type,
|
|
44580
44653
|
order: dimension.order,
|
|
44581
44654
|
isValid: !!field,
|
|
@@ -45797,6 +45870,8 @@ function extractFormulaIdFromToken(tokenAtCursor) {
|
|
|
45797
45870
|
//#endregion
|
|
45798
45871
|
//#region src/components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store.ts
|
|
45799
45872
|
var PivotSidePanelStore = class extends SpreadsheetStore {
|
|
45873
|
+
pivotId;
|
|
45874
|
+
updateMode;
|
|
45800
45875
|
mutators = [
|
|
45801
45876
|
"reset",
|
|
45802
45877
|
"deferUpdates",
|
|
@@ -60108,6 +60183,8 @@ function buildCompilationParameters(context, getters, computeCell) {
|
|
|
60108
60183
|
return new CompilationParametersBuilder(context, getters, computeCell).getParameters();
|
|
60109
60184
|
}
|
|
60110
60185
|
var CompilationParametersBuilder = class {
|
|
60186
|
+
getters;
|
|
60187
|
+
computeCell;
|
|
60111
60188
|
evalContext;
|
|
60112
60189
|
rangeCache = {};
|
|
60113
60190
|
constructor(context, getters, computeCell) {
|
|
@@ -61238,6 +61315,7 @@ const ERROR_CYCLE_CELL = Object.freeze(createEvaluatedCell({
|
|
|
61238
61315
|
}));
|
|
61239
61316
|
const EMPTY_CELL = Object.freeze(createEvaluatedCell({ value: null }));
|
|
61240
61317
|
var Evaluator = class {
|
|
61318
|
+
context;
|
|
61241
61319
|
getters;
|
|
61242
61320
|
compilationParams;
|
|
61243
61321
|
evaluatedCells = new PositionMap();
|
|
@@ -63870,6 +63948,8 @@ var PivotUIPlugin = class extends CoreViewPlugin {
|
|
|
63870
63948
|
//#endregion
|
|
63871
63949
|
//#region src/clipboard_handlers/abstract_clipboard_handler.ts
|
|
63872
63950
|
var ClipboardHandler = class {
|
|
63951
|
+
getters;
|
|
63952
|
+
dispatch;
|
|
63873
63953
|
constructor(getters, dispatch) {
|
|
63874
63954
|
this.getters = getters;
|
|
63875
63955
|
this.dispatch = dispatch;
|
|
@@ -66164,6 +66244,8 @@ function transformPositionWithMerge(toTransform, executed) {
|
|
|
66164
66244
|
//#endregion
|
|
66165
66245
|
//#region src/collaborative/revisions.ts
|
|
66166
66246
|
var Revision = class {
|
|
66247
|
+
rootCommand;
|
|
66248
|
+
timestamp;
|
|
66167
66249
|
id;
|
|
66168
66250
|
clientId;
|
|
66169
66251
|
_commands = [];
|
|
@@ -66200,6 +66282,9 @@ var Revision = class {
|
|
|
66200
66282
|
//#region src/collaborative/session.ts
|
|
66201
66283
|
var ClientDisconnectedError = class extends Error {};
|
|
66202
66284
|
var Session = class extends EventBus {
|
|
66285
|
+
revisions;
|
|
66286
|
+
transportService;
|
|
66287
|
+
serverRevisionId;
|
|
66203
66288
|
/**
|
|
66204
66289
|
* Positions of the others client.
|
|
66205
66290
|
*/
|
|
@@ -69779,6 +69864,9 @@ var GridSelectionPlugin = class extends UIPlugin {
|
|
|
69779
69864
|
//#endregion
|
|
69780
69865
|
//#region src/helpers/internal_viewport.ts
|
|
69781
69866
|
var InternalViewport = class {
|
|
69867
|
+
getters;
|
|
69868
|
+
sheetId;
|
|
69869
|
+
boundaries;
|
|
69782
69870
|
top;
|
|
69783
69871
|
bottom;
|
|
69784
69872
|
left;
|
|
@@ -74589,6 +74677,7 @@ function instantiateClipboard() {
|
|
|
74589
74677
|
return new WebClipboardWrapper(navigator.clipboard);
|
|
74590
74678
|
}
|
|
74591
74679
|
var WebClipboardWrapper = class {
|
|
74680
|
+
clipboard;
|
|
74592
74681
|
constructor(clipboard) {
|
|
74593
74682
|
this.clipboard = clipboard;
|
|
74594
74683
|
}
|
|
@@ -74860,6 +74949,7 @@ var Spreadsheet = class extends _odoo_owl.Component {
|
|
|
74860
74949
|
//#endregion
|
|
74861
74950
|
//#region src/collaborative/readonly_transport_filter.ts
|
|
74862
74951
|
var ReadonlyTransportFilter = class {
|
|
74952
|
+
transportService;
|
|
74863
74953
|
constructor(transportService) {
|
|
74864
74954
|
this.transportService = transportService;
|
|
74865
74955
|
}
|
|
@@ -74891,6 +74981,8 @@ function inverseCommand(cmd) {
|
|
|
74891
74981
|
* @param operations initial operations
|
|
74892
74982
|
*/
|
|
74893
74983
|
var Branch = class Branch {
|
|
74984
|
+
buildTransformation;
|
|
74985
|
+
operations;
|
|
74894
74986
|
constructor(buildTransformation, operations = []) {
|
|
74895
74987
|
this.buildTransformation = buildTransformation;
|
|
74896
74988
|
this.operations = operations;
|
|
@@ -75007,6 +75099,8 @@ var Branch = class Branch {
|
|
|
75007
75099
|
* to revert it).
|
|
75008
75100
|
*/
|
|
75009
75101
|
var Operation = class {
|
|
75102
|
+
id;
|
|
75103
|
+
data;
|
|
75010
75104
|
constructor(id, data) {
|
|
75011
75105
|
this.id = id;
|
|
75012
75106
|
this.data = data;
|
|
@@ -75016,6 +75110,8 @@ var Operation = class {
|
|
|
75016
75110
|
}
|
|
75017
75111
|
};
|
|
75018
75112
|
var LazyOperation = class LazyOperation {
|
|
75113
|
+
id;
|
|
75114
|
+
lazyData;
|
|
75019
75115
|
constructor(id, lazyData) {
|
|
75020
75116
|
this.id = id;
|
|
75021
75117
|
this.lazyData = lazyData;
|
|
@@ -75041,6 +75137,7 @@ var LazyOperation = class LazyOperation {
|
|
|
75041
75137
|
* ```
|
|
75042
75138
|
*/
|
|
75043
75139
|
var OperationSequence = class OperationSequence {
|
|
75140
|
+
operations;
|
|
75044
75141
|
constructor(operations) {
|
|
75045
75142
|
this.operations = operations;
|
|
75046
75143
|
}
|
|
@@ -75116,6 +75213,7 @@ var OperationSequence = class OperationSequence {
|
|
|
75116
75213
|
*
|
|
75117
75214
|
*/
|
|
75118
75215
|
var Tree = class {
|
|
75216
|
+
buildTransformation;
|
|
75119
75217
|
branches;
|
|
75120
75218
|
branchingOperationIds = /* @__PURE__ */ new Map();
|
|
75121
75219
|
constructor(buildTransformation, initialBranch) {
|
|
@@ -75930,6 +76028,7 @@ var EventStream = class {
|
|
|
75930
76028
|
* with the new selected anchor
|
|
75931
76029
|
*/
|
|
75932
76030
|
var SelectionStreamProcessorImpl = class {
|
|
76031
|
+
getters;
|
|
75933
76032
|
stream;
|
|
75934
76033
|
/**
|
|
75935
76034
|
* "Active" anchor used as a reference to compute new anchors
|
|
@@ -81747,6 +81846,6 @@ exports.stores = stores;
|
|
|
81747
81846
|
exports.tokenColors = tokenColors;
|
|
81748
81847
|
exports.tokenize = tokenize;
|
|
81749
81848
|
|
|
81750
|
-
__info__.version = "19.2.
|
|
81751
|
-
__info__.date = "2026-05-
|
|
81752
|
-
__info__.hash = "
|
|
81849
|
+
__info__.version = "19.2.13";
|
|
81850
|
+
__info__.date = "2026-05-15T07:07:37.391Z";
|
|
81851
|
+
__info__.hash = "fece642";
|
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.2.
|
|
6
|
-
* @date 2026-05-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.2.13
|
|
6
|
+
* @date 2026-05-15T07:07:39.096Z
|
|
7
|
+
* @hash fece642
|
|
8
8
|
*/
|
|
9
9
|
:root {
|
|
10
10
|
--os-gray-100: light-dark(#f9fafb, #1b1d26);
|