@odoo/o-spreadsheet 18.5.0-alpha.3 → 18.5.0-alpha.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.5.0-alpha.3
5
- @date 2025-07-28T13:43:55.612Z
6
- @hash 53dfee8
4
+ @version 18.5.0-alpha.5
5
+ @date 2025-08-04T06:54:17.389Z
6
+ @hash 71c9a36
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"
@@ -6114,7 +6115,7 @@
6114
6115
  <canvas class="o-figure-canvas o-gauge-chart w-100 h-100 d-block" t-ref="chartContainer"/>
6115
6116
  </t>
6116
6117
 
6117
- <t t-name="spreadsheet.ChartDashboardMenu">
6118
+ <t t-name="o-spreadsheet-ChartDashboardMenu">
6118
6119
  <div class="o-dashboard-chart-select position-absolute top-0 end-0" t-on-click.stop="">
6119
6120
  <div class="d-flex flex-row px-1" t-att-style="backgroundColor">
6120
6121
  <t t-foreach="getMenuItems()" t-as="item" t-key="item.id">
@@ -6282,11 +6283,14 @@
6282
6283
  </t>
6283
6284
  )
6284
6285
  </div>
6285
- <i
6286
- class="fa fa-caret-up px-2 align-self-start"
6286
+ <div
6287
+ class="collapsor px-2 d-flex align-items-center rounded"
6287
6288
  t-att-class="state.isCollapsed ? 'collapsed' : ''"
6288
- t-on-click="() => this.toggle()"
6289
- />
6289
+ t-on-click="() => this.toggle()">
6290
+ <span class="collapsor-arrow d-inline-block">
6291
+ <t t-call="o-spreadsheet-Icon.ANGLE_DOWN"/>
6292
+ </span>
6293
+ </div>
6290
6294
  </div>
6291
6295
 
6292
6296
  <Collapse isCollapsed="state.isCollapsed">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.5.0-alpha.3",
3
+ "version": "18.5.0-alpha.5",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",