@odoo/o-spreadsheet 18.2.36 → 18.2.40

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.
@@ -0,0 +1,15 @@
1
+
2
+ /*
3
+ * This file is generated by o-spreadsheet build tools. Do not edit it.
4
+ * @see https://github.com/odoo/o-spreadsheet
5
+ * @version 18.2.40
6
+ * @date 2026-01-14T10:00:19.234Z
7
+ * @hash 755a787
8
+ */
9
+ /* Originates from src/components/spreadsheet/spreadsheet.scss */
10
+ .o-spreadsheet {
11
+ color: #374151;
12
+ }
13
+ .o-spreadsheet input {
14
+ background-color: white;
15
+ }
@@ -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.36
5
- @date 2025-12-02T05:31:51.673Z
6
- @hash d385099
4
+ @version 18.2.40
5
+ @date 2026-01-14T10:00:18.433Z
6
+ @hash 755a787
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -1203,7 +1203,8 @@
1203
1203
  </select>
1204
1204
  <div t-if="searchOptions.searchScope === 'specificRange'">
1205
1205
  <SelectionInput
1206
- ranges="[this.state.dataRange]"
1206
+ t-key="selectionInputKey"
1207
+ ranges="[specificRange]"
1207
1208
  onSelectionChanged="(ranges) => this.onSearchRangeChanged(ranges)"
1208
1209
  onSelectionConfirmed.bind="updateDataRange"
1209
1210
  hasSingleRange="true"
@@ -1598,46 +1599,43 @@
1598
1599
  <t t-name="o-spreadsheet-ConditionalFormatPreview">
1599
1600
  <t t-set="cf" t-value="props.conditionalFormat"/>
1600
1601
  <div
1601
- class="o-cf-preview w-100"
1602
+ class="o-cf-preview w-100 d-flex align-items-center"
1602
1603
  t-ref="cfPreview"
1603
1604
  t-att-class="props.class"
1604
1605
  t-att-data-id="cf.id"
1605
1606
  t-on-click="props.onPreviewClick"
1606
1607
  t-on-pointerdown="(ev) => this.onMouseDown(ev)">
1607
- <div class="position-relative h-100 w-100 d-flex align-items-center">
1608
+ <div class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center o-button-icon">
1609
+ <t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/>
1610
+ </div>
1611
+ <t t-if="cf.rule.type==='IconSetRule'">
1612
+ <div class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3">
1613
+ <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/>
1614
+ <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/>
1615
+ <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/>
1616
+ </div>
1617
+ </t>
1618
+ <t t-else="">
1608
1619
  <div
1609
- class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center o-button-icon">
1610
- <t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/>
1620
+ t-att-style="getPreviewImageStyle(cf.rule)"
1621
+ class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3 flex-shrink-0">
1622
+ 123
1611
1623
  </div>
1612
- <t t-if="cf.rule.type==='IconSetRule'">
1613
- <div class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2">
1614
- <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/>
1615
- <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/>
1616
- <t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/>
1617
- </div>
1618
- </t>
1619
- <t t-else="">
1620
- <div
1621
- t-att-style="getPreviewImageStyle(cf.rule)"
1622
- class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2">
1623
- 123
1624
- </div>
1625
- </t>
1626
- <div class="o-cf-preview-description">
1627
- <div class="o-cf-preview-ruletype">
1628
- <div class="o-cf-preview-description-rule o-fw-bold text-truncate">
1629
- <t t-esc="getDescription(cf)"/>
1630
- </div>
1624
+ </t>
1625
+ <div class="o-cf-preview-description me-3 overflow-auto">
1626
+ <div class="o-cf-preview-ruletype">
1627
+ <div class="o-cf-preview-description-rule o-fw-bold text-truncate">
1628
+ <t t-esc="getDescription(cf)"/>
1631
1629
  </div>
1632
- <div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/>
1633
1630
  </div>
1634
- <div class="o-cf-delete">
1635
- <div
1636
- class="o-cf-delete-button o-button-icon"
1637
- t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)"
1638
- title="Remove rule">
1639
- <t t-call="o-spreadsheet-Icon.TRASH_FILLED"/>
1640
- </div>
1631
+ <div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/>
1632
+ </div>
1633
+ <div class="o-cf-delete ms-auto">
1634
+ <div
1635
+ class="o-cf-delete-button o-button-icon"
1636
+ t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)"
1637
+ title="Remove rule">
1638
+ <t t-call="o-spreadsheet-Icon.TRASH_FILLED"/>
1641
1639
  </div>
1642
1640
  </div>
1643
1641
  </div>
@@ -5187,13 +5185,12 @@
5187
5185
  t-on-pointerdown="onMouseDown"
5188
5186
  t-on-dblclick.self="onDoubleClick"
5189
5187
  t-on-contextmenu.stop.prevent="onContextMenu">
5190
- <FiguresContainer onFigureDeleted="props.onFigureDeleted"/>
5188
+ <FiguresContainer/>
5191
5189
  <DataValidationOverlay/>
5192
5190
  <FilterIconsOverlay/>
5193
5191
  <GridAddRowsFooter
5194
5192
  t-if="!env.model.getters.isReadonly()"
5195
5193
  t-key="env.model.getters.getActiveSheetId()"
5196
- focusGrid="props.onFigureDeleted"
5197
5194
  />
5198
5195
  </div>
5199
5196
  </t>
@@ -5250,7 +5247,6 @@
5250
5247
  onGridResized.bind="onGridResized"
5251
5248
  onGridMoved.bind="moveCanvas"
5252
5249
  gridOverlayDimensions="gridOverlayDimensions"
5253
- onFigureDeleted.bind="focusDefaultElement"
5254
5250
  />
5255
5251
  <HeadersOverlay onOpenContextMenu="(type, x, y) => this.toggleContextMenu(type, x, y)"/>
5256
5252
  <GridComposer
@@ -5452,7 +5448,6 @@
5452
5448
  t-att-style="container.inverseViewportStyle">
5453
5449
  <t t-foreach="container.figures" t-as="figure" t-key="figure.id">
5454
5450
  <FigureComponent
5455
- onFigureDeleted="this.props.onFigureDeleted"
5456
5451
  figure="figure"
5457
5452
  style="getFigureStyle(figure)"
5458
5453
  onMouseDown="(ev) => this.startDraggingFigure(figure, ev)"
@@ -5504,7 +5499,6 @@
5504
5499
  <t
5505
5500
  t-component="figureRegistry.get(props.figure.tag).Component"
5506
5501
  t-key="props.figure.id"
5507
- onFigureDeleted="props.onFigureDeleted"
5508
5502
  figure="props.figure"
5509
5503
  />
5510
5504
  <div class="o-figure-menu position-absolute m-2" t-if="!env.isDashboard()">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.2.36",
3
+ "version": "18.2.40",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",
@@ -10,7 +10,8 @@
10
10
  "files": [
11
11
  "dist/*.js",
12
12
  "dist/*.d.ts",
13
- "dist/*.xml"
13
+ "dist/*.xml",
14
+ "dist/*.css"
14
15
  ],
15
16
  "scripts": {
16
17
  "serve-static": "live-server --open=demo --watch=build/o_spreadsheet.iife.js,build/o_spreadsheet.xml,build/o_spreadsheet.css,main.css,demo",