@vtj/designer 0.9.30 → 0.10.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.
- package/dist/index.mjs +4325 -3919
- package/dist/style.css +1 -1
- package/package.json +8 -7
- package/types/components/binders/event.d.ts +46 -2
- package/types/components/binders/variable.d.ts +46 -2
- package/types/components/editor/Editor.d.ts +3 -1
- package/types/components/editor/index.d.ts +3 -1
- package/types/components/hooks/useDesigner.d.ts +2 -2
- package/types/components/regions/actions.d.ts +33 -2
- package/types/components/regions/apps.d.ts +33 -2
- package/types/components/regions/brand.d.ts +33 -2
- package/types/components/regions/index.d.ts +259 -10
- package/types/components/regions/preview.d.ts +33 -2
- package/types/components/regions/settings.d.ts +33 -2
- package/types/components/regions/status.d.ts +33 -2
- package/types/components/regions/toolbar.d.ts +33 -2
- package/types/components/regions/workspace.d.ts +34 -2
- package/types/components/setters/css.d.ts +58 -0
- package/types/components/setters/function.d.ts +46 -2
- package/types/components/setters/index.d.ts +142 -3
- package/types/components/setters/json.d.ts +46 -2
- package/types/components/shared/binder.d.ts +552 -3
- package/types/components/shared/viewer.d.ts +767 -2
- package/types/components/skeleton.d.ts +180 -2
- package/types/components/widgets/apis/form.d.ts +1520 -2
- package/types/components/widgets/css/index.d.ts +46 -2
- package/types/components/widgets/designer/index.d.ts +4 -1
- package/types/components/widgets/docs/index.d.ts +101 -2
- package/types/components/widgets/index.d.ts +340 -8
- package/types/components/widgets/market/index.d.ts +101 -2
- package/types/components/widgets/previewer/index.d.ts +6 -3
- package/types/components/widgets/raw/index.d.ts +46 -2
- package/types/components/widgets/schema/index.d.ts +46 -2
- package/types/components/widgets/scripts/group.d.ts +650 -4
- package/types/components/widgets/scripts/lifeCycles.d.ts +46 -2
- package/types/components/widgets/style/JsonMode.d.ts +46 -2
- package/types/components/widgets/style/positioning.d.ts +3 -1
- package/types/components/widgets/style/spacing-input.d.ts +255 -2
- package/types/components/widgets/style/spacing.d.ts +4 -1
- package/types/components/widgets/uni-config/index.d.ts +3 -0
- package/types/framework/renderer.d.ts +5 -2
- package/types/framework/simulator.d.ts +4 -2
- package/types/version.d.ts +2 -2
@@ -1,5 +1,104 @@
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
2
|
+
import { ActionMenuItem } from '@vtj/ui';
|
3
|
+
import { Props } from '../../shared/panel';
|
4
|
+
import { OnCleanup } from '@vue/reactivity';
|
2
5
|
declare const _default: DefineComponent<{}, {
|
3
6
|
openDesigner: () => void;
|
4
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
7
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
8
|
+
panel: ({
|
9
|
+
$: ComponentInternalInstance;
|
10
|
+
$data: {};
|
11
|
+
$props: {
|
12
|
+
readonly title?: string | undefined;
|
13
|
+
readonly subtitle?: string | undefined;
|
14
|
+
readonly plus?: boolean | undefined;
|
15
|
+
readonly refresh?: boolean | undefined;
|
16
|
+
readonly back?: boolean | undefined;
|
17
|
+
readonly edit?: boolean | undefined;
|
18
|
+
readonly remove?: boolean | undefined;
|
19
|
+
readonly save?: boolean | undefined;
|
20
|
+
readonly header?: boolean | undefined;
|
21
|
+
readonly collapsable?: boolean | undefined;
|
22
|
+
readonly menus?: ActionMenuItem[] | undefined;
|
23
|
+
readonly onCommand?: ((...args: any[]) => any) | undefined;
|
24
|
+
readonly onRefresh?: ((...args: any[]) => any) | undefined;
|
25
|
+
readonly onPlus?: ((...args: any[]) => any) | undefined;
|
26
|
+
readonly onBack?: ((...args: any[]) => any) | undefined;
|
27
|
+
readonly onEdit?: ((...args: any[]) => any) | undefined;
|
28
|
+
readonly onRemove?: ((...args: any[]) => any) | undefined;
|
29
|
+
readonly onSave?: ((...args: any[]) => any) | undefined;
|
30
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
31
|
+
$attrs: {
|
32
|
+
[x: string]: unknown;
|
33
|
+
};
|
34
|
+
$refs: {
|
35
|
+
[x: string]: unknown;
|
36
|
+
};
|
37
|
+
$slots: Readonly<{
|
38
|
+
[name: string]: Slot<any> | undefined;
|
39
|
+
}>;
|
40
|
+
$root: ComponentPublicInstance | null;
|
41
|
+
$parent: ComponentPublicInstance | null;
|
42
|
+
$host: Element | null;
|
43
|
+
$emit: ((event: "command", ...args: any[]) => void) & ((event: "refresh", ...args: any[]) => void) & ((event: "plus", ...args: any[]) => void) & ((event: "back", ...args: any[]) => void) & ((event: "edit", ...args: any[]) => void) & ((event: "remove", ...args: any[]) => void) & ((event: "save", ...args: any[]) => void);
|
44
|
+
$el: any;
|
45
|
+
$options: ComponentOptionsBase<Readonly< Props> & Readonly<{
|
46
|
+
onCommand?: ((...args: any[]) => any) | undefined;
|
47
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
48
|
+
onPlus?: ((...args: any[]) => any) | undefined;
|
49
|
+
onBack?: ((...args: any[]) => any) | undefined;
|
50
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
51
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
52
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
53
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
54
|
+
command: (...args: any[]) => void;
|
55
|
+
refresh: (...args: any[]) => void;
|
56
|
+
plus: (...args: any[]) => void;
|
57
|
+
back: (...args: any[]) => void;
|
58
|
+
edit: (...args: any[]) => void;
|
59
|
+
remove: (...args: any[]) => void;
|
60
|
+
save: (...args: any[]) => void;
|
61
|
+
}, string, {
|
62
|
+
header: boolean;
|
63
|
+
menus: ActionMenuItem[];
|
64
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
65
|
+
beforeCreate?: (() => void) | (() => void)[];
|
66
|
+
created?: (() => void) | (() => void)[];
|
67
|
+
beforeMount?: (() => void) | (() => void)[];
|
68
|
+
mounted?: (() => void) | (() => void)[];
|
69
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
70
|
+
updated?: (() => void) | (() => void)[];
|
71
|
+
activated?: (() => void) | (() => void)[];
|
72
|
+
deactivated?: (() => void) | (() => void)[];
|
73
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
74
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
75
|
+
destroyed?: (() => void) | (() => void)[];
|
76
|
+
unmounted?: (() => void) | (() => void)[];
|
77
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
78
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
79
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
80
|
+
};
|
81
|
+
$forceUpdate: () => void;
|
82
|
+
$nextTick: nextTick;
|
83
|
+
$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;
|
84
|
+
} & Readonly<{
|
85
|
+
header: boolean;
|
86
|
+
menus: ActionMenuItem[];
|
87
|
+
}> & Omit<Readonly< Props> & Readonly<{
|
88
|
+
onCommand?: ((...args: any[]) => any) | undefined;
|
89
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
90
|
+
onPlus?: ((...args: any[]) => any) | undefined;
|
91
|
+
onBack?: ((...args: any[]) => any) | undefined;
|
92
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
93
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
94
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
95
|
+
}>, "header" | "menus"> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {} & {
|
96
|
+
$slots: {
|
97
|
+
actions?(_: {}): any;
|
98
|
+
default?(_: {}): any;
|
99
|
+
footer?(_: {}): any;
|
100
|
+
};
|
101
|
+
}) | null;
|
102
|
+
frame: HTMLIFrameElement;
|
103
|
+
}, any>;
|
5
104
|
export default _default;
|
@@ -1,9 +1,12 @@
|
|
1
|
-
import { BlockModel } from '@vtj/core';
|
1
|
+
import { BlockModel, ProjectModel } from '@vtj/core';
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
3
|
export interface Props {
|
4
|
-
path?: (block: BlockModel) => string;
|
4
|
+
path?: (block: BlockModel, project: ProjectModel | null) => string;
|
5
5
|
}
|
6
6
|
declare const _default: DefineComponent<Props, {
|
7
7
|
refresh: () => void;
|
8
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
8
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
9
|
+
container: HTMLDivElement;
|
10
|
+
iframe: HTMLIFrameElement;
|
11
|
+
}, HTMLDivElement>;
|
9
12
|
export default _default;
|
@@ -1,3 +1,47 @@
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
-
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
|
2
|
+
import { Props } from '../../editor/Editor';
|
3
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
4
|
+
editorRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
5
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
6
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
7
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
8
|
+
}>, {
|
9
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
10
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
blur: (...args: any[]) => void;
|
12
|
+
change: (...args: any[]) => void;
|
13
|
+
"update:modelValue": (...args: any[]) => void;
|
14
|
+
}, PublicProps, {
|
15
|
+
height: string;
|
16
|
+
modelValue: string;
|
17
|
+
dark: boolean;
|
18
|
+
readonly: boolean;
|
19
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
20
|
+
lang: string;
|
21
|
+
minimap: boolean;
|
22
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
23
|
+
container: HTMLDivElement;
|
24
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
25
|
+
P: {};
|
26
|
+
B: {};
|
27
|
+
D: {};
|
28
|
+
C: {};
|
29
|
+
M: {};
|
30
|
+
Defaults: {};
|
31
|
+
}, Readonly< Props> & Readonly<{
|
32
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
33
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
34
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
35
|
+
}>, {
|
36
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
37
|
+
}, {}, {}, {}, {
|
38
|
+
height: string;
|
39
|
+
modelValue: string;
|
40
|
+
dark: boolean;
|
41
|
+
readonly: boolean;
|
42
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
43
|
+
lang: string;
|
44
|
+
minimap: boolean;
|
45
|
+
}> | null;
|
46
|
+
}, any>;
|
3
47
|
export default _default;
|
@@ -1,3 +1,47 @@
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
-
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
|
2
|
+
import { Props } from '../../editor/Editor';
|
3
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
4
|
+
editorRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
5
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
6
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
7
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
8
|
+
}>, {
|
9
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
10
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
blur: (...args: any[]) => void;
|
12
|
+
change: (...args: any[]) => void;
|
13
|
+
"update:modelValue": (...args: any[]) => void;
|
14
|
+
}, PublicProps, {
|
15
|
+
height: string;
|
16
|
+
modelValue: string;
|
17
|
+
dark: boolean;
|
18
|
+
readonly: boolean;
|
19
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
20
|
+
lang: string;
|
21
|
+
minimap: boolean;
|
22
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
23
|
+
container: HTMLDivElement;
|
24
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
25
|
+
P: {};
|
26
|
+
B: {};
|
27
|
+
D: {};
|
28
|
+
C: {};
|
29
|
+
M: {};
|
30
|
+
Defaults: {};
|
31
|
+
}, Readonly< Props> & Readonly<{
|
32
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
33
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
34
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
35
|
+
}>, {
|
36
|
+
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
37
|
+
}, {}, {}, {}, {
|
38
|
+
height: string;
|
39
|
+
modelValue: string;
|
40
|
+
dark: boolean;
|
41
|
+
readonly: boolean;
|
42
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
43
|
+
lang: string;
|
44
|
+
minimap: boolean;
|
45
|
+
}> | null;
|
46
|
+
}, any>;
|
3
47
|
export default _default;
|