@odoo/o-spreadsheet 18.3.12 → 18.3.14

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.3.12
5
- @date 2025-07-11T11:12:44.962Z
6
- @hash d14dc96
4
+ @version 18.3.14
5
+ @date 2025-07-30T11:19:41.122Z
6
+ @hash 2a7178a
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -1540,8 +1540,9 @@
1540
1540
  <t t-if="state.mode === 'edit'">
1541
1541
  <ConditionalFormattingEditor
1542
1542
  editedCf="editedCF"
1543
- onSave.bind="switchToList"
1543
+ onExit.bind="switchToList"
1544
1544
  onCancel.bind="cancelEdition"
1545
+ isNewCf="originalEditedCf === undefined"
1545
1546
  />
1546
1547
  </t>
1547
1548
  </div>
@@ -1905,7 +1906,7 @@
1905
1906
  </Section>
1906
1907
  <Section class="'pt-1'">
1907
1908
  <div class="o-sidePanelButtons">
1908
- <button t-on-click="props.onCancel" class="o-button o-cf-cancel">Cancel</button>
1909
+ <button t-on-click="onCancel" class="o-button o-cf-cancel">Cancel</button>
1909
1910
  <button
1910
1911
  t-on-click="onSave"
1911
1912
  class="o-button primary o-cf-save"
@@ -6079,7 +6080,7 @@
6079
6080
  />
6080
6081
  <div class="d-flex flex-row position-relative">
6081
6082
  <span
6082
- t-if="props.focus !== 'inactive' and assistantIsAvailable and assistant.forcedClosed"
6083
+ t-if="props.focus !== 'inactive' and assistantIsAvailable and canBeToggled and assistant.forcedClosed"
6083
6084
  role="button"
6084
6085
  title="Show formula help"
6085
6086
  t-on-click="openAssistant"
@@ -6096,7 +6097,7 @@
6096
6097
  t-att-style="props.inputStyle"
6097
6098
  t-ref="o_composer"
6098
6099
  tabindex="1"
6099
- t-att-contenteditable="env.model.getters.isReadonly() ? 'false' : 'true'"
6100
+ t-att-contenteditable="env.model.getters.isReadonly() ? 'false' : 'plaintext-only'"
6100
6101
  t-att-placeHolder="props.placeholder"
6101
6102
  spellcheck="false"
6102
6103
  t-on-keydown="onKeydown"
@@ -6118,12 +6119,13 @@
6118
6119
  <div
6119
6120
  class="o-composer-assistant-container shadow position-absolute z-1"
6120
6121
  t-att-style="assistantContainerStyle"
6121
- t-if="props.focus !== 'inactive' and !assistant.forcedClosed and assistantIsAvailable"
6122
+ t-if="props.focus !== 'inactive' and assistantIsAvailable and !(canBeToggled and assistant.forcedClosed)"
6122
6123
  t-on-wheel.stop=""
6123
6124
  t-on-pointerdown.prevent.stop=""
6124
6125
  t-on-pointerup.prevent.stop=""
6125
6126
  t-on-click.prevent.stop="">
6126
6127
  <span
6128
+ t-if="canBeToggled and !assistant.forcedClosed"
6127
6129
  role="button"
6128
6130
  t-on-click="closeAssistant"
6129
6131
  class="fa-stack position-absolute top-0 start-100 translate-middle fs-4">
@@ -6444,7 +6446,7 @@
6444
6446
  t-on-dblclick="() => this.onDblClick()"
6445
6447
  t-on-focusout="() => this.onFocusOut()"
6446
6448
  t-on-keydown="(ev) => this.onKeyDown(ev)"
6447
- t-att-contenteditable="state.isEditing ? 'true': 'false'"
6449
+ t-att-contenteditable="state.isEditing ? 'plaintext-only': 'false'"
6448
6450
  />
6449
6451
  <span
6450
6452
  class="o-sheet-icon ms-1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.3.12",
3
+ "version": "18.3.14",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",