@vtj/designer 0.20.5 → 0.20.7
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/Editor-B4bZWwm4.js +4 -0
- package/dist/{index-BChd_dvS.js → index-jVfsSuKN.js} +9075 -8694
- package/dist/index.mjs +77 -76
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/types/components/hooks/index.d.ts +1 -0
- package/types/components/hooks/useCanAddComponent.d.ts +4 -0
- package/types/components/shared/Icon.d.ts +1 -1
- package/types/components/shared/add-component.d.ts +11 -0
- package/types/components/shared/index.d.ts +2 -1
- package/types/components/shared/item.d.ts +2 -2
- package/types/components/widgets/apis/form.d.ts +9 -9
- package/types/components/widgets/devtools/index.d.ts +9 -9
- package/types/components/widgets/index.d.ts +2047 -12
- package/types/components/widgets/outline/index.d.ts +2038 -2
- package/types/framework/designer.d.ts +9 -1
- package/types/version.d.ts +2 -2
- package/dist/Editor-RoreYvd1.js +0 -4
|
@@ -18,8 +18,8 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
18
18
|
size: BaseSize;
|
|
19
19
|
primary: boolean;
|
|
20
20
|
mode: DialogMode;
|
|
21
|
-
pure: boolean;
|
|
22
21
|
draggable: boolean | DraggableOptions;
|
|
22
|
+
pure: boolean;
|
|
23
23
|
width: string | number;
|
|
24
24
|
height: string | number;
|
|
25
25
|
modelValue: boolean;
|
|
@@ -36,12 +36,12 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
36
36
|
readonly modelValue: boolean;
|
|
37
37
|
readonly mode: DialogMode;
|
|
38
38
|
readonly draggable: boolean | DraggableOptions;
|
|
39
|
-
readonly pure: boolean;
|
|
40
39
|
readonly closable: boolean;
|
|
41
40
|
readonly modal: boolean;
|
|
42
41
|
readonly maximizable: boolean;
|
|
43
42
|
readonly minimizable: boolean;
|
|
44
43
|
readonly bodyPadding: boolean;
|
|
44
|
+
readonly pure: boolean;
|
|
45
45
|
readonly left?: string | number | undefined;
|
|
46
46
|
readonly icon?: IconParam | undefined;
|
|
47
47
|
readonly zIndex?: number | undefined;
|
|
@@ -50,11 +50,11 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
50
50
|
readonly cancel?: string | boolean | undefined;
|
|
51
51
|
readonly beforeClose?: (() => boolean | Promise<boolean>) | undefined;
|
|
52
52
|
readonly src?: string | undefined;
|
|
53
|
+
readonly subtitle?: string | undefined;
|
|
54
|
+
readonly submit?: string | boolean | undefined;
|
|
53
55
|
readonly content?: Record<string, any> | VNode<RendererNode, RendererElement, {
|
|
54
56
|
[key: string]: any;
|
|
55
57
|
}> | DefineComponent<any, any, any, any> | undefined;
|
|
56
|
-
readonly subtitle?: string | undefined;
|
|
57
|
-
readonly submit?: string | boolean | undefined;
|
|
58
58
|
readonly resizable?: boolean | ResizableOptions | undefined;
|
|
59
59
|
readonly componentInstance?: Record<string, any> | null | undefined;
|
|
60
60
|
readonly onClose?: (() => any) | undefined | undefined;
|
|
@@ -109,7 +109,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
109
109
|
isOutside: ShallowRef<boolean, boolean>;
|
|
110
110
|
stop: () => void;
|
|
111
111
|
}) => any) | undefined | undefined;
|
|
112
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "height" | "width" | "primary" | "size" | "modelValue" | "mode" | "draggable" | "
|
|
112
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "height" | "width" | "primary" | "size" | "modelValue" | "mode" | "draggable" | "closable" | "modal" | "maximizable" | "minimizable" | "bodyPadding" | "pure">;
|
|
113
113
|
$attrs: Attrs;
|
|
114
114
|
$refs: {
|
|
115
115
|
[x: string]: unknown;
|
|
@@ -684,7 +684,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
684
684
|
$root: ComponentPublicInstance | null;
|
|
685
685
|
$parent: ComponentPublicInstance | null;
|
|
686
686
|
$host: Element | null;
|
|
687
|
-
$emit: ((event: "close") => void) & ((event: "cancel") => void) & ((event: "
|
|
687
|
+
$emit: ((event: "close") => void) & ((event: "cancel") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "submit") => void) & ((event: "maximized") => void) & ((event: "minimized") => void) & ((event: "open", instance: ComponentInternalInstance) => void) & ((event: "resizing", dir: string, mie: {
|
|
688
688
|
x: ShallowRef<number, number>;
|
|
689
689
|
y: ShallowRef<number, number>;
|
|
690
690
|
sourceType: ShallowRef<UseMouseSourceType, UseMouseSourceType>;
|
|
@@ -949,8 +949,8 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
949
949
|
size: BaseSize;
|
|
950
950
|
primary: boolean;
|
|
951
951
|
mode: DialogMode;
|
|
952
|
-
pure: boolean;
|
|
953
952
|
draggable: boolean | DraggableOptions;
|
|
953
|
+
pure: boolean;
|
|
954
954
|
width: string | number;
|
|
955
955
|
height: string | number;
|
|
956
956
|
modelValue: boolean;
|
|
@@ -983,8 +983,8 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
983
983
|
size: BaseSize;
|
|
984
984
|
primary: boolean;
|
|
985
985
|
mode: DialogMode;
|
|
986
|
-
pure: boolean;
|
|
987
986
|
draggable: boolean | DraggableOptions;
|
|
987
|
+
pure: boolean;
|
|
988
988
|
width: string | number;
|
|
989
989
|
height: string | number;
|
|
990
990
|
modelValue: boolean;
|
|
@@ -1136,7 +1136,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
1136
1136
|
isOutside: ShallowRef<boolean, boolean>;
|
|
1137
1137
|
stop: () => void;
|
|
1138
1138
|
}) => any) | undefined;
|
|
1139
|
-
}>, "height" | "width" | "primary" | "close" | "cancel" | "size" | "modelValue" | "mode" | "draggable" | "
|
|
1139
|
+
}>, "height" | "width" | "primary" | "close" | "cancel" | "size" | "modelValue" | "mode" | "draggable" | "submit" | "$vtjEl" | "closable" | "modal" | "maximizable" | "minimizable" | "componentInstance" | "bodyPadding" | "pure" | "panelRef" | "state" | "maximized" | "minimized" | "changeMode" | "show" | "hide" | "iframeRef"> & {
|
|
1140
1140
|
$vtjEl: any;
|
|
1141
1141
|
panelRef: any;
|
|
1142
1142
|
state: {
|
|
@@ -12,8 +12,8 @@ declare const _default: DefineComponent<{}, {
|
|
|
12
12
|
size: BaseSize;
|
|
13
13
|
primary: boolean;
|
|
14
14
|
mode: DialogMode;
|
|
15
|
-
pure: boolean;
|
|
16
15
|
draggable: boolean | DraggableOptions;
|
|
16
|
+
pure: boolean;
|
|
17
17
|
width: string | number;
|
|
18
18
|
height: string | number;
|
|
19
19
|
modelValue: boolean;
|
|
@@ -30,12 +30,12 @@ declare const _default: DefineComponent<{}, {
|
|
|
30
30
|
readonly modelValue: boolean;
|
|
31
31
|
readonly mode: DialogMode;
|
|
32
32
|
readonly draggable: boolean | DraggableOptions;
|
|
33
|
-
readonly pure: boolean;
|
|
34
33
|
readonly closable: boolean;
|
|
35
34
|
readonly modal: boolean;
|
|
36
35
|
readonly maximizable: boolean;
|
|
37
36
|
readonly minimizable: boolean;
|
|
38
37
|
readonly bodyPadding: boolean;
|
|
38
|
+
readonly pure: boolean;
|
|
39
39
|
readonly left?: string | number | undefined;
|
|
40
40
|
readonly icon?: IconParam | undefined;
|
|
41
41
|
readonly zIndex?: number | undefined;
|
|
@@ -44,11 +44,11 @@ declare const _default: DefineComponent<{}, {
|
|
|
44
44
|
readonly cancel?: string | boolean | undefined;
|
|
45
45
|
readonly beforeClose?: (() => boolean | Promise<boolean>) | undefined;
|
|
46
46
|
readonly src?: string | undefined;
|
|
47
|
+
readonly subtitle?: string | undefined;
|
|
48
|
+
readonly submit?: string | boolean | undefined;
|
|
47
49
|
readonly content?: Record<string, any> | VNode<RendererNode, RendererElement, {
|
|
48
50
|
[key: string]: any;
|
|
49
51
|
}> | DefineComponent<any, any, any, any> | undefined;
|
|
50
|
-
readonly subtitle?: string | undefined;
|
|
51
|
-
readonly submit?: string | boolean | undefined;
|
|
52
52
|
readonly resizable?: boolean | ResizableOptions | undefined;
|
|
53
53
|
readonly componentInstance?: Record<string, any> | null | undefined;
|
|
54
54
|
readonly onClose?: (() => any) | undefined | undefined;
|
|
@@ -103,7 +103,7 @@ declare const _default: DefineComponent<{}, {
|
|
|
103
103
|
isOutside: ShallowRef<boolean, boolean>;
|
|
104
104
|
stop: () => void;
|
|
105
105
|
}) => any) | undefined | undefined;
|
|
106
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "height" | "width" | "primary" | "size" | "modelValue" | "mode" | "draggable" | "
|
|
106
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "height" | "width" | "primary" | "size" | "modelValue" | "mode" | "draggable" | "closable" | "modal" | "maximizable" | "minimizable" | "bodyPadding" | "pure">;
|
|
107
107
|
$attrs: Attrs;
|
|
108
108
|
$refs: {
|
|
109
109
|
[x: string]: unknown;
|
|
@@ -678,7 +678,7 @@ declare const _default: DefineComponent<{}, {
|
|
|
678
678
|
$root: ComponentPublicInstance | null;
|
|
679
679
|
$parent: ComponentPublicInstance | null;
|
|
680
680
|
$host: Element | null;
|
|
681
|
-
$emit: ((event: "close") => void) & ((event: "cancel") => void) & ((event: "
|
|
681
|
+
$emit: ((event: "close") => void) & ((event: "cancel") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "submit") => void) & ((event: "maximized") => void) & ((event: "minimized") => void) & ((event: "open", instance: ComponentInternalInstance) => void) & ((event: "resizing", dir: string, mie: {
|
|
682
682
|
x: ShallowRef<number, number>;
|
|
683
683
|
y: ShallowRef<number, number>;
|
|
684
684
|
sourceType: ShallowRef<UseMouseSourceType, UseMouseSourceType>;
|
|
@@ -943,8 +943,8 @@ declare const _default: DefineComponent<{}, {
|
|
|
943
943
|
size: BaseSize;
|
|
944
944
|
primary: boolean;
|
|
945
945
|
mode: DialogMode;
|
|
946
|
-
pure: boolean;
|
|
947
946
|
draggable: boolean | DraggableOptions;
|
|
947
|
+
pure: boolean;
|
|
948
948
|
width: string | number;
|
|
949
949
|
height: string | number;
|
|
950
950
|
modelValue: boolean;
|
|
@@ -977,8 +977,8 @@ declare const _default: DefineComponent<{}, {
|
|
|
977
977
|
size: BaseSize;
|
|
978
978
|
primary: boolean;
|
|
979
979
|
mode: DialogMode;
|
|
980
|
-
pure: boolean;
|
|
981
980
|
draggable: boolean | DraggableOptions;
|
|
981
|
+
pure: boolean;
|
|
982
982
|
width: string | number;
|
|
983
983
|
height: string | number;
|
|
984
984
|
modelValue: boolean;
|
|
@@ -1130,7 +1130,7 @@ declare const _default: DefineComponent<{}, {
|
|
|
1130
1130
|
isOutside: ShallowRef<boolean, boolean>;
|
|
1131
1131
|
stop: () => void;
|
|
1132
1132
|
}) => any) | undefined;
|
|
1133
|
-
}>, "height" | "width" | "primary" | "close" | "cancel" | "size" | "modelValue" | "mode" | "draggable" | "
|
|
1133
|
+
}>, "height" | "width" | "primary" | "close" | "cancel" | "size" | "modelValue" | "mode" | "draggable" | "submit" | "$vtjEl" | "closable" | "modal" | "maximizable" | "minimizable" | "componentInstance" | "bodyPadding" | "pure" | "panelRef" | "state" | "maximized" | "minimized" | "changeMode" | "show" | "hide" | "iframeRef"> & {
|
|
1134
1134
|
$vtjEl: any;
|
|
1135
1135
|
panelRef: any;
|
|
1136
1136
|
state: {
|