@odoo/o-spreadsheet 17.3.0-alpha.3 → 17.3.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.
@@ -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.3
5
- @date 2024-04-10T12:29:04.461Z
6
- @hash 80b5056
4
+ @version 17.3.0-alpha.4
5
+ @date 2024-04-15T11:03:33.066Z
6
+ @hash a32a1df
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -1005,6 +1005,9 @@
1005
1005
  position="menuState.position"
1006
1006
  onClose="() => this.closeMenu()"
1007
1007
  />
1008
+ <t t-foreach="staticTables" t-as="table" t-key="table.id">
1009
+ <TableResizer table="table"/>
1010
+ </t>
1008
1011
  <VerticalScrollBar topOffset="HEADER_HEIGHT"/>
1009
1012
  <HorizontalScrollBar leftOffset="HEADER_WIDTH"/>
1010
1013
  <div class="o-scrollbar corner"/>
@@ -2927,7 +2930,7 @@ https://fontawesome.com/license -->
2927
2930
  </tr>
2928
2931
  </t>
2929
2932
 
2930
- <t t-name="o-spreadsheet-LineBarPieConfigPanel">
2933
+ <t t-name="o-spreadsheet-GenericChartConfigPanel">
2931
2934
  <div>
2932
2935
  <ChartDataSeries
2933
2936
  ranges="this.getDataSeriesRanges()"
@@ -2954,7 +2957,7 @@ https://fontawesome.com/license -->
2954
2957
  </div>
2955
2958
  </t>
2956
2959
 
2957
- <t t-name="o-spreadsheet-LineBarPieDesignPanel">
2960
+ <t t-name="o-spreadsheet-GenericChartDesignPanel">
2958
2961
  <div>
2959
2962
  <Section class="'o-chart-background-color'">
2960
2963
  <t t-set-slot="title">Background color</t>
@@ -3247,6 +3250,93 @@ https://fontawesome.com/license -->
3247
3250
  </Section>
3248
3251
  </t>
3249
3252
 
3253
+ <t t-name="o-spreadsheet-WaterfallChartDesignPanel">
3254
+ <div>
3255
+ <Section class="'o-chart-background-color'">
3256
+ <t t-set-slot="title">Background color</t>
3257
+ <div class="d-flex align-items-center">
3258
+ <span class="me-2">Select a color...</span>
3259
+ <RoundColorPicker
3260
+ currentColor="props.definition.background"
3261
+ onColorPicked="(color) => this.updateColor('background', color)"
3262
+ />
3263
+ </div>
3264
+ </Section>
3265
+ <ChartTitle title="title" update.bind="updateTitle"/>
3266
+ <Section>
3267
+ <t t-set-slot="title">Vertical axis position</t>
3268
+ <select
3269
+ t-att-value="props.definition.verticalAxisPosition"
3270
+ class="o-input o-chart-vertical-axis-position"
3271
+ t-on-change="(ev) => this.updateSelect('verticalAxisPosition', ev)">
3272
+ <option value="left">Left</option>
3273
+ <option value="right">Right</option>
3274
+ </select>
3275
+ </Section>
3276
+ <Section>
3277
+ <t t-set-slot="title">Legend position</t>
3278
+ <select
3279
+ t-att-value="props.definition.legendPosition"
3280
+ class="o-input o-chart-legend-position"
3281
+ t-on-change="(ev) => this.updateSelect('legendPosition', ev)">
3282
+ <option value="none">None</option>
3283
+ <option value="top">Top</option>
3284
+ <option value="bottom">Bottom</option>
3285
+ <option value="left">Left</option>
3286
+ <option value="right">Right</option>
3287
+ </select>
3288
+ </Section>
3289
+ <Section>
3290
+ <t t-set-slot="title">Waterfall options</t>
3291
+ <t t-set="firstValueAsSubtotal">Use first value as subtotal</t>
3292
+ <Checkbox
3293
+ name="'firstValueAsSubtotal'"
3294
+ label="firstValueAsSubtotal"
3295
+ value="props.definition.firstValueAsSubtotal"
3296
+ onChange.bind="onUpdateFirstValueAsSubtotal"
3297
+ />
3298
+ <t t-set="showSubTotalsLabel">Show subtotals at the end of series</t>
3299
+ <Checkbox
3300
+ name="'showSubTotals'"
3301
+ label="showSubTotalsLabel"
3302
+ value="props.definition.showSubTotals"
3303
+ onChange.bind="onUpdateShowSubTotals"
3304
+ />
3305
+ <t t-set="showConnectorLinesLabel">Show connector lines</t>
3306
+ <Checkbox
3307
+ name="'showConnectorLines'"
3308
+ label="showConnectorLinesLabel"
3309
+ value="props.definition.showConnectorLines"
3310
+ onChange.bind="onUpdateShowConnectorLines"
3311
+ />
3312
+ </Section>
3313
+ <Section>
3314
+ <t t-set-slot="title">Waterfall colors</t>
3315
+ <div class="o-waterfall-positive-color d-flex align-items-center mb-1">
3316
+ <RoundColorPicker
3317
+ currentColor="positiveValuesColor"
3318
+ onColorPicked="(color) => this.updateColor('positiveValuesColor', color)"
3319
+ />
3320
+ <span class="ps-2">Color of positive values</span>
3321
+ </div>
3322
+ <div class="o-waterfall-negative-color d-flex align-items-center mb-1">
3323
+ <RoundColorPicker
3324
+ currentColor="negativeValuesColor"
3325
+ onColorPicked="(color) => this.updateColor('negativeValuesColor', color)"
3326
+ />
3327
+ <span class="ps-2">Color of negative values</span>
3328
+ </div>
3329
+ <div class="o-waterfall-subtotal-color d-flex align-items-center">
3330
+ <RoundColorPicker
3331
+ currentColor="subTotalValuesColor"
3332
+ onColorPicked="(color) => this.updateColor('subTotalValuesColor', color)"
3333
+ />
3334
+ <span class="ps-2">Color of subtotals</span>
3335
+ </div>
3336
+ </Section>
3337
+ </div>
3338
+ </t>
3339
+
3250
3340
  <t t-name="o-spreadsheet.Checkbox">
3251
3341
  <label
3252
3342
  class="o-checkbox"
@@ -4478,6 +4568,14 @@ https://fontawesome.com/license -->
4478
4568
  />
4479
4569
  </t>
4480
4570
 
4571
+ <t t-name="o-spreadsheet-TableResizer">
4572
+ <div
4573
+ class="o-table-resizer position-absolute"
4574
+ t-att-style="containerStyle"
4575
+ t-on-pointerdown="onMouseDown"
4576
+ />
4577
+ </t>
4578
+
4481
4579
  <t t-name="o-spreadsheet-TableStylePicker">
4482
4580
  <div class="o-table-style-picker d-flex flew-row justify-content-between ps-1">
4483
4581
  <div class="d-flex flex-row overflow-hidden">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "17.3.0-alpha.3",
3
+ "version": "17.3.0-alpha.4",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",
@@ -102,6 +102,7 @@
102
102
  "dependencies": {
103
103
  "@odoo/owl": "2.2.10",
104
104
  "bootstrap": "^5.1.3",
105
+ "font-awesome": "^4.7.0",
105
106
  "rbush": "^3.0.1"
106
107
  },
107
108
  "jest": {