tor-univer-sheet 1.0.0

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.
Files changed (79) hide show
  1. package/README.md +2 -0
  2. package/dist/App.vue.d.ts +2 -0
  3. package/dist/components/ContentWrap/index.d.ts +2 -0
  4. package/dist/components/ContentWrap/src/ContentWrap.vue.d.ts +57 -0
  5. package/dist/components/Form/src/componentMap.d.ts +4 -0
  6. package/dist/components/Form/src/components/InputNumberWrapper.vue.d.ts +2 -0
  7. package/dist/components/Form/src/types.d.ts +16 -0
  8. package/dist/components/GlobalLoading/GlobalLoading.vue.d.ts +8 -0
  9. package/dist/components/GlobalLoading/index.d.ts +7 -0
  10. package/dist/components/IndicatorPointSelect/IndicatorPointSelect.vue.d.ts +2 -0
  11. package/dist/components/UniverSheet/UniverSheet.data.d.ts +23 -0
  12. package/dist/components/UniverSheet/UniverSheet.vue.d.ts +515 -0
  13. package/dist/components/UniverSheet/data.d.ts +9 -0
  14. package/dist/components/UniverSheet/plugins/Plugins.d.ts +29 -0
  15. package/dist/components/UniverSheet/plugins/importFile/ImportFileIcon.vue.d.ts +2 -0
  16. package/dist/components/UniverSheet/plugins/importFile/ImportFilePlugin.d.ts +14 -0
  17. package/dist/components/UniverSheet/plugins/index.d.ts +2 -0
  18. package/dist/components/UniverSheet/plugins/indicatorsContextMenu/IndicatorsContextMenuPlugin.d.ts +16 -0
  19. package/dist/components/UniverSheet/plugins/indicatorsContextMenu/components/IndicatorsMenu.vue.d.ts +2 -0
  20. package/dist/components/UniverSheet/plugins/indicatorsContextMenu/components/IndicatorsUniverSheetConfigDialog.vue.d.ts +234 -0
  21. package/dist/components/UniverSheet/plugins/saveButton/ButtonIcon.vue.d.ts +2 -0
  22. package/dist/components/UniverSheet/plugins/saveButton/SaveButton.d.ts +14 -0
  23. package/dist/components/UniverSheet/plugins/syncContextMenu/SyncContextMenu.vue.d.ts +2 -0
  24. package/dist/components/UniverSheet/plugins/syncContextMenu/SyncContextMenuPlugin.d.ts +14 -0
  25. package/dist/components/UniverSheet/plugins/timeConfigContextMenu/TimeConfigContextMenuPlugin.d.ts +16 -0
  26. package/dist/components/UniverSheet/plugins/timeConfigContextMenu/components/TimeConfigMenu.vue.d.ts +2 -0
  27. package/dist/components/UniverSheet/plugins/timeConfigContextMenu/components/TimeConfigUniverSheetConfigDialog.vue.d.ts +234 -0
  28. package/dist/favicon.ico +0 -0
  29. package/dist/hooks/useMessage.d.ts +18 -0
  30. package/dist/index.d.ts +2 -0
  31. package/dist/main.d.ts +0 -0
  32. package/dist/tor-univer-sheet.es.js +213 -0
  33. package/dist/tor-univer-sheet.umd.js +1 -0
  34. package/dist/types/components.d.ts +52 -0
  35. package/dist/types/external-components.d.ts +14 -0
  36. package/dist/types/form.d.ts +51 -0
  37. package/dist/utils/decimal.d.ts +59 -0
  38. package/dist/utils/fileHelp.d.ts +8 -0
  39. package/dist/utils/index.d.ts +2 -0
  40. package/dist/utils/is.d.ts +33 -0
  41. package/dist/utils/propTypes.d.ts +10 -0
  42. package/package.json +88 -0
  43. package/src/App.vue +16 -0
  44. package/src/components/ContentWrap/index.ts +3 -0
  45. package/src/components/ContentWrap/src/ContentWrap.vue +50 -0
  46. package/src/components/Form/src/componentMap.ts +51 -0
  47. package/src/components/Form/src/components/InputNumberWrapper.vue +12 -0
  48. package/src/components/Form/src/types.ts +18 -0
  49. package/src/components/GlobalLoading/GlobalLoading.vue +89 -0
  50. package/src/components/GlobalLoading/index.ts +45 -0
  51. package/src/components/IndicatorPointSelect/IndicatorPointSelect.vue +9 -0
  52. package/src/components/UniverSheet/UniverSheet.data.ts +521 -0
  53. package/src/components/UniverSheet/UniverSheet.vue +339 -0
  54. package/src/components/UniverSheet/data.ts +18 -0
  55. package/src/components/UniverSheet/plugins/Plugins.ts +246 -0
  56. package/src/components/UniverSheet/plugins/importFile/ImportFileIcon.vue +26 -0
  57. package/src/components/UniverSheet/plugins/importFile/ImportFilePlugin.ts +109 -0
  58. package/src/components/UniverSheet/plugins/index.ts +10 -0
  59. package/src/components/UniverSheet/plugins/indicatorsContextMenu/IndicatorsContextMenuPlugin.ts +134 -0
  60. package/src/components/UniverSheet/plugins/indicatorsContextMenu/components/IndicatorsMenu.vue +49 -0
  61. package/src/components/UniverSheet/plugins/indicatorsContextMenu/components/IndicatorsUniverSheetConfigDialog.vue +153 -0
  62. package/src/components/UniverSheet/plugins/saveButton/ButtonIcon.vue +19 -0
  63. package/src/components/UniverSheet/plugins/saveButton/SaveButton.ts +68 -0
  64. package/src/components/UniverSheet/plugins/syncContextMenu/SyncContextMenu.vue +24 -0
  65. package/src/components/UniverSheet/plugins/syncContextMenu/SyncContextMenuPlugin.ts +65 -0
  66. package/src/components/UniverSheet/plugins/timeConfigContextMenu/TimeConfigContextMenuPlugin.ts +133 -0
  67. package/src/components/UniverSheet/plugins/timeConfigContextMenu/components/TimeConfigMenu.vue +10 -0
  68. package/src/components/UniverSheet/plugins/timeConfigContextMenu/components/TimeConfigUniverSheetConfigDialog.vue +152 -0
  69. package/src/hooks/useMessage.ts +93 -0
  70. package/src/index.ts +10 -0
  71. package/src/main.ts +14 -0
  72. package/src/types/components.d.ts +52 -0
  73. package/src/types/external-components.d.ts +16 -0
  74. package/src/types/form.d.ts +52 -0
  75. package/src/utils/decimal.ts +98 -0
  76. package/src/utils/fileHelp.ts +71 -0
  77. package/src/utils/index.ts +32 -0
  78. package/src/utils/is.ts +168 -0
  79. package/src/utils/propTypes.ts +24 -0
@@ -0,0 +1,515 @@
1
+ import { nextTick } from 'vue';
2
+ import { IWorkbookData, ICellData, IObjectMatrixPrimitiveType } from '@univerjs/presets';
3
+ import { UniverSheetsProps, ModeEnum } from './UniverSheet.data';
4
+ declare function destroyUniver(): void;
5
+ declare function getWorkbookData(): IWorkbookData | undefined;
6
+ declare function createUniverSheets(data?: {}): Promise<void>;
7
+ declare function executeCalculation(): void;
8
+ declare function batchUpdateCells(cells: IObjectMatrixPrimitiveType<ICellData>, sheetId: string): Promise<void>;
9
+ declare function getActiveSheetData(): Promise<boolean | import('@univerjs/core').IWorksheetData>;
10
+ declare const _default: import('vue').DefineComponent<UniverSheetsProps, {
11
+ createUniverSheets: typeof createUniverSheets;
12
+ destroyUniver: typeof destroyUniver;
13
+ getWorkbookData: typeof getWorkbookData;
14
+ getActiveSheetData: typeof getActiveSheetData;
15
+ batchUpdateCells: typeof batchUpdateCells;
16
+ executeCalculation: typeof executeCalculation;
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "active-sheet-changed": (...args: any[]) => void;
19
+ }, string, import('vue').PublicProps, Readonly<UniverSheetsProps> & Readonly<{
20
+ "onActive-sheet-changed"?: ((...args: any[]) => any) | undefined;
21
+ }>, {
22
+ mode: ModeEnum;
23
+ showImportFilePlugin: boolean;
24
+ showIndicatorsContextMenuPlugin: boolean;
25
+ showSyncContextMenuPlugin: boolean;
26
+ showTimeConfigContextMenuPlugin: boolean;
27
+ license: string;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
+ container: HTMLDivElement;
30
+ indicatorsUniverSheetConfigDialogRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
31
+ handleCancel: () => void;
32
+ close: () => void;
33
+ open: (data: {
34
+ cellData: ICellData;
35
+ title: "\u914D\u7F6E\u6307\u6807" | "\u6307\u6807\u8BE6\u60C5";
36
+ }) => Promise<unknown>;
37
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
38
+ formRef: ({
39
+ $: import('vue').ComponentInternalInstance;
40
+ $data: {};
41
+ $props: Partial<{
42
+ labelWidth: string | number;
43
+ labelPosition: "left" | "right" | "top";
44
+ requireAsteriskPosition: "left" | "right";
45
+ labelSuffix: string;
46
+ showMessage: boolean;
47
+ validateOnRuleChange: boolean;
48
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
49
+ }> & Omit<{
50
+ readonly labelWidth: string | number;
51
+ readonly labelPosition: "left" | "right" | "top";
52
+ readonly requireAsteriskPosition: "left" | "right";
53
+ readonly labelSuffix: string;
54
+ readonly showMessage: boolean;
55
+ readonly validateOnRuleChange: boolean;
56
+ readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
57
+ readonly size?: import('element-plus').ComponentSize | undefined;
58
+ readonly rules?: import('element-plus').FormRules | undefined;
59
+ readonly disabled?: boolean | undefined;
60
+ readonly inline?: boolean | undefined;
61
+ readonly model?: Record<string, any> | undefined;
62
+ readonly inlineMessage?: boolean | undefined;
63
+ readonly statusIcon?: boolean | undefined;
64
+ readonly hideRequiredAsterisk?: boolean | undefined;
65
+ readonly scrollToError?: boolean | undefined;
66
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
67
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "labelWidth" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions">;
68
+ $attrs: import('vue').Attrs;
69
+ $refs: {
70
+ [x: string]: unknown;
71
+ };
72
+ $slots: Readonly<{
73
+ [name: string]: import('vue').Slot<any> | undefined;
74
+ }>;
75
+ $root: import('vue').ComponentPublicInstance | null;
76
+ $parent: import('vue').ComponentPublicInstance | null;
77
+ $host: Element | null;
78
+ $emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
79
+ $el: any;
80
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
81
+ size: {
82
+ type: import('vue').PropType<"" | "small" | "default" | "large">;
83
+ };
84
+ rules: {
85
+ type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
86
+ };
87
+ labelWidth: {
88
+ type: import('vue').PropType<string | number>;
89
+ default: string;
90
+ };
91
+ disabled: {
92
+ type: import('vue').PropType<boolean>;
93
+ };
94
+ inline: {
95
+ type: import('vue').PropType<boolean>;
96
+ };
97
+ model: {
98
+ type: import('vue').PropType<Record<string, any>>;
99
+ };
100
+ labelPosition: {
101
+ type: import('vue').PropType<"right" | "top" | "left">;
102
+ default: string;
103
+ };
104
+ requireAsteriskPosition: {
105
+ type: import('vue').PropType<"right" | "left">;
106
+ default: string;
107
+ };
108
+ labelSuffix: {
109
+ type: import('vue').PropType<string>;
110
+ default: string;
111
+ };
112
+ inlineMessage: {
113
+ type: import('vue').PropType<boolean>;
114
+ };
115
+ statusIcon: {
116
+ type: import('vue').PropType<boolean>;
117
+ };
118
+ showMessage: {
119
+ type: import('vue').PropType<boolean>;
120
+ default: boolean;
121
+ };
122
+ validateOnRuleChange: {
123
+ type: import('vue').PropType<boolean>;
124
+ default: boolean;
125
+ };
126
+ hideRequiredAsterisk: {
127
+ type: import('vue').PropType<boolean>;
128
+ };
129
+ scrollToError: {
130
+ type: import('vue').PropType<boolean>;
131
+ };
132
+ scrollIntoViewOptions: {
133
+ type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
134
+ default: boolean;
135
+ };
136
+ }>> & {
137
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
138
+ }, {
139
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
140
+ validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
141
+ resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
142
+ clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
143
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
144
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
145
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
146
+ setInitialValues: (initModel: Record<string, any>) => void;
147
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
148
+ validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
149
+ }, string, {
150
+ labelWidth: string | number;
151
+ labelPosition: "left" | "right" | "top";
152
+ requireAsteriskPosition: "left" | "right";
153
+ labelSuffix: string;
154
+ showMessage: boolean;
155
+ validateOnRuleChange: boolean;
156
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
157
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
158
+ beforeCreate?: (() => void) | (() => void)[];
159
+ created?: (() => void) | (() => void)[];
160
+ beforeMount?: (() => void) | (() => void)[];
161
+ mounted?: (() => void) | (() => void)[];
162
+ beforeUpdate?: (() => void) | (() => void)[];
163
+ updated?: (() => void) | (() => void)[];
164
+ activated?: (() => void) | (() => void)[];
165
+ deactivated?: (() => void) | (() => void)[];
166
+ beforeDestroy?: (() => void) | (() => void)[];
167
+ beforeUnmount?: (() => void) | (() => void)[];
168
+ destroyed?: (() => void) | (() => void)[];
169
+ unmounted?: (() => void) | (() => void)[];
170
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
171
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
172
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
173
+ };
174
+ $forceUpdate: () => void;
175
+ $nextTick: typeof nextTick;
176
+ $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;
177
+ } & Readonly<{
178
+ labelWidth: string | number;
179
+ labelPosition: "left" | "right" | "top";
180
+ requireAsteriskPosition: "left" | "right";
181
+ labelSuffix: string;
182
+ showMessage: boolean;
183
+ validateOnRuleChange: boolean;
184
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
185
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
186
+ size: {
187
+ type: import('vue').PropType<"" | "small" | "default" | "large">;
188
+ };
189
+ rules: {
190
+ type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
191
+ };
192
+ labelWidth: {
193
+ type: import('vue').PropType<string | number>;
194
+ default: string;
195
+ };
196
+ disabled: {
197
+ type: import('vue').PropType<boolean>;
198
+ };
199
+ inline: {
200
+ type: import('vue').PropType<boolean>;
201
+ };
202
+ model: {
203
+ type: import('vue').PropType<Record<string, any>>;
204
+ };
205
+ labelPosition: {
206
+ type: import('vue').PropType<"right" | "top" | "left">;
207
+ default: string;
208
+ };
209
+ requireAsteriskPosition: {
210
+ type: import('vue').PropType<"right" | "left">;
211
+ default: string;
212
+ };
213
+ labelSuffix: {
214
+ type: import('vue').PropType<string>;
215
+ default: string;
216
+ };
217
+ inlineMessage: {
218
+ type: import('vue').PropType<boolean>;
219
+ };
220
+ statusIcon: {
221
+ type: import('vue').PropType<boolean>;
222
+ };
223
+ showMessage: {
224
+ type: import('vue').PropType<boolean>;
225
+ default: boolean;
226
+ };
227
+ validateOnRuleChange: {
228
+ type: import('vue').PropType<boolean>;
229
+ default: boolean;
230
+ };
231
+ hideRequiredAsterisk: {
232
+ type: import('vue').PropType<boolean>;
233
+ };
234
+ scrollToError: {
235
+ type: import('vue').PropType<boolean>;
236
+ };
237
+ scrollIntoViewOptions: {
238
+ type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
239
+ default: boolean;
240
+ };
241
+ }>> & {
242
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
243
+ }, "labelWidth" | "validate" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
244
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
245
+ validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
246
+ resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
247
+ clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
248
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
249
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
250
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
251
+ setInitialValues: (initModel: Record<string, any>) => void;
252
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
253
+ $slots: {
254
+ default?: (props: {}) => any;
255
+ };
256
+ }) | null;
257
+ }, any, import('vue').ComponentProvideOptions, {
258
+ P: {};
259
+ B: {};
260
+ D: {};
261
+ C: {};
262
+ M: {};
263
+ Defaults: {};
264
+ }, Readonly<{}> & Readonly<{}>, {
265
+ handleCancel: () => void;
266
+ close: () => void;
267
+ open: (data: {
268
+ cellData: ICellData;
269
+ title: "\u914D\u7F6E\u6307\u6807" | "\u6307\u6807\u8BE6\u60C5";
270
+ }) => Promise<unknown>;
271
+ }, {}, {}, {}, {}> | null;
272
+ timeConfigUniverSheetConfigDialogRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
273
+ handleCancel: () => void;
274
+ close: () => void;
275
+ open: (data: {
276
+ cellData: ICellData;
277
+ title: "\u914D\u7F6E\u65F6\u95F4" | "\u65F6\u95F4\u8BE6\u60C5";
278
+ }) => Promise<unknown>;
279
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
280
+ formRef: ({
281
+ $: import('vue').ComponentInternalInstance;
282
+ $data: {};
283
+ $props: Partial<{
284
+ labelWidth: string | number;
285
+ labelPosition: "left" | "right" | "top";
286
+ requireAsteriskPosition: "left" | "right";
287
+ labelSuffix: string;
288
+ showMessage: boolean;
289
+ validateOnRuleChange: boolean;
290
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
291
+ }> & Omit<{
292
+ readonly labelWidth: string | number;
293
+ readonly labelPosition: "left" | "right" | "top";
294
+ readonly requireAsteriskPosition: "left" | "right";
295
+ readonly labelSuffix: string;
296
+ readonly showMessage: boolean;
297
+ readonly validateOnRuleChange: boolean;
298
+ readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
299
+ readonly size?: import('element-plus').ComponentSize | undefined;
300
+ readonly rules?: import('element-plus').FormRules | undefined;
301
+ readonly disabled?: boolean | undefined;
302
+ readonly inline?: boolean | undefined;
303
+ readonly model?: Record<string, any> | undefined;
304
+ readonly inlineMessage?: boolean | undefined;
305
+ readonly statusIcon?: boolean | undefined;
306
+ readonly hideRequiredAsterisk?: boolean | undefined;
307
+ readonly scrollToError?: boolean | undefined;
308
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
309
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "labelWidth" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions">;
310
+ $attrs: import('vue').Attrs;
311
+ $refs: {
312
+ [x: string]: unknown;
313
+ };
314
+ $slots: Readonly<{
315
+ [name: string]: import('vue').Slot<any> | undefined;
316
+ }>;
317
+ $root: import('vue').ComponentPublicInstance | null;
318
+ $parent: import('vue').ComponentPublicInstance | null;
319
+ $host: Element | null;
320
+ $emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
321
+ $el: any;
322
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
323
+ size: {
324
+ type: import('vue').PropType<"" | "small" | "default" | "large">;
325
+ };
326
+ rules: {
327
+ type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
328
+ };
329
+ labelWidth: {
330
+ type: import('vue').PropType<string | number>;
331
+ default: string;
332
+ };
333
+ disabled: {
334
+ type: import('vue').PropType<boolean>;
335
+ };
336
+ inline: {
337
+ type: import('vue').PropType<boolean>;
338
+ };
339
+ model: {
340
+ type: import('vue').PropType<Record<string, any>>;
341
+ };
342
+ labelPosition: {
343
+ type: import('vue').PropType<"right" | "top" | "left">;
344
+ default: string;
345
+ };
346
+ requireAsteriskPosition: {
347
+ type: import('vue').PropType<"right" | "left">;
348
+ default: string;
349
+ };
350
+ labelSuffix: {
351
+ type: import('vue').PropType<string>;
352
+ default: string;
353
+ };
354
+ inlineMessage: {
355
+ type: import('vue').PropType<boolean>;
356
+ };
357
+ statusIcon: {
358
+ type: import('vue').PropType<boolean>;
359
+ };
360
+ showMessage: {
361
+ type: import('vue').PropType<boolean>;
362
+ default: boolean;
363
+ };
364
+ validateOnRuleChange: {
365
+ type: import('vue').PropType<boolean>;
366
+ default: boolean;
367
+ };
368
+ hideRequiredAsterisk: {
369
+ type: import('vue').PropType<boolean>;
370
+ };
371
+ scrollToError: {
372
+ type: import('vue').PropType<boolean>;
373
+ };
374
+ scrollIntoViewOptions: {
375
+ type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
376
+ default: boolean;
377
+ };
378
+ }>> & {
379
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
380
+ }, {
381
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
382
+ validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
383
+ resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
384
+ clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
385
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
386
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
387
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
388
+ setInitialValues: (initModel: Record<string, any>) => void;
389
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
390
+ validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
391
+ }, string, {
392
+ labelWidth: string | number;
393
+ labelPosition: "left" | "right" | "top";
394
+ requireAsteriskPosition: "left" | "right";
395
+ labelSuffix: string;
396
+ showMessage: boolean;
397
+ validateOnRuleChange: boolean;
398
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
399
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
400
+ beforeCreate?: (() => void) | (() => void)[];
401
+ created?: (() => void) | (() => void)[];
402
+ beforeMount?: (() => void) | (() => void)[];
403
+ mounted?: (() => void) | (() => void)[];
404
+ beforeUpdate?: (() => void) | (() => void)[];
405
+ updated?: (() => void) | (() => void)[];
406
+ activated?: (() => void) | (() => void)[];
407
+ deactivated?: (() => void) | (() => void)[];
408
+ beforeDestroy?: (() => void) | (() => void)[];
409
+ beforeUnmount?: (() => void) | (() => void)[];
410
+ destroyed?: (() => void) | (() => void)[];
411
+ unmounted?: (() => void) | (() => void)[];
412
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
413
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
414
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
415
+ };
416
+ $forceUpdate: () => void;
417
+ $nextTick: typeof nextTick;
418
+ $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;
419
+ } & Readonly<{
420
+ labelWidth: string | number;
421
+ labelPosition: "left" | "right" | "top";
422
+ requireAsteriskPosition: "left" | "right";
423
+ labelSuffix: string;
424
+ showMessage: boolean;
425
+ validateOnRuleChange: boolean;
426
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
427
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
428
+ size: {
429
+ type: import('vue').PropType<"" | "small" | "default" | "large">;
430
+ };
431
+ rules: {
432
+ type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
433
+ };
434
+ labelWidth: {
435
+ type: import('vue').PropType<string | number>;
436
+ default: string;
437
+ };
438
+ disabled: {
439
+ type: import('vue').PropType<boolean>;
440
+ };
441
+ inline: {
442
+ type: import('vue').PropType<boolean>;
443
+ };
444
+ model: {
445
+ type: import('vue').PropType<Record<string, any>>;
446
+ };
447
+ labelPosition: {
448
+ type: import('vue').PropType<"right" | "top" | "left">;
449
+ default: string;
450
+ };
451
+ requireAsteriskPosition: {
452
+ type: import('vue').PropType<"right" | "left">;
453
+ default: string;
454
+ };
455
+ labelSuffix: {
456
+ type: import('vue').PropType<string>;
457
+ default: string;
458
+ };
459
+ inlineMessage: {
460
+ type: import('vue').PropType<boolean>;
461
+ };
462
+ statusIcon: {
463
+ type: import('vue').PropType<boolean>;
464
+ };
465
+ showMessage: {
466
+ type: import('vue').PropType<boolean>;
467
+ default: boolean;
468
+ };
469
+ validateOnRuleChange: {
470
+ type: import('vue').PropType<boolean>;
471
+ default: boolean;
472
+ };
473
+ hideRequiredAsterisk: {
474
+ type: import('vue').PropType<boolean>;
475
+ };
476
+ scrollToError: {
477
+ type: import('vue').PropType<boolean>;
478
+ };
479
+ scrollIntoViewOptions: {
480
+ type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
481
+ default: boolean;
482
+ };
483
+ }>> & {
484
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
485
+ }, "labelWidth" | "validate" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
486
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
487
+ validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
488
+ resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
489
+ clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
490
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
491
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
492
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
493
+ setInitialValues: (initModel: Record<string, any>) => void;
494
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
495
+ $slots: {
496
+ default?: (props: {}) => any;
497
+ };
498
+ }) | null;
499
+ }, any, import('vue').ComponentProvideOptions, {
500
+ P: {};
501
+ B: {};
502
+ D: {};
503
+ C: {};
504
+ M: {};
505
+ Defaults: {};
506
+ }, Readonly<{}> & Readonly<{}>, {
507
+ handleCancel: () => void;
508
+ close: () => void;
509
+ open: (data: {
510
+ cellData: ICellData;
511
+ title: "\u914D\u7F6E\u65F6\u95F4" | "\u65F6\u95F4\u8BE6\u60C5";
512
+ }) => Promise<unknown>;
513
+ }, {}, {}, {}, {}> | null;
514
+ }, HTMLDivElement>;
515
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { IWorkbookData } from '@univerjs/presets';
2
+ type UseDataType = {
3
+ workbookData: IWorkbookData;
4
+ id?: string;
5
+ name?: string;
6
+ appVersion?: string;
7
+ };
8
+ export declare function useData(data: UseDataType): IWorkbookData;
9
+ export {};
@@ -0,0 +1,29 @@
1
+ import { Component } from 'vue';
2
+ import { FormSchema } from '../../../types/form';
3
+ export interface ExternalComponents {
4
+ IndicatorPointSelect?: Component;
5
+ }
6
+ export declare function registerExternalComponents(components: ExternalComponents): void;
7
+ export declare enum CycleTypeEnum {
8
+ 无 = "no",
9
+ 年 = "year",
10
+ 月 = "month",
11
+ 周 = "week",
12
+ 天 = "day",
13
+ 班组 = "shift",
14
+ 小时 = "hour",
15
+ 半小时 = "half_hour"
16
+ }
17
+ export declare const CycleTypeOptions: {
18
+ label: string;
19
+ value: string;
20
+ }[];
21
+ export type ExtendedFormSchema = Omit<FormSchema, 'hidden'> & {
22
+ hidden?: boolean | ((formModel: Recordable) => boolean);
23
+ };
24
+ export type FormType = {
25
+ title: string;
26
+ schemas: ExtendedFormSchema[];
27
+ };
28
+ export declare const indicatorsFormSchemas: FormType[];
29
+ export declare const timeConfigFormSchemas: FormType[];
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
2
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { Injector, Plugin, ICommandService } from '@univerjs/core';
2
+ import { ComponentManager, IMenuManagerService } from '@univerjs/ui';
3
+ import { FUniver } from '@univerjs/core/facade';
4
+ declare class ImportFilePlugin extends Plugin {
5
+ readonly _injector: Injector;
6
+ private readonly menuManagerService;
7
+ private readonly commandService;
8
+ private readonly componentManager;
9
+ static pluginName: string;
10
+ univerApi: FUniver;
11
+ constructor(_config: any, _injector: Injector, menuManagerService: IMenuManagerService, commandService: ICommandService, componentManager: ComponentManager);
12
+ onStarting(): void;
13
+ }
14
+ export default ImportFilePlugin;
@@ -0,0 +1,2 @@
1
+ import { registerExternalComponents, ExternalComponents, indicatorsFormSchemas, timeConfigFormSchemas } from './Plugins';
2
+ export { registerExternalComponents, indicatorsFormSchemas, timeConfigFormSchemas, type ExternalComponents };
@@ -0,0 +1,16 @@
1
+ import { Injector, Plugin, ICommandService } from '@univerjs/core';
2
+ import { ComponentManager, IMenuManagerService } from '@univerjs/ui';
3
+ import { FUniver } from '@univerjs/core/facade';
4
+ declare class IndicatorsContextMenuPlugin extends Plugin {
5
+ readonly _injector: Injector;
6
+ private readonly menuManagerService;
7
+ private readonly commandService;
8
+ private readonly componentManager;
9
+ static pluginName: string;
10
+ univerApi: FUniver;
11
+ dialogRef: any;
12
+ constructor(_config: any, _injector: Injector, menuManagerService: IMenuManagerService, commandService: ICommandService, componentManager: ComponentManager);
13
+ private showConfigDialog;
14
+ onStarting(): void;
15
+ }
16
+ export default IndicatorsContextMenuPlugin;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
2
+ export default _default;