@ecan-bi/sheet 0.0.9 → 0.0.13
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.es.js +98538 -64
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4149 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +4 -0
- package/package.json +29 -6
- package/types/luckysheet/config.d.ts +78 -0
- package/types/luckysheet/controllers/cellDatePickerCtrl.d.ts +4 -0
- package/types/luckysheet/controllers/cellFormat.d.ts +1 -0
- package/types/luckysheet/controllers/conditionformat.d.ts +47 -0
- package/types/luckysheet/controllers/constant.d.ts +142 -0
- package/types/luckysheet/controllers/controlHistory.d.ts +5 -0
- package/types/luckysheet/controllers/dropCell.d.ts +95 -0
- package/types/luckysheet/controllers/expendPlugins.d.ts +4 -0
- package/types/luckysheet/controllers/filter.d.ts +5 -0
- package/types/luckysheet/controllers/formulaBar.d.ts +1 -0
- package/types/luckysheet/controllers/handler.d.ts +1 -0
- package/types/luckysheet/controllers/ifFormulaGenerator.d.ts +12 -0
- package/types/luckysheet/controllers/imageUpdateCtrl.d.ts +1 -0
- package/types/luckysheet/controllers/inlineString.d.ts +25 -0
- package/types/luckysheet/controllers/insertFormula.d.ts +9 -0
- package/types/luckysheet/controllers/keyboard.d.ts +1 -0
- package/types/luckysheet/controllers/listener.d.ts +1 -0
- package/types/luckysheet/controllers/locationCell.d.ts +10 -0
- package/types/luckysheet/controllers/luckysheetConfigsetting.d.ts +36 -0
- package/types/luckysheet/controllers/matrixOperation.d.ts +1 -0
- package/types/luckysheet/controllers/mobile.d.ts +1 -0
- package/types/luckysheet/controllers/orderBy.d.ts +1 -0
- package/types/luckysheet/controllers/postil.d.ts +27 -0
- package/types/luckysheet/controllers/print.d.ts +2 -0
- package/types/luckysheet/controllers/protection.d.ts +10 -0
- package/types/luckysheet/controllers/resize.d.ts +10 -0
- package/types/luckysheet/controllers/rowColumnOperation.d.ts +9 -0
- package/types/luckysheet/controllers/searchReplace.d.ts +10 -0
- package/types/luckysheet/controllers/select.d.ts +7 -0
- package/types/luckysheet/controllers/selection.d.ts +14 -0
- package/types/luckysheet/controllers/sheetBar.d.ts +1 -0
- package/types/luckysheet/controllers/sheetMove.d.ts +5 -0
- package/types/luckysheet/controllers/sheetSearch.d.ts +1 -0
- package/types/luckysheet/controllers/splitColumn.d.ts +10 -0
- package/types/luckysheet/controllers/toolbar.d.ts +42 -0
- package/types/luckysheet/controllers/updateCell.d.ts +10 -0
- package/types/luckysheet/controllers/zoom.d.ts +4 -0
- package/types/luckysheet/core.d.ts +41 -0
- package/types/luckysheet/expendPlugins/chart/plugin.d.ts +4 -0
- package/types/luckysheet/expendPlugins/print/plugin.d.ts +1 -0
- package/types/luckysheet/function/func.d.ts +10 -0
- package/types/luckysheet/function/functionImplementation.d.ts +451 -0
- package/types/luckysheet/function/functionlist.d.ts +2 -0
- package/types/luckysheet/function/matrix_methods.d.ts +1 -0
- package/types/luckysheet/global/analysis.d.ts +8 -0
- package/types/luckysheet/global/api.d.ts +1193 -0
- package/types/luckysheet/global/array.d.ts +8 -0
- package/types/luckysheet/global/border.d.ts +2 -0
- package/types/luckysheet/global/browser.d.ts +15 -0
- package/types/luckysheet/global/cleargridelement.d.ts +1 -0
- package/types/luckysheet/global/count.d.ts +1 -0
- package/types/luckysheet/global/createdom.d.ts +1 -0
- package/types/luckysheet/global/createsheet.d.ts +1 -0
- package/types/luckysheet/global/cursorPos.d.ts +7 -0
- package/types/luckysheet/global/datecontroll.d.ts +7 -0
- package/types/luckysheet/global/draw.d.ts +3 -0
- package/types/luckysheet/global/dynamicArray.d.ts +4 -0
- package/types/luckysheet/global/editor.d.ts +11 -0
- package/types/luckysheet/global/extend.d.ts +13 -0
- package/types/luckysheet/global/format.d.ts +5 -0
- package/types/luckysheet/global/func_methods.d.ts +25 -0
- package/types/luckysheet/global/getRowlen.d.ts +16 -0
- package/types/luckysheet/global/getdata.d.ts +13 -0
- package/types/luckysheet/global/json.d.ts +5 -0
- package/types/luckysheet/global/loading.d.ts +2 -0
- package/types/luckysheet/global/location.d.ts +6 -0
- package/types/luckysheet/global/method.d.ts +10 -0
- package/types/luckysheet/global/refresh.d.ts +8 -0
- package/types/luckysheet/global/rhchInit.d.ts +2 -0
- package/types/luckysheet/global/scroll.d.ts +1 -0
- package/types/luckysheet/global/setdata.d.ts +2 -0
- package/types/luckysheet/global/sort.d.ts +4 -0
- package/types/luckysheet/global/tooltip.d.ts +12 -0
- package/types/luckysheet/global/validate.d.ts +23 -0
- package/types/luckysheet/index.d.ts +2 -0
- package/types/luckysheet/locale/en.d.ts +1216 -0
- package/types/luckysheet/locale/es.d.ts +1194 -0
- package/types/luckysheet/locale/locale.d.ts +12 -0
- package/types/luckysheet/locale/zh.d.ts +1235 -0
- package/types/luckysheet/locale/zh_tw.d.ts +1249 -0
- package/types/luckysheet/methods/get.d.ts +11 -0
- package/types/luckysheet/methods/set.d.ts +6 -0
- package/types/luckysheet/plugins/js/jquery-mousewheel.d.ts +8 -0
- package/types/luckysheet/plugins/js/spectrum.d.ts +1 -0
- package/types/luckysheet/store/index.d.ts +145 -0
- package/types/luckysheet/utils/chartUtil.d.ts +20 -0
- package/types/luckysheet/utils/polyfill.d.ts +5 -0
- package/types/luckysheet/utils/util.d.ts +87 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default browser;
|
|
2
|
+
declare namespace browser {
|
|
3
|
+
function mobilecheck(): boolean;
|
|
4
|
+
function iphoneCheck(): boolean;
|
|
5
|
+
function isWeixin(): boolean;
|
|
6
|
+
function isAndroid(): boolean;
|
|
7
|
+
function tabletCheck(): boolean;
|
|
8
|
+
function BrowserType(): "0" | "FF" | "IE7" | "IE8" | "IE9" | "IE10" | "Opera" | "Safari" | "Chrome" | "Edge" | "IE11";
|
|
9
|
+
function isIE(): "1" | "-1";
|
|
10
|
+
function IEVersion(): "0" | "-1" | "IE7" | "IE8" | "IE9" | "IE10" | "Edge" | "IE11";
|
|
11
|
+
const luckysheetrefreshfixednum: any;
|
|
12
|
+
function luckysheetrefreshfixed(): any;
|
|
13
|
+
function detectOS(): "other" | "Mac" | "Unix" | "Linux" | "Win2000" | "WinXP" | "Win2003" | "WinVista" | "Win7";
|
|
14
|
+
function detectOS(): "other" | "Mac" | "Unix" | "Linux" | "Win2000" | "WinXP" | "Win2003" | "WinVista" | "Win7";
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function cleargridelement(event: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function countfunc(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function luckysheetcreatedom(colwidth: any, rowheight: any, data: any, menu: any, title: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function luckysheetcreatesheet(colwidth: any, rowheight: any, data: any, cfg: any, active: any): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export function luckysheetRangeLast(obj: any): void;
|
|
2
|
+
export function getCursortPosition(textDom: any): number;
|
|
3
|
+
export function hideMenuByCancel(event: any): void;
|
|
4
|
+
export function selectTextContent(ele: any): void;
|
|
5
|
+
export function selectTextDom(ele: any): void;
|
|
6
|
+
export function selectTextContentCross(sEle: any, eEle: any): void;
|
|
7
|
+
export function selectTextContentCollapse(sEle: any, index: any): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export function luckysheetDrawgridRowTitle(scrollHeight: any, drawHeight: any, offsetTop: any): void;
|
|
2
|
+
export function luckysheetDrawgridColumnTitle(scrollWidth: any, drawWidth: any, offsetLeft: any): void;
|
|
3
|
+
export function luckysheetDrawMain(scrollWidth: any, scrollHeight: any, drawWidth: any, drawHeight: any, offsetLeft: any, offsetTop: any, columnOffsetCell: any, rowOffsetCell: any, mycanvas: any): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export function dynamicArrayCompute(dynamicArray: any): {};
|
|
2
|
+
export function dynamicArraySpillEditCompute(computeObj: any, r: any, c: any): any;
|
|
3
|
+
export function dynamicArrayRangeIsAllNull(range: any, data: any): boolean;
|
|
4
|
+
export function dynamicArrayHightShow(r: any, c: any): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default editor;
|
|
2
|
+
declare namespace editor {
|
|
3
|
+
const deepCopyFlowDataState: boolean;
|
|
4
|
+
const deepCopyFlowDataCache: string;
|
|
5
|
+
const deepCopyFlowDataWorker: any;
|
|
6
|
+
function deepCopyFlowData(flowData: any): any;
|
|
7
|
+
function webWorkerFlowDataCache(flowData: any): void;
|
|
8
|
+
function controlHandler(dataChe: any[], range: any): void;
|
|
9
|
+
function clearRangeByindex(st_r: any, ed_r: any, st_c: any, ed_c: any, sheetIndex: any): void;
|
|
10
|
+
function controlHandlerD(dataChe: any): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 增加行列
|
|
3
|
+
* @param {string} type 行或列 ['row', 'column'] 之一
|
|
4
|
+
* @param {number} index 插入的位置 index
|
|
5
|
+
* @param {number} value 插入 多少 行(列)
|
|
6
|
+
* @param {string} direction 哪个方向插入 ['lefttop','rightbottom'] 之一
|
|
7
|
+
* @param {string | number} sheetIndex 操作的 sheet 的 index 属性
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export function luckysheetextendtable(type: string, index: number, value: number, direction: string, sheetIndex: string | number): void;
|
|
11
|
+
export function luckysheetextendData(rowlen: any, newData: any): void;
|
|
12
|
+
export function luckysheetdeletetable(type: any, st: any, ed: any, sheetIndex: any): void;
|
|
13
|
+
export function luckysheetDeleteCell(type: any, str: any, edr: any, stc: any, edc: any, sheetIndex: any): void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default func_methods;
|
|
2
|
+
declare namespace func_methods {
|
|
3
|
+
function getCellDataArr(rangeObj: any, nullCellType: any, isNeglectNullCell: any): any[];
|
|
4
|
+
function getCellDataDyadicArr(rangeObj: any, nullCellType: any): any[][];
|
|
5
|
+
function getDataArr(arr: any, isNeglectNaN: any): any[];
|
|
6
|
+
function getDataDyadicArr(arr: any): any[][];
|
|
7
|
+
function isDyadicArr(arr: any): boolean;
|
|
8
|
+
function getFirstValue(data: any, nullCellType: any): any;
|
|
9
|
+
function getCellBoolen(data: any): any;
|
|
10
|
+
function getCellDate(data: any): any;
|
|
11
|
+
function getCellrangeDate(data: any): string | any[];
|
|
12
|
+
function getRegExpStr(str: any): any;
|
|
13
|
+
function factorial(num: any): any;
|
|
14
|
+
function factorialDouble(num: any): any;
|
|
15
|
+
function variance(num_arr: any): number;
|
|
16
|
+
function variance_s(num_arr: any): number;
|
|
17
|
+
function standardDeviation(num_arr: any): number;
|
|
18
|
+
function standardDeviation_s(num_arr: any): number;
|
|
19
|
+
function isLeapYear(year: any): boolean;
|
|
20
|
+
function feb29Between(date1: any, date2: any): boolean;
|
|
21
|
+
function findResultIndex(database: any, criterias: any): number[];
|
|
22
|
+
function findField(database: any, title: any): string | number;
|
|
23
|
+
function rest(array: any, idx: any): any;
|
|
24
|
+
function compact(array: any): any;
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function computeColWidthByContent(d: any, c: any, rh: any): number;
|
|
2
|
+
/**
|
|
3
|
+
* 计算范围行高
|
|
4
|
+
*
|
|
5
|
+
* @param d 原始数据
|
|
6
|
+
* @param r1 起始行
|
|
7
|
+
* @param r2 截至行
|
|
8
|
+
* @param cfg 配置
|
|
9
|
+
* @returns 计算后的配置
|
|
10
|
+
*/
|
|
11
|
+
export function rowlenByRange(d: any, r1: any, r2: any, cfg: any): any;
|
|
12
|
+
export function computeRowlenByContent(d: any, r: any): number;
|
|
13
|
+
export function computeRowlenArr(rowHeight: any, cfg: any): number[];
|
|
14
|
+
export function getCellTextSplitArr(strValue: any, strArr: any, cellWidth: any, canvas: any): any;
|
|
15
|
+
export function getMeasureText(value: any, ctx: any, fontset: any): any;
|
|
16
|
+
export function getCellTextInfo(cell: any, ctx: any, option: any): any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function getdatabyselection(range: any, sheetIndex: any): any[][];
|
|
2
|
+
export function getdatabyselectionD(d: any, range: any): any[];
|
|
3
|
+
export function getdatabyselectionNoCopy(range: any): string[][];
|
|
4
|
+
export function getcellvalue(r: any, c: any, data: any, type: any): any;
|
|
5
|
+
export function datagridgrowth(data: any, addr: any, addc: any, iscallback: any): any;
|
|
6
|
+
export function getcellFormula(r: any, c: any, i: any, data: any): any;
|
|
7
|
+
export function getOrigincell(r: any, c: any, i: any): any;
|
|
8
|
+
export function getRealCellValue(r: any, c: any): any;
|
|
9
|
+
export function getInlineStringNoStyle(r: any, c: any): string;
|
|
10
|
+
export function getInlineStringStyle(r: any, c: any, data: any): string;
|
|
11
|
+
export function getFontStyleByCell(cell: any, checksAF: any, checksCF: any, isCheck?: boolean): string;
|
|
12
|
+
export function checkstatusByCell(cell: any, a: any): any;
|
|
13
|
+
export function textTrim(x: any): any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export function rowLocationByIndex(row_index: any): any[];
|
|
2
|
+
export function rowLocation(y: any): any[];
|
|
3
|
+
export function colLocationByIndex(col_index: any): any[];
|
|
4
|
+
export function colSpanLocationByIndex(col_index: any, span: any): any[];
|
|
5
|
+
export function colLocation(x: any): any[];
|
|
6
|
+
export function mouseposition(x: any, y: any): number[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default method;
|
|
2
|
+
declare namespace method {
|
|
3
|
+
function addDataAjax(param: any, index: any, url: any, func: any): void;
|
|
4
|
+
function reload(param: any, index: any, url: any, func: any): void;
|
|
5
|
+
function clearSheetByIndex(i: any): void;
|
|
6
|
+
function clear(index: any): void;
|
|
7
|
+
function destroy(): void;
|
|
8
|
+
function editorChart(c: any): void;
|
|
9
|
+
function createHookFunction(...args: any[]): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function jfrefreshgrid(data: any, range: any, allParam: any, isRunExecFunction?: boolean, isRefreshCanvas?: boolean): void;
|
|
2
|
+
export function jfrefreshgridall(colwidth: any, rowheight: any, data: any, cfg: any, range: any, ctrlType: any, ctrlValue: any, cdformat: any, isRefreshCanvas?: boolean): void;
|
|
3
|
+
export function jfrefreshrange(data: any, range: any, cdformat: any): void;
|
|
4
|
+
export function jfrefreshgrid_adRC(data: any, cfg: any, ctrlType: any, ctrlValue: any, calc: any, filterObj: any, cf: any, af: any, freezen: any, dataVerification: any, hyperlink: any): void;
|
|
5
|
+
export function jfrefreshgrid_deleteCell(data: any, cfg: any, ctrl: any, calc: any, filterObj: any, cf: any, dataVerification: any, hyperlink: any): void;
|
|
6
|
+
export function jfrefreshgrid_pastcut(source: any, target: any, RowlChange: any): void;
|
|
7
|
+
export function jfrefreshgrid_rhcw(rowheight: any, colwidth: any, isRefreshCanvas?: boolean): void;
|
|
8
|
+
export function luckysheetrefreshgrid(scrollWidth: any, scrollHeight: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function luckysheetscrollevent(isadjust: any): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default tooltip;
|
|
2
|
+
declare namespace tooltip {
|
|
3
|
+
function info(title: any, content: any): void;
|
|
4
|
+
function confirm(title: any, content: any, func1: any, func2: any, name1: any, name2: any): void;
|
|
5
|
+
function screenshot(title: any, content: any, imgurl: any): void;
|
|
6
|
+
function chartPointConfig(id: any, savefunc1: any, closefunc2: any): void;
|
|
7
|
+
function sheetConfig(): void;
|
|
8
|
+
const hoverTipshowState: boolean;
|
|
9
|
+
const hoverTipshowTimeOut: any;
|
|
10
|
+
function createHoverTip(obj: any, to: any): void;
|
|
11
|
+
function popover(content: any, position: any, close: any, style: any, btntxt: any, exitsFuc: any): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export namespace error {
|
|
2
|
+
const v: string;
|
|
3
|
+
const n: string;
|
|
4
|
+
const na: string;
|
|
5
|
+
const r: string;
|
|
6
|
+
const d: string;
|
|
7
|
+
const nm: string;
|
|
8
|
+
const nl: string;
|
|
9
|
+
const sp: string;
|
|
10
|
+
}
|
|
11
|
+
export function isRealNull(val: any): boolean;
|
|
12
|
+
export function isRealNum(val: any): boolean;
|
|
13
|
+
export function valueIsError(value: any): boolean;
|
|
14
|
+
export function hasChinaword(s: any): boolean;
|
|
15
|
+
export function isEditMode(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @description: 检查是否允许前台进行表格编辑
|
|
18
|
+
* @param {*}
|
|
19
|
+
* @return {Boolean} true:允许编辑 fasle:不允许
|
|
20
|
+
*/
|
|
21
|
+
export function checkIsAllowEdit(): boolean;
|
|
22
|
+
export function hasPartMC(cfg: any, r1: any, r2: any, c1: any, c2: any): boolean;
|
|
23
|
+
export function checkWordByteLength(value: any): number;
|