jspreadsheet 12.0.0-beta.9 → 12.0.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
@@ -1003,8 +1003,12 @@ declare namespace jspreadsheet {
1003
1003
  onbeforedeletecolumn?: (worksheet: worksheetInstance, cols: number[]) => false | number[] | undefined;
1004
1004
  /** After a column is excluded. */
1005
1005
  ondeletecolumn?: (worksheet: worksheetInstance, cols: number[]) => void;
1006
+ /** Before a row is moved to a new position. */
1007
+ onbeforemoverow?: (worksheet: worksheetInstance, origin: number, destination: number, quantityOfRows: number) => void;
1006
1008
  /** After a row is moved to a new position. */
1007
1009
  onmoverow?: (worksheet: worksheetInstance, origin: number, destination: number, quantityOfRows: number) => void;
1010
+ /** Before a column is moved to a new position. */
1011
+ onbeforemovecolumn?: (worksheet: worksheetInstance, origin: number, destination: number, quantityOfColumns: number) => void;
1008
1012
  /** After a column is moved to a new position. */
1009
1013
  onmovecolumn?: (worksheet: worksheetInstance, origin: number, destination: number, quantityOfColumns: number) => void;
1010
1014
  /** After a height change for one or more rows. */
@@ -1034,7 +1038,7 @@ declare namespace jspreadsheet {
1034
1038
  /** When the footers are created or updated. */
1035
1039
  onchangefooter?: (worksheet: worksheetInstance, newValue: string[][], oldValue: string[][] | undefined) => void;
1036
1040
  /** When the value in a cell footer is changed. */
1037
- onchangefootervalue?: (worksheet: worksheetInstance, x: number, y: number, value: string) => void;
1041
+ onchangefootervalue?: (worksheet: worksheetInstance, records: CellRecord[]) => void;
1038
1042
  /** When the footer cell is rendered */
1039
1043
  onrenderfootercell?: (worksheet: worksheetInstance, record: object) => void;
1040
1044
  /** On change nested headers */
@@ -1152,7 +1156,7 @@ declare namespace jspreadsheet {
1152
1156
  /** Validations */
1153
1157
  validations?: Validation[];
1154
1158
  /** Plugins */
1155
- plugins?: Record<string, Plugin>;
1159
+ plugins?: Record<string, Plugin | (() => Plugin) | any>
1156
1160
  /** Global style */
1157
1161
  style?: string[];
1158
1162
  /** Snap the cells to the grid when scrolling. Default: false */
@@ -1173,6 +1177,12 @@ declare namespace jspreadsheet {
1173
1177
  fullCopy?: boolean;
1174
1178
  /** Bring data and style from the clipboard. Default: false */
1175
1179
  fullPaste?: boolean;
1180
+ /** Table overflow. Default: false */
1181
+ tableOverflow?: boolean;
1182
+ /** Define the table overflow height. Example: '300px' */
1183
+ tableHeight?: number | string;
1184
+ /** Define the table overflow width. Example: '800px' */
1185
+ tableWidth?: number | string;
1176
1186
  }
1177
1187
 
1178
1188
  interface Worksheet {
@@ -1250,12 +1260,6 @@ declare namespace jspreadsheet {
1250
1260
  paginationOptions?: Array<number>;
1251
1261
  /** Text Overflow. Default: false */
1252
1262
  textOverflow?: boolean;
1253
- /** Table overflow. Default: false */
1254
- tableOverflow?: boolean;
1255
- /** Define the table overflow height. Example: '300px' */
1256
- tableHeight?: number | string;
1257
- /** Define the table overflow width. Example: '800px' */
1258
- tableWidth?: number | string;
1259
1263
  /** Virtualization for columns. Works only when tableOverflow: true. Default: true */
1260
1264
  virtualizationX?: boolean;
1261
1265
  /** Virtualization for rows. Works only when tableOverflow: true. Default: true */
@@ -1270,9 +1274,9 @@ declare namespace jspreadsheet {
1270
1274
  freezeColumns?: number|number[];
1271
1275
  /** List of frozen row numbers. Should be a number or an array of consecutive numbers. Example: [4,5,6] */
1272
1276
  freezeRows?: number|number[];
1273
- /** Enable freeze column manual control. Default: false */
1277
+ /** Enable freeze column manual control. Default: true */
1274
1278
  freezeColumnControl?: boolean,
1275
- /** Enable freeze row manual control. Default: false */
1279
+ /** Enable freeze row manual control. Default: true */
1276
1280
  freezeRowControl?: boolean,
1277
1281
  /** Worksheet Unique Id. */
1278
1282
  worksheetId?: string;
@@ -1284,8 +1288,6 @@ declare namespace jspreadsheet {
1284
1288
  filters?: boolean | string;
1285
1289
  /** Footers */
1286
1290
  footers?: any[][];
1287
- /** Apply mask on footers. Default: true */
1288
- applyMaskOnFooters?: boolean;
1289
1291
  /** This is a internal controller for the spreadsheet locked properties. Please use editable to make it readonly. */
1290
1292
  locked?: boolean;
1291
1293
  /** Allow the selection of unlocked cells. Default: true. */