@cloudbase/cals 1.0.3-alpha.8 → 1.0.3-alpha.9
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/parser/cals/index.d.ts +379 -366
- package/lib/parser/cals/index.d.ts.map +1 -1
- package/lib/parser/cals/index.js +75 -13
- package/lib/parser/cals/utils/block/index.d.ts +14 -14
- package/lib/parser/cals/utils/block/index.d.ts.map +0 -0
- 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.d.ts.map +0 -0
- package/lib/parser/cals/utils/code/index.js +12 -13
- package/lib/parser/cals/utils/common.d.ts +11 -11
- package/lib/parser/cals/utils/common.d.ts.map +0 -0
- package/lib/parser/cals/utils/common.js +0 -0
- 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/spinoff/index.d.ts.map +0 -0
- package/lib/parser/cals/utils/spinoff/index.js +0 -0
- 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.d.ts.map +0 -0
- package/lib/parser/cals/utils/template.js +6 -3
- package/lib/parser/cals/utils/version/common.d.ts +4 -4
- package/lib/parser/cals/utils/version/common.d.ts.map +0 -0
- package/lib/parser/cals/utils/version/common.js +34 -11
- package/lib/parser/cals/utils/version/config.d.ts +13 -13
- package/lib/parser/cals/utils/version/config.d.ts.map +0 -0
- package/lib/parser/cals/utils/version/config.js +0 -0
- package/lib/parser/cals/utils/version/index.d.ts +2 -2
- package/lib/parser/cals/utils/version/index.d.ts.map +0 -0
- package/lib/parser/cals/utils/version/index.js +0 -0
- package/lib/parser/cals/utils/version/parses.d.ts +15 -15
- package/lib/parser/cals/utils/version/parses.d.ts.map +0 -0
- package/lib/parser/cals/utils/version/parses.js +37 -14
- 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/constants.d.ts +2 -0
- package/lib/parser/constants.d.ts.map +1 -0
- package/lib/parser/constants.js +4 -0
- package/lib/parser/expression/index.d.ts +122 -122
- package/lib/parser/expression/index.d.ts.map +0 -0
- package/lib/parser/expression/index.js +0 -0
- package/lib/parser/index.d.ts +8 -8
- package/lib/parser/index.d.ts.map +0 -0
- package/lib/parser/index.js +0 -0
- 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/app.d.ts.map +0 -0
- package/lib/types/basic/app.js +0 -0
- package/lib/types/basic/common.d.ts +88 -88
- package/lib/types/basic/common.d.ts.map +1 -1
- package/lib/types/basic/common.js +0 -0
- package/lib/types/basic/component.d.ts +213 -208
- package/lib/types/basic/component.d.ts.map +1 -1
- package/lib/types/basic/component.js +0 -0
- package/lib/types/basic/datasource.d.ts +49 -49
- package/lib/types/basic/datasource.d.ts.map +0 -0
- package/lib/types/basic/datasource.js +0 -0
- package/lib/types/index.d.ts +10 -9
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +1 -14
- package/lib/types/lcds.d.ts +334 -447
- package/lib/types/lcds.d.ts.map +1 -1
- package/lib/types/lcds.js +0 -0
- package/lib/types/platform/app.d.ts +176 -176
- package/lib/types/platform/app.d.ts.map +0 -0
- package/lib/types/platform/app.js +0 -0
- package/lib/types/platform/common.d.ts +147 -137
- package/lib/types/platform/common.d.ts.map +1 -1
- package/lib/types/platform/common.js +0 -0
- package/lib/types/platform/component.d.ts +145 -140
- package/lib/types/platform/component.d.ts.map +1 -1
- package/lib/types/platform/component.js +0 -0
- package/lib/types/platform/datasource.d.ts +466 -466
- package/lib/types/platform/datasource.d.ts.map +0 -0
- package/lib/types/platform/datasource.js +0 -0
- package/lib/types/platform/eventFlow.d.ts +20 -0
- package/lib/types/platform/eventFlow.d.ts.map +1 -0
- package/lib/types/platform/eventFlow.js +2 -0
- package/lib/types/platform/query.d.ts +58 -0
- package/lib/types/platform/query.d.ts.map +1 -0
- package/lib/types/platform/query.js +2 -0
- package/lib/types/platform/widget/form.d.ts +89 -89
- package/lib/types/platform/widget/form.d.ts.map +0 -0
- package/lib/types/platform/widget/form.js +0 -0
- package/lib/types/platform/widget/meta.d.ts +59 -59
- package/lib/types/platform/widget/meta.d.ts.map +0 -0
- package/lib/types/platform/widget/meta.js +0 -0
- package/lib/utils/CSSProperty.d.ts +63 -63
- package/lib/utils/CSSProperty.d.ts.map +0 -0
- package/lib/utils/CSSProperty.js +0 -0
- package/lib/utils/build.d.ts +1 -1
- package/lib/utils/build.d.ts.map +0 -0
- package/lib/utils/build.js +6 -3
- package/lib/utils/constant.d.ts +40 -40
- package/lib/utils/constant.d.ts.map +0 -0
- package/lib/utils/constant.js +0 -0
- package/lib/utils/dts/auto-generated.d.ts +1 -1
- package/lib/utils/dts/auto-generated.d.ts.map +1 -1
- package/lib/utils/dts/auto-generated.js +35 -1227
- package/lib/utils/dts/build.d.ts +1 -1
- package/lib/utils/dts/build.js +4 -1
- package/lib/utils/dts/index.d.ts +93 -130
- package/lib/utils/dts/index.d.ts.map +1 -1
- package/lib/utils/dts/index.js +66 -359
- package/lib/utils/index.d.ts +7 -7
- package/lib/utils/index.d.ts.map +0 -0
- package/lib/utils/index.js +0 -0
- 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/lib/utils/version-migrations/common.d.ts +5 -0
- package/lib/utils/version-migrations/common.d.ts.map +1 -0
- package/lib/utils/version-migrations/common.js +29 -0
- package/lib/utils/version-migrations/version4.d.ts +3 -0
- package/lib/utils/version-migrations/version4.d.ts.map +1 -0
- package/lib/utils/version-migrations/version4.js +199 -0
- package/package.json +3 -13
- package/lib/cloudbase.cals.umd.min.js +0 -5
|
@@ -1,138 +1,148 @@
|
|
|
1
|
-
import * as Basic from '../basic/common';
|
|
2
|
-
import { IDataSourceVariable } from './datasource';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
*
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
1
|
+
import * as Basic from '../basic/common';
|
|
2
|
+
import { IDataSourceVariable } from './datasource';
|
|
3
|
+
import { IDataSourceQuery } from './query';
|
|
4
|
+
/** 变量 */
|
|
5
|
+
export interface IPlatformDataset extends Basic.IDataset {
|
|
6
|
+
/** 状态 */
|
|
7
|
+
state?: Record<string, Basic.IStateVariable | IDataSourceVariable>;
|
|
8
|
+
/** 页面/应用 参数 */
|
|
9
|
+
params?: Record<string, Basic.IParamsVariable>;
|
|
10
|
+
/**
|
|
11
|
+
* 可选, query集合
|
|
12
|
+
*/
|
|
13
|
+
query?: Record<string, IDataSourceQuery>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 资源类型
|
|
17
|
+
*/
|
|
18
|
+
export declare const EResourceType: {
|
|
19
|
+
readonly CODE: "CODE";
|
|
20
|
+
readonly LIBRARY: "LIBRARY";
|
|
21
|
+
};
|
|
22
|
+
export declare enum ECodeType {
|
|
23
|
+
/**
|
|
24
|
+
* 生命周期
|
|
25
|
+
*/
|
|
26
|
+
LIFECYCLE = "lifecycle",
|
|
27
|
+
/**
|
|
28
|
+
* 配置
|
|
29
|
+
*/
|
|
30
|
+
CONFIG = "config",
|
|
31
|
+
/**
|
|
32
|
+
* 状态
|
|
33
|
+
*/
|
|
34
|
+
STATE = "state",
|
|
35
|
+
/**
|
|
36
|
+
* 计算状态
|
|
37
|
+
*/
|
|
38
|
+
COMPUTEDN = "computed",
|
|
39
|
+
/**
|
|
40
|
+
* 处理方法,用于处理页面级别的逻辑
|
|
41
|
+
* 拥有页面实例上下文,如可取得 state 状态 page/hanlder
|
|
42
|
+
*/
|
|
43
|
+
HANDLER_FN = "handler-fn",
|
|
44
|
+
/**
|
|
45
|
+
* 一般的模块
|
|
46
|
+
* 可以是任意JS模块,但不具有页面实例上下文。一般用于写通用方法等 global/common
|
|
47
|
+
*/
|
|
48
|
+
NORMAL_MODULE = "normal-module",
|
|
49
|
+
/**
|
|
50
|
+
* less 文件
|
|
51
|
+
*/
|
|
52
|
+
STYLE = "style",
|
|
53
|
+
/**
|
|
54
|
+
* theme less
|
|
55
|
+
*/
|
|
56
|
+
THEME = "theme",
|
|
57
|
+
/**
|
|
58
|
+
* 小程序全局配置
|
|
59
|
+
*/
|
|
60
|
+
MPCONFIG = "mp_config",
|
|
61
|
+
/**
|
|
62
|
+
* 渲染器类型 JSX
|
|
63
|
+
*/
|
|
64
|
+
RENDERER = "renderer"
|
|
65
|
+
}
|
|
66
|
+
export declare enum ECodeName {
|
|
67
|
+
LIFECYCLE = "lifecycle",
|
|
68
|
+
CONFIG = "config",
|
|
69
|
+
STATE = "state",
|
|
70
|
+
COMPUTEDN = "computed",
|
|
71
|
+
STYLE = "style",
|
|
72
|
+
THEME = "theme",
|
|
73
|
+
/**
|
|
74
|
+
* 小程序全局配置
|
|
75
|
+
*/
|
|
76
|
+
MPCONFIG = "mp_config",
|
|
77
|
+
/**
|
|
78
|
+
* 目录
|
|
79
|
+
* jsx 类型,渲染器
|
|
80
|
+
*/
|
|
81
|
+
RENDERER = "renderer",
|
|
82
|
+
/**
|
|
83
|
+
* 目录
|
|
84
|
+
* 处理方法,用于处理页面级别的逻辑。拥有页面实例上下文,如可取得 state 状态 page/hanlder
|
|
85
|
+
*/
|
|
86
|
+
HANDLER_FN = "handler",
|
|
87
|
+
/**
|
|
88
|
+
* 目录
|
|
89
|
+
*/
|
|
90
|
+
NORMAL_MODULE = "common",
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated
|
|
93
|
+
* 用于占位,保证目录有文件。在处理的时候可对此类文件进行隐藏
|
|
94
|
+
*/
|
|
95
|
+
PLACEHOLDER = "____index____"
|
|
96
|
+
}
|
|
97
|
+
export interface ICodeResource extends Basic.IResource {
|
|
98
|
+
/**
|
|
99
|
+
* 资源类型
|
|
100
|
+
*/
|
|
101
|
+
type: 'CODE';
|
|
102
|
+
/**
|
|
103
|
+
* 必填, 代码片段
|
|
104
|
+
*/
|
|
105
|
+
code: string;
|
|
106
|
+
/**
|
|
107
|
+
* 选填, 代码片段的简介
|
|
108
|
+
*/
|
|
109
|
+
description?: string;
|
|
110
|
+
/**
|
|
111
|
+
* 选填, 代码片段的路径, 可用于组建代码树
|
|
112
|
+
*/
|
|
113
|
+
path?: string;
|
|
114
|
+
/**
|
|
115
|
+
* 选填, 代码类型
|
|
116
|
+
*/
|
|
117
|
+
codeType?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface ILibraryResource extends Basic.IResource {
|
|
120
|
+
type: 'LIBRARY';
|
|
121
|
+
/**
|
|
122
|
+
* 选填, 组件库的版本号
|
|
123
|
+
*/
|
|
124
|
+
version?: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* 组件绑定的监听器
|
|
128
|
+
*/
|
|
129
|
+
export interface IPlatformListener extends Basic.IListener {
|
|
130
|
+
/**
|
|
131
|
+
* 监听器唯一标识
|
|
132
|
+
*/
|
|
133
|
+
id: string;
|
|
134
|
+
/**
|
|
135
|
+
* 可选,用于标注额外的事件流
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
description?: string;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
142
|
+
extra?: {
|
|
143
|
+
handlerParamExtraData?: {
|
|
144
|
+
[key: string]: any;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
}
|
|
138
148
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/platform/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/platform/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,SAAS;AACT,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,QAAQ;IACtD,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,GAAG,mBAAmB,CAAC,CAAC;IACnE,eAAe;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAEX,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AAqB,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;SAAE,CAAC;KAChD,CAAC;CACH"}
|
|
File without changes
|
|
@@ -1,141 +1,146 @@
|
|
|
1
|
-
import * as Basic from '../basic/component';
|
|
2
|
-
import { ICodeResource, IPlatformDataset, IPlatformListener } from './common';
|
|
3
|
-
import { IDataSourceVariable } from './datasource';
|
|
4
|
-
declare type Values<T> = T[keyof T];
|
|
5
|
-
/**
|
|
6
|
-
* 组件类型
|
|
7
|
-
*/
|
|
8
|
-
export declare const EComponentType: {
|
|
9
|
-
readonly BASIC: "BASIC";
|
|
10
|
-
readonly COMPLEX: "COMPLEX";
|
|
11
|
-
readonly PAGE: "PAGE";
|
|
12
|
-
};
|
|
13
|
-
export interface IPlatformAttributes extends Basic.IAttributes {
|
|
14
|
-
/**
|
|
15
|
-
* 可选, 皮肤
|
|
16
|
-
*/
|
|
17
|
-
theme?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* 云开发低码平台组件
|
|
21
|
-
*/
|
|
22
|
-
export interface IPlatformComponent extends Omit<Basic.IComponent, 'value' | 'valueFilterNam' | 'validity' | 'attributes' | 'events'> {
|
|
23
|
-
/**
|
|
24
|
-
* 可选, 组件控制属性
|
|
25
|
-
*/
|
|
26
|
-
attributes?: IPlatformAttributes;
|
|
27
|
-
/**
|
|
28
|
-
* 选填, 组件类型
|
|
29
|
-
*/
|
|
30
|
-
type?: Values<typeof EComponentType>;
|
|
31
|
-
/**
|
|
32
|
-
* 可选, 组件绑定的监听器
|
|
33
|
-
*/
|
|
34
|
-
listeners?: IPlatformListener[];
|
|
35
|
-
/**
|
|
36
|
-
* 可选,平台实现有关字段
|
|
37
|
-
*/
|
|
38
|
-
extra?: IPlatformComponentExtra;
|
|
39
|
-
}
|
|
40
|
-
export interface IPlatformComponentExtra {
|
|
41
|
-
/**
|
|
42
|
-
* 可选,样式分组配置
|
|
43
|
-
* {selt: {}, margin: {}, text: {}, custom: []}
|
|
44
|
-
*/
|
|
45
|
-
commonStyle?: object;
|
|
46
|
-
/**
|
|
47
|
-
* 可选,组件顺序 formily x-index
|
|
48
|
-
* https://github.com/alibaba/formily/blob/master/packages/react-schema-renderer/README.md
|
|
49
|
-
*/
|
|
50
|
-
xIndex?: number;
|
|
51
|
-
staticResourceAttribute?: string[];
|
|
52
|
-
/**
|
|
53
|
-
* style bind path
|
|
54
|
-
*/
|
|
55
|
-
styleBindPath?: string;
|
|
56
|
-
/**
|
|
57
|
-
* 未知用处 children
|
|
58
|
-
*/
|
|
59
|
-
children?: IPlatformComponent[];
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
1
|
+
import * as Basic from '../basic/component';
|
|
2
|
+
import { ICodeResource, IPlatformDataset, IPlatformListener } from './common';
|
|
3
|
+
import { IDataSourceVariable } from './datasource';
|
|
4
|
+
declare type Values<T> = T[keyof T];
|
|
5
|
+
/**
|
|
6
|
+
* 组件类型
|
|
7
|
+
*/
|
|
8
|
+
export declare const EComponentType: {
|
|
9
|
+
readonly BASIC: "BASIC";
|
|
10
|
+
readonly COMPLEX: "COMPLEX";
|
|
11
|
+
readonly PAGE: "PAGE";
|
|
12
|
+
};
|
|
13
|
+
export interface IPlatformAttributes extends Basic.IAttributes {
|
|
14
|
+
/**
|
|
15
|
+
* 可选, 皮肤
|
|
16
|
+
*/
|
|
17
|
+
theme?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 云开发低码平台组件
|
|
21
|
+
*/
|
|
22
|
+
export interface IPlatformComponent extends Omit<Basic.IComponent, 'value' | 'valueFilterNam' | 'validity' | 'attributes' | 'events'> {
|
|
23
|
+
/**
|
|
24
|
+
* 可选, 组件控制属性
|
|
25
|
+
*/
|
|
26
|
+
attributes?: IPlatformAttributes;
|
|
27
|
+
/**
|
|
28
|
+
* 选填, 组件类型
|
|
29
|
+
*/
|
|
30
|
+
type?: Values<typeof EComponentType>;
|
|
31
|
+
/**
|
|
32
|
+
* 可选, 组件绑定的监听器
|
|
33
|
+
*/
|
|
34
|
+
listeners?: IPlatformListener[];
|
|
35
|
+
/**
|
|
36
|
+
* 可选,平台实现有关字段
|
|
37
|
+
*/
|
|
38
|
+
extra?: IPlatformComponentExtra;
|
|
39
|
+
}
|
|
40
|
+
export interface IPlatformComponentExtra {
|
|
41
|
+
/**
|
|
42
|
+
* 可选,样式分组配置
|
|
43
|
+
* {selt: {}, margin: {}, text: {}, custom: []}
|
|
44
|
+
*/
|
|
45
|
+
commonStyle?: object;
|
|
46
|
+
/**
|
|
47
|
+
* 可选,组件顺序 formily x-index
|
|
48
|
+
* https://github.com/alibaba/formily/blob/master/packages/react-schema-renderer/README.md
|
|
49
|
+
*/
|
|
50
|
+
xIndex?: number;
|
|
51
|
+
staticResourceAttribute?: string[];
|
|
52
|
+
/**
|
|
53
|
+
* style bind path
|
|
54
|
+
*/
|
|
55
|
+
styleBindPath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* 未知用处 children
|
|
58
|
+
*/
|
|
59
|
+
children?: IPlatformComponent[];
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated
|
|
62
|
+
* 是否再门户网站中的菜单中隐藏页面对应的菜单项
|
|
63
|
+
* 菜单由单独的菜单配置管理,此处不再使用
|
|
64
|
+
*/
|
|
65
|
+
hideAdminPortalMenu?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* 属性绑定的额外补充信息
|
|
68
|
+
*/
|
|
69
|
+
attributeExtraData?: {
|
|
70
|
+
[attribute: string]: any;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* 默认组件, 由平台提供的组件
|
|
75
|
+
*/
|
|
76
|
+
export interface IBasicComponent extends IPlatformComponent {
|
|
77
|
+
type?: 'BASIC';
|
|
78
|
+
items?: (IBasicComponent | IComplexComponent)[];
|
|
79
|
+
/**
|
|
80
|
+
* 可选, 组件所属的组件库
|
|
81
|
+
*/
|
|
82
|
+
module?: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* 自定义组件, 开发者组合已有的默认组件, 得到的新组件
|
|
86
|
+
*/
|
|
87
|
+
export interface IComplexComponent extends IPlatformComponent {
|
|
88
|
+
type?: 'COMPLEX';
|
|
89
|
+
items?: (IBasicComponent | IComplexComponent)[];
|
|
90
|
+
/**
|
|
91
|
+
* 可选, 组件所属的组件库
|
|
92
|
+
*/
|
|
93
|
+
module?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* 页面组件, 描述整个页面的组件
|
|
97
|
+
*/
|
|
98
|
+
export interface IPageComponent extends Omit<IPlatformComponent, 'events'> {
|
|
99
|
+
type: 'PAGE';
|
|
100
|
+
/** 页面 id,对应页面 path */
|
|
101
|
+
id: string;
|
|
102
|
+
items?: (IBasicComponent | IComplexComponent)[];
|
|
103
|
+
/**
|
|
104
|
+
* 可选, 变量集合
|
|
105
|
+
*/
|
|
106
|
+
dataset?: IPlatformDataset;
|
|
107
|
+
/**
|
|
108
|
+
* 事件流nanoFlow
|
|
109
|
+
*/
|
|
110
|
+
/**
|
|
111
|
+
* 可选, 数据源变量集合
|
|
112
|
+
*
|
|
113
|
+
* @deprecated
|
|
114
|
+
*/
|
|
115
|
+
dataVariables?: IDataSourceVariable[];
|
|
116
|
+
/**
|
|
117
|
+
* 可选, 页面的资源集合
|
|
118
|
+
*
|
|
119
|
+
* 页面级别只挂载了 code 资源
|
|
120
|
+
*/
|
|
121
|
+
resources?: ICodeResource[];
|
|
122
|
+
}
|
|
123
|
+
export interface IPageComponentLifeCycle extends Basic.IEvents {
|
|
124
|
+
/**
|
|
125
|
+
* 可选,onShow钩子函数名称
|
|
126
|
+
*/
|
|
127
|
+
lifecycleOnShowEventName?: string;
|
|
128
|
+
/**
|
|
129
|
+
* 可选,onLoad钩子函数名称
|
|
130
|
+
*/
|
|
131
|
+
lifecycleOnLoadEventName?: string;
|
|
132
|
+
/**
|
|
133
|
+
* 可选,onReady钩子函数名称
|
|
134
|
+
*/
|
|
135
|
+
lifecycleOnReadyEventName?: string;
|
|
136
|
+
/**
|
|
137
|
+
* 可选,onHide钩子函数名称
|
|
138
|
+
*/
|
|
139
|
+
lifecycleOnHideEventName?: string;
|
|
140
|
+
/**
|
|
141
|
+
* 可选,onUnload钩子函数名称
|
|
142
|
+
*/
|
|
143
|
+
lifecycleOnUnloadEventName?: string;
|
|
144
|
+
}
|
|
145
|
+
export {};
|
|
141
146
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/types/platform/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/types/platform/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,aAAK,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE5B;;GAEG;AACH,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAEX,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,WAAW;IAC5D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,GAAG,gBAAgB,GAAG,UAAU,GAAG,YAAY,GAAG,QAAQ,CAAC;IACjG;;OAEG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;IAErC;;OAEG;IACH,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,uBAAuB,CAAC;CACjC;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,WAAW,CAAC,EAAE,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