jvs-excel-ui 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,1465 @@
1
+ import { nextTick } from 'vue';
2
+ import { ExcelInputSource } from './utils/excelIo';
3
+ import { JvsExcelProps } from './types';
4
+ declare function createBaseReportData(docId?: string): Record<string, any>;
5
+ declare function handleDoAction(item: any): void;
6
+ declare function getData(isEnd?: boolean): any;
7
+ declare function setData(newWorkbookData?: Record<string, any>): Promise<void>;
8
+ declare function forceCommitEdit(): Promise<void>;
9
+ declare function getUniverAPI(): any;
10
+ declare function getUniver(): any;
11
+ declare function getActiveWorkbook(): any;
12
+ declare function getActiveSheet(): any;
13
+ declare function applyCollabCommands(commands: any[]): void;
14
+ declare function flushCommandList(): void;
15
+ declare function resetCommandList(): void;
16
+ declare function importExcelFile(source: ExcelInputSource, fileName?: string): Promise<Record<string, any>>;
17
+ declare function exportExcelFile(fileName?: string, download?: boolean): Promise<Blob>;
18
+ declare function __VLS_template(): {
19
+ attrs: Partial<{}>;
20
+ slots: {
21
+ footer?(_: {}): any;
22
+ default?(_: {}): any;
23
+ };
24
+ refs: {
25
+ sheetHeaderRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
26
+ currentData: {
27
+ type: ObjectConstructor;
28
+ default: () => {};
29
+ };
30
+ sheetData: {
31
+ type: ObjectConstructor;
32
+ default: () => {};
33
+ };
34
+ id: StringConstructor;
35
+ readonly: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ redoNum: {
40
+ type: NumberConstructor;
41
+ default: number;
42
+ };
43
+ undoNum: {
44
+ type: NumberConstructor;
45
+ default: number;
46
+ };
47
+ }>> & Readonly<{
48
+ onDoAction?: ((...args: any[]) => any) | undefined;
49
+ }>, {
50
+ cellClick: () => void;
51
+ onClickOutside: (e?: MouseEvent) => void;
52
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
+ doAction: (...args: any[]) => void;
54
+ }, import('vue').PublicProps, {
55
+ currentData: Record<string, any>;
56
+ redoNum: number;
57
+ undoNum: number;
58
+ sheetData: Record<string, any>;
59
+ readonly: boolean;
60
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
61
+ headerEl: HTMLDivElement;
62
+ moreRef: HTMLDivElement;
63
+ popoverRef: unknown;
64
+ }, any, import('vue').ComponentProvideOptions, {
65
+ P: {};
66
+ B: {};
67
+ D: {};
68
+ C: {};
69
+ M: {};
70
+ Defaults: {};
71
+ }, Readonly<import('vue').ExtractPropTypes<{
72
+ currentData: {
73
+ type: ObjectConstructor;
74
+ default: () => {};
75
+ };
76
+ sheetData: {
77
+ type: ObjectConstructor;
78
+ default: () => {};
79
+ };
80
+ id: StringConstructor;
81
+ readonly: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ redoNum: {
86
+ type: NumberConstructor;
87
+ default: number;
88
+ };
89
+ undoNum: {
90
+ type: NumberConstructor;
91
+ default: number;
92
+ };
93
+ }>> & Readonly<{
94
+ onDoAction?: ((...args: any[]) => any) | undefined;
95
+ }>, {
96
+ cellClick: () => void;
97
+ onClickOutside: (e?: MouseEvent) => void;
98
+ }, {}, {}, {}, {
99
+ currentData: Record<string, any>;
100
+ redoNum: number;
101
+ undoNum: number;
102
+ sheetData: Record<string, any>;
103
+ readonly: boolean;
104
+ }> | null;
105
+ univerSheetRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
106
+ reportDesign: {
107
+ type: ObjectConstructor;
108
+ default: () => {};
109
+ };
110
+ designInfo: {
111
+ type: ObjectConstructor;
112
+ default: () => {};
113
+ };
114
+ isEdit: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ locale: {
119
+ type: StringConstructor;
120
+ default: string;
121
+ };
122
+ memberList: {
123
+ type: ArrayConstructor;
124
+ default: () => never[];
125
+ };
126
+ uploadImage: {
127
+ type: FunctionConstructor;
128
+ default: undefined;
129
+ };
130
+ }>> & Readonly<{
131
+ onCellClick?: ((...args: any[]) => any) | undefined;
132
+ "onUpdate:currentCell"?: ((...args: any[]) => any) | undefined;
133
+ "onUpdate:sheetData"?: ((...args: any[]) => any) | undefined;
134
+ "onUpdate:undoNum"?: ((...args: any[]) => any) | undefined;
135
+ "onUpdate:redoNum"?: ((...args: any[]) => any) | undefined;
136
+ "onUpdate:currentSheetId"?: ((...args: any[]) => any) | undefined;
137
+ "onUpdate:editCell"?: ((...args: any[]) => any) | undefined;
138
+ onCommandExecuted?: ((...args: any[]) => any) | undefined;
139
+ onNewChanges?: ((...args: any[]) => any) | undefined;
140
+ onRangeChange?: ((...args: any[]) => any) | undefined;
141
+ onUniverCellChange?: ((...args: any[]) => any) | undefined;
142
+ onReady?: ((...args: any[]) => any) | undefined;
143
+ }>, {
144
+ doAction: (item: any) => void;
145
+ editCell: import('vue').Ref<boolean, boolean>;
146
+ getData: (isEnd?: boolean) => any;
147
+ sendRangeInfo: () => void;
148
+ resetCommandList: () => void;
149
+ changeUniverEditStatus: (value: boolean) => Promise<void>;
150
+ flushCommandList: () => void;
151
+ forceCommitEdit: () => Promise<void>;
152
+ applyCollabCommands: (commands: import('./sheet.vue').CommandListItem[]) => void;
153
+ getUniverAPI: () => any;
154
+ getUniver: () => any;
155
+ univerRef: import('vue').Ref<any, any>;
156
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
157
+ cellClick: (...args: any[]) => void;
158
+ "update:currentCell": (...args: any[]) => void;
159
+ "update:sheetData": (...args: any[]) => void;
160
+ "update:undoNum": (...args: any[]) => void;
161
+ "update:redoNum": (...args: any[]) => void;
162
+ "update:currentSheetId": (...args: any[]) => void;
163
+ "update:editCell": (...args: any[]) => void;
164
+ commandExecuted: (...args: any[]) => void;
165
+ newChanges: (...args: any[]) => void;
166
+ rangeChange: (...args: any[]) => void;
167
+ univerCellChange: (...args: any[]) => void;
168
+ ready: (...args: any[]) => void;
169
+ }, import('vue').PublicProps, {
170
+ reportDesign: Record<string, any>;
171
+ designInfo: Record<string, any>;
172
+ isEdit: boolean;
173
+ locale: string;
174
+ memberList: unknown[];
175
+ uploadImage: Function;
176
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
177
+ sheetContainerRef: HTMLDivElement;
178
+ memberCanvasRef: HTMLCanvasElement;
179
+ sheetImageInputRef: HTMLInputElement;
180
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
181
+ P: {};
182
+ B: {};
183
+ D: {};
184
+ C: {};
185
+ M: {};
186
+ Defaults: {};
187
+ }, Readonly<import('vue').ExtractPropTypes<{
188
+ reportDesign: {
189
+ type: ObjectConstructor;
190
+ default: () => {};
191
+ };
192
+ designInfo: {
193
+ type: ObjectConstructor;
194
+ default: () => {};
195
+ };
196
+ isEdit: {
197
+ type: BooleanConstructor;
198
+ default: boolean;
199
+ };
200
+ locale: {
201
+ type: StringConstructor;
202
+ default: string;
203
+ };
204
+ memberList: {
205
+ type: ArrayConstructor;
206
+ default: () => never[];
207
+ };
208
+ uploadImage: {
209
+ type: FunctionConstructor;
210
+ default: undefined;
211
+ };
212
+ }>> & Readonly<{
213
+ onCellClick?: ((...args: any[]) => any) | undefined;
214
+ "onUpdate:currentCell"?: ((...args: any[]) => any) | undefined;
215
+ "onUpdate:sheetData"?: ((...args: any[]) => any) | undefined;
216
+ "onUpdate:undoNum"?: ((...args: any[]) => any) | undefined;
217
+ "onUpdate:redoNum"?: ((...args: any[]) => any) | undefined;
218
+ "onUpdate:currentSheetId"?: ((...args: any[]) => any) | undefined;
219
+ "onUpdate:editCell"?: ((...args: any[]) => any) | undefined;
220
+ onCommandExecuted?: ((...args: any[]) => any) | undefined;
221
+ onNewChanges?: ((...args: any[]) => any) | undefined;
222
+ onRangeChange?: ((...args: any[]) => any) | undefined;
223
+ onUniverCellChange?: ((...args: any[]) => any) | undefined;
224
+ onReady?: ((...args: any[]) => any) | undefined;
225
+ }>, {
226
+ doAction: (item: any) => void;
227
+ editCell: import('vue').Ref<boolean, boolean>;
228
+ getData: (isEnd?: boolean) => any;
229
+ sendRangeInfo: () => void;
230
+ resetCommandList: () => void;
231
+ changeUniverEditStatus: (value: boolean) => Promise<void>;
232
+ flushCommandList: () => void;
233
+ forceCommitEdit: () => Promise<void>;
234
+ applyCollabCommands: (commands: import('./sheet.vue').CommandListItem[]) => void;
235
+ getUniverAPI: () => any;
236
+ getUniver: () => any;
237
+ univerRef: import('vue').Ref<any, any>;
238
+ }, {}, {}, {}, {
239
+ reportDesign: Record<string, any>;
240
+ designInfo: Record<string, any>;
241
+ isEdit: boolean;
242
+ locale: string;
243
+ memberList: unknown[];
244
+ uploadImage: Function;
245
+ }> | null;
246
+ sheetFooterRef: ({
247
+ $: import('vue').ComponentInternalInstance;
248
+ $data: {};
249
+ $props: Partial<{
250
+ type: string;
251
+ sheetData: Record<string, any>;
252
+ readonly: boolean;
253
+ reportDesign: Record<string, any>;
254
+ designInfo: Record<string, any>;
255
+ isEdit: boolean;
256
+ addSheet: boolean;
257
+ changeSheet: boolean;
258
+ openSheetMenu: boolean;
259
+ updateSheet: boolean;
260
+ copySheet: boolean;
261
+ deleteSheet: boolean;
262
+ }> & Omit<{
263
+ readonly type: string;
264
+ readonly sheetData: Record<string, any>;
265
+ readonly readonly: boolean;
266
+ readonly reportDesign: Record<string, any>;
267
+ readonly designInfo: Record<string, any>;
268
+ readonly isEdit: boolean;
269
+ readonly addSheet: boolean;
270
+ readonly changeSheet: boolean;
271
+ readonly openSheetMenu: boolean;
272
+ readonly updateSheet: boolean;
273
+ readonly copySheet: boolean;
274
+ readonly deleteSheet: boolean;
275
+ readonly name?: string | undefined;
276
+ readonly id?: string | undefined;
277
+ readonly sheetId?: string | undefined;
278
+ readonly onDoAction?: ((...args: any[]) => any) | undefined;
279
+ readonly onChangePage?: ((...args: any[]) => any) | undefined;
280
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "sheetData" | "readonly" | "reportDesign" | "designInfo" | "isEdit" | "addSheet" | "changeSheet" | "openSheetMenu" | "updateSheet" | "copySheet" | "deleteSheet">;
281
+ $attrs: import('vue').Attrs;
282
+ $refs: {
283
+ [x: string]: unknown;
284
+ } & {
285
+ footeContentRef: HTMLDivElement;
286
+ chagneSheetsButtonRef: HTMLDivElement;
287
+ sheetsNameBoxRef: HTMLDivElement;
288
+ sheetsNameContentRef: HTMLDivElement;
289
+ pageSelectRef: HTMLDivElement;
290
+ buttonColorRef: ({
291
+ $: import('vue').ComponentInternalInstance;
292
+ $data: {};
293
+ $props: {
294
+ readonly modelValue?: string | undefined;
295
+ readonly resetColor?: string | undefined;
296
+ readonly width?: string | undefined;
297
+ readonly customClass?: string | undefined;
298
+ readonly disable?: boolean | undefined;
299
+ readonly openGradual?: boolean | undefined;
300
+ readonly theme?: string | undefined;
301
+ readonly onChange?: ((val: string) => any) | undefined;
302
+ readonly "onUpdate:modelValue"?: ((val: string) => any) | undefined;
303
+ readonly onPopShow?: (() => any) | undefined;
304
+ readonly onPopHidden?: ((val: boolean) => any) | undefined;
305
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
306
+ $attrs: import('vue').Attrs;
307
+ $refs: {
308
+ [x: string]: unknown;
309
+ } & {
310
+ triggerRef: HTMLDivElement;
311
+ };
312
+ $slots: Readonly<{
313
+ [name: string]: import('vue').Slot<any> | undefined;
314
+ }>;
315
+ $root: import('vue').ComponentPublicInstance | null;
316
+ $parent: import('vue').ComponentPublicInstance | null;
317
+ $host: Element | null;
318
+ $emit: ((event: "change", val: string) => void) & ((event: "update:modelValue", val: string) => void) & ((event: "popShow") => void) & ((event: "popHidden", val: boolean) => void);
319
+ $el: any;
320
+ $options: import('vue').ComponentOptionsBase<Readonly<{
321
+ modelValue?: string;
322
+ resetColor?: string;
323
+ width?: string;
324
+ customClass?: string;
325
+ disable?: boolean;
326
+ openGradual?: boolean;
327
+ theme?: string;
328
+ }> & Readonly<{
329
+ onChange?: ((val: string) => any) | undefined;
330
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
331
+ onPopShow?: (() => any) | undefined;
332
+ onPopHidden?: ((val: boolean) => any) | undefined;
333
+ }>, {
334
+ handleScroll: () => void;
335
+ closePopover: () => void;
336
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
337
+ change: (val: string) => any;
338
+ "update:modelValue": (val: string) => any;
339
+ popShow: () => any;
340
+ popHidden: (val: boolean) => any;
341
+ }, string, {
342
+ modelValue: string;
343
+ resetColor: string;
344
+ width: string;
345
+ customClass: string;
346
+ disable: boolean;
347
+ openGradual: boolean;
348
+ theme: string;
349
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
350
+ beforeCreate?: (() => void) | (() => void)[];
351
+ created?: (() => void) | (() => void)[];
352
+ beforeMount?: (() => void) | (() => void)[];
353
+ mounted?: (() => void) | (() => void)[];
354
+ beforeUpdate?: (() => void) | (() => void)[];
355
+ updated?: (() => void) | (() => void)[];
356
+ activated?: (() => void) | (() => void)[];
357
+ deactivated?: (() => void) | (() => void)[];
358
+ beforeDestroy?: (() => void) | (() => void)[];
359
+ beforeUnmount?: (() => void) | (() => void)[];
360
+ destroyed?: (() => void) | (() => void)[];
361
+ unmounted?: (() => void) | (() => void)[];
362
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
363
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
364
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
365
+ };
366
+ $forceUpdate: () => void;
367
+ $nextTick: typeof nextTick;
368
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
369
+ } & Readonly<{
370
+ modelValue: string;
371
+ resetColor: string;
372
+ width: string;
373
+ customClass: string;
374
+ disable: boolean;
375
+ openGradual: boolean;
376
+ theme: string;
377
+ }> & Omit<Readonly<{
378
+ modelValue?: string;
379
+ resetColor?: string;
380
+ width?: string;
381
+ customClass?: string;
382
+ disable?: boolean;
383
+ openGradual?: boolean;
384
+ theme?: string;
385
+ }> & Readonly<{
386
+ onChange?: ((val: string) => any) | undefined;
387
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
388
+ onPopShow?: (() => any) | undefined;
389
+ onPopHidden?: ((val: boolean) => any) | undefined;
390
+ }>, "handleScroll" | "closePopover" | ("modelValue" | "resetColor" | "width" | "customClass" | "disable" | "openGradual" | "theme")> & {
391
+ handleScroll: () => void;
392
+ closePopover: () => void;
393
+ } & {} & import('vue').ComponentCustomProperties & {} & {
394
+ $slots: {
395
+ default?(_: {}): any;
396
+ };
397
+ }) | null;
398
+ scaleBarRef: HTMLDivElement;
399
+ scaleRatioRef: HTMLDivElement;
400
+ };
401
+ $slots: Readonly<{
402
+ [name: string]: import('vue').Slot<any> | undefined;
403
+ }>;
404
+ $root: import('vue').ComponentPublicInstance | null;
405
+ $parent: import('vue').ComponentPublicInstance | null;
406
+ $host: Element | null;
407
+ $emit: ((event: "doAction", ...args: any[]) => void) & ((event: "changePage", ...args: any[]) => void);
408
+ $el: HTMLDivElement;
409
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
410
+ name: StringConstructor;
411
+ sheetData: {
412
+ type: ObjectConstructor;
413
+ default: () => {};
414
+ };
415
+ id: StringConstructor;
416
+ sheetId: StringConstructor;
417
+ readonly: {
418
+ type: BooleanConstructor;
419
+ default: boolean;
420
+ };
421
+ reportDesign: {
422
+ type: ObjectConstructor;
423
+ default: () => {};
424
+ };
425
+ designInfo: {
426
+ type: ObjectConstructor;
427
+ default: () => {};
428
+ };
429
+ isEdit: {
430
+ type: BooleanConstructor;
431
+ default: boolean;
432
+ };
433
+ addSheet: {
434
+ type: BooleanConstructor;
435
+ default: boolean;
436
+ };
437
+ changeSheet: {
438
+ type: BooleanConstructor;
439
+ default: boolean;
440
+ };
441
+ openSheetMenu: {
442
+ type: BooleanConstructor;
443
+ default: boolean;
444
+ };
445
+ updateSheet: {
446
+ type: BooleanConstructor;
447
+ default: boolean;
448
+ };
449
+ copySheet: {
450
+ type: BooleanConstructor;
451
+ default: boolean;
452
+ };
453
+ deleteSheet: {
454
+ type: BooleanConstructor;
455
+ default: boolean;
456
+ };
457
+ type: {
458
+ type: StringConstructor;
459
+ default: string;
460
+ };
461
+ }>> & Readonly<{
462
+ onDoAction?: ((...args: any[]) => any) | undefined;
463
+ onChangePage?: ((...args: any[]) => any) | undefined;
464
+ }>, {
465
+ cellClick: () => void;
466
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
467
+ doAction: (...args: any[]) => void;
468
+ changePage: (...args: any[]) => void;
469
+ }, string, {
470
+ type: string;
471
+ sheetData: Record<string, any>;
472
+ readonly: boolean;
473
+ reportDesign: Record<string, any>;
474
+ designInfo: Record<string, any>;
475
+ isEdit: boolean;
476
+ addSheet: boolean;
477
+ changeSheet: boolean;
478
+ openSheetMenu: boolean;
479
+ updateSheet: boolean;
480
+ copySheet: boolean;
481
+ deleteSheet: boolean;
482
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
483
+ beforeCreate?: (() => void) | (() => void)[];
484
+ created?: (() => void) | (() => void)[];
485
+ beforeMount?: (() => void) | (() => void)[];
486
+ mounted?: (() => void) | (() => void)[];
487
+ beforeUpdate?: (() => void) | (() => void)[];
488
+ updated?: (() => void) | (() => void)[];
489
+ activated?: (() => void) | (() => void)[];
490
+ deactivated?: (() => void) | (() => void)[];
491
+ beforeDestroy?: (() => void) | (() => void)[];
492
+ beforeUnmount?: (() => void) | (() => void)[];
493
+ destroyed?: (() => void) | (() => void)[];
494
+ unmounted?: (() => void) | (() => void)[];
495
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
496
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
497
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
498
+ };
499
+ $forceUpdate: () => void;
500
+ $nextTick: typeof nextTick;
501
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
502
+ } & Readonly<{
503
+ type: string;
504
+ sheetData: Record<string, any>;
505
+ readonly: boolean;
506
+ reportDesign: Record<string, any>;
507
+ designInfo: Record<string, any>;
508
+ isEdit: boolean;
509
+ addSheet: boolean;
510
+ changeSheet: boolean;
511
+ openSheetMenu: boolean;
512
+ updateSheet: boolean;
513
+ copySheet: boolean;
514
+ deleteSheet: boolean;
515
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
516
+ name: StringConstructor;
517
+ sheetData: {
518
+ type: ObjectConstructor;
519
+ default: () => {};
520
+ };
521
+ id: StringConstructor;
522
+ sheetId: StringConstructor;
523
+ readonly: {
524
+ type: BooleanConstructor;
525
+ default: boolean;
526
+ };
527
+ reportDesign: {
528
+ type: ObjectConstructor;
529
+ default: () => {};
530
+ };
531
+ designInfo: {
532
+ type: ObjectConstructor;
533
+ default: () => {};
534
+ };
535
+ isEdit: {
536
+ type: BooleanConstructor;
537
+ default: boolean;
538
+ };
539
+ addSheet: {
540
+ type: BooleanConstructor;
541
+ default: boolean;
542
+ };
543
+ changeSheet: {
544
+ type: BooleanConstructor;
545
+ default: boolean;
546
+ };
547
+ openSheetMenu: {
548
+ type: BooleanConstructor;
549
+ default: boolean;
550
+ };
551
+ updateSheet: {
552
+ type: BooleanConstructor;
553
+ default: boolean;
554
+ };
555
+ copySheet: {
556
+ type: BooleanConstructor;
557
+ default: boolean;
558
+ };
559
+ deleteSheet: {
560
+ type: BooleanConstructor;
561
+ default: boolean;
562
+ };
563
+ type: {
564
+ type: StringConstructor;
565
+ default: string;
566
+ };
567
+ }>> & Readonly<{
568
+ onDoAction?: ((...args: any[]) => any) | undefined;
569
+ onChangePage?: ((...args: any[]) => any) | undefined;
570
+ }>, "cellClick" | ("type" | "sheetData" | "readonly" | "reportDesign" | "designInfo" | "isEdit" | "addSheet" | "changeSheet" | "openSheetMenu" | "updateSheet" | "copySheet" | "deleteSheet")> & {
571
+ cellClick: () => void;
572
+ } & {} & import('vue').ComponentCustomProperties & {} & {
573
+ $slots: {
574
+ footer?(_: {}): any;
575
+ default?(_: {}): any;
576
+ };
577
+ }) | null;
578
+ };
579
+ rootEl: HTMLDivElement;
580
+ };
581
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
582
+ declare const __VLS_component: import('vue').DefineComponent<JvsExcelProps, {
583
+ doAction: typeof handleDoAction;
584
+ getData: typeof getData;
585
+ setData: typeof setData;
586
+ importExcelFile: typeof importExcelFile;
587
+ exportExcelFile: typeof exportExcelFile;
588
+ forceCommitEdit: typeof forceCommitEdit;
589
+ flushCommandList: typeof flushCommandList;
590
+ resetCommandList: typeof resetCommandList;
591
+ applyCollabCommands: typeof applyCollabCommands;
592
+ getUniverAPI: typeof getUniverAPI;
593
+ getUniver: typeof getUniver;
594
+ getActiveWorkbook: typeof getActiveWorkbook;
595
+ getActiveSheet: typeof getActiveSheet;
596
+ univerAPI: import('vue').Ref<any, any>;
597
+ univerSheetRef: import('vue').Ref<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
598
+ reportDesign: {
599
+ type: ObjectConstructor;
600
+ default: () => {};
601
+ };
602
+ designInfo: {
603
+ type: ObjectConstructor;
604
+ default: () => {};
605
+ };
606
+ isEdit: {
607
+ type: BooleanConstructor;
608
+ default: boolean;
609
+ };
610
+ locale: {
611
+ type: StringConstructor;
612
+ default: string;
613
+ };
614
+ memberList: {
615
+ type: ArrayConstructor;
616
+ default: () => never[];
617
+ };
618
+ uploadImage: {
619
+ type: FunctionConstructor;
620
+ default: undefined;
621
+ };
622
+ }>> & Readonly<{
623
+ onCellClick?: ((...args: any[]) => any) | undefined;
624
+ "onUpdate:currentCell"?: ((...args: any[]) => any) | undefined;
625
+ "onUpdate:sheetData"?: ((...args: any[]) => any) | undefined;
626
+ "onUpdate:undoNum"?: ((...args: any[]) => any) | undefined;
627
+ "onUpdate:redoNum"?: ((...args: any[]) => any) | undefined;
628
+ "onUpdate:currentSheetId"?: ((...args: any[]) => any) | undefined;
629
+ "onUpdate:editCell"?: ((...args: any[]) => any) | undefined;
630
+ onCommandExecuted?: ((...args: any[]) => any) | undefined;
631
+ onNewChanges?: ((...args: any[]) => any) | undefined;
632
+ onRangeChange?: ((...args: any[]) => any) | undefined;
633
+ onUniverCellChange?: ((...args: any[]) => any) | undefined;
634
+ onReady?: ((...args: any[]) => any) | undefined;
635
+ }>, {
636
+ doAction: (item: any) => void;
637
+ editCell: import('vue').Ref<boolean, boolean>;
638
+ getData: (isEnd?: boolean) => any;
639
+ sendRangeInfo: () => void;
640
+ resetCommandList: () => void;
641
+ changeUniverEditStatus: (value: boolean) => Promise<void>;
642
+ flushCommandList: () => void;
643
+ forceCommitEdit: () => Promise<void>;
644
+ applyCollabCommands: (commands: import('./sheet.vue').CommandListItem[]) => void;
645
+ getUniverAPI: () => any;
646
+ getUniver: () => any;
647
+ univerRef: import('vue').Ref<any, any>;
648
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
649
+ cellClick: (...args: any[]) => void;
650
+ "update:currentCell": (...args: any[]) => void;
651
+ "update:sheetData": (...args: any[]) => void;
652
+ "update:undoNum": (...args: any[]) => void;
653
+ "update:redoNum": (...args: any[]) => void;
654
+ "update:currentSheetId": (...args: any[]) => void;
655
+ "update:editCell": (...args: any[]) => void;
656
+ commandExecuted: (...args: any[]) => void;
657
+ newChanges: (...args: any[]) => void;
658
+ rangeChange: (...args: any[]) => void;
659
+ univerCellChange: (...args: any[]) => void;
660
+ ready: (...args: any[]) => void;
661
+ }, import('vue').PublicProps, {
662
+ reportDesign: Record<string, any>;
663
+ designInfo: Record<string, any>;
664
+ isEdit: boolean;
665
+ locale: string;
666
+ memberList: unknown[];
667
+ uploadImage: Function;
668
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
669
+ sheetContainerRef: HTMLDivElement;
670
+ memberCanvasRef: HTMLCanvasElement;
671
+ sheetImageInputRef: HTMLInputElement;
672
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
673
+ P: {};
674
+ B: {};
675
+ D: {};
676
+ C: {};
677
+ M: {};
678
+ Defaults: {};
679
+ }, Readonly<import('vue').ExtractPropTypes<{
680
+ reportDesign: {
681
+ type: ObjectConstructor;
682
+ default: () => {};
683
+ };
684
+ designInfo: {
685
+ type: ObjectConstructor;
686
+ default: () => {};
687
+ };
688
+ isEdit: {
689
+ type: BooleanConstructor;
690
+ default: boolean;
691
+ };
692
+ locale: {
693
+ type: StringConstructor;
694
+ default: string;
695
+ };
696
+ memberList: {
697
+ type: ArrayConstructor;
698
+ default: () => never[];
699
+ };
700
+ uploadImage: {
701
+ type: FunctionConstructor;
702
+ default: undefined;
703
+ };
704
+ }>> & Readonly<{
705
+ onCellClick?: ((...args: any[]) => any) | undefined;
706
+ "onUpdate:currentCell"?: ((...args: any[]) => any) | undefined;
707
+ "onUpdate:sheetData"?: ((...args: any[]) => any) | undefined;
708
+ "onUpdate:undoNum"?: ((...args: any[]) => any) | undefined;
709
+ "onUpdate:redoNum"?: ((...args: any[]) => any) | undefined;
710
+ "onUpdate:currentSheetId"?: ((...args: any[]) => any) | undefined;
711
+ "onUpdate:editCell"?: ((...args: any[]) => any) | undefined;
712
+ onCommandExecuted?: ((...args: any[]) => any) | undefined;
713
+ onNewChanges?: ((...args: any[]) => any) | undefined;
714
+ onRangeChange?: ((...args: any[]) => any) | undefined;
715
+ onUniverCellChange?: ((...args: any[]) => any) | undefined;
716
+ onReady?: ((...args: any[]) => any) | undefined;
717
+ }>, {
718
+ doAction: (item: any) => void;
719
+ editCell: import('vue').Ref<boolean, boolean>;
720
+ getData: (isEnd?: boolean) => any;
721
+ sendRangeInfo: () => void;
722
+ resetCommandList: () => void;
723
+ changeUniverEditStatus: (value: boolean) => Promise<void>;
724
+ flushCommandList: () => void;
725
+ forceCommitEdit: () => Promise<void>;
726
+ applyCollabCommands: (commands: import('./sheet.vue').CommandListItem[]) => void;
727
+ getUniverAPI: () => any;
728
+ getUniver: () => any;
729
+ univerRef: import('vue').Ref<any, any>;
730
+ }, {}, {}, {}, {
731
+ reportDesign: Record<string, any>;
732
+ designInfo: Record<string, any>;
733
+ isEdit: boolean;
734
+ locale: string;
735
+ memberList: unknown[];
736
+ uploadImage: Function;
737
+ }> | null, import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
738
+ reportDesign: {
739
+ type: ObjectConstructor;
740
+ default: () => {};
741
+ };
742
+ designInfo: {
743
+ type: ObjectConstructor;
744
+ default: () => {};
745
+ };
746
+ isEdit: {
747
+ type: BooleanConstructor;
748
+ default: boolean;
749
+ };
750
+ locale: {
751
+ type: StringConstructor;
752
+ default: string;
753
+ };
754
+ memberList: {
755
+ type: ArrayConstructor;
756
+ default: () => never[];
757
+ };
758
+ uploadImage: {
759
+ type: FunctionConstructor;
760
+ default: undefined;
761
+ };
762
+ }>> & Readonly<{
763
+ onCellClick?: ((...args: any[]) => any) | undefined;
764
+ "onUpdate:currentCell"?: ((...args: any[]) => any) | undefined;
765
+ "onUpdate:sheetData"?: ((...args: any[]) => any) | undefined;
766
+ "onUpdate:undoNum"?: ((...args: any[]) => any) | undefined;
767
+ "onUpdate:redoNum"?: ((...args: any[]) => any) | undefined;
768
+ "onUpdate:currentSheetId"?: ((...args: any[]) => any) | undefined;
769
+ "onUpdate:editCell"?: ((...args: any[]) => any) | undefined;
770
+ onCommandExecuted?: ((...args: any[]) => any) | undefined;
771
+ onNewChanges?: ((...args: any[]) => any) | undefined;
772
+ onRangeChange?: ((...args: any[]) => any) | undefined;
773
+ onUniverCellChange?: ((...args: any[]) => any) | undefined;
774
+ onReady?: ((...args: any[]) => any) | undefined;
775
+ }>, {
776
+ doAction: (item: any) => void;
777
+ editCell: import('vue').Ref<boolean, boolean>;
778
+ getData: (isEnd?: boolean) => any;
779
+ sendRangeInfo: () => void;
780
+ resetCommandList: () => void;
781
+ changeUniverEditStatus: (value: boolean) => Promise<void>;
782
+ flushCommandList: () => void;
783
+ forceCommitEdit: () => Promise<void>;
784
+ applyCollabCommands: (commands: import('./sheet.vue').CommandListItem[]) => void;
785
+ getUniverAPI: () => any;
786
+ getUniver: () => any;
787
+ univerRef: import('vue').Ref<any, any>;
788
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
789
+ cellClick: (...args: any[]) => void;
790
+ "update:currentCell": (...args: any[]) => void;
791
+ "update:sheetData": (...args: any[]) => void;
792
+ "update:undoNum": (...args: any[]) => void;
793
+ "update:redoNum": (...args: any[]) => void;
794
+ "update:currentSheetId": (...args: any[]) => void;
795
+ "update:editCell": (...args: any[]) => void;
796
+ commandExecuted: (...args: any[]) => void;
797
+ newChanges: (...args: any[]) => void;
798
+ rangeChange: (...args: any[]) => void;
799
+ univerCellChange: (...args: any[]) => void;
800
+ ready: (...args: any[]) => void;
801
+ }, import('vue').PublicProps, {
802
+ reportDesign: Record<string, any>;
803
+ designInfo: Record<string, any>;
804
+ isEdit: boolean;
805
+ locale: string;
806
+ memberList: unknown[];
807
+ uploadImage: Function;
808
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
809
+ sheetContainerRef: HTMLDivElement;
810
+ memberCanvasRef: HTMLCanvasElement;
811
+ sheetImageInputRef: HTMLInputElement;
812
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
813
+ P: {};
814
+ B: {};
815
+ D: {};
816
+ C: {};
817
+ M: {};
818
+ Defaults: {};
819
+ }, Readonly<import('vue').ExtractPropTypes<{
820
+ reportDesign: {
821
+ type: ObjectConstructor;
822
+ default: () => {};
823
+ };
824
+ designInfo: {
825
+ type: ObjectConstructor;
826
+ default: () => {};
827
+ };
828
+ isEdit: {
829
+ type: BooleanConstructor;
830
+ default: boolean;
831
+ };
832
+ locale: {
833
+ type: StringConstructor;
834
+ default: string;
835
+ };
836
+ memberList: {
837
+ type: ArrayConstructor;
838
+ default: () => never[];
839
+ };
840
+ uploadImage: {
841
+ type: FunctionConstructor;
842
+ default: undefined;
843
+ };
844
+ }>> & Readonly<{
845
+ onCellClick?: ((...args: any[]) => any) | undefined;
846
+ "onUpdate:currentCell"?: ((...args: any[]) => any) | undefined;
847
+ "onUpdate:sheetData"?: ((...args: any[]) => any) | undefined;
848
+ "onUpdate:undoNum"?: ((...args: any[]) => any) | undefined;
849
+ "onUpdate:redoNum"?: ((...args: any[]) => any) | undefined;
850
+ "onUpdate:currentSheetId"?: ((...args: any[]) => any) | undefined;
851
+ "onUpdate:editCell"?: ((...args: any[]) => any) | undefined;
852
+ onCommandExecuted?: ((...args: any[]) => any) | undefined;
853
+ onNewChanges?: ((...args: any[]) => any) | undefined;
854
+ onRangeChange?: ((...args: any[]) => any) | undefined;
855
+ onUniverCellChange?: ((...args: any[]) => any) | undefined;
856
+ onReady?: ((...args: any[]) => any) | undefined;
857
+ }>, {
858
+ doAction: (item: any) => void;
859
+ editCell: import('vue').Ref<boolean, boolean>;
860
+ getData: (isEnd?: boolean) => any;
861
+ sendRangeInfo: () => void;
862
+ resetCommandList: () => void;
863
+ changeUniverEditStatus: (value: boolean) => Promise<void>;
864
+ flushCommandList: () => void;
865
+ forceCommitEdit: () => Promise<void>;
866
+ applyCollabCommands: (commands: import('./sheet.vue').CommandListItem[]) => void;
867
+ getUniverAPI: () => any;
868
+ getUniver: () => any;
869
+ univerRef: import('vue').Ref<any, any>;
870
+ }, {}, {}, {}, {
871
+ reportDesign: Record<string, any>;
872
+ designInfo: Record<string, any>;
873
+ isEdit: boolean;
874
+ locale: string;
875
+ memberList: unknown[];
876
+ uploadImage: Function;
877
+ }> | null>;
878
+ createBaseReportData: typeof createBaseReportData;
879
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
880
+ changePage: (...args: any[]) => void;
881
+ commandExecuted: (...args: any[]) => void;
882
+ newChanges: (...args: any[]) => void;
883
+ rangeChange: (...args: any[]) => void;
884
+ univerCellChange: (...args: any[]) => void;
885
+ ready: (...args: any[]) => void;
886
+ }, string, import('vue').PublicProps, Readonly<JvsExcelProps> & Readonly<{
887
+ onChangePage?: ((...args: any[]) => any) | undefined;
888
+ onCommandExecuted?: ((...args: any[]) => any) | undefined;
889
+ onNewChanges?: ((...args: any[]) => any) | undefined;
890
+ onRangeChange?: ((...args: any[]) => any) | undefined;
891
+ onUniverCellChange?: ((...args: any[]) => any) | undefined;
892
+ onReady?: ((...args: any[]) => any) | undefined;
893
+ }>, {
894
+ id: string;
895
+ readonly: boolean;
896
+ designInfo: Record<string, any>;
897
+ isEdit: boolean;
898
+ locale: string;
899
+ memberList: any[];
900
+ uploadImage: (file: File) => Promise<string>;
901
+ workbookData: Record<string, any>;
902
+ fileContent: ExcelInputSource;
903
+ fileUrl: string;
904
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
905
+ sheetHeaderRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
906
+ currentData: {
907
+ type: ObjectConstructor;
908
+ default: () => {};
909
+ };
910
+ sheetData: {
911
+ type: ObjectConstructor;
912
+ default: () => {};
913
+ };
914
+ id: StringConstructor;
915
+ readonly: {
916
+ type: BooleanConstructor;
917
+ default: boolean;
918
+ };
919
+ redoNum: {
920
+ type: NumberConstructor;
921
+ default: number;
922
+ };
923
+ undoNum: {
924
+ type: NumberConstructor;
925
+ default: number;
926
+ };
927
+ }>> & Readonly<{
928
+ onDoAction?: ((...args: any[]) => any) | undefined;
929
+ }>, {
930
+ cellClick: () => void;
931
+ onClickOutside: (e?: MouseEvent) => void;
932
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
933
+ doAction: (...args: any[]) => void;
934
+ }, import('vue').PublicProps, {
935
+ currentData: Record<string, any>;
936
+ redoNum: number;
937
+ undoNum: number;
938
+ sheetData: Record<string, any>;
939
+ readonly: boolean;
940
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
941
+ headerEl: HTMLDivElement;
942
+ moreRef: HTMLDivElement;
943
+ popoverRef: unknown;
944
+ }, any, import('vue').ComponentProvideOptions, {
945
+ P: {};
946
+ B: {};
947
+ D: {};
948
+ C: {};
949
+ M: {};
950
+ Defaults: {};
951
+ }, Readonly<import('vue').ExtractPropTypes<{
952
+ currentData: {
953
+ type: ObjectConstructor;
954
+ default: () => {};
955
+ };
956
+ sheetData: {
957
+ type: ObjectConstructor;
958
+ default: () => {};
959
+ };
960
+ id: StringConstructor;
961
+ readonly: {
962
+ type: BooleanConstructor;
963
+ default: boolean;
964
+ };
965
+ redoNum: {
966
+ type: NumberConstructor;
967
+ default: number;
968
+ };
969
+ undoNum: {
970
+ type: NumberConstructor;
971
+ default: number;
972
+ };
973
+ }>> & Readonly<{
974
+ onDoAction?: ((...args: any[]) => any) | undefined;
975
+ }>, {
976
+ cellClick: () => void;
977
+ onClickOutside: (e?: MouseEvent) => void;
978
+ }, {}, {}, {}, {
979
+ currentData: Record<string, any>;
980
+ redoNum: number;
981
+ undoNum: number;
982
+ sheetData: Record<string, any>;
983
+ readonly: boolean;
984
+ }> | null;
985
+ univerSheetRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
986
+ reportDesign: {
987
+ type: ObjectConstructor;
988
+ default: () => {};
989
+ };
990
+ designInfo: {
991
+ type: ObjectConstructor;
992
+ default: () => {};
993
+ };
994
+ isEdit: {
995
+ type: BooleanConstructor;
996
+ default: boolean;
997
+ };
998
+ locale: {
999
+ type: StringConstructor;
1000
+ default: string;
1001
+ };
1002
+ memberList: {
1003
+ type: ArrayConstructor;
1004
+ default: () => never[];
1005
+ };
1006
+ uploadImage: {
1007
+ type: FunctionConstructor;
1008
+ default: undefined;
1009
+ };
1010
+ }>> & Readonly<{
1011
+ onCellClick?: ((...args: any[]) => any) | undefined;
1012
+ "onUpdate:currentCell"?: ((...args: any[]) => any) | undefined;
1013
+ "onUpdate:sheetData"?: ((...args: any[]) => any) | undefined;
1014
+ "onUpdate:undoNum"?: ((...args: any[]) => any) | undefined;
1015
+ "onUpdate:redoNum"?: ((...args: any[]) => any) | undefined;
1016
+ "onUpdate:currentSheetId"?: ((...args: any[]) => any) | undefined;
1017
+ "onUpdate:editCell"?: ((...args: any[]) => any) | undefined;
1018
+ onCommandExecuted?: ((...args: any[]) => any) | undefined;
1019
+ onNewChanges?: ((...args: any[]) => any) | undefined;
1020
+ onRangeChange?: ((...args: any[]) => any) | undefined;
1021
+ onUniverCellChange?: ((...args: any[]) => any) | undefined;
1022
+ onReady?: ((...args: any[]) => any) | undefined;
1023
+ }>, {
1024
+ doAction: (item: any) => void;
1025
+ editCell: import('vue').Ref<boolean, boolean>;
1026
+ getData: (isEnd?: boolean) => any;
1027
+ sendRangeInfo: () => void;
1028
+ resetCommandList: () => void;
1029
+ changeUniverEditStatus: (value: boolean) => Promise<void>;
1030
+ flushCommandList: () => void;
1031
+ forceCommitEdit: () => Promise<void>;
1032
+ applyCollabCommands: (commands: import('./sheet.vue').CommandListItem[]) => void;
1033
+ getUniverAPI: () => any;
1034
+ getUniver: () => any;
1035
+ univerRef: import('vue').Ref<any, any>;
1036
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1037
+ cellClick: (...args: any[]) => void;
1038
+ "update:currentCell": (...args: any[]) => void;
1039
+ "update:sheetData": (...args: any[]) => void;
1040
+ "update:undoNum": (...args: any[]) => void;
1041
+ "update:redoNum": (...args: any[]) => void;
1042
+ "update:currentSheetId": (...args: any[]) => void;
1043
+ "update:editCell": (...args: any[]) => void;
1044
+ commandExecuted: (...args: any[]) => void;
1045
+ newChanges: (...args: any[]) => void;
1046
+ rangeChange: (...args: any[]) => void;
1047
+ univerCellChange: (...args: any[]) => void;
1048
+ ready: (...args: any[]) => void;
1049
+ }, import('vue').PublicProps, {
1050
+ reportDesign: Record<string, any>;
1051
+ designInfo: Record<string, any>;
1052
+ isEdit: boolean;
1053
+ locale: string;
1054
+ memberList: unknown[];
1055
+ uploadImage: Function;
1056
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
1057
+ sheetContainerRef: HTMLDivElement;
1058
+ memberCanvasRef: HTMLCanvasElement;
1059
+ sheetImageInputRef: HTMLInputElement;
1060
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
1061
+ P: {};
1062
+ B: {};
1063
+ D: {};
1064
+ C: {};
1065
+ M: {};
1066
+ Defaults: {};
1067
+ }, Readonly<import('vue').ExtractPropTypes<{
1068
+ reportDesign: {
1069
+ type: ObjectConstructor;
1070
+ default: () => {};
1071
+ };
1072
+ designInfo: {
1073
+ type: ObjectConstructor;
1074
+ default: () => {};
1075
+ };
1076
+ isEdit: {
1077
+ type: BooleanConstructor;
1078
+ default: boolean;
1079
+ };
1080
+ locale: {
1081
+ type: StringConstructor;
1082
+ default: string;
1083
+ };
1084
+ memberList: {
1085
+ type: ArrayConstructor;
1086
+ default: () => never[];
1087
+ };
1088
+ uploadImage: {
1089
+ type: FunctionConstructor;
1090
+ default: undefined;
1091
+ };
1092
+ }>> & Readonly<{
1093
+ onCellClick?: ((...args: any[]) => any) | undefined;
1094
+ "onUpdate:currentCell"?: ((...args: any[]) => any) | undefined;
1095
+ "onUpdate:sheetData"?: ((...args: any[]) => any) | undefined;
1096
+ "onUpdate:undoNum"?: ((...args: any[]) => any) | undefined;
1097
+ "onUpdate:redoNum"?: ((...args: any[]) => any) | undefined;
1098
+ "onUpdate:currentSheetId"?: ((...args: any[]) => any) | undefined;
1099
+ "onUpdate:editCell"?: ((...args: any[]) => any) | undefined;
1100
+ onCommandExecuted?: ((...args: any[]) => any) | undefined;
1101
+ onNewChanges?: ((...args: any[]) => any) | undefined;
1102
+ onRangeChange?: ((...args: any[]) => any) | undefined;
1103
+ onUniverCellChange?: ((...args: any[]) => any) | undefined;
1104
+ onReady?: ((...args: any[]) => any) | undefined;
1105
+ }>, {
1106
+ doAction: (item: any) => void;
1107
+ editCell: import('vue').Ref<boolean, boolean>;
1108
+ getData: (isEnd?: boolean) => any;
1109
+ sendRangeInfo: () => void;
1110
+ resetCommandList: () => void;
1111
+ changeUniverEditStatus: (value: boolean) => Promise<void>;
1112
+ flushCommandList: () => void;
1113
+ forceCommitEdit: () => Promise<void>;
1114
+ applyCollabCommands: (commands: import('./sheet.vue').CommandListItem[]) => void;
1115
+ getUniverAPI: () => any;
1116
+ getUniver: () => any;
1117
+ univerRef: import('vue').Ref<any, any>;
1118
+ }, {}, {}, {}, {
1119
+ reportDesign: Record<string, any>;
1120
+ designInfo: Record<string, any>;
1121
+ isEdit: boolean;
1122
+ locale: string;
1123
+ memberList: unknown[];
1124
+ uploadImage: Function;
1125
+ }> | null;
1126
+ sheetFooterRef: ({
1127
+ $: import('vue').ComponentInternalInstance;
1128
+ $data: {};
1129
+ $props: Partial<{
1130
+ type: string;
1131
+ sheetData: Record<string, any>;
1132
+ readonly: boolean;
1133
+ reportDesign: Record<string, any>;
1134
+ designInfo: Record<string, any>;
1135
+ isEdit: boolean;
1136
+ addSheet: boolean;
1137
+ changeSheet: boolean;
1138
+ openSheetMenu: boolean;
1139
+ updateSheet: boolean;
1140
+ copySheet: boolean;
1141
+ deleteSheet: boolean;
1142
+ }> & Omit<{
1143
+ readonly type: string;
1144
+ readonly sheetData: Record<string, any>;
1145
+ readonly readonly: boolean;
1146
+ readonly reportDesign: Record<string, any>;
1147
+ readonly designInfo: Record<string, any>;
1148
+ readonly isEdit: boolean;
1149
+ readonly addSheet: boolean;
1150
+ readonly changeSheet: boolean;
1151
+ readonly openSheetMenu: boolean;
1152
+ readonly updateSheet: boolean;
1153
+ readonly copySheet: boolean;
1154
+ readonly deleteSheet: boolean;
1155
+ readonly name?: string | undefined;
1156
+ readonly id?: string | undefined;
1157
+ readonly sheetId?: string | undefined;
1158
+ readonly onDoAction?: ((...args: any[]) => any) | undefined;
1159
+ readonly onChangePage?: ((...args: any[]) => any) | undefined;
1160
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "sheetData" | "readonly" | "reportDesign" | "designInfo" | "isEdit" | "addSheet" | "changeSheet" | "openSheetMenu" | "updateSheet" | "copySheet" | "deleteSheet">;
1161
+ $attrs: import('vue').Attrs;
1162
+ $refs: {
1163
+ [x: string]: unknown;
1164
+ } & {
1165
+ footeContentRef: HTMLDivElement;
1166
+ chagneSheetsButtonRef: HTMLDivElement;
1167
+ sheetsNameBoxRef: HTMLDivElement;
1168
+ sheetsNameContentRef: HTMLDivElement;
1169
+ pageSelectRef: HTMLDivElement;
1170
+ buttonColorRef: ({
1171
+ $: import('vue').ComponentInternalInstance;
1172
+ $data: {};
1173
+ $props: {
1174
+ readonly modelValue?: string | undefined;
1175
+ readonly resetColor?: string | undefined;
1176
+ readonly width?: string | undefined;
1177
+ readonly customClass?: string | undefined;
1178
+ readonly disable?: boolean | undefined;
1179
+ readonly openGradual?: boolean | undefined;
1180
+ readonly theme?: string | undefined;
1181
+ readonly onChange?: ((val: string) => any) | undefined;
1182
+ readonly "onUpdate:modelValue"?: ((val: string) => any) | undefined;
1183
+ readonly onPopShow?: (() => any) | undefined;
1184
+ readonly onPopHidden?: ((val: boolean) => any) | undefined;
1185
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
1186
+ $attrs: import('vue').Attrs;
1187
+ $refs: {
1188
+ [x: string]: unknown;
1189
+ } & {
1190
+ triggerRef: HTMLDivElement;
1191
+ };
1192
+ $slots: Readonly<{
1193
+ [name: string]: import('vue').Slot<any> | undefined;
1194
+ }>;
1195
+ $root: import('vue').ComponentPublicInstance | null;
1196
+ $parent: import('vue').ComponentPublicInstance | null;
1197
+ $host: Element | null;
1198
+ $emit: ((event: "change", val: string) => void) & ((event: "update:modelValue", val: string) => void) & ((event: "popShow") => void) & ((event: "popHidden", val: boolean) => void);
1199
+ $el: any;
1200
+ $options: import('vue').ComponentOptionsBase<Readonly<{
1201
+ modelValue?: string;
1202
+ resetColor?: string;
1203
+ width?: string;
1204
+ customClass?: string;
1205
+ disable?: boolean;
1206
+ openGradual?: boolean;
1207
+ theme?: string;
1208
+ }> & Readonly<{
1209
+ onChange?: ((val: string) => any) | undefined;
1210
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
1211
+ onPopShow?: (() => any) | undefined;
1212
+ onPopHidden?: ((val: boolean) => any) | undefined;
1213
+ }>, {
1214
+ handleScroll: () => void;
1215
+ closePopover: () => void;
1216
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1217
+ change: (val: string) => any;
1218
+ "update:modelValue": (val: string) => any;
1219
+ popShow: () => any;
1220
+ popHidden: (val: boolean) => any;
1221
+ }, string, {
1222
+ modelValue: string;
1223
+ resetColor: string;
1224
+ width: string;
1225
+ customClass: string;
1226
+ disable: boolean;
1227
+ openGradual: boolean;
1228
+ theme: string;
1229
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
1230
+ beforeCreate?: (() => void) | (() => void)[];
1231
+ created?: (() => void) | (() => void)[];
1232
+ beforeMount?: (() => void) | (() => void)[];
1233
+ mounted?: (() => void) | (() => void)[];
1234
+ beforeUpdate?: (() => void) | (() => void)[];
1235
+ updated?: (() => void) | (() => void)[];
1236
+ activated?: (() => void) | (() => void)[];
1237
+ deactivated?: (() => void) | (() => void)[];
1238
+ beforeDestroy?: (() => void) | (() => void)[];
1239
+ beforeUnmount?: (() => void) | (() => void)[];
1240
+ destroyed?: (() => void) | (() => void)[];
1241
+ unmounted?: (() => void) | (() => void)[];
1242
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
1243
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
1244
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
1245
+ };
1246
+ $forceUpdate: () => void;
1247
+ $nextTick: typeof nextTick;
1248
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
1249
+ } & Readonly<{
1250
+ modelValue: string;
1251
+ resetColor: string;
1252
+ width: string;
1253
+ customClass: string;
1254
+ disable: boolean;
1255
+ openGradual: boolean;
1256
+ theme: string;
1257
+ }> & Omit<Readonly<{
1258
+ modelValue?: string;
1259
+ resetColor?: string;
1260
+ width?: string;
1261
+ customClass?: string;
1262
+ disable?: boolean;
1263
+ openGradual?: boolean;
1264
+ theme?: string;
1265
+ }> & Readonly<{
1266
+ onChange?: ((val: string) => any) | undefined;
1267
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
1268
+ onPopShow?: (() => any) | undefined;
1269
+ onPopHidden?: ((val: boolean) => any) | undefined;
1270
+ }>, "handleScroll" | "closePopover" | ("modelValue" | "resetColor" | "width" | "customClass" | "disable" | "openGradual" | "theme")> & {
1271
+ handleScroll: () => void;
1272
+ closePopover: () => void;
1273
+ } & {} & import('vue').ComponentCustomProperties & {} & {
1274
+ $slots: {
1275
+ default?(_: {}): any;
1276
+ };
1277
+ }) | null;
1278
+ scaleBarRef: HTMLDivElement;
1279
+ scaleRatioRef: HTMLDivElement;
1280
+ };
1281
+ $slots: Readonly<{
1282
+ [name: string]: import('vue').Slot<any> | undefined;
1283
+ }>;
1284
+ $root: import('vue').ComponentPublicInstance | null;
1285
+ $parent: import('vue').ComponentPublicInstance | null;
1286
+ $host: Element | null;
1287
+ $emit: ((event: "doAction", ...args: any[]) => void) & ((event: "changePage", ...args: any[]) => void);
1288
+ $el: HTMLDivElement;
1289
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
1290
+ name: StringConstructor;
1291
+ sheetData: {
1292
+ type: ObjectConstructor;
1293
+ default: () => {};
1294
+ };
1295
+ id: StringConstructor;
1296
+ sheetId: StringConstructor;
1297
+ readonly: {
1298
+ type: BooleanConstructor;
1299
+ default: boolean;
1300
+ };
1301
+ reportDesign: {
1302
+ type: ObjectConstructor;
1303
+ default: () => {};
1304
+ };
1305
+ designInfo: {
1306
+ type: ObjectConstructor;
1307
+ default: () => {};
1308
+ };
1309
+ isEdit: {
1310
+ type: BooleanConstructor;
1311
+ default: boolean;
1312
+ };
1313
+ addSheet: {
1314
+ type: BooleanConstructor;
1315
+ default: boolean;
1316
+ };
1317
+ changeSheet: {
1318
+ type: BooleanConstructor;
1319
+ default: boolean;
1320
+ };
1321
+ openSheetMenu: {
1322
+ type: BooleanConstructor;
1323
+ default: boolean;
1324
+ };
1325
+ updateSheet: {
1326
+ type: BooleanConstructor;
1327
+ default: boolean;
1328
+ };
1329
+ copySheet: {
1330
+ type: BooleanConstructor;
1331
+ default: boolean;
1332
+ };
1333
+ deleteSheet: {
1334
+ type: BooleanConstructor;
1335
+ default: boolean;
1336
+ };
1337
+ type: {
1338
+ type: StringConstructor;
1339
+ default: string;
1340
+ };
1341
+ }>> & Readonly<{
1342
+ onDoAction?: ((...args: any[]) => any) | undefined;
1343
+ onChangePage?: ((...args: any[]) => any) | undefined;
1344
+ }>, {
1345
+ cellClick: () => void;
1346
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1347
+ doAction: (...args: any[]) => void;
1348
+ changePage: (...args: any[]) => void;
1349
+ }, string, {
1350
+ type: string;
1351
+ sheetData: Record<string, any>;
1352
+ readonly: boolean;
1353
+ reportDesign: Record<string, any>;
1354
+ designInfo: Record<string, any>;
1355
+ isEdit: boolean;
1356
+ addSheet: boolean;
1357
+ changeSheet: boolean;
1358
+ openSheetMenu: boolean;
1359
+ updateSheet: boolean;
1360
+ copySheet: boolean;
1361
+ deleteSheet: boolean;
1362
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
1363
+ beforeCreate?: (() => void) | (() => void)[];
1364
+ created?: (() => void) | (() => void)[];
1365
+ beforeMount?: (() => void) | (() => void)[];
1366
+ mounted?: (() => void) | (() => void)[];
1367
+ beforeUpdate?: (() => void) | (() => void)[];
1368
+ updated?: (() => void) | (() => void)[];
1369
+ activated?: (() => void) | (() => void)[];
1370
+ deactivated?: (() => void) | (() => void)[];
1371
+ beforeDestroy?: (() => void) | (() => void)[];
1372
+ beforeUnmount?: (() => void) | (() => void)[];
1373
+ destroyed?: (() => void) | (() => void)[];
1374
+ unmounted?: (() => void) | (() => void)[];
1375
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
1376
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
1377
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
1378
+ };
1379
+ $forceUpdate: () => void;
1380
+ $nextTick: typeof nextTick;
1381
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
1382
+ } & Readonly<{
1383
+ type: string;
1384
+ sheetData: Record<string, any>;
1385
+ readonly: boolean;
1386
+ reportDesign: Record<string, any>;
1387
+ designInfo: Record<string, any>;
1388
+ isEdit: boolean;
1389
+ addSheet: boolean;
1390
+ changeSheet: boolean;
1391
+ openSheetMenu: boolean;
1392
+ updateSheet: boolean;
1393
+ copySheet: boolean;
1394
+ deleteSheet: boolean;
1395
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
1396
+ name: StringConstructor;
1397
+ sheetData: {
1398
+ type: ObjectConstructor;
1399
+ default: () => {};
1400
+ };
1401
+ id: StringConstructor;
1402
+ sheetId: StringConstructor;
1403
+ readonly: {
1404
+ type: BooleanConstructor;
1405
+ default: boolean;
1406
+ };
1407
+ reportDesign: {
1408
+ type: ObjectConstructor;
1409
+ default: () => {};
1410
+ };
1411
+ designInfo: {
1412
+ type: ObjectConstructor;
1413
+ default: () => {};
1414
+ };
1415
+ isEdit: {
1416
+ type: BooleanConstructor;
1417
+ default: boolean;
1418
+ };
1419
+ addSheet: {
1420
+ type: BooleanConstructor;
1421
+ default: boolean;
1422
+ };
1423
+ changeSheet: {
1424
+ type: BooleanConstructor;
1425
+ default: boolean;
1426
+ };
1427
+ openSheetMenu: {
1428
+ type: BooleanConstructor;
1429
+ default: boolean;
1430
+ };
1431
+ updateSheet: {
1432
+ type: BooleanConstructor;
1433
+ default: boolean;
1434
+ };
1435
+ copySheet: {
1436
+ type: BooleanConstructor;
1437
+ default: boolean;
1438
+ };
1439
+ deleteSheet: {
1440
+ type: BooleanConstructor;
1441
+ default: boolean;
1442
+ };
1443
+ type: {
1444
+ type: StringConstructor;
1445
+ default: string;
1446
+ };
1447
+ }>> & Readonly<{
1448
+ onDoAction?: ((...args: any[]) => any) | undefined;
1449
+ onChangePage?: ((...args: any[]) => any) | undefined;
1450
+ }>, "cellClick" | ("type" | "sheetData" | "readonly" | "reportDesign" | "designInfo" | "isEdit" | "addSheet" | "changeSheet" | "openSheetMenu" | "updateSheet" | "copySheet" | "deleteSheet")> & {
1451
+ cellClick: () => void;
1452
+ } & {} & import('vue').ComponentCustomProperties & {} & {
1453
+ $slots: {
1454
+ footer?(_: {}): any;
1455
+ default?(_: {}): any;
1456
+ };
1457
+ }) | null;
1458
+ }, HTMLDivElement>;
1459
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1460
+ export default _default;
1461
+ type __VLS_WithTemplateSlots<T, S> = T & {
1462
+ new (): {
1463
+ $slots: S;
1464
+ };
1465
+ };