@vtj/designer 0.13.24 → 0.13.26
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-CDMLuXiC.js +4 -0
- package/dist/index-C-YTrhCA.js +31541 -0
- package/dist/index.mjs +53 -52
- package/dist/style.css +1 -1
- package/package.json +11 -8
- package/types/components/hooks/index.d.ts +2 -0
- package/types/components/hooks/useDesigner.d.ts +9 -1
- package/types/components/hooks/useDevtools.d.ts +9 -0
- package/types/components/hooks/useHotkeys.d.ts +38 -0
- package/types/components/shared/panel.d.ts +2 -2
- package/types/components/shared/viewport.d.ts +4 -2
- package/types/components/widgets/actions/index.d.ts +6 -2
- package/types/components/widgets/ai/index.d.ts +5 -5
- package/types/components/widgets/ai/json-input.d.ts +2 -2
- package/types/components/widgets/apis/form.d.ts +10 -7
- package/types/components/widgets/designer/index.d.ts +70 -1
- package/types/components/widgets/devtools/index.d.ts +1176 -0
- package/types/components/widgets/docs/index.d.ts +5 -5
- package/types/components/widgets/history/index.d.ts +3 -1
- package/types/components/widgets/hotkeys/index.d.ts +3 -0
- package/types/components/widgets/index.d.ts +1267 -20
- package/types/components/widgets/market/index.d.ts +5 -5
- package/types/components/widgets/scripts/group.d.ts +2 -2
- package/types/constants.d.ts +3 -0
- package/types/framework/designer.d.ts +1 -3
- package/types/framework/index.d.ts +0 -1
- package/types/framework/simulator.d.ts +3 -3
- package/types/framework/state.d.ts +1 -0
- package/types/framework/types.d.ts +3 -1
- package/types/version.d.ts +2 -2
- package/types/wrappers/setter.d.ts +1 -1
- package/dist/Editor-CLb3krdP.js +0 -4
- package/dist/index-4n90R5tK.js +0 -25611
- package/types/framework/devtools.d.ts +0 -28
@@ -86,7 +86,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
86
86
|
$root: ComponentPublicInstance | null;
|
87
87
|
$parent: ComponentPublicInstance | null;
|
88
88
|
$host: Element | null;
|
89
|
-
$emit: ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "keydown", evt:
|
89
|
+
$emit: ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "keydown", evt: KeyboardEvent | Event) => void) & ((event: "clear") => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void);
|
90
90
|
$el: any;
|
91
91
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
92
92
|
readonly inputmode: {
|
@@ -521,7 +521,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
521
521
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
522
522
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
523
523
|
onClear?: (() => any) | undefined;
|
524
|
-
}, "clear" | "type" | "
|
524
|
+
}, "clear" | "type" | "id" | "ref" | "modelValue" | "disabled" | "focus" | "tabindex" | "autofocus" | "input" | "select" | "textarea" | "inputmode" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "blur" | "resizeTextarea"> & ShallowUnwrapRef<{
|
525
525
|
input: ShallowRef<HTMLInputElement | undefined>;
|
526
526
|
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
527
527
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
@@ -30,10 +30,10 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
30
30
|
bodyPadding: boolean;
|
31
31
|
}> & Omit<{
|
32
32
|
readonly size: BaseSize;
|
33
|
-
readonly height: string | number;
|
34
|
-
readonly width: string | number;
|
35
33
|
readonly primary: boolean;
|
36
34
|
readonly mode: DialogMode;
|
35
|
+
readonly height: string | number;
|
36
|
+
readonly width: string | number;
|
37
37
|
readonly modelValue: boolean;
|
38
38
|
readonly draggable: boolean | DraggableOptions;
|
39
39
|
readonly pure: boolean;
|
@@ -42,12 +42,12 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
42
42
|
readonly maximizable: boolean;
|
43
43
|
readonly minimizable: boolean;
|
44
44
|
readonly bodyPadding: boolean;
|
45
|
-
readonly top?: string | number | undefined;
|
46
45
|
readonly left?: string | number | undefined;
|
47
|
-
readonly title?: string | undefined;
|
48
|
-
readonly cancel?: string | boolean | undefined;
|
49
46
|
readonly icon?: IconParam | undefined;
|
50
47
|
readonly zIndex?: number | undefined;
|
48
|
+
readonly top?: string | number | undefined;
|
49
|
+
readonly title?: string | undefined;
|
50
|
+
readonly cancel?: string | boolean | undefined;
|
51
51
|
readonly beforeClose?: (() => boolean | Promise<boolean>) | undefined;
|
52
52
|
readonly content?: Record<string, any> | VNode<RendererNode, RendererElement, {
|
53
53
|
[key: string]: any;
|
@@ -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, "size" | "
|
112
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "size" | "primary" | "mode" | "height" | "width" | "modelValue" | "draggable" | "pure" | "modal" | "closable" | "maximizable" | "minimizable" | "bodyPadding">;
|
113
113
|
$attrs: {
|
114
114
|
[x: string]: unknown;
|
115
115
|
};
|
@@ -682,6 +682,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
682
682
|
footer?(_: {}): any;
|
683
683
|
};
|
684
684
|
}) | null;
|
685
|
+
iframeRef: HTMLIFrameElement;
|
685
686
|
};
|
686
687
|
$slots: Readonly<{
|
687
688
|
[name: string]: Slot<any> | undefined;
|
@@ -896,6 +897,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
896
897
|
componentInstance: {
|
897
898
|
componentInstance: Record<string, any>;
|
898
899
|
} | undefined;
|
900
|
+
iframeRef: Ref<any, any>;
|
899
901
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
900
902
|
close: () => any;
|
901
903
|
open: (instance: ComponentInternalInstance) => any;
|
@@ -1140,7 +1142,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
1140
1142
|
isOutside: ShallowRef<boolean, boolean>;
|
1141
1143
|
stop: () => void;
|
1142
1144
|
}) => any) | undefined;
|
1143
|
-
}>, "size" | "
|
1145
|
+
}>, "size" | "primary" | "mode" | "height" | "width" | "close" | "cancel" | "modelValue" | "draggable" | "pure" | "submit" | "$vtjEl" | "modal" | "closable" | "maximizable" | "minimizable" | "componentInstance" | "bodyPadding" | "panelRef" | "state" | "maximized" | "minimized" | "changeMode" | "show" | "hide" | "iframeRef"> & ShallowUnwrapRef<{
|
1144
1146
|
$vtjEl: ComputedRef<any>;
|
1145
1147
|
panelRef: Ref<any, any>;
|
1146
1148
|
state: {
|
@@ -1166,6 +1168,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
1166
1168
|
componentInstance: {
|
1167
1169
|
componentInstance: Record<string, any>;
|
1168
1170
|
} | undefined;
|
1171
|
+
iframeRef: Ref<any, any>;
|
1169
1172
|
}> & {} & ComponentCustomProperties & {} & {
|
1170
1173
|
$slots: {
|
1171
1174
|
actions?(_: {}): any;
|
@@ -1,10 +1,79 @@
|
|
1
|
-
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
1
|
+
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
2
2
|
import { Designer } from '../../..';
|
3
|
+
import { Props } from '../../shared/viewport';
|
4
|
+
import { OnCleanup } from '@vue/reactivity';
|
3
5
|
declare const _default: DefineComponent<{}, {
|
4
6
|
designer: ComputedRef< Designer | null>;
|
5
7
|
mode: ComputedRef<any>;
|
6
8
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
7
9
|
container: HTMLDivElement;
|
10
|
+
viewport: ({
|
11
|
+
$: ComponentInternalInstance;
|
12
|
+
$data: {};
|
13
|
+
$props: {
|
14
|
+
readonly mode?: "pc" | "pad" | "mobile" | "custom" | undefined;
|
15
|
+
readonly width?: number | undefined;
|
16
|
+
readonly height?: number | undefined;
|
17
|
+
readonly customSize?: {
|
18
|
+
width: number;
|
19
|
+
height: number;
|
20
|
+
} | undefined;
|
21
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
22
|
+
$attrs: {
|
23
|
+
[x: string]: unknown;
|
24
|
+
};
|
25
|
+
$refs: {
|
26
|
+
[x: string]: unknown;
|
27
|
+
};
|
28
|
+
$slots: Readonly<{
|
29
|
+
[name: string]: Slot<any> | undefined;
|
30
|
+
}>;
|
31
|
+
$root: ComponentPublicInstance | null;
|
32
|
+
$parent: ComponentPublicInstance | null;
|
33
|
+
$host: Element | null;
|
34
|
+
$emit: (event: string, ...args: any[]) => void;
|
35
|
+
$el: HTMLDivElement;
|
36
|
+
$options: ComponentOptionsBase<Readonly< Props> & Readonly<{}>, {
|
37
|
+
scale: ComputedRef<number>;
|
38
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
39
|
+
mode: "pc" | "pad" | "mobile" | "custom";
|
40
|
+
customSize: {
|
41
|
+
width: number;
|
42
|
+
height: number;
|
43
|
+
};
|
44
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
45
|
+
beforeCreate?: (() => void) | (() => void)[];
|
46
|
+
created?: (() => void) | (() => void)[];
|
47
|
+
beforeMount?: (() => void) | (() => void)[];
|
48
|
+
mounted?: (() => void) | (() => void)[];
|
49
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
50
|
+
updated?: (() => void) | (() => void)[];
|
51
|
+
activated?: (() => void) | (() => void)[];
|
52
|
+
deactivated?: (() => void) | (() => void)[];
|
53
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
54
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
55
|
+
destroyed?: (() => void) | (() => void)[];
|
56
|
+
unmounted?: (() => void) | (() => void)[];
|
57
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
58
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
59
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
60
|
+
};
|
61
|
+
$forceUpdate: () => void;
|
62
|
+
$nextTick: nextTick;
|
63
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
64
|
+
} & Readonly<{
|
65
|
+
mode: "pc" | "pad" | "mobile" | "custom";
|
66
|
+
customSize: {
|
67
|
+
width: number;
|
68
|
+
height: number;
|
69
|
+
};
|
70
|
+
}> & Omit<Readonly< Props> & Readonly<{}>, "scale" | ("mode" | "customSize")> & ShallowUnwrapRef<{
|
71
|
+
scale: ComputedRef<number>;
|
72
|
+
}> & {} & ComponentCustomProperties & {} & {
|
73
|
+
$slots: {
|
74
|
+
default?(_: {}): any;
|
75
|
+
};
|
76
|
+
}) | null;
|
8
77
|
iframe: HTMLIFrameElement;
|
9
78
|
}, any>;
|
10
79
|
export default _default;
|