@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,11 @@
|
|
|
1
|
+
export function getSheetIndex(index: any): number;
|
|
2
|
+
export function getRangetxt(sheetIndex: any, range: any, currentIndex: any): string;
|
|
3
|
+
export function getluckysheet_select_save(): {
|
|
4
|
+
row: number[];
|
|
5
|
+
column: number[];
|
|
6
|
+
}[];
|
|
7
|
+
export function getluckysheet_scroll_status(): boolean;
|
|
8
|
+
export function getluckysheetfile(plugin: any): any;
|
|
9
|
+
export function getconfig(): {};
|
|
10
|
+
export function getvisibledatarow(): any[];
|
|
11
|
+
export function getvisibledatacolumn(): any[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export function setluckysheet_select_save(v: any): void;
|
|
2
|
+
export function setluckysheet_scroll_status(v: any): void;
|
|
3
|
+
export function setluckysheetfile(d: any): void;
|
|
4
|
+
export function setconfig(v: any): void;
|
|
5
|
+
export function setvisibledatarow(v: any): void;
|
|
6
|
+
export function setvisibledatacolumn(v: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function _default($: any): void;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export default Store;
|
|
2
|
+
declare namespace Store {
|
|
3
|
+
const container: any;
|
|
4
|
+
const loadingObj: {};
|
|
5
|
+
const luckysheetfile: any;
|
|
6
|
+
const defaultcolumnNum: number;
|
|
7
|
+
const defaultrowNum: number;
|
|
8
|
+
const fullscreenmode: boolean;
|
|
9
|
+
const devicePixelRatio: number;
|
|
10
|
+
const currentSheetIndex: number;
|
|
11
|
+
const calculateSheetIndex: number;
|
|
12
|
+
const flowdata: any[];
|
|
13
|
+
const config: {};
|
|
14
|
+
const visibledatarow: any[];
|
|
15
|
+
const visibledatacolumn: any[];
|
|
16
|
+
const ch_width: number;
|
|
17
|
+
const rh_height: number;
|
|
18
|
+
const cellmainWidth: number;
|
|
19
|
+
const cellmainHeight: number;
|
|
20
|
+
const toolbarHeight: number;
|
|
21
|
+
const infobarHeight: number;
|
|
22
|
+
const calculatebarHeight: number;
|
|
23
|
+
const rowHeaderWidth: number;
|
|
24
|
+
const columnHeaderHeight: number;
|
|
25
|
+
const cellMainSrollBarSize: number;
|
|
26
|
+
const sheetBarHeight: number;
|
|
27
|
+
const statisticBarHeight: number;
|
|
28
|
+
const luckysheetTableContentHW: number[];
|
|
29
|
+
const defaultcollen: number;
|
|
30
|
+
const defaultrowlen: number;
|
|
31
|
+
const jfcountfuncTimeout: any;
|
|
32
|
+
const jfautoscrollTimeout: any;
|
|
33
|
+
const luckysheet_select_status: boolean;
|
|
34
|
+
const luckysheet_select_save: {
|
|
35
|
+
row: number[];
|
|
36
|
+
column: number[];
|
|
37
|
+
}[];
|
|
38
|
+
const luckysheet_selection_range: any[];
|
|
39
|
+
const luckysheet_copy_save: {};
|
|
40
|
+
const luckysheet_paste_iscut: boolean;
|
|
41
|
+
const filterchage: boolean;
|
|
42
|
+
namespace luckysheet_filter_save {
|
|
43
|
+
const row: any[];
|
|
44
|
+
const column: any[];
|
|
45
|
+
}
|
|
46
|
+
const luckysheet_sheet_move_status: boolean;
|
|
47
|
+
const luckysheet_sheet_move_data: any[];
|
|
48
|
+
const luckysheet_scroll_status: boolean;
|
|
49
|
+
const luckysheetisrefreshdetail: boolean;
|
|
50
|
+
const luckysheetisrefreshtheme: boolean;
|
|
51
|
+
const luckysheetcurrentisPivotTable: boolean;
|
|
52
|
+
const luckysheet_rows_selected_status: boolean;
|
|
53
|
+
const luckysheet_cols_selected_status: boolean;
|
|
54
|
+
const luckysheet_rows_change_size: boolean;
|
|
55
|
+
const luckysheet_rows_change_size_start: any[];
|
|
56
|
+
const luckysheet_cols_change_size: boolean;
|
|
57
|
+
const luckysheet_cols_change_size_start: any[];
|
|
58
|
+
const luckysheet_cols_dbclick_timeout: any;
|
|
59
|
+
const luckysheet_cols_dbclick_times: number;
|
|
60
|
+
const luckysheetCellUpdate: any[];
|
|
61
|
+
const luckysheet_shiftpositon: any;
|
|
62
|
+
const iscopyself: boolean;
|
|
63
|
+
const orderbyindex: number;
|
|
64
|
+
const luckysheet_model_move_state: boolean;
|
|
65
|
+
const luckysheet_model_xy: number[];
|
|
66
|
+
const luckysheet_model_move_obj: any;
|
|
67
|
+
const luckysheet_cell_selected_move: boolean;
|
|
68
|
+
const luckysheet_cell_selected_move_index: any[];
|
|
69
|
+
const luckysheet_cell_selected_extend: boolean;
|
|
70
|
+
const luckysheet_cell_selected_extend_index: any[];
|
|
71
|
+
const luckysheet_cell_selected_extend_time: any;
|
|
72
|
+
const clearjfundo: boolean;
|
|
73
|
+
const jfundo: any[];
|
|
74
|
+
const jfredo: any[];
|
|
75
|
+
const lang: string;
|
|
76
|
+
const createChart: string;
|
|
77
|
+
const highlightChart: string;
|
|
78
|
+
const zIndex: number;
|
|
79
|
+
namespace chartparam {
|
|
80
|
+
const luckysheetCurrentChart: any;
|
|
81
|
+
const luckysheetCurrentChartActive: boolean;
|
|
82
|
+
const luckysheetCurrentChartMove: any;
|
|
83
|
+
const luckysheetCurrentChartMoveTimeout: any;
|
|
84
|
+
const luckysheetCurrentChartMoveObj: any;
|
|
85
|
+
const luckysheetCurrentChartMoveXy: any;
|
|
86
|
+
const luckysheetCurrentChartMoveWinH: any;
|
|
87
|
+
const luckysheetCurrentChartMoveWinW: any;
|
|
88
|
+
const luckysheetCurrentChartResize: any;
|
|
89
|
+
const luckysheetCurrentChartResizeObj: any;
|
|
90
|
+
const luckysheetCurrentChartResizeXy: any;
|
|
91
|
+
const luckysheetCurrentChartResizeWinH: any;
|
|
92
|
+
const luckysheetCurrentChartResizeWinW: any;
|
|
93
|
+
const luckysheetInsertChartTosheetChange: boolean;
|
|
94
|
+
const luckysheetCurrentChartZIndexRank: number;
|
|
95
|
+
const luckysheet_chart_redo_click: boolean;
|
|
96
|
+
const luckysheetCurrentChartMaxState: boolean;
|
|
97
|
+
const jfrefreshchartall: string;
|
|
98
|
+
const changeChartCellData: string;
|
|
99
|
+
const renderChart: string;
|
|
100
|
+
const getChartJson: string;
|
|
101
|
+
}
|
|
102
|
+
const functionList: any;
|
|
103
|
+
const luckysheet_function: any;
|
|
104
|
+
const chart_selection: {};
|
|
105
|
+
const currentChart: string;
|
|
106
|
+
const scrollRefreshSwitch: boolean;
|
|
107
|
+
const measureTextCache: {};
|
|
108
|
+
const measureTextCellInfoCache: {};
|
|
109
|
+
const measureTextCacheTimeOut: any;
|
|
110
|
+
const cellOverflowMapCache: {};
|
|
111
|
+
const zoomRatio: number;
|
|
112
|
+
const visibledatacolumn_unique: any;
|
|
113
|
+
const visibledatarow_unique: any;
|
|
114
|
+
const showGridLines: boolean;
|
|
115
|
+
const toobarObject: {};
|
|
116
|
+
const inlineStringEditCache: any;
|
|
117
|
+
const inlineStringEditRange: any;
|
|
118
|
+
const fontList: any[];
|
|
119
|
+
const defaultFontSize: number;
|
|
120
|
+
const currentSheetView: string;
|
|
121
|
+
namespace cooperativeEdit {
|
|
122
|
+
const usernameTimeout: {};
|
|
123
|
+
const changeCollaborationSize: any[];
|
|
124
|
+
const allDataColumnlen: any[];
|
|
125
|
+
const merge_range: {};
|
|
126
|
+
const checkoutData: any[];
|
|
127
|
+
}
|
|
128
|
+
const asyncLoad: string[];
|
|
129
|
+
namespace defaultCell {
|
|
130
|
+
const bg: any;
|
|
131
|
+
const bl: number;
|
|
132
|
+
namespace ct {
|
|
133
|
+
const fa: string;
|
|
134
|
+
const t: string;
|
|
135
|
+
}
|
|
136
|
+
const fc: string;
|
|
137
|
+
const ff: number;
|
|
138
|
+
const fs: number;
|
|
139
|
+
const ht: number;
|
|
140
|
+
const it: number;
|
|
141
|
+
const vt: number;
|
|
142
|
+
const m: string;
|
|
143
|
+
const v: string;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 判断参数是否是Map类型
|
|
3
|
+
* @param {*} obj
|
|
4
|
+
*/
|
|
5
|
+
export function isMap(obj: any): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* 判断参数是否是Object类型
|
|
8
|
+
* @param {*} o
|
|
9
|
+
*/
|
|
10
|
+
export function isObject(o: any): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* 深度克隆数据,包括对象,数组,map
|
|
13
|
+
* @param {*} obj 对象,数组,map
|
|
14
|
+
*/
|
|
15
|
+
export function deepCopy(obj: any): any;
|
|
16
|
+
/**
|
|
17
|
+
* 生成随机图表id
|
|
18
|
+
*/
|
|
19
|
+
export function generateRandomKey(prefix: any): string;
|
|
20
|
+
export function replaceHtml(temp: any, dataarry: any): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common tool methods
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Determine whether a string is in standard JSON format
|
|
6
|
+
* @param {String} str
|
|
7
|
+
*/
|
|
8
|
+
export function isJsonString(str: string): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* extend two objects
|
|
11
|
+
* @param {Object } jsonbject1
|
|
12
|
+
* @param {Object } jsonbject2
|
|
13
|
+
*/
|
|
14
|
+
export function common_extend(jsonbject1: any, jsonbject2: any): {};
|
|
15
|
+
export function replaceHtml(temp: any, dataarry: any): any;
|
|
16
|
+
export function getObjType(obj: any): any;
|
|
17
|
+
export function getNowDateTime(format: any): string;
|
|
18
|
+
export function hexToRgb(hex: any): string;
|
|
19
|
+
export function rgbTohex(color: any): string;
|
|
20
|
+
export function ABCatNum(a: any): number;
|
|
21
|
+
export function chatatABC(n: any): string;
|
|
22
|
+
export function ceateABC(index: any): string[];
|
|
23
|
+
export function createABCdim(x: any, count: any): string[];
|
|
24
|
+
/**
|
|
25
|
+
* 计算字符串字节长度
|
|
26
|
+
* @param {*} val 字符串
|
|
27
|
+
* @param {*} subLen 要截取的字符串长度
|
|
28
|
+
*/
|
|
29
|
+
export function getByteLen(val: any, subLen: any): any;
|
|
30
|
+
export function ArrayUnique(dataArr: any): any[];
|
|
31
|
+
export function luckysheetfontformat(format: any): string;
|
|
32
|
+
export function showrightclickmenu($menu: any, x: any, y: any): void;
|
|
33
|
+
export function luckysheetactiveCell(): void;
|
|
34
|
+
export function numFormat(num: any, type: any): number;
|
|
35
|
+
export function numfloatlen(n: any): any;
|
|
36
|
+
export function mouseclickposition($menu: any, x: any, y: any, p: any): void;
|
|
37
|
+
/**
|
|
38
|
+
* 元素选择器
|
|
39
|
+
* @param {String} selector css选择器
|
|
40
|
+
* @param {String} context 指定父级DOM
|
|
41
|
+
*/
|
|
42
|
+
export function $$(selector: string, context: string): any;
|
|
43
|
+
/**
|
|
44
|
+
* 串行加载指定的脚本
|
|
45
|
+
* 串行加载[异步]逐个加载,每个加载完成后加载下一个
|
|
46
|
+
* 全部加载完成后执行回调
|
|
47
|
+
* @param {Array|String} scripts 指定要加载的脚本
|
|
48
|
+
* @param {Object} options 属性设置
|
|
49
|
+
* @param {Function} callback 成功后回调的函数
|
|
50
|
+
* @return {Array} 所有生成的脚本元素对象数组
|
|
51
|
+
*/
|
|
52
|
+
export function seriesLoadScripts(scripts: any[] | string, options: any, callback: Function): any[];
|
|
53
|
+
/**
|
|
54
|
+
* 并行加载指定的脚本
|
|
55
|
+
* 并行加载[同步]同时加载,不管上个是否加载完成,直接加载全部
|
|
56
|
+
* 全部加载完成后执行回调
|
|
57
|
+
* @param {Array|String} scripts 指定要加载的脚本
|
|
58
|
+
* @param {Object} options 属性设置
|
|
59
|
+
* @param {Function} callback 成功后回调的函数
|
|
60
|
+
* @return {Array} 所有生成的脚本元素对象数组
|
|
61
|
+
*/
|
|
62
|
+
export function parallelLoadScripts(scripts: any[] | string, options: any, callback: Function): any[];
|
|
63
|
+
/**
|
|
64
|
+
* 动态添加一组css
|
|
65
|
+
* @param {String} url 指定要加载的css地址
|
|
66
|
+
*/
|
|
67
|
+
export function loadLinks(urls: any): void;
|
|
68
|
+
export function luckysheetContainerFocus(): void;
|
|
69
|
+
export function transformRangeToAbsolute(txt1: any): string;
|
|
70
|
+
export function openSelfModel(id: any, isshowMask?: boolean): void;
|
|
71
|
+
/**
|
|
72
|
+
* 监控对象变更
|
|
73
|
+
* @param {*} data
|
|
74
|
+
*/
|
|
75
|
+
export function createProxy(data: any, k: any, callback: any): void;
|
|
76
|
+
/**
|
|
77
|
+
* Remove an item in the specified array
|
|
78
|
+
* @param {array} array Target array
|
|
79
|
+
* @param {string} item What needs to be removed
|
|
80
|
+
*/
|
|
81
|
+
export function arrayRemoveItem(array: any[], item: string): void;
|
|
82
|
+
/**
|
|
83
|
+
* camel 形式的单词转换为 - 形式 如 fillColor -> fill-color
|
|
84
|
+
* @param {string} camel camel 形式
|
|
85
|
+
* @returns
|
|
86
|
+
*/
|
|
87
|
+
export function camel2split(camel: string): string;
|