@odoo/o-spreadsheet 18.0.81 → 18.0.83

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.
@@ -1,9 +1,9 @@
1
1
  <!--
2
2
  This file is generated by o-spreadsheet build tools. Do not edit it.
3
3
  @see https://github.com/odoo/o-spreadsheet
4
- @version 18.0.81
5
- @date 2026-09-04T07:03:00.345Z
6
- @hash a952c0c
4
+ @version 18.0.83
5
+ @date 2026-10-10T06:31:53.309Z
6
+ @hash 22b9b73
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -4211,7 +4211,7 @@
4211
4211
  <t t-call="o-spreadsheet-Icon.STRIKE"/>
4212
4212
  </div>
4213
4213
  <ColorPickerWidget
4214
- currentColor="rule.style.textColor || '#000000'"
4214
+ currentColor="rule.style.textColor"
4215
4215
  toggleColorPicker="(ev) => this.toggleMenu('cellIsRule-textColor', ev)"
4216
4216
  showColorPicker="state.openedMenu === 'cellIsRule-textColor'"
4217
4217
  onColorPicked="(color) => this.setColor('textColor', color)"
@@ -1,4 +1,4 @@
1
- import { Position } from "../types";
1
+ import { Border, CellPosition, Format, Position, Style, WorkbookData } from "../types";
2
2
  type ItemsDic<T> = {
3
3
  [id: number]: T;
4
4
  };
@@ -11,4 +11,8 @@ export declare function groupItemIdsByZones(positionsByItemId: {
11
11
  [id: number]: Position[];
12
12
  }): Record<string, number>;
13
13
  export declare function getCanonicalRepresentation(item: any): string;
14
+ /**
15
+ * This adds a border/style/format to the cell position in the workbook data, updating the zonified structure accordingly.
16
+ */
17
+ export declare function addStyleToWorkbookData(workbookData: WorkbookData, key: "borders" | "formats" | "styles", position: CellPosition, newItem: Border | Format | Style): void;
14
18
  export {};
@@ -43,7 +43,7 @@ import { getFunctionsFromTokens } from "./formulas";
43
43
  import { isEvaluationError, toBoolean, toJsDate, toNumber, toString } from "./functions/helpers";
44
44
  import { FunctionRegistry, arg } from "./functions/index";
45
45
  import { chartFontColor, formatTickValue, getChartAxisTitleRuntime, getDefaultChartJsRuntime, getFillingMode, getTrendDatasetForBarChart } from "./helpers/figures/charts";
46
- import { ColorGenerator, UuidGenerator, colorToRGBA, computeTextWidth, createCurrencyFormat, deepCopy, deepEquals, expandZoneOnInsertion, formatValue, isDateTime, isDefined, isInside, isMarkdownLink, isNumber, lazy, lettersToNumber, markdownLink, mergeContiguousZones, numberToLetters, overlap, parseMarkdownLink, positionToZone, reduceZoneOnDeletion, rgbaToHex, sanitizeSheetName, splitReference, toCartesian, toUnboundedZone, toXC, toZone, union, unquote } from "./helpers/index";
46
+ import { ColorGenerator, UuidGenerator, addStyleToWorkbookData, colorToRGBA, computeTextWidth, createCurrencyFormat, deepCopy, deepEquals, expandZoneOnInsertion, formatValue, isDateTime, isDefined, isInside, isMarkdownLink, isNumber, lazy, lettersToNumber, markdownLink, mergeContiguousZones, numberToLetters, overlap, parseMarkdownLink, positionToZone, reduceZoneOnDeletion, rgbaToHex, sanitizeSheetName, splitReference, toCartesian, toUnboundedZone, toXC, toZone, union, unquote } from "./helpers/index";
47
47
  import { openLink, urlRepresentation } from "./helpers/links";
48
48
  import { getFirstPivotFunction, getNumberOfPivotFunctions, insertTokenAfterArgSeparator, insertTokenAfterLeftParenthesis, makeFieldProposal } from "./helpers/pivot/pivot_composer_helpers";
49
49
  import { CellComposerStore } from "./components/composer/composer/cell_composer_store";
@@ -204,6 +204,7 @@ export declare const helpers: {
204
204
  overlap: typeof overlap;
205
205
  union: typeof union;
206
206
  isInside: typeof isInside;
207
+ addStyleToWorkbookData: typeof addStyleToWorkbookData;
207
208
  deepCopy: typeof deepCopy;
208
209
  expandZoneOnInsertion: typeof expandZoneOnInsertion;
209
210
  reduceZoneOnDeletion: typeof reduceZoneOnDeletion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.0.81",
3
+ "version": "18.0.83",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",