@odoo/o-spreadsheet 18.1.0-alpha.6 → 18.1.0-alpha.7

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.1.0-alpha.6
5
- @date 2024-11-28T09:07:41.105Z
6
- @hash 875c901
4
+ @version 18.1.0-alpha.7
5
+ @date 2024-12-05T10:41:08.683Z
6
+ @hash 7b1c39b
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -979,7 +979,7 @@
979
979
  t-on-keydown="onInputKeydown"
980
980
  t-on-click.stop=""
981
981
  t-on-focus.stop="onInputFocused"
982
- t-att-value="currentFontSize"
982
+ t-att-value="props.currentFontSize"
983
983
  t-on-change="setSizeFromInput"
984
984
  t-ref="inputFontSize"
985
985
  />
@@ -987,19 +987,17 @@
987
987
  <t t-call="o-spreadsheet-Icon.CARET_DOWN"/>
988
988
  </span>
989
989
  </div>
990
- <div
991
- class="o-dropdown-content o-text-options"
992
- t-if="dropdown.isOpen"
993
- t-on-click.stop=""
994
- t-att-style="props.dropdownStyle">
995
- <t t-foreach="fontSizes" t-as="fontSize" t-key="fontSize">
996
- <div
997
- t-esc="fontSize"
998
- t-att-data-size="fontSize"
999
- t-on-click="() => this.setSizeFromList(fontSize)"
1000
- />
1001
- </t>
1002
- </div>
990
+ <Popover t-if="dropdown.isOpen" t-props="popoverProps">
991
+ <div class="o-text-options bg-white" t-on-click.stop="" t-ref="fontSizeList">
992
+ <t t-foreach="fontSizes" t-as="fontSize" t-key="fontSize">
993
+ <div
994
+ t-esc="fontSize"
995
+ t-att-data-size="fontSize"
996
+ t-on-click="() => this.setSizeFromList(fontSize)"
997
+ />
998
+ </t>
999
+ </div>
1000
+ </Popover>
1003
1001
  </div>
1004
1002
  </t>
1005
1003
 
@@ -2700,6 +2698,7 @@
2700
2698
  updateAlignment.bind="updateAxisTitleAlignment"
2701
2699
  updateColor.bind="updateAxisTitleColor"
2702
2700
  style="axisTitleStyle"
2701
+ onFontSizeChanged.bind="updateAxisTitleFontSize"
2703
2702
  />
2704
2703
  </t>
2705
2704
 
@@ -2741,6 +2740,7 @@
2741
2740
  updateAlignment.bind="updateChartTitleAlignment"
2742
2741
  updateColor.bind="updateChartTitleColor"
2743
2742
  style="titleStyle"
2743
+ onFontSizeChanged.bind="updateChartTitleFontSize"
2744
2744
  />
2745
2745
  <t t-slot="general-extension"/>
2746
2746
  </t>
@@ -3012,6 +3012,12 @@
3012
3012
  </div>
3013
3013
  </div>
3014
3014
  <div class="o-divider"/>
3015
+ <FontSizeEditor
3016
+ currentFontSize="props.style.fontSize"
3017
+ onFontSizeChanged.bind="this.updateFontSize"
3018
+ class="'o-hoverable-button'"
3019
+ />
3020
+ <div class="o-divider"/>
3015
3021
  <ColorPickerWidget
3016
3022
  currentColor="props.style.color"
3017
3023
  toggleColorPicker="(ev) => this.toggleDropdownTool('fillChartColorTool', ev)"
@@ -3741,7 +3747,8 @@
3741
3747
  <GeneralDesignEditor
3742
3748
  figureId="props.figureId"
3743
3749
  definition="props.definition"
3744
- updateChart="props.updateChart">
3750
+ updateChart="props.updateChart"
3751
+ defaultChartTitleFontSize="defaultScorecardTitleFontSize">
3745
3752
  <t t-set-slot="general-extension">
3746
3753
  <Section class="'pt-1'" title.translate="Number formatting">
3747
3754
  <Checkbox
@@ -5138,6 +5145,7 @@
5138
5145
  composerContent="measure.computedBy.formula"
5139
5146
  defaultRangeSheetId="measure.computedBy.sheetId"
5140
5147
  contextualAutocomplete="getMeasureAutocomplete()"
5148
+ getContextualColoredSymbolToken.bind="getColoredSymbolToken"
5141
5149
  />
5142
5150
  </div>
5143
5151
  </div>
@@ -5841,9 +5849,10 @@
5841
5849
 
5842
5850
  <div class="o-divider"/>
5843
5851
  <FontSizeEditor
5852
+ currentFontSize="currentFontSize"
5853
+ onFontSizeChanged.bind="this.setFontSize"
5844
5854
  class="'o-hoverable-button'"
5845
5855
  onToggle.bind="this.onClick"
5846
- dropdownStyle="this.dropdownStyle"
5847
5856
  />
5848
5857
  <div class="o-divider"/>
5849
5858
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.1.0-alpha.6",
3
+ "version": "18.1.0-alpha.7",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",