[IMP] spreadsheet: update o_spreadsheet to latest version

### Contains the following commits:

https://github.com/odoo/o-spreadsheet/commit/dcff0890 [IMP] Error: Lookup module's functions  now return NA Errors
https://github.com/odoo/o-spreadsheet/commit/e154817f [FIX] collaborative: Ensure full payload of `UPDATE_CHART`
https://github.com/odoo/o-spreadsheet/commit/1829d0f0 [FIX] functions, find & replace: escape regex special characters
https://github.com/odoo/o-spreadsheet/commit/273c38ca [FIX] figure: Change component structure to leverage navigator native behaviour
https://github.com/odoo/o-spreadsheet/commit/bf97a1e4 [IMP] registries: always populate chart/figure registries
https://github.com/odoo/o-spreadsheet/commit/1178bbec [IMP] components: prevent mouse event defaults on drag-and-drop

closes odoo/odoo#109866

Related: odoo/enterprise#35778
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
This commit is contained in:
Rémi Rahir
2023-01-16 09:33:02 +01:00
parent cd765440b3
commit f7a3657a0b
2 changed files with 6567 additions and 6480 deletions
File diff suppressed because it is too large Load Diff
@@ -324,7 +324,7 @@
</t>
<t t-name="o-spreadsheet-ScorecardChart" owl="1">
<div class="o-scorecard" t-att-style="chartStyle">
<div class="o-scorecard w-100 h-100" t-att-style="chartStyle" t-ref="chart">
<t t-set="textStyles" t-value="getTextStyles()"/>
<div t-if="title" class="o-title-text" t-esc="title" t-att-style="textStyles.titleStyle"/>
<div class="o-scorecard-content" t-att-style="chartContentStyle">
@@ -356,73 +356,81 @@
</t>
<t t-name="o-spreadsheet-FigureComponent" owl="1">
<div class="o-figure-wrapper" t-att-style="getContainerStyle()">
<div class="o-figure-overflow-wrapper">
<div
class="o-figure"
t-on-mousedown.stop="(ev) => this.onMouseDown(ev)"
t-att-style="getFigureStyle()"
t-att-class="{active: isSelected, 'o-dragging': dnd.isActive}"
t-ref="figure"
tabindex="0"
t-on-keydown="(ev) => this.onKeyDown(ev)"
t-on-keyup.stop="">
<t
t-component="figureRegistry.get(props.figure.tag).Component"
t-key="props.figure.id"
onFigureDeleted="props.onFigureDeleted"
figure="displayedFigure"
/>
<div
class="position-absolute pe-none"
t-att-class="{'overflow-hidden': !dnd.isActive}"
t-att-style="containerStyle">
<div
class="o-figure-viewport-inverse w-0 h-0 overflow-visible position-absolute"
t-att-style="inverseViewportPositionStyle">
<div class="o-figure-wrapper pe-auto" t-att-style="wrapperStyle">
<div
class="o-figure w-100 h-100"
t-on-mousedown.stop="(ev) => this.onMouseDown(ev)"
t-att-class="{'o-dragging': dnd.isActive}"
t-ref="figure"
t-att-style="figureStyle"
tabindex="0"
t-on-keydown="(ev) => this.onKeyDown(ev)"
t-on-keyup.stop="">
<t
t-component="figureRegistry.get(props.figure.tag).Component"
t-key="props.figure.id"
onFigureDeleted="props.onFigureDeleted"
figure="displayedFigure"
/>
</div>
<t t-if="isSelected">
<div class="w-100 h-100 o-active-figure-border position-absolute pe-none"/>
<div
class="o-fig-resizer o-top"
t-att-style="this.getResizerPosition('top')"
t-on-mousedown="(ev) => this.resize(0,-1, ev)"
/>
<div
class="o-fig-resizer o-topRight"
t-att-style="this.getResizerPosition('top right')"
t-on-mousedown="(ev) => this.resize(1,-1, ev)"
/>
<div
class="o-fig-resizer o-right"
t-att-style="this.getResizerPosition('right')"
t-on-mousedown="(ev) => this.resize(1,0, ev)"
/>
<div
class="o-fig-resizer o-bottomRight"
t-att-style="this.getResizerPosition('bottom right')"
t-on-mousedown="(ev) => this.resize(1,1, ev)"
/>
<div
class="o-fig-resizer o-bottom"
t-att-style="this.getResizerPosition('bottom')"
t-on-mousedown="(ev) => this.resize(0,1, ev)"
/>
<div
class="o-fig-resizer o-bottomLeft"
t-att-style="this.getResizerPosition('bottom left')"
t-on-mousedown="(ev) => this.resize(-1,1, ev)"
/>
<div
class="o-fig-resizer o-left"
t-att-style="this.getResizerPosition('left')"
t-on-mousedown="(ev) => this.resize(-1,0, ev)"
/>
<div
class="o-fig-resizer o-topLeft"
t-att-style="this.getResizerPosition('top left')"
t-on-mousedown="(ev) => this.resize(-1,-1, ev)"
/>
</t>
</div>
</div>
<t t-if="isSelected">
<div
class="o-anchor o-top"
t-att-style="this.getAnchorPosition('top')"
t-on-mousedown.stop="(ev) => this.resize(0,-1, ev)"
/>
<div
class="o-anchor o-topRight"
t-att-style="this.getAnchorPosition('top right')"
t-on-mousedown.stop="(ev) => this.resize(1,-1, ev)"
/>
<div
class="o-anchor o-right"
t-att-style="this.getAnchorPosition('right')"
t-on-mousedown.stop="(ev) => this.resize(1,0, ev)"
/>
<div
class="o-anchor o-bottomRight"
t-att-style="this.getAnchorPosition('bottom right', info)"
t-on-mousedown.stop="(ev) => this.resize(1,1, ev)"
/>
<div
class="o-anchor o-bottom"
t-att-style="this.getAnchorPosition('bottom')"
t-on-mousedown.stop="(ev) => this.resize(0,1, ev)"
/>
<div
class="o-anchor o-bottomLeft"
t-att-style="this.getAnchorPosition('bottom left')"
t-on-mousedown.stop="(ev) => this.resize(-1,1, ev)"
/>
<div
class="o-anchor o-left"
t-att-style="this.getAnchorPosition('left')"
t-on-mousedown.stop="(ev) => this.resize(-1,0, ev)"
/>
<div
class="o-anchor o-topLeft"
t-att-style="this.getAnchorPosition('top left')"
t-on-mousedown.stop="(ev) => this.resize(-1,-1, ev)"
/>
</t>
</div>
</t>
<t t-name="o-spreadsheet-ChartFigure" owl="1">
<div
class="o-chart-container"
class="o-chart-container w-100 h-100"
t-ref="chartContainer"
t-on-contextmenu.prevent.stop="(ev) => !env.isDashboard() and this.onContextMenu(ev)">
<div class="o-figure-menu" t-if="!env.isDashboard()">
@@ -664,7 +672,7 @@
<t t-name="o-spreadsheet-GridOverlay" owl="1">
<div
t-ref="gridOverlay"
class="o-grid-overlay"
class="o-grid-overlay overflow-hidden"
t-att-style="props.gridOverlayDimensions"
t-on-mousedown="onMouseDown"
t-on-dblclick.self="onDoubleClick"