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,234 @@
1
+ import { nextTick } from 'vue';
2
+ import { ICellData } from '@univerjs/presets';
3
+ declare function close(): void;
4
+ declare function handleCancel(): void;
5
+ declare function open(data: {
6
+ cellData: ICellData;
7
+ title: '配置指标' | '指标详情';
8
+ }): Promise<unknown>;
9
+ declare const _default: import('vue').DefineComponent<{}, {
10
+ handleCancel: typeof handleCancel;
11
+ close: typeof close;
12
+ open: typeof open;
13
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
14
+ formRef: ({
15
+ $: import('vue').ComponentInternalInstance;
16
+ $data: {};
17
+ $props: Partial<{
18
+ labelWidth: string | number;
19
+ labelPosition: "left" | "right" | "top";
20
+ requireAsteriskPosition: "left" | "right";
21
+ labelSuffix: string;
22
+ showMessage: boolean;
23
+ validateOnRuleChange: boolean;
24
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
25
+ }> & Omit<{
26
+ readonly labelWidth: string | number;
27
+ readonly labelPosition: "left" | "right" | "top";
28
+ readonly requireAsteriskPosition: "left" | "right";
29
+ readonly labelSuffix: string;
30
+ readonly showMessage: boolean;
31
+ readonly validateOnRuleChange: boolean;
32
+ readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
33
+ readonly size?: import('element-plus').ComponentSize | undefined;
34
+ readonly rules?: import('element-plus').FormRules | undefined;
35
+ readonly disabled?: boolean | undefined;
36
+ readonly inline?: boolean | undefined;
37
+ readonly model?: Record<string, any> | undefined;
38
+ readonly inlineMessage?: boolean | undefined;
39
+ readonly statusIcon?: boolean | undefined;
40
+ readonly hideRequiredAsterisk?: boolean | undefined;
41
+ readonly scrollToError?: boolean | undefined;
42
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
43
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "labelWidth" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions">;
44
+ $attrs: import('vue').Attrs;
45
+ $refs: {
46
+ [x: string]: unknown;
47
+ };
48
+ $slots: Readonly<{
49
+ [name: string]: import('vue').Slot<any> | undefined;
50
+ }>;
51
+ $root: import('vue').ComponentPublicInstance | null;
52
+ $parent: import('vue').ComponentPublicInstance | null;
53
+ $host: Element | null;
54
+ $emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
55
+ $el: any;
56
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
57
+ size: {
58
+ type: import('vue').PropType<"" | "small" | "default" | "large">;
59
+ };
60
+ rules: {
61
+ type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
62
+ };
63
+ labelWidth: {
64
+ type: import('vue').PropType<string | number>;
65
+ default: string;
66
+ };
67
+ disabled: {
68
+ type: import('vue').PropType<boolean>;
69
+ };
70
+ inline: {
71
+ type: import('vue').PropType<boolean>;
72
+ };
73
+ model: {
74
+ type: import('vue').PropType<Record<string, any>>;
75
+ };
76
+ labelPosition: {
77
+ type: import('vue').PropType<"right" | "top" | "left">;
78
+ default: string;
79
+ };
80
+ requireAsteriskPosition: {
81
+ type: import('vue').PropType<"right" | "left">;
82
+ default: string;
83
+ };
84
+ labelSuffix: {
85
+ type: import('vue').PropType<string>;
86
+ default: string;
87
+ };
88
+ inlineMessage: {
89
+ type: import('vue').PropType<boolean>;
90
+ };
91
+ statusIcon: {
92
+ type: import('vue').PropType<boolean>;
93
+ };
94
+ showMessage: {
95
+ type: import('vue').PropType<boolean>;
96
+ default: boolean;
97
+ };
98
+ validateOnRuleChange: {
99
+ type: import('vue').PropType<boolean>;
100
+ default: boolean;
101
+ };
102
+ hideRequiredAsterisk: {
103
+ type: import('vue').PropType<boolean>;
104
+ };
105
+ scrollToError: {
106
+ type: import('vue').PropType<boolean>;
107
+ };
108
+ scrollIntoViewOptions: {
109
+ type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
110
+ default: boolean;
111
+ };
112
+ }>> & {
113
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
114
+ }, {
115
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
116
+ validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
117
+ resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
118
+ clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
119
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
120
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
121
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
122
+ setInitialValues: (initModel: Record<string, any>) => void;
123
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
124
+ validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
125
+ }, string, {
126
+ labelWidth: string | number;
127
+ labelPosition: "left" | "right" | "top";
128
+ requireAsteriskPosition: "left" | "right";
129
+ labelSuffix: string;
130
+ showMessage: boolean;
131
+ validateOnRuleChange: boolean;
132
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
133
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
134
+ beforeCreate?: (() => void) | (() => void)[];
135
+ created?: (() => void) | (() => void)[];
136
+ beforeMount?: (() => void) | (() => void)[];
137
+ mounted?: (() => void) | (() => void)[];
138
+ beforeUpdate?: (() => void) | (() => void)[];
139
+ updated?: (() => void) | (() => void)[];
140
+ activated?: (() => void) | (() => void)[];
141
+ deactivated?: (() => void) | (() => void)[];
142
+ beforeDestroy?: (() => void) | (() => void)[];
143
+ beforeUnmount?: (() => void) | (() => void)[];
144
+ destroyed?: (() => void) | (() => void)[];
145
+ unmounted?: (() => void) | (() => void)[];
146
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
147
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
148
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
149
+ };
150
+ $forceUpdate: () => void;
151
+ $nextTick: typeof nextTick;
152
+ $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;
153
+ } & Readonly<{
154
+ labelWidth: string | number;
155
+ labelPosition: "left" | "right" | "top";
156
+ requireAsteriskPosition: "left" | "right";
157
+ labelSuffix: string;
158
+ showMessage: boolean;
159
+ validateOnRuleChange: boolean;
160
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
161
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
162
+ size: {
163
+ type: import('vue').PropType<"" | "small" | "default" | "large">;
164
+ };
165
+ rules: {
166
+ type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
167
+ };
168
+ labelWidth: {
169
+ type: import('vue').PropType<string | number>;
170
+ default: string;
171
+ };
172
+ disabled: {
173
+ type: import('vue').PropType<boolean>;
174
+ };
175
+ inline: {
176
+ type: import('vue').PropType<boolean>;
177
+ };
178
+ model: {
179
+ type: import('vue').PropType<Record<string, any>>;
180
+ };
181
+ labelPosition: {
182
+ type: import('vue').PropType<"right" | "top" | "left">;
183
+ default: string;
184
+ };
185
+ requireAsteriskPosition: {
186
+ type: import('vue').PropType<"right" | "left">;
187
+ default: string;
188
+ };
189
+ labelSuffix: {
190
+ type: import('vue').PropType<string>;
191
+ default: string;
192
+ };
193
+ inlineMessage: {
194
+ type: import('vue').PropType<boolean>;
195
+ };
196
+ statusIcon: {
197
+ type: import('vue').PropType<boolean>;
198
+ };
199
+ showMessage: {
200
+ type: import('vue').PropType<boolean>;
201
+ default: boolean;
202
+ };
203
+ validateOnRuleChange: {
204
+ type: import('vue').PropType<boolean>;
205
+ default: boolean;
206
+ };
207
+ hideRequiredAsterisk: {
208
+ type: import('vue').PropType<boolean>;
209
+ };
210
+ scrollToError: {
211
+ type: import('vue').PropType<boolean>;
212
+ };
213
+ scrollIntoViewOptions: {
214
+ type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
215
+ default: boolean;
216
+ };
217
+ }>> & {
218
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
219
+ }, "labelWidth" | "validate" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
220
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
221
+ validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
222
+ resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
223
+ clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
224
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
225
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
226
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
227
+ setInitialValues: (initModel: Record<string, any>) => void;
228
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
229
+ $slots: {
230
+ default?: (props: {}) => any;
231
+ };
232
+ }) | null;
233
+ }, any>;
234
+ export default _default;
@@ -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/presets';
2
+ import { ComponentManager, IMenuManagerService } from '@univerjs/ui';
3
+ import { FUniver } from '@univerjs/core/facade';
4
+ declare class SaveButtonPlugin 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 SaveButtonPlugin;
@@ -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 SyncContextMenuPlugin 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 SyncContextMenuPlugin;
@@ -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 TimeConfigContextMenuPlugin 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 TimeConfigContextMenuPlugin;
@@ -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,234 @@
1
+ import { nextTick } from 'vue';
2
+ import { ICellData } from '@univerjs/presets';
3
+ declare function close(): void;
4
+ declare function handleCancel(): void;
5
+ declare function open(data: {
6
+ cellData: ICellData;
7
+ title: '配置时间' | '时间详情';
8
+ }): Promise<unknown>;
9
+ declare const _default: import('vue').DefineComponent<{}, {
10
+ handleCancel: typeof handleCancel;
11
+ close: typeof close;
12
+ open: typeof open;
13
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
14
+ formRef: ({
15
+ $: import('vue').ComponentInternalInstance;
16
+ $data: {};
17
+ $props: Partial<{
18
+ labelWidth: string | number;
19
+ labelPosition: "left" | "right" | "top";
20
+ requireAsteriskPosition: "left" | "right";
21
+ labelSuffix: string;
22
+ showMessage: boolean;
23
+ validateOnRuleChange: boolean;
24
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
25
+ }> & Omit<{
26
+ readonly labelWidth: string | number;
27
+ readonly labelPosition: "left" | "right" | "top";
28
+ readonly requireAsteriskPosition: "left" | "right";
29
+ readonly labelSuffix: string;
30
+ readonly showMessage: boolean;
31
+ readonly validateOnRuleChange: boolean;
32
+ readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
33
+ readonly size?: import('element-plus').ComponentSize | undefined;
34
+ readonly rules?: import('element-plus').FormRules | undefined;
35
+ readonly disabled?: boolean | undefined;
36
+ readonly inline?: boolean | undefined;
37
+ readonly model?: Record<string, any> | undefined;
38
+ readonly inlineMessage?: boolean | undefined;
39
+ readonly statusIcon?: boolean | undefined;
40
+ readonly hideRequiredAsterisk?: boolean | undefined;
41
+ readonly scrollToError?: boolean | undefined;
42
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
43
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "labelWidth" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions">;
44
+ $attrs: import('vue').Attrs;
45
+ $refs: {
46
+ [x: string]: unknown;
47
+ };
48
+ $slots: Readonly<{
49
+ [name: string]: import('vue').Slot<any> | undefined;
50
+ }>;
51
+ $root: import('vue').ComponentPublicInstance | null;
52
+ $parent: import('vue').ComponentPublicInstance | null;
53
+ $host: Element | null;
54
+ $emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
55
+ $el: any;
56
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
57
+ size: {
58
+ type: import('vue').PropType<"" | "small" | "default" | "large">;
59
+ };
60
+ rules: {
61
+ type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
62
+ };
63
+ labelWidth: {
64
+ type: import('vue').PropType<string | number>;
65
+ default: string;
66
+ };
67
+ disabled: {
68
+ type: import('vue').PropType<boolean>;
69
+ };
70
+ inline: {
71
+ type: import('vue').PropType<boolean>;
72
+ };
73
+ model: {
74
+ type: import('vue').PropType<Record<string, any>>;
75
+ };
76
+ labelPosition: {
77
+ type: import('vue').PropType<"right" | "top" | "left">;
78
+ default: string;
79
+ };
80
+ requireAsteriskPosition: {
81
+ type: import('vue').PropType<"right" | "left">;
82
+ default: string;
83
+ };
84
+ labelSuffix: {
85
+ type: import('vue').PropType<string>;
86
+ default: string;
87
+ };
88
+ inlineMessage: {
89
+ type: import('vue').PropType<boolean>;
90
+ };
91
+ statusIcon: {
92
+ type: import('vue').PropType<boolean>;
93
+ };
94
+ showMessage: {
95
+ type: import('vue').PropType<boolean>;
96
+ default: boolean;
97
+ };
98
+ validateOnRuleChange: {
99
+ type: import('vue').PropType<boolean>;
100
+ default: boolean;
101
+ };
102
+ hideRequiredAsterisk: {
103
+ type: import('vue').PropType<boolean>;
104
+ };
105
+ scrollToError: {
106
+ type: import('vue').PropType<boolean>;
107
+ };
108
+ scrollIntoViewOptions: {
109
+ type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
110
+ default: boolean;
111
+ };
112
+ }>> & {
113
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
114
+ }, {
115
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
116
+ validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
117
+ resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
118
+ clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
119
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
120
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
121
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
122
+ setInitialValues: (initModel: Record<string, any>) => void;
123
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
124
+ validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
125
+ }, string, {
126
+ labelWidth: string | number;
127
+ labelPosition: "left" | "right" | "top";
128
+ requireAsteriskPosition: "left" | "right";
129
+ labelSuffix: string;
130
+ showMessage: boolean;
131
+ validateOnRuleChange: boolean;
132
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
133
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
134
+ beforeCreate?: (() => void) | (() => void)[];
135
+ created?: (() => void) | (() => void)[];
136
+ beforeMount?: (() => void) | (() => void)[];
137
+ mounted?: (() => void) | (() => void)[];
138
+ beforeUpdate?: (() => void) | (() => void)[];
139
+ updated?: (() => void) | (() => void)[];
140
+ activated?: (() => void) | (() => void)[];
141
+ deactivated?: (() => void) | (() => void)[];
142
+ beforeDestroy?: (() => void) | (() => void)[];
143
+ beforeUnmount?: (() => void) | (() => void)[];
144
+ destroyed?: (() => void) | (() => void)[];
145
+ unmounted?: (() => void) | (() => void)[];
146
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
147
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
148
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
149
+ };
150
+ $forceUpdate: () => void;
151
+ $nextTick: typeof nextTick;
152
+ $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;
153
+ } & Readonly<{
154
+ labelWidth: string | number;
155
+ labelPosition: "left" | "right" | "top";
156
+ requireAsteriskPosition: "left" | "right";
157
+ labelSuffix: string;
158
+ showMessage: boolean;
159
+ validateOnRuleChange: boolean;
160
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
161
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
162
+ size: {
163
+ type: import('vue').PropType<"" | "small" | "default" | "large">;
164
+ };
165
+ rules: {
166
+ type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
167
+ };
168
+ labelWidth: {
169
+ type: import('vue').PropType<string | number>;
170
+ default: string;
171
+ };
172
+ disabled: {
173
+ type: import('vue').PropType<boolean>;
174
+ };
175
+ inline: {
176
+ type: import('vue').PropType<boolean>;
177
+ };
178
+ model: {
179
+ type: import('vue').PropType<Record<string, any>>;
180
+ };
181
+ labelPosition: {
182
+ type: import('vue').PropType<"right" | "top" | "left">;
183
+ default: string;
184
+ };
185
+ requireAsteriskPosition: {
186
+ type: import('vue').PropType<"right" | "left">;
187
+ default: string;
188
+ };
189
+ labelSuffix: {
190
+ type: import('vue').PropType<string>;
191
+ default: string;
192
+ };
193
+ inlineMessage: {
194
+ type: import('vue').PropType<boolean>;
195
+ };
196
+ statusIcon: {
197
+ type: import('vue').PropType<boolean>;
198
+ };
199
+ showMessage: {
200
+ type: import('vue').PropType<boolean>;
201
+ default: boolean;
202
+ };
203
+ validateOnRuleChange: {
204
+ type: import('vue').PropType<boolean>;
205
+ default: boolean;
206
+ };
207
+ hideRequiredAsterisk: {
208
+ type: import('vue').PropType<boolean>;
209
+ };
210
+ scrollToError: {
211
+ type: import('vue').PropType<boolean>;
212
+ };
213
+ scrollIntoViewOptions: {
214
+ type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
215
+ default: boolean;
216
+ };
217
+ }>> & {
218
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
219
+ }, "labelWidth" | "validate" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
220
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
221
+ validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
222
+ resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
223
+ clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
224
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
225
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
226
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
227
+ setInitialValues: (initModel: Record<string, any>) => void;
228
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
229
+ $slots: {
230
+ default?: (props: {}) => any;
231
+ };
232
+ }) | null;
233
+ }, any>;
234
+ export default _default;
Binary file
@@ -0,0 +1,18 @@
1
+ export declare const useMessage: () => {
2
+ info(content: string): void;
3
+ error(content: string): void;
4
+ success(content: string): void;
5
+ warning(content: string): void;
6
+ alert(content: string): void;
7
+ alertError(content: string): void;
8
+ alertSuccess(content: string): void;
9
+ alertWarning(content: string): void;
10
+ notify(content: string): void;
11
+ notifyError(content: string): void;
12
+ notifySuccess(content: string): void;
13
+ notifyWarning(content: string): void;
14
+ confirm(content: string, tip?: string): Promise<import('element-plus').MessageBoxData>;
15
+ delConfirm(content?: string, tip?: string): Promise<import('element-plus').MessageBoxData>;
16
+ exportConfirm(content?: string, tip?: string): Promise<import('element-plus').MessageBoxData>;
17
+ prompt(content: string, tip: string): Promise<import('element-plus').MessageBoxData>;
18
+ };
@@ -0,0 +1,2 @@
1
+ export { registerExternalComponents, indicatorsFormSchemas, timeConfigFormSchemas, type ExternalComponents, } from './components/UniverSheet/plugins';
2
+ export type { IndicatorPointSelectProps } from './types/external-components';
package/dist/main.d.ts ADDED
File without changes