@odoo/o-spreadsheet 18.1.0-alpha.3 → 18.1.0-alpha.5

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 18.1.0-alpha.3
5
- @date 2024-11-08T12:19:23.924Z
6
- @hash 96dcfab
4
+ @version 18.1.0-alpha.5
5
+ @date 2024-11-22T14:23:33.024Z
6
+ @hash e13bd67
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -402,10 +402,12 @@
402
402
  </button>
403
403
  </div>
404
404
  </div>
405
- <div class="o-separator"/>
406
- <div class="o-buttons">
407
- <button t-on-click="resetColor" class="o-cancel">No Color</button>
408
- </div>
405
+ <t t-if="!props.disableNoColor">
406
+ <div class="o-separator"/>
407
+ <div class="o-buttons">
408
+ <button t-on-click="resetColor" class="o-cancel">No Color</button>
409
+ </div>
410
+ </t>
409
411
  </div>
410
412
  </Popover>
411
413
  </t>
@@ -1493,6 +1495,11 @@
1493
1495
  />
1494
1496
  </svg>
1495
1497
  </t>
1498
+ <t t-name="o-spreadsheet-Icon.CLIPBOARD">
1499
+ <div class="o-icon">
1500
+ <i class="fa fa-clipboard"/>
1501
+ </div>
1502
+ </t>
1496
1503
  <t t-name="o-spreadsheet-Icon.COPY">
1497
1504
  <div class="o-icon">
1498
1505
  <i class="fa fa-clone"/>
@@ -3317,7 +3324,7 @@
3317
3324
  name="'showValues'"
3318
3325
  label.translate="Show values"
3319
3326
  value="props.definition.showValues"
3320
- onChange="showValues => props.updateChart(this.props.figureId, {showValues})"
3327
+ onChange="(showValues) => props.updateChart(this.props.figureId, { showValues })"
3321
3328
  />
3322
3329
  </Section>
3323
3330
  </t>
@@ -3641,7 +3648,7 @@
3641
3648
  name="'showValues'"
3642
3649
  label.translate="Show values"
3643
3650
  value="props.definition.showValues"
3644
- onChange="showValues => props.updateChart(this.props.figureId, {showValues})"
3651
+ onChange="(showValues) => props.updateChart(this.props.figureId, { showValues })"
3645
3652
  />
3646
3653
  </Section>
3647
3654
  </t>
@@ -3659,6 +3666,14 @@
3659
3666
  definition="props.definition"
3660
3667
  updateChart="props.updateChart"
3661
3668
  />
3669
+ <Section class="'pt-0'" title.translate="Values">
3670
+ <Checkbox
3671
+ name="'showValues'"
3672
+ label.translate="Show values"
3673
+ value="props.definition.showValues"
3674
+ onChange="(showValues) => props.updateChart(this.props.figureId, { showValues })"
3675
+ />
3676
+ </Section>
3662
3677
  </t>
3663
3678
  </GeneralDesignEditor>
3664
3679
  <SeriesDesignEditor t-props="props"/>
@@ -3795,7 +3810,7 @@
3795
3810
  name="'showValues'"
3796
3811
  label.translate="Show values"
3797
3812
  value="props.definition.showValues"
3798
- onChange="showValues => props.updateChart(this.props.figureId, {showValues})"
3813
+ onChange="(showValues) => props.updateChart(this.props.figureId, { showValues })"
3799
3814
  />
3800
3815
  </Section>
3801
3816
  </t>
@@ -3975,6 +3990,7 @@
3975
3990
  anchorRect="colorPickerAnchorRect"
3976
3991
  onColorPicked.bind="onColorPicked"
3977
3992
  currentColor="props.currentColor"
3993
+ disableNoColor="props.disableNoColor"
3978
3994
  />
3979
3995
  </t>
3980
3996
 
@@ -4195,6 +4211,7 @@
4195
4211
  currentColor="getThresholdColor(threshold)"
4196
4212
  onColorPicked="(color) => this.setColorScaleColor(thresholdType, color)"
4197
4213
  title="fill_color"
4214
+ disableNoColor="true"
4198
4215
  />
4199
4216
  </div>
4200
4217
  </div>
@@ -4614,21 +4631,26 @@
4614
4631
  </t>
4615
4632
 
4616
4633
  <t t-name="o-spreadsheet-DataValidationInput">
4617
- <div class="o-dv-input position-relative w-100">
4618
- <input
4619
- type="text"
4620
- t-ref="input"
4621
- t-on-input="onValueChanged"
4622
- t-att-value="props.value"
4623
- class="o-input"
4624
- t-att-class="{
4625
- 'o-invalid border-danger position-relative': errorMessage,
4626
- }"
4627
- t-att-title="errorMessage"
4628
- t-att-placeholder="placeholder"
4629
- t-on-keydown="props.onKeyDown"
4630
- t-on-blur="props.onBlur"
4631
- />
4634
+ <div class="o-dv-input position-relative w-100 p-1">
4635
+ <t t-if="allowedValues === 'onlyLiterals'">
4636
+ <input
4637
+ type="text"
4638
+ t-ref="input"
4639
+ t-on-input="onInputValueChanged"
4640
+ t-att-value="props.value"
4641
+ class="o-input"
4642
+ t-att-class="{
4643
+ 'o-invalid border-danger position-relative': errorMessage,
4644
+ }"
4645
+ t-att-title="errorMessage"
4646
+ t-att-placeholder="placeholder"
4647
+ t-on-keydown="props.onKeyDown"
4648
+ t-on-blur="props.onBlur"
4649
+ />
4650
+ </t>
4651
+ <t t-else="">
4652
+ <StandaloneComposer t-props="getDataValidationRuleInputComposerProps()"/>
4653
+ </t>
4632
4654
  <span
4633
4655
  t-if="errorMessage"
4634
4656
  class="error-icon text-danger position-absolute d-flex align-items-center"
@@ -4733,14 +4755,12 @@
4733
4755
  <Section>
4734
4756
  <div class="o-sidePanelButtons">
4735
4757
  <button t-on-click="props.onExit" class="o-dv-cancel o-button">Cancel</button>
4736
- <button
4737
- t-on-click="onSave"
4738
- class="o-dv-save o-button primary"
4739
- t-att-class="{'o-disabled': !canSave }">
4740
- Save
4741
- </button>
4758
+ <button t-on-click="onSave" class="o-dv-save o-button primary">Save</button>
4742
4759
  </div>
4743
4760
  </Section>
4761
+ <Section>
4762
+ <ValidationMessages messages="errorMessages" msgType="'error'"/>
4763
+ </Section>
4744
4764
  </div>
4745
4765
  </t>
4746
4766
 
@@ -4951,7 +4971,7 @@
4951
4971
  />
4952
4972
  <span t-else="1" class="o-fw-bold" t-esc="props.dimension.displayName"/>
4953
4973
  </div>
4954
- <div class="d-flex flex-rows">
4974
+ <div class="d-flex flex-rows" t-on-pointerdown.stop="">
4955
4975
  <t t-slot="upper-right-icons"/>
4956
4976
  <i
4957
4977
  class="o-button-icon fa fa-trash pe-1 ps-2"
@@ -5112,7 +5132,7 @@
5112
5132
  />
5113
5133
  </t>
5114
5134
  <div t-if="measure.computedBy" class="d-flex flex-row small">
5115
- <div class="d-flex flex-column py-2 px-2 w-100">
5135
+ <div class="d-flex flex-column py-2 px-2 w-100" t-on-pointerdown.stop="">
5116
5136
  <StandaloneComposer
5117
5137
  onConfirm.bind="updateMeasureFormula"
5118
5138
  composerContent="measure.computedBy.formula"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.1.0-alpha.3",
3
+ "version": "18.1.0-alpha.5",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",