New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jspreadsheet

Package Overview
Dependencies
Maintainers
1
Versions
367
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jspreadsheet - npm Package Compare versions

Comparing version 8.0.50 to 8.0.51

82

dist/index.d.ts

@@ -103,2 +103,26 @@ /**

interface ContextmenuItem {
/** Context menu item type: line | divisor | default */
type?: 'line' | 'divisor' | 'default';
/** Context menu icon key. (Material icon key icon identification) */
icon?: string;
/** HTML id property of the item DOM element */
id?: string;
/** Item is disabled */
disabled?: boolean;
/** Onclick event for the contextmenu item */
onclick?: (instance: object, e: MouseEvent) => void;
/** A short description or instruction for the item. Normally a shortcut. Ex. CTRL + C */
shortcut?: string;
/** Show this text when the user mouse over the element */
tooltip: string;
/** Subm menu */
submenu: Array<ContextmenuItem>;
}
interface Contextmenu {
/** The contextmenu menu */
(worksheet: worksheetInstance, x: number, y: number, e: MouseEvent, items: Array<ContextmenuItem>, section: string, section_argument1?: any, section_argument2?: any) : Array<ContextmenuItem> | boolean;
}
interface Calendar {

@@ -198,5 +222,5 @@ /** Render type. Default: 'default' */

/** When the user opens the context menu. */
contextMenu?: (instance: Object, x: Number, y: Number, e: MouseEvent, items: [], section: String, a: any, b?: any) => void;
contextMenu?: (instance: Object, x: Number, y: Number, e: MouseEvent, items:Array<ContextmenuItem> , section: String, a: any, b?: any) => void;
/** When the toolbar is create and clicked. */
toolbar?: (instance: Object, items: []) => void;
toolbar?: (instance: Object, toolbar: Toolbar) => void;
}

@@ -275,3 +299,3 @@

/** After something is saved */
onsave?: (spreadsheet: spreadsheetInstance, worksheet: worksheetInstance, data: []) => void;
onsave?: (spreadsheet: spreadsheetInstance, worksheet: worksheetInstance, data: Array<any>) => void;
/** Before a column value is changed. NOTE: It is possible to overwrite the original value, by return a new value on this method. */

@@ -284,5 +308,5 @@ onbeforechange?: (worksheet: worksheetInstance, cell: HTMLElement, x: number, y: number, value: any) => boolean | any;

/** When a copy is performed in the spreadsheet. Any string returned will overwrite the user data or return null to progress with the default behavior. */
oncopy?: (worksheet: worksheetInstance, selectedCells: [], data: string) => boolean | string;
oncopy?: (worksheet: worksheetInstance, selectedCells: Array<number>, data: string) => boolean | string;
/** Before the paste action is performed. Can return parsed or filtered data. It is possible to cancel the action when the return is false. */
onbeforepaste?: (worksheet: worksheetInstance, data: [], x: number, y: number, style: [], processedData: string) => boolean | [];
onbeforepaste?: (worksheet: worksheetInstance, data: Array<any>, x: number, y: number, style: [], processedData: string) => boolean | [];
/** After a paste action is performed in the spreadsheet. */

@@ -384,7 +408,7 @@ onpaste?: (worksheet: worksheetInstance, records: Array<any>) => void;

/** Return false to cancel the contextMenu event, or return custom elements for the contextmenu. */
contextMenu?: (worksheet: worksheetInstance, x: number, y: number, e: Event, section: string, section_argument1?: any, section_argument2?: any) => [] | boolean;
contextMenu?: Contextmenu;
/** The first row is the header titles when parsing a HTML table */
parseTableFirstRowAsHeader?: boolean,
parseTableFirstRowAsHeader?: boolean;
/** Try to identify a column type when parsing a HTML table */
parseTableAutoCellType?: boolean,
parseTableAutoCellType?: boolean;
/** Global cell wrapping. Default: false */

@@ -476,3 +500,3 @@ wordWrap?: boolean;

/** Merged cells. Default: null */
mergeCells?: Record<string, []>;
mergeCells?: Record<string, any[]>;
/** Allow search on the spreadsheet */

@@ -606,3 +630,3 @@ search?: boolean;

/** Array with the borders information */
borders: [];
borders: Array<any>;
/** Close the editon for one cell */

@@ -670,3 +694,3 @@ closeEditor: (cell: HTMLElement, save: boolean) => void;

/** Get the cell element from its coordinates */
getCellFromCoords: (x: number, y: number) => [];
getCellFromCoords: (x: number, y: number) => Array<any>;
/** Get attributes from one cell when applicable */

@@ -677,3 +701,3 @@ getCells: (cellName: string) => Column;

/** Get the column data from its number */
getColumnData: (col: number, processed?: boolean) => [];
getColumnData: (col: number, processed?: boolean) => Array<any>;
/** Get the column position by its name */

@@ -694,3 +718,3 @@ getColumnIdByName: (name: string) => number;

*/
getData: (highlighted?: boolean, processed?: boolean, delimiter?: string) => [];
getData: (highlighted?: boolean, processed?: boolean, delimiter?: string) => Array<any>;
/** Get the defined name or defined names when key is null */

@@ -709,13 +733,13 @@ getDefinedNames: (key?: string) => object;

/** Get all header elements */
getHeaders: (asArray: boolean) => [];
getHeaders: (asArray: boolean) => Array<any>;
/** Get the height of one row by its position */
getHeight: (row: number) => void;
/** Get the highlighted coordinates **/
getHighlighted: () => [];
getHighlighted: () => Array<any>;
/** Get json */
getJson: (h?: boolean, processed?: boolean) => [];
getJson: (h?: boolean, processed?: boolean) => any;
/** Get the processed data cell shown to the user by the cell name */
getLabel: (cellName: string) => Object;
/** Get the processed data cell shown to the user by its coordinates */
getLabelFromCoords: (x: number, y: number) => [];
getLabelFromCoords: (x: number, y: number) => string[];
/** Get the merged cells. Cellname: A1, A2, etc */

@@ -728,3 +752,3 @@ getMerge: (cellName: string) => void;

/** Get the nested header columns */
getNestedColumns: (x: number, y: number) => [];
getNestedColumns: (x: number, y: number) => any[];
/** Get the nested headers */

@@ -745,7 +769,7 @@ getNestedHeaders: () => [];

/** Get the data from one row */
getRowData: (row: number, processed: boolean) => [];
getRowData: (row: number, processed: boolean) => any[];
/** Get the row id from its position */
getRowId: (row: number) => number;
/** Get all selected cells */
getSelected: (columnNameOnly: boolean) => [];
getSelected: (columnNameOnly: boolean) => any[];
/** Get the selected columns */

@@ -784,3 +808,3 @@ getSelectedColumns: () => [];

/** Add a new row */
insertRow: (numOfRows: number, rownumber: number, insertBefore: boolean, data: []) => void;
insertRow: (numOfRows: number, rownumber: number, insertBefore: boolean, data: any[]) => void;
/** Check if cell is attached to the DOM */

@@ -873,3 +897,3 @@ isAttached: (x: number, y: number) => boolean;

/** Selected cells */
selectedCell: [];
selectedCell: any[];
/** Internal record id sequence */

@@ -882,3 +906,3 @@ sequence: number;

/** Set the column data from its number */
setColumnData: (col: number, data: [], force?: boolean) => void;
setColumnData: (col: number, data: any[], force?: boolean) => void;
/** Set the comments for one cell */

@@ -889,7 +913,7 @@ setComments: (cellName: String, comments: String) => void;

/** Reset the table data */
setData: (data: []) => void;
setData: (data: any[]) => void;
/** Set the defined name */
setDefinedNames: (key: string, value: string) => void;
/** Set filter */
setFilter: (colnumber: number, keywords: []) => void;
setFilter: (colnumber: number, keywords: any[]) => void;
/** Set the footers */

@@ -910,5 +934,5 @@ setFooter: (data: []) => void;

/** Set the nested headers */
setNestedHeaders: (config: []) => void;
setNestedHeaders: (config: any[]) => void;
/** Set plugins for the spreadsheet */
setPlugins: (plugins: []) => void;
setPlugins: (plugins: any[]) => void;
/** Set the properties for one column */

@@ -919,3 +943,3 @@ setProperties: (column: number, settings: Object) => void;

/** Set the data from one row */
setRowData: (row: number, data: [], force: boolean) => void;
setRowData: (row: number, data: any[], force: boolean) => void;
/** Set the row id from its position */

@@ -967,3 +991,3 @@ setRowId: (row: number, newId: number) => void;

/** Verify if one col + row is merged and return or not the merge cell */
isMerged: (x: number, y: number, getParent: boolean) => boolean | [];
isMerged: (x: number, y: number, getParent: boolean) => boolean | any[];
/** Verify if the col has any merged cells */

@@ -970,0 +994,0 @@ isColMerged: (x: number) => boolean;

@@ -27,3 +27,3 @@ {

"types": "dist/index.d.ts",
"version": "8.0.50"
"version": "8.0.51"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc