jspreadsheet 11.1.7 → 11.1.8
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 +15 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare namespace jspreadsheet {
|
|
|
43
43
|
function setLicense(license: string|object) : void;
|
|
44
44
|
|
|
45
45
|
/** Set extensions to the JSS spreadsheet or null to disable all extensions. Example { formula, parser, render } */
|
|
46
|
-
function setExtensions(extensions: object | null) : void;
|
|
46
|
+
function setExtensions(extensions: object | null, options?: object) : void;
|
|
47
47
|
|
|
48
48
|
/** Destroy the spreadsheet. Full destroy will clear all JSS controllers and is not possible to re-create a new spreadsheet if true is used, until refresh the page. */
|
|
49
49
|
function destroy(element: HTMLElement | spreadsheetInstance, fullDestroy?: boolean) : void;
|
|
@@ -501,6 +501,8 @@ declare namespace jspreadsheet {
|
|
|
501
501
|
url?: string;
|
|
502
502
|
/** The items to show in the dropdown or autocomplete. */
|
|
503
503
|
source?: Array<DropdownItem> | Array<string> | Array<number>;
|
|
504
|
+
/** It defines the options of a dropdown from a cell range. Example: Sheet1!A1:A4 */
|
|
505
|
+
dynamicSource?: string;
|
|
504
506
|
/** Whether the column is an autocomplete field. */
|
|
505
507
|
autocomplete?: boolean;
|
|
506
508
|
/** Whether the dropdown or autocomplete can accept multiple options. */
|
|
@@ -582,6 +584,8 @@ declare namespace jspreadsheet {
|
|
|
582
584
|
readOnly?: boolean;
|
|
583
585
|
/** The rotation angle for the text value, between -90 and 90. Default: null. */
|
|
584
586
|
rotate?: number;
|
|
587
|
+
/** URL */
|
|
588
|
+
url?: string;
|
|
585
589
|
}
|
|
586
590
|
|
|
587
591
|
interface Border {
|
|
@@ -663,7 +667,7 @@ declare namespace jspreadsheet {
|
|
|
663
667
|
/** Apply updates when the properties of a cell or column is changed. */
|
|
664
668
|
updateProperty?: (x: number, y: number, instance: worksheetInstance, options: Column | Cell) => void;
|
|
665
669
|
/** Transform the raw data into processed data. It will show a text instead of an id in the type dropdown for example. */
|
|
666
|
-
get?: (options: object, value: any) => string
|
|
670
|
+
get?: (options: object, value: any, extended: boolean, instance: worksheetInstance) => string
|
|
667
671
|
}
|
|
668
672
|
|
|
669
673
|
interface Plugin {
|
|
@@ -1201,7 +1205,7 @@ declare namespace jspreadsheet {
|
|
|
1201
1205
|
/** Cut */
|
|
1202
1206
|
cut: () => void;
|
|
1203
1207
|
/** Alias to getData */
|
|
1204
|
-
data: (highlighted?: boolean, processed?: boolean, delimiter?: string, asJson?: boolean) => Array<Array<any>> | Array<Record<string, any>> | string | null;
|
|
1208
|
+
data: (highlighted?: boolean, processed?: boolean, delimiter?: string, asJson?: boolean, includeFilteredRows?: boolean) => Array<Array<any>> | Array<Record<string, any>> | string | null;
|
|
1205
1209
|
/** Internal use control type to defined JSON (1) or ARRAY (0). */
|
|
1206
1210
|
dataType: number,
|
|
1207
1211
|
/** Delete one more columns */
|
|
@@ -1263,7 +1267,7 @@ declare namespace jspreadsheet {
|
|
|
1263
1267
|
* @param {boolean} get the data as a JSON object.
|
|
1264
1268
|
* @return {array|string|null} array or string
|
|
1265
1269
|
*/
|
|
1266
|
-
getData: (highlighted?: boolean, processed?: boolean, delimiter?: string, asJson?: boolean) => Array<Array<any>> | Array<Record<string, any>> | string | null;
|
|
1270
|
+
getData: (highlighted?: boolean, processed?: boolean, delimiter?: string, asJson?: boolean, includeFilteredRows?: boolean) => Array<Array<any>> | Array<Record<string, any>> | string | null;
|
|
1267
1271
|
/** Get the worksheet data from a range */
|
|
1268
1272
|
getDataFromRange: (range: string, processed?: boolean) => Array<Array<any>> | Array<Record<string, any>> | string | null;
|
|
1269
1273
|
/** Get the defined name or all defined names when key is null */
|
|
@@ -1359,15 +1363,20 @@ declare namespace jspreadsheet {
|
|
|
1359
1363
|
* @param {number|object[]} column - number of columns or array with column information
|
|
1360
1364
|
* @param {number?} columnNumber - reference when the first argument is a number
|
|
1361
1365
|
* @param {boolean?} insertBefore - insertBefore when the first argument is a number
|
|
1366
|
+
* @param {object?} properties - column properties
|
|
1367
|
+
* @param {any?} data
|
|
1368
|
+
* @param {boolean?} createSelection
|
|
1362
1369
|
*/
|
|
1363
|
-
insertColumn: (column?: number | newColumn[], columnNumber?: number, insertBefore?: boolean) => void;
|
|
1370
|
+
insertColumn: (column?: number | newColumn[], columnNumber?: number, insertBefore?: boolean, properties?: Column[], data?: any, createSelection?: boolean) => void;
|
|
1364
1371
|
/**
|
|
1365
1372
|
* Add new row(s)
|
|
1366
1373
|
* @param {number|object[]} row - number of rows or array with row information
|
|
1367
1374
|
* @param {number?} rowNumber - reference when the first argument is a number
|
|
1368
1375
|
* @param {boolean?} insertBefore - insertBefore when the first argument is a number
|
|
1376
|
+
* @param {any?} data
|
|
1377
|
+
* @param {boolean?} createSelection
|
|
1369
1378
|
*/
|
|
1370
|
-
insertRow: (row?: number | newRow[], rowNumber?: number, insertBefore?: boolean) => void;
|
|
1379
|
+
insertRow: (row?: number | newRow[], rowNumber?: number, insertBefore?: boolean, data?: any, createSelection?: boolean) => void;
|
|
1371
1380
|
/** Check if cell is attached to the DOM */
|
|
1372
1381
|
isAttached: (x: number, y: number) => boolean;
|
|
1373
1382
|
/** The worksheet is editable */
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ if (! jSuites && typeof(require) === 'function') {
|
|
|
17
17
|
var jSuites = require('jsuites');
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
function a0_0x188a(a,qa){const fa=a0_0x3f9e();return a0_0x188a=function(ja,ib){return fa[ja-426]},a0_0x188a(a,qa)}
|
|
20
|
+
'use strict';function a0_0x188a(a,qa){const fa=a0_0x3f9e();return a0_0x188a=function(ja,ib){return fa[ja-426]},a0_0x188a(a,qa)}
|
|
21
21
|
function a0_0x3f9e(){const a=["sequence","onbeforedeletecolumn","text","setCheckRadio","display","loopProtection","mobile-controls","lastChild","colspan","component","allowRenameColumn","cols","error","line","getBorder","onbeforeselection","defineProperty","true","getColumns","columnSortingOnDblClick","mask",'<i class="material-icons">',"endContainer","Reference loop detected","show","content_paste","border_bottom","jss_helper_col","executeFormula","tabs","jss_tooltip",'<div style="height: ',"applyProperties",
|
|
22
22
|
"marginLeft","onbeforefilter","insertColumn","input","#DB6B10","getFromCoords","properties","onbeforechange","The paste area must have a compatible size","onbeforechangepage","atob","getCache","setCells","onchangereferences","getCoordsFromCellName","types","Jspreadsheet Pro\r\n","destroy","setNestedHeaders","selectAll","Bring to front","data","removeAttribute","748454BOttxv","metaKey","applyReset","removeMerge","nextSibling","picker","createCell","getWorksheetActive","JSS: You cannot overwrite a spreadsheet. Destroy the exiting one first.",
|
|
23
23
|
"Add notes","resetBorders","jss_percent","false","jss_dragging","setFreezeColumns","searchContainer","filters","#ERROR","tag","an element of the list: ","state","numOfItems","updateCell","onconfirm","royalblue","getMerge","data-value","Element is not a table","deltaX","domain","size","Order ascending","version","font-weight:bold;","jspreadsheet","getAttributes","includes","getZoom","sort","You cannot delete the last column","freeze-row","#NULL!","border-bottom: ","26065sMGXNK","footer","-6px","getAllReferences",
|
package/package.json
CHANGED