@odoo/o-spreadsheet 18.2.35 → 18.2.39
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.
- package/dist/o-spreadsheet.cjs.js +141 -114
- package/dist/o-spreadsheet.d.ts +9 -25
- package/dist/o-spreadsheet.esm.js +141 -114
- package/dist/o-spreadsheet.iife.js +141 -114
- package/dist/o-spreadsheet.iife.min.js +387 -398
- package/dist/o_spreadsheet.css +15 -0
- package/dist/o_spreadsheet.xml +33 -39
- package/package.json +3 -2
|
@@ -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.39
|
|
6
|
+
* @date 2025-12-26T10:19:26.283Z
|
|
7
|
+
* @hash 3de2479
|
|
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
|
+
}
|
package/dist/o_spreadsheet.xml
CHANGED
|
@@ -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.
|
|
5
|
-
@date 2025-
|
|
6
|
-
@hash
|
|
4
|
+
@version 18.2.39
|
|
5
|
+
@date 2025-12-26T10:19:25.501Z
|
|
6
|
+
@hash 3de2479
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -1598,46 +1598,43 @@
|
|
|
1598
1598
|
<t t-name="o-spreadsheet-ConditionalFormatPreview">
|
|
1599
1599
|
<t t-set="cf" t-value="props.conditionalFormat"/>
|
|
1600
1600
|
<div
|
|
1601
|
-
class="o-cf-preview w-100"
|
|
1601
|
+
class="o-cf-preview w-100 d-flex align-items-center"
|
|
1602
1602
|
t-ref="cfPreview"
|
|
1603
1603
|
t-att-class="props.class"
|
|
1604
1604
|
t-att-data-id="cf.id"
|
|
1605
1605
|
t-on-click="props.onPreviewClick"
|
|
1606
1606
|
t-on-pointerdown="(ev) => this.onMouseDown(ev)">
|
|
1607
|
-
<div class="
|
|
1607
|
+
<div class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center o-button-icon">
|
|
1608
|
+
<t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/>
|
|
1609
|
+
</div>
|
|
1610
|
+
<t t-if="cf.rule.type==='IconSetRule'">
|
|
1611
|
+
<div class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3">
|
|
1612
|
+
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/>
|
|
1613
|
+
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/>
|
|
1614
|
+
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/>
|
|
1615
|
+
</div>
|
|
1616
|
+
</t>
|
|
1617
|
+
<t t-else="">
|
|
1608
1618
|
<div
|
|
1609
|
-
|
|
1610
|
-
|
|
1619
|
+
t-att-style="getPreviewImageStyle(cf.rule)"
|
|
1620
|
+
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3 flex-shrink-0">
|
|
1621
|
+
123
|
|
1611
1622
|
</div>
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
<t t-
|
|
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>
|
|
1623
|
+
</t>
|
|
1624
|
+
<div class="o-cf-preview-description me-3 overflow-auto">
|
|
1625
|
+
<div class="o-cf-preview-ruletype">
|
|
1626
|
+
<div class="o-cf-preview-description-rule o-fw-bold text-truncate">
|
|
1627
|
+
<t t-esc="getDescription(cf)"/>
|
|
1631
1628
|
</div>
|
|
1632
|
-
<div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/>
|
|
1633
1629
|
</div>
|
|
1634
|
-
<div class="o-cf-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1630
|
+
<div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/>
|
|
1631
|
+
</div>
|
|
1632
|
+
<div class="o-cf-delete ms-auto">
|
|
1633
|
+
<div
|
|
1634
|
+
class="o-cf-delete-button o-button-icon"
|
|
1635
|
+
t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)"
|
|
1636
|
+
title="Remove rule">
|
|
1637
|
+
<t t-call="o-spreadsheet-Icon.TRASH_FILLED"/>
|
|
1641
1638
|
</div>
|
|
1642
1639
|
</div>
|
|
1643
1640
|
</div>
|
|
@@ -5187,13 +5184,12 @@
|
|
|
5187
5184
|
t-on-pointerdown="onMouseDown"
|
|
5188
5185
|
t-on-dblclick.self="onDoubleClick"
|
|
5189
5186
|
t-on-contextmenu.stop.prevent="onContextMenu">
|
|
5190
|
-
<FiguresContainer
|
|
5187
|
+
<FiguresContainer/>
|
|
5191
5188
|
<DataValidationOverlay/>
|
|
5192
5189
|
<FilterIconsOverlay/>
|
|
5193
5190
|
<GridAddRowsFooter
|
|
5194
5191
|
t-if="!env.model.getters.isReadonly()"
|
|
5195
5192
|
t-key="env.model.getters.getActiveSheetId()"
|
|
5196
|
-
focusGrid="props.onFigureDeleted"
|
|
5197
5193
|
/>
|
|
5198
5194
|
</div>
|
|
5199
5195
|
</t>
|
|
@@ -5250,7 +5246,6 @@
|
|
|
5250
5246
|
onGridResized.bind="onGridResized"
|
|
5251
5247
|
onGridMoved.bind="moveCanvas"
|
|
5252
5248
|
gridOverlayDimensions="gridOverlayDimensions"
|
|
5253
|
-
onFigureDeleted.bind="focusDefaultElement"
|
|
5254
5249
|
/>
|
|
5255
5250
|
<HeadersOverlay onOpenContextMenu="(type, x, y) => this.toggleContextMenu(type, x, y)"/>
|
|
5256
5251
|
<GridComposer
|
|
@@ -5452,7 +5447,6 @@
|
|
|
5452
5447
|
t-att-style="container.inverseViewportStyle">
|
|
5453
5448
|
<t t-foreach="container.figures" t-as="figure" t-key="figure.id">
|
|
5454
5449
|
<FigureComponent
|
|
5455
|
-
onFigureDeleted="this.props.onFigureDeleted"
|
|
5456
5450
|
figure="figure"
|
|
5457
5451
|
style="getFigureStyle(figure)"
|
|
5458
5452
|
onMouseDown="(ev) => this.startDraggingFigure(figure, ev)"
|
|
@@ -5504,7 +5498,6 @@
|
|
|
5504
5498
|
<t
|
|
5505
5499
|
t-component="figureRegistry.get(props.figure.tag).Component"
|
|
5506
5500
|
t-key="props.figure.id"
|
|
5507
|
-
onFigureDeleted="props.onFigureDeleted"
|
|
5508
5501
|
figure="props.figure"
|
|
5509
5502
|
/>
|
|
5510
5503
|
<div class="o-figure-menu position-absolute m-2" t-if="!env.isDashboard()">
|
|
@@ -6137,6 +6130,7 @@
|
|
|
6137
6130
|
t-on-pointerdown="(ev) => this.onMouseDown(ev)"
|
|
6138
6131
|
t-on-contextmenu.prevent="(ev) => this.onContextMenu(ev)"
|
|
6139
6132
|
t-ref="sheetDiv"
|
|
6133
|
+
t-key="sheetName"
|
|
6140
6134
|
t-att-style="props.style"
|
|
6141
6135
|
t-att-title="sheetName"
|
|
6142
6136
|
t-att-data-id="props.sheetId"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "18.2.
|
|
3
|
+
"version": "18.2.39",
|
|
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",
|