@odoo/o-spreadsheet 18.1.18 → 18.1.20
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 +617 -97
- package/dist/o-spreadsheet.d.ts +285 -156
- package/dist/o-spreadsheet.esm.js +617 -97
- package/dist/o-spreadsheet.iife.js +617 -97
- package/dist/o-spreadsheet.iife.min.js +423 -387
- package/dist/o_spreadsheet.xml +64 -16
- 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 18.1.
|
|
5
|
-
@date 2025-05-
|
|
6
|
-
@hash
|
|
4
|
+
@version 18.1.20
|
|
5
|
+
@date 2025-05-13T17:53:11.014Z
|
|
6
|
+
@hash 3e43a46
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ActionButton">
|
|
@@ -512,12 +512,17 @@
|
|
|
512
512
|
t-on-dblclick="onDblClick"
|
|
513
513
|
t-on-contextmenu="onContextMenu"
|
|
514
514
|
t-on-blur="onBlur"
|
|
515
|
+
t-on-wheel="onWheel"
|
|
515
516
|
/>
|
|
516
517
|
</div>
|
|
517
518
|
<div
|
|
518
519
|
class="o-composer-assistant-container shadow position-absolute z-1"
|
|
519
520
|
t-att-style="assistantContainerStyle"
|
|
520
|
-
t-if="props.focus !== 'inactive' and !assistant.forcedClosed and assistantIsAvailable"
|
|
521
|
+
t-if="props.focus !== 'inactive' and !assistant.forcedClosed and assistantIsAvailable"
|
|
522
|
+
t-on-wheel.stop=""
|
|
523
|
+
t-on-pointerdown.prevent.stop=""
|
|
524
|
+
t-on-pointerup.prevent.stop=""
|
|
525
|
+
t-on-click.prevent.stop="">
|
|
521
526
|
<span
|
|
522
527
|
role="button"
|
|
523
528
|
t-on-click="closeAssistant"
|
|
@@ -525,13 +530,7 @@
|
|
|
525
530
|
<i class="fa fa-circle fa-stack-1x fa-inverse"/>
|
|
526
531
|
<i class="fa fa-times-circle fa-stack-1x text-muted"/>
|
|
527
532
|
</span>
|
|
528
|
-
<div
|
|
529
|
-
class="o-composer-assistant overflow-auto"
|
|
530
|
-
t-att-style="assistantStyle"
|
|
531
|
-
t-on-wheel.stop=""
|
|
532
|
-
t-on-pointerdown.prevent.stop=""
|
|
533
|
-
t-on-click.prevent.stop=""
|
|
534
|
-
t-on-pointerup.prevent.stop="">
|
|
533
|
+
<div class="o-composer-assistant overflow-auto" t-att-style="assistantStyle">
|
|
535
534
|
<FunctionDescriptionProvider
|
|
536
535
|
t-if="functionDescriptionState.showDescription"
|
|
537
536
|
functionName="functionDescriptionState.functionName"
|
|
@@ -2617,6 +2616,55 @@
|
|
|
2617
2616
|
</span>
|
|
2618
2617
|
</t>
|
|
2619
2618
|
|
|
2619
|
+
<t t-name="o_spreadsheet.PivotHTMLRenderer">
|
|
2620
|
+
<div class="o_pivot_html_renderer">
|
|
2621
|
+
<Checkbox
|
|
2622
|
+
name="'missing_values'"
|
|
2623
|
+
label.translate="Display missing cells only"
|
|
2624
|
+
value="state.showMissingValuesOnly"
|
|
2625
|
+
onChange.bind="(value) => this.state.showMissingValuesOnly = value"
|
|
2626
|
+
className="'m-2'"
|
|
2627
|
+
/>
|
|
2628
|
+
<t t-set="tableData" t-value="getTableData()"/>
|
|
2629
|
+
<table
|
|
2630
|
+
class="o_pivot_html_renderer"
|
|
2631
|
+
t-if="tableData.values.length > 0 or tableData.rows.length > 0">
|
|
2632
|
+
<tr t-foreach="tableData.columns" t-as="row" t-key="row_index">
|
|
2633
|
+
<t t-if="row_index === 0">
|
|
2634
|
+
<th t-att-rowspan="tableData.columns.length"/>
|
|
2635
|
+
</t>
|
|
2636
|
+
<t t-foreach="row" t-as="cell" t-key="cell_index">
|
|
2637
|
+
<th
|
|
2638
|
+
t-att-colspan="cell.span"
|
|
2639
|
+
t-att-style="cell.style"
|
|
2640
|
+
t-att-class="{ o_missing_value: cell.isMissing }"
|
|
2641
|
+
t-on-click="() => props.onCellClicked(cell.formula)">
|
|
2642
|
+
<t t-esc="cell.value"/>
|
|
2643
|
+
</th>
|
|
2644
|
+
</t>
|
|
2645
|
+
</tr>
|
|
2646
|
+
<t t-foreach="tableData.rows" t-as="row" t-key="row_index">
|
|
2647
|
+
<tr>
|
|
2648
|
+
<th
|
|
2649
|
+
t-att-style="row.style"
|
|
2650
|
+
t-att-class="{ o_missing_value: row.isMissing }"
|
|
2651
|
+
t-on-click="() => props.onCellClicked(row.formula)">
|
|
2652
|
+
<t t-esc="row.value"/>
|
|
2653
|
+
</th>
|
|
2654
|
+
<t t-foreach="tableData.values" t-as="col" t-key="col_index">
|
|
2655
|
+
<td
|
|
2656
|
+
t-att-class="{ o_missing_value: col[row_index].isMissing }"
|
|
2657
|
+
t-on-click="() => props.onCellClicked(col[row_index].formula)">
|
|
2658
|
+
<t t-esc="col[row_index].value"/>
|
|
2659
|
+
</td>
|
|
2660
|
+
</t>
|
|
2661
|
+
</tr>
|
|
2662
|
+
</t>
|
|
2663
|
+
</table>
|
|
2664
|
+
<div class="alert alert-info" t-else="1">This pivot has no cell missing on this sheet</div>
|
|
2665
|
+
</div>
|
|
2666
|
+
</t>
|
|
2667
|
+
|
|
2620
2668
|
<t t-name="o-spreadsheet-Popover">
|
|
2621
2669
|
<t t-portal="'.o-spreadsheet'">
|
|
2622
2670
|
<div
|
|
@@ -5181,7 +5229,7 @@
|
|
|
5181
5229
|
<t t-name="o-spreadsheet-PivotDimensionGranularity">
|
|
5182
5230
|
<div class="d-flex flex-row">
|
|
5183
5231
|
<div class="d-flex flex-row py-1 px-2 w-100 small">
|
|
5184
|
-
<t t-set="
|
|
5232
|
+
<t t-set="granularityProps" t-value="props.dimension.granularity || 'month'"/>
|
|
5185
5233
|
<div class="pivot-dim-operator-label">Granularity</div>
|
|
5186
5234
|
<select
|
|
5187
5235
|
class="o-input flex-grow-1"
|
|
@@ -5190,10 +5238,10 @@
|
|
|
5190
5238
|
t-foreach="props.allGranularities"
|
|
5191
5239
|
t-as="granularity"
|
|
5192
5240
|
t-key="granularity"
|
|
5193
|
-
t-if="props.availableGranularities.has(granularity) || granularity ===
|
|
5241
|
+
t-if="props.availableGranularities.has(granularity) || granularity === granularityProps"
|
|
5194
5242
|
t-att-value="granularity"
|
|
5195
5243
|
t-esc="periods[granularity]"
|
|
5196
|
-
t-att-selected="granularity ===
|
|
5244
|
+
t-att-selected="granularity === granularityProps or (granularity === 'month' and !granularityProps)"
|
|
5197
5245
|
/>
|
|
5198
5246
|
</select>
|
|
5199
5247
|
</div>
|
|
@@ -5230,7 +5278,7 @@
|
|
|
5230
5278
|
fields="props.unusedGroupableFields"
|
|
5231
5279
|
/>
|
|
5232
5280
|
</div>
|
|
5233
|
-
<t t-foreach="props.definition.columns" t-as="col" t-key="
|
|
5281
|
+
<t t-foreach="props.definition.columns" t-as="col" t-key="col_index">
|
|
5234
5282
|
<div
|
|
5235
5283
|
t-on-pointerdown="(ev) => this.startDragAndDrop(col, ev)"
|
|
5236
5284
|
t-att-style="dragAndDrop.itemsStyle[col.nameWithGranularity]"
|
|
@@ -5256,7 +5304,7 @@
|
|
|
5256
5304
|
fields="props.unusedGroupableFields"
|
|
5257
5305
|
/>
|
|
5258
5306
|
</div>
|
|
5259
|
-
<t t-foreach="props.definition.rows" t-as="row" t-key="
|
|
5307
|
+
<t t-foreach="props.definition.rows" t-as="row" t-key="row_index">
|
|
5260
5308
|
<div
|
|
5261
5309
|
t-on-pointerdown="(ev) => this.startDragAndDrop(row, ev)"
|
|
5262
5310
|
t-att-style="dragAndDrop.itemsStyle[row.nameWithGranularity]"
|