@odoo/o-spreadsheet 17.4.0-alpha.5 → 17.4.0-alpha.7
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 +1234 -747
- package/dist/o-spreadsheet.d.ts +232 -120
- package/dist/o-spreadsheet.esm.js +1234 -747
- package/dist/o-spreadsheet.iife.js +1234 -747
- package/dist/o-spreadsheet.iife.min.js +377 -344
- package/dist/o_spreadsheet.xml +250 -23
- package/package.json +6 -4
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.4.0-alpha.
|
|
5
|
-
@date 2024-06-
|
|
6
|
-
@hash
|
|
4
|
+
@version 17.4.0-alpha.7
|
|
5
|
+
@date 2024-06-21T08:43:10.344Z
|
|
6
|
+
@hash a99db9a
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ActionButton">
|
|
@@ -2505,7 +2505,7 @@
|
|
|
2505
2505
|
<Section class="'pt-0'">
|
|
2506
2506
|
<Checkbox
|
|
2507
2507
|
name="'stacked'"
|
|
2508
|
-
label="
|
|
2508
|
+
label="chartTerms.StackedBarChart"
|
|
2509
2509
|
value="props.definition.stacked"
|
|
2510
2510
|
onChange.bind="onUpdateStacked"
|
|
2511
2511
|
/>
|
|
@@ -2751,6 +2751,248 @@
|
|
|
2751
2751
|
</Section>
|
|
2752
2752
|
</t>
|
|
2753
2753
|
|
|
2754
|
+
<t t-name="o-spreadsheet-ChartPreview.LINE_CHART">
|
|
2755
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2756
|
+
<path fill="#444" d="M2,2 v44 h1 v-44 M3,45 h42 v1 h-42"/>
|
|
2757
|
+
<path stroke="#eb6d00" style="fill:none" d="M6,40 l12,-12 l6,6 l18,-18"/>
|
|
2758
|
+
<path stroke="#0074d9" style="fill:none" d="M6,25 l12,-12 l18,18 l6,-6"/>
|
|
2759
|
+
</svg>
|
|
2760
|
+
</t>
|
|
2761
|
+
<t t-name="o-spreadsheet-ChartPreview.STACKED_AREA_CHART">
|
|
2762
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2763
|
+
<path fill="#c4e4ff" d="M3,45 h36 v-39 l-18,18 l-6,-6 l-12,12"/>
|
|
2764
|
+
<path stroke="#0074d9" style="fill:none" d="M3,30 l12,-12 l6,6 l18,-18"/>
|
|
2765
|
+
<path fill="#ffe1c8" d="M3,45 h36 v-23 l-18,12 l-6,-6 l-12,12"/>
|
|
2766
|
+
<path stroke="#eb6d00" style="fill:none" d="M3,40 l12,-12 l6,6 l18,-12"/>
|
|
2767
|
+
<path fill="#444" d="M2,2 v44 h1 v-44 M3,45 h42 v1 h-42"/>
|
|
2768
|
+
</svg>
|
|
2769
|
+
</t>
|
|
2770
|
+
<t t-name="o-spreadsheet-ChartPreview.COLUMN_CHART">
|
|
2771
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2772
|
+
<path fill="#0074d9" d="M7,45 v-28 h6 v28"/>
|
|
2773
|
+
<path fill="#c4e4ff" d="M8,45 v-27 h4 v27"/>
|
|
2774
|
+
<path fill="#eb6d00" d="M14,45 v-14 h6 v14"/>
|
|
2775
|
+
<path fill="#ffe1c8" d="M15,45 v-13 h4 v13"/>
|
|
2776
|
+
<path fill="#0074d9" d="M26,45 v-22 h6 v22"/>
|
|
2777
|
+
<path fill="#c4e4ff" d="M27,45 v-21 h4 v21"/>
|
|
2778
|
+
<path fill="#eb6d00" d="M33,45 v-32 h6 v32"/>
|
|
2779
|
+
<path fill="#ffe1c8" d="M34,45 v-31 h4 v31"/>
|
|
2780
|
+
<path fill="#444" d="M2,2 v44 h1 v-44 M3,45 h42 v1 h-42"/>
|
|
2781
|
+
</svg>
|
|
2782
|
+
</t>
|
|
2783
|
+
<t t-name="o-spreadsheet-ChartPreview.STACKED_COLUMN_CHART">
|
|
2784
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2785
|
+
<path fill="#0074d9" d="M7,45 v-12 h8 v12"/>
|
|
2786
|
+
<path fill="#c4e4ff" d="M8,45 v-11 h6 v11"/>
|
|
2787
|
+
<path fill="#eb6d00" d="M7,33 v-14 h8 v14"/>
|
|
2788
|
+
<path fill="#ffe1c8" d="M8,33 v-13 h6 v13"/>
|
|
2789
|
+
|
|
2790
|
+
<path fill="#0074d9" d="M20,45 v-8 h8 v8"/>
|
|
2791
|
+
<path fill="#c4e4ff" d="M21,45 v-7 h6 v7"/>
|
|
2792
|
+
<path fill="#eb6d00" d="M20,37 v-9 h8 v9"/>
|
|
2793
|
+
<path fill="#ffe1c8" d="M21,37 v-8 h6 v8"/>
|
|
2794
|
+
|
|
2795
|
+
<path fill="#0074d9" d="M33,45 v-18 h8 v18"/>
|
|
2796
|
+
<path fill="#c4e4ff" d="M34,45 v-17 h6 v17"/>
|
|
2797
|
+
<path fill="#eb6d00" d="M33,27 v-16 h8 v16"/>
|
|
2798
|
+
<path fill="#ffe1c8" d="M34,27 v-15 h6 v15"/>
|
|
2799
|
+
|
|
2800
|
+
<path fill="#444" d="M2,2 v44 h1 v-44 M3,45 h42 v1 h-42"/>
|
|
2801
|
+
</svg>
|
|
2802
|
+
</t>
|
|
2803
|
+
<t t-name="o-spreadsheet-ChartPreview.BAR_CHART">
|
|
2804
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2805
|
+
<g transform="matrix(0 1 -1 0 48 3)">
|
|
2806
|
+
<path fill="#0074d9" d="M7,45 v-28 h6 v28"/>
|
|
2807
|
+
<path fill="#c4e4ff" d="M8,45 v-27 h4 v27"/>
|
|
2808
|
+
<path fill="#eb6d00" d="M14,45 v-14 h6 v14"/>
|
|
2809
|
+
<path fill="#ffe1c8" d="M15,45 v-13 h4 v13"/>
|
|
2810
|
+
<path fill="#0074d9" d="M26,45 v-22 h6 v22"/>
|
|
2811
|
+
<path fill="#c4e4ff" d="M27,45 v-21 h4 v21"/>
|
|
2812
|
+
<path fill="#eb6d00" d="M33,45 v-32 h6 v32"/>
|
|
2813
|
+
<path fill="#ffe1c8" d="M34,45 v-31 h4 v31"/>
|
|
2814
|
+
</g>
|
|
2815
|
+
<path fill="#444" d="M2,2 v44 h1 v-44 M3,45 h42 v1 h-42"/>
|
|
2816
|
+
</svg>
|
|
2817
|
+
</t>
|
|
2818
|
+
<t t-name="o-spreadsheet-ChartPreview.STACKED_BAR_CHART">
|
|
2819
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2820
|
+
<g transform="matrix(0 1 -1 0 48 1)">
|
|
2821
|
+
<path fill="#0074d9" d="M7,45 v-12 h8 v12"/>
|
|
2822
|
+
<path fill="#c4e4ff" d="M8,45 v-11 h6 v11"/>
|
|
2823
|
+
<path fill="#eb6d00" d="M7,33 v-14 h8 v14"/>
|
|
2824
|
+
<path fill="#ffe1c8" d="M8,33 v-13 h6 v13"/>
|
|
2825
|
+
<path fill="#0074d9" d="M20,45 v-8 h8 v8"/>
|
|
2826
|
+
<path fill="#c4e4ff" d="M21,45 v-7 h6 v7"/>
|
|
2827
|
+
<path fill="#eb6d00" d="M20,37 v-9 h8 v9"/>
|
|
2828
|
+
<path fill="#ffe1c8" d="M21,37 v-8 h6 v8"/>
|
|
2829
|
+
<path fill="#0074d9" d="M33,45 v-18 h8 v18"/>
|
|
2830
|
+
<path fill="#c4e4ff" d="M34,45 v-17 h6 v17"/>
|
|
2831
|
+
<path fill="#eb6d00" d="M33,27 v-16 h8 v16"/>
|
|
2832
|
+
<path fill="#ffe1c8" d="M34,27 v-15 h6 v15"/>
|
|
2833
|
+
</g>
|
|
2834
|
+
<path fill="#444" d="M2,2 v44 h1 v-44 M3,45 h42 v1 h-42"/>
|
|
2835
|
+
</svg>
|
|
2836
|
+
</t>
|
|
2837
|
+
<t t-name="o-spreadsheet-ChartPreview.COMBO_CHART">
|
|
2838
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2839
|
+
<path fill="#0074d9" d="M7,45 v-14 h6 v14"/>
|
|
2840
|
+
<path fill="#c4e4ff" d="M8,45 v-13 h4 v13"/>
|
|
2841
|
+
<path fill="#eb6d00" d="M14,45 v-28 h6 v28"/>
|
|
2842
|
+
<path fill="#ffe1c8" d="M15,45 v-27 h4 v27"/>
|
|
2843
|
+
<path fill="#0074d9" d="M26,45 v-22 h6 v22"/>
|
|
2844
|
+
<path fill="#c4e4ff" d="M27,45 v-21 h4 v21"/>
|
|
2845
|
+
<path fill="#eb6d00" d="M33,45 v-32 h6 v32"/>
|
|
2846
|
+
<path fill="#ffe1c8" d="M34,45 v-31 h4 v31"/>
|
|
2847
|
+
<path stroke="#888" style="fill:none;stroke-width:1.5;" d="M4,40 l14,-12 l6,6 l20,-18"/>
|
|
2848
|
+
<path fill="#444" d="M2,2 v44 h1 v-44 M3,45 h42 v1 h-42"/>
|
|
2849
|
+
</svg>
|
|
2850
|
+
</t>
|
|
2851
|
+
<t t-name="o-spreadsheet-ChartPreview.PIE_CHART">
|
|
2852
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2853
|
+
<path fill="#ffe1c8" stroke="#eb6d00" d="M41.32, 34 A20 20, 0, 1, 1, 24, 4 v20"/>
|
|
2854
|
+
<path fill="#c4e4ff" stroke="#0074d9" d="M24,24 v-20 A20 20, 0, 0, 1, 41.32, 34 L24,24"/>
|
|
2855
|
+
</svg>
|
|
2856
|
+
</t>
|
|
2857
|
+
<t t-name="o-spreadsheet-ChartPreview.DOUGHNUT_CHART">
|
|
2858
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2859
|
+
<path
|
|
2860
|
+
fill="#ffe1c8"
|
|
2861
|
+
stroke="#eb6d00"
|
|
2862
|
+
d="M41.32, 34 A20 20, 0, 1, 1, 24, 4 v8 A12,12,0,1,0,34.4,30"
|
|
2863
|
+
/>
|
|
2864
|
+
<path
|
|
2865
|
+
fill="#c4e4ff"
|
|
2866
|
+
stroke="#0074d9"
|
|
2867
|
+
d="M24,12 v-8 A20 20, 0, 0, 1, 41.32, 34 L34.4,30 A12,12,0,0,0,24,12"
|
|
2868
|
+
/>
|
|
2869
|
+
</svg>
|
|
2870
|
+
</t>
|
|
2871
|
+
<t t-name="o-spreadsheet-ChartPreview.SCATTER_CHART">
|
|
2872
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2873
|
+
<circle fill="#0074d9" cx="10" cy="10" r="2"/>
|
|
2874
|
+
<circle fill="#0074d9" cx="15" cy="30" r="2"/>
|
|
2875
|
+
<circle fill="#0074d9" cx="25" cy="36" r="2"/>
|
|
2876
|
+
<circle fill="#0074d9" cx="32" cy="15" r="2"/>
|
|
2877
|
+
<circle fill="#eb6d00" cx="10" cy="40" r="2"/>
|
|
2878
|
+
<circle fill="#eb6d00" cx="18" cy="20" r="2"/>
|
|
2879
|
+
<circle fill="#eb6d00" cx="30" cy="25" r="2"/>
|
|
2880
|
+
<circle fill="#eb6d00" cx="40" cy="33" r="2"/>
|
|
2881
|
+
<path fill="#444" d="M2,2 v44 h1 v-44 M3,45 h42 v1 h-42"/>
|
|
2882
|
+
</svg>
|
|
2883
|
+
</t>
|
|
2884
|
+
<t t-name="o-spreadsheet-ChartPreview.GAUGE_CHART">
|
|
2885
|
+
<svg
|
|
2886
|
+
viewBox="0 0 48 48"
|
|
2887
|
+
class="o-chart-preview user-select-none"
|
|
2888
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
2889
|
+
<path fill="#ccc" d="M2,32 A22,22,0,0,1,46,32 h-6 A16,16,0,0,0,8,32"/>
|
|
2890
|
+
<path fill="#6aa84f" d="M2,32 A22,22,0,0,1,35,13 L32,18.2 A16,16,0,0,0,8,32"/>
|
|
2891
|
+
<text x="17" y="32" style="font-size:12px;">62</text>
|
|
2892
|
+
</svg>
|
|
2893
|
+
</t>
|
|
2894
|
+
<t t-name="o-spreadsheet-ChartPreview.SCORECARD_CHART">
|
|
2895
|
+
<svg
|
|
2896
|
+
viewBox="0 0 48 48"
|
|
2897
|
+
class="o-chart-preview user-select-none"
|
|
2898
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
2899
|
+
<path fill="#ddd" d="M1,8 h46 v32 h-46"/>
|
|
2900
|
+
<path fill="#eee" d="M2,9 h44 v30 h-44"/>
|
|
2901
|
+
<text x="9" y="32" style="font-size:18px;">123</text>
|
|
2902
|
+
</svg>
|
|
2903
|
+
</t>
|
|
2904
|
+
<t t-name="o-spreadsheet-ChartPreview.WATERFALL_CHART">
|
|
2905
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2906
|
+
<path fill="#444" d="M5,45 v-26 h6 v26"/>
|
|
2907
|
+
<path fill="#fff" d="M6,45 v-25 h4 v25"/>
|
|
2908
|
+
<path fill="#eb6d00" d="M13,19 v7 h6 v-7"/>
|
|
2909
|
+
<path fill="#ffe1c8" d="M14,20 v5 h4 v-5"/>
|
|
2910
|
+
<path fill="#eb6d00" d="M21,25 v10 h6 v-10"/>
|
|
2911
|
+
<path fill="#ffe1c8" d="M22,26 v8 h4 v-8"/>
|
|
2912
|
+
<path fill="#0074d9" d="M29,35 v-24 h6 v24"/>
|
|
2913
|
+
<path fill="#c4e4ff" d="M30,34 v-22 h4 v22"/>
|
|
2914
|
+
<path fill="#444" d="M37,45 v-34 h6 v34"/>
|
|
2915
|
+
<path fill="#fff" d="M38,45 v-33 h4 v33"/>
|
|
2916
|
+
<path fill="#444" d="M11,20 v-1 h2 v1 M19,26 v-1 h2 v1 M27,35 v-1 h2 v1 M35,12 v-1 h2 v1"/>
|
|
2917
|
+
<path fill="#444" d="M2,2 v44 h1 v-44 M3,45 h42 v1 h-42"/>
|
|
2918
|
+
</svg>
|
|
2919
|
+
</t>
|
|
2920
|
+
<t t-name="o-spreadsheet-ChartPreview.POPULATION_PYRAMID_CHART">
|
|
2921
|
+
<svg viewBox="0 0 48 48" class="o-chart-preview" xmlns="http://www.w3.org/2000/svg">
|
|
2922
|
+
<path fill="#eb6d00" d="M23,43 v-6 h22 v6"/>
|
|
2923
|
+
<path fill="#ffe1c8" d="M23,42 v-4 h21 v4"/>
|
|
2924
|
+
<path fill="#eb6d00" d="M23,36 v-6 h18 v6"/>
|
|
2925
|
+
<path fill="#ffe1c8" d="M23,35 v-4 h17 v4"/>
|
|
2926
|
+
<path fill="#eb6d00" d="M23,29 v-6 h12 v6"/>
|
|
2927
|
+
<path fill="#ffe1c8" d="M23,28 v-4 h11 v4"/>
|
|
2928
|
+
<path fill="#eb6d00" d="M23,22 v-6 h8 v6"/>
|
|
2929
|
+
<path fill="#ffe1c8" d="M23,21 v-4 h7 v4"/>
|
|
2930
|
+
<path fill="#eb6d00" d="M23,15 v-6 h4 v6"/>
|
|
2931
|
+
<path fill="#ffe1c8" d="M23,14 v-4 h3 v4"/>
|
|
2932
|
+
|
|
2933
|
+
<path fill="#0074d9" d="M24,43 v-6 h-20 v6"/>
|
|
2934
|
+
<path fill="#c4e4ff" d="M24,42 v-4 h-19 v4"/>
|
|
2935
|
+
<path fill="#0074d9" d="M24,36 v-6 h-18 v6"/>
|
|
2936
|
+
<path fill="#c4e4ff" d="M24,35 v-4 h-17 v4"/>
|
|
2937
|
+
<path fill="#0074d9" d="M24,29 v-6 h-12 v6"/>
|
|
2938
|
+
<path fill="#c4e4ff" d="M24,28 v-4 h-11 v4"/>
|
|
2939
|
+
<path fill="#0074d9" d="M24,22 v-6 h-6 v6"/>
|
|
2940
|
+
<path fill="#c4e4ff" d="M24,21 v-4 h-5 v4"/>
|
|
2941
|
+
<path fill="#0074d9" d="M24,15 v-6 h-4 v6"/>
|
|
2942
|
+
<path fill="#c4e4ff" d="M24,14 v-4 h-3 v4"/>
|
|
2943
|
+
|
|
2944
|
+
<path fill="#444" d="M23,2 v43 h1 v-43 M2,45 h44 v1 h-44"/>
|
|
2945
|
+
</svg>
|
|
2946
|
+
</t>
|
|
2947
|
+
|
|
2948
|
+
<t t-name="o-spreadsheet-ChartTypePicker">
|
|
2949
|
+
<t t-set="selectedChartProperties" t-value="getSelectedChartSubtypeProperties()"/>
|
|
2950
|
+
<Section>
|
|
2951
|
+
<t t-set-slot="title">Chart type</t>
|
|
2952
|
+
<div class="position-relative">
|
|
2953
|
+
<select
|
|
2954
|
+
class="o-input o-type-selector"
|
|
2955
|
+
t-ref="selectRef"
|
|
2956
|
+
t-on-pointerdown.prevent="onPointerDown">
|
|
2957
|
+
<option
|
|
2958
|
+
t-esc="selectedChartProperties.displayName"
|
|
2959
|
+
t-att-value="selectedChartProperties.chartSubtype"
|
|
2960
|
+
/>
|
|
2961
|
+
</select>
|
|
2962
|
+
<div class="o-type-selector-preview position-absolute">
|
|
2963
|
+
<t t-call="{{selectedChartProperties.preview}}"/>
|
|
2964
|
+
</div>
|
|
2965
|
+
</div>
|
|
2966
|
+
</Section>
|
|
2967
|
+
<Popover t-if="state.popoverProps" t-props="state.popoverProps">
|
|
2968
|
+
<div
|
|
2969
|
+
t-ref="popoverRef"
|
|
2970
|
+
class="o-chart-select-popover px-3 pb-4"
|
|
2971
|
+
t-att-style="state.popoverStyle">
|
|
2972
|
+
<t t-foreach="categories" t-as="category" t-key="category">
|
|
2973
|
+
<t t-if="chartTypeByCategories[category]">
|
|
2974
|
+
<h5 class="my-3" t-esc="category_value"/>
|
|
2975
|
+
<div class="d-flex flex-wrap">
|
|
2976
|
+
<t
|
|
2977
|
+
t-foreach="chartTypeByCategories[category]"
|
|
2978
|
+
t-as="properties"
|
|
2979
|
+
t-key="properties.chartSubtype">
|
|
2980
|
+
<div
|
|
2981
|
+
class="o-chart-type-item"
|
|
2982
|
+
t-att-title="properties.displayName"
|
|
2983
|
+
t-on-click="() => this.onTypeChange(properties.chartSubtype)"
|
|
2984
|
+
t-att-data-id="properties.chartSubtype"
|
|
2985
|
+
t-att-class="{'selected': properties === selectedChartProperties}">
|
|
2986
|
+
<t t-call="{{properties.preview}}"/>
|
|
2987
|
+
</div>
|
|
2988
|
+
</t>
|
|
2989
|
+
</div>
|
|
2990
|
+
</t>
|
|
2991
|
+
</t>
|
|
2992
|
+
</div>
|
|
2993
|
+
</Popover>
|
|
2994
|
+
</t>
|
|
2995
|
+
|
|
2754
2996
|
<t t-name="o-spreadsheet-ChartWithAxisDesignPanel">
|
|
2755
2997
|
<GeneralDesignEditor
|
|
2756
2998
|
figureId="props.figureId"
|
|
@@ -2797,7 +3039,7 @@
|
|
|
2797
3039
|
/>
|
|
2798
3040
|
</div>
|
|
2799
3041
|
</Section>
|
|
2800
|
-
<Section class="'pt-0 px-0'">
|
|
3042
|
+
<Section class="'pt-0 px-0'" t-if="canHaveTwoVerticalAxis">
|
|
2801
3043
|
<t t-set-slot="title">Vertical axis</t>
|
|
2802
3044
|
<select
|
|
2803
3045
|
t-att-value="getDataSerieAxis()"
|
|
@@ -2999,13 +3241,13 @@
|
|
|
2999
3241
|
<Section class="'pt-0'">
|
|
3000
3242
|
<Checkbox
|
|
3001
3243
|
name="'stacked'"
|
|
3002
|
-
label="
|
|
3244
|
+
label="chartTerms.StackedLineChart"
|
|
3003
3245
|
value="props.definition.stacked"
|
|
3004
3246
|
onChange.bind="onUpdateStacked"
|
|
3005
3247
|
/>
|
|
3006
3248
|
<Checkbox
|
|
3007
3249
|
name="'cumulative'"
|
|
3008
|
-
label="
|
|
3250
|
+
label="chartTerms.CumulativeData"
|
|
3009
3251
|
value="props.definition.cumulative"
|
|
3010
3252
|
onChange.bind="onUpdateCumulative"
|
|
3011
3253
|
/>
|
|
@@ -3056,22 +3298,7 @@
|
|
|
3056
3298
|
|
|
3057
3299
|
<t t-set="definition" t-value="getChartDefinition(this.figureId)"/>
|
|
3058
3300
|
<t t-if="store.panel === 'configuration'">
|
|
3059
|
-
<
|
|
3060
|
-
<t t-set-slot="title">Chart type</t>
|
|
3061
|
-
<t t-set="types" t-value="chartTypes"/>
|
|
3062
|
-
<select
|
|
3063
|
-
class="o-input o-type-selector"
|
|
3064
|
-
t-on-change="(ev) => this.onTypeChange(ev.target.value)">
|
|
3065
|
-
<option
|
|
3066
|
-
t-foreach="chartTypes"
|
|
3067
|
-
t-as="type"
|
|
3068
|
-
t-key="type"
|
|
3069
|
-
t-att-value="type"
|
|
3070
|
-
t-esc="types[type]"
|
|
3071
|
-
t-att-selected="definition.type === type"
|
|
3072
|
-
/>
|
|
3073
|
-
</select>
|
|
3074
|
-
</Section>
|
|
3301
|
+
<ChartTypePicker figureId="props.figureId" chartPanelStore="store"/>
|
|
3075
3302
|
<t
|
|
3076
3303
|
t-component="chartPanel.configuration"
|
|
3077
3304
|
definition="definition"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odoo/o-spreadsheet",
|
|
3
|
-
"version": "17.4.0-alpha.
|
|
3
|
+
"version": "17.4.0-alpha.7",
|
|
4
4
|
"description": "A spreadsheet component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/o-spreadsheet.cjs.js",
|
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
16
|
"serve-static": "live-server --open=demo --watch=build/o_spreadsheet.js,build/o_spreadsheet.xml,demo",
|
|
17
|
-
"dev": "npm-run-all --print-label
|
|
17
|
+
"dev": "npm-run-all --print-label buildDev --parallel server serve-static watch:*",
|
|
18
18
|
"server": "node tools/server/main.cjs",
|
|
19
19
|
"build:js": "tsc --module es6 --incremental",
|
|
20
|
-
"build:
|
|
20
|
+
"build:bundleJsDev": "rollup -c -m --configDev",
|
|
21
|
+
"build:bundleJs": "rollup -c -m --configDist",
|
|
21
22
|
"build:bundleXml": "node tools/bundle_xml/main.cjs",
|
|
23
|
+
"buildDev": "npm-run-all build:js build:bundleJsDev \"build:bundleXml -- --outDir build\"",
|
|
22
24
|
"build": "npm-run-all build:js build:bundleJs \"build:bundleXml -- --outDir build\"",
|
|
23
25
|
"doc": "typedoc",
|
|
24
26
|
"precommit": "npm run prettier && npm run doc",
|
|
@@ -28,7 +30,7 @@
|
|
|
28
30
|
"check-formatting": "prettier . --check",
|
|
29
31
|
"dist": "tsc --module es6 --declaration --declarationDir dist/types && rollup -c && npm run build:bundleXml -- --outDir dist",
|
|
30
32
|
"prepare": "husky install",
|
|
31
|
-
"watch:bundle": "npm run build:
|
|
33
|
+
"watch:bundle": "npm run build:bundleJsDev -- --watch",
|
|
32
34
|
"watch:ts": "npm run build:js -- --watch",
|
|
33
35
|
"watch:xml": "node tools/bundle_xml/watch_xml_templates.cjs",
|
|
34
36
|
"unzipXlsx": "node tools/bundle_xlsx/unzip_xlsx_demo.cjs",
|