jspreadsheet 11.3.3 → 11.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 +10 -1
- package/dist/index.js +545 -549
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ declare namespace jspreadsheet {
|
|
|
27
27
|
let history: History;
|
|
28
28
|
/** Clipboard controller */
|
|
29
29
|
let clipboard: ClipBoard;
|
|
30
|
+
/** Shortcuts */
|
|
31
|
+
let shortcuts: Shortcuts;
|
|
30
32
|
/** Get the worksheet instance by its name */
|
|
31
33
|
function getWorksheetInstanceByName(worksheetName: string, namespace?: string) : worksheetInstance;
|
|
32
34
|
|
|
@@ -73,7 +75,7 @@ declare namespace jspreadsheet {
|
|
|
73
75
|
function validations() : void;
|
|
74
76
|
|
|
75
77
|
/** Jspreadsheet bar extension. More info at: https://jspreadsheet.com/products */
|
|
76
|
-
function bar(options
|
|
78
|
+
function bar(options?: { suggestions?: boolean }) : void;
|
|
77
79
|
|
|
78
80
|
/** Jspreadsheet charts extension. More info at: https://jspreadsheet.com/products */
|
|
79
81
|
function charts() : void;
|
|
@@ -84,6 +86,11 @@ declare namespace jspreadsheet {
|
|
|
84
86
|
/** Get the current version */
|
|
85
87
|
function version(): object;
|
|
86
88
|
|
|
89
|
+
interface Shortcuts {
|
|
90
|
+
get: (event: object) => Function | null;
|
|
91
|
+
set: (shortcut: string, method: Function | null) => void;
|
|
92
|
+
}
|
|
93
|
+
|
|
87
94
|
interface PickerOptions {
|
|
88
95
|
// picker creates a range selection component. formula expect to be a formula starting with '='
|
|
89
96
|
type?: 'formula' | 'picker';
|
|
@@ -1350,6 +1357,8 @@ declare namespace jspreadsheet {
|
|
|
1350
1357
|
|
|
1351
1358
|
/** Get the style from a cell or all cells. getStyle() or getStyle('A1') */
|
|
1352
1359
|
getStyle: (cellName?: string|null, onlyIndexes?: boolean) => string|object;
|
|
1360
|
+
/** Find a style ID from a style string. Null when no styleId is found */
|
|
1361
|
+
getStyleId: (styleString?: string) => number|null;
|
|
1353
1362
|
/** Get value by the cell name or object. The value can be the raw or processed value. */
|
|
1354
1363
|
getValue: (cell: string, processed: boolean) => string;
|
|
1355
1364
|
/** Get value by the coordinates. The value can be the source or processed value, including not formatted proceed data. */
|