@odoo/o-spreadsheet 17.2.0-alpha.4 → 17.2.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 17.2.0-alpha.4
5
- @date 2024-02-09T13:11:01.066Z
6
- @hash 1b33cf4
4
+ @version 17.2.0-alpha.5
5
+ @date 2024-02-16T14:28:32.318Z
6
+ @hash 0c69dd8
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -421,9 +421,9 @@
421
421
 
422
422
  <t t-name="o-spreadsheet-TextValueProvider">
423
423
  <div
424
+ t-ref="autoCompleteList"
424
425
  t-att-class="{
425
- 'o-autocomplete-dropdown':props.values.length,
426
- 'shadow':props.values.length}">
426
+ 'o-autocomplete-dropdown':props.values.length }">
427
427
  <t t-foreach="props.values" t-as="v" t-key="v.text">
428
428
  <div
429
429
  class="d-flex flex-column text-start"
@@ -475,8 +475,9 @@
475
475
 
476
476
  <div
477
477
  t-if="props.focus !== 'inactive' and (autoCompleteState.showProvider or functionDescriptionState.showDescription)"
478
- class="o-composer-assistant"
478
+ class="o-composer-assistant shadow"
479
479
  t-att-style="assistantStyle"
480
+ t-on-wheel.stop=""
480
481
  t-on-mousedown.prevent.stop=""
481
482
  t-on-click.prevent.stop=""
482
483
  t-on-mouseup.prevent.stop="">
@@ -1488,15 +1489,15 @@
1488
1489
  />
1489
1490
  </svg>
1490
1491
  </t>
1491
- <t t-name="o-spreadsheet-Icon.SHOW_HIDE_GRID">
1492
- <svg class="o-icon">
1493
- <path
1494
- fill="currentColor"
1495
- d="M.5 2A1.5 1.5 0 0 1 2 .5h14A1.5 1.5 0 0 1 17.5 2v7H11V7H7v4s-.5 0-1.5 1h-1v5h-3a1.5 1.5 0 0 1-1-1M6 6V2H2v4m9 0V2H7v4m9 0V2h-4v4m-6 5V7H2v4m14-2V7h-4v2m-7.5 6.5V12H2v3.5 M14 10.5c1 0 1 .5 1 1-1.5 2.5-3.5 4.5-5 6.5-.5 0-1-.5-1-1-1-.5-1.5-1-2.5-2 0 0-.5-.5 0-1 1.5-2 4-3 7-3m-1 1.5C13.5 12 4 14 10 16c0 0-1.5-2 2.5-3.5m5 1.5c.5.5.5 1 .5 1-1.5 2-3.5 3-6 2.5.5-.5.5-1 1-1s5.5-1 2-3.5l1-1"
1496
- />
1492
+ <t t-name="o-spreadsheet-Icon.SHOW">
1493
+ <svg class="o-icon" viewBox="0 0 24 24" fill="none" stroke="currentcolor">
1494
+ <path stroke-width="1.35" d="M1,12 S11.5,0 23,12 M1,12 S11.5,24 23,12"/>
1495
+ <path d="M1.26,11.7 A .4 .3 1 0 0 1.2,12.3"/>
1496
+ <path d="M22.8,11.7 A .4 .3 1 0 1 22.75,12.3"/>
1497
+ <circle stroke-width="1.35" stroke="currentcolor" cx="12" cy="12" r="3"/>
1497
1498
  </svg>
1498
1499
  </t>
1499
- <t t-name="o-spreadsheet-Icon.SHOW_HIDE_FORMULA">
1500
+ <t t-name="o-spreadsheet-Icon.FORMULA">
1500
1501
  <svg class="o-icon">
1501
1502
  <path
1502
1503
  fill="currentColor"
@@ -2971,26 +2972,26 @@ https://fontawesome.com/license -->
2971
2972
  </t>
2972
2973
 
2973
2974
  <t t-name="o-spreadsheet-ChartPanel">
2974
- <div class="o-chart">
2975
+ <div class="o-chart" t-if="figureId">
2975
2976
  <div class="o-panel">
2976
2977
  <div
2977
2978
  class="o-panel-element o-panel-configuration"
2978
- t-att-class="state.panel !== 'configuration' ? 'inactive' : ''"
2979
- t-on-click="() => this.activatePanel('configuration')">
2979
+ t-att-class="store.panel !== 'configuration' ? 'inactive' : ''"
2980
+ t-on-click="() => this.store.activatePanel('configuration')">
2980
2981
  <i class="fa fa-sliders"/>
2981
2982
  Configuration
2982
2983
  </div>
2983
2984
  <div
2984
2985
  class="o-panel-element o-panel-design"
2985
- t-att-class="state.panel !== 'design' ? 'inactive' : ''"
2986
- t-on-click="() => this.activatePanel('design')">
2986
+ t-att-class="store.panel !== 'design' ? 'inactive' : ''"
2987
+ t-on-click="() => this.store.activatePanel('design')">
2987
2988
  <i class="fa fa-paint-brush"/>
2988
2989
  Design
2989
2990
  </div>
2990
2991
  </div>
2991
2992
 
2992
- <t t-set="definition" t-value="getChartDefinition()"/>
2993
- <t t-if="state.panel === 'configuration'">
2993
+ <t t-set="definition" t-value="getChartDefinition(this.figureId)"/>
2994
+ <t t-if="store.panel === 'configuration'">
2994
2995
  <Section>
2995
2996
  <t t-set-slot="title">Chart type</t>
2996
2997
  <t t-set="types" t-value="chartTypes"/>
@@ -3032,12 +3033,12 @@ https://fontawesome.com/license -->
3032
3033
  <t t-name="o-spreadsheet-ScatterConfigPanel">
3033
3034
  <div>
3034
3035
  <ChartDataSeries
3035
- ranges="() => this.getDataSeriesRanges()"
3036
+ ranges="this.getDataSeriesRanges()"
3036
3037
  onSelectionChanged="(ranges) => this.onDataSeriesRangesChanged(ranges)"
3037
3038
  onSelectionConfirmed="() => this.onDataSeriesConfirmed()"
3038
3039
  />
3039
3040
  <ChartLabelRange
3040
- range="() => this.getLabelRange()"
3041
+ range="this.getLabelRange()"
3041
3042
  isInvalid="isLabelInvalid"
3042
3043
  onSelectionChanged="(ranges) => this.onLabelRangeChanged(ranges)"
3043
3044
  onSelectionConfirmed="() => this.onLabelRangeConfirmed()"
@@ -3142,7 +3143,7 @@ https://fontawesome.com/license -->
3142
3143
  </t>
3143
3144
 
3144
3145
  <t t-name="o-spreadsheet.Checkbox">
3145
- <label class="o-checkbox">
3146
+ <label class="o-checkbox" t-att-title="props.title">
3146
3147
  <input
3147
3148
  type="checkbox"
3148
3149
  t-att-name="props.name"
@@ -4121,24 +4122,24 @@ https://fontawesome.com/license -->
4121
4122
  </t>
4122
4123
 
4123
4124
  <t t-name="o-spreadsheet-SidePanel">
4124
- <div class="o-sidePanel">
4125
+ <div class="o-sidePanel" t-if="sidePanelStore.isOpen">
4125
4126
  <div class="o-sidePanelHeader">
4126
4127
  <div class="o-sidePanelTitle" t-esc="getTitle()"/>
4127
- <div class="o-sidePanelClose" t-on-click="() => this.props.onCloseSidePanel()">✕</div>
4128
+ <div class="o-sidePanelClose" t-on-click="close">✕</div>
4128
4129
  </div>
4129
4130
  <div class="o-sidePanelBody">
4130
4131
  <t
4131
- t-component="state.panel.Body"
4132
- t-props="props.panelProps"
4133
- onCloseSidePanel="props.onCloseSidePanel"
4134
- t-key="'Body_' + props.component"
4132
+ t-component="panel.Body"
4133
+ t-props="sidePanelStore.panelProps"
4134
+ onCloseSidePanel.bind="close"
4135
+ t-key="'Body_' + sidePanelStore.componentTag"
4135
4136
  />
4136
4137
  </div>
4137
- <div class="o-sidePanelFooter" t-if="state.panel.Footer">
4138
+ <div class="o-sidePanelFooter" t-if="panel?.Footer">
4138
4139
  <t
4139
- t-component="state.panel.Footer"
4140
- t-props="props.panelProps"
4141
- t-key="'Footer_' + props.component"
4140
+ t-component="panel.Footer"
4141
+ t-props="sidePanelStore.panelProps"
4142
+ t-key="'Footer_' + sidePanelStore.componentTag"
4142
4143
  />
4143
4144
  </div>
4144
4145
  </div>
@@ -4214,18 +4215,10 @@ https://fontawesome.com/license -->
4214
4215
  <HeaderGroupContainer layers="rowLayers" dimension="'ROW'"/>
4215
4216
  </div>
4216
4217
  <div class="o-group-grid overflow-hidden">
4217
- <Grid
4218
- sidePanelIsOpen="sidePanel.isOpen"
4219
- exposeFocus="(focus) => this._focusGrid = focus"
4220
- />
4218
+ <Grid exposeFocus="(focus) => this._focusGrid = focus"/>
4221
4219
  </div>
4222
4220
  </div>
4223
- <SidePanel
4224
- t-if="sidePanel.isOpen"
4225
- onCloseSidePanel="() => this.closeSidePanel()"
4226
- component="sidePanel.component"
4227
- panelProps="sidePanel.panelProps"
4228
- />
4221
+ <SidePanel t-if="sidePanel.isOpen"/>
4229
4222
  <BottomBar onClick="() => this.focusGrid()"/>
4230
4223
  </t>
4231
4224
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "17.2.0-alpha.4",
3
+ "version": "17.2.0-alpha.5",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",