@odoo/o-spreadsheet 17.4.0-alpha.2 → 17.4.0-alpha.4
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.
- package/dist/o-spreadsheet.cjs.js +718 -764
- package/dist/o-spreadsheet.d.ts +224 -114
- package/dist/o-spreadsheet.esm.js +718 -764
- package/dist/o-spreadsheet.iife.js +718 -764
- package/dist/o-spreadsheet.iife.min.js +368 -354
- package/dist/o_spreadsheet.xml +70 -57
- package/package.json +1 -1
package/dist/o_spreadsheet.xml
CHANGED
|
@@ -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.
|
|
5
|
-
@date 2024-06-
|
|
6
|
-
@hash
|
|
4
|
+
@version 17.4.0-alpha.4
|
|
5
|
+
@date 2024-06-12T14:01:07.838Z
|
|
6
|
+
@hash cefb0e4
|
|
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="
|
|
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"
|
|
@@ -3353,6 +3353,23 @@
|
|
|
3353
3353
|
</label>
|
|
3354
3354
|
</t>
|
|
3355
3355
|
|
|
3356
|
+
<t t-name="o-spreadsheet-CogWheelMenu">
|
|
3357
|
+
<span class="fa fa-cog os-cog-wheel-menu-icon" t-on-click="togglePopover" t-ref="button"/>
|
|
3358
|
+
<Popover t-if="popover.isOpen" t-props="popoverProps">
|
|
3359
|
+
<div class="d-flex flex-column align-items-start os-cog-wheel-menu my-2">
|
|
3360
|
+
<div
|
|
3361
|
+
t-foreach="props.items"
|
|
3362
|
+
t-as="item"
|
|
3363
|
+
t-key="item.name"
|
|
3364
|
+
t-on-click="item.onClick"
|
|
3365
|
+
class="btn btn-link me-3">
|
|
3366
|
+
<i t-if="item.icon" t-att-class="'me-2 fa ' + item.icon"/>
|
|
3367
|
+
<t t-esc="item.name"/>
|
|
3368
|
+
</div>
|
|
3369
|
+
</div>
|
|
3370
|
+
</Popover>
|
|
3371
|
+
</t>
|
|
3372
|
+
|
|
3356
3373
|
<t t-name="o-spreadsheet-SidePanelCollapsible">
|
|
3357
3374
|
<div class="p-1 m-1" t-att-class="props.class">
|
|
3358
3375
|
<div class="o_side_panel_collapsible_title d-flex align-items-center">
|
|
@@ -4168,7 +4185,7 @@
|
|
|
4168
4185
|
</select>
|
|
4169
4186
|
<div t-if="searchOptions.searchScope === 'specificRange'">
|
|
4170
4187
|
<SelectionInput
|
|
4171
|
-
ranges="[this.dataRange]"
|
|
4188
|
+
ranges="[this.state.dataRange]"
|
|
4172
4189
|
onSelectionChanged="(ranges) => this.onSearchRangeChanged(ranges)"
|
|
4173
4190
|
onSelectionConfirmed.bind="updateDataRange"
|
|
4174
4191
|
hasSingleRange="true"
|
|
@@ -4197,7 +4214,7 @@
|
|
|
4197
4214
|
/>
|
|
4198
4215
|
</div>
|
|
4199
4216
|
<div class="o-matches-count mt-4" t-if="store.toSearch !== ''">
|
|
4200
|
-
<div t-if="searchOptions.searchScope === 'specificRange' and dataRange != ''">
|
|
4217
|
+
<div t-if="searchOptions.searchScope === 'specificRange' and state.dataRange != ''">
|
|
4201
4218
|
<t t-esc="specificRangeMatchesCount"/>
|
|
4202
4219
|
</div>
|
|
4203
4220
|
<div>
|
|
@@ -4286,6 +4303,31 @@
|
|
|
4286
4303
|
</t>
|
|
4287
4304
|
</t>
|
|
4288
4305
|
|
|
4306
|
+
<t t-name="o-spreadsheet-PivotDeferUpdate">
|
|
4307
|
+
<Section
|
|
4308
|
+
class="'align-items-center border-top d-flex flex-row justify-content-between py-1 pivot-defer-update'">
|
|
4309
|
+
<Checkbox
|
|
4310
|
+
label="deferUpdatesLabel"
|
|
4311
|
+
title="deferUpdatesTooltip"
|
|
4312
|
+
value="props.deferUpdate"
|
|
4313
|
+
onChange="(value) => props.toggleDeferUpdate(value)"
|
|
4314
|
+
/>
|
|
4315
|
+
<div t-if="props.isDirty">
|
|
4316
|
+
<i
|
|
4317
|
+
class="btn btn-sm pe-0 fa fa-undo"
|
|
4318
|
+
title="Discard all changes"
|
|
4319
|
+
t-on-click="() => props.discard()"
|
|
4320
|
+
/>
|
|
4321
|
+
<span
|
|
4322
|
+
class="btn btm-sm btn-link sp_apply_update"
|
|
4323
|
+
title="Apply all changes"
|
|
4324
|
+
t-on-click="() => props.apply()">
|
|
4325
|
+
Update
|
|
4326
|
+
</span>
|
|
4327
|
+
</div>
|
|
4328
|
+
</Section>
|
|
4329
|
+
</t>
|
|
4330
|
+
|
|
4289
4331
|
<t t-name="o-spreadsheet-AddDimensionButton">
|
|
4290
4332
|
<span class="btn btn-sm btn-link add-dimension" t-on-click="togglePopover" t-ref="button">
|
|
4291
4333
|
Add
|
|
@@ -4460,35 +4502,14 @@
|
|
|
4460
4502
|
</div>
|
|
4461
4503
|
</t>
|
|
4462
4504
|
|
|
4463
|
-
<t t-name="o-spreadsheet-PivotListItem">
|
|
4464
|
-
<div
|
|
4465
|
-
class="o_pivot_list_item p-4 border-bottom"
|
|
4466
|
-
t-ref="pivotListItem"
|
|
4467
|
-
t-on-click="this.selectPivot">
|
|
4468
|
-
<span t-esc="env.model.getters.getPivotDisplayName(props.pivotId)"/>
|
|
4469
|
-
</div>
|
|
4470
|
-
</t>
|
|
4471
|
-
|
|
4472
4505
|
<t t-name="o-spreadsheet-PivotSidePanel">
|
|
4473
|
-
<t t-
|
|
4474
|
-
<t t-else="">
|
|
4475
|
-
<t t-foreach="env.model.getters.getPivotIds()" t-as="pivotId" t-key="pivotId">
|
|
4476
|
-
<PivotListItem pivotId="pivotId"/>
|
|
4477
|
-
</t>
|
|
4478
|
-
</t>
|
|
4506
|
+
<t t-component="sidePanelEditor" t-props="props"/>
|
|
4479
4507
|
</t>
|
|
4480
4508
|
|
|
4481
4509
|
<t t-name="o-spreadsheet-PivotSpreadsheetSidePanel">
|
|
4482
4510
|
<div class="d-flex flex-column h-100 justify-content-between overflow-hidden">
|
|
4483
4511
|
<div class="h-100 overflow-auto">
|
|
4484
|
-
<
|
|
4485
|
-
<t t-set-slot="title">Name</t>
|
|
4486
|
-
<EditableName name="name" displayName="displayName" onChanged.bind="onNameChanged"/>
|
|
4487
|
-
<div class="btn btn-link o_duplicate_pivot" t-on-click="duplicatePivot">
|
|
4488
|
-
<i class="fa fa-solid fa-copy me-1"/>
|
|
4489
|
-
Duplicate Pivot
|
|
4490
|
-
</div>
|
|
4491
|
-
</Section>
|
|
4512
|
+
<PivotTitleSection pivotId="props.pivotId"/>
|
|
4492
4513
|
<Section>
|
|
4493
4514
|
<t t-set-slot="title">Range</t>
|
|
4494
4515
|
<SelectionInput
|
|
@@ -4515,38 +4536,29 @@
|
|
|
4515
4536
|
definition="definition"
|
|
4516
4537
|
onDimensionsUpdated.bind="onDimensionsUpdated"
|
|
4517
4538
|
/>
|
|
4518
|
-
<Section>
|
|
4519
|
-
<button class="btn btn-link sp_back" t-on-click="back">Back</button>
|
|
4520
|
-
<button class="btn btn-link sp_delete" t-on-click="delete">Delete</button>
|
|
4521
|
-
</Section>
|
|
4522
4539
|
</div>
|
|
4523
|
-
<
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
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>
|
|
4540
|
+
<PivotDeferUpdate
|
|
4541
|
+
deferUpdate="store.updatesAreDeferred"
|
|
4542
|
+
toggleDeferUpdate="(value) => store.deferUpdates(value)"
|
|
4543
|
+
isDirty="store.isDirty"
|
|
4544
|
+
discard="store.discardPendingUpdate"
|
|
4545
|
+
apply="store.applyUpdate"
|
|
4546
|
+
/>
|
|
4547
4547
|
</div>
|
|
4548
4548
|
</t>
|
|
4549
4549
|
|
|
4550
|
+
<t t-name="o-spreadsheet-PivotTitleSection">
|
|
4551
|
+
<Section>
|
|
4552
|
+
<t t-set-slot="title">
|
|
4553
|
+
<div class="d-flex flex-row justify-content-between align-items-center">
|
|
4554
|
+
Name
|
|
4555
|
+
<CogWheelMenu items="cogWheelMenuItems"/>
|
|
4556
|
+
</div>
|
|
4557
|
+
</t>
|
|
4558
|
+
<EditableName name="name" displayName="displayName" onChanged.bind="onNameChanged"/>
|
|
4559
|
+
</Section>
|
|
4560
|
+
</t>
|
|
4561
|
+
|
|
4550
4562
|
<t t-name="o-spreadsheet-RemoveDuplicatesPanel">
|
|
4551
4563
|
<div class="o-remove-duplicates">
|
|
4552
4564
|
<Section>
|
|
@@ -4607,6 +4619,7 @@
|
|
|
4607
4619
|
menuItems="props.menuItems"
|
|
4608
4620
|
position="menuPosition"
|
|
4609
4621
|
onClose.bind="onMenuClosed"
|
|
4622
|
+
menuId="menuId"
|
|
4610
4623
|
/>
|
|
4611
4624
|
</t>
|
|
4612
4625
|
|