@odoo/o-spreadsheet 18.2.0-alpha.6 → 18.2.0-alpha.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.0-alpha.6
5
- @date 2025-02-05T06:51:27.535Z
6
- @hash dae9ab2
4
+ @version 18.2.0-alpha.8
5
+ @date 2025-02-14T08:40:53.465Z
6
+ @hash 19d45d9
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -530,7 +530,7 @@
530
530
  disabled="!this.canBeDynamic"
531
531
  />
532
532
  <div
533
- class="o-info-icon d-flex flex-row align-items-center text-muted ps-1"
533
+ class="o-info-icon d-flex flex-row align-items-center text-muted ms-1"
534
534
  t-att-title="dynamicTableTooltip">
535
535
  <t t-call="o-spreadsheet-Icon.CIRCLE_INFO"/>
536
536
  </div>
@@ -758,7 +758,7 @@
758
758
  class="d-flex flex-column h-100 justify-content-between overflow-hidden"
759
759
  t-att="isReadonly ? ['inert', 1] : []"
760
760
  t-att-class="{ 'pe-none': isReadonly, 'opacity-50': isReadonly }">
761
- <div class="h-100 position-relative overflow-x-hidden overflow-y-auto">
761
+ <div class="h-100 position-relative overflow-x-hidden overflow-y-auto" t-ref="pivotSidePanel">
762
762
  <PivotTitleSection pivotId="props.pivotId" flipAxis.bind="flipAxis"/>
763
763
  <Section title.translate="Range">
764
764
  <SelectionInput
@@ -785,6 +785,7 @@
785
785
  datetimeGranularities="store.datetimeGranularities"
786
786
  definition="definition"
787
787
  onDimensionsUpdated.bind="onDimensionsUpdated"
788
+ getScrollableContainerEl.bind="getScrollableContainerEl"
788
789
  pivotId="props.pivotId"
789
790
  />
790
791
  </div>
@@ -2613,23 +2614,25 @@
2613
2614
  <t t-set-slot="content">
2614
2615
  <Section class="'pt-0'" title.translate="Range">
2615
2616
  <div class="o-subsection-left">
2616
- <input
2617
- type="text"
2618
- t-model="state.sectionRule.rangeMin"
2619
- t-on-change="() => this.updateSectionRule(state.sectionRule)"
2620
- t-on-input="() => this.canUpdateSectionRule(state.sectionRule)"
2621
- class="o-input o-data-range-min"
2622
- t-att-class="{ 'o-invalid': isRangeMinInvalid() }"
2617
+ <StandaloneComposer
2618
+ class="'o-data-range-min'"
2619
+ placeholder.translate="Value or formula"
2620
+ title.translate="Min value or formula"
2621
+ invalid="isRangeMinInvalid"
2622
+ composerContent="state.sectionRule.rangeMin"
2623
+ defaultRangeSheetId="sheetId"
2624
+ onConfirm="(str) => this.onConfirmGaugeRange('rangeMin', str)"
2623
2625
  />
2624
2626
  </div>
2625
2627
  <div class="o-subsection-right">
2626
- <input
2627
- type="text"
2628
- t-model="state.sectionRule.rangeMax"
2629
- t-on-change="() => this.updateSectionRule(state.sectionRule)"
2630
- t-on-input="() => this.canUpdateSectionRule(state.sectionRule)"
2631
- class="o-input o-data-range-max"
2632
- t-att-class="{ 'o-invalid': isRangeMaxInvalid() }"
2628
+ <StandaloneComposer
2629
+ class="'o-data-range-max'"
2630
+ placeholder.translate="Value or formula"
2631
+ title.translate="Max value or formula"
2632
+ invalid="isRangeMaxInvalid"
2633
+ composerContent="state.sectionRule.rangeMax"
2634
+ defaultRangeSheetId="sheetId"
2635
+ onConfirm="(str) => this.onConfirmGaugeRange('rangeMax', str)"
2633
2636
  />
2634
2637
  </div>
2635
2638
  </Section>
@@ -2711,15 +2714,7 @@
2711
2714
  </select>
2712
2715
  </td>
2713
2716
  <td class="pe-2">
2714
- <input
2715
- type="text"
2716
- class="o-input"
2717
- t-model="inflectionPoint.value"
2718
- t-on-input="() => this.canUpdateSectionRule(state.sectionRule)"
2719
- t-on-change="() => this.updateSectionRule(state.sectionRule)"
2720
- t-attf-class="o-input-{{inflectionPointName}}"
2721
- t-att-class="{ 'o-invalid': isInvalid }"
2722
- />
2717
+ <StandaloneComposer t-props="getGaugeInflectionComposerProps(sectionType)"/>
2723
2718
  </td>
2724
2719
  <td>
2725
2720
  <select
@@ -5563,6 +5558,7 @@
5563
5558
  t-as="clickableCell"
5564
5559
  t-key="clickableCell_index"
5565
5560
  class="o-dashboard-clickable-cell"
5561
+ t-att-title="clickableCell.title"
5566
5562
  t-on-click="() => this.selectClickableCell(clickableCell)"
5567
5563
  t-on-contextmenu.prevent=""
5568
5564
  t-att-style="getCellClickableStyle(clickableCell.coordinates)"
@@ -5590,7 +5586,11 @@
5590
5586
  </t>
5591
5587
 
5592
5588
  <t t-name="o-spreadsheet-StandaloneComposer">
5593
- <div class="o-standalone-composer" t-on-click.stop="" t-att-class="containerClass">
5589
+ <div
5590
+ class="o-standalone-composer"
5591
+ t-on-click.stop=""
5592
+ t-att-class="containerClass"
5593
+ t-att-title="props.title">
5594
5594
  <Composer
5595
5595
  focus="focus"
5596
5596
  inputStyle="composerStyle"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.2.0-alpha.6",
3
+ "version": "18.2.0-alpha.8",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",