@cicctencent/low-code-editor 0.0.0-stage → 1.1.9-beta.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.
- package/README.md +2 -2
- package/api-extractor.json +36 -0
- package/dist/ActivityBar/index.vue.d.ts +29 -0
- package/dist/ComponentTree/components/List.vue.d.ts +29 -0
- package/dist/ComponentTree/index.vue.d.ts +32 -0
- package/dist/DataSource/index.vue.d.ts +34 -0
- package/dist/HeaderBar/components/BarTooltip.vue.d.ts +37 -0
- package/dist/HeaderBar/index.vue.d.ts +49 -0
- package/dist/NavTree/index.vue.d.ts +48 -0
- package/dist/SchemaConfig/index.vue.d.ts +36 -0
- package/dist/SidebarPane/index.vue.d.ts +38 -0
- package/dist/components/ComponentTreeFavorites/components/List.vue.d.ts +41 -0
- package/dist/components/ComponentTreeFavorites/components/Tips.vue.d.ts +16 -0
- package/dist/components/ComponentTreeFavorites/index.vue.d.ts +44 -0
- package/dist/components/ImageGuide/index.vue.d.ts +45 -0
- package/dist/components.d.ts +7 -0
- package/dist/composables/useComponentTree.d.ts +13 -0
- package/dist/config/ace.config.d.ts +3 -0
- package/dist/domain/EditorDomain.d.ts +89 -0
- package/dist/editor.d.ts +466 -0
- package/dist/editor.vue.d.ts +104 -0
- package/dist/formily/ActivityBar/index.d.ts +4 -0
- package/dist/formily/ComponentTree/index.d.ts +4 -0
- package/dist/formily/DataBinding/index.d.ts +4 -0
- package/dist/formily/DataBinding/index.vue.d.ts +26 -0
- package/dist/formily/DataSource/index.d.ts +4 -0
- package/dist/formily/MenuTable/PageList.vue.d.ts +28 -0
- package/dist/formily/MenuTable/index.d.ts +4 -0
- package/dist/formily/MenuTable/index.vue.d.ts +30 -0
- package/dist/formily/MenuTable/useMenuTable.d.ts +2 -0
- package/dist/formily/NavTree/index.d.ts +4 -0
- package/dist/formily/SidebarPane/index.d.ts +4 -0
- package/dist/formily/index.d.ts +2 -0
- package/dist/index.css +1167 -0
- package/dist/index.d.ts +250 -0
- package/dist/index.js +42688 -0
- package/dist/utils/base64.d.ts +4 -0
- package/dist/utils/index.d.ts +27 -0
- package/package.json +62 -4
- package/rollup.config.js +3 -0
- package/src/ActivityBar/index.vue +71 -0
- package/src/ComponentTree/components/List.vue +310 -0
- package/src/ComponentTree/index.vue +77 -0
- package/src/DataSource/index.vue +640 -0
- package/src/HeaderBar/components/BarDialog.vue +43 -0
- package/src/HeaderBar/components/BarTooltip.vue +33 -0
- package/src/HeaderBar/index.vue +513 -0
- package/src/NavTree/index.vue +345 -0
- package/src/SchemaConfig/index.vue +150 -0
- package/src/SidebarPane/index.vue +199 -0
- package/src/SynBarComponent/index.vue +31 -0
- package/src/assets/font/NotoSansSC.ttf +0 -0
- package/src/assets/img/header/edit.png +0 -0
- package/src/assets/img/header/link.png +0 -0
- package/src/assets/img/header/link.svg +9 -0
- package/src/assets/img/header/preview.png +0 -0
- package/src/assets/img/header/preview.svg +9 -0
- package/src/assets/img/header/redo.svg +1 -0
- package/src/assets/img/header/undo.svg +1 -0
- package/src/assets/img/tool/all-select.svg +9 -0
- package/src/assets/img/tool/all.svg +9 -0
- package/src/assets/img/tool/collect.svg +6 -0
- package/src/assets/img/tool/collection-select.svg +3 -0
- package/src/assets/img/tool/collection-tag.svg +5 -0
- package/src/assets/img/tool/info.svg +4 -0
- package/src/assets/img/tool/union.svg +4 -0
- package/src/components/ComponentTreeFavorites/components/List.vue +452 -0
- package/src/components/ComponentTreeFavorites/components/Tips.vue +108 -0
- package/src/components/ComponentTreeFavorites/index.vue +180 -0
- package/src/components/ImageGuide/index.vue +100 -0
- package/src/components.ts +23 -0
- package/src/composables/useComponentTree.ts +38 -0
- package/src/config/ace.config.ts +22 -0
- package/src/domain/EditorDomain.ts +265 -0
- package/src/editor.ts +645 -0
- package/src/editor.vue +380 -0
- package/src/formily/ActivityBar/index.ts +23 -0
- package/src/formily/ActivityBar/index.vue +121 -0
- package/src/formily/ComponentTree/index.ts +22 -0
- package/src/formily/DataBinding/index.ts +22 -0
- package/src/formily/DataBinding/index.vue +285 -0
- package/src/formily/DataSource/index.ts +22 -0
- package/src/formily/MenuTable/PageList.vue +132 -0
- package/src/formily/MenuTable/index.ts +19 -0
- package/src/formily/MenuTable/index.vue +218 -0
- package/src/formily/MenuTable/useMenuTable.ts +147 -0
- package/src/formily/NavTree/index.ts +20 -0
- package/src/formily/SidebarPane/index.ts +23 -0
- package/src/formily/SidebarPane/index.vue +174 -0
- package/src/formily/index.ts +12 -0
- package/src/index.ts +29 -0
- package/src/typings/vue-shim.d.ts +13 -0
- package/src/utils/base64.ts +5 -0
- package/src/utils/index.ts +57 -0
- package/test/case.ts +67 -0
- package/test/utils/index.test.ts +27 -0
- package/tsconfig.json +8 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { Entity } from '@jt/ark-util';
|
|
3
|
+
import { Communicator } from '@jt/postmessage-channel';
|
|
4
|
+
import { LowCodeKey, CheckResponseItem, EditorConfig } from '@cicctencent/low-code-core';
|
|
5
|
+
|
|
6
|
+
declare const _default$1: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
7
|
+
editorData: {
|
|
8
|
+
type: any;
|
|
9
|
+
required: false;
|
|
10
|
+
};
|
|
11
|
+
url: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
request: {
|
|
16
|
+
type: FunctionConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
};
|
|
19
|
+
postMessageOption: {
|
|
20
|
+
type: any;
|
|
21
|
+
required: false;
|
|
22
|
+
};
|
|
23
|
+
readOnly: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
required: false;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
appConfig: {
|
|
29
|
+
type: any;
|
|
30
|
+
required: false;
|
|
31
|
+
default: Record<string, any>;
|
|
32
|
+
};
|
|
33
|
+
categoryList: {
|
|
34
|
+
type: ArrayConstructor;
|
|
35
|
+
required: false;
|
|
36
|
+
};
|
|
37
|
+
navBarComponents: {
|
|
38
|
+
type: any;
|
|
39
|
+
required: false;
|
|
40
|
+
};
|
|
41
|
+
onMessage: {
|
|
42
|
+
type: FunctionConstructor;
|
|
43
|
+
required: false;
|
|
44
|
+
};
|
|
45
|
+
}>, (_ctx: any, _cache: any) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("save" | "upload" | "publish" | "preview" | "copyUrl" | "editTitle" | "autoSave" | "updateProject" | "updateScreenShot" | "openUpload" | "getData" | "openCloud" | "preloadCloud" | "editDialogConfirm" | "editDialogCancel")[], "save" | "upload" | "publish" | "preview" | "copyUrl" | "editTitle" | "autoSave" | "updateProject" | "updateScreenShot" | "openUpload" | "getData" | "openCloud" | "preloadCloud" | "editDialogConfirm" | "editDialogCancel", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
48
|
+
editorData: {
|
|
49
|
+
type: any;
|
|
50
|
+
required: false;
|
|
51
|
+
};
|
|
52
|
+
url: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
request: {
|
|
57
|
+
type: FunctionConstructor;
|
|
58
|
+
required: false;
|
|
59
|
+
};
|
|
60
|
+
postMessageOption: {
|
|
61
|
+
type: any;
|
|
62
|
+
required: false;
|
|
63
|
+
};
|
|
64
|
+
readOnly: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
required: false;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
appConfig: {
|
|
70
|
+
type: any;
|
|
71
|
+
required: false;
|
|
72
|
+
default: Record<string, any>;
|
|
73
|
+
};
|
|
74
|
+
categoryList: {
|
|
75
|
+
type: ArrayConstructor;
|
|
76
|
+
required: false;
|
|
77
|
+
};
|
|
78
|
+
navBarComponents: {
|
|
79
|
+
type: any;
|
|
80
|
+
required: false;
|
|
81
|
+
};
|
|
82
|
+
onMessage: {
|
|
83
|
+
type: FunctionConstructor;
|
|
84
|
+
required: false;
|
|
85
|
+
};
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
onSave?: (...args: any[]) => any;
|
|
88
|
+
onUpload?: (...args: any[]) => any;
|
|
89
|
+
onPublish?: (...args: any[]) => any;
|
|
90
|
+
onPreview?: (...args: any[]) => any;
|
|
91
|
+
onCopyUrl?: (...args: any[]) => any;
|
|
92
|
+
onEditTitle?: (...args: any[]) => any;
|
|
93
|
+
onAutoSave?: (...args: any[]) => any;
|
|
94
|
+
onUpdateProject?: (...args: any[]) => any;
|
|
95
|
+
onUpdateScreenShot?: (...args: any[]) => any;
|
|
96
|
+
onOpenUpload?: (...args: any[]) => any;
|
|
97
|
+
onGetData?: (...args: any[]) => any;
|
|
98
|
+
onOpenCloud?: (...args: any[]) => any;
|
|
99
|
+
onPreloadCloud?: (...args: any[]) => any;
|
|
100
|
+
onEditDialogConfirm?: (...args: any[]) => any;
|
|
101
|
+
onEditDialogCancel?: (...args: any[]) => any;
|
|
102
|
+
}>, {
|
|
103
|
+
editorData: any;
|
|
104
|
+
postMessageOption: any;
|
|
105
|
+
readOnly: boolean;
|
|
106
|
+
appConfig: any;
|
|
107
|
+
navBarComponents: any;
|
|
108
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @public
|
|
112
|
+
*/
|
|
113
|
+
interface EditorDomainState {
|
|
114
|
+
/**
|
|
115
|
+
* @public 项目数据
|
|
116
|
+
*/
|
|
117
|
+
project: any;
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
* 编辑器展示配置
|
|
121
|
+
*/
|
|
122
|
+
config: EditorConfig;
|
|
123
|
+
/**
|
|
124
|
+
* @public
|
|
125
|
+
* 用于和模拟器通讯的通讯器
|
|
126
|
+
*/
|
|
127
|
+
communicator: Communicator;
|
|
128
|
+
/**
|
|
129
|
+
* @public
|
|
130
|
+
* 用于数据请求
|
|
131
|
+
*/
|
|
132
|
+
request: Function;
|
|
133
|
+
}
|
|
134
|
+
declare class EditorDomain extends Entity<EditorDomainState> {
|
|
135
|
+
initFlag: boolean;
|
|
136
|
+
constructor(state: EditorDomainState);
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
* @param cmd 命令字
|
|
140
|
+
* @param payload 传输内容
|
|
141
|
+
* @returns
|
|
142
|
+
*/
|
|
143
|
+
commit(cmd: any, payload: any): Promise<Record<string, any>>;
|
|
144
|
+
needRefreshSchema(newObj: any, oldObj: any): boolean;
|
|
145
|
+
/**
|
|
146
|
+
* @public
|
|
147
|
+
* @param newConfig 新配置
|
|
148
|
+
* @param refresh 是否强制刷新
|
|
149
|
+
* @returns
|
|
150
|
+
*/
|
|
151
|
+
setConfig(newConfig: any, refresh?: boolean): void;
|
|
152
|
+
publish: {
|
|
153
|
+
init: () => Promise<Record<string, any>>;
|
|
154
|
+
click: (key: LowCodeKey, value: any) => Promise<Record<string, any>>;
|
|
155
|
+
drag: (key: LowCodeKey, { x, y, name }: any) => Promise<Record<string, any>>;
|
|
156
|
+
set: (key: LowCodeKey, value: any) => Promise<Record<string, any>>;
|
|
157
|
+
contextmenu: (key: LowCodeKey, value: any) => Promise<void>;
|
|
158
|
+
validate: (responseItem?: CheckResponseItem[]) => Promise<any>;
|
|
159
|
+
splice: (data: any) => void;
|
|
160
|
+
};
|
|
161
|
+
timer: number;
|
|
162
|
+
subscribe: {
|
|
163
|
+
load: ({ data }: {
|
|
164
|
+
data: any;
|
|
165
|
+
}) => void;
|
|
166
|
+
action: ({ data: { key, value } }: {
|
|
167
|
+
data: {
|
|
168
|
+
key: any;
|
|
169
|
+
value: any;
|
|
170
|
+
};
|
|
171
|
+
}) => any;
|
|
172
|
+
update: ({ data: { config, project, forceUpdate } }: {
|
|
173
|
+
data: {
|
|
174
|
+
config: any;
|
|
175
|
+
project: any;
|
|
176
|
+
forceUpdate: any;
|
|
177
|
+
};
|
|
178
|
+
}) => void;
|
|
179
|
+
updateScreenShot: ({ data }: {
|
|
180
|
+
data: any;
|
|
181
|
+
}) => void;
|
|
182
|
+
openUpload: ({ data: { key, name } }: {
|
|
183
|
+
data: {
|
|
184
|
+
key: any;
|
|
185
|
+
name: any;
|
|
186
|
+
};
|
|
187
|
+
}) => void;
|
|
188
|
+
fetch: ({ data: { url, queryParam } }: {
|
|
189
|
+
data: {
|
|
190
|
+
url: any;
|
|
191
|
+
queryParam: any;
|
|
192
|
+
};
|
|
193
|
+
}) => any;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
declare const formily: Record<string, any>;
|
|
198
|
+
|
|
199
|
+
declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
200
|
+
componentTreeData: {
|
|
201
|
+
type: ObjectConstructor;
|
|
202
|
+
required: false;
|
|
203
|
+
default: any;
|
|
204
|
+
};
|
|
205
|
+
readOnly: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
required: false;
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
210
|
+
favorites: {
|
|
211
|
+
type: ArrayConstructor;
|
|
212
|
+
required: false;
|
|
213
|
+
default: any;
|
|
214
|
+
};
|
|
215
|
+
}>, (_ctx: any, _cache: any) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
216
|
+
[key: string]: any;
|
|
217
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("addItem" | "dragEnd" | "collect")[], "addItem" | "dragEnd" | "collect", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
218
|
+
componentTreeData: {
|
|
219
|
+
type: ObjectConstructor;
|
|
220
|
+
required: false;
|
|
221
|
+
default: any;
|
|
222
|
+
};
|
|
223
|
+
readOnly: {
|
|
224
|
+
type: BooleanConstructor;
|
|
225
|
+
required: false;
|
|
226
|
+
default: boolean;
|
|
227
|
+
};
|
|
228
|
+
favorites: {
|
|
229
|
+
type: ArrayConstructor;
|
|
230
|
+
required: false;
|
|
231
|
+
default: any;
|
|
232
|
+
};
|
|
233
|
+
}>> & Readonly<{
|
|
234
|
+
onAddItem?: (...args: any[]) => any;
|
|
235
|
+
onDragEnd?: (...args: any[]) => any;
|
|
236
|
+
onCollect?: (...args: any[]) => any;
|
|
237
|
+
}>, {
|
|
238
|
+
componentTreeData: Record<string, any>;
|
|
239
|
+
readOnly: boolean;
|
|
240
|
+
favorites: unknown[];
|
|
241
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
242
|
+
|
|
243
|
+
declare global {
|
|
244
|
+
interface Window {
|
|
245
|
+
JT_VERSION: Record<string, string>;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
declare const EditorComponent: any;
|
|
249
|
+
|
|
250
|
+
export { _default as ComponentTreeFavorites, _default$1 as Editor, EditorDomain, EditorComponent as default, formily as formilyComponents };
|