jspreadsheet 8.6.6 → 9.0.3

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
@@ -1,7 +1,6 @@
1
1
  /**
2
- * Official Type definitions for Jspreadsheet Pro v8
3
- * https://jspreadsheet.com
4
- * Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
2
+ * Official Type definitions for Jspreadsheet Pro v9
3
+ * https://jspreadsheet.com/v9
5
4
  */
6
5
 
7
6
  declare function jspreadsheet(element: HTMLElement, options: jspreadsheet.Spreadsheet) : Array<jspreadsheet.worksheetInstance>;
@@ -166,6 +165,8 @@ declare namespace jspreadsheet {
166
165
  url?: string;
167
166
  /** Define the items in the dropdown and autocomplete column type. */
168
167
  source?: Array<DropdownItem> | Array<string> | Array<number>;
168
+ /** Autocomplete: boolean */
169
+ autocomplete?: boolean;
169
170
  /** Define the dropdown or autocomplete to accept multiple options. */
170
171
  multiple?: boolean;
171
172
  /** Define the dropdown separator for multiple dropdown options. Default ; */
@@ -422,9 +423,13 @@ declare namespace jspreadsheet {
422
423
  */
423
424
  onbeforeformula?: (worksheet: worksheetInstance, expression: string, x: number, y: number) => string | false | void;
424
425
  /** Get the information about the expressions executed from the formula chain */
425
- onformulachain?: (worksheet: worksheetInstance, expressions: Array<objects>) => void;
426
+ onformulachain?: (worksheet: worksheetInstance, expressions: Array<object>) => void;
426
427
  /** Customize the items available when filter editor is open. */
427
- onopenfilter?: (worksheet: worksheetInstance, column: number, options: Array<objects>) => void | Array<objects>;
428
+ onopenfilter?: (worksheet: worksheetInstance, column: number, options: Array<object>) => void | Array<object>;
429
+ /** When the viewport dimension is updated. */
430
+ onresize?: (worksheet: worksheetInstance, w: number, h: number) => void
431
+ /** When the references are changed. Sorting, Add/Delete/Move Rows and Columns. */
432
+ onchangereferences?: (worksheet: worksheetInstance, affectedTokens: [], deletedTokens: []) => void
428
433
  /** Run every single table update action. Can bring performance issues if perform too much changes. */
429
434
  updateTable?: (worksheet: worksheetInstance, cell: Object, x: number, y: number, value: String) => void;
430
435
  /** Return false to cancel the contextMenu event, or return custom elements for the contextmenu. */
@@ -566,6 +571,8 @@ declare namespace jspreadsheet {
566
571
  selectUnLockedCells?: boolean;
567
572
  /** Allow the selection of locked cells. Default: true. */
568
573
  selectLockedCells?: boolean;
574
+ /** Enable resizable worksheet in on or both direction (horizontal | vertical | both). Default: none */
575
+ resize?: 'horizontal' | 'vertical' | 'both' | 'none' | undefined;
569
576
  }
570
577
 
571
578
  interface spreadsheetInstance {