@odoo/o-spreadsheet 17.4.33 → 17.4.35

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 17.4.33
5
- @date 2025-05-02T12:31:16.357Z
6
- @hash 3ba00e6
4
+ @version 17.4.35
5
+ @date 2025-05-13T17:50:28.661Z
6
+ @hash 534c5f4
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -474,6 +474,7 @@
474
474
  t-on-compositionend="onCompositionEnd"
475
475
  t-on-dblclick="onDblClick"
476
476
  t-on-contextmenu="onContextMenu"
477
+ t-on-wheel="onWheel"
477
478
  />
478
479
 
479
480
  <Popover
@@ -4684,7 +4685,7 @@
4684
4685
  <t t-name="o-spreadsheet-PivotDimensionGranularity">
4685
4686
  <div class="d-flex flex-row">
4686
4687
  <div class="d-flex flex-row py-1 px-2 w-100 small">
4687
- <t t-set="granularity" t-value="props.dimension.granularity"/>
4688
+ <t t-set="granularityProps" t-value="props.dimension.granularity || 'month'"/>
4688
4689
  <div class="pivot-dim-operator-label">Granularity</div>
4689
4690
  <select
4690
4691
  class="o_input flex-grow-1"
@@ -4693,10 +4694,10 @@
4693
4694
  t-foreach="props.allGranularities"
4694
4695
  t-as="granularity"
4695
4696
  t-key="granularity"
4696
- t-if="props.availableGranularities.has(granularity) || granularity === props.dimension.granularity"
4697
+ t-if="props.availableGranularities.has(granularity) || granularity === granularityProps"
4697
4698
  t-att-value="granularity"
4698
4699
  t-esc="periods[granularity]"
4699
- t-att-selected="granularity === props.dimension.granularity or (granularity === 'month' and !props.dimension.granularity)"
4700
+ t-att-selected="granularity === granularityProps or (granularity === 'month' and !granularityProps)"
4700
4701
  />
4701
4702
  </select>
4702
4703
  </div>
@@ -4733,7 +4734,7 @@
4733
4734
  fields="props.unusedGroupableFields"
4734
4735
  />
4735
4736
  </div>
4736
- <t t-foreach="props.definition.columns" t-as="col" t-key="col.nameWithGranularity">
4737
+ <t t-foreach="props.definition.columns" t-as="col" t-key="col_index">
4737
4738
  <div
4738
4739
  t-on-pointerdown="(ev) => this.startDragAndDrop(col, ev)"
4739
4740
  t-att-style="dragAndDrop.itemsStyle[col.nameWithGranularity]"
@@ -4759,7 +4760,7 @@
4759
4760
  fields="props.unusedGroupableFields"
4760
4761
  />
4761
4762
  </div>
4762
- <t t-foreach="props.definition.rows" t-as="row" t-key="row.nameWithGranularity">
4763
+ <t t-foreach="props.definition.rows" t-as="row" t-key="row_index">
4763
4764
  <div
4764
4765
  t-on-pointerdown="(ev) => this.startDragAndDrop(row, ev)"
4765
4766
  t-att-style="dragAndDrop.itemsStyle[row.nameWithGranularity]"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "17.4.33",
3
+ "version": "17.4.35",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",