jspreadsheet 11.0.15 → 11.0.17

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
@@ -443,7 +443,7 @@ declare namespace jspreadsheet {
443
443
 
444
444
  interface DefinedNames {
445
445
  index: string;
446
- value: string;
446
+ value?: string;
447
447
  }
448
448
 
449
449
  /**
@@ -645,19 +645,19 @@ declare namespace jspreadsheet {
645
645
 
646
646
  interface Editor {
647
647
  /** createCell When a new cell is created. */
648
- createCell: (cell: HTMLElement, value: any, x: number, y: number, instance: object, options: object) => any;
648
+ createCell?: (cell: HTMLElement, value: any, x: number, y: number, instance: object, options: object) => any;
649
649
  /** updateCell When the cell value changes. */
650
- updateCell: (cell: HTMLElement, value: any, x: number, y: number, instance: object, options: object) => any;
650
+ updateCell?: (cell: HTMLElement, value: any, x: number, y: number, instance: object, options: object) => any;
651
651
  /** openEditor When the user starts the edition of a cell. */
652
- openEditor: (cell: HTMLElement, value: any, x: number, y: number, instance: object, options: object) => any;
652
+ openEditor?: (cell: HTMLElement, value: any, x: number, y: number, instance: object, options: object) => any;
653
653
  /** closeEditor When the user finalizes the edition of a cell. */
654
- closeEditor: (cell: HTMLElement, confirmChanges: boolean, x: number, y: number, instance: object, options: object) => any;
654
+ closeEditor?: (cell: HTMLElement, confirmChanges: boolean, x: number, y: number, instance: object, options: object) => any;
655
655
  /** When a cell is destroyed. */
656
- destroyCell: (cell: HTMLElement, x: number, y: number, instance: object) => void;
656
+ destroyCell?: (cell: HTMLElement, x: number, y: number, instance: object) => void;
657
657
  /** Apply updates when the properties of a cell or column is changed. */
658
- updateProperty: (x: number, y: number, instance: object, options: object) => void;
658
+ updateProperty?: (x: number, y: number, instance: object, options: object) => void;
659
659
  /** Transform the raw data into processed data. It will shown a text instead of an id in the type dropdown for example. */
660
- get: (options: object, value: any) => string
660
+ get?: (options: object, value: any) => string
661
661
  }
662
662
 
663
663
  interface Plugin {
@@ -1460,8 +1460,10 @@ declare namespace jspreadsheet {
1460
1460
  setConfig: (config: Worksheet) => void;
1461
1461
  /** Set the worksheet data */
1462
1462
  setData: (data: any[]) => void;
1463
- /** Set the defined name */
1463
+ /** Create or update names */
1464
1464
  setDefinedNames: (names: DefinedNames[]) => void;
1465
+ /** Reset names by indexes */
1466
+ resetDefinedNames: (names: DefinedNames[]) => void;
1465
1467
  /** Set filter */
1466
1468
  setFilter: (colNumber: number, keywords: any[]) => void;
1467
1469
  /** Set the footers */