@odoo/o-spreadsheet 16.1.31 → 16.1.36

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.
@@ -188,7 +188,7 @@
188
188
  t-on-keyup="onKeyup"
189
189
  t-on-click="onClick"
190
190
  t-on-blur="onBlur"
191
- t-on-paste.stop=""
191
+ t-on-paste="onPaste"
192
192
  t-on-compositionstart="onCompositionStart"
193
193
  t-on-compositionend="onCompositionEnd"
194
194
  />
@@ -274,14 +274,7 @@
274
274
 
275
275
  <t t-name="o-spreadsheet-GridComposer" owl="1">
276
276
  <div class="o-grid-composer" t-att-style="containerStyle" t-ref="gridComposer">
277
- <Composer
278
- focus="props.focus"
279
- inputStyle="composerStyle"
280
- rect="composerState.rect"
281
- delimitation="composerState.delimitation"
282
- onComposerUnmounted="props.onComposerUnmounted"
283
- onComposerContentFocused="props.onComposerContentFocused"
284
- />
277
+ <Composer t-props="composerProps"/>
285
278
  </div>
286
279
  </t>
287
280
 
@@ -612,9 +605,10 @@
612
605
  class="o-grid"
613
606
  tabindex="-1"
614
607
  t-att-class="{'o-two-columns': !props.sidePanelIsOpen}"
615
- t-on-click="focus"
608
+ t-on-click="focusDefaultElement"
616
609
  t-on-keydown="onKeydown"
617
610
  t-on-wheel="onMouseWheel"
611
+ t-on-contextmenu="onInputContextMenu"
618
612
  t-ref="grid">
619
613
  <GridOverlay
620
614
  onCellClicked.bind="onCellClicked"
@@ -624,26 +618,14 @@
624
618
  onGridResized.bind="onGridResized"
625
619
  onGridMoved.bind="moveCanvas"
626
620
  gridOverlayDimensions="gridOverlayDimensions"
627
- onFigureDeleted.bind="focus"
621
+ onFigureDeleted.bind="focusDefaultElement"
628
622
  />
629
623
  <HeadersOverlay onOpenContextMenu="(type, x, y) => this.toggleContextMenu(type, x, y)"/>
630
-
631
- <t t-if="env.model.getters.getEditionMode() !== 'inactive'">
632
- <GridComposer
633
- onComposerUnmounted="() => this.focus()"
634
- onComposerContentFocused="props.onComposerContentFocused"
635
- focus="props.focusComposer"
636
- />
637
- </t>
638
- <t else="1">
639
- <input
640
- class="position-absolute"
641
- style="z-index:-1000;"
642
- t-on-input="onInput"
643
- t-on-contextmenu="onInputContextMenu"
644
- t-ref="hiddenInput"
645
- />
646
- </t>
624
+ <GridComposer
625
+ onComposerContentFocused="props.onComposerContentFocused"
626
+ onComposerCellFocused="props.onGridComposerCellFocused"
627
+ focus="props.focusComposer"
628
+ />
647
629
  <canvas t-ref="canvas"/>
648
630
  <t
649
631
  t-foreach="env.model.getters.getClientsToDisplay()"
@@ -694,7 +676,7 @@
694
676
  t-att-style="props.gridOverlayDimensions"
695
677
  t-on-mousedown="onMouseDown"
696
678
  t-on-dblclick.self="onDoubleClick"
697
- t-on-contextmenu="onContextMenu">
679
+ t-on-contextmenu.stop.prevent="onContextMenu">
698
680
  <FiguresContainer onFigureDeleted="props.onFigureDeleted"/>
699
681
  </div>
700
682
  </t>
@@ -3322,7 +3304,7 @@ https://fontawesome.com/license -->
3322
3304
  </t>
3323
3305
  </odoo>
3324
3306
  <!--
3325
- __info__.version = '16.1.31';
3326
- __info__.date = '2024-01-12T13:42:34.061Z';
3327
- __info__.hash = 'f51befa';
3307
+ __info__.version = '16.1.36';
3308
+ __info__.date = '2024-02-16T14:16:34.256Z';
3309
+ __info__.hash = 'ad5301c';
3328
3310
  -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "16.1.31",
3
+ "version": "16.1.36",
4
4
  "description": "A spreadsheet component",
5
5
  "main": "dist/o-spreadsheet.cjs.js",
6
6
  "browser": "dist/o-spreadsheet.iife.js",