@odoo/o-spreadsheet 18.0.26 → 18.0.28
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 +580 -81
- package/dist/o-spreadsheet.d.ts +271 -144
- package/dist/o-spreadsheet.esm.js +580 -81
- package/dist/o-spreadsheet.iife.js +580 -81
- package/dist/o-spreadsheet.iife.min.js +405 -369
- 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.0.
|
|
5
|
-
@date 2025-05-
|
|
6
|
-
@hash
|
|
4
|
+
@version 18.0.28
|
|
5
|
+
@date 2025-05-13T17:54:05.940Z
|
|
6
|
+
@hash b3088aa
|
|
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"
|
|
@@ -2605,6 +2604,55 @@
|
|
|
2605
2604
|
</span>
|
|
2606
2605
|
</t>
|
|
2607
2606
|
|
|
2607
|
+
<t t-name="o_spreadsheet.PivotHTMLRenderer">
|
|
2608
|
+
<div class="o_pivot_html_renderer">
|
|
2609
|
+
<Checkbox
|
|
2610
|
+
name="'missing_values'"
|
|
2611
|
+
label.translate="Display missing cells only"
|
|
2612
|
+
value="state.showMissingValuesOnly"
|
|
2613
|
+
onChange.bind="(value) => this.state.showMissingValuesOnly = value"
|
|
2614
|
+
className="'m-2'"
|
|
2615
|
+
/>
|
|
2616
|
+
<t t-set="tableData" t-value="getTableData()"/>
|
|
2617
|
+
<table
|
|
2618
|
+
class="o_pivot_html_renderer"
|
|
2619
|
+
t-if="tableData.values.length > 0 or tableData.rows.length > 0">
|
|
2620
|
+
<tr t-foreach="tableData.columns" t-as="row" t-key="row_index">
|
|
2621
|
+
<t t-if="row_index === 0">
|
|
2622
|
+
<th t-att-rowspan="tableData.columns.length"/>
|
|
2623
|
+
</t>
|
|
2624
|
+
<t t-foreach="row" t-as="cell" t-key="cell_index">
|
|
2625
|
+
<th
|
|
2626
|
+
t-att-colspan="cell.span"
|
|
2627
|
+
t-att-style="cell.style"
|
|
2628
|
+
t-att-class="{ o_missing_value: cell.isMissing }"
|
|
2629
|
+
t-on-click="() => props.onCellClicked(cell.formula)">
|
|
2630
|
+
<t t-esc="cell.value"/>
|
|
2631
|
+
</th>
|
|
2632
|
+
</t>
|
|
2633
|
+
</tr>
|
|
2634
|
+
<t t-foreach="tableData.rows" t-as="row" t-key="row_index">
|
|
2635
|
+
<tr>
|
|
2636
|
+
<th
|
|
2637
|
+
t-att-style="row.style"
|
|
2638
|
+
t-att-class="{ o_missing_value: row.isMissing }"
|
|
2639
|
+
t-on-click="() => props.onCellClicked(row.formula)">
|
|
2640
|
+
<t t-esc="row.value"/>
|
|
2641
|
+
</th>
|
|
2642
|
+
<t t-foreach="tableData.values" t-as="col" t-key="col_index">
|
|
2643
|
+
<td
|
|
2644
|
+
t-att-class="{ o_missing_value: col[row_index].isMissing }"
|
|
2645
|
+
t-on-click="() => props.onCellClicked(col[row_index].formula)">
|
|
2646
|
+
<t t-esc="col[row_index].value"/>
|
|
2647
|
+
</td>
|
|
2648
|
+
</t>
|
|
2649
|
+
</tr>
|
|
2650
|
+
</t>
|
|
2651
|
+
</table>
|
|
2652
|
+
<div class="alert alert-info" t-else="1">This pivot has no cell missing on this sheet</div>
|
|
2653
|
+
</div>
|
|
2654
|
+
</t>
|
|
2655
|
+
|
|
2608
2656
|
<t t-name="o-spreadsheet-Popover">
|
|
2609
2657
|
<t t-portal="'.o-spreadsheet'">
|
|
2610
2658
|
<div
|
|
@@ -5056,7 +5104,7 @@
|
|
|
5056
5104
|
<t t-name="o-spreadsheet-PivotDimensionGranularity">
|
|
5057
5105
|
<div class="d-flex flex-row">
|
|
5058
5106
|
<div class="d-flex flex-row py-1 px-2 w-100 small">
|
|
5059
|
-
<t t-set="
|
|
5107
|
+
<t t-set="granularityProps" t-value="props.dimension.granularity || 'month'"/>
|
|
5060
5108
|
<div class="pivot-dim-operator-label">Granularity</div>
|
|
5061
5109
|
<select
|
|
5062
5110
|
class="o-input flex-grow-1"
|
|
@@ -5065,10 +5113,10 @@
|
|
|
5065
5113
|
t-foreach="props.allGranularities"
|
|
5066
5114
|
t-as="granularity"
|
|
5067
5115
|
t-key="granularity"
|
|
5068
|
-
t-if="props.availableGranularities.has(granularity) || granularity ===
|
|
5116
|
+
t-if="props.availableGranularities.has(granularity) || granularity === granularityProps"
|
|
5069
5117
|
t-att-value="granularity"
|
|
5070
5118
|
t-esc="periods[granularity]"
|
|
5071
|
-
t-att-selected="granularity ===
|
|
5119
|
+
t-att-selected="granularity === granularityProps or (granularity === 'month' and !granularityProps)"
|
|
5072
5120
|
/>
|
|
5073
5121
|
</select>
|
|
5074
5122
|
</div>
|
|
@@ -5105,7 +5153,7 @@
|
|
|
5105
5153
|
fields="props.unusedGroupableFields"
|
|
5106
5154
|
/>
|
|
5107
5155
|
</div>
|
|
5108
|
-
<t t-foreach="props.definition.columns" t-as="col" t-key="
|
|
5156
|
+
<t t-foreach="props.definition.columns" t-as="col" t-key="col_index">
|
|
5109
5157
|
<div
|
|
5110
5158
|
t-on-pointerdown="(ev) => this.startDragAndDrop(col, ev)"
|
|
5111
5159
|
t-att-style="dragAndDrop.itemsStyle[col.nameWithGranularity]"
|
|
@@ -5131,7 +5179,7 @@
|
|
|
5131
5179
|
fields="props.unusedGroupableFields"
|
|
5132
5180
|
/>
|
|
5133
5181
|
</div>
|
|
5134
|
-
<t t-foreach="props.definition.rows" t-as="row" t-key="
|
|
5182
|
+
<t t-foreach="props.definition.rows" t-as="row" t-key="row_index">
|
|
5135
5183
|
<div
|
|
5136
5184
|
t-on-pointerdown="(ev) => this.startDragAndDrop(row, ev)"
|
|
5137
5185
|
t-att-style="dragAndDrop.itemsStyle[row.nameWithGranularity]"
|