jspreadsheet 11.0.0-beta.2 → 11.0.0-beta.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 +12 -6
- package/dist/index.js +502 -529
- package/dist/jspreadsheet.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare function jspreadsheet(element: HTMLElement, options: jspreadsheet.Spread
|
|
|
7
7
|
|
|
8
8
|
declare namespace jspreadsheet {
|
|
9
9
|
|
|
10
|
+
/** ClientID */
|
|
11
|
+
let clientId: string;
|
|
10
12
|
/** License string. Use setLicense to define the license */
|
|
11
13
|
let license: string;
|
|
12
14
|
/** Default row height for a table */
|
|
@@ -38,7 +40,7 @@ declare namespace jspreadsheet {
|
|
|
38
40
|
function setDictionary(dictionary: object) : void;
|
|
39
41
|
|
|
40
42
|
/** Set the license */
|
|
41
|
-
function setLicense(license: string) : void;
|
|
43
|
+
function setLicense(license: string|object) : void;
|
|
42
44
|
|
|
43
45
|
/** Set extensions to the JSS spreadsheet or null to disable all extensions. Example { formula, parser, render } */
|
|
44
46
|
function setExtensions(extensions: object | null) : void;
|
|
@@ -46,6 +48,9 @@ declare namespace jspreadsheet {
|
|
|
46
48
|
/** Destroy the spreadsheet. Full destroy will clear all JSS controllers and is not possible to re-create a new spreadsheet if true is used, until refresh the page. */
|
|
47
49
|
function destroy(element: HTMLElement | spreadsheetInstance, fullDestroy?: boolean) : void;
|
|
48
50
|
|
|
51
|
+
/** Destroy all the spreadsheets in all namespaces **/
|
|
52
|
+
function destroyAll() : void;
|
|
53
|
+
|
|
49
54
|
/** Jspreadsheet parser extension. More info at: https://jspreadsheet.com/products */
|
|
50
55
|
function parser(options: any) : void;
|
|
51
56
|
|
|
@@ -894,6 +899,8 @@ declare namespace jspreadsheet {
|
|
|
894
899
|
onclosecolumngroup?: (worksheet: object, column: number) => void
|
|
895
900
|
/** When a media object is added, removed or updated. */
|
|
896
901
|
onchangemedia?: (worksheet: object, newValue: object[], oldValue: object, affectedRecords: object[]) => void
|
|
902
|
+
/** Before loading an image */
|
|
903
|
+
onbeforeloadimage?: (worksheet: object, img: HTMLElement, options: object) => undefined | string | boolean;
|
|
897
904
|
/** Update references. When a table structure changes */
|
|
898
905
|
onchangereferences?: (worksheet: object, affected: object, deletedTokens: string[], deletedColumns: string[], deletedRows: string[]) => void;
|
|
899
906
|
/** General event handler */
|
|
@@ -1126,8 +1133,8 @@ declare namespace jspreadsheet {
|
|
|
1126
1133
|
dispatch: (...args: string[]) => void;
|
|
1127
1134
|
/** Get the spreadsheet configuration */
|
|
1128
1135
|
getConfig: () => Spreadsheet;
|
|
1129
|
-
/** Get the worksheet index by instance
|
|
1130
|
-
getWorksheet: (worksheetIdent: worksheetInstance) => number;
|
|
1136
|
+
/** Get the worksheet index by instance or worksheetId */
|
|
1137
|
+
getWorksheet: (worksheetIdent: worksheetInstance|string) => number;
|
|
1131
1138
|
/** Get the worksheet name */
|
|
1132
1139
|
getWorksheetName: (position: number) => string;
|
|
1133
1140
|
/** Open a worksheet */
|
|
@@ -1618,9 +1625,8 @@ declare namespace jspreadsheet {
|
|
|
1618
1625
|
hideHeaders: () => void;
|
|
1619
1626
|
/** Refresh the search on the viewport */
|
|
1620
1627
|
updateSearch: () => void;
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1628
|
+
/** Get the worksheet index by instance or worksheetId */
|
|
1629
|
+
getWorksheet: (worksheetIdent: worksheetInstance|string) => number;
|
|
1624
1630
|
/** Open a worksheet */
|
|
1625
1631
|
openWorksheet: (position?: number) => void;
|
|
1626
1632
|
/** Create a new worksheet */
|