jspreadsheet 8.2.4 → 8.3.4
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 +11 -5
- package/dist/index.js +429 -427
- package/dist/jspreadsheet.css +1 -1
- package/package.json +1 -1
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,
|
|
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,8 @@ 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;
|
|
412
418
|
/** Run every single table update action. Can bring performance issues if perform too much changes. */
|
|
413
419
|
updateTable?: (worksheet: worksheetInstance, cell: Object, x: number, y: number, value: String) => void;
|
|
414
420
|
/** Return false to cancel the contextMenu event, or return custom elements for the contextmenu. */
|
|
@@ -734,7 +740,7 @@ declare namespace jspreadsheet {
|
|
|
734
740
|
/** Get all header elements */
|
|
735
741
|
getHeaders: (asArray: boolean) => Array<any>;
|
|
736
742
|
/** Get the height of one row by its position when height is defined. */
|
|
737
|
-
getHeight: (row?: number) => Array | number;
|
|
743
|
+
getHeight: (row?: number) => Array<number> | number;
|
|
738
744
|
/** Get the highlighted coordinates **/
|
|
739
745
|
getHighlighted: () => Array<any>;
|
|
740
746
|
/** Get json */
|
|
@@ -784,7 +790,7 @@ declare namespace jspreadsheet {
|
|
|
784
790
|
/** Get value by the coordinates. The value can be the raw or processed value. */
|
|
785
791
|
getValueFromCoords: (x: number, y: number, processed: boolean) => any;
|
|
786
792
|
/** Get the width of one column by index or all column width as an array when index is null. */
|
|
787
|
-
getWidth: (x?:
|
|
793
|
+
getWidth: (x?: number) => Array<number> | number;
|
|
788
794
|
/** Go to the row number, [col number] **/
|
|
789
795
|
goto: (y: number, x?: number) => void;
|
|
790
796
|
/** Hold the header container */
|