@odoo/o-spreadsheet 18.1.0-alpha.4 → 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.4
5
- @date 2024-11-13T15:07:31.403Z
6
- @hash e1ad985
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">
@@ -4631,21 +4631,26 @@
4631
4631
  </t>
4632
4632
 
4633
4633
  <t t-name="o-spreadsheet-DataValidationInput">
4634
- <div class="o-dv-input position-relative w-100">
4635
- <input
4636
- type="text"
4637
- t-ref="input"
4638
- t-on-input="onValueChanged"
4639
- t-att-value="props.value"
4640
- class="o-input"
4641
- t-att-class="{
4642
- 'o-invalid border-danger position-relative': errorMessage,
4643
- }"
4644
- t-att-title="errorMessage"
4645
- t-att-placeholder="placeholder"
4646
- t-on-keydown="props.onKeyDown"
4647
- t-on-blur="props.onBlur"
4648
- />
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>
4649
4654
  <span
4650
4655
  t-if="errorMessage"
4651
4656
  class="error-icon text-danger position-absolute d-flex align-items-center"
@@ -4750,14 +4755,12 @@
4750
4755
  <Section>
4751
4756
  <div class="o-sidePanelButtons">
4752
4757
  <button t-on-click="props.onExit" class="o-dv-cancel o-button">Cancel</button>
4753
- <button
4754
- t-on-click="onSave"
4755
- class="o-dv-save o-button primary"
4756
- t-att-class="{'o-disabled': !canSave }">
4757
- Save
4758
- </button>
4758
+ <button t-on-click="onSave" class="o-dv-save o-button primary">Save</button>
4759
4759
  </div>
4760
4760
  </Section>
4761
+ <Section>
4762
+ <ValidationMessages messages="errorMessages" msgType="'error'"/>
4763
+ </Section>
4761
4764
  </div>
4762
4765
  </t>
4763
4766
 
@@ -4968,7 +4971,7 @@
4968
4971
  />
4969
4972
  <span t-else="1" class="o-fw-bold" t-esc="props.dimension.displayName"/>
4970
4973
  </div>
4971
- <div class="d-flex flex-rows">
4974
+ <div class="d-flex flex-rows" t-on-pointerdown.stop="">
4972
4975
  <t t-slot="upper-right-icons"/>
4973
4976
  <i
4974
4977
  class="o-button-icon fa fa-trash pe-1 ps-2"
@@ -5129,7 +5132,7 @@
5129
5132
  />
5130
5133
  </t>
5131
5134
  <div t-if="measure.computedBy" class="d-flex flex-row small">
5132
- <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="">
5133
5136
  <StandaloneComposer
5134
5137
  onConfirm.bind="updateMeasureFormula"
5135
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.4",
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",