@vtj/designer 0.8.152 → 0.8.153

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 CHANGED
@@ -14,10 +14,10 @@ import Ba from "mockjs";
14
14
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
15
15
  * @name @vtj/designer
16
16
  * @author CHC chenhuachun1549@dingtalk.com
17
- * @version 0.8.152
17
+ * @version 0.8.153
18
18
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
19
19
  */
20
- const Ra = "0.8.152", Gt = {
20
+ const Ra = "0.8.153", Gt = {
21
21
  width: 390,
22
22
  height: 844
23
23
  }, Xt = {
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.8.152",
4
+ "version": "0.8.153",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "mockjs": "~1.1.0",
8
8
  "monaco-editor": "~0.51.0",
9
- "@vtj/core": "~0.8.152",
10
- "@vtj/renderer": "~0.8.152",
11
- "@vtj/utils": "~0.8.152",
12
- "@vtj/icons": "~0.8.152",
13
- "@vtj/ui": "~0.8.152"
9
+ "@vtj/core": "~0.8.153",
10
+ "@vtj/icons": "~0.8.153",
11
+ "@vtj/renderer": "~0.8.153",
12
+ "@vtj/ui": "~0.8.153",
13
+ "@vtj/utils": "~0.8.153"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/mockjs": "~1.0.10",
@@ -1,6 +1,6 @@
1
1
  import { Context } from '@vtj/renderer';
2
2
  import { BlockModel } from '@vtj/core';
3
- import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, Ref, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
3
+ import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, Ref, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
4
4
  import { ElTooltipProps } from 'element-plus';
5
5
  import { FormModel } from '@vtj/ui';
6
6
  import { OnCleanup } from '@vue/reactivity';
@@ -41,41 +41,7 @@ declare function __VLS_template(): {
41
41
  readonly onReset?: (() => any) | undefined;
42
42
  readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
43
43
  readonly onChange?: ((model: Record<string, any>) => any) | undefined;
44
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
45
- model: {
46
- type: PropType<Record<string, any>>;
47
- default(): any;
48
- };
49
- inline: {
50
- type: BooleanConstructor;
51
- };
52
- inlineColumns: {
53
- type: NumberConstructor;
54
- };
55
- footer: {
56
- type: BooleanConstructor;
57
- default: boolean;
58
- };
59
- submitText: {
60
- type: PropType<string | null>;
61
- default: string;
62
- };
63
- resetText: {
64
- type: PropType<string | null>;
65
- default: string;
66
- };
67
- submitMethod: {
68
- type: PropType<(model: FormModel) => Promise<any>>;
69
- };
70
- tooltipMessage: {
71
- type: PropType<boolean | Partial< ElTooltipProps>>;
72
- default: undefined;
73
- };
74
- }>> & Readonly<{
75
- onReset?: (() => any) | undefined;
76
- onSubmit?: ((model: Record<string, any>) => any) | undefined;
77
- onChange?: ((model: Record<string, any>) => any) | undefined;
78
- }>, "footer" | "model" | "tooltipMessage" | "inline" | "submitText" | "resetText">;
44
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "footer" | "model" | "tooltipMessage" | "inline" | "submitText" | "resetText">;
79
45
  $attrs: {
80
46
  [x: string]: unknown;
81
47
  };
@@ -1,6 +1,6 @@
1
1
  import { BlockModel } from '@vtj/core';
2
2
  import { Context } from '@vtj/renderer';
3
- import { ComponentInternalInstance, VNode, RendererNode, RendererElement, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, Ref, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, CreateComponentPublicInstanceWithMixins, DefineComponent, PublicProps } from 'vue';
3
+ import { ComponentInternalInstance, VNode, RendererNode, RendererElement, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, Ref, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, CreateComponentPublicInstanceWithMixins, PublicProps, DefineComponent } from 'vue';
4
4
  import { BuiltinFieldEditorType, BaseSize, FieldOption, FieldOptionsLoader, FieldEditorProps } from '@vtj/ui';
5
5
  import { ElTooltipProps } from 'element-plus';
6
6
  import { OnCleanup } from '@vue/reactivity';
@@ -68,79 +68,7 @@ declare function __VLS_template(): {
68
68
  readonly onBlur?: (() => any) | undefined;
69
69
  readonly onChange?: ((value: any, data?: any) => any) | undefined;
70
70
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
71
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
72
- name: {
73
- type: StringConstructor;
74
- };
75
- label: {
76
- type: StringConstructor;
77
- };
78
- editor: {
79
- type: PropType< BuiltinFieldEditorType | VNode | Record<string, any>>;
80
- default: string;
81
- };
82
- props: {
83
- type: PropType<Record<string, any>>;
84
- };
85
- modelValue: {
86
- type: PropType<any>;
87
- default(context: any): any;
88
- };
89
- size: {
90
- type: PropType<BaseSize>;
91
- };
92
- width: {
93
- type: PropType<string | number>;
94
- };
95
- tooltipMessage: {
96
- type: PropType<boolean | Partial< ElTooltipProps>>;
97
- default: boolean;
98
- };
99
- tooltipPosition: {
100
- type: PropType<"inner" | "outer" | number>;
101
- default: string;
102
- };
103
- placeholder: {
104
- type: PropType<string | null>;
105
- };
106
- disabled: {
107
- type: PropType<boolean>;
108
- };
109
- readonly: {
110
- type: PropType<boolean>;
111
- };
112
- options: {
113
- type: PropType< FieldOption[] | FieldOptionsLoader>;
114
- };
115
- visible: {
116
- type: (BooleanConstructor | ObjectConstructor | FunctionConstructor)[];
117
- default: boolean;
118
- };
119
- cascader: {
120
- type: PropType<string | string[]>;
121
- };
122
- error: {
123
- type: StringConstructor;
124
- };
125
- tip: {
126
- type: StringConstructor;
127
- };
128
- inline: {
129
- type: BooleanConstructor;
130
- };
131
- hidden: {
132
- type: BooleanConstructor;
133
- };
134
- defaultValue: {
135
- type: (BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
136
- default: undefined;
137
- };
138
- }>> & Readonly<{
139
- onFocus?: (() => any) | undefined;
140
- onBlur?: (() => any) | undefined;
141
- onChange?: ((value: any, data?: any) => any) | undefined;
142
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
143
- }>, "visible" | "hidden" | "modelValue" | "editor" | "tooltipMessage" | "tooltipPosition" | "inline" | "defaultValue">;
71
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "visible" | "hidden" | "modelValue" | "editor" | "tooltipMessage" | "tooltipPosition" | "inline" | "defaultValue">;
144
72
  $attrs: {
145
73
  [x: string]: unknown;
146
74
  };
@@ -384,11 +312,7 @@ declare function __VLS_template(): {
384
312
  blur: (...args: any[]) => void;
385
313
  change: (...args: any[]) => void;
386
314
  "update:modelValue": (...args: any[]) => void;
387
- }, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< Props> & Readonly<{
388
- onBlur?: ((...args: any[]) => any) | undefined;
389
- onChange?: ((...args: any[]) => any) | undefined;
390
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
391
- }>, {
315
+ }, PublicProps, {
392
316
  height: string;
393
317
  modelValue: string;
394
318
  dark: boolean;
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/designer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.8.151
5
+ * @version 0.8.152
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.8.151";
8
+ export declare const version = "0.8.152";
@@ -1,7 +1,7 @@
1
1
  import { RegionType } from '../framework';
2
2
  import { RegionWrapperInstance } from './region';
3
3
  import { WidgetWrapperInstance } from './widget';
4
- import { DefineComponent, Ref, ShallowReactive, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, PublicProps } from 'vue';
4
+ import { DefineComponent, Ref, ShallowReactive, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions } from 'vue';
5
5
  import { Engine, Widget } from '..';
6
6
  export declare const SkeletonWrapper: DefineComponent<{}, {
7
7
  skeletonRef: Ref<any, any>;
@@ -17,16 +17,7 @@ export declare const SkeletonWrapper: DefineComponent<{}, {
17
17
  };
18
18
  }>> & Readonly<{}>, {
19
19
  widgetRef: Ref<any, any>;
20
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
21
- region: {
22
- type: PropType<RegionType>;
23
- required: true;
24
- };
25
- widget: {
26
- type: PropType<Widget>;
27
- required: true;
28
- };
29
- }>> & Readonly<{}>, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
20
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
30
21
  P: {};
31
22
  B: {};
32
23
  D: {};
@@ -55,16 +46,7 @@ export declare const SkeletonWrapper: DefineComponent<{}, {
55
46
  };
56
47
  }>> & Readonly<{}>, {
57
48
  widgetRef: Ref<any, any>;
58
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
59
- region: {
60
- type: PropType<RegionType>;
61
- required: true;
62
- };
63
- widget: {
64
- type: PropType<Widget>;
65
- required: true;
66
- };
67
- }>> & Readonly<{}>, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
49
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
68
50
  P: {};
69
51
  B: {};
70
52
  D: {};