jspreadsheet 8.2.3 → 8.2.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +25 -27
  2. package/dist/index.js +394 -394
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -345,7 +345,7 @@ declare namespace jspreadsheet {
345
345
  onbeforesort?: (worksheet: worksheetInstance, column: number, direction: number, newOrderValues: []) => boolean | [] | void;
346
346
  /** When a column is sorted. */
347
347
  onsort?: (worksheet: worksheetInstance, column: number, direction: number, newOrderValues: []) => void;
348
- /** When the spreadsheed gets the focus. */
348
+ /** When the spreadsheet gets the focus. */
349
349
  onfocus?: (worksheet: worksheetInstance) => void;
350
350
  /** When the spreadsheet loses the focus. */
351
351
  onblur?: (worksheet: worksheetInstance) => void;
@@ -565,7 +565,7 @@ declare namespace jspreadsheet {
565
565
  element: HTMLElement;
566
566
  /** DOM Element container for the filters */
567
567
  filters: HTMLElement;
568
- /** Toggle the fullscreen mode */
568
+ /** Toggle the full screen mode */
569
569
  fullscreen: (state: Boolean) => void;
570
570
  /** Get the toolbar object definitions */
571
571
  getToolbar: Toolbar,
@@ -703,8 +703,8 @@ declare namespace jspreadsheet {
703
703
  getColumnData: (col: number, processed?: boolean) => Array<any>;
704
704
  /** Get the column position by its name */
705
705
  getColumnIdByName: (name: string) => number;
706
- /** Get the settings for one column. Row its optional when need to get the information from one specific cell. */
707
- getColumnOptions: (x: number, y: number) => void;
706
+ /** Alias for getProperty */
707
+ getColumnOptions: (x: number, y?: number) => Column;
708
708
  /** Get the comments from one cell. Example: getComments('A1') */
709
709
  getComments: (cellName?: string) => string;
710
710
  /** Get the worksheet settings */
@@ -730,11 +730,11 @@ declare namespace jspreadsheet {
730
730
  /** Get the footer value */
731
731
  getFooterValue: (x: number, y: number) => any;
732
732
  /** Get the header title */
733
- getHeader: (columnnumber: number) => string;
733
+ getHeader: (columnNumber: number) => string;
734
734
  /** Get all header elements */
735
735
  getHeaders: (asArray: boolean) => Array<any>;
736
- /** Get the height of one row by its position */
737
- getHeight: (row: number) => void;
736
+ /** Get the height of one row by its position when height is defined. */
737
+ getHeight: (row?: number) => Array | number;
738
738
  /** Get the highlighted coordinates **/
739
739
  getHighlighted: () => Array<any>;
740
740
  /** Get json */
@@ -743,8 +743,8 @@ declare namespace jspreadsheet {
743
743
  getLabel: (cellName: string) => Object;
744
744
  /** Get the processed data cell shown to the user by its coordinates */
745
745
  getLabelFromCoords: (x: number, y: number) => string[];
746
- /** Get the merged cells. Cellname: A1, A2, etc */
747
- getMerge: (cellName: string) => void;
746
+ /** Get the merged cells. Cell name: A1, A2, etc */
747
+ getMerge: (cellName: string) => Object | Array<number>;
748
748
  /** Get one or all meta information for one cell. */
749
749
  getMeta: (cellName: string, property: string) => Object;
750
750
  /** Get the nested cells */
@@ -755,14 +755,14 @@ declare namespace jspreadsheet {
755
755
  getNestedHeaders: () => [];
756
756
  /** Get the next available number in the sequence */
757
757
  getNextSequence: () => number;
758
- /** Get the column or cell options by coordinates */
759
- getOptions: (x: number, y: number) => object;
758
+ /** Alias to getProperty */
759
+ getOptions: (x: number, y?: number) => Column;
760
760
  /** Get the primaryKey column when applicable. */
761
761
  getPrimaryKey: () => number;
762
- /** Get processed data by the coordinates of the cell */
763
- getProcessed: (x: number, y: number, extended: boolean) => void;
764
- /** Get the properties for one column or cell */
765
- getProperties: (x: number, y: number) => void;
762
+ /** Get processed data by the coordinates of the cell. Extended process a color, progressbar and rating as raw. */
763
+ getProcessed: (x: number, y: number, extended?: boolean) => any;
764
+ /** Get the properties for one column when only x is present or the cell when x and y is defined. */
765
+ getProperties: (x: number, y?: number) => Column;
766
766
  /** Get the selection in a range format */
767
767
  getRange: () => string;
768
768
  /** Get a row data or meta information by Id. */
@@ -773,20 +773,18 @@ declare namespace jspreadsheet {
773
773
  getRowId: (row: number) => number;
774
774
  /** Get all selected cells */
775
775
  getSelected: (columnNameOnly: boolean) => any[];
776
- /** Get the selected columns */
777
- getSelectedColumns: () => [];
778
- /** Get the selected rows */
779
- getSelectedRows: () => [];
776
+ /** Get the selected columns. DOMElements or Indexes */
777
+ getSelectedColumns: (indexes?: Boolean) => Array<HTMLElement> | Array<number>;
778
+ /** Get the selected rows. DOMElements or Indexes */
779
+ getSelectedRows: (indexes?: Boolean) => Array<HTMLElement> | Array<number>;
780
780
  /** Get the style from one cell. Ex. getStyle('A1') */
781
781
  getStyle: (cell: string) => Object;
782
- /** Get value by the cellname or object. The value can be the raw or processed value. */
782
+ /** Get value by the cell name or object. The value can be the raw or processed value. */
783
783
  getValue: (cell: string, processed: boolean) => String;
784
784
  /** Get value by the coordinates. The value can be the raw or processed value. */
785
- getValueFromCoords: (x: number, y: number, processed: boolean) => void;
786
- /** Get the width of one column by its position */
787
- getWidth: (x: number) => void;
788
- /** Get the editor type for one column or cell */
789
- getType: (x: number, y: number) => void;
785
+ getValueFromCoords: (x: number, y: number, processed: boolean) => any;
786
+ /** Get the width of one column by index or all column width as an array when index is null. */
787
+ getWidth: (x?: index) => Array<number> | number;
790
788
  /** Go to the row number, [col number] **/
791
789
  goto: (y: number, x?: number) => void;
792
790
  /** Hold the header container */
@@ -839,7 +837,7 @@ declare namespace jspreadsheet {
839
837
  page: (pagenumber: number) => void;
840
838
  /** Current page number */
841
839
  pagenumber: number;
842
- /** Pagination DOM containr */
840
+ /** Pagination DOM container */
843
841
  pagination: Object;
844
842
  /** Spreadsheet object */
845
843
  parent: spreadsheetInstance;
@@ -855,7 +853,7 @@ declare namespace jspreadsheet {
855
853
  refreshBorders: (border?: string) => void;
856
854
  /** Refresh footers */
857
855
  refreshFooter: () => void;
858
- /** Remove the merged cells by the cellname */
856
+ /** Remove the merged cells by the cell name */
859
857
  removeMerge: (cellName: String) => void;
860
858
  /** Reset the borders by name border name */
861
859
  resetBorders: (border: String, resetPosition: boolean) => void;