@vtj/designer 0.13.13 → 0.13.15
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-Cz8yc4Be.js +4 -0
- package/dist/{index-Cxjl3t69.js → index-D2T48bku.js} +6872 -6064
- package/dist/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/types/components/binders/event.d.ts +2 -2
- package/types/components/binders/variable.d.ts +2 -2
- package/types/components/editor/Editor.d.ts +1 -1
- package/types/components/editor/index.d.ts +1 -1
- package/types/components/hooks/index.d.ts +2 -0
- package/types/components/hooks/useDesigner.d.ts +2 -2
- package/types/components/hooks/useI18n.d.ts +12 -0
- package/types/components/hooks/useSwagger.d.ts +57 -0
- package/types/components/setters/css.d.ts +2 -2
- package/types/components/setters/function.d.ts +2 -2
- package/types/components/setters/index.d.ts +6 -6
- package/types/components/setters/json.d.ts +2 -2
- package/types/components/shared/panel.d.ts +1 -0
- package/types/components/widgets/ai/detail.d.ts +4 -4
- package/types/components/widgets/ai/image-input.d.ts +1 -1
- package/types/components/widgets/ai/index.d.ts +1 -0
- package/types/components/widgets/ai/json-input.d.ts +1 -1
- package/types/components/widgets/apis/swagger.d.ts +1298 -0
- package/types/components/widgets/css/index.d.ts +2 -2
- package/types/components/widgets/docs/index.d.ts +1 -0
- package/types/components/widgets/i18n/index.d.ts +1292 -0
- package/types/components/widgets/index.d.ts +1299 -8
- package/types/components/widgets/market/index.d.ts +1 -0
- package/types/components/widgets/raw/index.d.ts +2 -2
- package/types/components/widgets/schema/index.d.ts +2 -2
- package/types/components/widgets/scripts/group.d.ts +6 -6
- package/types/components/widgets/scripts/lifeCycles.d.ts +2 -2
- package/types/components/widgets/style/JsonMode.d.ts +2 -2
- package/types/framework/openapi.d.ts +1 -0
- package/types/framework/simulator.d.ts +2 -2
- package/types/framework/state.d.ts +7 -0
- package/types/version.d.ts +2 -2
- package/types/wrappers/setter.d.ts +1 -1
- package/dist/Editor-B7IzXl24.js +0 -4
@@ -14,9 +14,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
|
|
14
14
|
}, PublicProps, {
|
15
15
|
height: string;
|
16
16
|
modelValue: string;
|
17
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
17
18
|
dark: boolean;
|
18
19
|
readonly: boolean;
|
19
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
20
20
|
lang: string;
|
21
21
|
minimap: boolean;
|
22
22
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
@@ -37,9 +37,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
|
|
37
37
|
}, {}, {}, {}, {
|
38
38
|
height: string;
|
39
39
|
modelValue: string;
|
40
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
40
41
|
dark: boolean;
|
41
42
|
readonly: boolean;
|
42
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
43
43
|
lang: string;
|
44
44
|
minimap: boolean;
|
45
45
|
}> | null;
|
@@ -14,9 +14,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
|
|
14
14
|
}, PublicProps, {
|
15
15
|
height: string;
|
16
16
|
modelValue: string;
|
17
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
17
18
|
dark: boolean;
|
18
19
|
readonly: boolean;
|
19
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
20
20
|
lang: string;
|
21
21
|
minimap: boolean;
|
22
22
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
@@ -37,9 +37,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
|
|
37
37
|
}, {}, {}, {}, {
|
38
38
|
height: string;
|
39
39
|
modelValue: string;
|
40
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
40
41
|
dark: boolean;
|
41
42
|
readonly: boolean;
|
42
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
43
43
|
lang: string;
|
44
44
|
minimap: boolean;
|
45
45
|
}> | null;
|
@@ -58,10 +58,10 @@ declare function __VLS_template(): {
|
|
58
58
|
readonly width?: string | number | undefined;
|
59
59
|
readonly label?: string | undefined;
|
60
60
|
readonly error?: string | undefined;
|
61
|
+
readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
|
61
62
|
readonly disabled?: boolean | undefined;
|
62
63
|
readonly placeholder?: string | null | undefined;
|
63
64
|
readonly readonly?: boolean | undefined;
|
64
|
-
readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
|
65
65
|
readonly cascader?: string | string[] | undefined;
|
66
66
|
readonly tip?: string | undefined;
|
67
67
|
readonly defaultValue?: string | number | boolean | Record<string, any> | unknown[] | undefined;
|
@@ -548,9 +548,9 @@ declare function __VLS_template(): {
|
|
548
548
|
}, PublicProps, {
|
549
549
|
height: string;
|
550
550
|
modelValue: string;
|
551
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
551
552
|
dark: boolean;
|
552
553
|
readonly: boolean;
|
553
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
554
554
|
lang: string;
|
555
555
|
minimap: boolean;
|
556
556
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
@@ -571,9 +571,9 @@ declare function __VLS_template(): {
|
|
571
571
|
}, {}, {}, {}, {
|
572
572
|
height: string;
|
573
573
|
modelValue: string;
|
574
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
574
575
|
dark: boolean;
|
575
576
|
readonly: boolean;
|
576
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
577
577
|
lang: string;
|
578
578
|
minimap: boolean;
|
579
579
|
}> | null;
|
@@ -614,10 +614,10 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
614
614
|
readonly width?: string | number | undefined;
|
615
615
|
readonly label?: string | undefined;
|
616
616
|
readonly error?: string | undefined;
|
617
|
+
readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
|
617
618
|
readonly disabled?: boolean | undefined;
|
618
619
|
readonly placeholder?: string | null | undefined;
|
619
620
|
readonly readonly?: boolean | undefined;
|
620
|
-
readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
|
621
621
|
readonly cascader?: string | string[] | undefined;
|
622
622
|
readonly tip?: string | undefined;
|
623
623
|
readonly defaultValue?: string | number | boolean | Record<string, any> | unknown[] | undefined;
|
@@ -1104,9 +1104,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
1104
1104
|
}, PublicProps, {
|
1105
1105
|
height: string;
|
1106
1106
|
modelValue: string;
|
1107
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
1107
1108
|
dark: boolean;
|
1108
1109
|
readonly: boolean;
|
1109
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
1110
1110
|
lang: string;
|
1111
1111
|
minimap: boolean;
|
1112
1112
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
@@ -1127,9 +1127,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
1127
1127
|
}, {}, {}, {}, {
|
1128
1128
|
height: string;
|
1129
1129
|
modelValue: string;
|
1130
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
1130
1131
|
dark: boolean;
|
1131
1132
|
readonly: boolean;
|
1132
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
1133
1133
|
lang: string;
|
1134
1134
|
minimap: boolean;
|
1135
1135
|
}> | null;
|
@@ -20,9 +20,9 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
20
20
|
}, PublicProps, {
|
21
21
|
height: string;
|
22
22
|
modelValue: string;
|
23
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
23
24
|
dark: boolean;
|
24
25
|
readonly: boolean;
|
25
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
26
26
|
lang: string;
|
27
27
|
minimap: boolean;
|
28
28
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
@@ -43,9 +43,9 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
43
43
|
}, {}, {}, {}, {
|
44
44
|
height: string;
|
45
45
|
modelValue: string;
|
46
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
46
47
|
dark: boolean;
|
47
48
|
readonly: boolean;
|
48
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
49
49
|
lang: string;
|
50
50
|
minimap: boolean;
|
51
51
|
}> | null;
|
@@ -14,9 +14,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
|
|
14
14
|
}, PublicProps, {
|
15
15
|
height: string;
|
16
16
|
modelValue: string;
|
17
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
17
18
|
dark: boolean;
|
18
19
|
readonly: boolean;
|
19
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
20
20
|
lang: string;
|
21
21
|
minimap: boolean;
|
22
22
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
@@ -37,9 +37,9 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
|
|
37
37
|
}, {}, {}, {}, {
|
38
38
|
height: string;
|
39
39
|
modelValue: string;
|
40
|
+
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
40
41
|
dark: boolean;
|
41
42
|
readonly: boolean;
|
42
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
43
43
|
lang: string;
|
44
44
|
minimap: boolean;
|
45
45
|
}> | null;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Ref, ShallowRef, App } from 'vue';
|
2
|
-
import { Dependencie, Material, ApiSchema, MetaSchema, ProjectConfig, UniConfig, EnhanceConfig, GlobalConfig, Base } from '@vtj/core';
|
2
|
+
import { Dependencie, Material, ApiSchema, MetaSchema, ProjectConfig, UniConfig, EnhanceConfig, GlobalConfig, I18nConfig, Base } from '@vtj/core';
|
3
3
|
import { Provider } from '@vtj/renderer';
|
4
4
|
import { Renderer } from './renderer';
|
5
5
|
import { Designer } from './designer';
|
@@ -42,7 +42,7 @@ export declare class Simulator extends Base {
|
|
42
42
|
devtools: DevTools;
|
43
43
|
enhance?: EnhanceConfig;
|
44
44
|
constructor(options: SimulatorOptions);
|
45
|
-
init(iframe: Ref<HTMLIFrameElement | undefined>, deps: Ref<Dependencie[]>, apis: Ref<ApiSchema[]>, meta: Ref<MetaSchema[]>, config: Ref<ProjectConfig>, uniConfig: Ref<UniConfig>, global: Ref<GlobalConfig>): void;
|
45
|
+
init(iframe: Ref<HTMLIFrameElement | undefined>, deps: Ref<Dependencie[]>, apis: Ref<ApiSchema[]>, meta: Ref<MetaSchema[]>, config: Ref<ProjectConfig>, uniConfig: Ref<UniConfig>, global: Ref<GlobalConfig>, i18n: Ref<I18nConfig>): void;
|
46
46
|
private createGlobalCss;
|
47
47
|
private initUniFeatures;
|
48
48
|
private setup;
|
@@ -30,9 +30,14 @@ export interface EngineState {
|
|
30
30
|
* 显示引导
|
31
31
|
*/
|
32
32
|
tour: boolean;
|
33
|
+
/**
|
34
|
+
* 暗黑模式
|
35
|
+
*/
|
36
|
+
dark: boolean;
|
33
37
|
}
|
34
38
|
export declare class State {
|
35
39
|
private __state;
|
40
|
+
private __isDark;
|
36
41
|
constructor();
|
37
42
|
private save;
|
38
43
|
get outlineEnabled(): any;
|
@@ -47,6 +52,8 @@ export declare class State {
|
|
47
52
|
set LLMs(value: LLM[]);
|
48
53
|
get tour(): boolean;
|
49
54
|
set tour(value: boolean);
|
55
|
+
get dark(): boolean;
|
56
|
+
set dark(v: boolean);
|
50
57
|
saveLLM(item: LLM): void;
|
51
58
|
removeLLM(item: LLM): void;
|
52
59
|
getLLMById(id: string): {
|
package/types/version.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/designer
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.13.
|
5
|
+
* @version 0.13.14
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.13.
|
8
|
+
export declare const version = "0.13.14";
|
@@ -96,8 +96,8 @@ export declare const SetterWrapper: DefineComponent<ExtractPropTypes<{
|
|
96
96
|
value: string | number | boolean | Record<string, any> | unknown[];
|
97
97
|
context: Context | null;
|
98
98
|
setters: string | MaterialSetter | (string | MaterialSetter)[];
|
99
|
-
disabled: boolean;
|
100
99
|
options: unknown[];
|
100
|
+
disabled: boolean;
|
101
101
|
current: BlockModel | null;
|
102
102
|
removable: boolean;
|
103
103
|
variable: boolean;
|
package/dist/Editor-B7IzXl24.js
DELETED