@vtj/designer 0.12.29 → 0.12.31
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/README.md +0 -17
- package/dist/Editor-DjeJ1qs2.js +4 -0
- package/dist/{index-CKH043LZ.js → index-DUQPxL6K.js} +4097 -4062
- package/dist/index.mjs +43 -42
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/types/components/shared/binder.d.ts +20 -6
- package/types/components/widgets/ai/chat-input.d.ts +1 -2
- package/types/components/widgets/ai/pay-tip.d.ts +1 -1
- package/types/components/widgets/apis/form.d.ts +13 -6
- package/types/components/widgets/index.d.ts +0 -2
- package/types/components/widgets/toolbar/index.d.ts +0 -2
- package/types/constants.d.ts +1 -0
- package/types/framework/designer.d.ts +0 -2
- package/types/framework/engine.d.ts +2 -0
- package/types/framework/state.d.ts +31 -0
- package/types/version.d.ts +2 -2
- package/dist/Editor-CUljk0X9.js +0 -4
@@ -32,9 +32,9 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
32
32
|
readonly size: BaseSize;
|
33
33
|
readonly height: string | number;
|
34
34
|
readonly width: string | number;
|
35
|
+
readonly primary: boolean;
|
35
36
|
readonly mode: DialogMode;
|
36
37
|
readonly modelValue: boolean;
|
37
|
-
readonly primary: boolean;
|
38
38
|
readonly draggable: boolean | DraggableOptions;
|
39
39
|
readonly pure: boolean;
|
40
40
|
readonly modal: boolean;
|
@@ -108,7 +108,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
108
108
|
isOutside: ShallowRef<boolean, boolean>;
|
109
109
|
stop: () => void;
|
110
110
|
}) => any) | undefined | undefined;
|
111
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "size" | "height" | "width" | "
|
111
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "size" | "height" | "width" | "primary" | "mode" | "modelValue" | "draggable" | "pure" | "modal" | "closable" | "maximizable" | "minimizable" | "bodyPadding">;
|
112
112
|
$attrs: {
|
113
113
|
[x: string]: unknown;
|
114
114
|
};
|
@@ -1126,7 +1126,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
1126
1126
|
isOutside: ShallowRef<boolean, boolean>;
|
1127
1127
|
stop: () => void;
|
1128
1128
|
}) => any) | undefined;
|
1129
|
-
}>, "size" | "height" | "width" | "
|
1129
|
+
}>, "size" | "height" | "width" | "primary" | "close" | "cancel" | "mode" | "modelValue" | "submit" | "$vtjEl" | "draggable" | "pure" | "modal" | "closable" | "maximizable" | "minimizable" | "componentInstance" | "bodyPadding" | "panelRef" | "state" | "maximized" | "minimized" | "changeMode" | "show" | "hide"> & ShallowUnwrapRef<{
|
1130
1130
|
$vtjEl: ComputedRef<any>;
|
1131
1131
|
panelRef: Ref<any, any>;
|
1132
1132
|
state: {
|
@@ -1209,6 +1209,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
1209
1209
|
readonly requireAsteriskPosition: "left" | "right";
|
1210
1210
|
readonly labelSuffix: string;
|
1211
1211
|
readonly validateOnRuleChange: boolean;
|
1212
|
+
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
1212
1213
|
readonly statusIcon: boolean;
|
1213
1214
|
readonly hideRequiredAsterisk: boolean;
|
1214
1215
|
readonly scrollToError: boolean;
|
@@ -1225,12 +1226,12 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
1225
1226
|
readonly validateOnRuleChange: boolean;
|
1226
1227
|
readonly hideRequiredAsterisk: boolean;
|
1227
1228
|
readonly scrollToError: boolean;
|
1229
|
+
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
1228
1230
|
readonly size?: ("" | "large" | "default" | "small") | undefined;
|
1229
1231
|
readonly rules?: Partial<Record<string, FormItemRule | FormItemRule[]>> | undefined;
|
1230
1232
|
readonly model?: Record<string, any> | undefined;
|
1231
|
-
readonly scrollIntoViewOptions?: (boolean | Record<string, any>) | undefined;
|
1232
1233
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
1233
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
1234
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
1234
1235
|
$attrs: {
|
1235
1236
|
[x: string]: unknown;
|
1236
1237
|
};
|
@@ -1311,6 +1312,8 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
1311
1312
|
readonly required: false;
|
1312
1313
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
1313
1314
|
__epPropKey: true;
|
1315
|
+
} & {
|
1316
|
+
readonly default: true;
|
1314
1317
|
};
|
1315
1318
|
readonly size: {
|
1316
1319
|
readonly type: PropType<"" | "large" | "default" | "small">;
|
@@ -1907,6 +1910,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
1907
1910
|
readonly requireAsteriskPosition: "left" | "right";
|
1908
1911
|
readonly labelSuffix: string;
|
1909
1912
|
readonly validateOnRuleChange: boolean;
|
1913
|
+
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
1910
1914
|
readonly statusIcon: boolean;
|
1911
1915
|
readonly hideRequiredAsterisk: boolean;
|
1912
1916
|
readonly scrollToError: boolean;
|
@@ -1940,6 +1944,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
1940
1944
|
readonly requireAsteriskPosition: "left" | "right";
|
1941
1945
|
readonly labelSuffix: string;
|
1942
1946
|
readonly validateOnRuleChange: boolean;
|
1947
|
+
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
1943
1948
|
readonly statusIcon: boolean;
|
1944
1949
|
readonly hideRequiredAsterisk: boolean;
|
1945
1950
|
readonly scrollToError: boolean;
|
@@ -2009,6 +2014,8 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
2009
2014
|
readonly required: false;
|
2010
2015
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
2011
2016
|
__epPropKey: true;
|
2017
|
+
} & {
|
2018
|
+
readonly default: true;
|
2012
2019
|
};
|
2013
2020
|
readonly size: {
|
2014
2021
|
readonly type: PropType<"" | "large" | "default" | "small">;
|
@@ -2019,7 +2026,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
2019
2026
|
readonly disabled: BooleanConstructor;
|
2020
2027
|
}>> & {
|
2021
2028
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
2022
|
-
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
2029
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
2023
2030
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
2024
2031
|
validateField: (props?: FormItemProp | FormItemProp[], callback?: FormValidateCallback) => FormValidationResult;
|
2025
2032
|
resetFields: (props?: FormItemProp | FormItemProp[]) => void;
|
@@ -23,7 +23,6 @@ export declare const widgets: {
|
|
23
23
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
24
24
|
Toolbar: DefineComponent<Props, {
|
25
25
|
mode: Ref<string, string>;
|
26
|
-
outline: Ref<boolean, boolean>;
|
27
26
|
customSize: Ref<{
|
28
27
|
width: number;
|
29
28
|
height: number;
|
@@ -34,7 +33,6 @@ export declare const widgets: {
|
|
34
33
|
width: number;
|
35
34
|
height: number;
|
36
35
|
}>;
|
37
|
-
activeEvent: Ref<boolean, boolean>;
|
38
36
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
39
37
|
Actions: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {
|
40
38
|
coder: boolean;
|
@@ -4,7 +4,6 @@ export interface Props {
|
|
4
4
|
}
|
5
5
|
declare const _default: DefineComponent<Props, {
|
6
6
|
mode: Ref<string, string>;
|
7
|
-
outline: Ref<boolean, boolean>;
|
8
7
|
customSize: Ref<{
|
9
8
|
width: number;
|
10
9
|
height: number;
|
@@ -15,6 +14,5 @@ declare const _default: DefineComponent<Props, {
|
|
15
14
|
width: number;
|
16
15
|
height: number;
|
17
16
|
}>;
|
18
|
-
activeEvent: Ref<boolean, boolean>;
|
19
17
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
20
18
|
export default _default;
|
package/types/constants.d.ts
CHANGED
@@ -28,8 +28,6 @@ export declare class Designer {
|
|
28
28
|
dragging: MaterialDescription | null;
|
29
29
|
draggingNode: NodeModel | null;
|
30
30
|
lines: ShallowRef<DOMRect[]>;
|
31
|
-
outlineEnabled: Ref<boolean>;
|
32
|
-
activeEvent: Ref<boolean>;
|
33
31
|
constructor(engine: Engine, contentWindow: Window, dependencies: Ref<Dependencie[]>, devtools: DevTools);
|
34
32
|
private bind;
|
35
33
|
private bindEvents;
|
@@ -6,6 +6,7 @@ import { Simulator } from './simulator';
|
|
6
6
|
import { Assets } from './assets';
|
7
7
|
import { Report } from './report';
|
8
8
|
import { OpenApi } from './openapi';
|
9
|
+
import { State } from './state';
|
9
10
|
export declare const engineKey: InjectionKey<ShallowReactive<Engine>>;
|
10
11
|
/**
|
11
12
|
* 设计器引擎配置选项
|
@@ -110,6 +111,7 @@ export declare class Engine extends Base {
|
|
110
111
|
report: Report;
|
111
112
|
checkVersion: boolean;
|
112
113
|
openApi?: OpenApi;
|
114
|
+
state: State;
|
113
115
|
constructor(options: EngineOptions);
|
114
116
|
/**
|
115
117
|
* 初始化引擎
|
@@ -0,0 +1,31 @@
|
|
1
|
+
export interface EngineState {
|
2
|
+
/**
|
3
|
+
* 设计视图是否显示辅助线
|
4
|
+
*/
|
5
|
+
outlineEnabled: boolean;
|
6
|
+
/**
|
7
|
+
* 设计视图是否响应事件
|
8
|
+
*/
|
9
|
+
activeEvent: boolean;
|
10
|
+
/**
|
11
|
+
* AI自动应用
|
12
|
+
*/
|
13
|
+
autoApply: boolean;
|
14
|
+
/**
|
15
|
+
* AI 大模型
|
16
|
+
*/
|
17
|
+
llm: string;
|
18
|
+
}
|
19
|
+
export declare class State {
|
20
|
+
private __state;
|
21
|
+
constructor();
|
22
|
+
private save;
|
23
|
+
get outlineEnabled(): any;
|
24
|
+
set outlineEnabled(value: any);
|
25
|
+
get activeEvent(): any;
|
26
|
+
set activeEvent(value: any);
|
27
|
+
get autoApply(): any;
|
28
|
+
set autoApply(value: any);
|
29
|
+
get llm(): any;
|
30
|
+
set llm(value: any);
|
31
|
+
}
|
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.12.
|
5
|
+
* @version 0.12.30
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.12.
|
8
|
+
export declare const version = "0.12.30";
|
package/dist/Editor-CUljk0X9.js
DELETED