@mescius/spread-sheets-designer-vue 17.1.4 → 17.1.5
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/gc.spread.sheets.designer.vue.js +1 -1
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/types/config.d.ts +78 -0
- package/types/index.d.ts +259 -0
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import GC from '@mescius/spread-sheets';
|
|
2
|
+
export interface IWorkBookDefaultOptions {
|
|
3
|
+
allowDragHeaderToMove?: GC.Spread.Sheets.AllowDragHeaderToMove;
|
|
4
|
+
allowUserDragDrop?: boolean;
|
|
5
|
+
allowUserDragFill?: boolean;
|
|
6
|
+
allowUserZoom?: boolean;
|
|
7
|
+
allowUserResize?: boolean;
|
|
8
|
+
allowUndo?: boolean;
|
|
9
|
+
allowSheetReorder?: boolean;
|
|
10
|
+
allowContextMenu?: boolean;
|
|
11
|
+
allowUserDeselect?: boolean;
|
|
12
|
+
defaultDragFillType?: number;
|
|
13
|
+
showDragFillSmartTag?: boolean;
|
|
14
|
+
showHorizontalScrollbar?: boolean;
|
|
15
|
+
showVerticalScrollbar?: boolean;
|
|
16
|
+
scrollbarShowMax?: boolean;
|
|
17
|
+
scrollbarMaxAlign?: boolean;
|
|
18
|
+
tabStripVisible?: boolean;
|
|
19
|
+
tabStripRatio?: number;
|
|
20
|
+
tabStripPosition?: GC.Spread.Sheets.TabStripPosition;
|
|
21
|
+
tabStripWidth?: number;
|
|
22
|
+
tabEditable?: boolean;
|
|
23
|
+
newTabVisible?: boolean;
|
|
24
|
+
allSheetsListVisible?: GC.Spread.Sheets.AllSheetsListVisibility;
|
|
25
|
+
cutCopyIndicatorVisible?: boolean;
|
|
26
|
+
cutCopyIndicatorBorderColor?: string;
|
|
27
|
+
tabNavigationVisible?: boolean;
|
|
28
|
+
backColor?: string;
|
|
29
|
+
backgroundImage?: null | string;
|
|
30
|
+
backgroundImageLayout?: GC.Spread.Sheets.ImageLayout;
|
|
31
|
+
showResizeTip?: GC.Spread.Sheets.ShowResizeTip;
|
|
32
|
+
showDragDropTip?: boolean;
|
|
33
|
+
showDragFillTip?: boolean;
|
|
34
|
+
scrollIgnoreHidden?: boolean;
|
|
35
|
+
highlightInvalidData?: boolean;
|
|
36
|
+
showScrollTip?: GC.Spread.Sheets.ShowScrollTip;
|
|
37
|
+
columnResizeMode?: GC.Spread.Sheets.ResizeMode;
|
|
38
|
+
rowResizeMode?: GC.Spread.Sheets.ResizeMode;
|
|
39
|
+
grayAreaBackColor?: null | string;
|
|
40
|
+
useTouchLayout?: boolean;
|
|
41
|
+
hideSelection?: boolean;
|
|
42
|
+
resizeZeroIndicator?: GC.Spread.Sheets.ResizeZeroIndicator;
|
|
43
|
+
allowUserEditFormula?: boolean;
|
|
44
|
+
pivotAreaReference?: number;
|
|
45
|
+
enableFormulaTextbox?: boolean;
|
|
46
|
+
referenceStyle?: number;
|
|
47
|
+
allowDynamicArray?: boolean;
|
|
48
|
+
iterativeCalculation?: boolean;
|
|
49
|
+
iterativeCalculationMaximumIterations?: number;
|
|
50
|
+
iterativeCalculationMaximumChange?: number;
|
|
51
|
+
autoFitType?: GC.Spread.Sheets.AutoFitType;
|
|
52
|
+
calcOnDemand?: boolean;
|
|
53
|
+
incrementalCalculation?: boolean;
|
|
54
|
+
dynamicReferences?: boolean;
|
|
55
|
+
allowCopyPasteExcelStyle?: boolean;
|
|
56
|
+
allowExtendPasteRange?: boolean;
|
|
57
|
+
copyPasteHeaderOptions?: GC.Spread.Sheets.CopyPasteHeaderOptions;
|
|
58
|
+
calculationMode?: GC.Spread.Sheets.CalculationMode;
|
|
59
|
+
allowUserDragMerge?: boolean;
|
|
60
|
+
scrollByPixel?: boolean;
|
|
61
|
+
scrollPixel?: number;
|
|
62
|
+
enableAccessibility?: boolean;
|
|
63
|
+
sheetCount?: number;
|
|
64
|
+
allowAutoCreateHyperlink?: boolean;
|
|
65
|
+
font?: null | string;
|
|
66
|
+
customList?: string[][];
|
|
67
|
+
scrollbarAppearance?: number;
|
|
68
|
+
numbersFitMode?: GC.Spread.Sheets.NumbersFitMode;
|
|
69
|
+
pasteSkipInvisibleRange?: boolean;
|
|
70
|
+
allowAutoExtendFilterRange?: boolean;
|
|
71
|
+
allowInvalidFormula?: boolean;
|
|
72
|
+
formulaFormatHint?: boolean;
|
|
73
|
+
saveChangesForSheet?: boolean;
|
|
74
|
+
defaultSheetTabStyles?: GC.Spread.Sheets.SheetTabStyles;
|
|
75
|
+
builtInFileIcons?: GC.Spread.Sheets.IBuiltInFileIcons;
|
|
76
|
+
dragHeaderMaskBackColor?: string;
|
|
77
|
+
dragHeaderIndicatorColor?: string;
|
|
78
|
+
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import GC from '@mescius/spread-sheets-designer';
|
|
2
|
+
import { IWorkBookDefaultOptions } from './config';
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
config: {
|
|
5
|
+
type: () => GC.Spread.Sheets.Designer.IDesignerConfig;
|
|
6
|
+
};
|
|
7
|
+
styleInfo: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
};
|
|
10
|
+
spreadOptions: {
|
|
11
|
+
type: () => IWorkBookDefaultOptions;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
props: import("@vue/shared").LooseRequired<{
|
|
15
|
+
readonly config?: GC.Spread.Sheets.Designer.IDesignerConfig | undefined;
|
|
16
|
+
readonly styleInfo?: Record<string, any> | undefined;
|
|
17
|
+
readonly spreadOptions?: IWorkBookDefaultOptions | undefined;
|
|
18
|
+
readonly onDesignerInitialized?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
} & {}>;
|
|
20
|
+
emit: (event: "designerInitialized", ...args: any[]) => void;
|
|
21
|
+
designerContainer: import("vue").Ref<HTMLDivElement | null>;
|
|
22
|
+
designer: import("vue").Ref<{
|
|
23
|
+
activeRibbonTab: (ribbonTabId?: string | undefined) => string;
|
|
24
|
+
bind: (type: string, fn?: any) => void;
|
|
25
|
+
destroy: () => void;
|
|
26
|
+
getData: (key: string) => any;
|
|
27
|
+
getWorkbook: () => Object;
|
|
28
|
+
refresh: () => void;
|
|
29
|
+
setConfig: (config: GC.Spread.Sheets.Designer.IDesignerConfig) => void;
|
|
30
|
+
setData: (key: string, value: any) => void;
|
|
31
|
+
setWorkbook: (spread: Object) => void;
|
|
32
|
+
unbind: (type: string, fn?: any) => void;
|
|
33
|
+
unbindAll: () => void;
|
|
34
|
+
} | null>;
|
|
35
|
+
designerConfig: import("vue").Ref<{
|
|
36
|
+
templateMap?: GC.Spread.Sheets.Designer.TemplateMap | undefined;
|
|
37
|
+
commandMap?: GC.Spread.Sheets.Designer.CommandMap | undefined;
|
|
38
|
+
quickAccessBar?: string[] | undefined;
|
|
39
|
+
ribbon?: {
|
|
40
|
+
id: string;
|
|
41
|
+
text: string;
|
|
42
|
+
buttonGroups: {
|
|
43
|
+
class?: string | undefined;
|
|
44
|
+
label?: string | undefined;
|
|
45
|
+
thumbnailClass?: string | undefined;
|
|
46
|
+
indicator?: string | undefined;
|
|
47
|
+
commandGroup: {
|
|
48
|
+
commands?: string[] | undefined;
|
|
49
|
+
children?: any[] | undefined;
|
|
50
|
+
type?: "group" | "separator" | "dropdown" | undefined;
|
|
51
|
+
direction?: string | undefined;
|
|
52
|
+
command?: string | undefined;
|
|
53
|
+
dropdownMaxWidth?: number | undefined;
|
|
54
|
+
dropdownMaxHeight?: number | undefined;
|
|
55
|
+
showDropdownButton?: boolean | undefined;
|
|
56
|
+
visiblePriority?: number | undefined;
|
|
57
|
+
hidden?: boolean | undefined;
|
|
58
|
+
};
|
|
59
|
+
overflow?: boolean | undefined;
|
|
60
|
+
overflowTitle?: string | undefined;
|
|
61
|
+
buttonGroupName?: string | undefined;
|
|
62
|
+
}[];
|
|
63
|
+
visibleWhen?: string | undefined;
|
|
64
|
+
overflow?: boolean | undefined;
|
|
65
|
+
overflowTitle?: string | undefined;
|
|
66
|
+
active?: boolean | undefined;
|
|
67
|
+
}[] | {
|
|
68
|
+
panels: {
|
|
69
|
+
id: string;
|
|
70
|
+
text: string;
|
|
71
|
+
buttonGroups: {
|
|
72
|
+
class?: string | undefined;
|
|
73
|
+
label?: string | undefined;
|
|
74
|
+
thumbnailClass?: string | undefined;
|
|
75
|
+
indicator?: string | undefined;
|
|
76
|
+
commandGroup: {
|
|
77
|
+
commands?: string[] | undefined;
|
|
78
|
+
children?: any[] | undefined;
|
|
79
|
+
type?: "group" | "separator" | "dropdown" | undefined;
|
|
80
|
+
direction?: string | undefined;
|
|
81
|
+
command?: string | undefined;
|
|
82
|
+
dropdownMaxWidth?: number | undefined;
|
|
83
|
+
dropdownMaxHeight?: number | undefined;
|
|
84
|
+
showDropdownButton?: boolean | undefined;
|
|
85
|
+
visiblePriority?: number | undefined;
|
|
86
|
+
hidden?: boolean | undefined;
|
|
87
|
+
};
|
|
88
|
+
overflow?: boolean | undefined;
|
|
89
|
+
overflowTitle?: string | undefined;
|
|
90
|
+
buttonGroupName?: string | undefined;
|
|
91
|
+
}[];
|
|
92
|
+
visibleWhen?: string | undefined;
|
|
93
|
+
overflow?: boolean | undefined;
|
|
94
|
+
overflowTitle?: string | undefined;
|
|
95
|
+
active?: boolean | undefined;
|
|
96
|
+
}[];
|
|
97
|
+
ribbonHeight?: number | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
contextMenu?: string[] | undefined;
|
|
100
|
+
sidePanels?: {
|
|
101
|
+
position: "left" | "right" | "top" | "bottom" | "full";
|
|
102
|
+
width?: string | undefined;
|
|
103
|
+
command?: string | undefined;
|
|
104
|
+
allowResize?: boolean | undefined;
|
|
105
|
+
showCloseButton?: boolean | undefined;
|
|
106
|
+
uiTemplate: string;
|
|
107
|
+
classList?: string[] | undefined;
|
|
108
|
+
}[] | undefined;
|
|
109
|
+
fileMenu?: string | undefined;
|
|
110
|
+
}>;
|
|
111
|
+
spreadOptions: import("vue").Ref<{
|
|
112
|
+
allowDragHeaderToMove?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.AllowDragHeaderToMove | undefined;
|
|
113
|
+
allowUserDragDrop?: boolean | undefined;
|
|
114
|
+
allowUserDragFill?: boolean | undefined;
|
|
115
|
+
allowUserZoom?: boolean | undefined;
|
|
116
|
+
allowUserResize?: boolean | undefined;
|
|
117
|
+
allowUndo?: boolean | undefined;
|
|
118
|
+
allowSheetReorder?: boolean | undefined;
|
|
119
|
+
allowContextMenu?: boolean | undefined;
|
|
120
|
+
allowUserDeselect?: boolean | undefined;
|
|
121
|
+
defaultDragFillType?: number | undefined;
|
|
122
|
+
showDragFillSmartTag?: boolean | undefined;
|
|
123
|
+
showHorizontalScrollbar?: boolean | undefined;
|
|
124
|
+
showVerticalScrollbar?: boolean | undefined;
|
|
125
|
+
scrollbarShowMax?: boolean | undefined;
|
|
126
|
+
scrollbarMaxAlign?: boolean | undefined;
|
|
127
|
+
tabStripVisible?: boolean | undefined;
|
|
128
|
+
tabStripRatio?: number | undefined;
|
|
129
|
+
tabStripPosition?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.TabStripPosition | undefined;
|
|
130
|
+
tabStripWidth?: number | undefined;
|
|
131
|
+
tabEditable?: boolean | undefined;
|
|
132
|
+
newTabVisible?: boolean | undefined;
|
|
133
|
+
allSheetsListVisible?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.AllSheetsListVisibility | undefined;
|
|
134
|
+
cutCopyIndicatorVisible?: boolean | undefined;
|
|
135
|
+
cutCopyIndicatorBorderColor?: string | undefined;
|
|
136
|
+
tabNavigationVisible?: boolean | undefined;
|
|
137
|
+
backColor?: string | undefined;
|
|
138
|
+
backgroundImage?: string | null | undefined;
|
|
139
|
+
backgroundImageLayout?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.ImageLayout | undefined;
|
|
140
|
+
showResizeTip?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.ShowResizeTip | undefined;
|
|
141
|
+
showDragDropTip?: boolean | undefined;
|
|
142
|
+
showDragFillTip?: boolean | undefined;
|
|
143
|
+
scrollIgnoreHidden?: boolean | undefined;
|
|
144
|
+
highlightInvalidData?: boolean | undefined;
|
|
145
|
+
showScrollTip?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.ShowScrollTip | undefined;
|
|
146
|
+
columnResizeMode?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.ResizeMode | undefined;
|
|
147
|
+
rowResizeMode?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.ResizeMode | undefined;
|
|
148
|
+
grayAreaBackColor?: string | null | undefined;
|
|
149
|
+
useTouchLayout?: boolean | undefined;
|
|
150
|
+
hideSelection?: boolean | undefined;
|
|
151
|
+
resizeZeroIndicator?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.ResizeZeroIndicator | undefined;
|
|
152
|
+
allowUserEditFormula?: boolean | undefined;
|
|
153
|
+
pivotAreaReference?: number | undefined;
|
|
154
|
+
enableFormulaTextbox?: boolean | undefined;
|
|
155
|
+
referenceStyle?: number | undefined;
|
|
156
|
+
allowDynamicArray?: boolean | undefined;
|
|
157
|
+
iterativeCalculation?: boolean | undefined;
|
|
158
|
+
iterativeCalculationMaximumIterations?: number | undefined;
|
|
159
|
+
iterativeCalculationMaximumChange?: number | undefined;
|
|
160
|
+
autoFitType?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.AutoFitType | undefined;
|
|
161
|
+
calcOnDemand?: boolean | undefined;
|
|
162
|
+
incrementalCalculation?: boolean | undefined;
|
|
163
|
+
dynamicReferences?: boolean | undefined;
|
|
164
|
+
allowCopyPasteExcelStyle?: boolean | undefined;
|
|
165
|
+
allowExtendPasteRange?: boolean | undefined;
|
|
166
|
+
copyPasteHeaderOptions?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.CopyPasteHeaderOptions | undefined;
|
|
167
|
+
calculationMode?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.CalculationMode | undefined;
|
|
168
|
+
allowUserDragMerge?: boolean | undefined;
|
|
169
|
+
scrollByPixel?: boolean | undefined;
|
|
170
|
+
scrollPixel?: number | undefined;
|
|
171
|
+
enableAccessibility?: boolean | undefined;
|
|
172
|
+
sheetCount?: number | undefined;
|
|
173
|
+
allowAutoCreateHyperlink?: boolean | undefined;
|
|
174
|
+
font?: string | null | undefined;
|
|
175
|
+
customList?: string[][] | undefined;
|
|
176
|
+
scrollbarAppearance?: number | undefined;
|
|
177
|
+
numbersFitMode?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.NumbersFitMode | undefined;
|
|
178
|
+
pasteSkipInvisibleRange?: boolean | undefined;
|
|
179
|
+
allowAutoExtendFilterRange?: boolean | undefined;
|
|
180
|
+
allowInvalidFormula?: boolean | undefined;
|
|
181
|
+
formulaFormatHint?: boolean | undefined;
|
|
182
|
+
saveChangesForSheet?: boolean | undefined;
|
|
183
|
+
defaultSheetTabStyles?: {
|
|
184
|
+
1?: {
|
|
185
|
+
backColor?: string | undefined;
|
|
186
|
+
foreColor?: string | undefined;
|
|
187
|
+
font?: string | undefined;
|
|
188
|
+
icons?: {
|
|
189
|
+
src: string;
|
|
190
|
+
position?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.IconPosition | undefined;
|
|
191
|
+
width?: number | undefined;
|
|
192
|
+
height?: number | undefined;
|
|
193
|
+
}[] | undefined;
|
|
194
|
+
} | undefined;
|
|
195
|
+
2?: {
|
|
196
|
+
backColor?: string | undefined;
|
|
197
|
+
foreColor?: string | undefined;
|
|
198
|
+
font?: string | undefined;
|
|
199
|
+
icons?: {
|
|
200
|
+
src: string;
|
|
201
|
+
position?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.IconPosition | undefined;
|
|
202
|
+
width?: number | undefined;
|
|
203
|
+
height?: number | undefined;
|
|
204
|
+
}[] | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
4?: {
|
|
207
|
+
backColor?: string | undefined;
|
|
208
|
+
foreColor?: string | undefined;
|
|
209
|
+
font?: string | undefined;
|
|
210
|
+
icons?: {
|
|
211
|
+
src: string;
|
|
212
|
+
position?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.IconPosition | undefined;
|
|
213
|
+
width?: number | undefined;
|
|
214
|
+
height?: number | undefined;
|
|
215
|
+
}[] | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
8?: {
|
|
218
|
+
backColor?: string | undefined;
|
|
219
|
+
foreColor?: string | undefined;
|
|
220
|
+
font?: string | undefined;
|
|
221
|
+
icons?: {
|
|
222
|
+
src: string;
|
|
223
|
+
position?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.IconPosition | undefined;
|
|
224
|
+
width?: number | undefined;
|
|
225
|
+
height?: number | undefined;
|
|
226
|
+
}[] | undefined;
|
|
227
|
+
} | undefined;
|
|
228
|
+
16?: {
|
|
229
|
+
backColor?: string | undefined;
|
|
230
|
+
foreColor?: string | undefined;
|
|
231
|
+
font?: string | undefined;
|
|
232
|
+
icons?: {
|
|
233
|
+
src: string;
|
|
234
|
+
position?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.IconPosition | undefined;
|
|
235
|
+
width?: number | undefined;
|
|
236
|
+
height?: number | undefined;
|
|
237
|
+
}[] | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
builtInFileIcons?: import("@mescius/spread-sheets/dist/gc.spread.sheets").Spread.Sheets.IBuiltInFileIcons | undefined;
|
|
241
|
+
dragHeaderMaskBackColor?: string | undefined;
|
|
242
|
+
dragHeaderIndicatorColor?: string | undefined;
|
|
243
|
+
}>;
|
|
244
|
+
setStyle: (newStyle: Record<string, string>) => void;
|
|
245
|
+
designerInitialize: () => void;
|
|
246
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "designerInitialized"[], "designerInitialized", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
247
|
+
config: {
|
|
248
|
+
type: () => GC.Spread.Sheets.Designer.IDesignerConfig;
|
|
249
|
+
};
|
|
250
|
+
styleInfo: {
|
|
251
|
+
type: ObjectConstructor;
|
|
252
|
+
};
|
|
253
|
+
spreadOptions: {
|
|
254
|
+
type: () => IWorkBookDefaultOptions;
|
|
255
|
+
};
|
|
256
|
+
}>> & {
|
|
257
|
+
onDesignerInitialized?: ((...args: any[]) => any) | undefined;
|
|
258
|
+
}, {}, {}>;
|
|
259
|
+
export default _sfc_main;
|