@odoo/o-spreadsheet 18.2.11 → 18.2.13

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.2.11
5
- @date 2025-05-12T05:26:38.307Z
6
- @hash eb87dca
4
+ @version 18.2.13
5
+ @date 2025-05-20T05:57:46.697Z
6
+ @hash 9872529
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="col.nameWithGranularity">
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="row.nameWithGranularity">
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]"
@@ -990,6 +990,7 @@
990
990
  defaultRangeSheetId="measure.computedBy.sheetId"
991
991
  contextualAutocomplete="getMeasureAutocomplete()"
992
992
  getContextualColoredSymbolToken.bind="getColoredSymbolToken"
993
+ invalid="isCalculatedMeasureInvalid"
993
994
  />
994
995
  </div>
995
996
  </div>
@@ -3609,6 +3610,55 @@
3609
3610
  </t>
3610
3611
  </t>
3611
3612
 
3613
+ <t t-name="o_spreadsheet.PivotHTMLRenderer">
3614
+ <div class="o_pivot_html_renderer">
3615
+ <Checkbox
3616
+ name="'missing_values'"
3617
+ label.translate="Display missing cells only"
3618
+ value="state.showMissingValuesOnly"
3619
+ onChange.bind="(value) => this.state.showMissingValuesOnly = value"
3620
+ className="'m-2'"
3621
+ />
3622
+ <t t-set="tableData" t-value="getTableData()"/>
3623
+ <table
3624
+ class="o_pivot_html_renderer"
3625
+ t-if="tableData.values.length > 0 or tableData.rows.length > 0">
3626
+ <tr t-foreach="tableData.columns" t-as="row" t-key="row_index">
3627
+ <t t-if="row_index === 0">
3628
+ <th t-att-rowspan="tableData.columns.length"/>
3629
+ </t>
3630
+ <t t-foreach="row" t-as="cell" t-key="cell_index">
3631
+ <th
3632
+ t-att-colspan="cell.span"
3633
+ t-att-style="cell.style"
3634
+ t-att-class="{ o_missing_value: cell.isMissing }"
3635
+ t-on-click="() => props.onCellClicked(cell.formula)">
3636
+ <t t-esc="cell.value"/>
3637
+ </th>
3638
+ </t>
3639
+ </tr>
3640
+ <t t-foreach="tableData.rows" t-as="row" t-key="row_index">
3641
+ <tr>
3642
+ <th
3643
+ t-att-style="row.style"
3644
+ t-att-class="{ o_missing_value: row.isMissing }"
3645
+ t-on-click="() => props.onCellClicked(row.formula)">
3646
+ <t t-esc="row.value"/>
3647
+ </th>
3648
+ <t t-foreach="tableData.values" t-as="col" t-key="col_index">
3649
+ <td
3650
+ t-att-class="{ o_missing_value: col[row_index].isMissing }"
3651
+ t-on-click="() => props.onCellClicked(col[row_index].formula)">
3652
+ <t t-esc="col[row_index].value"/>
3653
+ </td>
3654
+ </t>
3655
+ </tr>
3656
+ </t>
3657
+ </table>
3658
+ <div class="alert alert-info" t-else="1">This pivot has no cell missing on this sheet</div>
3659
+ </div>
3660
+ </t>
3661
+
3612
3662
  <t t-name="o-spreadsheet-PaintFormatButton">
3613
3663
  <span
3614
3664
  class="o-menu-item-button"
@@ -5771,7 +5821,11 @@
5771
5821
  <div
5772
5822
  class="o-composer-assistant-container shadow position-absolute z-1"
5773
5823
  t-att-style="assistantContainerStyle"
5774
- t-if="props.focus !== 'inactive' and !assistant.forcedClosed and assistantIsAvailable">
5824
+ t-if="props.focus !== 'inactive' and !assistant.forcedClosed and assistantIsAvailable"
5825
+ t-on-wheel.stop=""
5826
+ t-on-pointerdown.prevent.stop=""
5827
+ t-on-pointerup.prevent.stop=""
5828
+ t-on-click.prevent.stop="">
5775
5829
  <span
5776
5830
  role="button"
5777
5831
  t-on-click="closeAssistant"
@@ -5779,13 +5833,7 @@
5779
5833
  <i class="fa fa-circle fa-stack-1x fa-inverse"/>
5780
5834
  <i class="fa fa-times-circle fa-stack-1x text-muted"/>
5781
5835
  </span>
5782
- <div
5783
- class="o-composer-assistant overflow-auto"
5784
- t-att-style="assistantStyle"
5785
- t-on-wheel.stop=""
5786
- t-on-pointerdown.prevent.stop=""
5787
- t-on-click.prevent.stop=""
5788
- t-on-pointerup.prevent.stop="">
5836
+ <div class="o-composer-assistant overflow-auto" t-att-style="assistantStyle">
5789
5837
  <FunctionDescriptionProvider
5790
5838
  t-if="functionDescriptionState.showDescription"
5791
5839
  functionName="functionDescriptionState.functionName"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.2.11",
3
+ "version": "18.2.13",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",