[IMP] spreadsheet: update o_spreadsheet to latest version
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/1b4fac5a [FIX] edition: Handle too long formulas https://github.com/odoo/o-spreadsheet/commit/544cfe68 [FIX] composer: Allow to paste text in the composer https://github.com/odoo/o-spreadsheet/commit/f04c7589 [FIX] functions: dichotomicSearch handle 2d array https://github.com/odoo/o-spreadsheet/commit/3660bf27 [REF] components: enforce component autonomy during keyboard event handling https://github.com/odoo/o-spreadsheet/commit/39bb9d88 [IMP] keyboard shortcuts: Insert link https://github.com/odoo/o-spreadsheet/commit/a40186aa [FIX] grid: capture IME altered inputs https://github.com/odoo/o-spreadsheet/commit/a884c78a [FIX] sheet: prevent creation of sheet with the same id https://github.com/odoo/o-spreadsheet/commit/aff05bdd [FIX] figure: prevent duplication of figure id https://github.com/odoo/o-spreadsheet/commit/5c18b6e1 [REF] ranges: make Range immutable object https://github.com/odoo/o-spreadsheet/commit/de5612e3 [FIX] config: Allow to build outside of git repository https://github.com/odoo/o-spreadsheet/commit/b100135c [FIX] grid: remove old component https://github.com/odoo/o-spreadsheet/commit/45f7f714 [FIX] selection: update default selection anchor on dispatched commands https://github.com/odoo/o-spreadsheet/commit/b41a1610 [FIX] selection: don't reset selection on Autofill https://github.com/odoo/o-spreadsheet/commit/16a98748 [FIX] selection: Properly add merge when adding them to the selection https://github.com/odoo/o-spreadsheet/commit/231bbbca [FIX] model: do not replay core commands in ui plugins closes odoo/odoo#105837 Related: odoo/enterprise#34029 Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
This commit is contained in:
committed by
Pierre Rousseau
parent
3d58e967ef
commit
09847abea0
File diff suppressed because it is too large
Load Diff
@@ -150,18 +150,16 @@
|
||||
</t>
|
||||
|
||||
<t t-name="o-spreadsheet-TextValueProvider" owl="1">
|
||||
<div
|
||||
t-att-class="{'o-autocomplete-dropdown':state.values.length}"
|
||||
t-att-style="state.values.length > 0 ? props.borderStyle : null">
|
||||
<t t-foreach="state.values" t-as="v" t-key="v.text">
|
||||
<div t-att-class="{'o-autocomplete-dropdown':props.values.length}">
|
||||
<t t-foreach="props.values" t-as="v" t-key="v.text">
|
||||
<div
|
||||
t-att-class="{'o-autocomplete-value-focus': state.selectedIndex === v_index}"
|
||||
t-on-click.stop.prevent="() => this.fillValue(v_index)">
|
||||
t-att-class="{'o-autocomplete-value-focus': props.selectedIndex === v_index}"
|
||||
t-on-click.stop.prevent="() => this.props.onValueSelected(v.text)">
|
||||
<div class="o-autocomplete-value" t-esc="v.text"/>
|
||||
<div
|
||||
class="o-autocomplete-description"
|
||||
t-esc="v.description"
|
||||
t-if="state.selectedIndex === v_index"
|
||||
t-if="props.selectedIndex === v_index"
|
||||
/>
|
||||
</div>
|
||||
</t>
|
||||
@@ -183,6 +181,7 @@
|
||||
t-on-keyup="onKeyup"
|
||||
t-on-click.stop="onClick"
|
||||
t-on-blur="onBlur"
|
||||
t-on-paste.stop=""
|
||||
/>
|
||||
|
||||
<div
|
||||
@@ -191,18 +190,15 @@
|
||||
t-att-style="assistantStyle">
|
||||
<TextValueProvider
|
||||
t-if="autoCompleteState.showProvider"
|
||||
exposeAPI="(api) => this.autocompleteAPI = api"
|
||||
search="autoCompleteState.search"
|
||||
provider="autoCompleteState.provider"
|
||||
onCompleted="(text) => this.onCompleted(text)"
|
||||
borderStyle="borderStyle"
|
||||
values="autoCompleteState.values"
|
||||
selectedIndex="autoCompleteState.selectedIndex"
|
||||
onValueSelected.bind="this.autoComplete"
|
||||
/>
|
||||
<FunctionDescriptionProvider
|
||||
t-if="functionDescriptionState.showDescription"
|
||||
functionName="functionDescriptionState.functionName"
|
||||
functionDescription="functionDescriptionState.functionDescription"
|
||||
argToFocus="functionDescriptionState.argToFocus"
|
||||
borderStyle="borderStyle"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -211,7 +207,6 @@
|
||||
<t t-name="o-spreadsheet-FunctionDescriptionProvider" owl="1">
|
||||
<div
|
||||
class="o-formula-assistant-container"
|
||||
t-att-style="props.borderStyle"
|
||||
t-att-class="{
|
||||
'o-formula-assistant-event-none': assistantState.allowCellSelectionBehind,
|
||||
'o-formula-assistant-event-auto': !assistantState.allowCellSelectionBehind
|
||||
@@ -366,7 +361,7 @@
|
||||
t-att-class="{active: isSelected, 'o-dragging': dnd.isActive}"
|
||||
t-ref="figure"
|
||||
tabindex="0"
|
||||
t-on-keydown.stop="(ev) => this.onKeyDown(ev)"
|
||||
t-on-keydown="(ev) => this.onKeyDown(ev)"
|
||||
t-on-keyup.stop="">
|
||||
<t
|
||||
t-component="figureRegistry.get(this.props.figure.tag).Component"
|
||||
@@ -506,7 +501,7 @@
|
||||
type="text"
|
||||
t-model="state.textFilter"
|
||||
placeholder="Search..."
|
||||
t-on-keydown="(ev) => this.onKeyDown(ev)"
|
||||
t-on-keydown="onKeyDown"
|
||||
/>
|
||||
<i class="o-search-icon position-absolute">
|
||||
<t t-call="o-spreadsheet-Icon.SEARCH"/>
|
||||
@@ -592,6 +587,14 @@
|
||||
focus="props.focusComposer"
|
||||
/>
|
||||
</t>
|
||||
<t else="1">
|
||||
<input
|
||||
class="position-absolute"
|
||||
style="z-index:-1000;"
|
||||
t-on-input="onInput"
|
||||
t-ref="hiddenInput"
|
||||
/>
|
||||
</t>
|
||||
<canvas t-ref="canvas"/>
|
||||
<t
|
||||
t-foreach="env.model.getters.getClientsToDisplay()"
|
||||
@@ -1398,7 +1401,7 @@
|
||||
<div
|
||||
class="o-link-editor"
|
||||
t-on-click.stop="() => this.menu.isOpen=false"
|
||||
t-on-keydown.stop="onKeyDown"
|
||||
t-on-keydown="onKeyDown"
|
||||
t-ref="linkEditor">
|
||||
<div class="o-section">
|
||||
<div class="o-section-title">Text</div>
|
||||
@@ -1517,6 +1520,7 @@
|
||||
spellcheck="false"
|
||||
t-on-change="(ev) => this.onInputChanged(range.id, ev)"
|
||||
t-on-focus="() => this.focus(range.id)"
|
||||
t-on-keydown="onKeydown"
|
||||
t-att-value="range.xc"
|
||||
t-att-style="getColor(range)"
|
||||
t-att-class="{
|
||||
@@ -1524,6 +1528,7 @@
|
||||
'o-required': props.required,
|
||||
'o-optional': !props.required,
|
||||
'o-invalid': isInvalid || !range.isValidRange,
|
||||
'text-decoration-underline': range.isFocused and state.mode === 'select-range'
|
||||
}"
|
||||
/>
|
||||
<button
|
||||
|
||||
@@ -25,6 +25,7 @@ coreTypes.add("UPDATE_ODOO_PIVOT_DOMAIN");
|
||||
|
||||
invalidateEvaluationCommands.add("UPDATE_ODOO_PIVOT_DOMAIN");
|
||||
invalidateEvaluationCommands.add("REMOVE_PIVOT");
|
||||
invalidateEvaluationCommands.add("INSERT_PIVOT");
|
||||
|
||||
cellMenuRegistry.add("pivot_see_records", {
|
||||
name: _lt("See records"),
|
||||
|
||||
Reference in New Issue
Block a user