@odoo/o-spreadsheet 17.2.0-alpha.1 → 17.2.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 17.2.0-alpha.1
5
- @date 2024-01-17T10:28:01.208Z
6
- @hash 296f467
4
+ @version 17.2.0-alpha.2
5
+ @date 2024-01-29T13:56:33.355Z
6
+ @hash 03c1335
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -276,7 +276,7 @@
276
276
  t-on-dblclick="() => this.onDblClick()"
277
277
  t-on-focusout="() => this.onFocusOut()"
278
278
  t-on-keydown="(ev) => this.onKeyDown(ev)"
279
- t-att-contenteditable="state.isEditing.toString()"
279
+ t-att-contenteditable="state.isEditing ? 'plaintext-only': 'false'"
280
280
  />
281
281
  <span class="o-sheet-icon ms-1" t-on-click.stop="(ev) => this.onIconClick(ev)">
282
282
  <t t-call="o-spreadsheet-Icon.TRIANGLE_DOWN"/>
@@ -1544,7 +1544,7 @@
1544
1544
  <svg class="o-icon">
1545
1545
  <path
1546
1546
  fill="currentColor"
1547
- d="M16 .5A1.5 1.5 0 0 1 17.5 2v14a1.5 1.5 0 0 1-1.5 1.5H2A1.5 1.5 0 0 1 .5 16V2A1.5 1.5 0 0 1 2 .5h14V2h-3.5v14H16V2H7v14h4V2H2v14h3.5V2M6 1l5 4v2L6 3m0 2 5 4v2L6 7m0 2 5 4v2l-5-4m0 2 5 4H"
1547
+ d="M16 .5A1.5 1.5 0 0 1 17.5 2v14a1.5 1.5 0 0 1-1.5 1.5H2A1.5 1.5 0 0 1 .5 16V2A1.5 1.5 0 0 1 2 .5h14V2h-3.5v14H16V2H7v14h4V2H2v14h3.5V2M6 1l5 4v2L6 3m0 2 5 4v2L6 7m0 2 5 4v2l-5-4"
1548
1548
  />
1549
1549
  </svg>
1550
1550
  </t>
@@ -1658,6 +1658,22 @@
1658
1658
  />
1659
1659
  </svg>
1660
1660
  </t>
1661
+ <t t-name="o-spreadsheet-Icon.INSERT_CHECKBOX">
1662
+ <svg class="o-icon">
1663
+ <path
1664
+ fill="currentColor"
1665
+ d="M.5 2A1.5 1.5 0 0 1 2 .5h14A1.5 1.5 0 0 1 17.5 2v14a1.5 1.5 0 0 1-1.5 1.5H2A1.5 1.5 0 0 1 .5 16V2H2v14h14V2H2m13 4-1.4-1.4L7 11.2 4.4 8.6 3 10l4 4z"
1666
+ />
1667
+ </svg>
1668
+ </t>
1669
+ <t t-name="o-spreadsheet-Icon.INSERT_DROPDOWN">
1670
+ <svg class="o-icon">
1671
+ <path
1672
+ fill="currentColor"
1673
+ d="M6 3.5a5 5.5 0 0 0 0 11h6a5 5.5 0 0 0 0-11H6V5h6a3.5 4 0 0 1 0 8H6a3.5 4 0 0 1 0-8m5 6 3-3H8"
1674
+ />
1675
+ </svg>
1676
+ </t>
1661
1677
  <t t-name="o-spreadsheet-Icon.INSERT_SHEET">
1662
1678
  <svg class="o-icon" fill="currentColor">
1663
1679
  <path
@@ -3040,6 +3056,34 @@ https://fontawesome.com/license -->
3040
3056
  </div>
3041
3057
  </t>
3042
3058
 
3059
+ <t t-name="o-spreadsheet-ScatterConfigPanel">
3060
+ <div>
3061
+ <ChartDataSeries
3062
+ ranges="() => this.getDataSeriesRanges()"
3063
+ onSelectionChanged="(ranges) => this.onDataSeriesRangesChanged(ranges)"
3064
+ onSelectionConfirmed="() => this.onDataSeriesConfirmed()"
3065
+ />
3066
+ <ChartLabelRange
3067
+ range="() => this.getLabelRange()"
3068
+ isInvalid="isLabelInvalid"
3069
+ onSelectionChanged="(ranges) => this.onLabelRangeChanged(ranges)"
3070
+ onSelectionConfirmed="() => this.onLabelRangeConfirmed()"
3071
+ options="this.getLabelRangeOptions()"
3072
+ />
3073
+
3074
+ <Section class="'o-use-row-as-headers'" t-if="calculateHeaderPosition()">
3075
+ <Checkbox
3076
+ name="'dataSetsHaveTitle'"
3077
+ label="dataSetsHaveTitleLabel"
3078
+ value="props.definition.dataSetsHaveTitle"
3079
+ onChange.bind="onUpdateDataSetsHaveTitle"
3080
+ />
3081
+ </Section>
3082
+
3083
+ <ChartErrorSection t-if="errorMessages.length" messages="errorMessages"/>
3084
+ </div>
3085
+ </t>
3086
+
3043
3087
  <t t-name="o-spreadsheet-ScorecardChartConfigPanel">
3044
3088
  <div>
3045
3089
  <Section class="'o-data-series'">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "17.2.0-alpha.1",
3
+ "version": "17.2.0-alpha.2",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",