@odoo/o-spreadsheet 17.4.0-alpha.2 → 17.4.0-alpha.3

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.2
5
- @date 2024-06-06T13:32:06.123Z
6
- @hash e07794d
4
+ @version 17.4.0-alpha.3
5
+ @date 2024-06-10T09:39:39.895Z
6
+ @hash a45ed6a
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -2780,7 +2780,7 @@
2780
2780
  class="o-input data-series-selector"
2781
2781
  t-model="state.label"
2782
2782
  t-on-change="(ev) => this.updateSerieEditor(ev)">
2783
- <t t-foreach="getDataSeries()" t-as="serie" t-key="serie" t-index="index">
2783
+ <t t-foreach="getDataSeries()" t-as="serie" t-key="serie_index">
2784
2784
  <option
2785
2785
  t-att-value="serie"
2786
2786
  t-att-selected="state.index === serie_index"
@@ -4286,6 +4286,31 @@
4286
4286
  </t>
4287
4287
  </t>
4288
4288
 
4289
+ <t t-name="o-spreadsheet-PivotDeferUpdate">
4290
+ <Section
4291
+ class="'align-items-center border-top d-flex flex-row justify-content-between py-1 pivot-defer-update'">
4292
+ <Checkbox
4293
+ label="deferUpdatesLabel"
4294
+ title="deferUpdatesTooltip"
4295
+ value="props.deferUpdate"
4296
+ onChange="(value) => props.toggleDeferUpdate(value)"
4297
+ />
4298
+ <div t-if="props.isDirty">
4299
+ <i
4300
+ class="btn btn-sm pe-0 fa fa-undo"
4301
+ title="Discard all changes"
4302
+ t-on-click="() => props.discard()"
4303
+ />
4304
+ <span
4305
+ class="btn btm-sm btn-link sp_apply_update"
4306
+ title="Apply all changes"
4307
+ t-on-click="() => props.apply()">
4308
+ Update
4309
+ </span>
4310
+ </div>
4311
+ </Section>
4312
+ </t>
4313
+
4289
4314
  <t t-name="o-spreadsheet-AddDimensionButton">
4290
4315
  <span class="btn btn-sm btn-link add-dimension" t-on-click="togglePopover" t-ref="button">
4291
4316
  Add
@@ -4520,30 +4545,13 @@
4520
4545
  <button class="btn btn-link sp_delete" t-on-click="delete">Delete</button>
4521
4546
  </Section>
4522
4547
  </div>
4523
- <Section
4524
- class="'align-items-center border-top d-flex flex-row justify-content-between py-1 pivot-defer-update'">
4525
- <Checkbox
4526
- label="deferUpdatesLabel"
4527
- title="deferUpdatesTooltip"
4528
- value="store.updatesAreDeferred"
4529
- onChange="(value) => store.deferUpdates(value)"
4530
- />
4531
- <div>
4532
- <i
4533
- t-if="store.isDirty"
4534
- class="btn btn-sm pe-0 fa fa-undo"
4535
- title="Discard all changes"
4536
- t-on-click="() => store.discardPendingUpdate()"
4537
- />
4538
- <span
4539
- t-if="store.isDirty"
4540
- class="btn btm-sm btn-link sp_apply_update"
4541
- title="Apply all changes"
4542
- t-on-click="() => store.applyUpdate()">
4543
- Update
4544
- </span>
4545
- </div>
4546
- </Section>
4548
+ <PivotDeferUpdate
4549
+ deferUpdate="store.updatesAreDeferred"
4550
+ toggleDeferUpdate="(value) => store.deferUpdates(value)"
4551
+ isDirty="store.isDirty"
4552
+ discard="store.discardPendingUpdate"
4553
+ apply="store.applyUpdate"
4554
+ />
4547
4555
  </div>
4548
4556
  </t>
4549
4557
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "17.4.0-alpha.2",
3
+ "version": "17.4.0-alpha.3",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",