@odoo/o-spreadsheet 18.2.10 → 18.2.12
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 +624 -90
- package/dist/o-spreadsheet.d.ts +289 -159
- package/dist/o-spreadsheet.esm.js +624 -90
- package/dist/o-spreadsheet.iife.js +624 -90
- package/dist/o-spreadsheet.iife.min.js +428 -392
- 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.2.
|
|
5
|
-
@date 2025-05-
|
|
6
|
-
@hash
|
|
4
|
+
@version 18.2.12
|
|
5
|
+
@date 2025-05-13T17:53:05.639Z
|
|
6
|
+
@hash ba2ba9b
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -868,7 +868,7 @@
|
|
|
868
868
|
fields="props.unusedGroupableFields"
|
|
869
869
|
/>
|
|
870
870
|
</div>
|
|
871
|
-
<t t-foreach="props.definition.columns" t-as="col" t-key="
|
|
871
|
+
<t t-foreach="props.definition.columns" t-as="col" t-key="col_index">
|
|
872
872
|
<div
|
|
873
873
|
t-on-pointerdown="(ev) => this.startDragAndDrop(col, ev)"
|
|
874
874
|
t-att-style="dragAndDrop.itemsStyle[col.nameWithGranularity]"
|
|
@@ -894,7 +894,7 @@
|
|
|
894
894
|
fields="props.unusedGroupableFields"
|
|
895
895
|
/>
|
|
896
896
|
</div>
|
|
897
|
-
<t t-foreach="props.definition.rows" t-as="row" t-key="
|
|
897
|
+
<t t-foreach="props.definition.rows" t-as="row" t-key="row_index">
|
|
898
898
|
<div
|
|
899
899
|
t-on-pointerdown="(ev) => this.startDragAndDrop(row, ev)"
|
|
900
900
|
t-att-style="dragAndDrop.itemsStyle[row.nameWithGranularity]"
|
|
@@ -1036,7 +1036,7 @@
|
|
|
1036
1036
|
<t t-name="o-spreadsheet-PivotDimensionGranularity">
|
|
1037
1037
|
<div class="d-flex flex-row">
|
|
1038
1038
|
<div class="d-flex flex-row py-1 px-2 w-100 small">
|
|
1039
|
-
<t t-set="
|
|
1039
|
+
<t t-set="granularityProps" t-value="props.dimension.granularity || 'month'"/>
|
|
1040
1040
|
<div class="pivot-dim-operator-label">Granularity</div>
|
|
1041
1041
|
<select
|
|
1042
1042
|
class="o-input flex-grow-1"
|
|
@@ -1045,10 +1045,10 @@
|
|
|
1045
1045
|
t-foreach="props.allGranularities"
|
|
1046
1046
|
t-as="granularity"
|
|
1047
1047
|
t-key="granularity"
|
|
1048
|
-
t-if="props.availableGranularities.has(granularity) || granularity ===
|
|
1048
|
+
t-if="props.availableGranularities.has(granularity) || granularity === granularityProps"
|
|
1049
1049
|
t-att-value="granularity"
|
|
1050
1050
|
t-esc="periods[granularity]"
|
|
1051
|
-
t-att-selected="granularity ===
|
|
1051
|
+
t-att-selected="granularity === granularityProps or (granularity === 'month' and !granularityProps)"
|
|
1052
1052
|
/>
|
|
1053
1053
|
</select>
|
|
1054
1054
|
</div>
|
|
@@ -3609,6 +3609,55 @@
|
|
|
3609
3609
|
</t>
|
|
3610
3610
|
</t>
|
|
3611
3611
|
|
|
3612
|
+
<t t-name="o_spreadsheet.PivotHTMLRenderer">
|
|
3613
|
+
<div class="o_pivot_html_renderer">
|
|
3614
|
+
<Checkbox
|
|
3615
|
+
name="'missing_values'"
|
|
3616
|
+
label.translate="Display missing cells only"
|
|
3617
|
+
value="state.showMissingValuesOnly"
|
|
3618
|
+
onChange.bind="(value) => this.state.showMissingValuesOnly = value"
|
|
3619
|
+
className="'m-2'"
|
|
3620
|
+
/>
|
|
3621
|
+
<t t-set="tableData" t-value="getTableData()"/>
|
|
3622
|
+
<table
|
|
3623
|
+
class="o_pivot_html_renderer"
|
|
3624
|
+
t-if="tableData.values.length > 0 or tableData.rows.length > 0">
|
|
3625
|
+
<tr t-foreach="tableData.columns" t-as="row" t-key="row_index">
|
|
3626
|
+
<t t-if="row_index === 0">
|
|
3627
|
+
<th t-att-rowspan="tableData.columns.length"/>
|
|
3628
|
+
</t>
|
|
3629
|
+
<t t-foreach="row" t-as="cell" t-key="cell_index">
|
|
3630
|
+
<th
|
|
3631
|
+
t-att-colspan="cell.span"
|
|
3632
|
+
t-att-style="cell.style"
|
|
3633
|
+
t-att-class="{ o_missing_value: cell.isMissing }"
|
|
3634
|
+
t-on-click="() => props.onCellClicked(cell.formula)">
|
|
3635
|
+
<t t-esc="cell.value"/>
|
|
3636
|
+
</th>
|
|
3637
|
+
</t>
|
|
3638
|
+
</tr>
|
|
3639
|
+
<t t-foreach="tableData.rows" t-as="row" t-key="row_index">
|
|
3640
|
+
<tr>
|
|
3641
|
+
<th
|
|
3642
|
+
t-att-style="row.style"
|
|
3643
|
+
t-att-class="{ o_missing_value: row.isMissing }"
|
|
3644
|
+
t-on-click="() => props.onCellClicked(row.formula)">
|
|
3645
|
+
<t t-esc="row.value"/>
|
|
3646
|
+
</th>
|
|
3647
|
+
<t t-foreach="tableData.values" t-as="col" t-key="col_index">
|
|
3648
|
+
<td
|
|
3649
|
+
t-att-class="{ o_missing_value: col[row_index].isMissing }"
|
|
3650
|
+
t-on-click="() => props.onCellClicked(col[row_index].formula)">
|
|
3651
|
+
<t t-esc="col[row_index].value"/>
|
|
3652
|
+
</td>
|
|
3653
|
+
</t>
|
|
3654
|
+
</tr>
|
|
3655
|
+
</t>
|
|
3656
|
+
</table>
|
|
3657
|
+
<div class="alert alert-info" t-else="1">This pivot has no cell missing on this sheet</div>
|
|
3658
|
+
</div>
|
|
3659
|
+
</t>
|
|
3660
|
+
|
|
3612
3661
|
<t t-name="o-spreadsheet-PaintFormatButton">
|
|
3613
3662
|
<span
|
|
3614
3663
|
class="o-menu-item-button"
|
|
@@ -5765,12 +5814,17 @@
|
|
|
5765
5814
|
t-on-dblclick="onDblClick"
|
|
5766
5815
|
t-on-contextmenu="onContextMenu"
|
|
5767
5816
|
t-on-blur="onBlur"
|
|
5817
|
+
t-on-wheel="onWheel"
|
|
5768
5818
|
/>
|
|
5769
5819
|
</div>
|
|
5770
5820
|
<div
|
|
5771
5821
|
class="o-composer-assistant-container shadow position-absolute z-1"
|
|
5772
5822
|
t-att-style="assistantContainerStyle"
|
|
5773
|
-
t-if="props.focus !== 'inactive' and !assistant.forcedClosed and assistantIsAvailable"
|
|
5823
|
+
t-if="props.focus !== 'inactive' and !assistant.forcedClosed and assistantIsAvailable"
|
|
5824
|
+
t-on-wheel.stop=""
|
|
5825
|
+
t-on-pointerdown.prevent.stop=""
|
|
5826
|
+
t-on-pointerup.prevent.stop=""
|
|
5827
|
+
t-on-click.prevent.stop="">
|
|
5774
5828
|
<span
|
|
5775
5829
|
role="button"
|
|
5776
5830
|
t-on-click="closeAssistant"
|
|
@@ -5778,13 +5832,7 @@
|
|
|
5778
5832
|
<i class="fa fa-circle fa-stack-1x fa-inverse"/>
|
|
5779
5833
|
<i class="fa fa-times-circle fa-stack-1x text-muted"/>
|
|
5780
5834
|
</span>
|
|
5781
|
-
<div
|
|
5782
|
-
class="o-composer-assistant overflow-auto"
|
|
5783
|
-
t-att-style="assistantStyle"
|
|
5784
|
-
t-on-wheel.stop=""
|
|
5785
|
-
t-on-pointerdown.prevent.stop=""
|
|
5786
|
-
t-on-click.prevent.stop=""
|
|
5787
|
-
t-on-pointerup.prevent.stop="">
|
|
5835
|
+
<div class="o-composer-assistant overflow-auto" t-att-style="assistantStyle">
|
|
5788
5836
|
<FunctionDescriptionProvider
|
|
5789
5837
|
t-if="functionDescriptionState.showDescription"
|
|
5790
5838
|
functionName="functionDescriptionState.functionName"
|