@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.
@@ -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.19
6
- * @date 2026-05-12T12:20:42.167Z
7
- * @hash aea4a8c
5
+ * @version 19.1.20
6
+ * @date 2026-05-15T07:06:03.182Z
7
+ * @hash b6a68b8
8
8
  */
9
9
 
10
10
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -2037,6 +2037,7 @@ var DependencyContainer = class extends EventBus {
2037
2037
  }
2038
2038
  };
2039
2039
  var StoreFactory = class {
2040
+ get;
2040
2041
  pendingBuilds = /* @__PURE__ */ new Set();
2041
2042
  constructor(get) {
2042
2043
  this.get = get;
@@ -2081,6 +2082,7 @@ stores.inject(MyMetaStore, storeInstance);
2081
2082
  return MetaStore;
2082
2083
  }
2083
2084
  var DisposableStore = class {
2085
+ get;
2084
2086
  disposeCallbacks = [];
2085
2087
  constructor(get) {
2086
2088
  this.get = get;
@@ -2836,6 +2838,7 @@ function getAlternatingColorsPalette(quantity) {
2836
2838
  else return ALTERNATING_COLORS_XL;
2837
2839
  }
2838
2840
  var ColorGenerator = class {
2841
+ preferredColors;
2839
2842
  currentColorIndex = 0;
2840
2843
  palette;
2841
2844
  constructor(paletteSize, preferredColors = []) {
@@ -3554,6 +3557,7 @@ const _t = function(s, ...values) {
3554
3557
  return sprintf(_translate(s), ...values);
3555
3558
  };
3556
3559
  var LazyTranslatedString = class extends String {
3560
+ values;
3557
3561
  constructor(str, values) {
3558
3562
  super(str);
3559
3563
  this.values = values;
@@ -3583,6 +3587,8 @@ const CellErrorType = {
3583
3587
  };
3584
3588
  const errorTypes = new Set(Object.values(CellErrorType));
3585
3589
  var EvaluationError = class {
3590
+ message;
3591
+ value;
3586
3592
  constructor(message = _t("Error"), value = CellErrorType.GenericError) {
3587
3593
  this.message = message;
3588
3594
  this.value = value;
@@ -3615,6 +3621,7 @@ var UnknownFunctionError = class extends EvaluationError {
3615
3621
  }
3616
3622
  };
3617
3623
  var SplillBlockedError = class extends EvaluationError {
3624
+ errorOriginPosition;
3618
3625
  constructor(message = _t("Spill range is not empty"), errorOriginPosition) {
3619
3626
  super(message, CellErrorType.SpilledBlocked);
3620
3627
  this.errorOriginPosition = errorOriginPosition;
@@ -10066,6 +10073,7 @@ function getScorecardConfiguration({ width, height }, runtime) {
10066
10073
  }, runtime).computeDesign();
10067
10074
  }
10068
10075
  var ScorecardChartConfigBuilder = class {
10076
+ runtime;
10069
10077
  context;
10070
10078
  width;
10071
10079
  height;
@@ -16113,6 +16121,10 @@ var GaugeChartComponent = class extends _odoo_owl.Component {
16113
16121
  * Animation interpolating values using the ease-out quartic curve function (chartJS default easing)
16114
16122
  */
16115
16123
  var Animation = class {
16124
+ startValue;
16125
+ endValue;
16126
+ duration;
16127
+ callback;
16116
16128
  startTime = void 0;
16117
16129
  animationFrameId = null;
16118
16130
  constructor(startValue, endValue, duration, callback) {
@@ -16576,6 +16588,11 @@ var Popover = class extends _odoo_owl.Component {
16576
16588
  }
16577
16589
  };
16578
16590
  var PopoverPositionContext = class {
16591
+ anchorRect;
16592
+ containerRect;
16593
+ propsMaxSize;
16594
+ spreadsheetOffset;
16595
+ lastPosition;
16579
16596
  constructor(anchorRect, containerRect, propsMaxSize, spreadsheetOffset, lastPosition) {
16580
16597
  this.anchorRect = anchorRect;
16581
16598
  this.containerRect = containerRect;
@@ -28531,6 +28548,7 @@ var AbstractComposerStore = class extends SpreadsheetStore {
28531
28548
  //#endregion
28532
28549
  //#region src/components/composer/standalone_composer/standalone_composer_store.ts
28533
28550
  var StandaloneComposerStore = class extends AbstractComposerStore {
28551
+ args;
28534
28552
  constructor(get, args) {
28535
28553
  super(get);
28536
28554
  this.args = args;
@@ -29373,6 +29391,7 @@ var DOMDndHelper = class {
29373
29391
  }
29374
29392
  };
29375
29393
  var ContainerWrapper = class {
29394
+ el;
29376
29395
  constructor(el) {
29377
29396
  this.el = el;
29378
29397
  }
@@ -29444,6 +29463,10 @@ var FocusStore = class {
29444
29463
  * This plugin handles this internal state.
29445
29464
  */
29446
29465
  var SelectionInputStore = class extends SpreadsheetStore {
29466
+ initialRanges;
29467
+ inputHasSingleRange;
29468
+ colors;
29469
+ disabledRanges;
29447
29470
  mutators = [
29448
29471
  "resetWithRanges",
29449
29472
  "focusById",
@@ -31963,6 +31986,7 @@ function buildTableStyle(name, templateName, primaryColor) {
31963
31986
  * Represent a raw XML string
31964
31987
  */
31965
31988
  var XMLString = class {
31989
+ xmlString;
31966
31990
  /**
31967
31991
  * @param xmlString should be a well formed, properly escaped XML string
31968
31992
  */
@@ -38341,13 +38365,30 @@ var PivotRuntimeDefinition = class {
38341
38365
  break;
38342
38366
  }
38343
38367
  return {
38368
+ /**
38369
+ * Get the id of the measure, as it is stored in the pivot formula
38370
+ */
38344
38371
  id: measure.id,
38372
+ /**
38373
+ * Display name of the measure
38374
+ * e.g. "__count" -> "Count", "amount_total" -> "Total Amount"
38375
+ */
38345
38376
  get displayName() {
38346
38377
  return measure.userDefinedName ?? field?.string ?? measure.fieldName;
38347
38378
  },
38348
38379
  userDefinedName: measure.userDefinedName,
38380
+ /**
38381
+ * Get the name of the field of the measure
38382
+ */
38349
38383
  fieldName,
38384
+ /**
38385
+ * Get the aggregator of the measure
38386
+ */
38350
38387
  aggregator,
38388
+ /**
38389
+ * Get the type of the measure field
38390
+ * e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
38391
+ */
38351
38392
  type: fieldName === "__count" ? "integer" : field?.type ?? "integer",
38352
38393
  isValid,
38353
38394
  isHidden: measure.isHidden,
@@ -38361,10 +38402,30 @@ var PivotRuntimeDefinition = class {
38361
38402
  const type = field?.type ?? "integer";
38362
38403
  const granularity = field && isDateOrDatetimeField(field) ? dimension.granularity : void 0;
38363
38404
  return {
38405
+ /**
38406
+ * Get the display name of the dimension
38407
+ * e.g. "stage_id" -> "Stage", "create_date:month" -> "Create Date"
38408
+ */
38364
38409
  displayName: field?.string ?? dimension.fieldName,
38410
+ /**
38411
+ * Get the name of the dimension, as it is stored in the pivot formula
38412
+ * e.g. "stage_id", "create_date:month"
38413
+ */
38365
38414
  nameWithGranularity: dimension.fieldName + (granularity ? `:${granularity}` : ""),
38415
+ /**
38416
+ * Get the name of the field of the dimension
38417
+ * e.g. "stage_id" -> "stage_id", "create_date:month" -> "create_date"
38418
+ */
38366
38419
  fieldName: dimension.fieldName,
38420
+ /**
38421
+ * Get the aggregate operator of the dimension
38422
+ * e.g. "stage_id" -> undefined, "create_date:month" -> "month"
38423
+ */
38367
38424
  granularity,
38425
+ /**
38426
+ * Get the type of the field of the dimension
38427
+ * e.g. "stage_id" -> "many2one", "create_date:month" -> "date"
38428
+ */
38368
38429
  type: field?.isCustomField ? "custom" : type,
38369
38430
  order: dimension.order,
38370
38431
  isValid: !!field,
@@ -49230,6 +49291,8 @@ var MoreFormatsPanel = class extends _odoo_owl.Component {
49230
49291
  //#endregion
49231
49292
  //#region src/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel_store.ts
49232
49293
  var PivotMeasureDisplayPanelStore = class extends SpreadsheetStore {
49294
+ pivotId;
49295
+ initialMeasure;
49233
49296
  mutators = [
49234
49297
  "cancelMeasureDisplayEdition",
49235
49298
  "updateMeasureDisplayType",
@@ -49682,6 +49745,7 @@ var PivotDimensionOrder = class extends _odoo_owl.Component {
49682
49745
  //#endregion
49683
49746
  //#region src/formulas/code_builder.ts
49684
49747
  var FunctionCodeBuilder = class {
49748
+ scope;
49685
49749
  code = "";
49686
49750
  constructor(scope = new Scope()) {
49687
49751
  this.scope = scope;
@@ -49697,6 +49761,8 @@ var FunctionCodeBuilder = class {
49697
49761
  }
49698
49762
  };
49699
49763
  var FunctionCodeImpl = class {
49764
+ scope;
49765
+ returnExpression;
49700
49766
  code;
49701
49767
  constructor(scope, code, returnExpression) {
49702
49768
  this.scope = scope;
@@ -50587,6 +50653,8 @@ function extractFormulaIdFromToken(tokenAtCursor) {
50587
50653
  //#endregion
50588
50654
  //#region src/components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store.ts
50589
50655
  var PivotSidePanelStore = class extends SpreadsheetStore {
50656
+ pivotId;
50657
+ updateMode;
50590
50658
  mutators = [
50591
50659
  "reset",
50592
50660
  "deferUpdates",
@@ -54038,6 +54106,10 @@ var CellPlugin = class extends CorePlugin {
54038
54106
  }
54039
54107
  };
54040
54108
  var FormulaCellWithDependencies = class {
54109
+ id;
54110
+ format;
54111
+ sheetId;
54112
+ getRangeString;
54041
54113
  isFormula = true;
54042
54114
  compiledFormula;
54043
54115
  constructor(id, compiledFormula, format, dependencies, sheetId, getRangeString) {
@@ -54071,6 +54143,10 @@ var FormulaCellWithDependencies = class {
54071
54143
  }
54072
54144
  };
54073
54145
  var RangeReferenceToken = class {
54146
+ ranges;
54147
+ rangeIndex;
54148
+ sheetId;
54149
+ getRangeString;
54074
54150
  type = "REFERENCE";
54075
54151
  constructor(ranges, rangeIndex, sheetId, getRangeString) {
54076
54152
  this.ranges = ranges;
@@ -57929,6 +58005,8 @@ function buildCompilationParameters(context, getters, computeCell) {
57929
58005
  return new CompilationParametersBuilder(context, getters, computeCell).getParameters();
57930
58006
  }
57931
58007
  var CompilationParametersBuilder = class {
58008
+ getters;
58009
+ computeCell;
57932
58010
  evalContext;
57933
58011
  rangeCache = {};
57934
58012
  constructor(context, getters, computeCell) {
@@ -59059,6 +59137,7 @@ const ERROR_CYCLE_CELL = Object.freeze(createEvaluatedCell({
59059
59137
  }));
59060
59138
  const EMPTY_CELL = Object.freeze(createEvaluatedCell({ value: null }));
59061
59139
  var Evaluator = class {
59140
+ context;
59062
59141
  getters;
59063
59142
  compilationParams;
59064
59143
  evaluatedCells = new PositionMap();
@@ -61540,6 +61619,8 @@ var PivotUIPlugin = class extends CoreViewPlugin {
61540
61619
  //#endregion
61541
61620
  //#region src/clipboard_handlers/abstract_clipboard_handler.ts
61542
61621
  var ClipboardHandler = class {
61622
+ getters;
61623
+ dispatch;
61543
61624
  constructor(getters, dispatch) {
61544
61625
  this.getters = getters;
61545
61626
  this.dispatch = dispatch;
@@ -63809,6 +63890,8 @@ function transformPositionWithMerge(toTransform, executed) {
63809
63890
  //#endregion
63810
63891
  //#region src/collaborative/revisions.ts
63811
63892
  var Revision = class {
63893
+ rootCommand;
63894
+ timestamp;
63812
63895
  id;
63813
63896
  clientId;
63814
63897
  _commands = [];
@@ -63845,6 +63928,9 @@ var Revision = class {
63845
63928
  //#region src/collaborative/session.ts
63846
63929
  var ClientDisconnectedError = class extends Error {};
63847
63930
  var Session = class extends EventBus {
63931
+ revisions;
63932
+ transportService;
63933
+ serverRevisionId;
63848
63934
  /**
63849
63935
  * Positions of the others client.
63850
63936
  */
@@ -67346,6 +67432,9 @@ var GridSelectionPlugin = class extends UIPlugin {
67346
67432
  //#endregion
67347
67433
  //#region src/helpers/internal_viewport.ts
67348
67434
  var InternalViewport = class {
67435
+ getters;
67436
+ sheetId;
67437
+ boundaries;
67349
67438
  top;
67350
67439
  bottom;
67351
67440
  left;
@@ -72063,6 +72152,7 @@ function instantiateClipboard() {
72063
72152
  return new WebClipboardWrapper(navigator.clipboard);
72064
72153
  }
72065
72154
  var WebClipboardWrapper = class {
72155
+ clipboard;
72066
72156
  constructor(clipboard) {
72067
72157
  this.clipboard = clipboard;
72068
72158
  }
@@ -72326,6 +72416,7 @@ var Spreadsheet = class extends _odoo_owl.Component {
72326
72416
  //#endregion
72327
72417
  //#region src/collaborative/readonly_transport_filter.ts
72328
72418
  var ReadonlyTransportFilter = class {
72419
+ transportService;
72329
72420
  constructor(transportService) {
72330
72421
  this.transportService = transportService;
72331
72422
  }
@@ -72357,6 +72448,8 @@ function inverseCommand(cmd) {
72357
72448
  * @param operations initial operations
72358
72449
  */
72359
72450
  var Branch = class Branch {
72451
+ buildTransformation;
72452
+ operations;
72360
72453
  constructor(buildTransformation, operations = []) {
72361
72454
  this.buildTransformation = buildTransformation;
72362
72455
  this.operations = operations;
@@ -72473,6 +72566,8 @@ var Branch = class Branch {
72473
72566
  * to revert it).
72474
72567
  */
72475
72568
  var Operation = class {
72569
+ id;
72570
+ data;
72476
72571
  constructor(id, data) {
72477
72572
  this.id = id;
72478
72573
  this.data = data;
@@ -72482,6 +72577,8 @@ var Operation = class {
72482
72577
  }
72483
72578
  };
72484
72579
  var LazyOperation = class LazyOperation {
72580
+ id;
72581
+ lazyData;
72485
72582
  constructor(id, lazyData) {
72486
72583
  this.id = id;
72487
72584
  this.lazyData = lazyData;
@@ -72507,6 +72604,7 @@ var LazyOperation = class LazyOperation {
72507
72604
  * ```
72508
72605
  */
72509
72606
  var OperationSequence = class OperationSequence {
72607
+ operations;
72510
72608
  constructor(operations) {
72511
72609
  this.operations = operations;
72512
72610
  }
@@ -72582,6 +72680,7 @@ var OperationSequence = class OperationSequence {
72582
72680
  *
72583
72681
  */
72584
72682
  var Tree = class {
72683
+ buildTransformation;
72585
72684
  branches;
72586
72685
  branchingOperationIds = /* @__PURE__ */ new Map();
72587
72686
  constructor(buildTransformation, initialBranch) {
@@ -73394,6 +73493,7 @@ var EventStream = class {
73394
73493
  * with the new selected anchor
73395
73494
  */
73396
73495
  var SelectionStreamProcessorImpl = class {
73496
+ getters;
73397
73497
  stream;
73398
73498
  /**
73399
73499
  * "Active" anchor used as a reference to compute new anchors
@@ -79184,6 +79284,6 @@ exports.stores = stores;
79184
79284
  exports.tokenColors = tokenColors;
79185
79285
  exports.tokenize = tokenize;
79186
79286
 
79187
- __info__.version = "19.1.19";
79188
- __info__.date = "2026-05-12T12:20:42.167Z";
79189
- __info__.hash = "aea4a8c";
79287
+ __info__.version = "19.1.20";
79288
+ __info__.date = "2026-05-15T07:06:03.182Z";
79289
+ __info__.hash = "b6a68b8";
@@ -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.19
6
- * @date 2026-05-12T12:20:43.807Z
7
- * @hash aea4a8c
5
+ * @version 19.1.20
6
+ * @date 2026-05-15T07:06:04.872Z
7
+ * @hash b6a68b8
8
8
  */
9
9
  :root {
10
10
  --os-gray-100: light-dark(#f9fafb, #1b1d26);