@vtj/designer 0.10.5 → 0.10.6

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 (59) hide show
  1. package/dist/index.mjs +4 -4
  2. package/package.json +7 -7
  3. package/types/components/binders/event.d.ts +2 -46
  4. package/types/components/binders/variable.d.ts +2 -46
  5. package/types/components/editor/Editor.d.ts +1 -3
  6. package/types/components/editor/index.d.ts +1 -3
  7. package/types/components/regions/actions.d.ts +2 -33
  8. package/types/components/regions/apps.d.ts +2 -33
  9. package/types/components/regions/brand.d.ts +2 -33
  10. package/types/components/regions/empty.d.ts +1 -1
  11. package/types/components/regions/index.d.ts +11 -259
  12. package/types/components/regions/preview.d.ts +2 -33
  13. package/types/components/regions/settings.d.ts +2 -33
  14. package/types/components/regions/status.d.ts +2 -33
  15. package/types/components/regions/toolbar.d.ts +2 -33
  16. package/types/components/regions/workspace.d.ts +2 -33
  17. package/types/components/setters/css.d.ts +2 -46
  18. package/types/components/setters/file.d.ts +1 -1
  19. package/types/components/setters/function.d.ts +2 -46
  20. package/types/components/setters/icon.d.ts +1 -1
  21. package/types/components/setters/index.d.ts +10 -140
  22. package/types/components/setters/json.d.ts +2 -46
  23. package/types/components/setters/section.d.ts +1 -1
  24. package/types/components/setters/slider.d.ts +1 -1
  25. package/types/components/setters/tag.d.ts +1 -1
  26. package/types/components/setters/vanIcon/index.d.ts +1 -1
  27. package/types/components/shared/binder.d.ts +70 -742
  28. package/types/components/shared/box.d.ts +45 -13
  29. package/types/components/shared/item.d.ts +143 -13
  30. package/types/components/shared/panel.d.ts +72 -15
  31. package/types/components/shared/tabs.d.ts +37 -13
  32. package/types/components/shared/viewer.d.ts +2 -766
  33. package/types/components/shared/viewport.d.ts +29 -13
  34. package/types/components/skeleton.d.ts +2 -180
  35. package/types/components/widgets/about/index.d.ts +1 -1
  36. package/types/components/widgets/actions/coder.d.ts +1 -1
  37. package/types/components/widgets/actions/index.d.ts +1 -1
  38. package/types/components/widgets/apis/base-info.d.ts +1 -1
  39. package/types/components/widgets/apis/form.d.ts +2 -1520
  40. package/types/components/widgets/apis/jsonp-options.d.ts +1 -1
  41. package/types/components/widgets/apis/mock-template.d.ts +1 -1
  42. package/types/components/widgets/apis/request-settings.d.ts +1 -1
  43. package/types/components/widgets/css/index.d.ts +2 -46
  44. package/types/components/widgets/designer/actions.d.ts +1 -1
  45. package/types/components/widgets/designer/index.d.ts +1 -4
  46. package/types/components/widgets/docs/index.d.ts +2 -101
  47. package/types/components/widgets/empty/index.d.ts +1 -1
  48. package/types/components/widgets/index.d.ts +11 -342
  49. package/types/components/widgets/market/index.d.ts +2 -101
  50. package/types/components/widgets/previewer/index.d.ts +1 -4
  51. package/types/components/widgets/raw/index.d.ts +2 -46
  52. package/types/components/widgets/schema/index.d.ts +2 -46
  53. package/types/components/widgets/scripts/group.d.ts +51 -983
  54. package/types/components/widgets/scripts/lifeCycles.d.ts +2 -46
  55. package/types/components/widgets/style/JsonMode.d.ts +2 -46
  56. package/types/components/widgets/style/positioning.d.ts +1 -3
  57. package/types/components/widgets/style/spacing-input.d.ts +2 -255
  58. package/types/components/widgets/style/spacing.d.ts +1 -4
  59. package/types/version.d.ts +2 -2
@@ -1,104 +1,5 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
- import { ActionMenuItem } from '@vtj/ui';
3
- import { Props } from '../../shared/panel';
4
- import { OnCleanup } from '@vue/reactivity';
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
5
2
  declare const _default: DefineComponent<{}, {
6
3
  openDesigner: () => void;
7
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
8
- panel: ({
9
- $: ComponentInternalInstance;
10
- $data: {};
11
- $props: {
12
- readonly title?: string | undefined;
13
- readonly subtitle?: string | undefined;
14
- readonly plus?: boolean | undefined;
15
- readonly refresh?: boolean | undefined;
16
- readonly back?: boolean | undefined;
17
- readonly edit?: boolean | undefined;
18
- readonly remove?: boolean | undefined;
19
- readonly save?: boolean | undefined;
20
- readonly header?: boolean | undefined;
21
- readonly collapsable?: boolean | undefined;
22
- readonly menus?: ActionMenuItem[] | undefined;
23
- readonly onCommand?: ((...args: any[]) => any) | undefined;
24
- readonly onRefresh?: ((...args: any[]) => any) | undefined;
25
- readonly onPlus?: ((...args: any[]) => any) | undefined;
26
- readonly onBack?: ((...args: any[]) => any) | undefined;
27
- readonly onEdit?: ((...args: any[]) => any) | undefined;
28
- readonly onRemove?: ((...args: any[]) => any) | undefined;
29
- readonly onSave?: ((...args: any[]) => any) | undefined;
30
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
31
- $attrs: {
32
- [x: string]: unknown;
33
- };
34
- $refs: {
35
- [x: string]: unknown;
36
- };
37
- $slots: Readonly<{
38
- [name: string]: Slot<any> | undefined;
39
- }>;
40
- $root: ComponentPublicInstance | null;
41
- $parent: ComponentPublicInstance | null;
42
- $host: Element | null;
43
- $emit: ((event: "command", ...args: any[]) => void) & ((event: "refresh", ...args: any[]) => void) & ((event: "plus", ...args: any[]) => void) & ((event: "back", ...args: any[]) => void) & ((event: "edit", ...args: any[]) => void) & ((event: "remove", ...args: any[]) => void) & ((event: "save", ...args: any[]) => void);
44
- $el: any;
45
- $options: ComponentOptionsBase<Readonly< Props> & Readonly<{
46
- onCommand?: ((...args: any[]) => any) | undefined;
47
- onRefresh?: ((...args: any[]) => any) | undefined;
48
- onPlus?: ((...args: any[]) => any) | undefined;
49
- onBack?: ((...args: any[]) => any) | undefined;
50
- onEdit?: ((...args: any[]) => any) | undefined;
51
- onRemove?: ((...args: any[]) => any) | undefined;
52
- onSave?: ((...args: any[]) => any) | undefined;
53
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
54
- command: (...args: any[]) => void;
55
- refresh: (...args: any[]) => void;
56
- plus: (...args: any[]) => void;
57
- back: (...args: any[]) => void;
58
- edit: (...args: any[]) => void;
59
- remove: (...args: any[]) => void;
60
- save: (...args: any[]) => void;
61
- }, string, {
62
- header: boolean;
63
- menus: ActionMenuItem[];
64
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
65
- beforeCreate?: (() => void) | (() => void)[];
66
- created?: (() => void) | (() => void)[];
67
- beforeMount?: (() => void) | (() => void)[];
68
- mounted?: (() => void) | (() => void)[];
69
- beforeUpdate?: (() => void) | (() => void)[];
70
- updated?: (() => void) | (() => void)[];
71
- activated?: (() => void) | (() => void)[];
72
- deactivated?: (() => void) | (() => void)[];
73
- beforeDestroy?: (() => void) | (() => void)[];
74
- beforeUnmount?: (() => void) | (() => void)[];
75
- destroyed?: (() => void) | (() => void)[];
76
- unmounted?: (() => void) | (() => void)[];
77
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
78
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
79
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
80
- };
81
- $forceUpdate: () => void;
82
- $nextTick: nextTick;
83
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
84
- } & Readonly<{
85
- header: boolean;
86
- menus: ActionMenuItem[];
87
- }> & Omit<Readonly< Props> & Readonly<{
88
- onCommand?: ((...args: any[]) => any) | undefined;
89
- onRefresh?: ((...args: any[]) => any) | undefined;
90
- onPlus?: ((...args: any[]) => any) | undefined;
91
- onBack?: ((...args: any[]) => any) | undefined;
92
- onEdit?: ((...args: any[]) => any) | undefined;
93
- onRemove?: ((...args: any[]) => any) | undefined;
94
- onSave?: ((...args: any[]) => any) | undefined;
95
- }>, "header" | "menus"> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {} & {
96
- $slots: {
97
- actions?(_: {}): any;
98
- default?(_: {}): any;
99
- footer?(_: {}): any;
100
- };
101
- }) | null;
102
- frame: HTMLIFrameElement;
103
- }, any>;
4
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
104
5
  export default _default;
@@ -5,8 +5,5 @@ export interface Props {
5
5
  }
6
6
  declare const _default: DefineComponent<Props, {
7
7
  refresh: () => void;
8
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
9
- container: HTMLDivElement;
10
- iframe: HTMLIFrameElement;
11
- }, HTMLDivElement>;
8
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
12
9
  export default _default;
@@ -1,47 +1,3 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
2
- import { Props } from '../../editor/Editor';
3
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
4
- editorRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
5
- onBlur?: ((...args: any[]) => any) | undefined;
6
- onChange?: ((...args: any[]) => any) | undefined;
7
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
- }>, {
9
- getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
10
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
- blur: (...args: any[]) => void;
12
- change: (...args: any[]) => void;
13
- "update:modelValue": (...args: any[]) => void;
14
- }, PublicProps, {
15
- height: string;
16
- modelValue: string;
17
- dark: boolean;
18
- readonly: boolean;
19
- options: import("monaco-editor").editor.IEditorConstructionOptions;
20
- lang: string;
21
- minimap: boolean;
22
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
23
- container: HTMLDivElement;
24
- }, HTMLDivElement, ComponentProvideOptions, {
25
- P: {};
26
- B: {};
27
- D: {};
28
- C: {};
29
- M: {};
30
- Defaults: {};
31
- }, Readonly< Props> & Readonly<{
32
- onBlur?: ((...args: any[]) => any) | undefined;
33
- onChange?: ((...args: any[]) => any) | undefined;
34
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
35
- }>, {
36
- getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
37
- }, {}, {}, {}, {
38
- height: string;
39
- modelValue: string;
40
- dark: boolean;
41
- readonly: boolean;
42
- options: import("monaco-editor").editor.IEditorConstructionOptions;
43
- lang: string;
44
- minimap: boolean;
45
- }> | null;
46
- }, any>;
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
47
3
  export default _default;
@@ -1,47 +1,3 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
2
- import { Props } from '../../editor/Editor';
3
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
4
- editorRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
5
- onBlur?: ((...args: any[]) => any) | undefined;
6
- onChange?: ((...args: any[]) => any) | undefined;
7
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
- }>, {
9
- getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
10
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
- blur: (...args: any[]) => void;
12
- change: (...args: any[]) => void;
13
- "update:modelValue": (...args: any[]) => void;
14
- }, PublicProps, {
15
- height: string;
16
- modelValue: string;
17
- dark: boolean;
18
- readonly: boolean;
19
- options: import("monaco-editor").editor.IEditorConstructionOptions;
20
- lang: string;
21
- minimap: boolean;
22
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
23
- container: HTMLDivElement;
24
- }, HTMLDivElement, ComponentProvideOptions, {
25
- P: {};
26
- B: {};
27
- D: {};
28
- C: {};
29
- M: {};
30
- Defaults: {};
31
- }, Readonly< Props> & Readonly<{
32
- onBlur?: ((...args: any[]) => any) | undefined;
33
- onChange?: ((...args: any[]) => any) | undefined;
34
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
35
- }>, {
36
- getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
37
- }, {}, {}, {}, {
38
- height: string;
39
- modelValue: string;
40
- dark: boolean;
41
- readonly: boolean;
42
- options: import("monaco-editor").editor.IEditorConstructionOptions;
43
- lang: string;
44
- minimap: boolean;
45
- }> | null;
46
- }, any>;
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
47
3
  export default _default;