@odoo/o-spreadsheet 18.5.0-alpha.0 → 18.5.0-alpha.2

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.0
5
- @date 2025-06-24T12:27:25.939Z
6
- @hash ed0f325
4
+ @version 18.5.0-alpha.2
5
+ @date 2025-07-11T11:14:46.273Z
6
+ @hash 6d42178
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -2690,46 +2690,48 @@
2690
2690
  </t>
2691
2691
 
2692
2692
  <t t-name="o-spreadsheet-ChartPanel">
2693
- <div class="o-chart" t-if="figureId">
2693
+ <div class="o-chart d-flex flex-column h-100" t-if="figureId">
2694
2694
  <div class="o-panel">
2695
2695
  <div
2696
2696
  class="o-panel-element o-panel-configuration"
2697
2697
  t-att-class="store.panel !== 'configuration' ? 'inactive' : ''"
2698
- t-on-click="() => this.store.activatePanel('configuration')">
2698
+ t-on-click="switchPanel.bind(this, 'configuration')">
2699
2699
  <i class="fa fa-sliders"/>
2700
2700
  Configuration
2701
2701
  </div>
2702
2702
  <div
2703
2703
  class="o-panel-element o-panel-design"
2704
2704
  t-att-class="store.panel !== 'design' ? 'inactive' : ''"
2705
- t-on-click="() => this.store.activatePanel('design')">
2705
+ t-on-click="switchPanel.bind(this, 'design')">
2706
2706
  <i class="fa fa-paint-brush"/>
2707
2707
  Design
2708
2708
  </div>
2709
2709
  </div>
2710
2710
 
2711
2711
  <t t-set="definition" t-value="getChartDefinition(this.figureId)"/>
2712
- <t t-if="store.panel === 'configuration'">
2713
- <ChartTypePicker figureId="props.figureId" chartPanelStore="store"/>
2714
- <t
2715
- t-component="chartPanel.configuration"
2716
- definition="definition"
2717
- figureId="figureId"
2718
- updateChart.bind="updateChart"
2719
- canUpdateChart.bind="canUpdateChart"
2720
- t-key="figureId + definition.type"
2721
- />
2722
- </t>
2723
- <t t-else="">
2724
- <t
2725
- t-component="chartPanel.design"
2726
- definition="definition"
2727
- figureId="figureId"
2728
- updateChart.bind="updateChart"
2729
- canUpdateChart.bind="canUpdateChart"
2730
- t-key="figureId + definition.type"
2731
- />
2732
- </t>
2712
+ <div class="o-panel-content overflow-y-auto" t-ref="panelContent">
2713
+ <div t-att-class="store.panel !== 'configuration' ? 'd-none' : ''">
2714
+ <ChartTypePicker figureId="props.figureId" chartPanelStore="store"/>
2715
+ <t
2716
+ t-component="chartPanel.configuration"
2717
+ definition="definition"
2718
+ figureId="figureId"
2719
+ updateChart.bind="updateChart"
2720
+ canUpdateChart.bind="canUpdateChart"
2721
+ t-key="figureId + definition.type"
2722
+ />
2723
+ </div>
2724
+ <div t-att-class="store.panel !== 'design' ? 'd-none' : ''">
2725
+ <t
2726
+ t-component="chartPanel.design"
2727
+ definition="definition"
2728
+ figureId="figureId"
2729
+ updateChart.bind="updateChart"
2730
+ canUpdateChart.bind="canUpdateChart"
2731
+ t-key="figureId + definition.type"
2732
+ />
2733
+ </div>
2734
+ </div>
2733
2735
  </div>
2734
2736
  </t>
2735
2737
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.5.0-alpha.0",
3
+ "version": "18.5.0-alpha.2",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",