jspreadsheet 8.3.3 → 8.4.1

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
@@ -404,7 +404,7 @@ declare namespace jspreadsheet {
404
404
  /** When a new cell is created */
405
405
  oncreatecell?: (worksheet: worksheetInstance, cell: HTMLElement, x: number, y: number, value: any) => void;
406
406
  /** When a new row is created */
407
- oncreaterow?: (worksheet: worksheetInstance, j: number, HTMLElement: tr) => void;
407
+ oncreaterow?: (worksheet: worksheetInstance, j: number, tr: HTMLElement) => void;
408
408
  /**
409
409
  * Before execute a formula.
410
410
  * @param {string} expression - formula to be executed.
@@ -415,6 +415,8 @@ declare namespace jspreadsheet {
415
415
  onbeforeformula?: (worksheet: worksheetInstance, expression: string, x: number, y: number) => string | false | void;
416
416
  /** Get the information about the expressions executed from the formula chain */
417
417
  onformulachain?: (worksheet: worksheetInstance, expressions: Array<objects>) => void;
418
+ /** Customize the items available when filter editor is open. */
419
+ onopenfilter?: (worksheet: worksheetInstance, column: number, options: Array<objects>) => void | Array<objects>;
418
420
  /** Run every single table update action. Can bring performance issues if perform too much changes. */
419
421
  updateTable?: (worksheet: worksheetInstance, cell: Object, x: number, y: number, value: String) => void;
420
422
  /** Return false to cancel the contextMenu event, or return custom elements for the contextmenu. */
@@ -431,6 +433,8 @@ declare namespace jspreadsheet {
431
433
  license?: string,
432
434
  /** Worksheets */
433
435
  worksheets?: Array<Worksheet>;
436
+ /** Validations */
437
+ validations?: any;
434
438
  }
435
439
 
436
440
  interface Worksheet {
@@ -740,7 +744,7 @@ declare namespace jspreadsheet {
740
744
  /** Get all header elements */
741
745
  getHeaders: (asArray: boolean) => Array<any>;
742
746
  /** Get the height of one row by its position when height is defined. */
743
- getHeight: (row?: number) => Array | number;
747
+ getHeight: (row?: number) => Array<number> | number;
744
748
  /** Get the highlighted coordinates **/
745
749
  getHighlighted: () => Array<any>;
746
750
  /** Get json */
@@ -790,7 +794,7 @@ declare namespace jspreadsheet {
790
794
  /** Get value by the coordinates. The value can be the raw or processed value. */
791
795
  getValueFromCoords: (x: number, y: number, processed: boolean) => any;
792
796
  /** Get the width of one column by index or all column width as an array when index is null. */
793
- getWidth: (x?: index) => Array<number> | number;
797
+ getWidth: (x?: number) => Array<number> | number;
794
798
  /** Go to the row number, [col number] **/
795
799
  goto: (y: number, x?: number) => void;
796
800
  /** Hold the header container */