@odoo/o-spreadsheet 18.4.0-alpha.7 → 18.4.0-alpha.9
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 +916 -586
- package/dist/o-spreadsheet.d.ts +40 -9
- package/dist/o-spreadsheet.esm.js +916 -587
- package/dist/o-spreadsheet.iife.js +916 -586
- package/dist/o-spreadsheet.iife.min.js +563 -562
- package/dist/o_spreadsheet.xml +34 -9
- package/package.json +1 -1
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.4.0-alpha.
|
|
5
|
-
@date 2025-06-
|
|
6
|
-
@hash
|
|
4
|
+
@version 18.4.0-alpha.9
|
|
5
|
+
@date 2025-06-19T18:24:11.505Z
|
|
6
|
+
@hash 6d4d685
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -1485,9 +1485,21 @@
|
|
|
1485
1485
|
required="true"
|
|
1486
1486
|
hasSingleRange="true"
|
|
1487
1487
|
/>
|
|
1488
|
+
<t t-foreach="values" t-as="value" t-key="value_index">
|
|
1489
|
+
<div class="o-dv-list-values p-1 d-flex align-items-center">
|
|
1490
|
+
<div class="me-2">
|
|
1491
|
+
<RoundColorPicker
|
|
1492
|
+
currentColor="props.criterion.colors?.[value] || '#E7E9ED'"
|
|
1493
|
+
onColorPicked="(c) => this.onColorChanged(c, value)"
|
|
1494
|
+
/>
|
|
1495
|
+
</div>
|
|
1496
|
+
<input type="text" class="o-input" t-att-value="value" disabled="1"/>
|
|
1497
|
+
</div>
|
|
1498
|
+
</t>
|
|
1488
1499
|
|
|
1489
1500
|
<div class="o-section-subtitle mt-4">Display style</div>
|
|
1490
1501
|
<select class="o-dv-display-style o-input" t-on-change="onChangedDisplayStyle">
|
|
1502
|
+
<option t-att-selected="props.criterion.displayStyle === 'chip'" value="chip">Chip</option>
|
|
1491
1503
|
<option t-att-selected="props.criterion.displayStyle === 'arrow'" value="arrow">Arrow</option>
|
|
1492
1504
|
<option t-att-selected="props.criterion.displayStyle === 'plainText'" value="plainText">
|
|
1493
1505
|
Plain text
|
|
@@ -1498,6 +1510,12 @@
|
|
|
1498
1510
|
<t t-name="o-spreadsheet-ListCriterionForm">
|
|
1499
1511
|
<t t-foreach="displayedValues" t-as="value" t-key="value_index">
|
|
1500
1512
|
<div class="o-dv-list-values d-flex align-items-center">
|
|
1513
|
+
<div class="me-1">
|
|
1514
|
+
<RoundColorPicker
|
|
1515
|
+
currentColor="props.criterion.colors?.[value] || '#E7E9ED'"
|
|
1516
|
+
onColorPicked="(c) => this.onColorChanged(c, value)"
|
|
1517
|
+
/>
|
|
1518
|
+
</div>
|
|
1501
1519
|
<CriterionInput
|
|
1502
1520
|
value="props.criterion.values[value_index]"
|
|
1503
1521
|
onValueChanged="(v) => this.onValueChanged(v, value_index)"
|
|
@@ -1521,6 +1539,7 @@
|
|
|
1521
1539
|
|
|
1522
1540
|
<div class="o-section-subtitle">Display style</div>
|
|
1523
1541
|
<select class="o-dv-display-style o-input" t-on-change="onChangedDisplayStyle">
|
|
1542
|
+
<option t-att-selected="props.criterion.displayStyle === 'chip'" value="chip">Chip</option>
|
|
1524
1543
|
<option t-att-selected="props.criterion.displayStyle === 'arrow'" value="arrow">Arrow</option>
|
|
1525
1544
|
<option t-att-selected="props.criterion.displayStyle === 'plainText'" value="plainText">
|
|
1526
1545
|
Plain text
|
|
@@ -4067,8 +4086,8 @@
|
|
|
4067
4086
|
<div
|
|
4068
4087
|
t-att-title="getName(menuItem)"
|
|
4069
4088
|
t-att-data-name="menuItem.id"
|
|
4070
|
-
t-on-click="(ev) => this.
|
|
4071
|
-
t-on-auxclick="(ev) => this.
|
|
4089
|
+
t-on-click="(ev) => this.onClickMenu(menuItem, ev)"
|
|
4090
|
+
t-on-auxclick="(ev) => this.onClickMenu(menuItem, ev)"
|
|
4072
4091
|
t-on-mouseover="(ev) => this.props.onMouseOver?.(menuItem, ev)"
|
|
4073
4092
|
t-on-mouseenter="(ev) => this.onMouseEnter?.(menuItem, ev)"
|
|
4074
4093
|
t-on-mouseleave="(ev) => this.onMouseLeave?.(menuItem)"
|
|
@@ -5762,7 +5781,7 @@
|
|
|
5762
5781
|
class="w-100 o-input my-2"
|
|
5763
5782
|
t-ref="filterMenuSearchBar"
|
|
5764
5783
|
type="text"
|
|
5765
|
-
t-
|
|
5784
|
+
t-on-input="updateSearch"
|
|
5766
5785
|
placeholder="Search..."
|
|
5767
5786
|
t-on-keydown="onKeyDown"
|
|
5768
5787
|
/>
|
|
@@ -5775,7 +5794,7 @@
|
|
|
5775
5794
|
t-ref="filterValueList"
|
|
5776
5795
|
t-on-click="this.clearScrolledToValue"
|
|
5777
5796
|
t-on-scroll="this.clearScrolledToValue">
|
|
5778
|
-
<t t-foreach="displayedValues" t-as="value" t-key="value.string">
|
|
5797
|
+
<t t-foreach="state.displayedValues" t-as="value" t-key="value.string">
|
|
5779
5798
|
<FilterMenuValueItem
|
|
5780
5799
|
onClick="() => this.checkValue(value)"
|
|
5781
5800
|
onMouseMove="() => this.onMouseMove(value)"
|
|
@@ -5786,7 +5805,13 @@
|
|
|
5786
5805
|
/>
|
|
5787
5806
|
</t>
|
|
5788
5807
|
<div
|
|
5789
|
-
t-if="
|
|
5808
|
+
t-if="state.hasMoreValues"
|
|
5809
|
+
class="o-filter-load-more o-button-link d-flex justify-content-center py-1"
|
|
5810
|
+
t-on-click="this.loadMoreValues">
|
|
5811
|
+
Load more...
|
|
5812
|
+
</div>
|
|
5813
|
+
<div
|
|
5814
|
+
t-if="state.displayedValues.length === 0"
|
|
5790
5815
|
class="o-filter-menu-no-values d-flex align-items-center justify-content-center w-100 h-100 ">
|
|
5791
5816
|
No results
|
|
5792
5817
|
</div>
|
|
@@ -6345,7 +6370,7 @@
|
|
|
6345
6370
|
t-as="content"
|
|
6346
6371
|
t-key="content_index"
|
|
6347
6372
|
t-att-class="content.classes?.join(' ')"
|
|
6348
|
-
t-
|
|
6373
|
+
t-att-style="getCss(content)"
|
|
6349
6374
|
t-esc="content.value"
|
|
6350
6375
|
/>
|
|
6351
6376
|
</div>
|