jspreadsheet 11.0.0-beta.9 → 11.0.2
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 +17 -2
- package/dist/index.js +536 -539
- package/dist/jspreadsheet.css +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* https://jspreadsheet.com/docs
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
declare function jspreadsheet(element: HTMLElement, options: jspreadsheet.Spreadsheet) : Array<jspreadsheet.worksheetInstance>;
|
|
6
|
+
declare function jspreadsheet(element: HTMLElement|HTMLDivElement|null, options: jspreadsheet.Spreadsheet) : Array<jspreadsheet.worksheetInstance>;
|
|
7
7
|
|
|
8
8
|
declare namespace jspreadsheet {
|
|
9
9
|
|
|
@@ -935,6 +935,8 @@ declare namespace jspreadsheet {
|
|
|
935
935
|
columnNamesInFormulas?: boolean;
|
|
936
936
|
/** Namespace help with cross-calculations conflict names */
|
|
937
937
|
namespace?: string;
|
|
938
|
+
/** International configuration */
|
|
939
|
+
international?: International;
|
|
938
940
|
}
|
|
939
941
|
|
|
940
942
|
interface Worksheet {
|
|
@@ -1480,8 +1482,12 @@ declare namespace jspreadsheet {
|
|
|
1480
1482
|
setNestedHeaders: (config: any[]) => void;
|
|
1481
1483
|
/** Deprecated. Alias for parent.setPlugins */
|
|
1482
1484
|
setPlugins: (plugins: Record<string, Function>) => void;
|
|
1483
|
-
/**
|
|
1485
|
+
/** Alias for setProperty */
|
|
1484
1486
|
setProperties: (columnNumber: number, rowNumberOrColumnSettings: number|Column, cellSettings?: Cell) => void;
|
|
1487
|
+
/** Add a new configuration settings for a column or cell */
|
|
1488
|
+
setProperty: (columnNumber: number, rowNumberOrColumnSettings: number|Column, cellSettings?: Cell) => void;
|
|
1489
|
+
/** Add new properties to the existing column or cell settings */
|
|
1490
|
+
updateProperty: (columnNumber: number, rowNumberOrColumnSettings: number|Column, cellSettings?: Cell) => void;
|
|
1485
1491
|
/** Set or reset the cell as readonly */
|
|
1486
1492
|
setReadOnly: (cellName: string|HTMLElement, state: boolean) => void;
|
|
1487
1493
|
/** Set the data from one row */
|
|
@@ -1668,6 +1674,15 @@ declare namespace jspreadsheet {
|
|
|
1668
1674
|
/** Get the current zoom value. Default 1 */
|
|
1669
1675
|
getZoom: () => number;
|
|
1670
1676
|
}
|
|
1677
|
+
|
|
1678
|
+
interface International {
|
|
1679
|
+
/** User locale **/
|
|
1680
|
+
locale: string;
|
|
1681
|
+
/** General number format */
|
|
1682
|
+
NumberFormat?: Intl.NumberFormat;
|
|
1683
|
+
/** Not yet implemented */
|
|
1684
|
+
DateTimeFormat?: Intl.DateTimeFormat;
|
|
1685
|
+
}
|
|
1671
1686
|
}
|
|
1672
1687
|
|
|
1673
1688
|
export default jspreadsheet;
|