@odoo/o-spreadsheet 18.0.7 → 18.0.9
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 +240 -92
- package/dist/o-spreadsheet.d.ts +23 -2
- package/dist/o-spreadsheet.esm.js +240 -92
- package/dist/o-spreadsheet.iife.js +240 -92
- package/dist/o-spreadsheet.iife.min.js +349 -346
- package/dist/o_spreadsheet.xml +14 -9
- package/package.json +3 -3
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -2666,6 +2666,7 @@ declare const enum CommandResult {
|
|
|
2666
2666
|
SheetIsHidden = "SheetIsHidden",
|
|
2667
2667
|
InvalidTableResize = "InvalidTableResize",
|
|
2668
2668
|
PivotIdNotFound = "PivotIdNotFound",
|
|
2669
|
+
PivotInError = "PivotInError",
|
|
2669
2670
|
EmptyName = "EmptyName",
|
|
2670
2671
|
ValueCellIsInvalidFormula = "ValueCellIsInvalidFormula",
|
|
2671
2672
|
InvalidDefinition = "InvalidDefinition",
|
|
@@ -3664,6 +3665,10 @@ declare class BordersPlugin extends CorePlugin<BordersPluginState> implements Bo
|
|
|
3664
3665
|
* Remove the borders of a zone
|
|
3665
3666
|
*/
|
|
3666
3667
|
private clearBorders;
|
|
3668
|
+
/**
|
|
3669
|
+
* Remove the borders inside of a zone
|
|
3670
|
+
*/
|
|
3671
|
+
private clearInsideBorders;
|
|
3667
3672
|
/**
|
|
3668
3673
|
* Add a border to the existing one to a cell
|
|
3669
3674
|
*/
|
|
@@ -5685,6 +5690,7 @@ declare class DateTime {
|
|
|
5685
5690
|
setMinutes(minutes: number): number;
|
|
5686
5691
|
setSeconds(seconds: number): number;
|
|
5687
5692
|
}
|
|
5693
|
+
declare function isDateTime(str: string, locale: Locale): boolean;
|
|
5688
5694
|
|
|
5689
5695
|
interface FormatWidth {
|
|
5690
5696
|
availableWidth: number;
|
|
@@ -5730,6 +5736,13 @@ declare function lazy<T>(fn: (() => T) | T): Lazy<T>;
|
|
|
5730
5736
|
*/
|
|
5731
5737
|
declare function deepEquals(o1: any, o2: any): boolean;
|
|
5732
5738
|
|
|
5739
|
+
/**
|
|
5740
|
+
* Return true if the argument is a "number string".
|
|
5741
|
+
*
|
|
5742
|
+
* Note that "" (empty string) does not count as a number string
|
|
5743
|
+
*/
|
|
5744
|
+
declare function isNumber(value: string | undefined, locale: Locale): boolean;
|
|
5745
|
+
|
|
5733
5746
|
interface ConstructorArgs {
|
|
5734
5747
|
readonly zone: Readonly<Zone | UnboundedZone>;
|
|
5735
5748
|
readonly parts: readonly RangePart[];
|
|
@@ -8576,6 +8589,7 @@ interface DndState {
|
|
|
8576
8589
|
draggedFigure?: Figure;
|
|
8577
8590
|
horizontalSnap?: Snap<HFigureAxisType>;
|
|
8578
8591
|
verticalSnap?: Snap<VFigureAxisType>;
|
|
8592
|
+
cancelDnd: (() => void) | undefined;
|
|
8579
8593
|
}
|
|
8580
8594
|
/**
|
|
8581
8595
|
* Each figure ⭐ is positioned inside a container `div` placed and sized
|
|
@@ -9559,7 +9573,8 @@ declare class TextInput extends Component<Props$j, SpreadsheetChildEnv> {
|
|
|
9559
9573
|
setup(): void;
|
|
9560
9574
|
onKeyDown(ev: KeyboardEvent): void;
|
|
9561
9575
|
save(): void;
|
|
9562
|
-
|
|
9576
|
+
onMouseDown(ev: MouseEvent): void;
|
|
9577
|
+
onMouseUp(ev: MouseEvent): void;
|
|
9563
9578
|
}
|
|
9564
9579
|
|
|
9565
9580
|
interface Props$i {
|
|
@@ -9830,6 +9845,7 @@ declare class PivotSidePanelStore extends SpreadsheetStore {
|
|
|
9830
9845
|
discardPendingUpdate(): void;
|
|
9831
9846
|
update(definitionUpdate: Partial<PivotCoreDefinition>): void;
|
|
9832
9847
|
private isDynamicPivotInViewport;
|
|
9848
|
+
private isStaticPivotInViewport;
|
|
9833
9849
|
private addDefaultDateTimeGranularity;
|
|
9834
9850
|
private getUnusedGranularities;
|
|
9835
9851
|
}
|
|
@@ -9898,7 +9914,10 @@ declare function getTrendDatasetForBarChart(config: TrendConfiguration, dataset:
|
|
|
9898
9914
|
xAxisID: string;
|
|
9899
9915
|
yAxisID: string | undefined;
|
|
9900
9916
|
label: string;
|
|
9901
|
-
data:
|
|
9917
|
+
data: {
|
|
9918
|
+
x: number;
|
|
9919
|
+
y: number;
|
|
9920
|
+
}[];
|
|
9902
9921
|
order: number;
|
|
9903
9922
|
showLine: boolean;
|
|
9904
9923
|
pointRadius: number;
|
|
@@ -12087,6 +12106,8 @@ declare const helpers: {
|
|
|
12087
12106
|
splitReference: typeof splitReference;
|
|
12088
12107
|
formatTickValue: typeof formatTickValue;
|
|
12089
12108
|
sanitizeSheetName: typeof sanitizeSheetName;
|
|
12109
|
+
isNumber: typeof isNumber;
|
|
12110
|
+
isDateTime: typeof isDateTime;
|
|
12090
12111
|
};
|
|
12091
12112
|
declare const links: {
|
|
12092
12113
|
isMarkdownLink: typeof isMarkdownLink;
|