@odoo/o-spreadsheet 17.4.0-alpha.9 → 17.4.0

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.4.0-alpha.9
5
- @date 2024-06-26T11:10:21.037Z
6
- @hash 526be20
4
+ @version 17.4.0
5
+ @date 2024-07-12T04:42:39.663Z
6
+ @hash f8e8543
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -272,7 +272,8 @@
272
272
  t-att-class="{'o-sheet-name-editable': state.isEditing }"
273
273
  t-ref="sheetNameSpan"
274
274
  t-esc="sheetName"
275
- t-on-click="(ev) => this.onClickSheetName(ev)"
275
+ t-on-click="(ev) => this.onMouseEventSheetName(ev)"
276
+ t-on-pointerdown="(ev) => this.onMouseEventSheetName(ev)"
276
277
  t-on-dblclick="() => this.onDblClick()"
277
278
  t-on-focusout="() => this.onFocusOut()"
278
279
  t-on-keydown="(ev) => this.onKeyDown(ev)"
@@ -764,7 +765,7 @@
764
765
  </t>
765
766
 
766
767
  <t t-name="o-spreadsheet-FiguresContainer">
767
- <div>
768
+ <div class="position-absolute">
768
769
  <t t-foreach="containers" t-as="container" t-key="container.type">
769
770
  <div
770
771
  class="o-figure-container position-absolute pe-none overflow-hidden"
@@ -2244,6 +2245,25 @@
2244
2245
  <t t-call="o-spreadsheet-Icon.TRIANGLE_EXCLAMATION"/>
2245
2246
  </div>
2246
2247
  </t>
2248
+ <t t-name="o-spreadsheet-Icon.INSERT_PIVOT">
2249
+ <svg class="o-icon">
2250
+ <defs>
2251
+ <mask id="a">
2252
+ <path fill="#fff" d="M0 0h18v18H0z"/>
2253
+ <path d="M18 26a3.5 3 0 0 1 0-18"/>
2254
+ </mask>
2255
+ </defs>
2256
+ <path
2257
+ fill="currentColor"
2258
+ d="M17 2v14H1V6h4V2h12m-1 1H6v3h10M2 7v2h3V7m-3 3v2h3v-2m-3 3v2h3v-2m1-6v2h6V7m-6 3v2h6v-2m-6 3v2h6v-2m1-6v2h3V7m-3 3v2h3v-2m-3 3v2h3v-2"
2259
+ mask="url(#a)"
2260
+ />
2261
+ <path
2262
+ fill="currentColor"
2263
+ d="M13 13v-3a.75.5 0 0 1 1.5 0v3h3a.5.75 0 0 1 0 1.5h-3v3a.75.5 0 0 1-1.5 0v-3h-3a.5.75 0 0 1 0-1.5"
2264
+ />
2265
+ </svg>
2266
+ </t>
2247
2267
 
2248
2268
  <t t-name="o-spreadsheet-LinkDisplay">
2249
2269
  <div class="o-link-tool d-flex align-items-center">
@@ -2758,6 +2778,22 @@
2758
2778
  <path stroke="#0074d9" style="fill:none" d="M6,25 l12,-12 l18,18 l6,-6"/>
2759
2779
  </svg>
2760
2780
  </t>
2781
+ <t t-name="o-spreadsheet-ChartPreview.STACKED_LINE_CHART">
2782
+ <svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
2783
+ <path stroke="#0074d9" style="fill:none" d="M3,30 l12,-12 l6,6 l18,-18"/>
2784
+ <path stroke="#eb6d00" style="fill:none" d="M3,40 l12,-12 l6,6 l18,-12"/>
2785
+ <path fill="#444" d="M2,2 v44 h1 v-44 M3,45 h42 v1 h-42"/>
2786
+ </svg>
2787
+ </t>
2788
+ <t t-name="o-spreadsheet-ChartPreview.AREA_CHART">
2789
+ <svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
2790
+ <path fill="#c4e4ff" d="M3,45 V25 l12,-12 l18,18 l6,-6 V45"/>
2791
+ <path fill="#ffe1c8" d="M3,45 V40 l12,-12 l6,6 l18,-18 V45"/>
2792
+ <path stroke="#eb6d00" style="fill:none" d="M3,40 l12,-12 l6,6 l18,-18"/>
2793
+ <path stroke="#0074d9" style="fill:none" d="M3,25 l12,-12 l18,18 l6,-6"/>
2794
+ <path fill="#444" d="M2,2 v44 h1 v-44 M3,45 h42 v1 h-42"/>
2795
+ </svg>
2796
+ </t>
2761
2797
  <t t-name="o-spreadsheet-ChartPreview.STACKED_AREA_CHART">
2762
2798
  <svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
2763
2799
  <path fill="#c4e4ff" d="M3,45 h36 v-39 l-18,18 l-6,-6 l-12,12"/>
@@ -3012,6 +3048,14 @@
3012
3048
  <option value="right">Right</option>
3013
3049
  </select>
3014
3050
  </Section>
3051
+ <Section class="'pt-0'">
3052
+ <Checkbox
3053
+ name="'showValues'"
3054
+ label="showValuesLabel"
3055
+ value="props.definition.showValues"
3056
+ onChange="showValues => props.updateChart(this.props.figureId, {showValues})"
3057
+ />
3058
+ </Section>
3015
3059
  </t>
3016
3060
  </GeneralDesignEditor>
3017
3061
  <SidePanelCollapsible collapsedAtInit="true">
@@ -3241,7 +3285,7 @@
3241
3285
  <Section class="'pt-0'">
3242
3286
  <Checkbox
3243
3287
  name="'stacked'"
3244
- label="chartTerms.StackedLineChart"
3288
+ label="stackedLabel"
3245
3289
  value="props.definition.stacked"
3246
3290
  onChange.bind="onUpdateStacked"
3247
3291
  />
@@ -3340,6 +3384,14 @@
3340
3384
  <option value="right">Right</option>
3341
3385
  </select>
3342
3386
  </Section>
3387
+ <Section>
3388
+ <Checkbox
3389
+ name="'showValues'"
3390
+ label="showValuesLabel"
3391
+ value="props.definition.showValues"
3392
+ onChange="showValues => props.updateChart(this.props.figureId, {showValues})"
3393
+ />
3394
+ </Section>
3343
3395
  </t>
3344
3396
  </GeneralDesignEditor>
3345
3397
  </t>
@@ -3494,6 +3546,14 @@
3494
3546
  <option value="right">Right</option>
3495
3547
  </select>
3496
3548
  </Section>
3549
+ <Section>
3550
+ <Checkbox
3551
+ name="'showValues'"
3552
+ label="showValuesLabel"
3553
+ value="props.definition.showValues"
3554
+ onChange="showValues => props.updateChart(this.props.figureId, {showValues})"
3555
+ />
3556
+ </Section>
3497
3557
  </t>
3498
3558
  </GeneralDesignEditor>
3499
3559
  <SidePanelCollapsible collapsedAtInit="true">
@@ -4404,8 +4464,9 @@
4404
4464
  </div>
4405
4465
  </div>
4406
4466
  <select
4407
- class="o-input o-type-selector o-type-range-selector mt-3 mb-3"
4408
- t-on-change="changeSearchScope">
4467
+ class="o-input o-type-range-selector mt-3 mb-3"
4468
+ t-on-change="changeSearchScope"
4469
+ t-att-value="searchOptions.searchScope">
4409
4470
  <option value="allSheets">All sheets</option>
4410
4471
  <option value="activeSheet">Current sheet</option>
4411
4472
  <option value="specificRange">Specific range</option>
@@ -5299,8 +5360,8 @@
5299
5360
  </div>
5300
5361
  </t>
5301
5362
  </div>
5302
- <div class="o-topbar-topright d-flex justify-content-end">
5303
- <div t-foreach="topbarComponents" t-as="comp" t-key="comp.id">
5363
+ <div class="o-topbar-topright d-flex justify-content-end align-items-center">
5364
+ <div t-foreach="topbarComponents" t-as="comp" t-key="comp.id" class="px-1">
5304
5365
  <t t-component="comp.component"/>
5305
5366
  </div>
5306
5367
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "17.4.0-alpha.9",
3
+ "version": "17.4.0",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",
@@ -13,7 +13,7 @@
13
13
  "dist/*.xml"
14
14
  ],
15
15
  "scripts": {
16
- "serve-static": "live-server --open=demo --watch=build/o_spreadsheet.js,build/o_spreadsheet.xml,demo",
16
+ "serve-static": "live-server --open=demo --watch=build/o_spreadsheet.dev.js,build/o_spreadsheet.xml,demo",
17
17
  "dev": "npm-run-all --print-label buildDev --parallel server serve-static watch:*",
18
18
  "server": "node tools/server/main.cjs",
19
19
  "build:js": "tsc --module es6 --incremental",
@@ -142,6 +142,6 @@
142
142
  "*": "prettier --write"
143
143
  },
144
144
  "publishConfig": {
145
- "tag": "alpha"
145
+ "tag": "latest"
146
146
  }
147
147
  }
package/readme.md CHANGED
@@ -39,7 +39,8 @@ a.k.a. "[Owly](https://github.com/odoo/owl) Sheet" 🦉
39
39
  7. Notification (under construction)
40
40
  8. Export Excel (under construction)
41
41
  9. [Terminology](doc/o-spreadsheet_terminology.png)
42
- 10. [API](doc/tsdoc/README.md)
42
+ 10. [Translations](doc/extending/translations.md)
43
+ 11. [API](doc/tsdoc/README.md)
43
44
 
44
45
  ## Run it!
45
46