@odoo/o-spreadsheet 18.4.3 → 18.4.5

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.4.3
5
- @date 2025-07-28T13:39:54.033Z
6
- @hash 4b596d7
4
+ @version 18.4.5
5
+ @date 2025-08-04T06:55:36.824Z
6
+ @hash 358931f
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -1543,11 +1543,11 @@
1543
1543
  <div class="o-dv-list-values p-1 d-flex align-items-center">
1544
1544
  <div class="me-2">
1545
1545
  <RoundColorPicker
1546
- currentColor="props.criterion.colors?.[value] || '#E7E9ED'"
1547
- onColorPicked="(c) => this.onColorChanged(c, value)"
1546
+ currentColor="props.criterion.colors?.[value.value] || '#E7E9ED'"
1547
+ onColorPicked="(c) => this.onColorChanged(c, value.value)"
1548
1548
  />
1549
1549
  </div>
1550
- <input type="text" class="o-input" t-att-value="value" disabled="1"/>
1550
+ <input type="text" class="o-input" t-att-value="value.label" disabled="1"/>
1551
1551
  </div>
1552
1552
  </t>
1553
1553
 
@@ -1688,8 +1688,9 @@
1688
1688
  <t t-if="state.mode === 'edit'">
1689
1689
  <ConditionalFormattingEditor
1690
1690
  editedCf="editedCF"
1691
- onSave.bind="switchToList"
1691
+ onExit.bind="switchToList"
1692
1692
  onCancel.bind="cancelEdition"
1693
+ isNewCf="originalEditedCf === undefined"
1693
1694
  />
1694
1695
  </t>
1695
1696
  </div>
@@ -1912,7 +1913,7 @@
1912
1913
  <div class="o-cf-data-bar-editor">
1913
1914
  <div class="o-section-subtitle">Color</div>
1914
1915
  <RoundColorPicker
1915
- currentColor="colorNumberString(rule.color)"
1916
+ currentColor="colorNumberToHex(rule.color)"
1916
1917
  onColorPicked.bind="updateDataBarColor"
1917
1918
  disableNoColor="true"
1918
1919
  />
@@ -2053,7 +2054,7 @@
2053
2054
  </Section>
2054
2055
  <Section class="'pt-1'">
2055
2056
  <div class="o-sidePanelButtons">
2056
- <button t-on-click="props.onCancel" class="o-button o-cf-cancel">Cancel</button>
2057
+ <button t-on-click="onCancel" class="o-button o-cf-cancel">Cancel</button>
2057
2058
  <button
2058
2059
  t-on-click="onSave"
2059
2060
  class="o-button primary o-cf-save"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.4.3",
3
+ "version": "18.4.5",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",