jspreadsheet 8.3.1 → 8.4.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
@@ -168,6 +168,8 @@ declare namespace jspreadsheet {
168
168
  source?: Array<DropdownItem> | Array<string> | Array<number>;
169
169
  /** Define the dropdown or autocomplete to accept multiple options. */
170
170
  multiple?: boolean;
171
+ /** Define the dropdown separator for multiple dropdown options. Default ; */
172
+ delimiter?: string;
171
173
  /** Define the input mask for the data cell. @see https://jsuites.net/v4/javascript-mask */
172
174
  mask?: string;
173
175
  /** Decimal representation character. */
@@ -186,12 +188,14 @@ declare namespace jspreadsheet {
186
188
  options?: Calendar | Dropdown;
187
189
  /** The column is read-only */
188
190
  readOnly?: boolean;
189
- /** Wrap the text in the column */
190
- wordWrap?: boolean;
191
191
  /** Process the raw data when copy or download. Default: true */
192
192
  process?: boolean;
193
193
  /** Try to cast numbers from a cell text. Default: true */
194
194
  autoCasting?: boolean;
195
+ /** Shift formula when copy and pasting. This option is only valid for custom column type. Default: false */
196
+ shiftFormula?: boolean;
197
+ /** Wrap the text in the column */
198
+ wrap?: boolean;
195
199
  }
196
200
 
197
201
  interface Row {
@@ -400,7 +404,7 @@ declare namespace jspreadsheet {
400
404
  /** When a new cell is created */
401
405
  oncreatecell?: (worksheet: worksheetInstance, cell: HTMLElement, x: number, y: number, value: any) => void;
402
406
  /** When a new row is created */
403
- oncreaterow?: (worksheet: worksheetInstance, j: number, HTMLElement: tr) => void;
407
+ oncreaterow?: (worksheet: worksheetInstance, j: number, tr: HTMLElement) => void;
404
408
  /**
405
409
  * Before execute a formula.
406
410
  * @param {string} expression - formula to be executed.
@@ -409,6 +413,10 @@ declare namespace jspreadsheet {
409
413
  * @return {any} Return false to cancel parsing. Return new parsed formula. Return void to continue with original formula
410
414
  */
411
415
  onbeforeformula?: (worksheet: worksheetInstance, expression: string, x: number, y: number) => string | false | void;
416
+ /** Get the information about the expressions executed from the formula chain */
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>;
412
420
  /** Run every single table update action. Can bring performance issues if perform too much changes. */
413
421
  updateTable?: (worksheet: worksheetInstance, cell: Object, x: number, y: number, value: String) => void;
414
422
  /** Return false to cancel the contextMenu event, or return custom elements for the contextmenu. */
@@ -734,7 +742,7 @@ declare namespace jspreadsheet {
734
742
  /** Get all header elements */
735
743
  getHeaders: (asArray: boolean) => Array<any>;
736
744
  /** Get the height of one row by its position when height is defined. */
737
- getHeight: (row?: number) => Array | number;
745
+ getHeight: (row?: number) => Array<number> | number;
738
746
  /** Get the highlighted coordinates **/
739
747
  getHighlighted: () => Array<any>;
740
748
  /** Get json */
@@ -784,7 +792,7 @@ declare namespace jspreadsheet {
784
792
  /** Get value by the coordinates. The value can be the raw or processed value. */
785
793
  getValueFromCoords: (x: number, y: number, processed: boolean) => any;
786
794
  /** Get the width of one column by index or all column width as an array when index is null. */
787
- getWidth: (x?: index) => Array<number> | number;
795
+ getWidth: (x?: number) => Array<number> | number;
788
796
  /** Go to the row number, [col number] **/
789
797
  goto: (y: number, x?: number) => void;
790
798
  /** Hold the header container */