@vtj/designer 0.9.30 → 0.10.1-alpha.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.
Files changed (43) hide show
  1. package/dist/index.mjs +4327 -3921
  2. package/dist/style.css +1 -1
  3. package/package.json +8 -7
  4. package/types/components/binders/event.d.ts +46 -2
  5. package/types/components/binders/variable.d.ts +46 -2
  6. package/types/components/editor/Editor.d.ts +3 -1
  7. package/types/components/editor/index.d.ts +3 -1
  8. package/types/components/hooks/useDesigner.d.ts +2 -2
  9. package/types/components/regions/actions.d.ts +33 -2
  10. package/types/components/regions/apps.d.ts +33 -2
  11. package/types/components/regions/brand.d.ts +33 -2
  12. package/types/components/regions/index.d.ts +259 -10
  13. package/types/components/regions/preview.d.ts +33 -2
  14. package/types/components/regions/settings.d.ts +33 -2
  15. package/types/components/regions/status.d.ts +33 -2
  16. package/types/components/regions/toolbar.d.ts +33 -2
  17. package/types/components/regions/workspace.d.ts +34 -2
  18. package/types/components/setters/css.d.ts +58 -0
  19. package/types/components/setters/function.d.ts +46 -2
  20. package/types/components/setters/index.d.ts +142 -3
  21. package/types/components/setters/json.d.ts +46 -2
  22. package/types/components/shared/binder.d.ts +552 -3
  23. package/types/components/shared/viewer.d.ts +767 -2
  24. package/types/components/skeleton.d.ts +180 -2
  25. package/types/components/widgets/apis/form.d.ts +1520 -2
  26. package/types/components/widgets/css/index.d.ts +46 -2
  27. package/types/components/widgets/designer/index.d.ts +4 -1
  28. package/types/components/widgets/docs/index.d.ts +101 -2
  29. package/types/components/widgets/index.d.ts +340 -8
  30. package/types/components/widgets/market/index.d.ts +101 -2
  31. package/types/components/widgets/previewer/index.d.ts +6 -3
  32. package/types/components/widgets/raw/index.d.ts +46 -2
  33. package/types/components/widgets/schema/index.d.ts +46 -2
  34. package/types/components/widgets/scripts/group.d.ts +650 -4
  35. package/types/components/widgets/scripts/lifeCycles.d.ts +46 -2
  36. package/types/components/widgets/style/JsonMode.d.ts +46 -2
  37. package/types/components/widgets/style/positioning.d.ts +3 -1
  38. package/types/components/widgets/style/spacing-input.d.ts +255 -2
  39. package/types/components/widgets/style/spacing.d.ts +4 -1
  40. package/types/components/widgets/uni-config/index.d.ts +3 -0
  41. package/types/framework/renderer.d.ts +5 -2
  42. package/types/framework/simulator.d.ts +4 -2
  43. package/types/version.d.ts +2 -2
@@ -1,9 +1,10 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
2
2
  import { Props } from './expression';
3
3
  import { Props } from './select';
4
4
  import { Props } from './number';
5
5
  import { Props } from './icon';
6
6
  import { Props } from './json';
7
+ import { Props } from '../editor/Editor';
7
8
  import { Props } from './function';
8
9
  import { JSFunction } from '@vtj/core';
9
10
  import { Props } from './radio';
@@ -14,6 +15,7 @@ import { Props } from './section';
14
15
  import { Props } from './slider';
15
16
  import { Props } from './file';
16
17
  import { Props } from './vanIcon/index';
18
+ import { Props } from './css';
17
19
  export declare const setters: {
18
20
  StringSetter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
19
21
  BooleanSetter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -51,14 +53,100 @@ export declare const setters: {
51
53
  }>, {
52
54
  type: "Array" | "Object" | "JSON";
53
55
  modelValue: any;
54
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
56
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
57
+ codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
58
+ onBlur?: ((...args: any[]) => any) | undefined;
59
+ onChange?: ((...args: any[]) => any) | undefined;
60
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
61
+ }>, {
62
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
63
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
64
+ blur: (...args: any[]) => void;
65
+ change: (...args: any[]) => void;
66
+ "update:modelValue": (...args: any[]) => void;
67
+ }, PublicProps, {
68
+ height: string;
69
+ modelValue: string;
70
+ dark: boolean;
71
+ readonly: boolean;
72
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
73
+ lang: string;
74
+ minimap: boolean;
75
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
76
+ container: HTMLDivElement;
77
+ }, HTMLDivElement, ComponentProvideOptions, {
78
+ P: {};
79
+ B: {};
80
+ D: {};
81
+ C: {};
82
+ M: {};
83
+ Defaults: {};
84
+ }, Readonly< Props> & Readonly<{
85
+ onBlur?: ((...args: any[]) => any) | undefined;
86
+ onChange?: ((...args: any[]) => any) | undefined;
87
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
88
+ }>, {
89
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
90
+ }, {}, {}, {}, {
91
+ height: string;
92
+ modelValue: string;
93
+ dark: boolean;
94
+ readonly: boolean;
95
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
96
+ lang: string;
97
+ minimap: boolean;
98
+ }> | null;
99
+ }, HTMLDivElement>;
55
100
  FunctionSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
56
101
  change: (...args: any[]) => void;
57
102
  }, string, PublicProps, Readonly< Props> & Readonly<{
58
103
  onChange?: ((...args: any[]) => any) | undefined;
59
104
  }>, {
60
105
  modelValue: JSFunction;
61
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
106
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
107
+ codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
108
+ onBlur?: ((...args: any[]) => any) | undefined;
109
+ onChange?: ((...args: any[]) => any) | undefined;
110
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
111
+ }>, {
112
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
113
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
114
+ blur: (...args: any[]) => void;
115
+ change: (...args: any[]) => void;
116
+ "update:modelValue": (...args: any[]) => void;
117
+ }, PublicProps, {
118
+ height: string;
119
+ modelValue: string;
120
+ dark: boolean;
121
+ readonly: boolean;
122
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
123
+ lang: string;
124
+ minimap: boolean;
125
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
126
+ container: HTMLDivElement;
127
+ }, HTMLDivElement, ComponentProvideOptions, {
128
+ P: {};
129
+ B: {};
130
+ D: {};
131
+ C: {};
132
+ M: {};
133
+ Defaults: {};
134
+ }, Readonly< Props> & Readonly<{
135
+ onBlur?: ((...args: any[]) => any) | undefined;
136
+ onChange?: ((...args: any[]) => any) | undefined;
137
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
138
+ }>, {
139
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
140
+ }, {}, {}, {}, {
141
+ height: string;
142
+ modelValue: string;
143
+ dark: boolean;
144
+ readonly: boolean;
145
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
146
+ lang: string;
147
+ minimap: boolean;
148
+ }> | null;
149
+ }, HTMLDivElement>;
62
150
  RadioSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {
63
151
  options: {
64
152
  label: string;
@@ -126,4 +214,55 @@ export declare const setters: {
126
214
  size: "small" | "large" | "default" | "";
127
215
  modelValue: string;
128
216
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
217
+ CssSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
218
+ change: (...args: any[]) => void;
219
+ }, string, PublicProps, Readonly< Props> & Readonly<{
220
+ onChange?: ((...args: any[]) => any) | undefined;
221
+ }>, {
222
+ type: "CSS";
223
+ modelValue: any;
224
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
225
+ codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
226
+ onBlur?: ((...args: any[]) => any) | undefined;
227
+ onChange?: ((...args: any[]) => any) | undefined;
228
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
229
+ }>, {
230
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
231
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
232
+ blur: (...args: any[]) => void;
233
+ change: (...args: any[]) => void;
234
+ "update:modelValue": (...args: any[]) => void;
235
+ }, PublicProps, {
236
+ height: string;
237
+ modelValue: string;
238
+ dark: boolean;
239
+ readonly: boolean;
240
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
241
+ lang: string;
242
+ minimap: boolean;
243
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
244
+ container: HTMLDivElement;
245
+ }, HTMLDivElement, ComponentProvideOptions, {
246
+ P: {};
247
+ B: {};
248
+ D: {};
249
+ C: {};
250
+ M: {};
251
+ Defaults: {};
252
+ }, Readonly< Props> & Readonly<{
253
+ onBlur?: ((...args: any[]) => any) | undefined;
254
+ onChange?: ((...args: any[]) => any) | undefined;
255
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
256
+ }>, {
257
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
258
+ }, {}, {}, {}, {
259
+ height: string;
260
+ modelValue: string;
261
+ dark: boolean;
262
+ readonly: boolean;
263
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
264
+ lang: string;
265
+ minimap: boolean;
266
+ }> | null;
267
+ }, HTMLDivElement>;
129
268
  };
@@ -1,4 +1,5 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
2
+ import { Props } from '../editor/Editor';
2
3
  export interface Props {
3
4
  modelValue?: any;
4
5
  type?: 'Array' | 'Object' | 'JSON';
@@ -10,5 +11,48 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
10
11
  }>, {
11
12
  type: "Array" | "Object" | "JSON";
12
13
  modelValue: any;
13
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
15
+ codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
16
+ onBlur?: ((...args: any[]) => any) | undefined;
17
+ onChange?: ((...args: any[]) => any) | undefined;
18
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
19
+ }>, {
20
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
21
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
22
+ blur: (...args: any[]) => void;
23
+ change: (...args: any[]) => void;
24
+ "update:modelValue": (...args: any[]) => void;
25
+ }, PublicProps, {
26
+ height: string;
27
+ modelValue: string;
28
+ dark: boolean;
29
+ readonly: boolean;
30
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
31
+ lang: string;
32
+ minimap: boolean;
33
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
34
+ container: HTMLDivElement;
35
+ }, HTMLDivElement, ComponentProvideOptions, {
36
+ P: {};
37
+ B: {};
38
+ D: {};
39
+ C: {};
40
+ M: {};
41
+ Defaults: {};
42
+ }, Readonly< Props> & Readonly<{
43
+ onBlur?: ((...args: any[]) => any) | undefined;
44
+ onChange?: ((...args: any[]) => any) | undefined;
45
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
46
+ }>, {
47
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
48
+ }, {}, {}, {}, {
49
+ height: string;
50
+ modelValue: string;
51
+ dark: boolean;
52
+ readonly: boolean;
53
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
54
+ lang: string;
55
+ minimap: boolean;
56
+ }> | null;
57
+ }, HTMLDivElement>;
14
58
  export default _default;