@vtj/designer 0.7.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.
- package/LICENSE +21 -0
- package/dist/Editor-ctkAn2cu.js +67 -0
- package/dist/Editor-ragV9vX2.cjs +1 -0
- package/dist/index.cjs +44 -0
- package/dist/index.mjs +7433 -0
- package/dist/style.css +1 -0
- package/package.json +44 -0
- package/types/components/binders/event.d.ts +20 -0
- package/types/components/binders/index.d.ts +3 -0
- package/types/components/binders/variable.d.ts +19 -0
- package/types/components/editor/Editor.d.ts +65 -0
- package/types/components/editor/index.d.ts +86 -0
- package/types/components/hooks/index.d.ts +15 -0
- package/types/components/hooks/useAssets.d.ts +19 -0
- package/types/components/hooks/useBinder.d.ts +12 -0
- package/types/components/hooks/useBlocks.d.ts +7 -0
- package/types/components/hooks/useColSpan.d.ts +6 -0
- package/types/components/hooks/useCurrent.d.ts +10 -0
- package/types/components/hooks/useDataSources.d.ts +8 -0
- package/types/components/hooks/useDeps.d.ts +7 -0
- package/types/components/hooks/useDesigner.d.ts +33 -0
- package/types/components/hooks/useDirectives.d.ts +17 -0
- package/types/components/hooks/useHistory.d.ts +13 -0
- package/types/components/hooks/useNodeEvents.d.ts +17 -0
- package/types/components/hooks/useNodeProps.d.ts +13 -0
- package/types/components/hooks/useProject.d.ts +7 -0
- package/types/components/hooks/useRegion.d.ts +6 -0
- package/types/components/hooks/useSelected.d.ts +8 -0
- package/types/components/index.d.ts +9 -0
- package/types/components/regions/actions.d.ts +19 -0
- package/types/components/regions/apps.d.ts +35 -0
- package/types/components/regions/brand.d.ts +19 -0
- package/types/components/regions/empty.d.ts +15 -0
- package/types/components/regions/index.d.ts +147 -0
- package/types/components/regions/preview.d.ts +20 -0
- package/types/components/regions/settings.d.ts +19 -0
- package/types/components/regions/status.d.ts +19 -0
- package/types/components/regions/toolbar.d.ts +20 -0
- package/types/components/regions/workspace.d.ts +21 -0
- package/types/components/setter.d.ts +54 -0
- package/types/components/setters/boolean.d.ts +3 -0
- package/types/components/setters/color.d.ts +3 -0
- package/types/components/setters/expression.d.ts +30 -0
- package/types/components/setters/function.d.ts +40 -0
- package/types/components/setters/icon.d.ts +39 -0
- package/types/components/setters/index.d.ts +139 -0
- package/types/components/setters/json.d.ts +37 -0
- package/types/components/setters/number.d.ts +19 -0
- package/types/components/setters/select.d.ts +35 -0
- package/types/components/setters/string.d.ts +3 -0
- package/types/components/shared/Icon.d.ts +40 -0
- package/types/components/shared/binder.d.ts +45 -0
- package/types/components/shared/box.d.ts +29 -0
- package/types/components/shared/index.d.ts +11 -0
- package/types/components/shared/item.d.ts +98 -0
- package/types/components/shared/panel.d.ts +54 -0
- package/types/components/shared/slots.d.ts +36 -0
- package/types/components/shared/tabs.d.ts +49 -0
- package/types/components/shared/types.d.ts +1 -0
- package/types/components/shared/viewer.d.ts +22 -0
- package/types/components/shared/viewport.d.ts +38 -0
- package/types/components/skeleton.d.ts +55 -0
- package/types/components/widgets/actions/index.d.ts +31 -0
- package/types/components/widgets/apis/index.d.ts +3 -0
- package/types/components/widgets/blocks/index.d.ts +3 -0
- package/types/components/widgets/components/index.d.ts +3 -0
- package/types/components/widgets/css/index.d.ts +3 -0
- package/types/components/widgets/data-sources/form.d.ts +19 -0
- package/types/components/widgets/data-sources/index.d.ts +3 -0
- package/types/components/widgets/defined/events.d.ts +19 -0
- package/types/components/widgets/defined/index.d.ts +3 -0
- package/types/components/widgets/defined/injects.d.ts +19 -0
- package/types/components/widgets/defined/props.d.ts +19 -0
- package/types/components/widgets/defined/slots.d.ts +19 -0
- package/types/components/widgets/deps/index.d.ts +3 -0
- package/types/components/widgets/designer/actions.d.ts +36 -0
- package/types/components/widgets/designer/index.d.ts +7 -0
- package/types/components/widgets/directives/index.d.ts +3 -0
- package/types/components/widgets/docs/index.d.ts +29 -0
- package/types/components/widgets/empty/index.d.ts +3 -0
- package/types/components/widgets/events/index.d.ts +8 -0
- package/types/components/widgets/history/index.d.ts +3 -0
- package/types/components/widgets/index.d.ts +109 -0
- package/types/components/widgets/logo/index.d.ts +34 -0
- package/types/components/widgets/node-path/index.d.ts +3 -0
- package/types/components/widgets/outline/index.d.ts +19 -0
- package/types/components/widgets/pages/form.d.ts +17 -0
- package/types/components/widgets/pages/index.d.ts +3 -0
- package/types/components/widgets/previewer/index.d.ts +18 -0
- package/types/components/widgets/properties/index.d.ts +3 -0
- package/types/components/widgets/properties/setters.d.ts +28 -0
- package/types/components/widgets/raw/index.d.ts +3 -0
- package/types/components/widgets/schema/index.d.ts +3 -0
- package/types/components/widgets/scripts/computed.d.ts +18 -0
- package/types/components/widgets/scripts/group.d.ts +52 -0
- package/types/components/widgets/scripts/index.d.ts +3 -0
- package/types/components/widgets/scripts/lifeCycles.d.ts +18 -0
- package/types/components/widgets/scripts/methods.d.ts +18 -0
- package/types/components/widgets/scripts/state.d.ts +18 -0
- package/types/components/widgets/scripts/watch.d.ts +18 -0
- package/types/components/widgets/style/index.d.ts +3 -0
- package/types/components/widgets/switcher/index.d.ts +7 -0
- package/types/components/widgets/toolbar/index.d.ts +17 -0
- package/types/constants.d.ts +28 -0
- package/types/framework/assets.d.ts +22 -0
- package/types/framework/designer.d.ts +57 -0
- package/types/framework/engine.d.ts +51 -0
- package/types/framework/index.d.ts +6 -0
- package/types/framework/renderer.d.ts +21 -0
- package/types/framework/simulator.d.ts +39 -0
- package/types/framework/types.d.ts +119 -0
- package/types/index.d.ts +7 -0
- package/types/managers/built-in/deps.d.ts +2 -0
- package/types/managers/built-in/index.d.ts +4 -0
- package/types/managers/built-in/materials.d.ts +2 -0
- package/types/managers/built-in/setters.d.ts +3 -0
- package/types/managers/built-in/widgets.d.ts +2 -0
- package/types/managers/deps.d.ts +33 -0
- package/types/managers/index.d.ts +4 -0
- package/types/managers/setter.d.ts +29 -0
- package/types/managers/widget.d.ts +36 -0
- package/types/utils.d.ts +6 -0
- package/types/version.d.ts +8 -0
- package/types/wrappers/index.d.ts +4 -0
- package/types/wrappers/region.d.ts +15 -0
- package/types/wrappers/setter.d.ts +90 -0
- package/types/wrappers/skeleton.d.ts +78 -0
- package/types/wrappers/widget.d.ts +24 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { RegionType, Widget } from '../..';
|
|
2
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes, ComputedRef, Ref } from 'vue';
|
|
3
|
+
export declare const regions: {
|
|
4
|
+
EmptyRegion: DefineComponent<{
|
|
5
|
+
region: {
|
|
6
|
+
type: PropType<string>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
10
|
+
region: {
|
|
11
|
+
type: PropType<string>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}>>, {}, {}>;
|
|
15
|
+
Brand: DefineComponent<{
|
|
16
|
+
region: {
|
|
17
|
+
type: PropType<RegionType>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
widgets: ComputedRef<Widget[]>;
|
|
22
|
+
widgetsRef: Ref<any>;
|
|
23
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
24
|
+
region: {
|
|
25
|
+
type: PropType<RegionType>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
}>>, {}, {}>;
|
|
29
|
+
Toolbar: DefineComponent<{
|
|
30
|
+
region: {
|
|
31
|
+
type: PropType<RegionType>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
preview: {
|
|
35
|
+
type: PropType<boolean>;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
widgets: ComputedRef<Widget[]>;
|
|
39
|
+
widgetsRef: Ref<any>;
|
|
40
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
41
|
+
region: {
|
|
42
|
+
type: PropType<RegionType>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
preview: {
|
|
46
|
+
type: PropType<boolean>;
|
|
47
|
+
};
|
|
48
|
+
}>>, {}, {}>;
|
|
49
|
+
Actions: DefineComponent<{
|
|
50
|
+
region: {
|
|
51
|
+
type: PropType<RegionType>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
widgets: ComputedRef<Widget[]>;
|
|
56
|
+
widgetsRef: Ref<any>;
|
|
57
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
58
|
+
region: {
|
|
59
|
+
type: PropType<RegionType>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
}>>, {}, {}>;
|
|
63
|
+
Apps: DefineComponent<{
|
|
64
|
+
region: {
|
|
65
|
+
type: PropType<RegionType>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
index: {
|
|
69
|
+
type: PropType<number>;
|
|
70
|
+
default: number;
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
widgets: ComputedRef<Widget[]>;
|
|
74
|
+
widgetsRef: Ref<any>;
|
|
75
|
+
setActive: (name: string) => void;
|
|
76
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
77
|
+
region: {
|
|
78
|
+
type: PropType<RegionType>;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
index: {
|
|
82
|
+
type: PropType<number>;
|
|
83
|
+
default: number;
|
|
84
|
+
};
|
|
85
|
+
}>>, {
|
|
86
|
+
index: number;
|
|
87
|
+
}, {}>;
|
|
88
|
+
Workspace: DefineComponent<{
|
|
89
|
+
region: {
|
|
90
|
+
type: PropType<RegionType>;
|
|
91
|
+
required: true;
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
currentTab: Ref<string>;
|
|
95
|
+
widgets: ComputedRef<Widget[]>;
|
|
96
|
+
widgetsRef: Ref<any>;
|
|
97
|
+
openTab: (name: string, props?: Record<string, any>) => void;
|
|
98
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
99
|
+
region: {
|
|
100
|
+
type: PropType<RegionType>;
|
|
101
|
+
required: true;
|
|
102
|
+
};
|
|
103
|
+
}>>, {}, {}>;
|
|
104
|
+
Settings: DefineComponent<{
|
|
105
|
+
region: {
|
|
106
|
+
type: PropType<RegionType>;
|
|
107
|
+
required: true;
|
|
108
|
+
};
|
|
109
|
+
}, {
|
|
110
|
+
widgets: ComputedRef<Widget[]>;
|
|
111
|
+
widgetsRef: Ref<any>;
|
|
112
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
113
|
+
region: {
|
|
114
|
+
type: PropType<RegionType>;
|
|
115
|
+
required: true;
|
|
116
|
+
};
|
|
117
|
+
}>>, {}, {}>;
|
|
118
|
+
Status: DefineComponent<{
|
|
119
|
+
region: {
|
|
120
|
+
type: PropType<RegionType>;
|
|
121
|
+
required: true;
|
|
122
|
+
};
|
|
123
|
+
}, {
|
|
124
|
+
widgets: ComputedRef<Widget[]>;
|
|
125
|
+
widgetsRef: Ref<any>;
|
|
126
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
127
|
+
region: {
|
|
128
|
+
type: PropType<RegionType>;
|
|
129
|
+
required: true;
|
|
130
|
+
};
|
|
131
|
+
}>>, {}, {}>;
|
|
132
|
+
Preview: DefineComponent<{
|
|
133
|
+
region: {
|
|
134
|
+
type: PropType<RegionType>;
|
|
135
|
+
required: true;
|
|
136
|
+
};
|
|
137
|
+
}, {
|
|
138
|
+
currentTab: Ref<string>;
|
|
139
|
+
widgets: ComputedRef<Widget[]>;
|
|
140
|
+
widgetsRef: Ref<any>;
|
|
141
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
142
|
+
region: {
|
|
143
|
+
type: PropType<RegionType>;
|
|
144
|
+
required: true;
|
|
145
|
+
};
|
|
146
|
+
}>>, {}, {}>;
|
|
147
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Widget, RegionType } from '../../framework';
|
|
3
|
+
export interface Props {
|
|
4
|
+
region: RegionType;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
7
|
+
currentTab: Ref<string>;
|
|
8
|
+
widgets: ComputedRef<Widget[]>;
|
|
9
|
+
widgetsRef: Ref<any>;
|
|
10
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Widget, RegionType } from '../../framework';
|
|
3
|
+
export interface Props {
|
|
4
|
+
region: RegionType;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
7
|
+
widgets: ComputedRef<Widget[]>;
|
|
8
|
+
widgetsRef: Ref<any>;
|
|
9
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Widget, RegionType } from '../../framework';
|
|
3
|
+
export interface Props {
|
|
4
|
+
region: RegionType;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
7
|
+
widgets: ComputedRef<Widget[]>;
|
|
8
|
+
widgetsRef: Ref<any>;
|
|
9
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Widget, RegionType } from '../../framework';
|
|
3
|
+
export interface Props {
|
|
4
|
+
region: RegionType;
|
|
5
|
+
preview?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
8
|
+
widgets: ComputedRef<Widget[]>;
|
|
9
|
+
widgetsRef: Ref<any>;
|
|
10
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Widget, RegionType } from '../../framework';
|
|
3
|
+
export interface Props {
|
|
4
|
+
region: RegionType;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
7
|
+
currentTab: Ref<string>;
|
|
8
|
+
widgets: ComputedRef<Widget[]>;
|
|
9
|
+
widgetsRef: Ref<any>;
|
|
10
|
+
openTab: (name: string, props?: Record<string, any>) => void;
|
|
11
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { type MaterialSetter } from '@vtj/core';
|
|
3
|
+
import { type Context } from '@vtj/renderer';
|
|
4
|
+
import { BlockModel } from '@vtj/core';
|
|
5
|
+
export interface Props {
|
|
6
|
+
context: Context | null;
|
|
7
|
+
current: BlockModel | null;
|
|
8
|
+
name: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
setters: MaterialSetter[];
|
|
12
|
+
variable?: boolean;
|
|
13
|
+
value?: any;
|
|
14
|
+
options?: any[];
|
|
15
|
+
defaultSetter?: string;
|
|
16
|
+
removable?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
|
+
label: string;
|
|
20
|
+
options: () => never[];
|
|
21
|
+
variable: boolean;
|
|
22
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
23
|
+
change: (...args: any[]) => void;
|
|
24
|
+
remove: (...args: any[]) => void;
|
|
25
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
26
|
+
label: string;
|
|
27
|
+
options: () => never[];
|
|
28
|
+
variable: boolean;
|
|
29
|
+
}>>> & {
|
|
30
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
options: any[];
|
|
34
|
+
label: string;
|
|
35
|
+
variable: boolean;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
40
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
+
} : {
|
|
43
|
+
type: PropType<T[K]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
type __VLS_WithDefaults<P, D> = {
|
|
48
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
49
|
+
default: D[K];
|
|
50
|
+
}> : P[K];
|
|
51
|
+
};
|
|
52
|
+
type __VLS_Prettify<T> = {
|
|
53
|
+
[K in keyof T]: T[K];
|
|
54
|
+
} & {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { type JSExpression } from '@vtj/core';
|
|
3
|
+
import { type Context } from '@vtj/renderer';
|
|
4
|
+
export interface Props {
|
|
5
|
+
modelValue?: JSExpression | string;
|
|
6
|
+
context?: Context;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
+
change: (...args: any[]) => void;
|
|
10
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
|
|
11
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type __VLS_WithDefaults<P, D> = {
|
|
24
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
|
+
default: D[K];
|
|
26
|
+
}> : P[K];
|
|
27
|
+
};
|
|
28
|
+
type __VLS_Prettify<T> = {
|
|
29
|
+
[K in keyof T]: T[K];
|
|
30
|
+
} & {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { type JSFunction } from '@vtj/core';
|
|
3
|
+
export interface Props {
|
|
4
|
+
modelValue?: JSFunction;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
7
|
+
modelValue: () => {
|
|
8
|
+
type: string;
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
12
|
+
change: (...args: any[]) => void;
|
|
13
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
14
|
+
modelValue: () => {
|
|
15
|
+
type: string;
|
|
16
|
+
value: string;
|
|
17
|
+
};
|
|
18
|
+
}>>> & {
|
|
19
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
modelValue: JSFunction;
|
|
22
|
+
}, {}>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
}> : P[K];
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Prettify<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export interface Props {
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
size?: 'small' | 'large' | 'default' | '';
|
|
5
|
+
}
|
|
6
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
7
|
+
modelValue: string;
|
|
8
|
+
size: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
change: (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
modelValue: string;
|
|
14
|
+
size: string;
|
|
15
|
+
}>>> & {
|
|
16
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
size: "" | "default" | "small" | "large";
|
|
20
|
+
modelValue: string;
|
|
21
|
+
}, {}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Prettify<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Context } from '@vtj/renderer';
|
|
2
|
+
import { JSExpression, JSFunction } from '@vtj/core';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
export declare const setters: {
|
|
5
|
+
StringSetter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
6
|
+
BooleanSetter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
7
|
+
ExpressionSetter: DefineComponent<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: PropType<string | JSExpression>;
|
|
10
|
+
};
|
|
11
|
+
context: {
|
|
12
|
+
type: PropType<Context>;
|
|
13
|
+
};
|
|
14
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
+
change: (...args: any[]) => void;
|
|
16
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: PropType<string | JSExpression>;
|
|
19
|
+
};
|
|
20
|
+
context: {
|
|
21
|
+
type: PropType<Context>;
|
|
22
|
+
};
|
|
23
|
+
}>> & {
|
|
24
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}, {}, {}>;
|
|
26
|
+
SelectSetter: DefineComponent<{
|
|
27
|
+
options: {
|
|
28
|
+
type: PropType<{
|
|
29
|
+
label: string;
|
|
30
|
+
value: any;
|
|
31
|
+
}[]>;
|
|
32
|
+
default: () => never[];
|
|
33
|
+
};
|
|
34
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
35
|
+
options: {
|
|
36
|
+
type: PropType<{
|
|
37
|
+
label: string;
|
|
38
|
+
value: any;
|
|
39
|
+
}[]>;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
}>>, {
|
|
43
|
+
options: {
|
|
44
|
+
label: string;
|
|
45
|
+
value: any;
|
|
46
|
+
}[];
|
|
47
|
+
}, {}>;
|
|
48
|
+
NumberSetter: DefineComponent<{
|
|
49
|
+
modelValue: {
|
|
50
|
+
type: PropType<any>;
|
|
51
|
+
};
|
|
52
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
53
|
+
change: (...args: any[]) => void;
|
|
54
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
55
|
+
modelValue: {
|
|
56
|
+
type: PropType<any>;
|
|
57
|
+
};
|
|
58
|
+
}>> & {
|
|
59
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}, {}, {}>;
|
|
61
|
+
ColorSetter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
62
|
+
IconSetter: DefineComponent<{
|
|
63
|
+
size: {
|
|
64
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
modelValue: {
|
|
68
|
+
type: PropType<string>;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
72
|
+
change: (...args: any[]) => void;
|
|
73
|
+
"update:modelValue": (...args: any[]) => void;
|
|
74
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
75
|
+
size: {
|
|
76
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
modelValue: {
|
|
80
|
+
type: PropType<string>;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
}>> & {
|
|
84
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
size: "" | "default" | "small" | "large";
|
|
88
|
+
modelValue: string;
|
|
89
|
+
}, {}>;
|
|
90
|
+
JsonSetter: DefineComponent<{
|
|
91
|
+
type: {
|
|
92
|
+
type: PropType<"Array" | "Object" | "JSON">;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
modelValue: {
|
|
96
|
+
type: PropType<any>;
|
|
97
|
+
default: undefined;
|
|
98
|
+
};
|
|
99
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
100
|
+
change: (...args: any[]) => void;
|
|
101
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
102
|
+
type: {
|
|
103
|
+
type: PropType<"Array" | "Object" | "JSON">;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
modelValue: {
|
|
107
|
+
type: PropType<any>;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
}>> & {
|
|
111
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
type: "Array" | "Object" | "JSON";
|
|
114
|
+
modelValue: any;
|
|
115
|
+
}, {}>;
|
|
116
|
+
FunctionSetter: DefineComponent<{
|
|
117
|
+
modelValue: {
|
|
118
|
+
type: PropType<JSFunction>;
|
|
119
|
+
default: () => {
|
|
120
|
+
type: string;
|
|
121
|
+
value: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
125
|
+
change: (...args: any[]) => void;
|
|
126
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
127
|
+
modelValue: {
|
|
128
|
+
type: PropType<JSFunction>;
|
|
129
|
+
default: () => {
|
|
130
|
+
type: string;
|
|
131
|
+
value: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
}>> & {
|
|
135
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
modelValue: JSFunction;
|
|
138
|
+
}, {}>;
|
|
139
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export interface Props {
|
|
3
|
+
modelValue?: any;
|
|
4
|
+
type?: 'Array' | 'Object' | 'JSON';
|
|
5
|
+
}
|
|
6
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
7
|
+
modelValue: undefined;
|
|
8
|
+
type: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
change: (...args: any[]) => void;
|
|
11
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
|
+
modelValue: undefined;
|
|
13
|
+
type: string;
|
|
14
|
+
}>>> & {
|
|
15
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
type: "Array" | "Object" | "JSON";
|
|
18
|
+
modelValue: any;
|
|
19
|
+
}, {}>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
+
default: D[K];
|
|
33
|
+
}> : P[K];
|
|
34
|
+
};
|
|
35
|
+
type __VLS_Prettify<T> = {
|
|
36
|
+
[K in keyof T]: T[K];
|
|
37
|
+
} & {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export interface Props {
|
|
3
|
+
modelValue?: any;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
6
|
+
change: (...args: any[]) => void;
|
|
7
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
8
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export interface Props {
|
|
3
|
+
options?: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: any;
|
|
6
|
+
}[];
|
|
7
|
+
}
|
|
8
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
|
+
options: () => never[];
|
|
10
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
11
|
+
options: () => never[];
|
|
12
|
+
}>>>, {
|
|
13
|
+
options: {
|
|
14
|
+
label: string;
|
|
15
|
+
value: any;
|
|
16
|
+
}[];
|
|
17
|
+
}, {}>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
3
|
+
export default _default;
|