@odoo/o-spreadsheet 17.0.78 → 17.0.82

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 17.0.78
5
- @date 2025-11-24T07:39:59.961Z
6
- @hash 498c3fc
4
+ @version 17.0.82
5
+ @date 2025-12-26T10:18:12.194Z
6
+ @hash df7c781
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -263,6 +263,7 @@
263
263
  t-on-mousedown="(ev) => this.onMouseDown(ev)"
264
264
  t-on-contextmenu.prevent="(ev) => this.onContextMenu(ev)"
265
265
  t-ref="sheetDiv"
266
+ t-key="sheetName"
266
267
  t-att-style="props.style"
267
268
  t-att-title="sheetName"
268
269
  t-att-data-id="props.sheetId"
@@ -3667,46 +3668,44 @@ https://fontawesome.com/license -->
3667
3668
 
3668
3669
  <t t-name="o-spreadsheet-ConditionalFormattingPanelPreview">
3669
3670
  <div
3670
- class="o-cf-preview d-flex position-relative"
3671
+ class="o-cf-preview d-flex position-relative align-items-center"
3671
3672
  t-att-class="{ 'o-cf-dragging': dragAndDrop.draggedItemId === cf.id }"
3672
3673
  t-att-style="getPreviewDivStyle(cf)"
3673
3674
  t-att-data-id="cf.id"
3674
3675
  t-on-click="(ev) => props.onPreviewClick(cf)"
3675
3676
  t-on-mousedown="(ev) => this.onMouseDown(cf, ev)">
3676
- <div class="position-relative h-100 w-100 d-flex align-items-center">
3677
- <div class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center text-muted">
3678
- <t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/>
3677
+ <div class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center text-muted">
3678
+ <t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/>
3679
+ </div>
3680
+ <t t-if="cf.rule.type==='IconSetRule'">
3681
+ <div class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3">
3682
+ <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/>
3683
+ <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/>
3684
+ <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/>
3679
3685
  </div>
3680
- <t t-if="cf.rule.type==='IconSetRule'">
3681
- <div class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2">
3682
- <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/>
3683
- <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/>
3684
- <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/>
3685
- </div>
3686
- </t>
3687
- <t t-else="">
3688
- <div
3689
- t-att-style="getPreviewImageStyle(cf.rule)"
3690
- class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2">
3691
- 123
3692
- </div>
3693
- </t>
3694
- <div class="o-cf-preview-description">
3695
- <div class="o-cf-preview-ruletype">
3696
- <div class="o-cf-preview-description-rule text-truncate">
3697
- <t t-esc="getDescription(cf)"/>
3698
- </div>
3699
- </div>
3700
- <div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/>
3686
+ </t>
3687
+ <t t-else="">
3688
+ <div
3689
+ t-att-style="getPreviewImageStyle(cf.rule)"
3690
+ class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3 flex-shrink-0">
3691
+ 123
3701
3692
  </div>
3702
- <div class="o-cf-delete">
3703
- <div
3704
- class="o-cf-delete-button text-muted"
3705
- t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)"
3706
- title="Remove rule">
3707
- <t t-call="o-spreadsheet-Icon.TRASH"/>
3693
+ </t>
3694
+ <div class="o-cf-preview-description me-3 overflow-auto">
3695
+ <div class="o-cf-preview-ruletype">
3696
+ <div class="o-cf-preview-description-rule text-truncate">
3697
+ <t t-esc="getDescription(cf)"/>
3708
3698
  </div>
3709
3699
  </div>
3700
+ <div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/>
3701
+ </div>
3702
+ <div class="o-cf-delete ms-auto">
3703
+ <div
3704
+ class="o-cf-delete-button text-muted"
3705
+ t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)"
3706
+ title="Remove rule">
3707
+ <t t-call="o-spreadsheet-Icon.TRASH"/>
3708
+ </div>
3710
3709
  </div>
3711
3710
  </div>
3712
3711
  </t>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "17.0.78",
3
+ "version": "17.0.82",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",