@odoo/o-spreadsheet 18.1.20 → 18.1.22

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.
@@ -1275,6 +1275,46 @@ 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
+
1278
1318
  /**
1279
1319
  * Convert a (col) number to the corresponding letter.
1280
1320
  *
@@ -1351,46 +1391,6 @@ declare function formatValue(value: CellValue, { format, locale, formatWidth }:
1351
1391
  }): FormattedValue;
1352
1392
  declare function createCurrencyFormat(currency: Partial<Currency>): Format;
1353
1393
 
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
-
1394
1394
  /**
1395
1395
  * Return true if the argument is a "number string".
1396
1396
  *
@@ -10096,6 +10096,7 @@ declare class PivotMeasureEditor extends Component<Props$i> {
10096
10096
  toggleMeasureVisibility(): void;
10097
10097
  openShowValuesAs(): void;
10098
10098
  getColoredSymbolToken(token: Token): Color | undefined;
10099
+ get isCalculatedMeasureInvalid(): boolean;
10099
10100
  }
10100
10101
 
10101
10102
  interface Props$h {