@leankylin-sheet/excel 3.1.47
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/ToExcel/ExcelBorder.d.ts +3 -0
- package/dist/ToExcel/ExcelConfig.d.ts +2 -0
- package/dist/ToExcel/ExcelConvert.d.ts +16 -0
- package/dist/ToExcel/ExcelFile.d.ts +1 -0
- package/dist/ToExcel/ExcelImage.d.ts +2 -0
- package/dist/ToExcel/ExcelStyle.d.ts +3 -0
- package/dist/ToExcel/ExcelValidation.d.ts +2 -0
- package/dist/ToFortuneSheet/FortuneBase.d.ts +133 -0
- package/dist/ToFortuneSheet/FortuneCell.d.ts +21 -0
- package/dist/ToFortuneSheet/FortuneFile.d.ts +28 -0
- package/dist/ToFortuneSheet/FortuneImage.d.ts +20 -0
- package/dist/ToFortuneSheet/FortuneSheet.d.ts +20 -0
- package/dist/ToFortuneSheet/HandleZip.d.ts +8 -0
- package/dist/ToFortuneSheet/IFortune.d.ts +301 -0
- package/dist/ToFortuneSheet/ImportHelper.d.ts +1 -0
- package/dist/ToFortuneSheet/ReadXml.d.ts +27 -0
- package/dist/common/ICommon.d.ts +34 -0
- package/dist/common/ToolbarItem.d.ts +12 -0
- package/dist/common/Transform.d.ts +2 -0
- package/dist/common/constant.d.ts +27 -0
- package/dist/common/emf.d.ts +3 -0
- package/dist/common/method.d.ts +56 -0
- package/dist/icons/ExportIcon.d.ts +2 -0
- package/dist/icons/ImportIcon.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +5296 -0
- package/dist/index.js +5310 -0
- package/package.json +31 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import ExcelJS from "exceljs";
|
|
2
|
+
declare const fillConvert: (bg: string) => ExcelJS.Fill | null;
|
|
3
|
+
declare const fontConvert: (ff?: string, fc?: string, bl?: number, it?: number, fs?: number, cl?: number, ul?: number) => {
|
|
4
|
+
name: string;
|
|
5
|
+
family: number;
|
|
6
|
+
size: number;
|
|
7
|
+
color: {
|
|
8
|
+
argb: string;
|
|
9
|
+
};
|
|
10
|
+
bold: boolean;
|
|
11
|
+
italic: boolean;
|
|
12
|
+
underline: boolean;
|
|
13
|
+
strike: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const alignmentConvert: (vt?: number, ht?: number, tb?: number, tr?: number) => Partial<ExcelJS.Alignment>;
|
|
16
|
+
export { fillConvert, fontConvert, alignmentConvert };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function exportSheetExcel(luckysheetRef: any): Promise<void>;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { IFortuneFile, IFortuneFileInfo, IfortuneSheet, IfortuneSheetCelldata, IfortuneSheetConfig, IfortuneSheetCelldataValue, IfortuneSheetCelldataValueMerge, IFortuneSheetCellFormat, IfortuneSheetConfigMerges, IfortuneSheetConfigMerge, IfortuneSheetborderInfoCellValue, IfortuneSheetborderInfoCellValueStyle, IfortuneSheetborderInfoCellForImp, IfortuneSheetRowAndColumnLen, IfortuneSheetRowAndColumnHidden, IfortuneSheetSelection, IfortunesheetFrozen, IfortuneSheetChart, IfortuneSheetPivotTable, IfortunesheetConditionFormat, IfortunesheetCalcChain, IFortuneInlineString, IfortuneImage, IfortuneImageBorder, IfortuneImageCrop, IfortuneImageDefault, IfortuneImages, IfortunesheetHyperlink, IfortunesheetDataVerification } from "./IFortune";
|
|
2
|
+
export declare class FortuneFileBase implements IFortuneFile {
|
|
3
|
+
info: IFortuneFileInfo;
|
|
4
|
+
sheets: IfortuneSheet[];
|
|
5
|
+
}
|
|
6
|
+
export declare class FortuneSheetBase implements IfortuneSheet {
|
|
7
|
+
name: string;
|
|
8
|
+
color: string;
|
|
9
|
+
config: IfortuneSheetConfig;
|
|
10
|
+
id: string;
|
|
11
|
+
status: string;
|
|
12
|
+
order: string;
|
|
13
|
+
row: number;
|
|
14
|
+
column: number;
|
|
15
|
+
luckysheet_select_save: IfortuneSheetSelection[];
|
|
16
|
+
scrollLeft: number;
|
|
17
|
+
scrollTop: number;
|
|
18
|
+
zoomRatio: number;
|
|
19
|
+
showGridLines: string;
|
|
20
|
+
defaultColWidth: number;
|
|
21
|
+
defaultRowHeight: number;
|
|
22
|
+
celldata: IfortuneSheetCelldata[];
|
|
23
|
+
chart: IfortuneSheetChart[];
|
|
24
|
+
isPivotTable: boolean;
|
|
25
|
+
pivotTable: IfortuneSheetPivotTable;
|
|
26
|
+
luckysheet_conditionformat_save: IfortunesheetConditionFormat[];
|
|
27
|
+
freezen: IfortunesheetFrozen;
|
|
28
|
+
calcChain: IfortunesheetCalcChain[];
|
|
29
|
+
images: IfortuneImages;
|
|
30
|
+
dataVerification: IfortunesheetDataVerification;
|
|
31
|
+
hyperlink: IfortunesheetHyperlink;
|
|
32
|
+
hide: number;
|
|
33
|
+
}
|
|
34
|
+
export declare class FortuneFileInfo implements IFortuneFileInfo {
|
|
35
|
+
name: string;
|
|
36
|
+
creator: string;
|
|
37
|
+
lastmodifiedby: string;
|
|
38
|
+
createdTime: string;
|
|
39
|
+
modifiedTime: string;
|
|
40
|
+
company: string;
|
|
41
|
+
appversion: string;
|
|
42
|
+
}
|
|
43
|
+
export declare class FortuneSheetCelldataBase implements IfortuneSheetCelldata {
|
|
44
|
+
r: number;
|
|
45
|
+
c: number;
|
|
46
|
+
v: IfortuneSheetCelldataValue | string | null;
|
|
47
|
+
}
|
|
48
|
+
export declare class FortuneSheetCelldataValue implements IfortuneSheetCelldataValue {
|
|
49
|
+
ct: FortuneSheetCellFormat | undefined;
|
|
50
|
+
bg: string | undefined;
|
|
51
|
+
ff: string | undefined;
|
|
52
|
+
fc: string | undefined;
|
|
53
|
+
bl: number | undefined;
|
|
54
|
+
it: number | undefined;
|
|
55
|
+
fs: number | undefined;
|
|
56
|
+
cl: number | undefined;
|
|
57
|
+
un: number | undefined;
|
|
58
|
+
vt: number | undefined;
|
|
59
|
+
ht: number | undefined;
|
|
60
|
+
mc: IfortuneSheetCelldataValueMerge | undefined;
|
|
61
|
+
tr: number | undefined;
|
|
62
|
+
tb: number | undefined;
|
|
63
|
+
v: string | undefined;
|
|
64
|
+
m: string | undefined;
|
|
65
|
+
f: string | undefined;
|
|
66
|
+
rt: number | undefined;
|
|
67
|
+
qp: number | undefined;
|
|
68
|
+
}
|
|
69
|
+
export declare class FortuneSheetCellFormat implements IFortuneSheetCellFormat {
|
|
70
|
+
fa: string;
|
|
71
|
+
t: string;
|
|
72
|
+
s: FortuneInlineString[] | undefined;
|
|
73
|
+
}
|
|
74
|
+
export declare class FortuneInlineString implements IFortuneInlineString {
|
|
75
|
+
ff: string | undefined;
|
|
76
|
+
fc: string | undefined;
|
|
77
|
+
fs: number | undefined;
|
|
78
|
+
cl: number | undefined;
|
|
79
|
+
un: number | undefined;
|
|
80
|
+
bl: number | undefined;
|
|
81
|
+
it: number | undefined;
|
|
82
|
+
va: number | undefined;
|
|
83
|
+
v: string | undefined;
|
|
84
|
+
}
|
|
85
|
+
export declare class FortuneConfig implements IfortuneSheetConfig {
|
|
86
|
+
merge: IfortuneSheetConfigMerges;
|
|
87
|
+
borderInfo: IfortuneSheetborderInfoCellForImp[];
|
|
88
|
+
rowlen: IfortuneSheetRowAndColumnLen;
|
|
89
|
+
columnlen: IfortuneSheetRowAndColumnLen;
|
|
90
|
+
rowhidden: IfortuneSheetRowAndColumnHidden;
|
|
91
|
+
colhidden: IfortuneSheetRowAndColumnHidden;
|
|
92
|
+
customHeight: IfortuneSheetRowAndColumnHidden;
|
|
93
|
+
customWidth: IfortuneSheetRowAndColumnHidden;
|
|
94
|
+
}
|
|
95
|
+
export declare class FortuneSheetborderInfoCellForImp implements IfortuneSheetborderInfoCellForImp {
|
|
96
|
+
rangeType: string;
|
|
97
|
+
value: IfortuneSheetborderInfoCellValue;
|
|
98
|
+
}
|
|
99
|
+
export declare class FortuneSheetborderInfoCellValue implements IfortuneSheetborderInfoCellValue {
|
|
100
|
+
row_index: number;
|
|
101
|
+
col_index: number;
|
|
102
|
+
l: IfortuneSheetborderInfoCellValueStyle;
|
|
103
|
+
r: IfortuneSheetborderInfoCellValueStyle;
|
|
104
|
+
t: IfortuneSheetborderInfoCellValueStyle;
|
|
105
|
+
b: IfortuneSheetborderInfoCellValueStyle;
|
|
106
|
+
}
|
|
107
|
+
export declare class FortuneSheetborderInfoCellValueStyle implements IfortuneSheetborderInfoCellValueStyle {
|
|
108
|
+
"style": number;
|
|
109
|
+
"color": string;
|
|
110
|
+
}
|
|
111
|
+
export declare class FortuneSheetConfigMerge implements IfortuneSheetConfigMerge {
|
|
112
|
+
r: number;
|
|
113
|
+
c: number;
|
|
114
|
+
rs: number;
|
|
115
|
+
cs: number;
|
|
116
|
+
}
|
|
117
|
+
export declare class FortunesheetCalcChain implements IfortunesheetCalcChain {
|
|
118
|
+
r: number;
|
|
119
|
+
c: number;
|
|
120
|
+
id: string | undefined;
|
|
121
|
+
}
|
|
122
|
+
export declare class FortuneImageBase implements IfortuneImage {
|
|
123
|
+
border: IfortuneImageBorder;
|
|
124
|
+
crop: IfortuneImageCrop;
|
|
125
|
+
default: IfortuneImageDefault;
|
|
126
|
+
fixedLeft: number;
|
|
127
|
+
fixedTop: number;
|
|
128
|
+
isFixedPos: Boolean;
|
|
129
|
+
originHeight: number;
|
|
130
|
+
originWidth: number;
|
|
131
|
+
src: string;
|
|
132
|
+
type: string;
|
|
133
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IfortuneSheetborderInfoCellForImp } from "./IFortune";
|
|
2
|
+
import { ReadXml, Element, IStyleCollections } from "./ReadXml";
|
|
3
|
+
import { FortuneSheetCelldataBase } from "./FortuneBase";
|
|
4
|
+
export declare class FortuneSheetCelldata extends FortuneSheetCelldataBase {
|
|
5
|
+
_borderObject: IfortuneSheetborderInfoCellForImp;
|
|
6
|
+
_fomulaRef: string;
|
|
7
|
+
_formulaSi: string;
|
|
8
|
+
_formulaType: string;
|
|
9
|
+
private sheetFile;
|
|
10
|
+
private readXml;
|
|
11
|
+
private cell;
|
|
12
|
+
private styles;
|
|
13
|
+
private sharedStrings;
|
|
14
|
+
private mergeCells;
|
|
15
|
+
constructor(cell: Element, styles: IStyleCollections, sharedStrings: Element[], mergeCells: Element[], sheetFile: string, ReadXml: ReadXml);
|
|
16
|
+
private generateValue;
|
|
17
|
+
private replaceSpecialWrap;
|
|
18
|
+
private getBackgroundByFill;
|
|
19
|
+
private getBorderInfo;
|
|
20
|
+
private htmlDecode;
|
|
21
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IuploadfileList } from "../common/ICommon";
|
|
2
|
+
import { FortuneFileBase } from "./FortuneBase";
|
|
3
|
+
export declare class FortuneFile {
|
|
4
|
+
private files;
|
|
5
|
+
private sheetNameList;
|
|
6
|
+
private readXml;
|
|
7
|
+
private fileName;
|
|
8
|
+
private styles;
|
|
9
|
+
private sharedStrings;
|
|
10
|
+
private calcChain;
|
|
11
|
+
private imageList;
|
|
12
|
+
private sheets?;
|
|
13
|
+
private info?;
|
|
14
|
+
constructor(files: IuploadfileList, fileName: string);
|
|
15
|
+
private getSheetNameList;
|
|
16
|
+
private getSheetFileBysheetId;
|
|
17
|
+
getWorkBookInfo(): void;
|
|
18
|
+
getSheetsFull(isInitialCell?: boolean): void;
|
|
19
|
+
private columnWidthSet;
|
|
20
|
+
private rowHeightSet;
|
|
21
|
+
private extendArray;
|
|
22
|
+
private imagePositionCaculation;
|
|
23
|
+
private getDrawingFile;
|
|
24
|
+
private getDrawingRelsFile;
|
|
25
|
+
getSheetsWithoutCell(): void;
|
|
26
|
+
Parse(): void;
|
|
27
|
+
serialize(): FortuneFileBase;
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IuploadfileList } from "../common/ICommon";
|
|
2
|
+
import { FortuneImageBase } from "./FortuneBase";
|
|
3
|
+
export declare class ImageList {
|
|
4
|
+
private images;
|
|
5
|
+
constructor(files: IuploadfileList);
|
|
6
|
+
getImageByName(pathName: string): Image;
|
|
7
|
+
}
|
|
8
|
+
declare class Image extends FortuneImageBase {
|
|
9
|
+
fromCol: number;
|
|
10
|
+
fromColOff: number;
|
|
11
|
+
fromRow: number;
|
|
12
|
+
fromRowOff: number;
|
|
13
|
+
toCol: number;
|
|
14
|
+
toColOff: number;
|
|
15
|
+
toRow: number;
|
|
16
|
+
toRowOff: number;
|
|
17
|
+
constructor(pathName: string, base64: string);
|
|
18
|
+
setDefault(): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FortuneSheetBase } from "./FortuneBase";
|
|
2
|
+
export declare class FortuneSheet extends FortuneSheetBase {
|
|
3
|
+
private readXml;
|
|
4
|
+
private sheetFile;
|
|
5
|
+
private isInitialCell;
|
|
6
|
+
private styles;
|
|
7
|
+
private sharedStrings;
|
|
8
|
+
private mergeCells;
|
|
9
|
+
private calcChainEles;
|
|
10
|
+
private sheetList;
|
|
11
|
+
private imageList;
|
|
12
|
+
private formulaRefList;
|
|
13
|
+
constructor(sheetName: string, sheetId: string, sheetOrder: number, isInitialCell: boolean | undefined, allFileOption: any);
|
|
14
|
+
private getXdrValue;
|
|
15
|
+
private getBase64ByRid;
|
|
16
|
+
private generateConfigColumnLenAndHidden;
|
|
17
|
+
private generateConfigRowLenAndHiddenAddCell;
|
|
18
|
+
private generateConfigDataValidations;
|
|
19
|
+
private generateConfigHyperlinks;
|
|
20
|
+
}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
export interface IFortuneFile {
|
|
2
|
+
info: IFortuneFileInfo;
|
|
3
|
+
sheets: IfortuneSheet[];
|
|
4
|
+
}
|
|
5
|
+
export interface IFortuneFileInfo {
|
|
6
|
+
name: string;
|
|
7
|
+
creator: string;
|
|
8
|
+
lastmodifiedby: string;
|
|
9
|
+
createdTime: string;
|
|
10
|
+
modifiedTime: string;
|
|
11
|
+
company: string;
|
|
12
|
+
appversion: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IfortuneSheet {
|
|
15
|
+
name: string;
|
|
16
|
+
color: string;
|
|
17
|
+
config?: IfortuneSheetConfig;
|
|
18
|
+
id: string;
|
|
19
|
+
status: string;
|
|
20
|
+
order: string;
|
|
21
|
+
row: number;
|
|
22
|
+
column: number;
|
|
23
|
+
luckysheet_select_save?: IfortuneSheetSelection[];
|
|
24
|
+
scrollLeft: number;
|
|
25
|
+
scrollTop: number;
|
|
26
|
+
celldata?: IfortuneSheetCelldata[];
|
|
27
|
+
chart?: IfortuneSheetChart[];
|
|
28
|
+
isPivotTable: boolean;
|
|
29
|
+
pivotTable?: IfortuneSheetPivotTable;
|
|
30
|
+
luckysheet_conditionformat_save?: IfortunesheetConditionFormat[];
|
|
31
|
+
freezen?: IfortunesheetFrozen;
|
|
32
|
+
calcChain?: IfortunesheetCalcChain[];
|
|
33
|
+
zoomRatio: number;
|
|
34
|
+
showGridLines: string;
|
|
35
|
+
defaultColWidth: number;
|
|
36
|
+
defaultRowHeight: number;
|
|
37
|
+
images: IfortuneImages;
|
|
38
|
+
dataVerification: IfortunesheetDataVerification;
|
|
39
|
+
hyperlink: IfortunesheetHyperlink;
|
|
40
|
+
hide: number;
|
|
41
|
+
}
|
|
42
|
+
export interface IfortuneSheetSelection {
|
|
43
|
+
row: number[];
|
|
44
|
+
column: number[];
|
|
45
|
+
sheetIndex: number;
|
|
46
|
+
}
|
|
47
|
+
export interface IfortuneSheetChart {
|
|
48
|
+
}
|
|
49
|
+
export interface IfortuneSheetPivotTable {
|
|
50
|
+
pivot_select_save: IfortuneSheetSelection;
|
|
51
|
+
pivotDataSheetIndex: string | undefined;
|
|
52
|
+
column: IfortuneSheetPivotTableField[];
|
|
53
|
+
row: IfortuneSheetPivotTableField[];
|
|
54
|
+
filter: IfortuneSheetPivotTableField[];
|
|
55
|
+
filterparm: IfortuneSheetPivotTablefilterParam;
|
|
56
|
+
values: IfortuneSheetPivotTableField[];
|
|
57
|
+
showType: string;
|
|
58
|
+
pivotDatas: any[][];
|
|
59
|
+
drawPivotTable: boolean;
|
|
60
|
+
pivotTableBoundary: number[];
|
|
61
|
+
}
|
|
62
|
+
export interface IfortuneSheetPivotTableField {
|
|
63
|
+
index: number;
|
|
64
|
+
name: string;
|
|
65
|
+
fullname: string;
|
|
66
|
+
sumtype: string;
|
|
67
|
+
nameindex: number;
|
|
68
|
+
}
|
|
69
|
+
export interface IfortuneSheetPivotTablefilterParam {
|
|
70
|
+
[index: string]: IfortuneSheetPivotTablefilterParamItem;
|
|
71
|
+
}
|
|
72
|
+
export interface IfortuneSheetPivotTablefilterParamItem {
|
|
73
|
+
caljs: IfortuneSheetPivotTablefilterParamItemCaljs;
|
|
74
|
+
rowhidden: IfortuneSheetPivotTablefilterParamItemRowhidden;
|
|
75
|
+
selected: IfortuneSheetPivotTablefilterParamItemSelected;
|
|
76
|
+
}
|
|
77
|
+
export interface IfortuneSheetPivotTablefilterParamItemCaljs {
|
|
78
|
+
text: string;
|
|
79
|
+
type: string;
|
|
80
|
+
value: string;
|
|
81
|
+
value1: string;
|
|
82
|
+
}
|
|
83
|
+
export interface IfortuneSheetPivotTablefilterParamItemRowhidden {
|
|
84
|
+
[index: number]: number;
|
|
85
|
+
}
|
|
86
|
+
export interface IfortuneSheetPivotTablefilterParamItemSelected {
|
|
87
|
+
[index: number]: number;
|
|
88
|
+
}
|
|
89
|
+
export interface IfortunesheetFrozen {
|
|
90
|
+
horizen: number | undefined;
|
|
91
|
+
vertical: number | undefined;
|
|
92
|
+
}
|
|
93
|
+
export interface IfortunesheetConditionFormat {
|
|
94
|
+
type: string;
|
|
95
|
+
cellrange: IfortuneSheetSelection[];
|
|
96
|
+
format: string[] | IfortunesheetCFDefaultFormat | IfortunesheetCFIconsFormat;
|
|
97
|
+
conditionName: string | undefined;
|
|
98
|
+
conditionRange: IfortuneSheetSelection[];
|
|
99
|
+
conditionValue: any[];
|
|
100
|
+
}
|
|
101
|
+
export interface IfortunesheetCFDefaultFormat {
|
|
102
|
+
textColor: string | undefined | null;
|
|
103
|
+
cellColor: string | undefined | null;
|
|
104
|
+
}
|
|
105
|
+
export interface IfortunesheetCFIconsFormat {
|
|
106
|
+
len: string | number;
|
|
107
|
+
leftMin: string | number;
|
|
108
|
+
top: string | number;
|
|
109
|
+
}
|
|
110
|
+
export interface IfortunesheetCalcChain {
|
|
111
|
+
r: number;
|
|
112
|
+
c: number;
|
|
113
|
+
id: string | undefined;
|
|
114
|
+
}
|
|
115
|
+
export interface IfortuneSheetCelldata {
|
|
116
|
+
r: number;
|
|
117
|
+
c: number;
|
|
118
|
+
v: IfortuneSheetCelldataValue | {
|
|
119
|
+
mc: IfortuneSheetCelldataValueMerge;
|
|
120
|
+
ct?: IFortuneSheetCellFormat;
|
|
121
|
+
} | string | null;
|
|
122
|
+
}
|
|
123
|
+
export interface IfortuneSheetCelldataValue {
|
|
124
|
+
ct: IFortuneSheetCellFormat | undefined;
|
|
125
|
+
bg: string | undefined;
|
|
126
|
+
ff: string | undefined;
|
|
127
|
+
fc: string | undefined;
|
|
128
|
+
bl: number | undefined;
|
|
129
|
+
it: number | undefined;
|
|
130
|
+
fs: number | undefined;
|
|
131
|
+
cl: number | undefined;
|
|
132
|
+
un: number | undefined;
|
|
133
|
+
vt: number | undefined;
|
|
134
|
+
ht: number | undefined;
|
|
135
|
+
mc: IfortuneSheetCelldataValueMerge | undefined;
|
|
136
|
+
tr: number | undefined;
|
|
137
|
+
tb: number | undefined;
|
|
138
|
+
v: string | undefined;
|
|
139
|
+
m: string | undefined;
|
|
140
|
+
rt: number | undefined;
|
|
141
|
+
f: string | undefined;
|
|
142
|
+
qp: number | undefined;
|
|
143
|
+
}
|
|
144
|
+
export interface IFortuneSheetCellFormat {
|
|
145
|
+
fa: string;
|
|
146
|
+
t: string;
|
|
147
|
+
}
|
|
148
|
+
export interface IfortuneSheetCelldataValueMerge {
|
|
149
|
+
rs?: number;
|
|
150
|
+
cs?: number;
|
|
151
|
+
r: number;
|
|
152
|
+
c: number;
|
|
153
|
+
}
|
|
154
|
+
export interface IfortuneSheetConfig {
|
|
155
|
+
merge?: IfortuneSheetConfigMerges;
|
|
156
|
+
borderInfo: IfortuneSheetborderInfoCellForImp[];
|
|
157
|
+
rowlen?: IfortuneSheetRowAndColumnLen;
|
|
158
|
+
columnlen?: IfortuneSheetRowAndColumnLen;
|
|
159
|
+
rowhidden?: IfortuneSheetRowAndColumnHidden;
|
|
160
|
+
colhidden?: IfortuneSheetRowAndColumnHidden;
|
|
161
|
+
customHeight: IfortuneSheetRowAndColumnHidden;
|
|
162
|
+
customWidth: IfortuneSheetRowAndColumnHidden;
|
|
163
|
+
}
|
|
164
|
+
export interface IfortuneSheetConfigMerges {
|
|
165
|
+
[firstRange: string]: IfortuneSheetConfigMerge;
|
|
166
|
+
}
|
|
167
|
+
export interface IfortuneSheetConfigMerge {
|
|
168
|
+
r: number;
|
|
169
|
+
c: number;
|
|
170
|
+
rs: number;
|
|
171
|
+
cs: number;
|
|
172
|
+
}
|
|
173
|
+
export interface IfortuneSheetborderInfoCell {
|
|
174
|
+
rangeType: string;
|
|
175
|
+
value: IfortuneSheetborderInfoCellValue;
|
|
176
|
+
}
|
|
177
|
+
export interface IfortuneSheetborderInfoCellValue {
|
|
178
|
+
row_index: number;
|
|
179
|
+
col_index: number;
|
|
180
|
+
l: IfortuneSheetborderInfoCellValueStyle;
|
|
181
|
+
r: IfortuneSheetborderInfoCellValueStyle;
|
|
182
|
+
t: IfortuneSheetborderInfoCellValueStyle;
|
|
183
|
+
b: IfortuneSheetborderInfoCellValueStyle;
|
|
184
|
+
}
|
|
185
|
+
export interface IfortuneSheetborderInfoCellValueStyle {
|
|
186
|
+
style: number;
|
|
187
|
+
color: string;
|
|
188
|
+
}
|
|
189
|
+
export interface IfortuneSheetborderInfoRange {
|
|
190
|
+
rangeType: string;
|
|
191
|
+
borderType: string;
|
|
192
|
+
style: string;
|
|
193
|
+
color: string;
|
|
194
|
+
range: IfortuneSheetSelection[];
|
|
195
|
+
}
|
|
196
|
+
export interface IfortuneSheetborderInfoCellForImp {
|
|
197
|
+
rangeType: string;
|
|
198
|
+
cells?: string[];
|
|
199
|
+
value: IfortuneSheetborderInfoCellValue;
|
|
200
|
+
}
|
|
201
|
+
export interface IMapfortuneSheetborderInfoCellForImp {
|
|
202
|
+
[index: number]: IfortuneSheetborderInfoCellForImp;
|
|
203
|
+
}
|
|
204
|
+
export interface IfortuneSheetRowAndColumnLen {
|
|
205
|
+
[index: string]: number;
|
|
206
|
+
}
|
|
207
|
+
export interface IfortuneSheetRowAndColumnHidden {
|
|
208
|
+
[index: string]: number;
|
|
209
|
+
}
|
|
210
|
+
export interface IFormulaSI {
|
|
211
|
+
[index: string]: IFormulaCell;
|
|
212
|
+
}
|
|
213
|
+
export interface IFormulaCell {
|
|
214
|
+
[index: string]: IFormulaCellValue;
|
|
215
|
+
}
|
|
216
|
+
export interface IFormulaCellValue {
|
|
217
|
+
t: string;
|
|
218
|
+
ref: string;
|
|
219
|
+
si: string;
|
|
220
|
+
fv: string;
|
|
221
|
+
cellValue: IfortuneSheetCelldata;
|
|
222
|
+
}
|
|
223
|
+
export interface IFortuneInlineString {
|
|
224
|
+
ff: string | undefined;
|
|
225
|
+
fc: string | undefined;
|
|
226
|
+
fs: number | undefined;
|
|
227
|
+
cl: number | undefined;
|
|
228
|
+
un: number | undefined;
|
|
229
|
+
bl: number | undefined;
|
|
230
|
+
it: number | undefined;
|
|
231
|
+
va: number | undefined;
|
|
232
|
+
v: string | undefined;
|
|
233
|
+
}
|
|
234
|
+
export interface IfortuneImage {
|
|
235
|
+
border: IfortuneImageBorder;
|
|
236
|
+
crop: IfortuneImageCrop;
|
|
237
|
+
default: IfortuneImageDefault;
|
|
238
|
+
fixedLeft: number;
|
|
239
|
+
fixedTop: number;
|
|
240
|
+
isFixedPos: Boolean;
|
|
241
|
+
originHeight: number;
|
|
242
|
+
originWidth: number;
|
|
243
|
+
src: string;
|
|
244
|
+
type: string;
|
|
245
|
+
}
|
|
246
|
+
export interface IfortuneImageBorder {
|
|
247
|
+
color: string;
|
|
248
|
+
radius: number;
|
|
249
|
+
style: string;
|
|
250
|
+
width: number;
|
|
251
|
+
}
|
|
252
|
+
export interface IfortuneImageCrop {
|
|
253
|
+
height: number;
|
|
254
|
+
offsetLeft: number;
|
|
255
|
+
offsetTop: number;
|
|
256
|
+
width: number;
|
|
257
|
+
}
|
|
258
|
+
export interface IfortuneImageDefault {
|
|
259
|
+
height: number;
|
|
260
|
+
left: number;
|
|
261
|
+
top: number;
|
|
262
|
+
width: number;
|
|
263
|
+
}
|
|
264
|
+
export interface IfortuneImages {
|
|
265
|
+
[index: string]: IfortuneImage;
|
|
266
|
+
}
|
|
267
|
+
export interface IcellOtherInfo {
|
|
268
|
+
[index: string]: IformulaList;
|
|
269
|
+
}
|
|
270
|
+
export interface IformulaList {
|
|
271
|
+
[index: string]: IformulaListItem;
|
|
272
|
+
}
|
|
273
|
+
export interface IformulaListItem {
|
|
274
|
+
r: number;
|
|
275
|
+
c: number;
|
|
276
|
+
}
|
|
277
|
+
export interface IfortunesheetDataVerification {
|
|
278
|
+
[key: string]: IfortunesheetDataVerificationValue;
|
|
279
|
+
}
|
|
280
|
+
export interface IfortunesheetDataVerificationValue {
|
|
281
|
+
type: IfortunesheetDataVerificationType;
|
|
282
|
+
type2: string | null;
|
|
283
|
+
value1: string | number | null;
|
|
284
|
+
value2: string | number | null;
|
|
285
|
+
checked: boolean;
|
|
286
|
+
remote: boolean;
|
|
287
|
+
prohibitInput: boolean;
|
|
288
|
+
hintShow: boolean;
|
|
289
|
+
hintText: string;
|
|
290
|
+
}
|
|
291
|
+
export type IfortunesheetDataVerificationType = "dropdown" | "checkbox" | "number" | "number_integer" | "number_decimal" | "text_content" | "text_length" | "date" | "validity";
|
|
292
|
+
export interface IfortunesheetHyperlink {
|
|
293
|
+
[key: string]: IfortunesheetHyperlinkValue;
|
|
294
|
+
}
|
|
295
|
+
export interface IfortunesheetHyperlinkValue {
|
|
296
|
+
linkAddress: string;
|
|
297
|
+
linkTooltip: string;
|
|
298
|
+
linkType: IfortunesheetHyperlinkType;
|
|
299
|
+
display: string;
|
|
300
|
+
}
|
|
301
|
+
export type IfortunesheetHyperlinkType = "internal" | "external";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ImportHelper: (props: any) => any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IuploadfileList, IattributeList } from "../common/ICommon";
|
|
2
|
+
declare class xmloperation {
|
|
3
|
+
protected getElementsByOneTag(tag: string, file: string): string[];
|
|
4
|
+
}
|
|
5
|
+
export declare class ReadXml extends xmloperation {
|
|
6
|
+
originFile: IuploadfileList;
|
|
7
|
+
constructor(files: IuploadfileList);
|
|
8
|
+
getElementsByTagName(path: string, fileName: string): Element[];
|
|
9
|
+
private getFileByName;
|
|
10
|
+
}
|
|
11
|
+
export declare class Element extends xmloperation {
|
|
12
|
+
elementString: string;
|
|
13
|
+
attributeList: IattributeList;
|
|
14
|
+
value: string;
|
|
15
|
+
container: string;
|
|
16
|
+
constructor(str: string);
|
|
17
|
+
get(name: string): string | number | boolean;
|
|
18
|
+
getInnerElements(tag: string): Element[];
|
|
19
|
+
private setValue;
|
|
20
|
+
private getFirstTag;
|
|
21
|
+
}
|
|
22
|
+
export interface IStyleCollections {
|
|
23
|
+
[index: string]: Element[] | IattributeList;
|
|
24
|
+
}
|
|
25
|
+
export declare function getColor(color: Element, styles: IStyleCollections, type?: string): any;
|
|
26
|
+
export declare function getlineStringAttr(frpr: Element, attr: string): string;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IfortunesheetDataVerificationType } from "../ToFortuneSheet/IFortune";
|
|
2
|
+
export interface IuploadfileList {
|
|
3
|
+
[index: string]: string;
|
|
4
|
+
}
|
|
5
|
+
export interface stringToNum {
|
|
6
|
+
[index: string]: number;
|
|
7
|
+
}
|
|
8
|
+
export interface numTostring {
|
|
9
|
+
[index: number]: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IattributeList {
|
|
12
|
+
[index: string]: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface IDataVerificationMap {
|
|
15
|
+
[key: string]: IfortunesheetDataVerificationType;
|
|
16
|
+
}
|
|
17
|
+
export interface IDataVerificationType2Map {
|
|
18
|
+
[key: string]: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface IBorderSide {
|
|
23
|
+
color: string;
|
|
24
|
+
style: number;
|
|
25
|
+
}
|
|
26
|
+
export interface IBorderInfo {
|
|
27
|
+
b: IBorderSide;
|
|
28
|
+
l: IBorderSide;
|
|
29
|
+
r: IBorderSide;
|
|
30
|
+
t: IBorderSide;
|
|
31
|
+
}
|
|
32
|
+
export interface IBorderInfoCompute {
|
|
33
|
+
[key: string]: IBorderInfo;
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const exportToolBarItem: (sheetRef: any) => {
|
|
2
|
+
key: string;
|
|
3
|
+
tooltip: string;
|
|
4
|
+
icon: any;
|
|
5
|
+
onClick: (e: any) => Promise<void>;
|
|
6
|
+
};
|
|
7
|
+
export declare const importToolBarItem: () => {
|
|
8
|
+
key: string;
|
|
9
|
+
tooltip: string;
|
|
10
|
+
icon: any;
|
|
11
|
+
onClick: (e: any) => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { stringToNum, IattributeList, IDataVerificationMap, IDataVerificationType2Map } from "./ICommon";
|
|
2
|
+
export declare const columeHeader_word: string[];
|
|
3
|
+
export declare const columeHeader_word_index: stringToNum;
|
|
4
|
+
export declare const coreFile = "docProps/core.xml";
|
|
5
|
+
export declare const appFile = "docProps/app.xml";
|
|
6
|
+
export declare const contentTypesFile = "[Content_Types].xml";
|
|
7
|
+
export declare const workBookFile = "xl/workbook.xml";
|
|
8
|
+
export declare const calcChainFile = "xl/calcChain.xml";
|
|
9
|
+
export declare const stylesFile = "xl/styles.xml";
|
|
10
|
+
export declare const sharedStringsFile = "xl/sharedStrings.xml";
|
|
11
|
+
export declare const worksheetFilePath = "xl/worksheets/";
|
|
12
|
+
export declare const theme1File = "xl/theme/theme1.xml";
|
|
13
|
+
export declare const workbookRels = "xl/_rels/workbook.xml.rels";
|
|
14
|
+
export declare const ST_CellType: IattributeList;
|
|
15
|
+
export declare const BuiltInCellStyles: IattributeList;
|
|
16
|
+
export declare const numFmtDefault: IattributeList;
|
|
17
|
+
export declare const indexedColors: IattributeList;
|
|
18
|
+
export declare const OEM_CHARSET: IattributeList;
|
|
19
|
+
export declare const borderTypes: stringToNum;
|
|
20
|
+
export declare const numFmtDefaultMap: IattributeList;
|
|
21
|
+
export declare const fontFamilys: IattributeList;
|
|
22
|
+
export declare const DATA_VERIFICATION_MAP: IDataVerificationMap;
|
|
23
|
+
export declare const DATA_VERIFICATION_REV_MAP: any;
|
|
24
|
+
export declare const OPERATOR_MAP: any;
|
|
25
|
+
export declare const COMMON_TYPE2: string[];
|
|
26
|
+
export declare const DATA_VERIFICATION_TYPE2_MAP: IDataVerificationType2Map;
|
|
27
|
+
export declare const ALIGNMENT_DEFAULT: number;
|