@sl-material/sl-table-sheet 1.1.0-beta0 → 1.1.0-beta2
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/core/Dialog.d.ts +0 -4
- package/core/excel/parsers/HeaderDetector.d.ts +9 -0
- package/core/styles/dialog.d.ts +2 -2
- package/core/styles/toolbar.d.ts +2 -2
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/sl-table-sheet.cjs.js +152 -153
- package/sl-table-sheet.es.js +3713 -3676
- package/sl-table-sheet.umd.umd.js +152 -153
- package/core/Dialog-column.d.ts +0 -117
- package/core/ExcelUtils.d.ts +0 -6
- /package/core/{comnon.d.ts → common.d.ts} +0 -0
package/core/Dialog-column.d.ts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 查找替换弹窗 - 纯 TypeScript/JavaScript 实现
|
|
3
|
-
* 不依赖任何框架,可在任何项目中使用
|
|
4
|
-
*/
|
|
5
|
-
export interface MatchPosition {
|
|
6
|
-
row: number;
|
|
7
|
-
col: number;
|
|
8
|
-
value: string;
|
|
9
|
-
}
|
|
10
|
-
export interface FindReplaceOptions {
|
|
11
|
-
container?: HTMLElement | string;
|
|
12
|
-
tableInstance?: any;
|
|
13
|
-
onSearch?: (matches: MatchPosition[]) => void;
|
|
14
|
-
onReplace?: (match: MatchPosition, newValue: string) => void;
|
|
15
|
-
selectedColumnsOnly?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare class FindReplaceDialog {
|
|
18
|
-
private dialog;
|
|
19
|
-
private tableInstance;
|
|
20
|
-
private elements;
|
|
21
|
-
private state;
|
|
22
|
-
private options;
|
|
23
|
-
constructor(options?: FindReplaceOptions);
|
|
24
|
-
/**
|
|
25
|
-
* 初始化弹窗
|
|
26
|
-
*/
|
|
27
|
-
private init;
|
|
28
|
-
/**
|
|
29
|
-
* 创建弹窗 DOM
|
|
30
|
-
*/
|
|
31
|
-
private createDialog;
|
|
32
|
-
/**
|
|
33
|
-
* 绑定事件
|
|
34
|
-
*/
|
|
35
|
-
private bindEvents;
|
|
36
|
-
/**
|
|
37
|
-
* 绑定拖拽事件
|
|
38
|
-
*/
|
|
39
|
-
private bindDragEvents;
|
|
40
|
-
/**
|
|
41
|
-
* 注入样式
|
|
42
|
-
*/
|
|
43
|
-
private injectStyles;
|
|
44
|
-
/**
|
|
45
|
-
* 解析容器
|
|
46
|
-
*/
|
|
47
|
-
private resolveContainer;
|
|
48
|
-
/**
|
|
49
|
-
* 打开弹窗
|
|
50
|
-
*/
|
|
51
|
-
open(): void;
|
|
52
|
-
/**
|
|
53
|
-
* 关闭弹窗
|
|
54
|
-
*/
|
|
55
|
-
close(): void;
|
|
56
|
-
/**
|
|
57
|
-
* 重置状态
|
|
58
|
-
*/
|
|
59
|
-
private resetState;
|
|
60
|
-
/**
|
|
61
|
-
* 清除结果显示
|
|
62
|
-
*/
|
|
63
|
-
private clearResults;
|
|
64
|
-
/**
|
|
65
|
-
* 执行查找
|
|
66
|
-
*/
|
|
67
|
-
private performSearch;
|
|
68
|
-
/**
|
|
69
|
-
* 高亮匹配项
|
|
70
|
-
*/
|
|
71
|
-
private highlightMatch;
|
|
72
|
-
/**
|
|
73
|
-
* 查找下一个
|
|
74
|
-
*/
|
|
75
|
-
findNext(): void;
|
|
76
|
-
/**
|
|
77
|
-
* 查找上一个
|
|
78
|
-
*/
|
|
79
|
-
findPrevious(): void;
|
|
80
|
-
/**
|
|
81
|
-
* 替换一个
|
|
82
|
-
*/
|
|
83
|
-
replaceOne(): void;
|
|
84
|
-
/**
|
|
85
|
-
* 全部替换
|
|
86
|
-
*/
|
|
87
|
-
replaceAll(): void;
|
|
88
|
-
/**
|
|
89
|
-
* 显示消息
|
|
90
|
-
*/
|
|
91
|
-
private showMessage;
|
|
92
|
-
/**
|
|
93
|
-
* 设置表格实例(用于表格重建后更新引用)
|
|
94
|
-
*/
|
|
95
|
-
setTableInstance(tableInstance: any): void;
|
|
96
|
-
/**
|
|
97
|
-
* 设置是否只搜索选中列
|
|
98
|
-
*/
|
|
99
|
-
setSelectedColumnsOnly(selectedOnly: boolean): void;
|
|
100
|
-
/**
|
|
101
|
-
* 获取是否只搜索选中列
|
|
102
|
-
*/
|
|
103
|
-
getSelectedColumnsOnly(): boolean;
|
|
104
|
-
/**
|
|
105
|
-
* 设置查找文本
|
|
106
|
-
*/
|
|
107
|
-
setFindText(text: string): void;
|
|
108
|
-
/**
|
|
109
|
-
* 设置替换文本
|
|
110
|
-
*/
|
|
111
|
-
setReplaceText(text: string): void;
|
|
112
|
-
/**
|
|
113
|
-
* 销毁弹窗
|
|
114
|
-
*/
|
|
115
|
-
destroy(): void;
|
|
116
|
-
}
|
|
117
|
-
export default FindReplaceDialog;
|
package/core/ExcelUtils.d.ts
DELETED
|
File without changes
|