@chase-shao/vue-component-lib 1.0.0 → 1.0.2

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 (33) hide show
  1. package/dist/assets/js/util.d.ts +28 -0
  2. package/dist/components/data-gen/actions/DetailLink.vue.d.ts +22 -0
  3. package/dist/components/data-gen/actions/SubmitButton.vue.d.ts +22 -0
  4. package/dist/components/data-gen/actions/index.vue.d.ts +13 -0
  5. package/dist/components/data-gen/actions/types.d.ts +14 -0
  6. package/dist/components/data-gen/views/CreateView.vue.d.ts +220 -0
  7. package/dist/components/data-gen/views/DetailView.vue.d.ts +23 -0
  8. package/dist/components/data-gen/views/ListView.vue.d.ts +21 -0
  9. package/dist/components/data-gen/views/UpdateView.vue.d.ts +23 -0
  10. package/dist/components/data-gen/widgets/Cascader.vue.d.ts +13 -0
  11. package/dist/components/data-gen/widgets/FileUpload.vue.d.ts +16 -0
  12. package/dist/components/data-gen/widgets/InputNumber.vue.d.ts +12 -0
  13. package/dist/components/data-gen/widgets/InputText.vue.d.ts +12 -0
  14. package/dist/components/data-gen/widgets/SelectList.vue.d.ts +13 -0
  15. package/dist/components/data-gen/widgets/TextArea.vue.d.ts +12 -0
  16. package/dist/components/data-gen/widgets/index.d.ts +13 -0
  17. package/dist/components/data-gen/widgets/index.vue.d.ts +85 -0
  18. package/dist/index.cjs.js +18 -1
  19. package/dist/index.cjs.js.map +1 -1
  20. package/dist/index.css +1 -1
  21. package/dist/index.d.ts +3 -3
  22. package/dist/index.es.js +2886 -43
  23. package/dist/index.es.js.map +1 -1
  24. package/dist/index.umd.js +18 -1
  25. package/dist/index.umd.js.map +1 -1
  26. package/dist/main.d.ts +10 -0
  27. package/dist/services/axios.d.ts +2 -0
  28. package/dist/services/dataGen.d.ts +108 -0
  29. package/dist/services/dataGetter.d.ts +4 -0
  30. package/dist/services/validation.d.ts +3 -0
  31. package/dist/stores/mainStore.d.ts +3 -0
  32. package/dist/types.d.ts +1 -0
  33. package/package.json +12 -4
@@ -0,0 +1,28 @@
1
+ /**
2
+ * 该函数用于创建一个异步的延迟操作,使程序暂停执行指定的毫秒数。
3
+ * @param tick - 延迟的毫秒数。
4
+ * @returns 一个 Promise,在指定的毫秒数后解析。
5
+ */
6
+ export declare const sleep: (tick: number) => Promise<unknown>;
7
+ /**
8
+ * async get data from store, if store ie empty load from remote.
9
+ * @param store Target Pinia store
10
+ * @param key Data key
11
+ * @param remoteFunction Remote load function
12
+ * @param defaultValue data default value
13
+ * @returns {Promise<*>}
14
+ */
15
+ export declare const getStoreData: (store: Record<string, any>, key: string, remoteFunction: Function, defaultValue?: undefined) => Promise<any>;
16
+ /**
17
+ * Pat a 0 to left if input string length is 1
18
+ * @param str
19
+ * @returns {string}
20
+ */
21
+ export declare const patLeft0: (str: any) => string;
22
+ /**
23
+ * Format date as input format.
24
+ * @param date input date
25
+ * @param format date format, default as 'yyyy-MM-dd hh:mm:ss'
26
+ * @returns {string|*}
27
+ */
28
+ export declare const dateFormatter: (date: Date | string, format?: string) => string;
@@ -0,0 +1,22 @@
1
+ import { ActionProps, ActionTypeEnum } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<ActionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ click: (type: ActionTypeEnum, url: string, redirectType: import('../../../types').RedirectType) => any;
13
+ }, string, import('vue').PublicProps, Readonly<ActionProps> & Readonly<{
14
+ onClick?: ((type: ActionTypeEnum, url: string, redirectType: import('../../../types').RedirectType) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,22 @@
1
+ import { ActionProps, ActionTypeEnum } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<ActionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ click: (type: ActionTypeEnum, url: string, redirectType: import('../../../types').RedirectType) => any;
13
+ }, string, import('vue').PublicProps, Readonly<ActionProps> & Readonly<{
14
+ onClick?: ((type: ActionTypeEnum, url: string, redirectType: import('../../../types').RedirectType) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,13 @@
1
+ import { ActionConfig } from '../../../services/dataGen';
2
+ import { ActionTypeEnum } from './types';
3
+ import { RedirectType } from '../../../types';
4
+ type __VLS_Props = {
5
+ config: ActionConfig;
6
+ };
7
+ declare const RedirectType: import('vue').ComputedRef<RedirectType>;
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ click: (type: ActionTypeEnum, url: string, redirectType: RedirectType) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onClick?: ((type: ActionTypeEnum, url: string, redirectType: RedirectType) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { RedirectType } from '../../../types';
2
+ type ActionProps = {
3
+ url: string;
4
+ redirectType: RedirectType;
5
+ };
6
+ declare enum ActionTypeEnum {
7
+ Submit = 0,
8
+ Link = 1
9
+ }
10
+ type ActionEmits = {
11
+ (e: 'click', type: ActionTypeEnum, url: string, redirectType: RedirectType): void;
12
+ };
13
+ export type { ActionProps, ActionEmits };
14
+ export { ActionTypeEnum };
@@ -0,0 +1,220 @@
1
+ type __VLS_Props = {
2
+ className: string;
3
+ };
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ title?(_: {}): any;
8
+ content?(_: {}): any;
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {
12
+ dataWidgetsRef: (import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
14
+ onChange?: ((value: any) => any) | undefined;
15
+ onError?: ((value: string) => any) | undefined;
16
+ }>, {
17
+ isFileUpload(): boolean;
18
+ submit(workflowId: number): void;
19
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
+ "update:modelValue": (value: any) => any;
21
+ change: (value: any) => any;
22
+ error: (value: string) => any;
23
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
24
+ widgetRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
25
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
26
+ onChange?: ((value: any) => any) | undefined;
27
+ onError?: ((value: string) => any) | undefined;
28
+ onInput?: ((value: any) => any) | undefined;
29
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
30
+ "update:modelValue": (value: any) => any;
31
+ change: (value: any) => any;
32
+ error: (value: string) => any;
33
+ input: (value: any) => any;
34
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
35
+ P: {};
36
+ B: {};
37
+ D: {};
38
+ C: {};
39
+ M: {};
40
+ Defaults: {};
41
+ }, Readonly<{}> & Readonly<{
42
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
43
+ onChange?: ((value: any) => any) | undefined;
44
+ onError?: ((value: string) => any) | undefined;
45
+ onInput?: ((value: any) => any) | undefined;
46
+ }>, {}, {}, {}, {}, {}> | import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
47
+ modelValue: string;
48
+ config: import('../../../services/dataGen').WidgetConfig;
49
+ }> & Readonly<{
50
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
51
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
52
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
53
+ "update:modelValue": (value?: string | number | null | undefined) => any;
54
+ change: (value?: string | number | null | undefined) => any;
55
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
56
+ P: {};
57
+ B: {};
58
+ D: {};
59
+ C: {};
60
+ M: {};
61
+ Defaults: {};
62
+ }, Readonly<{
63
+ modelValue: string;
64
+ config: import('../../../services/dataGen').WidgetConfig;
65
+ }> & Readonly<{
66
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
67
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
68
+ }>, {}, {}, {}, {}, {}> | import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
69
+ config: import('../../../services/dataGen').WidgetConfig;
70
+ }> & Readonly<{
71
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
72
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
73
+ }>, {
74
+ submit(workflowId: number): void;
75
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
76
+ "update:modelValue": (value?: string | number | null | undefined) => any;
77
+ change: (value?: string | number | null | undefined) => any;
78
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
79
+ uploadRef: any;
80
+ }, any, import('vue').ComponentProvideOptions, {
81
+ P: {};
82
+ B: {};
83
+ D: {};
84
+ C: {};
85
+ M: {};
86
+ Defaults: {};
87
+ }, Readonly<{
88
+ config: import('../../../services/dataGen').WidgetConfig;
89
+ }> & Readonly<{
90
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
91
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
92
+ }>, {
93
+ submit(workflowId: number): void;
94
+ }, {}, {}, {}, {}> | null;
95
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
96
+ P: {};
97
+ B: {};
98
+ D: {};
99
+ C: {};
100
+ M: {};
101
+ Defaults: {};
102
+ }, Readonly<{}> & Readonly<{
103
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
104
+ onChange?: ((value: any) => any) | undefined;
105
+ onError?: ((value: string) => any) | undefined;
106
+ }>, {
107
+ isFileUpload(): boolean;
108
+ submit(workflowId: number): void;
109
+ }, {}, {}, {}, {}> | null)[];
110
+ };
111
+ rootEl: HTMLDivElement;
112
+ };
113
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
114
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
115
+ dataWidgetsRef: (import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
116
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
117
+ onChange?: ((value: any) => any) | undefined;
118
+ onError?: ((value: string) => any) | undefined;
119
+ }>, {
120
+ isFileUpload(): boolean;
121
+ submit(workflowId: number): void;
122
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
123
+ "update:modelValue": (value: any) => any;
124
+ change: (value: any) => any;
125
+ error: (value: string) => any;
126
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
127
+ widgetRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
128
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
129
+ onChange?: ((value: any) => any) | undefined;
130
+ onError?: ((value: string) => any) | undefined;
131
+ onInput?: ((value: any) => any) | undefined;
132
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
133
+ "update:modelValue": (value: any) => any;
134
+ change: (value: any) => any;
135
+ error: (value: string) => any;
136
+ input: (value: any) => any;
137
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
138
+ P: {};
139
+ B: {};
140
+ D: {};
141
+ C: {};
142
+ M: {};
143
+ Defaults: {};
144
+ }, Readonly<{}> & Readonly<{
145
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
146
+ onChange?: ((value: any) => any) | undefined;
147
+ onError?: ((value: string) => any) | undefined;
148
+ onInput?: ((value: any) => any) | undefined;
149
+ }>, {}, {}, {}, {}, {}> | import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
150
+ modelValue: string;
151
+ config: import('../../../services/dataGen').WidgetConfig;
152
+ }> & Readonly<{
153
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
154
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
155
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
156
+ "update:modelValue": (value?: string | number | null | undefined) => any;
157
+ change: (value?: string | number | null | undefined) => any;
158
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
159
+ P: {};
160
+ B: {};
161
+ D: {};
162
+ C: {};
163
+ M: {};
164
+ Defaults: {};
165
+ }, Readonly<{
166
+ modelValue: string;
167
+ config: import('../../../services/dataGen').WidgetConfig;
168
+ }> & Readonly<{
169
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
170
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
171
+ }>, {}, {}, {}, {}, {}> | import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
172
+ config: import('../../../services/dataGen').WidgetConfig;
173
+ }> & Readonly<{
174
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
175
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
176
+ }>, {
177
+ submit(workflowId: number): void;
178
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
179
+ "update:modelValue": (value?: string | number | null | undefined) => any;
180
+ change: (value?: string | number | null | undefined) => any;
181
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
182
+ uploadRef: any;
183
+ }, any, import('vue').ComponentProvideOptions, {
184
+ P: {};
185
+ B: {};
186
+ D: {};
187
+ C: {};
188
+ M: {};
189
+ Defaults: {};
190
+ }, Readonly<{
191
+ config: import('../../../services/dataGen').WidgetConfig;
192
+ }> & Readonly<{
193
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
194
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
195
+ }>, {
196
+ submit(workflowId: number): void;
197
+ }, {}, {}, {}, {}> | null;
198
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
199
+ P: {};
200
+ B: {};
201
+ D: {};
202
+ C: {};
203
+ M: {};
204
+ Defaults: {};
205
+ }, Readonly<{}> & Readonly<{
206
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
207
+ onChange?: ((value: any) => any) | undefined;
208
+ onError?: ((value: string) => any) | undefined;
209
+ }>, {
210
+ isFileUpload(): boolean;
211
+ submit(workflowId: number): void;
212
+ }, {}, {}, {}, {}> | null)[];
213
+ }, HTMLDivElement>;
214
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
215
+ export default _default;
216
+ type __VLS_WithTemplateSlots<T, S> = T & {
217
+ new (): {
218
+ $slots: S;
219
+ };
220
+ };
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ className: string;
3
+ workflowId: string;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ title?(_: {}): any;
9
+ content?(_: {}): any;
10
+ action?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLDivElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,21 @@
1
+ type __VLS_Props = {
2
+ className: string;
3
+ };
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ title?(_: {}): any;
8
+ content?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ className: string;
3
+ workflowId: string;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ title?(_: {}): any;
9
+ content?(_: {}): any;
10
+ action?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLDivElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,13 @@
1
+ import { WidgetConfig } from '../../../services/dataGen';
2
+ type __VLS_Props = {
3
+ modelValue: string;
4
+ config: WidgetConfig;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ "update:modelValue": (value?: string | number | null | undefined) => any;
8
+ change: (value?: string | number | null | undefined) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
11
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { WidgetConfig } from '../../../services/dataGen';
2
+ type __VLS_Props = {
3
+ config: WidgetConfig;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
6
+ submit(workflowId: number): void;
7
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ "update:modelValue": (value?: string | number | null | undefined) => any;
9
+ change: (value?: string | number | null | undefined) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
12
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
14
+ uploadRef: any;
15
+ }, any>;
16
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ "update:modelValue": (value: any) => any;
3
+ change: (value: any) => any;
4
+ error: (value: string) => any;
5
+ input: (value: any) => any;
6
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
8
+ onChange?: ((value: any) => any) | undefined;
9
+ onError?: ((value: string) => any) | undefined;
10
+ onInput?: ((value: any) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ "update:modelValue": (value: any) => any;
3
+ change: (value: any) => any;
4
+ error: (value: string) => any;
5
+ input: (value: any) => any;
6
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
8
+ onChange?: ((value: any) => any) | undefined;
9
+ onError?: ((value: string) => any) | undefined;
10
+ onInput?: ((value: any) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { WidgetConfig } from '../../../services/dataGen';
2
+ type __VLS_Props = {
3
+ modelValue: string;
4
+ config: WidgetConfig;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ "update:modelValue": (value?: string | number | null | undefined) => any;
8
+ change: (value?: string | number | null | undefined) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
11
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ "update:modelValue": (value: any) => any;
3
+ change: (value: any) => any;
4
+ error: (value: string) => any;
5
+ input: (value: any) => any;
6
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
8
+ onChange?: ((value: any) => any) | undefined;
9
+ onError?: ((value: string) => any) | undefined;
10
+ onInput?: ((value: any) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { WidgetConfig, ValidationConfig } from '../../../services/dataGen';
2
+ export type FormCompProps = {
3
+ modelValue: any;
4
+ config: WidgetConfig;
5
+ readonly?: boolean;
6
+ validations?: ValidationConfig[];
7
+ [key: string]: any;
8
+ };
9
+ export type FormCompEmits = {
10
+ (e: 'update:modelValue', value: any): void;
11
+ (e: 'change', value: any): void;
12
+ (e: 'error', value: string): void;
13
+ };
@@ -0,0 +1,85 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ isFileUpload(): boolean;
3
+ submit(workflowId: number): void;
4
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
+ "update:modelValue": (value: any) => any;
6
+ change: (value: any) => any;
7
+ error: (value: string) => any;
8
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
10
+ onChange?: ((value: any) => any) | undefined;
11
+ onError?: ((value: string) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
13
+ widgetRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
15
+ onChange?: ((value: any) => any) | undefined;
16
+ onError?: ((value: string) => any) | undefined;
17
+ onInput?: ((value: any) => any) | undefined;
18
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
+ "update:modelValue": (value: any) => any;
20
+ change: (value: any) => any;
21
+ error: (value: string) => any;
22
+ input: (value: any) => any;
23
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
24
+ P: {};
25
+ B: {};
26
+ D: {};
27
+ C: {};
28
+ M: {};
29
+ Defaults: {};
30
+ }, Readonly<{}> & Readonly<{
31
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
32
+ onChange?: ((value: any) => any) | undefined;
33
+ onError?: ((value: string) => any) | undefined;
34
+ onInput?: ((value: any) => any) | undefined;
35
+ }>, {}, {}, {}, {}, {}> | import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
36
+ modelValue: string;
37
+ config: import('../../../services/dataGen').WidgetConfig;
38
+ }> & Readonly<{
39
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
40
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
41
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
42
+ "update:modelValue": (value?: string | number | null | undefined) => any;
43
+ change: (value?: string | number | null | undefined) => any;
44
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
45
+ P: {};
46
+ B: {};
47
+ D: {};
48
+ C: {};
49
+ M: {};
50
+ Defaults: {};
51
+ }, Readonly<{
52
+ modelValue: string;
53
+ config: import('../../../services/dataGen').WidgetConfig;
54
+ }> & Readonly<{
55
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
56
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
57
+ }>, {}, {}, {}, {}, {}> | import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
58
+ config: import('../../../services/dataGen').WidgetConfig;
59
+ }> & Readonly<{
60
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
61
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
62
+ }>, {
63
+ submit(workflowId: number): void;
64
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
65
+ "update:modelValue": (value?: string | number | null | undefined) => any;
66
+ change: (value?: string | number | null | undefined) => any;
67
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
68
+ uploadRef: any;
69
+ }, any, import('vue').ComponentProvideOptions, {
70
+ P: {};
71
+ B: {};
72
+ D: {};
73
+ C: {};
74
+ M: {};
75
+ Defaults: {};
76
+ }, Readonly<{
77
+ config: import('../../../services/dataGen').WidgetConfig;
78
+ }> & Readonly<{
79
+ "onUpdate:modelValue"?: ((value?: string | number | null | undefined) => any) | undefined;
80
+ onChange?: ((value?: string | number | null | undefined) => any) | undefined;
81
+ }>, {
82
+ submit(workflowId: number): void;
83
+ }, {}, {}, {}, {}> | null;
84
+ }, HTMLDivElement>;
85
+ export default _default;