@vtj/designer 0.9.23 → 0.9.25

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 (40) hide show
  1. package/dist/index.mjs +2287 -2259
  2. package/dist/style.css +1 -1
  3. package/package.json +6 -6
  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/index.d.ts +1 -0
  9. package/types/components/hooks/useCheckVersion.d.ts +4 -0
  10. package/types/components/regions/actions.d.ts +33 -2
  11. package/types/components/regions/apps.d.ts +33 -2
  12. package/types/components/regions/brand.d.ts +33 -2
  13. package/types/components/regions/index.d.ts +258 -10
  14. package/types/components/regions/preview.d.ts +33 -2
  15. package/types/components/regions/settings.d.ts +33 -2
  16. package/types/components/regions/status.d.ts +33 -2
  17. package/types/components/regions/toolbar.d.ts +33 -2
  18. package/types/components/regions/workspace.d.ts +33 -2
  19. package/types/components/setters/function.d.ts +46 -2
  20. package/types/components/setters/index.d.ts +90 -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/skeleton.d.ts +180 -2
  24. package/types/components/widgets/apis/form.d.ts +1520 -2
  25. package/types/components/widgets/css/index.d.ts +46 -2
  26. package/types/components/widgets/designer/index.d.ts +4 -1
  27. package/types/components/widgets/docs/index.d.ts +101 -2
  28. package/types/components/widgets/index.d.ts +339 -8
  29. package/types/components/widgets/market/index.d.ts +101 -2
  30. package/types/components/widgets/previewer/index.d.ts +4 -1
  31. package/types/components/widgets/raw/index.d.ts +46 -2
  32. package/types/components/widgets/schema/index.d.ts +46 -2
  33. package/types/components/widgets/scripts/group.d.ts +650 -4
  34. package/types/components/widgets/scripts/lifeCycles.d.ts +46 -2
  35. package/types/components/widgets/style/JsonMode.d.ts +46 -2
  36. package/types/components/widgets/style/positioning.d.ts +3 -1
  37. package/types/components/widgets/style/spacing-input.d.ts +255 -2
  38. package/types/components/widgets/style/spacing.d.ts +4 -1
  39. package/types/constants.d.ts +1 -0
  40. 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';
@@ -50,14 +51,100 @@ export declare const setters: {
50
51
  }>, {
51
52
  type: "Array" | "Object" | "JSON";
52
53
  modelValue: any;
53
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
54
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
55
+ codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
56
+ onBlur?: ((...args: any[]) => any) | undefined;
57
+ onChange?: ((...args: any[]) => any) | undefined;
58
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
59
+ }>, {
60
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
61
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
62
+ blur: (...args: any[]) => void;
63
+ change: (...args: any[]) => void;
64
+ "update:modelValue": (...args: any[]) => void;
65
+ }, PublicProps, {
66
+ height: string;
67
+ modelValue: string;
68
+ dark: boolean;
69
+ readonly: boolean;
70
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
71
+ lang: string;
72
+ minimap: boolean;
73
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
74
+ container: HTMLDivElement;
75
+ }, HTMLDivElement, ComponentProvideOptions, {
76
+ P: {};
77
+ B: {};
78
+ D: {};
79
+ C: {};
80
+ M: {};
81
+ Defaults: {};
82
+ }, Readonly< Props> & Readonly<{
83
+ onBlur?: ((...args: any[]) => any) | undefined;
84
+ onChange?: ((...args: any[]) => any) | undefined;
85
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
86
+ }>, {
87
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
88
+ }, {}, {}, {}, {
89
+ height: string;
90
+ modelValue: string;
91
+ dark: boolean;
92
+ readonly: boolean;
93
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
94
+ lang: string;
95
+ minimap: boolean;
96
+ }> | null;
97
+ }, HTMLDivElement>;
54
98
  FunctionSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
55
99
  change: (...args: any[]) => void;
56
100
  }, string, PublicProps, Readonly< Props> & Readonly<{
57
101
  onChange?: ((...args: any[]) => any) | undefined;
58
102
  }>, {
59
103
  modelValue: JSFunction;
60
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
104
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
105
+ codeEditor: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
106
+ onBlur?: ((...args: any[]) => any) | undefined;
107
+ onChange?: ((...args: any[]) => any) | undefined;
108
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
109
+ }>, {
110
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
111
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
112
+ blur: (...args: any[]) => void;
113
+ change: (...args: any[]) => void;
114
+ "update:modelValue": (...args: any[]) => void;
115
+ }, PublicProps, {
116
+ height: string;
117
+ modelValue: string;
118
+ dark: boolean;
119
+ readonly: boolean;
120
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
121
+ lang: string;
122
+ minimap: boolean;
123
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
124
+ container: HTMLDivElement;
125
+ }, HTMLDivElement, ComponentProvideOptions, {
126
+ P: {};
127
+ B: {};
128
+ D: {};
129
+ C: {};
130
+ M: {};
131
+ Defaults: {};
132
+ }, Readonly< Props> & Readonly<{
133
+ onBlur?: ((...args: any[]) => any) | undefined;
134
+ onChange?: ((...args: any[]) => any) | undefined;
135
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
136
+ }>, {
137
+ getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
138
+ }, {}, {}, {}, {
139
+ height: string;
140
+ modelValue: string;
141
+ dark: boolean;
142
+ readonly: boolean;
143
+ options: import("monaco-editor").editor.IEditorConstructionOptions;
144
+ lang: string;
145
+ minimap: boolean;
146
+ }> | null;
147
+ }, HTMLDivElement>;
61
148
  RadioSetter: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< Props> & Readonly<{}>, {
62
149
  options: {
63
150
  label: string;
@@ -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;