@odoo/o-spreadsheet 17.3.0-alpha.7 → 17.3.0-alpha.9
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 +2762 -1373
- package/dist/o-spreadsheet.d.ts +261 -200
- package/dist/o-spreadsheet.esm.js +2763 -1374
- package/dist/o-spreadsheet.iife.js +2761 -1372
- package/dist/o-spreadsheet.iife.min.js +334 -324
- package/dist/o_spreadsheet.xml +118 -35
- 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.3.0-alpha.
|
|
5
|
-
@date 2024-05-
|
|
6
|
-
@hash
|
|
4
|
+
@version 17.3.0-alpha.9
|
|
5
|
+
@date 2024-05-24T11:32:57.581Z
|
|
6
|
+
@hash aac246d
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ActionButton">
|
|
@@ -4170,18 +4170,6 @@
|
|
|
4170
4170
|
</div>
|
|
4171
4171
|
</t>
|
|
4172
4172
|
|
|
4173
|
-
<div t-name="o-spreadsheet-AllPivotsSidePanel" class="o_spreadsheet_pivot_side_panel">
|
|
4174
|
-
<t t-foreach="env.model.getters.getPivotIds()" t-as="pivotId" t-key="pivotId">
|
|
4175
|
-
<PivotPreview pivotId="pivotId"/>
|
|
4176
|
-
</t>
|
|
4177
|
-
</div>
|
|
4178
|
-
|
|
4179
|
-
<t t-name="o-spreadsheet-PivotPreview">
|
|
4180
|
-
<div class="o_side_panel_select" t-ref="pivotPreview" t-on-click="this.selectPivot">
|
|
4181
|
-
<span t-esc="env.model.getters.getPivotDisplayName(props.pivotId)"/>
|
|
4182
|
-
</div>
|
|
4183
|
-
</t>
|
|
4184
|
-
|
|
4185
4173
|
<t t-name="o-spreadsheet-EditableName">
|
|
4186
4174
|
<t t-if="state.isEditing">
|
|
4187
4175
|
<div>
|
|
@@ -4205,32 +4193,31 @@
|
|
|
4205
4193
|
Add
|
|
4206
4194
|
</span>
|
|
4207
4195
|
<Popover t-if="popover.isOpen" t-props="popoverProps">
|
|
4208
|
-
<div
|
|
4196
|
+
<div
|
|
4197
|
+
class="p-2 bg-white border-bottom d-flex sticky-top align-items-baseline pivot-dimension-search">
|
|
4209
4198
|
<i class="pe-1 pivot-dimension-search-field-icon">
|
|
4210
4199
|
<t t-call="o-spreadsheet-Icon.SEARCH"/>
|
|
4211
4200
|
</i>
|
|
4212
4201
|
<input
|
|
4213
|
-
t-
|
|
4202
|
+
t-on-input="(ev) => this.updateSearch(ev.target.value)"
|
|
4214
4203
|
t-on-keydown="onKeyDown"
|
|
4215
4204
|
class="border-0 w-100 pivot-dimension-search-field"
|
|
4216
|
-
|
|
4205
|
+
t-ref="autofocus"
|
|
4217
4206
|
/>
|
|
4218
4207
|
</div>
|
|
4219
|
-
<
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
t-att-title="field.help"
|
|
4225
|
-
t-on-click="() => this.pickField(field)"
|
|
4226
|
-
class="p-1 px-2 pivot-dimension-field"
|
|
4227
|
-
role="button"
|
|
4208
|
+
<TextValueProvider
|
|
4209
|
+
proposals="autoComplete.provider.proposals"
|
|
4210
|
+
selectedIndex="autoComplete.selectedIndex"
|
|
4211
|
+
onValueSelected="autoComplete.provider.selectProposal"
|
|
4212
|
+
onValueHovered="() => {}"
|
|
4228
4213
|
/>
|
|
4229
4214
|
</Popover>
|
|
4230
4215
|
</t>
|
|
4231
4216
|
|
|
4232
4217
|
<t t-name="o-spreadsheet-PivotDimension">
|
|
4233
|
-
<div
|
|
4218
|
+
<div
|
|
4219
|
+
class="border py-1 px-2 d-flex flex-column shadow-sm pivot-dimension"
|
|
4220
|
+
t-att-class="{'bg-danger': !props.dimension.isValid}">
|
|
4234
4221
|
<div class="d-flex flex-row justify-content-between align-items-center">
|
|
4235
4222
|
<span class="fw-bold" t-esc="props.dimension.displayName"/>
|
|
4236
4223
|
<i
|
|
@@ -4252,7 +4239,7 @@
|
|
|
4252
4239
|
class="o_input flex-basis-50"
|
|
4253
4240
|
t-on-change="(ev) => props.onUpdated(props.dimension, ev.target.value)">
|
|
4254
4241
|
<option
|
|
4255
|
-
t-foreach="allGranularities"
|
|
4242
|
+
t-foreach="props.allGranularities"
|
|
4256
4243
|
t-as="granularity"
|
|
4257
4244
|
t-key="granularity"
|
|
4258
4245
|
t-if="props.availableGranularities.has(granularity) || granularity === props.dimension.granularity"
|
|
@@ -4272,17 +4259,23 @@
|
|
|
4272
4259
|
<select
|
|
4273
4260
|
class="o_input flex-basis-50"
|
|
4274
4261
|
t-on-change="(ev) => props.onUpdated(props.dimension, ev.target.value)">
|
|
4275
|
-
<option value="" t-att-selected="props.dimension.order === undefined">Automatic</option>
|
|
4276
4262
|
<option value="asc" t-att-selected="props.dimension.order === 'asc'">Ascending</option>
|
|
4277
4263
|
<option value="desc" t-att-selected="props.dimension.order === 'desc'">Descending</option>
|
|
4264
|
+
<option
|
|
4265
|
+
t-if="props.dimension.type !== 'date'"
|
|
4266
|
+
value=""
|
|
4267
|
+
t-att-selected="props.dimension.order === undefined">
|
|
4268
|
+
Unsorted
|
|
4269
|
+
</option>
|
|
4278
4270
|
</select>
|
|
4279
4271
|
</div>
|
|
4280
4272
|
</div>
|
|
4281
4273
|
</t>
|
|
4282
4274
|
|
|
4283
|
-
<t t-name="o-spreadsheet-
|
|
4284
|
-
<div class="o_side_panel_section pivot-dimensions" t-ref="pivot-dimensions">
|
|
4285
|
-
<div
|
|
4275
|
+
<t t-name="o-spreadsheet-PivotLayoutConfigurator">
|
|
4276
|
+
<div class="o_side_panel_section pivot-dimensions o-section" t-ref="pivot-dimensions">
|
|
4277
|
+
<div
|
|
4278
|
+
class="fw-bold py-1 d-flex flex-row justify-content-between align-items-center o-section-title">
|
|
4286
4279
|
Columns
|
|
4287
4280
|
<AddDimensionButton
|
|
4288
4281
|
onFieldPicked.bind="addColumnDimension"
|
|
@@ -4300,13 +4293,14 @@
|
|
|
4300
4293
|
dimension="col"
|
|
4301
4294
|
onUpdated.bind="this.updateGranularity"
|
|
4302
4295
|
availableGranularities="props.unusedDateTimeGranularities[col.name]"
|
|
4296
|
+
allGranularities="props.allGranularities"
|
|
4303
4297
|
/>
|
|
4304
4298
|
<PivotDimensionOrder dimension="col" onUpdated.bind="this.updateOrder"/>
|
|
4305
4299
|
</PivotDimension>
|
|
4306
4300
|
</div>
|
|
4307
4301
|
</t>
|
|
4308
4302
|
<div
|
|
4309
|
-
class="fw-bold pt-4 pb-1 d-flex flex-row justify-content-between align-items-center"
|
|
4303
|
+
class="fw-bold pt-4 pb-1 d-flex flex-row justify-content-between align-items-center o-section-title"
|
|
4310
4304
|
t-att-style="dragAndDrop.itemsStyle['__rows_title__']">
|
|
4311
4305
|
Rows
|
|
4312
4306
|
<AddDimensionButton
|
|
@@ -4325,12 +4319,14 @@
|
|
|
4325
4319
|
dimension="row"
|
|
4326
4320
|
onUpdated.bind="this.updateGranularity"
|
|
4327
4321
|
availableGranularities="props.unusedDateTimeGranularities[row.name]"
|
|
4322
|
+
allGranularities="props.allGranularities"
|
|
4328
4323
|
/>
|
|
4329
4324
|
<PivotDimensionOrder dimension="row" onUpdated.bind="this.updateOrder"/>
|
|
4330
4325
|
</PivotDimension>
|
|
4331
4326
|
</div>
|
|
4332
4327
|
</t>
|
|
4333
|
-
<div
|
|
4328
|
+
<div
|
|
4329
|
+
class="fw-bold pt-4 pb-1 d-flex flex-row justify-content-between align-items-center o-section-title">
|
|
4334
4330
|
Measures
|
|
4335
4331
|
<AddDimensionButton
|
|
4336
4332
|
onFieldPicked.bind="addMeasureDimension"
|
|
@@ -4366,6 +4362,93 @@
|
|
|
4366
4362
|
</div>
|
|
4367
4363
|
</t>
|
|
4368
4364
|
|
|
4365
|
+
<t t-name="o-spreadsheet-PivotListItem">
|
|
4366
|
+
<div
|
|
4367
|
+
class="o_pivot_list_item p-4 border-bottom"
|
|
4368
|
+
t-ref="pivotListItem"
|
|
4369
|
+
t-on-click="this.selectPivot">
|
|
4370
|
+
<span t-esc="env.model.getters.getPivotDisplayName(props.pivotId)"/>
|
|
4371
|
+
</div>
|
|
4372
|
+
</t>
|
|
4373
|
+
|
|
4374
|
+
<t t-name="o-spreadsheet-PivotSidePanel">
|
|
4375
|
+
<t t-if="props.pivotId" t-component="sidePanelEditor" t-props="props"/>
|
|
4376
|
+
<t t-else="">
|
|
4377
|
+
<t t-foreach="env.model.getters.getPivotIds()" t-as="pivotId" t-key="pivotId">
|
|
4378
|
+
<PivotListItem pivotId="pivotId"/>
|
|
4379
|
+
</t>
|
|
4380
|
+
</t>
|
|
4381
|
+
</t>
|
|
4382
|
+
|
|
4383
|
+
<t t-name="o-spreadsheet-PivotSpreadsheetSidePanel">
|
|
4384
|
+
<div class="d-flex flex-column h-100 justify-content-between overflow-hidden">
|
|
4385
|
+
<div class="h-100 overflow-auto">
|
|
4386
|
+
<Section>
|
|
4387
|
+
<t t-set-slot="title">Name</t>
|
|
4388
|
+
<EditableName name="name" displayName="displayName" onChanged.bind="onNameChanged"/>
|
|
4389
|
+
<div class="btn btn-link o_duplicate_pivot" t-on-click="duplicatePivot">
|
|
4390
|
+
<i class="fa fa-solid fa-copy me-1"/>
|
|
4391
|
+
Duplicate Pivot
|
|
4392
|
+
</div>
|
|
4393
|
+
</Section>
|
|
4394
|
+
<Section>
|
|
4395
|
+
<t t-set-slot="title">Range</t>
|
|
4396
|
+
<SelectionInput
|
|
4397
|
+
ranges="ranges"
|
|
4398
|
+
required="true"
|
|
4399
|
+
isInvalid="shouldDisplayInvalidRangeError"
|
|
4400
|
+
hasSingleRange="true"
|
|
4401
|
+
onSelectionChanged="(ranges) => this.onSelectionChanged(ranges)"
|
|
4402
|
+
onSelectionConfirmed="() => this.onSelectionConfirmed()"
|
|
4403
|
+
/>
|
|
4404
|
+
<span
|
|
4405
|
+
class="text-danger sp_range_error_message"
|
|
4406
|
+
t-if="shouldDisplayInvalidRangeError"
|
|
4407
|
+
t-esc="pivot.invalidRangeMessage"
|
|
4408
|
+
/>
|
|
4409
|
+
</Section>
|
|
4410
|
+
|
|
4411
|
+
<PivotLayoutConfigurator
|
|
4412
|
+
t-if="!pivot.isInvalidRange"
|
|
4413
|
+
unusedGroupableFields="store.unusedGroupableFields"
|
|
4414
|
+
unusedMeasureFields="store.unusedMeasureFields"
|
|
4415
|
+
unusedDateTimeGranularities="store.unusedDateTimeGranularities"
|
|
4416
|
+
allGranularities="store.allGranularities"
|
|
4417
|
+
definition="definition"
|
|
4418
|
+
onDimensionsUpdated.bind="onDimensionsUpdated"
|
|
4419
|
+
/>
|
|
4420
|
+
<Section>
|
|
4421
|
+
<button class="btn btn-link sp_back" t-on-click="back">Back</button>
|
|
4422
|
+
<button class="btn btn-link sp_delete" t-on-click="delete">Delete</button>
|
|
4423
|
+
</Section>
|
|
4424
|
+
</div>
|
|
4425
|
+
<Section
|
|
4426
|
+
class="'align-items-center border-top d-flex flex-row justify-content-between py-1 pivot-defer-update'">
|
|
4427
|
+
<Checkbox
|
|
4428
|
+
label="deferUpdatesLabel"
|
|
4429
|
+
title="deferUpdatesTooltip"
|
|
4430
|
+
value="store.updatesAreDeferred"
|
|
4431
|
+
onChange="(value) => store.deferUpdates(value)"
|
|
4432
|
+
/>
|
|
4433
|
+
<div>
|
|
4434
|
+
<i
|
|
4435
|
+
t-if="store.isDirty"
|
|
4436
|
+
class="btn btn-sm pe-0 fa fa-undo"
|
|
4437
|
+
title="Discard all changes"
|
|
4438
|
+
t-on-click="() => store.discardPendingUpdate()"
|
|
4439
|
+
/>
|
|
4440
|
+
<span
|
|
4441
|
+
t-if="store.isDirty"
|
|
4442
|
+
class="btn btm-sm btn-link sp_apply_update"
|
|
4443
|
+
title="Apply all changes"
|
|
4444
|
+
t-on-click="() => store.applyUpdate()">
|
|
4445
|
+
Update
|
|
4446
|
+
</span>
|
|
4447
|
+
</div>
|
|
4448
|
+
</Section>
|
|
4449
|
+
</div>
|
|
4450
|
+
</t>
|
|
4451
|
+
|
|
4369
4452
|
<t t-name="o-spreadsheet-RemoveDuplicatesPanel">
|
|
4370
4453
|
<div class="o-remove-duplicates">
|
|
4371
4454
|
<Section>
|