jspreadsheet 9.3.6 → 9.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/README.md CHANGED
@@ -4,14 +4,14 @@
4
4
 
5
5
  <img src='https://jspreadsheet.com/templates/v8/img/the-spreadsheet.png' align="right" width="40%">
6
6
 
7
- Jspreadsheet, a lightweight Vanilla JavaScript data grid plugin, can help you create exceptional web-based interactive tables and spreadsheets. Compatible with most widely-used spreadsheet software, such as Excel or Google Spreadsheet, it offers users an unrivalled Excel-like user experience. It also works well with prominent modern frameworks and flexibly utilizes a large collection of events, extensions and configurations to meet different application requirements. Impress your clients with a better user experience and a great dynamic interactive data management tool.
7
+ Jspreadsheet, a lightweight Vanilla JavaScript data grid plugin, can help you create exceptional web-based interactive tables and spreadsheets. Compatible with the most widely-used spreadsheet software, such as Excel or Google Spreadsheet, it offers users an unrivaled Excel-like user experience. It also works well with prominent modern frameworks and flexibly utilizes a large collection of events, extensions, and configurations to meet different application requirements. Impress your clients with a better user experience and dynamic interactive data management tool.
8
8
 
9
- Impress your clients with a better user experience and a great dynamic interactive data grid management tool.
9
+ Impress your users with a better user experience and dynamic interactive data grid management tool.
10
10
 
11
11
  * Make rich and user-friendly web interfaces and applications
12
12
  * Handle complicated data inputs with ease and convenience
13
13
  * Common shortcuts to move data from/to any other spreadsheet software
14
- * Improve software user experience
14
+ * Improve the software user experience
15
15
  * Create rich CRUDS and beautiful UI
16
16
  * Highly flexible and customizable
17
17
  * Lightweight and simple to use
@@ -22,7 +22,7 @@ Impress your clients with a better user experience and a great dynamic interacti
22
22
  <br>
23
23
 
24
24
  <h2>Technical Support</h2>
25
- For technical support or questiosn you can use the following option:
25
+ For technical support or question you can use the following option:
26
26
  https://github.com/jspreadsheet/pro/issues
27
27
 
28
28
  <br>
package/dist/index.d.ts CHANGED
@@ -356,6 +356,10 @@ declare namespace jspreadsheet {
356
356
  rotate?: number;
357
357
  /** CSS odd even background color. Default: false */
358
358
  zebra?: boolean;
359
+ /** Group a number of columns define in this property */
360
+ group?: number;
361
+ /** State of the column group. */
362
+ state?: boolean;
359
363
  }
360
364
 
361
365
  interface Border {
@@ -665,12 +669,20 @@ declare namespace jspreadsheet {
665
669
  onchangecolumnvisibility?: (worksheet: object, state: boolean, columns: []) => void
666
670
  /** When a new row group is created */
667
671
  oncreaterowgroup?: (worksheet: object, row: number, elements: number|number[]) => void
668
- /** When a row group is destroyed */
669
- ondestroyrowgroup?: (worksheet: object, row: number) => void
672
+ /** When a row group is reset */
673
+ onresetrowgroup?: (worksheet: object, row: number) => void
670
674
  /** When open a row group */
671
675
  onopenrowgroup?: (worksheet: object, row: number) => void
672
676
  /** When close a row group */
673
677
  oncloserowgroup?: (worksheet: object, row: number) => void
678
+ /** When a new column group is created */
679
+ oncreatecolumngroup?: (worksheet: object, column: number, elements: number|number[]) => void
680
+ /** When a column group is reset */
681
+ onresetcolumngroup?: (worksheet: object, column: number) => void
682
+ /** When open a column group */
683
+ onopencolumngroup?: (worksheet: object, column: number) => void
684
+ /** When close a column group */
685
+ onclosecolumngroup?: (worksheet: object, column: number) => void
674
686
  /** General event handler */
675
687
  onevent?: (worksheet: worksheetInstance, method: string, a?: any, b?: any, c?: any, d?: any, e?: any, f?: any) => any
676
688
  /** Run every single table update action. Can bring performance issues if perform too much changes. */
@@ -988,8 +1000,8 @@ declare namespace jspreadsheet {
988
1000
  getBorder: (alias: string) => object;
989
1001
  /** Get the cell element from the cellName or via its coordinates x,y */
990
1002
  getCell: (cellNameOrColumnNumber: string|number, y?: number) => HTMLElement | null;
991
- /** Get the cell element from its coordinates */
992
- getCellFromCoords: (x: number, y: number) => Array<any>;
1003
+ /** Alias to getCell */
1004
+ getCellFromCoords: (x: number, y: number) => HTMLElement | null;
993
1005
  /** Get attributes from one cell when applicable */
994
1006
  getCells: (cellName: string) => Column;
995
1007
  /** Get the column object by its position */
@@ -1297,10 +1309,10 @@ declare namespace jspreadsheet {
1297
1309
  updateCell: (x: number, y: number, value: string, force?: boolean) => void;
1298
1310
  /** Internal method: update cells in a batch */
1299
1311
  updateCells: (o: Array<Record<string, object>>) => void;
1300
- /** Update the selection based on two DOM cell selements */
1301
- updateSelection: (el1: number, el2: number, origin: boolean) => void;
1312
+ /** Update the selection based on two DOM cell elements */
1313
+ updateSelection: (el1: HTMLElement, el2?: HTMLElement, origin?: boolean) => void;
1302
1314
  /** Update the selection based on coordinates */
1303
- updateSelectionFromCoords: (x1: number, y1: number, x2: number, y2: number, origin: boolean, type?: string, color?: string) => void;
1315
+ updateSelectionFromCoords: (x1: number, y1: number, x2?: number, y2?: number, origin?: boolean, type?: string, color?: string) => void;
1304
1316
  /** Getter/setter the value by coordinates */
1305
1317
  value?: (x: number, y: number, value?: any) => void;
1306
1318
  /** Which page the row number is */
@@ -1312,7 +1324,15 @@ declare namespace jspreadsheet {
1312
1324
  /** Close a new group of rows */
1313
1325
  closeRowGroup: (row: number) => void;
1314
1326
  /** Destroy a new group of rows */
1315
- destroyRowGroup: (row: number) => void;
1327
+ resetRowGroup: (row: number) => void;
1328
+ /** Create a new group of columns */
1329
+ setColumnGroup: (column: number, elements: number|number[]) => void;
1330
+ /** Open a new group of columns */
1331
+ openColumnGroup: (column: number) => void;
1332
+ /** Close a new group of columns */
1333
+ closeColumnGroup: (column: number) => void;
1334
+ /** Reset a group of columns */
1335
+ resetColumnGroup: (column: number) => void;
1316
1336
  /** Resize the given column numbers based on their content. */
1317
1337
  autoResize: (column: number[]) => void;
1318
1338
  /** Aliases for jspreadsheet.helpers. Tools to handle spreadsheet data */