@cloudbase/cals 1.0.3-alpha.7 → 1.0.3-alpha.8
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/lib/cloudbase.cals.umd.min.js +5 -0
- package/lib/parser/cals/index.d.ts +366 -371
- package/lib/parser/cals/index.d.ts.map +1 -1
- package/lib/parser/cals/index.js +12 -12
- package/lib/parser/cals/utils/block/index.d.ts +14 -14
- package/lib/parser/cals/utils/block/index.js +3 -3
- package/lib/parser/cals/utils/code/index.d.ts +30 -30
- package/lib/parser/cals/utils/code/index.js +13 -12
- package/lib/parser/cals/utils/common.d.ts +11 -11
- package/lib/parser/cals/utils/runtime.d.ts +13 -13
- package/lib/parser/cals/utils/runtime.d.ts.map +1 -1
- package/lib/parser/cals/utils/runtime.js +2 -2
- package/lib/parser/cals/utils/spinoff/index.d.ts +9 -9
- package/lib/parser/cals/utils/style.d.ts +42 -42
- package/lib/parser/cals/utils/style.d.ts.map +1 -1
- package/lib/parser/cals/utils/style.js +3 -3
- package/lib/parser/cals/utils/template.d.ts +5 -5
- package/lib/parser/cals/utils/template.js +3 -6
- package/lib/parser/cals/utils/version/common.d.ts +4 -4
- package/lib/parser/cals/utils/version/common.js +11 -34
- package/lib/parser/cals/utils/version/config.d.ts +13 -13
- package/lib/parser/cals/utils/version/index.d.ts +2 -2
- package/lib/parser/cals/utils/version/parses.d.ts +15 -15
- package/lib/parser/cals/utils/version/parses.js +14 -37
- package/lib/parser/cals/utils/version/utils.d.ts +13 -13
- package/lib/parser/cals/utils/version/utils.d.ts.map +1 -1
- package/lib/parser/cals/utils/version/utils.js +2 -2
- package/lib/parser/expression/index.d.ts +122 -122
- package/lib/parser/index.d.ts +8 -8
- package/lib/parser/plugins/postcss-rpx2clac.d.ts +17 -17
- package/lib/parser/plugins/postcss-rpx2clac.js +2 -2
- package/lib/types/basic/app.d.ts +72 -72
- package/lib/types/basic/common.d.ts +88 -88
- package/lib/types/basic/component.d.ts +208 -208
- package/lib/types/basic/datasource.d.ts +49 -49
- package/lib/types/index.d.ts +9 -9
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +14 -1
- package/lib/types/lcds.d.ts +447 -197
- package/lib/types/lcds.d.ts.map +1 -1
- package/lib/types/platform/app.d.ts +176 -176
- package/lib/types/platform/common.d.ts +137 -137
- package/lib/types/platform/component.d.ts +140 -140
- package/lib/types/platform/datasource.d.ts +466 -466
- package/lib/types/platform/widget/form.d.ts +89 -89
- package/lib/types/platform/widget/meta.d.ts +59 -59
- package/lib/utils/CSSProperty.d.ts +63 -63
- package/lib/utils/build.d.ts +1 -1
- package/lib/utils/build.js +3 -6
- package/lib/utils/constant.d.ts +40 -40
- package/lib/utils/dts/auto-generated.d.ts +1 -1
- package/lib/utils/dts/build.d.ts +1 -1
- package/lib/utils/dts/index.d.ts +130 -130
- package/lib/utils/dts/index.d.ts.map +1 -1
- package/lib/utils/dts/index.js +116 -78
- package/lib/utils/index.d.ts +7 -7
- package/lib/utils/version/common.d.ts +2 -2
- package/lib/utils/version/featureChecker.d.ts +2 -2
- package/lib/utils/version/featureChecker.d.ts.map +1 -1
- package/lib/utils/version/migrations/version4.d.ts +2 -2
- package/lib/utils/version/migrations/version4.js +2 -2
- package/package.json +12 -3
- package/lib/utils/version-migrations/common.d.ts +0 -5
- package/lib/utils/version-migrations/common.d.ts.map +0 -1
- package/lib/utils/version-migrations/common.js +0 -29
- package/lib/utils/version-migrations/version4.d.ts +0 -3
- package/lib/utils/version-migrations/version4.d.ts.map +0 -1
- package/lib/utils/version-migrations/version4.js +0 -199
|
@@ -1,372 +1,367 @@
|
|
|
1
|
-
import { IAttributes, IPlatformApp, IComplexComponent, IBasicComponent, IPageComponent, IDataSourceVariable, IDataVarMethod, // 勿删,为了生成d.ts
|
|
2
|
-
IPlatformDataSource, IDependencies, LCDS } from '../../types';
|
|
3
|
-
import { IDynamicValue, PropBindType } from '../expression';
|
|
4
|
-
export { getUsedComps } from './utils/common';
|
|
5
|
-
export { generateDefaultCode } from './utils/template';
|
|
6
|
-
interface IDeserializeContext {
|
|
7
|
-
app?: IPlatformApp;
|
|
8
|
-
dependencies?: any[];
|
|
9
|
-
dependenciesMap?: any;
|
|
10
|
-
page?: IPageComponent;
|
|
11
|
-
}
|
|
12
|
-
interface ISerializeContext {
|
|
13
|
-
app?: any;
|
|
14
|
-
page?: {
|
|
15
|
-
id: string;
|
|
16
|
-
};
|
|
17
|
-
component?: {
|
|
18
|
-
id: string;
|
|
19
|
-
module?: string;
|
|
20
|
-
component?: string;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* 依赖描述
|
|
24
|
-
* map 由 数组处理得到
|
|
25
|
-
*/
|
|
26
|
-
dependencies?: any[];
|
|
27
|
-
dependenciesMap?: any;
|
|
28
|
-
streamlineDefaultValue?: boolean;
|
|
29
|
-
streamlineModuleName?: boolean;
|
|
30
|
-
}
|
|
31
|
-
export declare function serializeValue({ ctx, key, dynamicValue, scope, streamlineDefaultValue, }: {
|
|
32
|
-
ctx: ISerializeContext;
|
|
33
|
-
key: string;
|
|
34
|
-
dynamicValue: IDynamicValue;
|
|
35
|
-
scope?: 'page' | 'component';
|
|
36
|
-
streamlineDefaultValue?: boolean;
|
|
37
|
-
}): {
|
|
38
|
-
key: string;
|
|
39
|
-
value: any;
|
|
40
|
-
extra?: any;
|
|
41
|
-
};
|
|
42
|
-
export declare function deserializeValue(ctx: IDeserializeContext, key: string, value: any, extra?: any): {
|
|
43
|
-
key: string;
|
|
44
|
-
value: {
|
|
45
|
-
type: PropBindType;
|
|
46
|
-
value: any;
|
|
47
|
-
extra: any;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
[key: string]:
|
|
67
|
-
};
|
|
68
|
-
export declare function
|
|
69
|
-
[key: string]:
|
|
70
|
-
}
|
|
71
|
-
[key: string]:
|
|
72
|
-
};
|
|
73
|
-
export declare function
|
|
74
|
-
[key: string]: IDynamicValue;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
};
|
|
124
|
-
export declare function
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
[
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
[key: string]:
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
*
|
|
309
|
-
* [formily] to [CALS]
|
|
310
|
-
*/
|
|
311
|
-
export declare function
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
[
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
export declare function parseVersion(version?: string, dependencies?: any[]): {
|
|
368
|
-
defaultDynamicCssUnit: boolean;
|
|
369
|
-
enableObserverRef: boolean;
|
|
370
|
-
enablePageRoot: boolean;
|
|
371
|
-
};
|
|
1
|
+
import { IAttributes, IPlatformApp, IComplexComponent, IBasicComponent, IPageComponent, IDataSourceVariable, IDataVarMethod, // 勿删,为了生成d.ts
|
|
2
|
+
IPlatformDataSource, IDependencies, LCDS } from '../../types';
|
|
3
|
+
import { IDynamicValue, PropBindType } from '../expression';
|
|
4
|
+
export { getUsedComps } from './utils/common';
|
|
5
|
+
export { generateDefaultCode } from './utils/template';
|
|
6
|
+
interface IDeserializeContext {
|
|
7
|
+
app?: IPlatformApp;
|
|
8
|
+
dependencies?: any[];
|
|
9
|
+
dependenciesMap?: any;
|
|
10
|
+
page?: IPageComponent;
|
|
11
|
+
}
|
|
12
|
+
interface ISerializeContext {
|
|
13
|
+
app?: any;
|
|
14
|
+
page?: {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
component?: {
|
|
18
|
+
id: string;
|
|
19
|
+
module?: string;
|
|
20
|
+
component?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* 依赖描述
|
|
24
|
+
* map 由 数组处理得到
|
|
25
|
+
*/
|
|
26
|
+
dependencies?: any[];
|
|
27
|
+
dependenciesMap?: any;
|
|
28
|
+
streamlineDefaultValue?: boolean;
|
|
29
|
+
streamlineModuleName?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function serializeValue({ ctx, key, dynamicValue, scope, streamlineDefaultValue, }: {
|
|
32
|
+
ctx: ISerializeContext;
|
|
33
|
+
key: string;
|
|
34
|
+
dynamicValue: IDynamicValue;
|
|
35
|
+
scope?: 'page' | 'component';
|
|
36
|
+
streamlineDefaultValue?: boolean;
|
|
37
|
+
}): {
|
|
38
|
+
key: string;
|
|
39
|
+
value: any;
|
|
40
|
+
extra?: any;
|
|
41
|
+
};
|
|
42
|
+
export declare function deserializeValue(ctx: IDeserializeContext, key: string, value: any, extra?: any): {
|
|
43
|
+
key: string;
|
|
44
|
+
value: {
|
|
45
|
+
type: PropBindType;
|
|
46
|
+
value: any;
|
|
47
|
+
extra: any;
|
|
48
|
+
};
|
|
49
|
+
} | {
|
|
50
|
+
key: string;
|
|
51
|
+
value: {
|
|
52
|
+
type: undefined;
|
|
53
|
+
value: any;
|
|
54
|
+
extra: any;
|
|
55
|
+
} | undefined;
|
|
56
|
+
};
|
|
57
|
+
interface ISerializeDynamicMapProps {
|
|
58
|
+
ctx: ISerializeContext;
|
|
59
|
+
map: {
|
|
60
|
+
[key: string]: IDynamicValue;
|
|
61
|
+
};
|
|
62
|
+
scope?: 'page' | 'component';
|
|
63
|
+
streamlineDefaultValue?: boolean;
|
|
64
|
+
}
|
|
65
|
+
export declare function serializeDynamicMap(props: ISerializeDynamicMapProps): {
|
|
66
|
+
[key: string]: string;
|
|
67
|
+
};
|
|
68
|
+
export declare function deserializeDynamicMap(ctx: IDeserializeContext, map: {
|
|
69
|
+
[key: string]: string | any;
|
|
70
|
+
}, extraMap?: {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
}): any;
|
|
73
|
+
export declare function serializeAttributes(ctx: ISerializeContext, scope: 'page' | 'component', attributes?: {
|
|
74
|
+
[key: string]: IDynamicValue;
|
|
75
|
+
}): {
|
|
76
|
+
[key: string]: string;
|
|
77
|
+
};
|
|
78
|
+
export declare function deserializeAttributes(ctx: IDeserializeContext, attributes?: IAttributes, attributesExtraData?: {}): any;
|
|
79
|
+
export declare function deserializeDataVariables(ctx: IDeserializeContext, data: IDataSourceVariable): {
|
|
80
|
+
title: string | undefined;
|
|
81
|
+
name: string;
|
|
82
|
+
varType: "datasource";
|
|
83
|
+
dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit" | undefined;
|
|
84
|
+
dataSourceName: string;
|
|
85
|
+
initMethod?: IDataVarMethod | undefined;
|
|
86
|
+
updateMethod?: IDataVarMethod | undefined;
|
|
87
|
+
};
|
|
88
|
+
export declare function serializeComponent(ctx: ISerializeContext & ({
|
|
89
|
+
page: Required<ISerializeContext>['page'];
|
|
90
|
+
} | {
|
|
91
|
+
component: Required<ISerializeContext>['component'];
|
|
92
|
+
}), component: {
|
|
93
|
+
xComponent?: {
|
|
94
|
+
moduleName: string;
|
|
95
|
+
name: string;
|
|
96
|
+
};
|
|
97
|
+
xProps?: {
|
|
98
|
+
data: {
|
|
99
|
+
[prop: string]: IDynamicValue;
|
|
100
|
+
};
|
|
101
|
+
directives?: {
|
|
102
|
+
waIf?: IDynamicValue;
|
|
103
|
+
waDisplay?: IDynamicValue;
|
|
104
|
+
waFor?: IDynamicValue;
|
|
105
|
+
waForKey?: IDynamicValue;
|
|
106
|
+
};
|
|
107
|
+
listeners?: any[];
|
|
108
|
+
style: any;
|
|
109
|
+
styleBind: IDynamicValue;
|
|
110
|
+
classList: string[];
|
|
111
|
+
classListBind: IDynamicValue;
|
|
112
|
+
commonStyle: any;
|
|
113
|
+
styleBindPath?: string;
|
|
114
|
+
staticResourceAttribute: string[];
|
|
115
|
+
};
|
|
116
|
+
xIndex?: number;
|
|
117
|
+
properties?: {
|
|
118
|
+
[key: string]: any;
|
|
119
|
+
};
|
|
120
|
+
} & {
|
|
121
|
+
id: string;
|
|
122
|
+
label?: string;
|
|
123
|
+
}, scope?: 'page' | 'component'): IBasicComponent | IComplexComponent;
|
|
124
|
+
export declare function deserializeComponent(ctx: IDeserializeContext, components: (IBasicComponent | IComplexComponent)[]): {
|
|
125
|
+
[key: string]: object;
|
|
126
|
+
};
|
|
127
|
+
export declare function serializePage(ctx: Pick<ISerializeContext, 'app' | 'dependencies' | 'dependenciesMap'>, page: any): IPageComponent;
|
|
128
|
+
export declare function deserializePage(ctx: {
|
|
129
|
+
app: Required<IDeserializeContext>['app'];
|
|
130
|
+
dependencies: IDeserializeContext['dependencies'];
|
|
131
|
+
homePageId: string;
|
|
132
|
+
}, page: IPageComponent): {
|
|
133
|
+
id: string;
|
|
134
|
+
isHome: boolean;
|
|
135
|
+
dataset: any;
|
|
136
|
+
vars: {
|
|
137
|
+
data: {
|
|
138
|
+
title: string | undefined;
|
|
139
|
+
name: string;
|
|
140
|
+
varType: "datasource";
|
|
141
|
+
dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit" | undefined;
|
|
142
|
+
dataSourceName: string;
|
|
143
|
+
initMethod?: IDataVarMethod | undefined;
|
|
144
|
+
updateMethod?: IDataVarMethod | undefined;
|
|
145
|
+
}[];
|
|
146
|
+
};
|
|
147
|
+
data: any;
|
|
148
|
+
componentInstances: {
|
|
149
|
+
[key: string]: object;
|
|
150
|
+
};
|
|
151
|
+
commonStyle: object | undefined;
|
|
152
|
+
staticResourceAttribute: string[] | undefined;
|
|
153
|
+
hideAdminPortalMenu: boolean | undefined;
|
|
154
|
+
lowCodes: {
|
|
155
|
+
type: string | undefined;
|
|
156
|
+
code: string;
|
|
157
|
+
description?: string | undefined;
|
|
158
|
+
path?: string | undefined;
|
|
159
|
+
name: string;
|
|
160
|
+
}[] | undefined;
|
|
161
|
+
listeners: {
|
|
162
|
+
key: string;
|
|
163
|
+
trigger: string;
|
|
164
|
+
type: string | undefined;
|
|
165
|
+
handler: {
|
|
166
|
+
name: string | undefined;
|
|
167
|
+
moduleName: string | undefined;
|
|
168
|
+
};
|
|
169
|
+
data: any;
|
|
170
|
+
isCapturePhase: boolean;
|
|
171
|
+
noPropagation: boolean;
|
|
172
|
+
}[];
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* [WeApps协议] to [CALS协议]
|
|
176
|
+
*
|
|
177
|
+
* @param data
|
|
178
|
+
*/
|
|
179
|
+
export declare function serializePlatformApp(data: any, optsions: {
|
|
180
|
+
dependencies: object[];
|
|
181
|
+
}): IPlatformApp;
|
|
182
|
+
/**
|
|
183
|
+
* [CALS协议] to [WeApps协议]
|
|
184
|
+
*
|
|
185
|
+
* @param data
|
|
186
|
+
*/
|
|
187
|
+
export declare function deserializePlatformApp(data: IPlatformApp, optsions: {
|
|
188
|
+
dependencies: object[];
|
|
189
|
+
}): {
|
|
190
|
+
id: any;
|
|
191
|
+
version: string | undefined;
|
|
192
|
+
author: string | undefined;
|
|
193
|
+
name: string | undefined;
|
|
194
|
+
label: string | undefined;
|
|
195
|
+
description: string | undefined;
|
|
196
|
+
selectedPageId: string;
|
|
197
|
+
historyType: "HASH" | "BROWSER" | undefined;
|
|
198
|
+
pageInstanceList: {
|
|
199
|
+
id: string;
|
|
200
|
+
isHome: boolean;
|
|
201
|
+
dataset: any;
|
|
202
|
+
vars: {
|
|
203
|
+
data: {
|
|
204
|
+
title: string | undefined;
|
|
205
|
+
name: string;
|
|
206
|
+
varType: "datasource";
|
|
207
|
+
dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit" | undefined;
|
|
208
|
+
dataSourceName: string;
|
|
209
|
+
initMethod?: IDataVarMethod | undefined;
|
|
210
|
+
updateMethod?: IDataVarMethod | undefined;
|
|
211
|
+
}[];
|
|
212
|
+
};
|
|
213
|
+
data: any;
|
|
214
|
+
componentInstances: {
|
|
215
|
+
[key: string]: object;
|
|
216
|
+
};
|
|
217
|
+
commonStyle: object | undefined;
|
|
218
|
+
staticResourceAttribute: string[] | undefined;
|
|
219
|
+
hideAdminPortalMenu: boolean | undefined;
|
|
220
|
+
lowCodes: {
|
|
221
|
+
type: string | undefined;
|
|
222
|
+
code: string;
|
|
223
|
+
description?: string | undefined;
|
|
224
|
+
path?: string | undefined;
|
|
225
|
+
name: string;
|
|
226
|
+
}[] | undefined;
|
|
227
|
+
listeners: {
|
|
228
|
+
key: string;
|
|
229
|
+
trigger: string;
|
|
230
|
+
type: string | undefined;
|
|
231
|
+
handler: {
|
|
232
|
+
name: string | undefined;
|
|
233
|
+
moduleName: string | undefined;
|
|
234
|
+
};
|
|
235
|
+
data: any;
|
|
236
|
+
isCapturePhase: boolean;
|
|
237
|
+
noPropagation: boolean;
|
|
238
|
+
}[];
|
|
239
|
+
}[];
|
|
240
|
+
lowCodes: {
|
|
241
|
+
type: string | undefined;
|
|
242
|
+
code: string;
|
|
243
|
+
description?: string | undefined;
|
|
244
|
+
path?: string | undefined;
|
|
245
|
+
name: string;
|
|
246
|
+
}[];
|
|
247
|
+
datasources: IPlatformDataSource[] | undefined;
|
|
248
|
+
dataset: any;
|
|
249
|
+
vars: {
|
|
250
|
+
data: {
|
|
251
|
+
title: string | undefined;
|
|
252
|
+
name: string;
|
|
253
|
+
varType: "datasource";
|
|
254
|
+
dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit" | undefined;
|
|
255
|
+
dataSourceName: string;
|
|
256
|
+
initMethod?: IDataVarMethod | undefined;
|
|
257
|
+
updateMethod?: IDataVarMethod | undefined;
|
|
258
|
+
}[];
|
|
259
|
+
};
|
|
260
|
+
compHiddenConfig: {
|
|
261
|
+
[pageId: string]: string[];
|
|
262
|
+
};
|
|
263
|
+
npmDependencies: {
|
|
264
|
+
[key: string]: string;
|
|
265
|
+
};
|
|
266
|
+
plugins: {
|
|
267
|
+
title: string;
|
|
268
|
+
name: string;
|
|
269
|
+
module: string;
|
|
270
|
+
type?: "kbone" | "mp" | undefined;
|
|
271
|
+
version: string;
|
|
272
|
+
}[];
|
|
273
|
+
maxID: number | undefined;
|
|
274
|
+
rootPath: string | null | undefined;
|
|
275
|
+
themeVars: {
|
|
276
|
+
[key: string]: string;
|
|
277
|
+
} | undefined;
|
|
278
|
+
presetColors: string[];
|
|
279
|
+
appConfig: {} | undefined;
|
|
280
|
+
miniprogramPlugins: {
|
|
281
|
+
name: string;
|
|
282
|
+
version: string;
|
|
283
|
+
pluginAppId: string;
|
|
284
|
+
componentConfigs: (object & {
|
|
285
|
+
isMiniProgramPlugins?: boolean | undefined;
|
|
286
|
+
})[];
|
|
287
|
+
}[] | undefined;
|
|
288
|
+
externalResources: import("../../types").IExternalResource[] | undefined;
|
|
289
|
+
extra: {
|
|
290
|
+
name: string | undefined;
|
|
291
|
+
author: string | undefined;
|
|
292
|
+
description: string | undefined;
|
|
293
|
+
lastDependencies: {
|
|
294
|
+
[key: string]: string;
|
|
295
|
+
} | undefined;
|
|
296
|
+
domain?: string | undefined;
|
|
297
|
+
originHistoryId?: string | undefined;
|
|
298
|
+
};
|
|
299
|
+
dependencies: IDependencies | undefined;
|
|
300
|
+
schemaVersion: string | undefined;
|
|
301
|
+
};
|
|
302
|
+
/**
|
|
303
|
+
* page
|
|
304
|
+
* [formily] to [CALS]
|
|
305
|
+
*/
|
|
306
|
+
export declare function serializeRuntimePage(ctx: Pick<ISerializeContext, 'app' | 'dependencies' | 'streamlineDefaultValue'>, page: any): IPageComponent;
|
|
307
|
+
/**
|
|
308
|
+
* component
|
|
309
|
+
* [formily] to [CALS]
|
|
310
|
+
*/
|
|
311
|
+
export declare function serializeRuntimeComponent(ctx: ISerializeContext & {
|
|
312
|
+
page: Required<ISerializeContext>['page'];
|
|
313
|
+
}, component: any & {
|
|
314
|
+
id: string;
|
|
315
|
+
}): IBasicComponent | IComplexComponent;
|
|
316
|
+
/**
|
|
317
|
+
* component
|
|
318
|
+
* [CALS] to [formily]
|
|
319
|
+
* To be continue, currently support listener
|
|
320
|
+
*/
|
|
321
|
+
export declare function deserializeRuntimeComponent(ctx: any, component: any): any;
|
|
322
|
+
export declare function deserializeComponentLibraryMeta(meta: {
|
|
323
|
+
styles?: string[];
|
|
324
|
+
dependencies?: {
|
|
325
|
+
[lib: string]: string;
|
|
326
|
+
};
|
|
327
|
+
components: {
|
|
328
|
+
[key: string]: LCDS.IComponent;
|
|
329
|
+
};
|
|
330
|
+
actions: {
|
|
331
|
+
[key: string]: LCDS.IAction;
|
|
332
|
+
};
|
|
333
|
+
}): {
|
|
334
|
+
styles: string[];
|
|
335
|
+
dependencies: {
|
|
336
|
+
[lib: string]: string;
|
|
337
|
+
};
|
|
338
|
+
components: {
|
|
339
|
+
[key: string]: {
|
|
340
|
+
title: string;
|
|
341
|
+
desc?: string | undefined;
|
|
342
|
+
category: string;
|
|
343
|
+
platforms?: {
|
|
344
|
+
[key: string]: {
|
|
345
|
+
tagName: 'audio';
|
|
346
|
+
};
|
|
347
|
+
} | undefined;
|
|
348
|
+
thumbnail?: string | undefined;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
actions: {
|
|
352
|
+
[key: string]: LCDS.IAction;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
export declare function processRuntimeCodeResources(ctx: {
|
|
356
|
+
id: string;
|
|
357
|
+
version?: string;
|
|
358
|
+
}, resources: any, scope: string): any;
|
|
359
|
+
/**
|
|
360
|
+
* 解析 cals version 来生成 feature map
|
|
361
|
+
*/
|
|
362
|
+
export declare function parseVersion(version?: string, dependencies?: never[]): {
|
|
363
|
+
defaultDynamicCssUnit: boolean;
|
|
364
|
+
enableObserverRef: boolean;
|
|
365
|
+
enablePageRoot: boolean;
|
|
366
|
+
};
|
|
372
367
|
//# sourceMappingURL=index.d.ts.map
|