@odoo/o-spreadsheet 18.2.12 → 18.2.14
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 +354 -243
- package/dist/o-spreadsheet.d.ts +46 -45
- package/dist/o-spreadsheet.esm.js +354 -243
- package/dist/o-spreadsheet.iife.js +354 -243
- package/dist/o-spreadsheet.iife.min.js +385 -385
- package/dist/o_spreadsheet.xml +6 -5
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1275,6 +1275,51 @@ declare class ColorGenerator {
|
|
|
1275
1275
|
next(): string;
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
+
interface SearchOptions {
|
|
1279
|
+
matchCase: boolean;
|
|
1280
|
+
exactMatch: boolean;
|
|
1281
|
+
searchFormulas: boolean;
|
|
1282
|
+
searchScope: "allSheets" | "activeSheet" | "specificRange";
|
|
1283
|
+
specificRange?: Range;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Deep copy arrays, plain objects and primitive values.
|
|
1288
|
+
* Throws an error for other types such as class instances.
|
|
1289
|
+
* Sparse arrays remain sparse.
|
|
1290
|
+
*/
|
|
1291
|
+
declare function deepCopy<T>(obj: T): T;
|
|
1292
|
+
declare function unquote(string: string, quoteChar?: "'" | '"'): string;
|
|
1293
|
+
/** Replace the excel-excluded characters of a sheetName */
|
|
1294
|
+
declare function sanitizeSheetName(sheetName: string, replacementChar?: string): string;
|
|
1295
|
+
declare function isMarkdownLink(str: string): boolean;
|
|
1296
|
+
/**
|
|
1297
|
+
* Build a markdown link from a label and an url
|
|
1298
|
+
*/
|
|
1299
|
+
declare function markdownLink(label: string, url: string): string;
|
|
1300
|
+
declare function parseMarkdownLink(str: string): {
|
|
1301
|
+
url: string;
|
|
1302
|
+
label: string;
|
|
1303
|
+
};
|
|
1304
|
+
/**
|
|
1305
|
+
* This helper function can be used as a type guard when filtering arrays.
|
|
1306
|
+
* const foo: number[] = [1, 2, undefined, 4].filter(isDefined)
|
|
1307
|
+
*/
|
|
1308
|
+
declare function isDefined<T>(argument: T | undefined): argument is T;
|
|
1309
|
+
/**
|
|
1310
|
+
* Lazy value computed by the provided function.
|
|
1311
|
+
*/
|
|
1312
|
+
declare function lazy<T>(fn: (() => T) | T): Lazy<T>;
|
|
1313
|
+
/**
|
|
1314
|
+
* Compares two objects.
|
|
1315
|
+
*/
|
|
1316
|
+
declare function deepEquals(o1: any, o2: any): boolean;
|
|
1317
|
+
declare function getUniqueText(text: string, texts: string[], options?: {
|
|
1318
|
+
compute?: (text: string, increment: number) => string;
|
|
1319
|
+
start?: number;
|
|
1320
|
+
computeFirstOne?: boolean;
|
|
1321
|
+
}): string;
|
|
1322
|
+
|
|
1278
1323
|
/**
|
|
1279
1324
|
* Convert a (col) number to the corresponding letter.
|
|
1280
1325
|
*
|
|
@@ -1351,51 +1396,6 @@ declare function formatValue(value: CellValue, { format, locale, formatWidth }:
|
|
|
1351
1396
|
}): FormattedValue;
|
|
1352
1397
|
declare function createCurrencyFormat(currency: Partial<Currency>): Format;
|
|
1353
1398
|
|
|
1354
|
-
interface SearchOptions {
|
|
1355
|
-
matchCase: boolean;
|
|
1356
|
-
exactMatch: boolean;
|
|
1357
|
-
searchFormulas: boolean;
|
|
1358
|
-
searchScope: "allSheets" | "activeSheet" | "specificRange";
|
|
1359
|
-
specificRange?: Range;
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
/**
|
|
1363
|
-
* Deep copy arrays, plain objects and primitive values.
|
|
1364
|
-
* Throws an error for other types such as class instances.
|
|
1365
|
-
* Sparse arrays remain sparse.
|
|
1366
|
-
*/
|
|
1367
|
-
declare function deepCopy<T>(obj: T): T;
|
|
1368
|
-
declare function unquote(string: string, quoteChar?: "'" | '"'): string;
|
|
1369
|
-
/** Replace the excel-excluded characters of a sheetName */
|
|
1370
|
-
declare function sanitizeSheetName(sheetName: string, replacementChar?: string): string;
|
|
1371
|
-
declare function isMarkdownLink(str: string): boolean;
|
|
1372
|
-
/**
|
|
1373
|
-
* Build a markdown link from a label and an url
|
|
1374
|
-
*/
|
|
1375
|
-
declare function markdownLink(label: string, url: string): string;
|
|
1376
|
-
declare function parseMarkdownLink(str: string): {
|
|
1377
|
-
url: string;
|
|
1378
|
-
label: string;
|
|
1379
|
-
};
|
|
1380
|
-
/**
|
|
1381
|
-
* This helper function can be used as a type guard when filtering arrays.
|
|
1382
|
-
* const foo: number[] = [1, 2, undefined, 4].filter(isDefined)
|
|
1383
|
-
*/
|
|
1384
|
-
declare function isDefined<T>(argument: T | undefined): argument is T;
|
|
1385
|
-
/**
|
|
1386
|
-
* Lazy value computed by the provided function.
|
|
1387
|
-
*/
|
|
1388
|
-
declare function lazy<T>(fn: (() => T) | T): Lazy<T>;
|
|
1389
|
-
/**
|
|
1390
|
-
* Compares two objects.
|
|
1391
|
-
*/
|
|
1392
|
-
declare function deepEquals(o1: any, o2: any): boolean;
|
|
1393
|
-
declare function getUniqueText(text: string, texts: string[], options?: {
|
|
1394
|
-
compute?: (text: string, increment: number) => string;
|
|
1395
|
-
start?: number;
|
|
1396
|
-
computeFirstOne?: boolean;
|
|
1397
|
-
}): string;
|
|
1398
|
-
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Return true if the argument is a "number string".
|
|
1401
1401
|
*
|
|
@@ -10249,6 +10249,7 @@ declare class PivotMeasureEditor extends Component<Props$i> {
|
|
|
10249
10249
|
toggleMeasureVisibility(): void;
|
|
10250
10250
|
openShowValuesAs(): void;
|
|
10251
10251
|
getColoredSymbolToken(token: Token): Color | undefined;
|
|
10252
|
+
get isCalculatedMeasureInvalid(): boolean;
|
|
10252
10253
|
}
|
|
10253
10254
|
|
|
10254
10255
|
interface Props$h {
|