jspreadsheet 11.0.26 → 11.1.0

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/index.d.ts CHANGED
@@ -1250,6 +1250,8 @@ declare namespace jspreadsheet {
1250
1250
  getColumnOptions: (x: number, y?: number) => Column;
1251
1251
  /** Get the comments from one cell or multiple cells. Example: getComments('A1') */
1252
1252
  getComments: (cellName?: string) => string | object;
1253
+ /** Get the cached values from one cell or multiple cells. Example: getCache('A1') */
1254
+ getCache: (cellName?: string) => string | object;
1253
1255
  /** Get the worksheet settings */
1254
1256
  getConfig: () => Worksheet;
1255
1257
  /**
@@ -1332,8 +1334,8 @@ declare namespace jspreadsheet {
1332
1334
  getStyle: (cellName?: string|null, onlyIndexes?: boolean) => string|object;
1333
1335
  /** Get value by the cell name or object. The value can be the raw or processed value. */
1334
1336
  getValue: (cell: string, processed: boolean) => string;
1335
- /** Get value by the coordinates. The value can be the raw or processed value. */
1336
- getValueFromCoords: (x: number, y: number, processed: boolean) => any;
1337
+ /** Get value by the coordinates. The value can be the source or processed value, including not formatted proceed data. */
1338
+ getValueFromCoords: (x: number, y: number, processed?: boolean, raw?: boolean) => any;
1337
1339
  /** Get the width of one column by index or all column width as an array when index is null. */
1338
1340
  getWidth: (x?: number) => Array<number> | number;
1339
1341
  /** Go to the row number, [col number] */
@@ -1378,8 +1380,8 @@ declare namespace jspreadsheet {
1378
1380
  last: (shiftKey?: boolean, ctrlKey?: boolean) => void;
1379
1381
  /** Navigation left */
1380
1382
  left: (shiftKey?: boolean, ctrlKey?: boolean, jump?: boolean) => void;
1381
- /** Dynamic load data to the spreadsheet. This method does not trigger events or persistence and reset the spreadsheet. To persist use setData. */
1382
- loadData: (data: any[]) => void;
1383
+ /** Change the data without events */
1384
+ loadData: (data: any[], adjustDimension?: boolean) => void;
1383
1385
  /** Move one or more columns to another position */
1384
1386
  moveColumn: (col: number, to: number, quantityOfColumns?: number) => void;
1385
1387
  /** Move one or more rows to another position */
@@ -1466,6 +1468,8 @@ declare namespace jspreadsheet {
1466
1468
  setColumnData: (col: number, data: any[], force?: boolean) => void;
1467
1469
  /** Set the comments for one or multiple cells */
1468
1470
  setComments: (cellName: string | Record<string, string>, comments?: string) => void;
1471
+ /** Set the cache for one or multiple cells */
1472
+ setCache: (cellName: string | Record<string, string>, values?: string) => void;
1469
1473
  /** Change the worksheet settings */
1470
1474
  setConfig: (config: Worksheet) => void;
1471
1475
  /** Set the worksheet data */