@odoo/o-spreadsheet 17.3.0-alpha.1 → 17.3.0-alpha.2
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 +941 -414
- package/dist/o-spreadsheet.d.ts +66 -55
- package/dist/o-spreadsheet.esm.js +941 -414
- package/dist/o-spreadsheet.iife.js +941 -414
- package/dist/o-spreadsheet.iife.min.js +315 -275
- package/dist/o_spreadsheet.xml +107 -44
- package/package.json +5 -5
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 17.3.0-alpha.
|
|
5
|
-
@date 2024-
|
|
6
|
-
@hash
|
|
4
|
+
@version 17.3.0-alpha.2
|
|
5
|
+
@date 2024-04-05T14:01:48.832Z
|
|
6
|
+
@hash 8c5a229
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ActionButton">
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
t-on-dblclick="() => this.onDblClick()"
|
|
277
277
|
t-on-focusout="() => this.onFocusOut()"
|
|
278
278
|
t-on-keydown="(ev) => this.onKeyDown(ev)"
|
|
279
|
-
t-att-contenteditable="state.isEditing ? '
|
|
279
|
+
t-att-contenteditable="state.isEditing ? 'true': 'false'"
|
|
280
280
|
/>
|
|
281
281
|
<span class="o-sheet-icon ms-1" t-on-click.stop="(ev) => this.onIconClick(ev)">
|
|
282
282
|
<t t-call="o-spreadsheet-Icon.TRIANGLE_DOWN"/>
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
</Ripple>
|
|
286
286
|
</t>
|
|
287
287
|
|
|
288
|
-
<t t-name="o-spreadsheet-
|
|
288
|
+
<t t-name="o-spreadsheet-BottomBarStatistic">
|
|
289
289
|
<t t-set="selectedStatistic" t-value="getSelectedStatistic()"/>
|
|
290
290
|
<Ripple class="'ms-auto'" t-if="selectedStatistic !== undefined">
|
|
291
291
|
<div
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
<span t-esc="context.functionName"/>
|
|
516
516
|
(
|
|
517
517
|
<t t-foreach="context.functionDescription.args" t-as="arg" t-key="arg.name">
|
|
518
|
-
<span t-if="arg_index > '0'"
|
|
518
|
+
<span t-if="arg_index > '0'" t-esc="formulaArgSeparator"/>
|
|
519
519
|
<span t-att-class="{ 'o-formula-assistant-focus': context.argToFocus === arg_index }">
|
|
520
520
|
<span>
|
|
521
521
|
<span t-if="arg.optional || arg.repeating || arg.default">[</span>
|
|
@@ -1209,25 +1209,22 @@
|
|
|
1209
1209
|
t-as="hiddenItem"
|
|
1210
1210
|
t-key="hiddenItem_index">
|
|
1211
1211
|
<div
|
|
1212
|
-
class="
|
|
1212
|
+
class="position-absolute end-0 translate-middle-y"
|
|
1213
1213
|
t-att-style="getUnhideButtonStyle(hiddenItem[0])">
|
|
1214
|
-
<
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
t-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
<t t-call="o-spreadsheet-Icon.TRIANGLE_DOWN"/>
|
|
1229
|
-
</div>
|
|
1230
|
-
</t>
|
|
1214
|
+
<div
|
|
1215
|
+
class="o-unhide rounded mb-1"
|
|
1216
|
+
t-att-class="{'invisible': hiddenItem.includes(0)}"
|
|
1217
|
+
t-att-data-index="hiddenItem_index"
|
|
1218
|
+
t-on-click="() => this.unhide(hiddenItem)">
|
|
1219
|
+
<t t-call="o-spreadsheet-Icon.TRIANGLE_UP"/>
|
|
1220
|
+
</div>
|
|
1221
|
+
<div
|
|
1222
|
+
class="o-unhide rounded"
|
|
1223
|
+
t-att-class="{'invisible': hiddenItem.includes(env.model.getters.getNumberRows(env.model.getters.getActiveSheetId())-1)}"
|
|
1224
|
+
t-att-data-index="hiddenItem_index"
|
|
1225
|
+
t-on-click="() => this.unhide(hiddenItem)">
|
|
1226
|
+
<t t-call="o-spreadsheet-Icon.TRIANGLE_DOWN"/>
|
|
1227
|
+
</div>
|
|
1231
1228
|
</div>
|
|
1232
1229
|
</t>
|
|
1233
1230
|
</div>
|
|
@@ -1268,25 +1265,22 @@
|
|
|
1268
1265
|
t-as="hiddenItem"
|
|
1269
1266
|
t-key="hiddenItem_index">
|
|
1270
1267
|
<div
|
|
1271
|
-
class="
|
|
1268
|
+
class="position-absolute h-100 d-flex align-items-center translate-middle-x gap-2"
|
|
1272
1269
|
t-att-style="getUnhideButtonStyle(hiddenItem[0])">
|
|
1273
|
-
<
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
t-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
<t t-call="o-spreadsheet-Icon.TRIANGLE_RIGHT"/>
|
|
1288
|
-
</div>
|
|
1289
|
-
</t>
|
|
1270
|
+
<div
|
|
1271
|
+
class="o-unhide rounded"
|
|
1272
|
+
t-att-class="{'invisible': hiddenItem.includes(0)}"
|
|
1273
|
+
t-att-data-index="hiddenItem_index"
|
|
1274
|
+
t-on-click="() => this.unhide(hiddenItem)">
|
|
1275
|
+
<t t-call="o-spreadsheet-Icon.TRIANGLE_LEFT"/>
|
|
1276
|
+
</div>
|
|
1277
|
+
<div
|
|
1278
|
+
class="o-unhide rounded"
|
|
1279
|
+
t-att-class="{'invisible': hiddenItem.includes(env.model.getters.getNumberCols(env.model.getters.getActiveSheetId())-1)}"
|
|
1280
|
+
t-att-data-index="hiddenItem_index"
|
|
1281
|
+
t-on-click="() => this.unhide(hiddenItem)">
|
|
1282
|
+
<t t-call="o-spreadsheet-Icon.TRIANGLE_RIGHT"/>
|
|
1283
|
+
</div>
|
|
1290
1284
|
</div>
|
|
1291
1285
|
</t>
|
|
1292
1286
|
</div>
|
|
@@ -2441,7 +2435,7 @@ https://fontawesome.com/license -->
|
|
|
2441
2435
|
t-att-class="{'disabled': !isMenuEnabled, 'o-menu-item-active': isActive(menuItem)}"
|
|
2442
2436
|
t-att-style="getColor(menuItem)">
|
|
2443
2437
|
<div class="d-flex w-100">
|
|
2444
|
-
<div t-if="childrenHaveIcon" class="o-menu-item-icon align-middle">
|
|
2438
|
+
<div t-if="childrenHaveIcon" class="o-menu-item-icon align-middle flex-shrink-0">
|
|
2445
2439
|
<t t-if="getIconName(menuItem)" t-call="{{getIconName(menuItem)}}"/>
|
|
2446
2440
|
</div>
|
|
2447
2441
|
<div class="o-menu-item-name align-middle text-truncate" t-esc="getName(menuItem)"/>
|
|
@@ -2720,6 +2714,74 @@ https://fontawesome.com/license -->
|
|
|
2720
2714
|
</Section>
|
|
2721
2715
|
</t>
|
|
2722
2716
|
|
|
2717
|
+
<t t-name="o-spreadsheet-ComboChartConfigPanel">
|
|
2718
|
+
<div>
|
|
2719
|
+
<ChartDataSeries
|
|
2720
|
+
ranges="this.getDataSeriesRanges()"
|
|
2721
|
+
onSelectionChanged="(ranges) => this.onDataSeriesRangesChanged(ranges)"
|
|
2722
|
+
onSelectionConfirmed="() => this.onDataSeriesConfirmed()"
|
|
2723
|
+
/>
|
|
2724
|
+
<ChartLabelRange
|
|
2725
|
+
range="this.getLabelRange()"
|
|
2726
|
+
isInvalid="isLabelInvalid"
|
|
2727
|
+
onSelectionChanged="(ranges) => this.onLabelRangeChanged(ranges)"
|
|
2728
|
+
onSelectionConfirmed="() => this.onLabelRangeConfirmed()"
|
|
2729
|
+
options="this.getLabelRangeOptions()"
|
|
2730
|
+
/>
|
|
2731
|
+
<Section class="'o-use-right-axis py-0'">
|
|
2732
|
+
<Checkbox
|
|
2733
|
+
name="'shouldUseRightAxis'"
|
|
2734
|
+
label="shouldUseRightAxis"
|
|
2735
|
+
value="props.definition.useBothYAxis"
|
|
2736
|
+
onChange.bind="onUpdateUseRightAxis"
|
|
2737
|
+
/>
|
|
2738
|
+
</Section>
|
|
2739
|
+
<Section class="'o-use-row-as-headers py-0'" t-if="calculateHeaderPosition()">
|
|
2740
|
+
<Checkbox
|
|
2741
|
+
name="'dataSetsHaveTitle'"
|
|
2742
|
+
label="dataSetsHaveTitleLabel"
|
|
2743
|
+
value="props.definition.dataSetsHaveTitle"
|
|
2744
|
+
onChange.bind="onUpdateDataSetsHaveTitle"
|
|
2745
|
+
/>
|
|
2746
|
+
</Section>
|
|
2747
|
+
|
|
2748
|
+
<ChartErrorSection t-if="errorMessages.length" messages="errorMessages"/>
|
|
2749
|
+
</div>
|
|
2750
|
+
</t>
|
|
2751
|
+
|
|
2752
|
+
<t t-name="o-spreadsheet-ComboChartDesignPanel">
|
|
2753
|
+
<div>
|
|
2754
|
+
<ChartColor
|
|
2755
|
+
currentColor="props.definition.background"
|
|
2756
|
+
onColorPicked.bind="updateBackgroundColor"
|
|
2757
|
+
/>
|
|
2758
|
+
<ChartTitle title="title" update.bind="updateTitle"/>
|
|
2759
|
+
<Section t-if="!props.definition.useBothYAxis">
|
|
2760
|
+
<t t-set-slot="title">Vertical axis position</t>
|
|
2761
|
+
<select
|
|
2762
|
+
t-att-value="props.definition.verticalAxisPosition"
|
|
2763
|
+
class="o-input"
|
|
2764
|
+
t-on-change="(ev) => this.updateSelect('verticalAxisPosition', ev)">
|
|
2765
|
+
<option value="left">Left</option>
|
|
2766
|
+
<option value="right">Right</option>
|
|
2767
|
+
</select>
|
|
2768
|
+
</Section>
|
|
2769
|
+
<Section>
|
|
2770
|
+
<t t-set-slot="title">Legend position</t>
|
|
2771
|
+
<select
|
|
2772
|
+
t-att-value="props.definition.legendPosition"
|
|
2773
|
+
class="o-input"
|
|
2774
|
+
t-on-change="(ev) => this.updateSelect('legendPosition', ev)">
|
|
2775
|
+
<option value="none">None</option>
|
|
2776
|
+
<option value="top">Top</option>
|
|
2777
|
+
<option value="bottom">Bottom</option>
|
|
2778
|
+
<option value="left">Left</option>
|
|
2779
|
+
<option value="right">Right</option>
|
|
2780
|
+
</select>
|
|
2781
|
+
</Section>
|
|
2782
|
+
</div>
|
|
2783
|
+
</t>
|
|
2784
|
+
|
|
2723
2785
|
<t t-name="o-spreadsheet-GaugeChartConfigPanel">
|
|
2724
2786
|
<div>
|
|
2725
2787
|
<ChartDataSeries
|
|
@@ -3158,7 +3220,8 @@ https://fontawesome.com/license -->
|
|
|
3158
3220
|
<label
|
|
3159
3221
|
class="o-checkbox"
|
|
3160
3222
|
t-att-title="props.title"
|
|
3161
|
-
t-att-class="{'text-muted': props.disabled }"
|
|
3223
|
+
t-att-class="{'text-muted': props.disabled }"
|
|
3224
|
+
t-attf-class="{{props.className}}">
|
|
3162
3225
|
<input
|
|
3163
3226
|
type="checkbox"
|
|
3164
3227
|
t-att-disabled="props.disabled"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "17.3.0-alpha.
|
|
3
|
+
"version": "17.3.0-alpha.2",
|
|
4
4
|
"description": "A spreadsheet component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/o-spreadsheet.cjs.js",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
"rollup-plugin-dts": "^5.3.1",
|
|
89
89
|
"rollup-plugin-typescript2": "^0.35.0",
|
|
90
90
|
"ts-jest": "^29.1.0",
|
|
91
|
-
"typedoc": "0.
|
|
92
|
-
"typedoc-plugin-markdown": "3.
|
|
93
|
-
"typescript": "^5.
|
|
91
|
+
"typedoc": "0.25.12",
|
|
92
|
+
"typedoc-plugin-markdown": "3.17.1",
|
|
93
|
+
"typescript": "^5.4.3",
|
|
94
94
|
"xml-formatter": "^2.4.0"
|
|
95
95
|
},
|
|
96
96
|
"prettier": {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"xmlSelfClosingSpace": false
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@odoo/owl": "2.2.
|
|
103
|
+
"@odoo/owl": "2.2.10",
|
|
104
104
|
"bootstrap": "^5.1.3",
|
|
105
105
|
"rbush": "^3.0.1"
|
|
106
106
|
},
|