@odoo/o-spreadsheet 17.5.0-alpha.2 → 17.5.0-alpha.4
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 +24222 -23814
- package/dist/o-spreadsheet.d.ts +80 -60
- package/dist/o-spreadsheet.esm.js +24222 -23814
- package/dist/o-spreadsheet.iife.js +24271 -23863
- package/dist/o-spreadsheet.iife.min.js +382 -384
- package/dist/o_spreadsheet.xml +77 -25
- 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.4
|
|
5
|
+
@date 2024-08-06T12:06:44.967Z
|
|
6
|
+
@hash a941df3
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ActionButton">
|
|
@@ -571,18 +571,19 @@
|
|
|
571
571
|
t-esc="cellReference"
|
|
572
572
|
/>
|
|
573
573
|
<div class="o-grid-composer" t-att-style="containerStyle" t-ref="gridComposer">
|
|
574
|
-
<
|
|
574
|
+
<Composer t-props="composerProps"/>
|
|
575
575
|
</div>
|
|
576
576
|
</t>
|
|
577
577
|
|
|
578
578
|
<t t-name="o-spreadsheet-StandaloneComposer">
|
|
579
579
|
<div class="o-standalone-composer" t-on-click.stop="" t-att-class="containerClass">
|
|
580
|
-
<
|
|
580
|
+
<Composer
|
|
581
581
|
focus="focus"
|
|
582
582
|
inputStyle="composerStyle"
|
|
583
583
|
onComposerContentFocused.bind="onFocus"
|
|
584
584
|
composerStore="standaloneComposerStore"
|
|
585
585
|
placeholder="props.placeholder"
|
|
586
|
+
delimitation="spreadsheetRect"
|
|
586
587
|
/>
|
|
587
588
|
</div>
|
|
588
589
|
</t>
|
|
@@ -592,12 +593,12 @@
|
|
|
592
593
|
class="o-topbar-composer bg-white user-select-text"
|
|
593
594
|
t-on-click.stop=""
|
|
594
595
|
t-att-style="containerStyle">
|
|
595
|
-
<
|
|
596
|
+
<Composer
|
|
596
597
|
focus="focus"
|
|
597
598
|
inputStyle="composerStyle"
|
|
598
599
|
onComposerContentFocused.bind="onFocus"
|
|
599
|
-
delimitation="delimitation"
|
|
600
600
|
composerStore="composerStore"
|
|
601
|
+
placeholder="composerStore.placeholder"
|
|
601
602
|
/>
|
|
602
603
|
</div>
|
|
603
604
|
</t>
|
|
@@ -1973,7 +1974,11 @@
|
|
|
1973
1974
|
<i class="fa fa-refresh"/>
|
|
1974
1975
|
</div>
|
|
1975
1976
|
</t>
|
|
1976
|
-
|
|
1977
|
+
<t t-name="o-spreadsheet-Icon.EXCHANGE">
|
|
1978
|
+
<div class="o-icon">
|
|
1979
|
+
<i class="fa fa-exchange"/>
|
|
1980
|
+
</div>
|
|
1981
|
+
</t>
|
|
1977
1982
|
<t t-name="o-spreadsheet-Icon.ARROW_DOWN">
|
|
1978
1983
|
<svg
|
|
1979
1984
|
class="o-cf-icon arrow-down"
|
|
@@ -2393,6 +2398,7 @@
|
|
|
2393
2398
|
<div
|
|
2394
2399
|
t-ref="menu"
|
|
2395
2400
|
class="o-menu"
|
|
2401
|
+
t-att-style="menuStyle"
|
|
2396
2402
|
t-on-scroll="onScroll"
|
|
2397
2403
|
t-on-wheel.stop=""
|
|
2398
2404
|
t-on-click.stop=""
|
|
@@ -2452,6 +2458,7 @@
|
|
|
2452
2458
|
onClose.bind="close"
|
|
2453
2459
|
menuId="props.menuId"
|
|
2454
2460
|
onMouseOver.bind="onMouseOverChildMenu"
|
|
2461
|
+
width="props.width"
|
|
2455
2462
|
/>
|
|
2456
2463
|
</Popover>
|
|
2457
2464
|
</t>
|
|
@@ -3135,6 +3142,53 @@
|
|
|
3135
3142
|
t-on-change="(ev) => this.updateDataSeriesLabel(ev)"
|
|
3136
3143
|
/>
|
|
3137
3144
|
</Section>
|
|
3145
|
+
<Section class="'pt-0 px-0 o-show-trend-line'" t-if="!props.definition.horizontal">
|
|
3146
|
+
<t t-set="showTrendLineLabel">Show trend line</t>
|
|
3147
|
+
<t t-set="trend" t-value="getTrendLineConfiguration()"/>
|
|
3148
|
+
<t t-set="trendType" t-value="getTrendType(trend)"/>
|
|
3149
|
+
<Checkbox
|
|
3150
|
+
name="'showTrendLine'"
|
|
3151
|
+
label="showTrendLineLabel"
|
|
3152
|
+
value="trend !== undefined and trend.display"
|
|
3153
|
+
onChange.bind="toggleDataTrend"
|
|
3154
|
+
/>
|
|
3155
|
+
<div t-if="trend !== undefined and trend.display">
|
|
3156
|
+
<div class="d-flex py-1">
|
|
3157
|
+
<div class="w-100 pe-1">
|
|
3158
|
+
<span class="o-section-title">Type</span>
|
|
3159
|
+
<select class="o-input trend-type-selector" t-on-change="this.onChangeTrendType">
|
|
3160
|
+
<option value="linear" t-att-selected="trendType === 'linear'">Linear</option>
|
|
3161
|
+
<option value="exponential" t-att-selected="trendType === 'exponential'">
|
|
3162
|
+
Exponential
|
|
3163
|
+
</option>
|
|
3164
|
+
<option value="polynomial" t-att-selected="trendType === 'polynomial'">
|
|
3165
|
+
Polynomial
|
|
3166
|
+
</option>
|
|
3167
|
+
<option value="logarithmic" t-att-selected="trendType === 'logarithmic'">
|
|
3168
|
+
Logarithmic
|
|
3169
|
+
</option>
|
|
3170
|
+
</select>
|
|
3171
|
+
</div>
|
|
3172
|
+
<div class="w-50" t-if="trendType === 'polynomial'">
|
|
3173
|
+
<span class="o-section-title">Degree</span>
|
|
3174
|
+
<input
|
|
3175
|
+
t-att-value="trend.order"
|
|
3176
|
+
type="number"
|
|
3177
|
+
class="w-100 o-input o-number-input trend-order-input"
|
|
3178
|
+
t-on-change="this.onChangePolynomialDegree"
|
|
3179
|
+
min="1"
|
|
3180
|
+
/>
|
|
3181
|
+
</div>
|
|
3182
|
+
</div>
|
|
3183
|
+
<div class="d-flex align-items-center">
|
|
3184
|
+
<span class="o-section-title mb-0 pe-2">Trend line color</span>
|
|
3185
|
+
<RoundColorPicker
|
|
3186
|
+
currentColor="getTrendLineColor()"
|
|
3187
|
+
onColorPicked.bind="updateTrendLineColor"
|
|
3188
|
+
/>
|
|
3189
|
+
</div>
|
|
3190
|
+
</div>
|
|
3191
|
+
</Section>
|
|
3138
3192
|
</Section>
|
|
3139
3193
|
</t>
|
|
3140
3194
|
</SidePanelCollapsible>
|
|
@@ -3675,20 +3729,15 @@
|
|
|
3675
3729
|
</t>
|
|
3676
3730
|
|
|
3677
3731
|
<t t-name="o-spreadsheet-CogWheelMenu">
|
|
3678
|
-
<span class="fa fa-cog os-cog-wheel-menu-icon" t-on-click="
|
|
3679
|
-
<
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
<i t-if="item.icon" t-att-class="'me-2 fa ' + item.icon"/>
|
|
3688
|
-
<t t-esc="item.name"/>
|
|
3689
|
-
</div>
|
|
3690
|
-
</div>
|
|
3691
|
-
</Popover>
|
|
3732
|
+
<span class="fa fa-cog os-cog-wheel-menu-icon" t-on-click="toggleMenu" t-ref="button"/>
|
|
3733
|
+
<Menu
|
|
3734
|
+
t-if="menuState.isOpen"
|
|
3735
|
+
menuId="menuId"
|
|
3736
|
+
position="menuState.position"
|
|
3737
|
+
menuItems="menuState.menuItems"
|
|
3738
|
+
onClose="() => this.menuState.isOpen=false"
|
|
3739
|
+
width="160"
|
|
3740
|
+
/>
|
|
3692
3741
|
</t>
|
|
3693
3742
|
|
|
3694
3743
|
<t t-name="o-spreadsheet-SidePanelCollapsible">
|
|
@@ -4678,9 +4727,12 @@
|
|
|
4678
4727
|
<t t-name="o-spreadsheet-PivotDimension">
|
|
4679
4728
|
<div
|
|
4680
4729
|
class="border py-1 px-2 d-flex flex-column shadow-sm pivot-dimension"
|
|
4681
|
-
t-att-class="{'
|
|
4730
|
+
t-att-class="{'pivot-dimension-invalid': !props.dimension.isValid}">
|
|
4682
4731
|
<div class="d-flex flex-row justify-content-between align-items-center">
|
|
4683
4732
|
<div class="d-flex align-items-center overflow-hidden text-nowrap">
|
|
4733
|
+
<span class="text-danger me-1" t-if="!props.dimension.isValid">
|
|
4734
|
+
<t t-call="o-spreadsheet-Icon.TRIANGLE_EXCLAMATION"/>
|
|
4735
|
+
</span>
|
|
4684
4736
|
<TextInput
|
|
4685
4737
|
t-if="props.onNameUpdated"
|
|
4686
4738
|
value="props.dimension.displayName"
|
|
@@ -4690,7 +4742,7 @@
|
|
|
4690
4742
|
<span t-else="1" class="fw-bold" t-esc="props.dimension.displayName"/>
|
|
4691
4743
|
</div>
|
|
4692
4744
|
<i
|
|
4693
|
-
class="btn fa fa-times pe-0"
|
|
4745
|
+
class="btn fa fa-times pe-0 ms-auto"
|
|
4694
4746
|
t-if="props.onRemoved"
|
|
4695
4747
|
t-on-click="() => props.onRemoved(props.dimension)"
|
|
4696
4748
|
/>
|
|
@@ -4997,7 +5049,7 @@
|
|
|
4997
5049
|
<div class="o-sidePanelClose" t-on-click="close">✕</div>
|
|
4998
5050
|
</div>
|
|
4999
5051
|
<div class="o-sidePanelBody-container d-flex flex-grow-1 ">
|
|
5000
|
-
<div class="o-sidePanel-handle-container
|
|
5052
|
+
<div class="o-sidePanel-handle-container">
|
|
5001
5053
|
<div
|
|
5002
5054
|
class="o-sidePanel-handle"
|
|
5003
5055
|
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.4",
|
|
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"
|