@odoo/o-spreadsheet 18.3.0-alpha.1 → 18.3.0-alpha.2
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.
- package/dist/o-spreadsheet.cjs.js +26 -8
- package/dist/o-spreadsheet.d.ts +5 -0
- package/dist/o-spreadsheet.esm.js +26 -8
- package/dist/o-spreadsheet.iife.js +26 -8
- package/dist/o-spreadsheet.iife.min.js +189 -189
- package/dist/o_spreadsheet.xml +3 -3
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 18.3.0-alpha.
|
|
6
|
-
* @date 2025-02-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.3.0-alpha.2
|
|
6
|
+
* @date 2025-02-27T06:31:04.174Z
|
|
7
|
+
* @hash 17e5bfa
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -38465,6 +38465,9 @@ class GenericChartConfigPanel extends owl.Component {
|
|
|
38465
38465
|
this.state.datasetDispatchResult = this.props.updateChart(this.props.figureId, {
|
|
38466
38466
|
dataSets: this.dataSets,
|
|
38467
38467
|
});
|
|
38468
|
+
if (this.state.datasetDispatchResult.isSuccessful) {
|
|
38469
|
+
this.dataSets = this.env.model.getters.getChartDefinition(this.props.figureId).dataSets;
|
|
38470
|
+
}
|
|
38468
38471
|
}
|
|
38469
38472
|
getDataSeriesRanges() {
|
|
38470
38473
|
return this.dataSets;
|
|
@@ -39881,8 +39884,16 @@ class ContentEditableHelper {
|
|
|
39881
39884
|
}
|
|
39882
39885
|
let startNode = this.findChildAtCharacterIndex(start);
|
|
39883
39886
|
let endNode = this.findChildAtCharacterIndex(end);
|
|
39884
|
-
|
|
39885
|
-
|
|
39887
|
+
// setEnd (setStart) will result in a collapsed range if the end point is before the start point
|
|
39888
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Range/setEnd
|
|
39889
|
+
if (start <= end) {
|
|
39890
|
+
range.setStart(startNode.node, startNode.offset);
|
|
39891
|
+
range.setEnd(endNode.node, endNode.offset);
|
|
39892
|
+
}
|
|
39893
|
+
else {
|
|
39894
|
+
range.setStart(endNode.node, endNode.offset);
|
|
39895
|
+
range.setEnd(startNode.node, startNode.offset);
|
|
39896
|
+
}
|
|
39886
39897
|
}
|
|
39887
39898
|
}
|
|
39888
39899
|
/**
|
|
@@ -44796,6 +44807,10 @@ class TextInput extends owl.Component {
|
|
|
44796
44807
|
type: String,
|
|
44797
44808
|
optional: true,
|
|
44798
44809
|
},
|
|
44810
|
+
autofocus: {
|
|
44811
|
+
type: Boolean,
|
|
44812
|
+
optional: true,
|
|
44813
|
+
},
|
|
44799
44814
|
};
|
|
44800
44815
|
inputRef = owl.useRef("input");
|
|
44801
44816
|
setup() {
|
|
@@ -44804,6 +44819,9 @@ class TextInput extends owl.Component {
|
|
|
44804
44819
|
this.save();
|
|
44805
44820
|
}
|
|
44806
44821
|
}, { capture: true });
|
|
44822
|
+
if (this.props.autofocus) {
|
|
44823
|
+
useAutofocus({ refName: "input" });
|
|
44824
|
+
}
|
|
44807
44825
|
}
|
|
44808
44826
|
onKeyDown(ev) {
|
|
44809
44827
|
switch (ev.key) {
|
|
@@ -75675,6 +75693,6 @@ exports.tokenColors = tokenColors;
|
|
|
75675
75693
|
exports.tokenize = tokenize;
|
|
75676
75694
|
|
|
75677
75695
|
|
|
75678
|
-
__info__.version = "18.3.0-alpha.
|
|
75679
|
-
__info__.date = "2025-02-
|
|
75680
|
-
__info__.hash = "
|
|
75696
|
+
__info__.version = "18.3.0-alpha.2";
|
|
75697
|
+
__info__.date = "2025-02-27T06:31:04.174Z";
|
|
75698
|
+
__info__.hash = "17e5bfa";
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -9961,6 +9961,7 @@ interface Props$l {
|
|
|
9961
9961
|
class?: string;
|
|
9962
9962
|
id?: string;
|
|
9963
9963
|
placeholder?: string;
|
|
9964
|
+
autofocus?: boolean;
|
|
9964
9965
|
}
|
|
9965
9966
|
declare class TextInput extends Component<Props$l, SpreadsheetChildEnv> {
|
|
9966
9967
|
static template: string;
|
|
@@ -9979,6 +9980,10 @@ declare class TextInput extends Component<Props$l, SpreadsheetChildEnv> {
|
|
|
9979
9980
|
type: StringConstructor;
|
|
9980
9981
|
optional: boolean;
|
|
9981
9982
|
};
|
|
9983
|
+
autofocus: {
|
|
9984
|
+
type: BooleanConstructor;
|
|
9985
|
+
optional: boolean;
|
|
9986
|
+
};
|
|
9982
9987
|
};
|
|
9983
9988
|
private inputRef;
|
|
9984
9989
|
setup(): void;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 18.3.0-alpha.
|
|
6
|
-
* @date 2025-02-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.3.0-alpha.2
|
|
6
|
+
* @date 2025-02-27T06:31:04.174Z
|
|
7
|
+
* @hash 17e5bfa
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, App, blockDom, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
|
|
@@ -38463,6 +38463,9 @@ class GenericChartConfigPanel extends Component {
|
|
|
38463
38463
|
this.state.datasetDispatchResult = this.props.updateChart(this.props.figureId, {
|
|
38464
38464
|
dataSets: this.dataSets,
|
|
38465
38465
|
});
|
|
38466
|
+
if (this.state.datasetDispatchResult.isSuccessful) {
|
|
38467
|
+
this.dataSets = this.env.model.getters.getChartDefinition(this.props.figureId).dataSets;
|
|
38468
|
+
}
|
|
38466
38469
|
}
|
|
38467
38470
|
getDataSeriesRanges() {
|
|
38468
38471
|
return this.dataSets;
|
|
@@ -39879,8 +39882,16 @@ class ContentEditableHelper {
|
|
|
39879
39882
|
}
|
|
39880
39883
|
let startNode = this.findChildAtCharacterIndex(start);
|
|
39881
39884
|
let endNode = this.findChildAtCharacterIndex(end);
|
|
39882
|
-
|
|
39883
|
-
|
|
39885
|
+
// setEnd (setStart) will result in a collapsed range if the end point is before the start point
|
|
39886
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Range/setEnd
|
|
39887
|
+
if (start <= end) {
|
|
39888
|
+
range.setStart(startNode.node, startNode.offset);
|
|
39889
|
+
range.setEnd(endNode.node, endNode.offset);
|
|
39890
|
+
}
|
|
39891
|
+
else {
|
|
39892
|
+
range.setStart(endNode.node, endNode.offset);
|
|
39893
|
+
range.setEnd(startNode.node, startNode.offset);
|
|
39894
|
+
}
|
|
39884
39895
|
}
|
|
39885
39896
|
}
|
|
39886
39897
|
/**
|
|
@@ -44794,6 +44805,10 @@ class TextInput extends Component {
|
|
|
44794
44805
|
type: String,
|
|
44795
44806
|
optional: true,
|
|
44796
44807
|
},
|
|
44808
|
+
autofocus: {
|
|
44809
|
+
type: Boolean,
|
|
44810
|
+
optional: true,
|
|
44811
|
+
},
|
|
44797
44812
|
};
|
|
44798
44813
|
inputRef = useRef("input");
|
|
44799
44814
|
setup() {
|
|
@@ -44802,6 +44817,9 @@ class TextInput extends Component {
|
|
|
44802
44817
|
this.save();
|
|
44803
44818
|
}
|
|
44804
44819
|
}, { capture: true });
|
|
44820
|
+
if (this.props.autofocus) {
|
|
44821
|
+
useAutofocus({ refName: "input" });
|
|
44822
|
+
}
|
|
44805
44823
|
}
|
|
44806
44824
|
onKeyDown(ev) {
|
|
44807
44825
|
switch (ev.key) {
|
|
@@ -75628,6 +75646,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
|
|
|
75628
75646
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, CoreViewPlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, chartHelpers, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
75629
75647
|
|
|
75630
75648
|
|
|
75631
|
-
__info__.version = "18.3.0-alpha.
|
|
75632
|
-
__info__.date = "2025-02-
|
|
75633
|
-
__info__.hash = "
|
|
75649
|
+
__info__.version = "18.3.0-alpha.2";
|
|
75650
|
+
__info__.date = "2025-02-27T06:31:04.174Z";
|
|
75651
|
+
__info__.hash = "17e5bfa";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 18.3.0-alpha.
|
|
6
|
-
* @date 2025-02-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.3.0-alpha.2
|
|
6
|
+
* @date 2025-02-27T06:31:04.174Z
|
|
7
|
+
* @hash 17e5bfa
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -38464,6 +38464,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
38464
38464
|
this.state.datasetDispatchResult = this.props.updateChart(this.props.figureId, {
|
|
38465
38465
|
dataSets: this.dataSets,
|
|
38466
38466
|
});
|
|
38467
|
+
if (this.state.datasetDispatchResult.isSuccessful) {
|
|
38468
|
+
this.dataSets = this.env.model.getters.getChartDefinition(this.props.figureId).dataSets;
|
|
38469
|
+
}
|
|
38467
38470
|
}
|
|
38468
38471
|
getDataSeriesRanges() {
|
|
38469
38472
|
return this.dataSets;
|
|
@@ -39880,8 +39883,16 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
39880
39883
|
}
|
|
39881
39884
|
let startNode = this.findChildAtCharacterIndex(start);
|
|
39882
39885
|
let endNode = this.findChildAtCharacterIndex(end);
|
|
39883
|
-
|
|
39884
|
-
|
|
39886
|
+
// setEnd (setStart) will result in a collapsed range if the end point is before the start point
|
|
39887
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Range/setEnd
|
|
39888
|
+
if (start <= end) {
|
|
39889
|
+
range.setStart(startNode.node, startNode.offset);
|
|
39890
|
+
range.setEnd(endNode.node, endNode.offset);
|
|
39891
|
+
}
|
|
39892
|
+
else {
|
|
39893
|
+
range.setStart(endNode.node, endNode.offset);
|
|
39894
|
+
range.setEnd(startNode.node, startNode.offset);
|
|
39895
|
+
}
|
|
39885
39896
|
}
|
|
39886
39897
|
}
|
|
39887
39898
|
/**
|
|
@@ -44795,6 +44806,10 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
44795
44806
|
type: String,
|
|
44796
44807
|
optional: true,
|
|
44797
44808
|
},
|
|
44809
|
+
autofocus: {
|
|
44810
|
+
type: Boolean,
|
|
44811
|
+
optional: true,
|
|
44812
|
+
},
|
|
44798
44813
|
};
|
|
44799
44814
|
inputRef = owl.useRef("input");
|
|
44800
44815
|
setup() {
|
|
@@ -44803,6 +44818,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
44803
44818
|
this.save();
|
|
44804
44819
|
}
|
|
44805
44820
|
}, { capture: true });
|
|
44821
|
+
if (this.props.autofocus) {
|
|
44822
|
+
useAutofocus({ refName: "input" });
|
|
44823
|
+
}
|
|
44806
44824
|
}
|
|
44807
44825
|
onKeyDown(ev) {
|
|
44808
44826
|
switch (ev.key) {
|
|
@@ -75674,9 +75692,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
75674
75692
|
exports.tokenize = tokenize;
|
|
75675
75693
|
|
|
75676
75694
|
|
|
75677
|
-
__info__.version = "18.3.0-alpha.
|
|
75678
|
-
__info__.date = "2025-02-
|
|
75679
|
-
__info__.hash = "
|
|
75695
|
+
__info__.version = "18.3.0-alpha.2";
|
|
75696
|
+
__info__.date = "2025-02-27T06:31:04.174Z";
|
|
75697
|
+
__info__.hash = "17e5bfa";
|
|
75680
75698
|
|
|
75681
75699
|
|
|
75682
75700
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|