@odoo/o-spreadsheet 18.3.2 → 18.3.3

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.
@@ -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.3.2
5
- @date 2025-05-12T05:26:27.967Z
6
- @hash 57d5a67
4
+ @version 18.3.3
5
+ @date 2025-05-13T17:55:28.556Z
6
+ @hash b79924a
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -849,7 +849,7 @@
849
849
  fields="props.unusedGroupableFields"
850
850
  />
851
851
  </div>
852
- <t t-foreach="props.definition.columns" t-as="col" t-key="col.nameWithGranularity">
852
+ <t t-foreach="props.definition.columns" t-as="col" t-key="col_index">
853
853
  <div
854
854
  t-on-pointerdown="(ev) => this.startDragAndDrop(col, ev)"
855
855
  t-att-style="dragAndDrop.itemsStyle[col.nameWithGranularity]"
@@ -875,7 +875,7 @@
875
875
  fields="props.unusedGroupableFields"
876
876
  />
877
877
  </div>
878
- <t t-foreach="props.definition.rows" t-as="row" t-key="row.nameWithGranularity">
878
+ <t t-foreach="props.definition.rows" t-as="row" t-key="row_index">
879
879
  <div
880
880
  t-on-pointerdown="(ev) => this.startDragAndDrop(row, ev)"
881
881
  t-att-style="dragAndDrop.itemsStyle[row.nameWithGranularity]"
@@ -3871,6 +3871,55 @@
3871
3871
  </t>
3872
3872
  </t>
3873
3873
 
3874
+ <t t-name="o_spreadsheet.PivotHTMLRenderer">
3875
+ <div class="o_pivot_html_renderer">
3876
+ <Checkbox
3877
+ name="'missing_values'"
3878
+ label.translate="Display missing cells only"
3879
+ value="state.showMissingValuesOnly"
3880
+ onChange.bind="(value) => this.state.showMissingValuesOnly = value"
3881
+ className="'m-2'"
3882
+ />
3883
+ <t t-set="tableData" t-value="getTableData()"/>
3884
+ <table
3885
+ class="o_pivot_html_renderer"
3886
+ t-if="tableData.values.length > 0 or tableData.rows.length > 0">
3887
+ <tr t-foreach="tableData.columns" t-as="row" t-key="row_index">
3888
+ <t t-if="row_index === 0">
3889
+ <th t-att-rowspan="tableData.columns.length"/>
3890
+ </t>
3891
+ <t t-foreach="row" t-as="cell" t-key="cell_index">
3892
+ <th
3893
+ t-att-colspan="cell.span"
3894
+ t-att-style="cell.style"
3895
+ t-att-class="{ o_missing_value: cell.isMissing }"
3896
+ t-on-click="() => props.onCellClicked(cell.formula)">
3897
+ <t t-esc="cell.value"/>
3898
+ </th>
3899
+ </t>
3900
+ </tr>
3901
+ <t t-foreach="tableData.rows" t-as="row" t-key="row_index">
3902
+ <tr>
3903
+ <th
3904
+ t-att-style="row.style"
3905
+ t-att-class="{ o_missing_value: row.isMissing }"
3906
+ t-on-click="() => props.onCellClicked(row.formula)">
3907
+ <t t-esc="row.value"/>
3908
+ </th>
3909
+ <t t-foreach="tableData.values" t-as="col" t-key="col_index">
3910
+ <td
3911
+ t-att-class="{ o_missing_value: col[row_index].isMissing }"
3912
+ t-on-click="() => props.onCellClicked(col[row_index].formula)">
3913
+ <t t-esc="col[row_index].value"/>
3914
+ </td>
3915
+ </t>
3916
+ </tr>
3917
+ </t>
3918
+ </table>
3919
+ <div class="alert alert-info" t-else="1">This pivot has no cell missing on this sheet</div>
3920
+ </div>
3921
+ </t>
3922
+
3874
3923
  <t t-name="o-spreadsheet-PaintFormatButton">
3875
3924
  <span
3876
3925
  class="o-menu-item-button"
@@ -6068,7 +6117,11 @@
6068
6117
  <div
6069
6118
  class="o-composer-assistant-container shadow position-absolute z-1"
6070
6119
  t-att-style="assistantContainerStyle"
6071
- t-if="props.focus !== 'inactive' and !assistant.forcedClosed and assistantIsAvailable">
6120
+ t-if="props.focus !== 'inactive' and !assistant.forcedClosed and assistantIsAvailable"
6121
+ t-on-wheel.stop=""
6122
+ t-on-pointerdown.prevent.stop=""
6123
+ t-on-pointerup.prevent.stop=""
6124
+ t-on-click.prevent.stop="">
6072
6125
  <span
6073
6126
  role="button"
6074
6127
  t-on-click="closeAssistant"
@@ -6076,13 +6129,7 @@
6076
6129
  <i class="fa fa-circle fa-stack-1x fa-inverse"/>
6077
6130
  <i class="fa fa-times-circle fa-stack-1x text-muted"/>
6078
6131
  </span>
6079
- <div
6080
- class="o-composer-assistant overflow-auto"
6081
- t-att-style="assistantStyle"
6082
- t-on-wheel.stop=""
6083
- t-on-pointerdown.prevent.stop=""
6084
- t-on-click.prevent.stop=""
6085
- t-on-pointerup.prevent.stop="">
6132
+ <div class="o-composer-assistant overflow-auto" t-att-style="assistantStyle">
6086
6133
  <FunctionDescriptionProvider
6087
6134
  t-if="functionDescriptionState.showDescription"
6088
6135
  functionDescription="functionDescriptionState.functionDescription"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.3.2",
3
+ "version": "18.3.3",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",