@odoo/o-spreadsheet 16.0.31 → 16.0.33

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.
@@ -189,7 +189,7 @@
189
189
  t-on-keyup="onKeyup"
190
190
  t-on-click="onClick"
191
191
  t-on-blur="onBlur"
192
- t-on-paste.stop=""
192
+ t-on-paste="onPaste"
193
193
  t-on-compositionstart="onCompositionStart"
194
194
  t-on-compositionend="onCompositionEnd"
195
195
  />
@@ -279,14 +279,7 @@
279
279
 
280
280
  <t t-name="o-spreadsheet-GridComposer" owl="1">
281
281
  <div class="o-grid-composer" t-att-style="containerStyle" t-ref="gridComposer">
282
- <Composer
283
- focus="props.focus"
284
- inputStyle="composerStyle"
285
- rect="composerState.rect"
286
- delimitation="composerState.delimitation"
287
- onComposerUnmounted="props.onComposerUnmounted"
288
- onComposerContentFocused="props.onComposerContentFocused"
289
- />
282
+ <Composer t-props="composerProps"/>
290
283
  </div>
291
284
  </t>
292
285
 
@@ -592,9 +585,10 @@
592
585
  class="o-grid"
593
586
  tabindex="-1"
594
587
  t-att-class="{'o-two-columns': !props.sidePanelIsOpen}"
595
- t-on-click="focus"
588
+ t-on-click="focusDefaultElement"
596
589
  t-on-keydown="onKeydown"
597
590
  t-on-wheel="onMouseWheel"
591
+ t-on-contextmenu="onInputContextMenu"
598
592
  t-ref="grid">
599
593
  <GridOverlay
600
594
  onCellClicked.bind="onCellClicked"
@@ -605,26 +599,14 @@
605
599
  onGridMoved.bind="moveCanvas"
606
600
  gridOverlayDimensions="gridOverlayDimensions"
607
601
  sidePanelIsOpen="props.sidePanelIsOpen"
608
- onFigureDeleted.bind="focus"
602
+ onFigureDeleted.bind="focusDefaultElement"
609
603
  />
610
604
  <HeadersOverlay onOpenContextMenu="(type, x, y) => this.toggleContextMenu(type, x, y)"/>
611
-
612
- <t t-if="env.model.getters.getEditionMode() !== 'inactive'">
613
- <GridComposer
614
- onComposerUnmounted="() => this.focus()"
615
- onComposerContentFocused="props.onComposerContentFocused"
616
- focus="props.focusComposer"
617
- />
618
- </t>
619
- <t else="1">
620
- <input
621
- class="position-absolute"
622
- style="z-index:-1000;"
623
- t-on-input="onInput"
624
- t-on-contextmenu="onInputContextMenu"
625
- t-ref="hiddenInput"
626
- />
627
- </t>
605
+ <GridComposer
606
+ onComposerContentFocused="props.onComposerContentFocused"
607
+ onComposerCellFocused="props.onGridComposerCellFocused"
608
+ focus="props.focusComposer"
609
+ />
628
610
  <canvas t-ref="canvas"/>
629
611
  <t
630
612
  t-foreach="env.model.getters.getClientsToDisplay()"
@@ -3256,7 +3238,7 @@ https://fontawesome.com/license -->
3256
3238
  </t>
3257
3239
  </odoo>
3258
3240
  <!--
3259
- __info__.version = '16.0.31';
3260
- __info__.date = '2024-02-02T13:44:41.274Z';
3261
- __info__.hash = 'a2e40a9';
3241
+ __info__.version = '16.0.33';
3242
+ __info__.date = '2024-02-16T14:49:33.975Z';
3243
+ __info__.hash = 'c0cefe8';
3262
3244
  -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "16.0.31",
3
+ "version": "16.0.33",
4
4
  "description": "A spreadsheet component",
5
5
  "main": "dist/o-spreadsheet.cjs.js",
6
6
  "browser": "dist/o-spreadsheet.iife.js",