@odoo/o-spreadsheet 19.5.0-alpha.15 → 19.5.0-alpha.16

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.5.0-alpha.15
6
- * @date 2026-09-01T11:37:11.514Z
7
- * @hash 23c00bb
5
+ * @version 19.5.0-alpha.16
6
+ * @date 2026-09-04T07:53:23.908Z
7
+ * @hash bb7357a
8
8
  */
9
9
 
10
10
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -13902,7 +13902,6 @@ var ViewportsStore = class extends SpreadsheetStore {
13902
13902
  getFooterSize: this.getFooterSizeCallback
13903
13903
  });
13904
13904
  sheetsWithDirtyViewports = /* @__PURE__ */ new Set();
13905
- shouldRepositionViewports = false;
13906
13905
  displayedSheetId = this.model.getters.getActiveSheetId();
13907
13906
  constructor(get) {
13908
13907
  super(get);
@@ -13918,7 +13917,6 @@ var ViewportsStore = class extends SpreadsheetStore {
13918
13917
  this.sheetsWithDirtyViewports.add(sheetId);
13919
13918
  this.syncPaneDivision(sheetId);
13920
13919
  }
13921
- this.shouldRepositionViewports = !this.getters.getSelectedFigureIds().length;
13922
13920
  break;
13923
13921
  case "UNFREEZE_ROWS":
13924
13922
  case "UNFREEZE_COLUMNS":
@@ -13961,17 +13959,8 @@ var ViewportsStore = class extends SpreadsheetStore {
13961
13959
  }
13962
13960
  }
13963
13961
  finalize() {
13964
- for (const sheetId of this.sheetsWithDirtyViewports) {
13965
- this.viewports.resetViewports(sheetId);
13966
- if (this.shouldRepositionViewports) {
13967
- const position = this.getters.getSheetPosition(sheetId);
13968
- this.viewports.getSubViewports(sheetId).forEach((viewport) => {
13969
- viewport.repositionViewport(position);
13970
- });
13971
- }
13972
- }
13962
+ for (const sheetId of this.sheetsWithDirtyViewports) this.viewports.resetViewports(sheetId);
13973
13963
  this.sheetsWithDirtyViewports = /* @__PURE__ */ new Set();
13974
- this.shouldRepositionViewports = false;
13975
13964
  this.setViewports();
13976
13965
  }
13977
13966
  setViewports() {
@@ -34193,7 +34182,8 @@ function getLineChartData(definition, { labelValues, dataSetsValues }, getters,
34193
34182
  format,
34194
34183
  locale: getters.getLocale()
34195
34184
  }));
34196
- ({labels, dataSetsValues} = filterInvalidDataPoints(labels, dataSetsValues));
34185
+ const invalidDataValue = definition.fillArea ? ZERO : EMPTY$1;
34186
+ ({labels, dataSetsValues} = filterInvalidDataPoints(labels, dataSetsValues, invalidDataValue));
34197
34187
  if (axisType === "time") ({labels, dataSetsValues} = fixEmptyLabelsForDateCharts(labels, dataSetsValues));
34198
34188
  if (definition.aggregated) ({labels, dataSetsValues} = aggregateDataForLabels(labels, dataSetsValues));
34199
34189
  if (definition.cumulative) dataSetsValues = makeDatasetsCumulative(dataSetsValues, "asc");
@@ -34570,7 +34560,7 @@ function fixEmptyLabelsForDateCharts(labels, dataSetsValues) {
34570
34560
  * - have neither a label nor a value
34571
34561
  * - have no label and a non-numeric value
34572
34562
  */
34573
- function filterInvalidDataPoints(labels, datasets) {
34563
+ function filterInvalidDataPoints(labels, datasets, invalidDataValue = EMPTY$1) {
34574
34564
  const dataPointsIndexes = range(0, Math.max(labels.length, ...datasets.map((dataset) => dataset.data?.length || 0))).filter((dataPointIndex) => {
34575
34565
  const label = labels[dataPointIndex];
34576
34566
  const values = datasets.map((dataset) => dataset.data?.[dataPointIndex]);
@@ -34580,7 +34570,7 @@ function filterInvalidDataPoints(labels, datasets) {
34580
34570
  labels: dataPointsIndexes.map((i) => labels[i] || ""),
34581
34571
  dataSetsValues: datasets.map((dataset) => ({
34582
34572
  ...dataset,
34583
- data: dataPointsIndexes.map((i) => isNumberResult(dataset.data[i]) ? dataset.data[i] : EMPTY$1)
34573
+ data: dataPointsIndexes.map((i) => isNumberResult(dataset.data[i]) ? dataset.data[i] : invalidDataValue)
34584
34574
  }))
34585
34575
  };
34586
34576
  }
@@ -91438,6 +91428,6 @@ exports.stores = stores;
91438
91428
  exports.tokenColors = tokenColors;
91439
91429
  exports.tokenize = tokenize;
91440
91430
 
91441
- __info__.version = "19.5.0-alpha.15";
91442
- __info__.date = "2026-09-01T11:37:11.514Z";
91443
- __info__.hash = "23c00bb";
91431
+ __info__.version = "19.5.0-alpha.16";
91432
+ __info__.date = "2026-09-04T07:53:23.908Z";
91433
+ __info__.hash = "bb7357a";
@@ -2,27 +2,27 @@
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.5.0-alpha.15
6
- * @date 2026-09-01T11:37:13.274Z
7
- * @hash 23c00bb
5
+ * @version 19.5.0-alpha.16
6
+ * @date 2026-09-04T07:53:25.720Z
7
+ * @hash bb7357a
8
8
  */
9
9
  :root {
10
- --os-gray-100: light-dark(#f9fafb, #1b1d26);
11
- --os-gray-200: light-dark(#e7e9ed, #262a36); /* GRAY_200 */
12
- --os-gray-300: light-dark(#d8dadd, #3c3e4b); /* GRAY_300 */
13
- --os-gray-400: light-dark(#ced4da, #5a5e6b);
14
- --os-gray-500: light-dark(#7c7f89, #6b707f);
15
- --os-gray-600: light-dark(#5f636f, #7e8392);
16
- --os-gray-700: light-dark(#374151, #b1b3bc);
17
- --os-gray-800: light-dark(#1f2937, #d1d1d1);
18
- --os-gray-900: light-dark(#111827, #e4e4e4); /* GRAY_900 */
10
+ --os-gray-100: light-dark(#f8f9fa, #1c1c20);
11
+ --os-gray-200: light-dark(#e7ebed, #25262b); /* GRAY_200 */
12
+ --os-gray-300: light-dark(#dee2e6, #3a3b41); /* GRAY_300 */
13
+ --os-gray-400: light-dark(#ced4da, #56575e);
14
+ --os-gray-500: light-dark(#adb5bd, #6e6f77);
15
+ --os-gray-600: light-dark(#6c757d, #88898f);
16
+ --os-gray-700: light-dark(#495057, #b3b4b8);
17
+ --os-gray-800: light-dark(#343a40, #d1d1d3);
18
+ --os-gray-900: light-dark(#212529, #e4e4e5); /* GRAY_900 */
19
19
 
20
20
  --os-white: light-dark(#ffffff, #000000);
21
21
  --os-black: light-dark(#000000, #ffffff);
22
22
  --os-white-bg: light-dark(#ffffff, var(--os-gray-200));
23
23
  --os-popover-bg: light-dark(#ffffff, var(--os-gray-200));
24
24
 
25
- --os-default-font: "Roboto", "Arial";
25
+ --os-default-font: "Roboto", "Arial", "Liberation Sans";
26
26
  --os-default-font-size: 10px;
27
27
  --os-link-color: light-dark(#017e84, #02c7b5);
28
28
  --os-link-hover-color: light-dark(#01585c, #4ed8cb);
@@ -207,6 +207,7 @@
207
207
 
208
208
  .o-topbar-top {
209
209
  padding: 2px 10px;
210
+ background-color: var(--os-gray-100);
210
211
 
211
212
  /* Menus */
212
213
  .o-topbar-topleft {
@@ -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.5.0-alpha.15
6
- * @date 2026-09-01T11:37:11.514Z
7
- * @hash 23c00bb
5
+ * @version 19.5.0-alpha.16
6
+ * @date 2026-09-04T07:53:23.908Z
7
+ * @hash bb7357a
8
8
  */
9
9
 
10
10
  import * as owl from "@odoo/owl";
@@ -13901,7 +13901,6 @@ var ViewportsStore = class extends SpreadsheetStore {
13901
13901
  getFooterSize: this.getFooterSizeCallback
13902
13902
  });
13903
13903
  sheetsWithDirtyViewports = /* @__PURE__ */ new Set();
13904
- shouldRepositionViewports = false;
13905
13904
  displayedSheetId = this.model.getters.getActiveSheetId();
13906
13905
  constructor(get) {
13907
13906
  super(get);
@@ -13917,7 +13916,6 @@ var ViewportsStore = class extends SpreadsheetStore {
13917
13916
  this.sheetsWithDirtyViewports.add(sheetId);
13918
13917
  this.syncPaneDivision(sheetId);
13919
13918
  }
13920
- this.shouldRepositionViewports = !this.getters.getSelectedFigureIds().length;
13921
13919
  break;
13922
13920
  case "UNFREEZE_ROWS":
13923
13921
  case "UNFREEZE_COLUMNS":
@@ -13960,17 +13958,8 @@ var ViewportsStore = class extends SpreadsheetStore {
13960
13958
  }
13961
13959
  }
13962
13960
  finalize() {
13963
- for (const sheetId of this.sheetsWithDirtyViewports) {
13964
- this.viewports.resetViewports(sheetId);
13965
- if (this.shouldRepositionViewports) {
13966
- const position = this.getters.getSheetPosition(sheetId);
13967
- this.viewports.getSubViewports(sheetId).forEach((viewport) => {
13968
- viewport.repositionViewport(position);
13969
- });
13970
- }
13971
- }
13961
+ for (const sheetId of this.sheetsWithDirtyViewports) this.viewports.resetViewports(sheetId);
13972
13962
  this.sheetsWithDirtyViewports = /* @__PURE__ */ new Set();
13973
- this.shouldRepositionViewports = false;
13974
13963
  this.setViewports();
13975
13964
  }
13976
13965
  setViewports() {
@@ -34192,7 +34181,8 @@ function getLineChartData(definition, { labelValues, dataSetsValues }, getters,
34192
34181
  format,
34193
34182
  locale: getters.getLocale()
34194
34183
  }));
34195
- ({labels, dataSetsValues} = filterInvalidDataPoints(labels, dataSetsValues));
34184
+ const invalidDataValue = definition.fillArea ? ZERO : EMPTY$1;
34185
+ ({labels, dataSetsValues} = filterInvalidDataPoints(labels, dataSetsValues, invalidDataValue));
34196
34186
  if (axisType === "time") ({labels, dataSetsValues} = fixEmptyLabelsForDateCharts(labels, dataSetsValues));
34197
34187
  if (definition.aggregated) ({labels, dataSetsValues} = aggregateDataForLabels(labels, dataSetsValues));
34198
34188
  if (definition.cumulative) dataSetsValues = makeDatasetsCumulative(dataSetsValues, "asc");
@@ -34569,7 +34559,7 @@ function fixEmptyLabelsForDateCharts(labels, dataSetsValues) {
34569
34559
  * - have neither a label nor a value
34570
34560
  * - have no label and a non-numeric value
34571
34561
  */
34572
- function filterInvalidDataPoints(labels, datasets) {
34562
+ function filterInvalidDataPoints(labels, datasets, invalidDataValue = EMPTY$1) {
34573
34563
  const dataPointsIndexes = range(0, Math.max(labels.length, ...datasets.map((dataset) => dataset.data?.length || 0))).filter((dataPointIndex) => {
34574
34564
  const label = labels[dataPointIndex];
34575
34565
  const values = datasets.map((dataset) => dataset.data?.[dataPointIndex]);
@@ -34579,7 +34569,7 @@ function filterInvalidDataPoints(labels, datasets) {
34579
34569
  labels: dataPointsIndexes.map((i) => labels[i] || ""),
34580
34570
  dataSetsValues: datasets.map((dataset) => ({
34581
34571
  ...dataset,
34582
- data: dataPointsIndexes.map((i) => isNumberResult(dataset.data[i]) ? dataset.data[i] : EMPTY$1)
34572
+ data: dataPointsIndexes.map((i) => isNumberResult(dataset.data[i]) ? dataset.data[i] : invalidDataValue)
34583
34573
  }))
34584
34574
  };
34585
34575
  }
@@ -91155,6 +91145,6 @@ const chartHelpers = {
91155
91145
  //#endregion
91156
91146
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, BadExpressionError, CHART_TYPES, CellErrorType, CellValueType, CircularDependencyError, ClientDisconnectedError, ClipboardMIMEType, CommandResult, CompiledFormula, CorePlugin, DEFAULT_LOCALE, DEFAULT_LOCALES, DEFAULT_LOCALE_DIGIT_GROUPING, DIRECTION, DispatchResult, DivisionByZeroError, EvaluationError, EvaluationPlugin, InvalidReferenceError, LocalTransportService, Model, NEXT_VALUE, NotAvailableError, NumberTooLargeError, OrderedLayers, PREVIOUS_VALUE, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, SplillBlockedError, Spreadsheet, SpreadsheetPivotTable, UIPlugin, UnknownFunctionError, __info__, addFunction, addRenderingLayer, astToFormula, availableConditionalFormatOperators, availableDataValidationOperators, availableFiltersOperators, borderPositions, borderStyles, canExecuteInReadonly, categories, chartHelpers, compatibility, components, composerFocusTypes, constants, convertAstNodes, coreTypes, createAutocompleteArgumentsProvider, dispatcheableEvaluationCommandTypes, errorTypes, evaluationCommandTypes, filterDateCriterionOperators, filterNumberCriterionOperators, filterTextCriterionOperators, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidSubtotalFormulasCommands, invalidateBordersCommands, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isDispatcheableEvaluationCommand, isEvaluationCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, lockedSheetAllowedCommands, parse, parseTokens, readonlyAllowedCommands, registries, schemeToColorScale, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
91157
91147
 
91158
- __info__.version = "19.5.0-alpha.15";
91159
- __info__.date = "2026-09-01T11:37:11.514Z";
91160
- __info__.hash = "23c00bb";
91148
+ __info__.version = "19.5.0-alpha.16";
91149
+ __info__.date = "2026-09-04T07:53:23.908Z";
91150
+ __info__.hash = "bb7357a";
@@ -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.5.0-alpha.15
6
- * @date 2026-09-01T11:37:11.514Z
7
- * @hash 23c00bb
5
+ * @version 19.5.0-alpha.16
6
+ * @date 2026-09-04T07:53:23.908Z
7
+ * @hash bb7357a
8
8
  */
9
9
 
10
10
  (function(exports, _odoo_owl) {
@@ -13903,7 +13903,6 @@ set(value) {
13903
13903
  getFooterSize: this.getFooterSizeCallback
13904
13904
  });
13905
13905
  sheetsWithDirtyViewports = /* @__PURE__ */ new Set();
13906
- shouldRepositionViewports = false;
13907
13906
  displayedSheetId = this.model.getters.getActiveSheetId();
13908
13907
  constructor(get) {
13909
13908
  super(get);
@@ -13919,7 +13918,6 @@ set(value) {
13919
13918
  this.sheetsWithDirtyViewports.add(sheetId);
13920
13919
  this.syncPaneDivision(sheetId);
13921
13920
  }
13922
- this.shouldRepositionViewports = !this.getters.getSelectedFigureIds().length;
13923
13921
  break;
13924
13922
  case "UNFREEZE_ROWS":
13925
13923
  case "UNFREEZE_COLUMNS":
@@ -13962,17 +13960,8 @@ set(value) {
13962
13960
  }
13963
13961
  }
13964
13962
  finalize() {
13965
- for (const sheetId of this.sheetsWithDirtyViewports) {
13966
- this.viewports.resetViewports(sheetId);
13967
- if (this.shouldRepositionViewports) {
13968
- const position = this.getters.getSheetPosition(sheetId);
13969
- this.viewports.getSubViewports(sheetId).forEach((viewport) => {
13970
- viewport.repositionViewport(position);
13971
- });
13972
- }
13973
- }
13963
+ for (const sheetId of this.sheetsWithDirtyViewports) this.viewports.resetViewports(sheetId);
13974
13964
  this.sheetsWithDirtyViewports = /* @__PURE__ */ new Set();
13975
- this.shouldRepositionViewports = false;
13976
13965
  this.setViewports();
13977
13966
  }
13978
13967
  setViewports() {
@@ -34194,7 +34183,8 @@ set(value) {
34194
34183
  format,
34195
34184
  locale: getters.getLocale()
34196
34185
  }));
34197
- ({labels, dataSetsValues} = filterInvalidDataPoints(labels, dataSetsValues));
34186
+ const invalidDataValue = definition.fillArea ? ZERO : EMPTY$1;
34187
+ ({labels, dataSetsValues} = filterInvalidDataPoints(labels, dataSetsValues, invalidDataValue));
34198
34188
  if (axisType === "time") ({labels, dataSetsValues} = fixEmptyLabelsForDateCharts(labels, dataSetsValues));
34199
34189
  if (definition.aggregated) ({labels, dataSetsValues} = aggregateDataForLabels(labels, dataSetsValues));
34200
34190
  if (definition.cumulative) dataSetsValues = makeDatasetsCumulative(dataSetsValues, "asc");
@@ -34571,7 +34561,7 @@ set(value) {
34571
34561
  * - have neither a label nor a value
34572
34562
  * - have no label and a non-numeric value
34573
34563
  */
34574
- function filterInvalidDataPoints(labels, datasets) {
34564
+ function filterInvalidDataPoints(labels, datasets, invalidDataValue = EMPTY$1) {
34575
34565
  const dataPointsIndexes = range(0, Math.max(labels.length, ...datasets.map((dataset) => dataset.data?.length || 0))).filter((dataPointIndex) => {
34576
34566
  const label = labels[dataPointIndex];
34577
34567
  const values = datasets.map((dataset) => dataset.data?.[dataPointIndex]);
@@ -34581,7 +34571,7 @@ set(value) {
34581
34571
  labels: dataPointsIndexes.map((i) => labels[i] || ""),
34582
34572
  dataSetsValues: datasets.map((dataset) => ({
34583
34573
  ...dataset,
34584
- data: dataPointsIndexes.map((i) => isNumberResult(dataset.data[i]) ? dataset.data[i] : EMPTY$1)
34574
+ data: dataPointsIndexes.map((i) => isNumberResult(dataset.data[i]) ? dataset.data[i] : invalidDataValue)
34585
34575
  }))
34586
34576
  };
34587
34577
  }
@@ -91255,8 +91245,8 @@ exports.stores = stores;
91255
91245
  exports.tokenColors = tokenColors;
91256
91246
  exports.tokenize = tokenize;
91257
91247
 
91258
- __info__.version = "19.5.0-alpha.15";
91259
- __info__.date = "2026-09-01T11:37:11.514Z";
91260
- __info__.hash = "23c00bb";
91248
+ __info__.version = "19.5.0-alpha.16";
91249
+ __info__.date = "2026-09-04T07:53:23.908Z";
91250
+ __info__.hash = "bb7357a";
91261
91251
 
91262
91252
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);