@tmagic/editor 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +2 -2
- package/dist/tmagic-editor.js +81 -54
- package/dist/tmagic-editor.umd.cjs +80 -52
- package/package.json +19 -24
- package/src/fields/DataSourceFieldSelect.vue +3 -41
- package/src/fields/EventSelect.vue +30 -9
- package/src/layouts/workspace/viewer/Stage.vue +7 -6
- package/src/services/editor.ts +2 -2
- package/src/utils/content-menu.ts +7 -3
- package/src/utils/data-source/index.ts +39 -3
- package/src/utils/editor.ts +14 -7
- package/types/components/CodeBlockEditor.vue.d.ts +21 -34
- package/types/components/CodeParams.vue.d.ts +2 -2
- package/types/components/ContentMenu.vue.d.ts +1 -1
- package/types/components/FloatingBox.vue.d.ts +41 -38
- package/types/components/ScrollViewer.vue.d.ts +1 -1
- package/types/components/ToolButton.vue.d.ts +4 -4
- package/types/components/Tree.vue.d.ts +2 -2
- package/types/fields/CodeLink.vue.d.ts +2 -2
- package/types/fields/DataSourceFields.vue.d.ts +32 -78
- package/types/fields/DataSourceInput.vue.d.ts +2 -2
- package/types/fields/DataSourceMethods.vue.d.ts +2 -2
- package/types/fields/DataSourceMocks.vue.d.ts +31 -76
- package/types/fields/KeyValue.vue.d.ts +2 -2
- package/types/fields/UISelect.vue.d.ts +2 -2
- package/types/hooks/use-code-block-edit.d.ts +18 -6
- package/types/hooks/use-data-source-edit.d.ts +18 -6
- package/types/hooks/use-data-source-method.d.ts +18 -6
- package/types/layouts/CodeEditor.vue.d.ts +1 -1
- package/types/layouts/PropsPanel.vue.d.ts +38 -38
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +1 -1
- package/types/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts +20 -30
- package/types/layouts/sidebar/data-source/DataSourceList.vue.d.ts +1 -1
- package/types/layouts/sidebar/layer/LayerMenu.vue.d.ts +6 -6
- package/types/layouts/workspace/viewer/Stage.vue.d.ts +4 -4
- package/types/layouts/workspace/viewer/ViewerMenu.vue.d.ts +6 -6
- package/types/services/dataSource.d.ts +1 -0
- package/types/services/ui.d.ts +1 -1
- package/types/utils/data-source/index.d.ts +3 -2
|
@@ -1,85 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type: import("vue").PropType<"small" | "large" | "default">;
|
|
14
|
-
};
|
|
15
|
-
model: {
|
|
16
|
-
type: import("vue").PropType<any>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
disabled: {
|
|
20
|
-
type: import("vue").PropType<boolean>;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
config: {
|
|
24
|
-
type: import("vue").PropType<{
|
|
25
|
-
type: 'data-source-fields';
|
|
26
|
-
}>;
|
|
27
|
-
required: true;
|
|
28
|
-
};
|
|
29
|
-
initValues: {
|
|
30
|
-
type: import("vue").PropType<any>;
|
|
31
|
-
};
|
|
32
|
-
lastValues: {
|
|
33
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
34
|
-
};
|
|
35
|
-
prop: {
|
|
36
|
-
type: import("vue").PropType<string>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
import { type FieldProps } from '@tmagic/form';
|
|
2
|
+
declare let __VLS_typeProps: FieldProps<{
|
|
3
|
+
type: 'data-source-fields';
|
|
4
|
+
}>;
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
'width'?: number;
|
|
7
|
+
'visible'?: boolean;
|
|
8
|
+
'visible1'?: boolean;
|
|
9
|
+
} & typeof __VLS_typeProps;
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
13
|
"update:width": (width: number) => void;
|
|
41
14
|
"update:visible": (visible: boolean) => void;
|
|
42
15
|
"update:visible1": (visible1: boolean) => void;
|
|
43
16
|
change: (...args: any[]) => void;
|
|
44
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
visible1: import("vue").PropType<boolean>;
|
|
48
|
-
name: {
|
|
49
|
-
type: import("vue").PropType<string>;
|
|
50
|
-
required: true;
|
|
51
|
-
};
|
|
52
|
-
values: {
|
|
53
|
-
type: import("vue").PropType<any>;
|
|
54
|
-
};
|
|
55
|
-
size: {
|
|
56
|
-
type: import("vue").PropType<"small" | "large" | "default">;
|
|
57
|
-
};
|
|
58
|
-
model: {
|
|
59
|
-
type: import("vue").PropType<any>;
|
|
60
|
-
required: true;
|
|
61
|
-
};
|
|
62
|
-
disabled: {
|
|
63
|
-
type: import("vue").PropType<boolean>;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
config: {
|
|
67
|
-
type: import("vue").PropType<{
|
|
68
|
-
type: 'data-source-fields';
|
|
69
|
-
}>;
|
|
70
|
-
required: true;
|
|
71
|
-
};
|
|
72
|
-
initValues: {
|
|
73
|
-
type: import("vue").PropType<any>;
|
|
74
|
-
};
|
|
75
|
-
lastValues: {
|
|
76
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
77
|
-
};
|
|
78
|
-
prop: {
|
|
79
|
-
type: import("vue").PropType<string>;
|
|
80
|
-
required: true;
|
|
81
|
-
};
|
|
82
|
-
}>> & {
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
}>>> & {
|
|
83
20
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
84
21
|
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
85
22
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
@@ -88,3 +25,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
25
|
disabled: boolean;
|
|
89
26
|
}, {}>;
|
|
90
27
|
export default _default;
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
36
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
+
type __VLS_TypePropsToOption<T> = {
|
|
38
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
+
} : {
|
|
41
|
+
type: import('vue').PropType<T[K]>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { FieldProps, FormItem } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
3
|
-
type:
|
|
3
|
+
type: "data-source-input";
|
|
4
4
|
} & FormItem>>, {
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
change: (value: string) => void;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
9
|
-
type:
|
|
9
|
+
type: "data-source-input";
|
|
10
10
|
} & FormItem>>, {
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
}>>> & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { FieldProps } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
3
|
-
type:
|
|
3
|
+
type: "data-source-methods";
|
|
4
4
|
}>>, {
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
change: (...args: any[]) => void;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
9
|
-
type:
|
|
9
|
+
type: "data-source-methods";
|
|
10
10
|
}>>, {
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
}>>> & {
|
|
@@ -1,82 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
type: import("vue").PropType<"small" | "large" | "default">;
|
|
13
|
-
};
|
|
14
|
-
model: {
|
|
15
|
-
type: import("vue").PropType<any>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
disabled: {
|
|
19
|
-
type: import("vue").PropType<boolean>;
|
|
20
|
-
default: boolean;
|
|
21
|
-
};
|
|
22
|
-
config: {
|
|
23
|
-
type: import("vue").PropType<{
|
|
24
|
-
type: 'data-source-mocks';
|
|
25
|
-
}>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
initValues: {
|
|
29
|
-
type: import("vue").PropType<any>;
|
|
30
|
-
};
|
|
31
|
-
lastValues: {
|
|
32
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
33
|
-
};
|
|
34
|
-
prop: {
|
|
35
|
-
type: import("vue").PropType<string>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
import { type FieldProps } from '@tmagic/form';
|
|
2
|
+
declare let __VLS_typeProps: FieldProps<{
|
|
3
|
+
type: 'data-source-mocks';
|
|
4
|
+
}>;
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
'width'?: number;
|
|
7
|
+
'visible'?: boolean;
|
|
8
|
+
} & typeof __VLS_typeProps;
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
12
|
"update:width": (width: number) => void;
|
|
40
13
|
"update:visible": (visible: boolean) => void;
|
|
41
14
|
change: (...args: any[]) => void;
|
|
42
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
name: {
|
|
46
|
-
type: import("vue").PropType<string>;
|
|
47
|
-
required: true;
|
|
48
|
-
};
|
|
49
|
-
values: {
|
|
50
|
-
type: import("vue").PropType<any>;
|
|
51
|
-
};
|
|
52
|
-
size: {
|
|
53
|
-
type: import("vue").PropType<"small" | "large" | "default">;
|
|
54
|
-
};
|
|
55
|
-
model: {
|
|
56
|
-
type: import("vue").PropType<any>;
|
|
57
|
-
required: true;
|
|
58
|
-
};
|
|
59
|
-
disabled: {
|
|
60
|
-
type: import("vue").PropType<boolean>;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
config: {
|
|
64
|
-
type: import("vue").PropType<{
|
|
65
|
-
type: 'data-source-mocks';
|
|
66
|
-
}>;
|
|
67
|
-
required: true;
|
|
68
|
-
};
|
|
69
|
-
initValues: {
|
|
70
|
-
type: import("vue").PropType<any>;
|
|
71
|
-
};
|
|
72
|
-
lastValues: {
|
|
73
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
74
|
-
};
|
|
75
|
-
prop: {
|
|
76
|
-
type: import("vue").PropType<string>;
|
|
77
|
-
required: true;
|
|
78
|
-
};
|
|
79
|
-
}>> & {
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
}>>> & {
|
|
80
18
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
81
19
|
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
82
20
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
@@ -84,3 +22,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
22
|
disabled: boolean;
|
|
85
23
|
}, {}>;
|
|
86
24
|
export default _default;
|
|
25
|
+
type __VLS_WithDefaults<P, D> = {
|
|
26
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
27
|
+
default: D[K];
|
|
28
|
+
}> : P[K];
|
|
29
|
+
};
|
|
30
|
+
type __VLS_Prettify<T> = {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} & {};
|
|
33
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
+
type __VLS_TypePropsToOption<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
+
} : {
|
|
38
|
+
type: import('vue').PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { FieldProps, FormItem } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
3
|
-
type:
|
|
3
|
+
type: "key-value";
|
|
4
4
|
advanced?: boolean | undefined;
|
|
5
5
|
} & FormItem>>, {
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
change: (value: Record<string, any>) => void;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
|
|
10
|
-
type:
|
|
10
|
+
type: "key-value";
|
|
11
11
|
advanced?: boolean | undefined;
|
|
12
12
|
} & FormItem>>, {
|
|
13
13
|
disabled: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FieldProps, FormItem } from '@tmagic/form';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<FieldProps<{
|
|
3
|
-
type:
|
|
3
|
+
type: "ui-select";
|
|
4
4
|
} & FormItem>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
5
|
change: (...args: any[]) => void;
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<FieldProps<{
|
|
7
|
-
type:
|
|
7
|
+
type: "ui-select";
|
|
8
8
|
} & FormItem>>>> & {
|
|
9
9
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
10
10
|
}, {}, {}>;
|
|
@@ -4,8 +4,12 @@ export declare const useCodeBlockEdit: (codeBlockService?: CodeBlockService) =>
|
|
|
4
4
|
codeId: import("vue").Ref<string | undefined>;
|
|
5
5
|
codeConfig: import("vue").Ref<CodeBlockContent | undefined>;
|
|
6
6
|
codeBlockEditor: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
-
width:
|
|
8
|
-
|
|
7
|
+
width: {
|
|
8
|
+
type: import("vue").PropType<number>;
|
|
9
|
+
};
|
|
10
|
+
visible: {
|
|
11
|
+
type: import("vue").PropType<boolean>;
|
|
12
|
+
};
|
|
9
13
|
content: {
|
|
10
14
|
type: import("vue").PropType<CodeBlockContent>;
|
|
11
15
|
required: true;
|
|
@@ -31,8 +35,12 @@ export declare const useCodeBlockEdit: (codeBlockService?: CodeBlockService) =>
|
|
|
31
35
|
"update:visible": (visible: boolean) => void;
|
|
32
36
|
submit: (values: CodeBlockContent) => void;
|
|
33
37
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
-
width:
|
|
35
|
-
|
|
38
|
+
width: {
|
|
39
|
+
type: import("vue").PropType<number>;
|
|
40
|
+
};
|
|
41
|
+
visible: {
|
|
42
|
+
type: import("vue").PropType<boolean>;
|
|
43
|
+
};
|
|
36
44
|
content: {
|
|
37
45
|
type: import("vue").PropType<CodeBlockContent>;
|
|
38
46
|
required: true;
|
|
@@ -58,8 +66,12 @@ export declare const useCodeBlockEdit: (codeBlockService?: CodeBlockService) =>
|
|
|
58
66
|
M: {};
|
|
59
67
|
Defaults: {};
|
|
60
68
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
61
|
-
width:
|
|
62
|
-
|
|
69
|
+
width: {
|
|
70
|
+
type: import("vue").PropType<number>;
|
|
71
|
+
};
|
|
72
|
+
visible: {
|
|
73
|
+
type: import("vue").PropType<boolean>;
|
|
74
|
+
};
|
|
63
75
|
content: {
|
|
64
76
|
type: import("vue").PropType<CodeBlockContent>;
|
|
65
77
|
required: true;
|
|
@@ -3,8 +3,12 @@ import type { DataSourceService } from '../services/dataSource';
|
|
|
3
3
|
export declare const useDataSourceEdit: (dataSourceService?: DataSourceService) => {
|
|
4
4
|
dialogTitle: import("vue").Ref<string>;
|
|
5
5
|
editDialog: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
-
visible:
|
|
7
|
-
|
|
6
|
+
visible: {
|
|
7
|
+
type: import("vue").PropType<boolean>;
|
|
8
|
+
};
|
|
9
|
+
width: {
|
|
10
|
+
type: import("vue").PropType<number>;
|
|
11
|
+
};
|
|
8
12
|
title: {
|
|
9
13
|
type: import("vue").PropType<string>;
|
|
10
14
|
};
|
|
@@ -28,8 +32,12 @@ export declare const useDataSourceEdit: (dataSourceService?: DataSourceService)
|
|
|
28
32
|
"update:visible": (visible: boolean) => void;
|
|
29
33
|
submit: (...args: any[]) => void;
|
|
30
34
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
-
visible:
|
|
32
|
-
|
|
35
|
+
visible: {
|
|
36
|
+
type: import("vue").PropType<boolean>;
|
|
37
|
+
};
|
|
38
|
+
width: {
|
|
39
|
+
type: import("vue").PropType<number>;
|
|
40
|
+
};
|
|
33
41
|
title: {
|
|
34
42
|
type: import("vue").PropType<string>;
|
|
35
43
|
};
|
|
@@ -53,8 +61,12 @@ export declare const useDataSourceEdit: (dataSourceService?: DataSourceService)
|
|
|
53
61
|
M: {};
|
|
54
62
|
Defaults: {};
|
|
55
63
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
-
visible:
|
|
57
|
-
|
|
64
|
+
visible: {
|
|
65
|
+
type: import("vue").PropType<boolean>;
|
|
66
|
+
};
|
|
67
|
+
width: {
|
|
68
|
+
type: import("vue").PropType<number>;
|
|
69
|
+
};
|
|
58
70
|
title: {
|
|
59
71
|
type: import("vue").PropType<string>;
|
|
60
72
|
};
|
|
@@ -2,8 +2,12 @@ import type { CodeBlockContent, DataSourceSchema } from '@tmagic/schema';
|
|
|
2
2
|
export declare const useDataSourceMethod: () => {
|
|
3
3
|
codeConfig: import("vue").Ref<CodeBlockContent | undefined>;
|
|
4
4
|
codeBlockEditor: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
-
width:
|
|
6
|
-
|
|
5
|
+
width: {
|
|
6
|
+
type: import("vue").PropType<number>;
|
|
7
|
+
};
|
|
8
|
+
visible: {
|
|
9
|
+
type: import("vue").PropType<boolean>;
|
|
10
|
+
};
|
|
7
11
|
content: {
|
|
8
12
|
type: import("vue").PropType<CodeBlockContent>;
|
|
9
13
|
required: true;
|
|
@@ -29,8 +33,12 @@ export declare const useDataSourceMethod: () => {
|
|
|
29
33
|
"update:visible": (visible: boolean) => void;
|
|
30
34
|
submit: (values: CodeBlockContent) => void;
|
|
31
35
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
-
width:
|
|
33
|
-
|
|
36
|
+
width: {
|
|
37
|
+
type: import("vue").PropType<number>;
|
|
38
|
+
};
|
|
39
|
+
visible: {
|
|
40
|
+
type: import("vue").PropType<boolean>;
|
|
41
|
+
};
|
|
34
42
|
content: {
|
|
35
43
|
type: import("vue").PropType<CodeBlockContent>;
|
|
36
44
|
required: true;
|
|
@@ -56,8 +64,12 @@ export declare const useDataSourceMethod: () => {
|
|
|
56
64
|
M: {};
|
|
57
65
|
Defaults: {};
|
|
58
66
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
-
width:
|
|
60
|
-
|
|
67
|
+
width: {
|
|
68
|
+
type: import("vue").PropType<number>;
|
|
69
|
+
};
|
|
70
|
+
visible: {
|
|
71
|
+
type: import("vue").PropType<boolean>;
|
|
72
|
+
};
|
|
61
73
|
content: {
|
|
62
74
|
type: import("vue").PropType<CodeBlockContent>;
|
|
63
75
|
required: true;
|
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
20
|
parse: boolean;
|
|
21
21
|
}>, {
|
|
22
22
|
values: import("vue").Ref<string>;
|
|
23
|
-
getEditor(): monaco.editor.
|
|
23
|
+
getEditor(): monaco.editor.IStandaloneCodeEditor | monaco.editor.IStandaloneDiffEditor | null;
|
|
24
24
|
getVsEditor(): monaco.editor.IStandaloneCodeEditor | null;
|
|
25
25
|
getVsDiffEditor(): monaco.editor.IStandaloneDiffEditor | null;
|
|
26
26
|
setEditorValue: (v: any, m: any) => void | undefined;
|
|
@@ -5,8 +5,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
5
5
|
extendState?: ((state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
6
6
|
}>, {
|
|
7
7
|
configForm: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
labelWidth: {
|
|
9
|
+
type: import("vue").PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
disabled: {
|
|
13
|
+
type: import("vue").PropType<boolean>;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
8
16
|
size: {
|
|
9
|
-
type: import("vue").PropType<"
|
|
17
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
10
18
|
};
|
|
11
19
|
popperClass: {
|
|
12
20
|
type: import("vue").PropType<string>;
|
|
@@ -15,27 +23,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
23
|
type: import("vue").PropType<string>;
|
|
16
24
|
default: string;
|
|
17
25
|
};
|
|
18
|
-
disabled: {
|
|
19
|
-
type: import("vue").PropType<boolean>;
|
|
20
|
-
default: boolean;
|
|
21
|
-
};
|
|
22
26
|
config: {
|
|
23
27
|
type: import("vue").PropType<import("@tmagic/form").FormConfig>;
|
|
24
28
|
required: true;
|
|
25
29
|
default: () => never[];
|
|
26
30
|
};
|
|
27
|
-
labelWidth: {
|
|
28
|
-
type: import("vue").PropType<string>;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
|
-
extendState: {
|
|
32
|
-
type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
|
|
33
|
-
};
|
|
34
31
|
initValues: {
|
|
35
32
|
type: import("vue").PropType<Record<string, any>>;
|
|
36
33
|
required: true;
|
|
37
34
|
default: () => {};
|
|
38
35
|
};
|
|
36
|
+
extendState: {
|
|
37
|
+
type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
|
|
38
|
+
};
|
|
39
39
|
lastValues: {
|
|
40
40
|
type: import("vue").PropType<Record<string, any>>;
|
|
41
41
|
default: () => {};
|
|
@@ -83,8 +83,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
83
83
|
"field-input": (...args: any[]) => void;
|
|
84
84
|
"field-change": (...args: any[]) => void;
|
|
85
85
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
+
labelWidth: {
|
|
87
|
+
type: import("vue").PropType<string>;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
disabled: {
|
|
91
|
+
type: import("vue").PropType<boolean>;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
86
94
|
size: {
|
|
87
|
-
type: import("vue").PropType<"
|
|
95
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
88
96
|
};
|
|
89
97
|
popperClass: {
|
|
90
98
|
type: import("vue").PropType<string>;
|
|
@@ -93,27 +101,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
93
101
|
type: import("vue").PropType<string>;
|
|
94
102
|
default: string;
|
|
95
103
|
};
|
|
96
|
-
disabled: {
|
|
97
|
-
type: import("vue").PropType<boolean>;
|
|
98
|
-
default: boolean;
|
|
99
|
-
};
|
|
100
104
|
config: {
|
|
101
105
|
type: import("vue").PropType<import("@tmagic/form").FormConfig>;
|
|
102
106
|
required: true;
|
|
103
107
|
default: () => never[];
|
|
104
108
|
};
|
|
105
|
-
labelWidth: {
|
|
106
|
-
type: import("vue").PropType<string>;
|
|
107
|
-
default: string;
|
|
108
|
-
};
|
|
109
|
-
extendState: {
|
|
110
|
-
type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
|
|
111
|
-
};
|
|
112
109
|
initValues: {
|
|
113
110
|
type: import("vue").PropType<Record<string, any>>;
|
|
114
111
|
required: true;
|
|
115
112
|
default: () => {};
|
|
116
113
|
};
|
|
114
|
+
extendState: {
|
|
115
|
+
type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
|
|
116
|
+
};
|
|
117
117
|
lastValues: {
|
|
118
118
|
type: import("vue").PropType<Record<string, any>>;
|
|
119
119
|
default: () => {};
|
|
@@ -156,8 +156,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
156
156
|
parentValues: Record<string, any>;
|
|
157
157
|
labelWidth: string;
|
|
158
158
|
disabled: boolean;
|
|
159
|
-
height: string;
|
|
160
159
|
stepActive: string | number;
|
|
160
|
+
height: string;
|
|
161
161
|
inline: boolean;
|
|
162
162
|
labelPosition: string;
|
|
163
163
|
}, true, {}, {}, {
|
|
@@ -168,8 +168,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
168
168
|
M: {};
|
|
169
169
|
Defaults: {};
|
|
170
170
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
171
|
+
labelWidth: {
|
|
172
|
+
type: import("vue").PropType<string>;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
disabled: {
|
|
176
|
+
type: import("vue").PropType<boolean>;
|
|
177
|
+
default: boolean;
|
|
178
|
+
};
|
|
171
179
|
size: {
|
|
172
|
-
type: import("vue").PropType<"
|
|
180
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
173
181
|
};
|
|
174
182
|
popperClass: {
|
|
175
183
|
type: import("vue").PropType<string>;
|
|
@@ -178,27 +186,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
178
186
|
type: import("vue").PropType<string>;
|
|
179
187
|
default: string;
|
|
180
188
|
};
|
|
181
|
-
disabled: {
|
|
182
|
-
type: import("vue").PropType<boolean>;
|
|
183
|
-
default: boolean;
|
|
184
|
-
};
|
|
185
189
|
config: {
|
|
186
190
|
type: import("vue").PropType<import("@tmagic/form").FormConfig>;
|
|
187
191
|
required: true;
|
|
188
192
|
default: () => never[];
|
|
189
193
|
};
|
|
190
|
-
labelWidth: {
|
|
191
|
-
type: import("vue").PropType<string>;
|
|
192
|
-
default: string;
|
|
193
|
-
};
|
|
194
|
-
extendState: {
|
|
195
|
-
type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
|
|
196
|
-
};
|
|
197
194
|
initValues: {
|
|
198
195
|
type: import("vue").PropType<Record<string, any>>;
|
|
199
196
|
required: true;
|
|
200
197
|
default: () => {};
|
|
201
198
|
};
|
|
199
|
+
extendState: {
|
|
200
|
+
type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
|
|
201
|
+
};
|
|
202
202
|
lastValues: {
|
|
203
203
|
type: import("vue").PropType<Record<string, any>>;
|
|
204
204
|
default: () => {};
|
|
@@ -249,8 +249,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
249
249
|
parentValues: Record<string, any>;
|
|
250
250
|
labelWidth: string;
|
|
251
251
|
disabled: boolean;
|
|
252
|
-
height: string;
|
|
253
252
|
stepActive: string | number;
|
|
253
|
+
height: string;
|
|
254
254
|
inline: boolean;
|
|
255
255
|
labelPosition: string;
|
|
256
256
|
}> | undefined>;
|
|
@@ -10,8 +10,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
11
|
customError?: ((id: Id, errorType: CodeDeleteErrorType) => any) | undefined;
|
|
12
12
|
}>>> & {
|
|
13
|
-
onRemove?: ((id: string) => any) | undefined;
|
|
14
13
|
onEdit?: ((id: string) => any) | undefined;
|
|
14
|
+
onRemove?: ((id: string) => any) | undefined;
|
|
15
15
|
}, {}, {}>, Readonly<CodeBlockListSlots> & CodeBlockListSlots>;
|
|
16
16
|
export default _default;
|
|
17
17
|
type __VLS_WithTemplateSlots<T, S> = T & {
|