@odoo/o-spreadsheet 17.5.0-alpha.2 → 17.5.0-alpha.3
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 +886 -541
- package/dist/o-spreadsheet.d.ts +47 -19
- package/dist/o-spreadsheet.esm.js +886 -541
- package/dist/o-spreadsheet.iife.js +886 -541
- package/dist/o-spreadsheet.iife.min.js +357 -347
- package/dist/o_spreadsheet.xml +56 -7
- package/package.json +2 -2
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.5.0-alpha.
|
|
5
|
-
@date 2024-
|
|
6
|
-
@hash
|
|
4
|
+
@version 17.5.0-alpha.3
|
|
5
|
+
@date 2024-08-02T08:25:42.475Z
|
|
6
|
+
@hash 767725f
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ActionButton">
|
|
@@ -596,7 +596,6 @@
|
|
|
596
596
|
focus="focus"
|
|
597
597
|
inputStyle="composerStyle"
|
|
598
598
|
onComposerContentFocused.bind="onFocus"
|
|
599
|
-
delimitation="delimitation"
|
|
600
599
|
composerStore="composerStore"
|
|
601
600
|
/>
|
|
602
601
|
</div>
|
|
@@ -3135,6 +3134,53 @@
|
|
|
3135
3134
|
t-on-change="(ev) => this.updateDataSeriesLabel(ev)"
|
|
3136
3135
|
/>
|
|
3137
3136
|
</Section>
|
|
3137
|
+
<Section class="'pt-0 px-0 o-show-trend-line'" t-if="!props.definition.horizontal">
|
|
3138
|
+
<t t-set="showTrendLineLabel">Show trend line</t>
|
|
3139
|
+
<t t-set="trend" t-value="getTrendLineConfiguration()"/>
|
|
3140
|
+
<t t-set="trendType" t-value="getTrendType(trend)"/>
|
|
3141
|
+
<Checkbox
|
|
3142
|
+
name="'showTrendLine'"
|
|
3143
|
+
label="showTrendLineLabel"
|
|
3144
|
+
value="trend !== undefined and trend.display"
|
|
3145
|
+
onChange.bind="toggleDataTrend"
|
|
3146
|
+
/>
|
|
3147
|
+
<div t-if="trend !== undefined and trend.display">
|
|
3148
|
+
<div class="d-flex py-1">
|
|
3149
|
+
<div class="w-100 pe-1">
|
|
3150
|
+
<span class="o-section-title">Type</span>
|
|
3151
|
+
<select class="o-input trend-type-selector" t-on-change="this.onChangeTrendType">
|
|
3152
|
+
<option value="linear" t-att-selected="trendType === 'linear'">Linear</option>
|
|
3153
|
+
<option value="exponential" t-att-selected="trendType === 'exponential'">
|
|
3154
|
+
Exponential
|
|
3155
|
+
</option>
|
|
3156
|
+
<option value="polynomial" t-att-selected="trendType === 'polynomial'">
|
|
3157
|
+
Polynomial
|
|
3158
|
+
</option>
|
|
3159
|
+
<option value="logarithmic" t-att-selected="trendType === 'logarithmic'">
|
|
3160
|
+
Logarithmic
|
|
3161
|
+
</option>
|
|
3162
|
+
</select>
|
|
3163
|
+
</div>
|
|
3164
|
+
<div class="w-50" t-if="trendType === 'polynomial'">
|
|
3165
|
+
<span class="o-section-title">Degree</span>
|
|
3166
|
+
<input
|
|
3167
|
+
t-att-value="trend.order"
|
|
3168
|
+
type="number"
|
|
3169
|
+
class="w-100 o-input o-number-input trend-order-input"
|
|
3170
|
+
t-on-change="this.onChangePolynomialDegree"
|
|
3171
|
+
min="1"
|
|
3172
|
+
/>
|
|
3173
|
+
</div>
|
|
3174
|
+
</div>
|
|
3175
|
+
<div class="d-flex align-items-center">
|
|
3176
|
+
<span class="o-section-title mb-0 pe-2">Trend line color</span>
|
|
3177
|
+
<RoundColorPicker
|
|
3178
|
+
currentColor="getTrendLineColor()"
|
|
3179
|
+
onColorPicked.bind="updateTrendLineColor"
|
|
3180
|
+
/>
|
|
3181
|
+
</div>
|
|
3182
|
+
</div>
|
|
3183
|
+
</Section>
|
|
3138
3184
|
</Section>
|
|
3139
3185
|
</t>
|
|
3140
3186
|
</SidePanelCollapsible>
|
|
@@ -4678,9 +4724,12 @@
|
|
|
4678
4724
|
<t t-name="o-spreadsheet-PivotDimension">
|
|
4679
4725
|
<div
|
|
4680
4726
|
class="border py-1 px-2 d-flex flex-column shadow-sm pivot-dimension"
|
|
4681
|
-
t-att-class="{'
|
|
4727
|
+
t-att-class="{'pivot-dimension-invalid': !props.dimension.isValid}">
|
|
4682
4728
|
<div class="d-flex flex-row justify-content-between align-items-center">
|
|
4683
4729
|
<div class="d-flex align-items-center overflow-hidden text-nowrap">
|
|
4730
|
+
<span class="text-danger me-1" t-if="!props.dimension.isValid">
|
|
4731
|
+
<t t-call="o-spreadsheet-Icon.TRIANGLE_EXCLAMATION"/>
|
|
4732
|
+
</span>
|
|
4684
4733
|
<TextInput
|
|
4685
4734
|
t-if="props.onNameUpdated"
|
|
4686
4735
|
value="props.dimension.displayName"
|
|
@@ -4690,7 +4739,7 @@
|
|
|
4690
4739
|
<span t-else="1" class="fw-bold" t-esc="props.dimension.displayName"/>
|
|
4691
4740
|
</div>
|
|
4692
4741
|
<i
|
|
4693
|
-
class="btn fa fa-times pe-0"
|
|
4742
|
+
class="btn fa fa-times pe-0 ms-auto"
|
|
4694
4743
|
t-if="props.onRemoved"
|
|
4695
4744
|
t-on-click="() => props.onRemoved(props.dimension)"
|
|
4696
4745
|
/>
|
|
@@ -4997,7 +5046,7 @@
|
|
|
4997
5046
|
<div class="o-sidePanelClose" t-on-click="close">✕</div>
|
|
4998
5047
|
</div>
|
|
4999
5048
|
<div class="o-sidePanelBody-container d-flex flex-grow-1 ">
|
|
5000
|
-
<div class="o-sidePanel-handle-container
|
|
5049
|
+
<div class="o-sidePanel-handle-container">
|
|
5001
5050
|
<div
|
|
5002
5051
|
class="o-sidePanel-handle"
|
|
5003
5052
|
t-on-pointerdown="startHandleDrag"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "17.5.0-alpha.
|
|
3
|
+
"version": "17.5.0-alpha.3",
|
|
4
4
|
"description": "A spreadsheet component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/o-spreadsheet.cjs.js",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"xmlSelfClosingSpace": false
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@odoo/owl": "2.
|
|
105
|
+
"@odoo/owl": "2.3.0",
|
|
106
106
|
"bootstrap": "^5.3.3",
|
|
107
107
|
"font-awesome": "^4.7.0",
|
|
108
108
|
"rbush": "^3.0.1"
|