@odoo/o-spreadsheet 18.4.0-alpha.8 → 18.4.0-alpha.9

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.0-alpha.8
5
- @date 2025-06-12T09:54:36.987Z
6
- @hash 9b7a8d0
4
+ @version 18.4.0-alpha.9
5
+ @date 2025-06-19T18:24:11.505Z
6
+ @hash 6d4d685
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -1485,9 +1485,21 @@
1485
1485
  required="true"
1486
1486
  hasSingleRange="true"
1487
1487
  />
1488
+ <t t-foreach="values" t-as="value" t-key="value_index">
1489
+ <div class="o-dv-list-values p-1 d-flex align-items-center">
1490
+ <div class="me-2">
1491
+ <RoundColorPicker
1492
+ currentColor="props.criterion.colors?.[value] || '#E7E9ED'"
1493
+ onColorPicked="(c) => this.onColorChanged(c, value)"
1494
+ />
1495
+ </div>
1496
+ <input type="text" class="o-input" t-att-value="value" disabled="1"/>
1497
+ </div>
1498
+ </t>
1488
1499
 
1489
1500
  <div class="o-section-subtitle mt-4">Display style</div>
1490
1501
  <select class="o-dv-display-style o-input" t-on-change="onChangedDisplayStyle">
1502
+ <option t-att-selected="props.criterion.displayStyle === 'chip'" value="chip">Chip</option>
1491
1503
  <option t-att-selected="props.criterion.displayStyle === 'arrow'" value="arrow">Arrow</option>
1492
1504
  <option t-att-selected="props.criterion.displayStyle === 'plainText'" value="plainText">
1493
1505
  Plain text
@@ -1498,6 +1510,12 @@
1498
1510
  <t t-name="o-spreadsheet-ListCriterionForm">
1499
1511
  <t t-foreach="displayedValues" t-as="value" t-key="value_index">
1500
1512
  <div class="o-dv-list-values d-flex align-items-center">
1513
+ <div class="me-1">
1514
+ <RoundColorPicker
1515
+ currentColor="props.criterion.colors?.[value] || '#E7E9ED'"
1516
+ onColorPicked="(c) => this.onColorChanged(c, value)"
1517
+ />
1518
+ </div>
1501
1519
  <CriterionInput
1502
1520
  value="props.criterion.values[value_index]"
1503
1521
  onValueChanged="(v) => this.onValueChanged(v, value_index)"
@@ -1521,6 +1539,7 @@
1521
1539
 
1522
1540
  <div class="o-section-subtitle">Display style</div>
1523
1541
  <select class="o-dv-display-style o-input" t-on-change="onChangedDisplayStyle">
1542
+ <option t-att-selected="props.criterion.displayStyle === 'chip'" value="chip">Chip</option>
1524
1543
  <option t-att-selected="props.criterion.displayStyle === 'arrow'" value="arrow">Arrow</option>
1525
1544
  <option t-att-selected="props.criterion.displayStyle === 'plainText'" value="plainText">
1526
1545
  Plain text
@@ -4067,8 +4086,8 @@
4067
4086
  <div
4068
4087
  t-att-title="getName(menuItem)"
4069
4088
  t-att-data-name="menuItem.id"
4070
- t-on-click="(ev) => this.props.onClickMenu?.(menuItem, ev)"
4071
- t-on-auxclick="(ev) => this.props.onClickMenu?.(menuItem, ev)"
4089
+ t-on-click="(ev) => this.onClickMenu(menuItem, ev)"
4090
+ t-on-auxclick="(ev) => this.onClickMenu(menuItem, ev)"
4072
4091
  t-on-mouseover="(ev) => this.props.onMouseOver?.(menuItem, ev)"
4073
4092
  t-on-mouseenter="(ev) => this.onMouseEnter?.(menuItem, ev)"
4074
4093
  t-on-mouseleave="(ev) => this.onMouseLeave?.(menuItem)"
@@ -6351,7 +6370,7 @@
6351
6370
  t-as="content"
6352
6371
  t-key="content_index"
6353
6372
  t-att-class="content.classes?.join(' ')"
6354
- t-attf-style="color: {{content.color || '#000000'}};"
6373
+ t-att-style="getCss(content)"
6355
6374
  t-esc="content.value"
6356
6375
  />
6357
6376
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.4.0-alpha.8",
3
+ "version": "18.4.0-alpha.9",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",