@odoo/o-spreadsheet 18.2.6 → 18.2.8

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.6
5
- @date 2025-04-04T08:42:06.055Z
6
- @hash faa00e2
4
+ @version 18.2.8
5
+ @date 2025-04-18T16:27:01.634Z
6
+ @hash 5da9ddc
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -754,42 +754,44 @@
754
754
 
755
755
  <t t-name="o-spreadsheet-PivotSpreadsheetSidePanel">
756
756
  <t t-set="isReadonly" t-value="env.model.getters.isReadonly()"/>
757
- <div
758
- class="d-flex flex-column h-100 justify-content-between overflow-hidden"
759
- t-att="isReadonly ? ['inert', 1] : []"
760
- t-att-class="{ 'pe-none': isReadonly, 'opacity-50': isReadonly }">
757
+ <div class="d-flex flex-column h-100 justify-content-between overflow-hidden">
761
758
  <div class="h-100 position-relative overflow-x-hidden overflow-y-auto" t-ref="pivotSidePanel">
762
- <PivotTitleSection pivotId="props.pivotId" flipAxis.bind="flipAxis"/>
763
- <Section title.translate="Range">
764
- <SelectionInput
765
- ranges="ranges"
766
- required="true"
767
- isInvalid="shouldDisplayInvalidRangeError"
768
- hasSingleRange="true"
769
- onSelectionChanged="(ranges) => this.onSelectionChanged(ranges)"
770
- onSelectionConfirmed="() => this.onSelectionConfirmed()"
771
- />
772
- <span
773
- class="text-danger sp_range_error_message"
774
- t-if="shouldDisplayInvalidRangeError"
775
- t-esc="pivot.invalidRangeMessage"
776
- />
777
- </Section>
759
+ <div
760
+ t-att="isReadonly ? ['inert', 1] : []"
761
+ t-att-class="{ 'pe-none opacity-50': isReadonly }">
762
+ <PivotTitleSection pivotId="props.pivotId" flipAxis.bind="flipAxis"/>
763
+ <Section title.translate="Range">
764
+ <SelectionInput
765
+ ranges="ranges"
766
+ required="true"
767
+ isInvalid="shouldDisplayInvalidRangeError"
768
+ hasSingleRange="true"
769
+ onSelectionChanged="(ranges) => this.onSelectionChanged(ranges)"
770
+ onSelectionConfirmed="() => this.onSelectionConfirmed()"
771
+ />
772
+ <span
773
+ class="text-danger sp_range_error_message"
774
+ t-if="shouldDisplayInvalidRangeError"
775
+ t-esc="pivot.invalidRangeMessage"
776
+ />
777
+ </Section>
778
778
 
779
- <PivotLayoutConfigurator
780
- t-if="!pivot.isInvalidRange"
781
- unusedGroupableFields="store.unusedGroupableFields"
782
- measureFields="store.measureFields"
783
- unusedGranularities="store.unusedGranularities"
784
- dateGranularities="store.dateGranularities"
785
- datetimeGranularities="store.datetimeGranularities"
786
- definition="definition"
787
- onDimensionsUpdated.bind="onDimensionsUpdated"
788
- getScrollableContainerEl.bind="getScrollableContainerEl"
789
- pivotId="props.pivotId"
790
- />
779
+ <PivotLayoutConfigurator
780
+ t-if="!pivot.isInvalidRange"
781
+ unusedGroupableFields="store.unusedGroupableFields"
782
+ measureFields="store.measureFields"
783
+ unusedGranularities="store.unusedGranularities"
784
+ dateGranularities="store.dateGranularities"
785
+ datetimeGranularities="store.datetimeGranularities"
786
+ definition="definition"
787
+ onDimensionsUpdated.bind="onDimensionsUpdated"
788
+ getScrollableContainerEl.bind="getScrollableContainerEl"
789
+ pivotId="props.pivotId"
790
+ />
791
+ </div>
791
792
  </div>
792
793
  <PivotDeferUpdate
794
+ t-if="!isReadonly"
793
795
  deferUpdate="store.updatesAreDeferred"
794
796
  toggleDeferUpdate="(value) => store.deferUpdates(value)"
795
797
  isDirty="store.isDirty"
@@ -5584,7 +5586,7 @@
5584
5586
  </t>
5585
5587
 
5586
5588
  <t t-name="o-spreadsheet-SpreadsheetDashboard">
5587
- <div class="o-grid o-two-columns" tabindex="-1" t-on-wheel="onMouseWheel">
5589
+ <div class="o-grid o-two-columns" t-ref="dashboard" tabindex="-1" t-on-wheel="onMouseWheel">
5588
5590
  <div class="mx-auto h-100 position-relative" t-ref="grid" t-att-style="gridContainer">
5589
5591
  <GridOverlay
5590
5592
  onCellHovered.bind="onCellHovered"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.2.6",
3
+ "version": "18.2.8",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",