@odoo/o-spreadsheet 18.3.27 → 18.3.31
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 +143 -107
- package/dist/o-spreadsheet.d.ts +9 -25
- package/dist/o-spreadsheet.esm.js +143 -107
- package/dist/o-spreadsheet.iife.js +143 -107
- package/dist/o-spreadsheet.iife.min.js +381 -392
- package/dist/o_spreadsheet.css +44 -0
- package/dist/o_spreadsheet.xml +33 -39
- package/package.json +3 -2
|
@@ -0,0 +1,44 @@
|
|
|
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.3.31
|
|
6
|
+
* @date 2025-12-26T10:18:57.059Z
|
|
7
|
+
* @hash 1e143e1
|
|
8
|
+
*/
|
|
9
|
+
/* Originates from src/components/top_bar/top_bar.scss */
|
|
10
|
+
@media (max-width: 900px) {
|
|
11
|
+
.o-spreadsheet .o-topbar-responsive {
|
|
12
|
+
flex-direction: column !important;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
@media (max-width: 768px) {
|
|
16
|
+
.o-spreadsheet .irregularity-map span {
|
|
17
|
+
overflow: auto;
|
|
18
|
+
align-items: normal !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Originates from src/components/top_bar/dropdown_action/dropdown_action.scss */
|
|
23
|
+
.o-spreadsheet .o-dropdown {
|
|
24
|
+
position: relative;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
}
|
|
28
|
+
.o-spreadsheet .o-dropdown-content {
|
|
29
|
+
background-color: white;
|
|
30
|
+
}
|
|
31
|
+
.o-spreadsheet .o-dropdown-content .o-dropdown-line {
|
|
32
|
+
display: flex;
|
|
33
|
+
}
|
|
34
|
+
.o-spreadsheet .o-dropdown-content .o-dropdown-line > span {
|
|
35
|
+
padding: 4px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Originates from src/components/spreadsheet/spreadsheet.scss */
|
|
39
|
+
.o-spreadsheet {
|
|
40
|
+
color: #374151;
|
|
41
|
+
}
|
|
42
|
+
.o-spreadsheet input {
|
|
43
|
+
background-color: white;
|
|
44
|
+
}
|
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.3.
|
|
5
|
-
@date 2025-
|
|
6
|
-
@hash
|
|
4
|
+
@version 18.3.31
|
|
5
|
+
@date 2025-12-26T10:18:56.247Z
|
|
6
|
+
@hash 1e143e1
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -1584,46 +1584,43 @@
|
|
|
1584
1584
|
<t t-name="o-spreadsheet-ConditionalFormatPreview">
|
|
1585
1585
|
<t t-set="cf" t-value="props.conditionalFormat"/>
|
|
1586
1586
|
<div
|
|
1587
|
-
class="o-cf-preview w-100"
|
|
1587
|
+
class="o-cf-preview w-100 d-flex align-items-center"
|
|
1588
1588
|
t-ref="cfPreview"
|
|
1589
1589
|
t-att-class="props.class"
|
|
1590
1590
|
t-att-data-id="cf.id"
|
|
1591
1591
|
t-on-click="props.onPreviewClick"
|
|
1592
1592
|
t-on-pointerdown="(ev) => this.onMouseDown(ev)">
|
|
1593
|
-
<div class="
|
|
1593
|
+
<div class="o-cf-drag-handle h-100 position-absolute d-flex align-items-center o-button-icon">
|
|
1594
|
+
<t t-call="o-spreadsheet-Icon.THIN_DRAG_HANDLE"/>
|
|
1595
|
+
</div>
|
|
1596
|
+
<t t-if="cf.rule.type==='IconSetRule'">
|
|
1597
|
+
<div class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3">
|
|
1598
|
+
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.upper].template}}"/>
|
|
1599
|
+
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.middle].template}}"/>
|
|
1600
|
+
<t t-call="o-spreadsheet-Icon.{{icons[cf.rule.icons.lower].template}}"/>
|
|
1601
|
+
</div>
|
|
1602
|
+
</t>
|
|
1603
|
+
<t t-else="">
|
|
1594
1604
|
<div
|
|
1595
|
-
|
|
1596
|
-
|
|
1605
|
+
t-att-style="getPreviewImageStyle(cf.rule)"
|
|
1606
|
+
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3 flex-shrink-0">
|
|
1607
|
+
123
|
|
1597
1608
|
</div>
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
<t t-
|
|
1603
|
-
</div>
|
|
1604
|
-
</t>
|
|
1605
|
-
<t t-else="">
|
|
1606
|
-
<div
|
|
1607
|
-
t-att-style="getPreviewImageStyle(cf.rule)"
|
|
1608
|
-
class="o-cf-preview-icon d-flex justify-content-around align-items-center me-2">
|
|
1609
|
-
123
|
|
1610
|
-
</div>
|
|
1611
|
-
</t>
|
|
1612
|
-
<div class="o-cf-preview-description">
|
|
1613
|
-
<div class="o-cf-preview-ruletype">
|
|
1614
|
-
<div class="o-cf-preview-description-rule o-fw-bold text-truncate">
|
|
1615
|
-
<t t-esc="getDescription(cf)"/>
|
|
1616
|
-
</div>
|
|
1609
|
+
</t>
|
|
1610
|
+
<div class="o-cf-preview-description me-3 overflow-auto">
|
|
1611
|
+
<div class="o-cf-preview-ruletype">
|
|
1612
|
+
<div class="o-cf-preview-description-rule o-fw-bold text-truncate">
|
|
1613
|
+
<t t-esc="getDescription(cf)"/>
|
|
1617
1614
|
</div>
|
|
1618
|
-
<div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/>
|
|
1619
1615
|
</div>
|
|
1620
|
-
<div class="o-cf-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1616
|
+
<div class="o-cf-preview-range text-truncate" t-esc="cf.ranges"/>
|
|
1617
|
+
</div>
|
|
1618
|
+
<div class="o-cf-delete ms-auto">
|
|
1619
|
+
<div
|
|
1620
|
+
class="o-cf-delete-button o-button-icon"
|
|
1621
|
+
t-on-click.stop="(ev) => this.deleteConditionalFormat(cf, ev)"
|
|
1622
|
+
title="Remove rule">
|
|
1623
|
+
<t t-call="o-spreadsheet-Icon.TRASH_FILLED"/>
|
|
1627
1624
|
</div>
|
|
1628
1625
|
</div>
|
|
1629
1626
|
</div>
|
|
@@ -5470,7 +5467,7 @@
|
|
|
5470
5467
|
|
|
5471
5468
|
<t t-name="o-spreadsheet-GridOverlay">
|
|
5472
5469
|
<div class="position-absolute" t-att-style="style">
|
|
5473
|
-
<FiguresContainer
|
|
5470
|
+
<FiguresContainer/>
|
|
5474
5471
|
</div>
|
|
5475
5472
|
<div
|
|
5476
5473
|
t-ref="gridOverlay"
|
|
@@ -5485,7 +5482,6 @@
|
|
|
5485
5482
|
<GridAddRowsFooter
|
|
5486
5483
|
t-if="!env.model.getters.isReadonly()"
|
|
5487
5484
|
t-key="env.model.getters.getActiveSheetId()"
|
|
5488
|
-
focusGrid="props.onFigureDeleted"
|
|
5489
5485
|
/>
|
|
5490
5486
|
<t t-slot="default"/>
|
|
5491
5487
|
</div>
|
|
@@ -5542,7 +5538,6 @@
|
|
|
5542
5538
|
onGridResized.bind="onGridResized"
|
|
5543
5539
|
onGridMoved.bind="moveCanvas"
|
|
5544
5540
|
gridOverlayDimensions="gridOverlayDimensions"
|
|
5545
|
-
onFigureDeleted.bind="focusDefaultElement"
|
|
5546
5541
|
/>
|
|
5547
5542
|
<HeadersOverlay onOpenContextMenu="(type, x, y) => this.toggleContextMenu(type, x, y)"/>
|
|
5548
5543
|
<GridComposer
|
|
@@ -5744,7 +5739,6 @@
|
|
|
5744
5739
|
t-att-style="container.inverseViewportStyle">
|
|
5745
5740
|
<t t-foreach="container.figures" t-as="figureUI" t-key="figureUI.id">
|
|
5746
5741
|
<FigureComponent
|
|
5747
|
-
onFigureDeleted="this.props.onFigureDeleted"
|
|
5748
5742
|
figureUI="figureUI"
|
|
5749
5743
|
style="getFigureStyle(figureUI)"
|
|
5750
5744
|
onMouseDown="(ev) => this.startDraggingFigure(figureUI, ev)"
|
|
@@ -5796,7 +5790,6 @@
|
|
|
5796
5790
|
<t
|
|
5797
5791
|
t-component="figureRegistry.get(props.figureUI.tag).Component"
|
|
5798
5792
|
t-key="props.figureUI.id"
|
|
5799
|
-
onFigureDeleted="props.onFigureDeleted"
|
|
5800
5793
|
figureUI="props.figureUI"
|
|
5801
5794
|
/>
|
|
5802
5795
|
<div class="o-figure-menu position-absolute m-2" t-if="!env.isDashboard()">
|
|
@@ -6445,6 +6438,7 @@
|
|
|
6445
6438
|
t-on-pointerdown="(ev) => this.onMouseDown(ev)"
|
|
6446
6439
|
t-on-contextmenu.prevent="(ev) => this.onContextMenu(ev)"
|
|
6447
6440
|
t-ref="sheetDiv"
|
|
6441
|
+
t-key="sheetName"
|
|
6448
6442
|
t-att-style="props.style"
|
|
6449
6443
|
t-att-title="sheetName"
|
|
6450
6444
|
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.3.
|
|
3
|
+
"version": "18.3.31",
|
|
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",
|