@odoo/o-spreadsheet 18.2.10 → 18.2.11

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.2.10
5
- @date 2025-05-02T12:35:19.560Z
6
- @hash e8ff3fc
4
+ @version 18.2.11
5
+ @date 2025-05-12T05:26:38.307Z
6
+ @hash eb87dca
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -1036,7 +1036,7 @@
1036
1036
  <t t-name="o-spreadsheet-PivotDimensionGranularity">
1037
1037
  <div class="d-flex flex-row">
1038
1038
  <div class="d-flex flex-row py-1 px-2 w-100 small">
1039
- <t t-set="granularity" t-value="props.dimension.granularity"/>
1039
+ <t t-set="granularityProps" t-value="props.dimension.granularity || 'month'"/>
1040
1040
  <div class="pivot-dim-operator-label">Granularity</div>
1041
1041
  <select
1042
1042
  class="o-input flex-grow-1"
@@ -1045,10 +1045,10 @@
1045
1045
  t-foreach="props.allGranularities"
1046
1046
  t-as="granularity"
1047
1047
  t-key="granularity"
1048
- t-if="props.availableGranularities.has(granularity) || granularity === props.dimension.granularity"
1048
+ t-if="props.availableGranularities.has(granularity) || granularity === granularityProps"
1049
1049
  t-att-value="granularity"
1050
1050
  t-esc="periods[granularity]"
1051
- t-att-selected="granularity === props.dimension.granularity or (granularity === 'month' and !props.dimension.granularity)"
1051
+ t-att-selected="granularity === granularityProps or (granularity === 'month' and !granularityProps)"
1052
1052
  />
1053
1053
  </select>
1054
1054
  </div>
@@ -5765,6 +5765,7 @@
5765
5765
  t-on-dblclick="onDblClick"
5766
5766
  t-on-contextmenu="onContextMenu"
5767
5767
  t-on-blur="onBlur"
5768
+ t-on-wheel="onWheel"
5768
5769
  />
5769
5770
  </div>
5770
5771
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.2.10",
3
+ "version": "18.2.11",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",