@cloudbase/cals 0.3.22-alpha.1 → 0.3.22
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 +67 -17
- package/lib/parser/cals/index.d.ts.map +1 -1
- package/lib/parser/cals/index.js +87 -123
- package/lib/parser/cals/utils/block/index.js +2 -2
- package/lib/parser/cals/utils/runtime.d.ts +1 -4
- package/lib/parser/cals/utils/runtime.d.ts.map +1 -1
- package/lib/parser/cals/utils/runtime.js +0 -7
- package/lib/parser/expression/index.d.ts +1 -8
- package/lib/parser/expression/index.d.ts.map +1 -1
- package/lib/parser/expression/index.js +1 -6
- package/lib/schema/platform_application.json +2177 -0
- package/lib/tests/common-application-specs.test.d.ts +2 -0
- package/lib/tests/common-application-specs.test.d.ts.map +1 -0
- package/lib/tests/common-application-specs.test.js +45 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/platform/component.d.ts +21 -6
- package/lib/types/platform/component.d.ts.map +1 -1
- package/lib/types/platform/datasource.d.ts +20 -1
- package/lib/types/platform/datasource.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,6 @@ function readComponents(properties = {}, excludeKeys = []) {
|
|
|
31
31
|
componentXProps.styleBind = {
|
|
32
32
|
type: srcProps.styleBind.type,
|
|
33
33
|
value: srcProps.styleBind.bindDataPath,
|
|
34
|
-
extra: srcProps.styleBind.extra,
|
|
35
34
|
};
|
|
36
35
|
}
|
|
37
36
|
if ((0, common_1.isValidClassNameListBind)(srcProps.classNameListBind)) {
|
|
@@ -39,7 +38,6 @@ function readComponents(properties = {}, excludeKeys = []) {
|
|
|
39
38
|
setValidValue(componentXProps, 'classListBind', {
|
|
40
39
|
type: classList.type,
|
|
41
40
|
value: classList.bindDataPath,
|
|
42
|
-
extra: classList.extra,
|
|
43
41
|
});
|
|
44
42
|
}
|
|
45
43
|
if (srcProps.classNameList) {
|
|
@@ -75,7 +73,6 @@ function readDirectives(cmp) {
|
|
|
75
73
|
directives.waIf = {
|
|
76
74
|
type: bind.type || expression_1.PropBindType.state,
|
|
77
75
|
value: bind.bindDataPath,
|
|
78
|
-
extra: bind.extra,
|
|
79
76
|
};
|
|
80
77
|
}
|
|
81
78
|
}
|
|
@@ -84,7 +81,6 @@ function readDirectives(cmp) {
|
|
|
84
81
|
directives.waFor = {
|
|
85
82
|
type: forBind.type || expression_1.PropBindType.state,
|
|
86
83
|
value: forBind.bindDataPath,
|
|
87
|
-
extra: bind.extra,
|
|
88
84
|
};
|
|
89
85
|
}
|
|
90
86
|
}
|
|
@@ -113,7 +109,6 @@ function readDynamicData(cmp) {
|
|
|
113
109
|
data[bind.propertyPath] = {
|
|
114
110
|
type: bind.type || expression_1.PropBindType.state,
|
|
115
111
|
value: bind.bindDataPath,
|
|
116
|
-
extra: bind.extra,
|
|
117
112
|
};
|
|
118
113
|
}
|
|
119
114
|
});
|
|
@@ -183,7 +178,6 @@ function writeDynamicData(from = {}, to, properties) {
|
|
|
183
178
|
propertyPath: prop,
|
|
184
179
|
bindDataPath: dv.value,
|
|
185
180
|
type: dv.type,
|
|
186
|
-
extra: dv.extra,
|
|
187
181
|
});
|
|
188
182
|
}
|
|
189
183
|
else {
|
|
@@ -200,7 +194,6 @@ function writeDynamicData(from = {}, to, properties) {
|
|
|
200
194
|
propertyPath: prop,
|
|
201
195
|
bindDataPath: fixedValue,
|
|
202
196
|
type: expression_1.PropBindType.expression,
|
|
203
|
-
extra: dv.extra,
|
|
204
197
|
});
|
|
205
198
|
}
|
|
206
199
|
act.dataTypes.push({
|
|
@@ -25,12 +25,7 @@ export declare enum PropBindType {
|
|
|
25
25
|
slot = "slot",
|
|
26
26
|
dataVar = "dataVar",
|
|
27
27
|
stateData = "state",
|
|
28
|
-
|
|
29
|
-
* @deprecated
|
|
30
|
-
*/
|
|
31
|
-
paramData = "params",
|
|
32
|
-
params = "params",
|
|
33
|
-
scope = "scope"
|
|
28
|
+
paramData = "params"
|
|
34
29
|
}
|
|
35
30
|
export declare enum ActionType {
|
|
36
31
|
Rematch = "rematch",
|
|
@@ -46,13 +41,11 @@ export declare enum ActionType {
|
|
|
46
41
|
export interface IDynamicValue {
|
|
47
42
|
type: PropBindType;
|
|
48
43
|
value: any;
|
|
49
|
-
extra?: any;
|
|
50
44
|
}
|
|
51
45
|
export interface IDataBind {
|
|
52
46
|
propertyPath: string;
|
|
53
47
|
bindDataPath: string;
|
|
54
48
|
type?: PropBindType;
|
|
55
|
-
extra?: any;
|
|
56
49
|
}
|
|
57
50
|
interface NodeEx extends Node {
|
|
58
51
|
$parent: NodeEx;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../parser/expression/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE1D,eAAO,MAAM,YAAY,EAAE,OAO1B,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;CAcpB,CAAA;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,KAAK,YAAY;IACjB,QAAQ,aAAa;IACrB,OAAO,aAAa;IACpB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,SAAS,UAAU;IACnB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../parser/expression/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE1D,eAAO,MAAM,YAAY,EAAE,OAO1B,CAAA;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;CAcpB,CAAA;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,KAAK,YAAY;IACjB,QAAQ,aAAa;IACrB,OAAO,aAAa;IACpB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,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-
/**
|
|
40
|
-
* @deprecated
|
|
41
|
-
*/
|
|
42
39
|
PropBindType["paramData"] = "params";
|
|
43
|
-
PropBindType["params"] = "params";
|
|
44
|
-
PropBindType["scope"] = "scope";
|
|
45
40
|
})(PropBindType = exports.PropBindType || (exports.PropBindType = {}));
|
|
46
41
|
var ActionType;
|
|
47
42
|
(function (ActionType) {
|
|
@@ -303,7 +298,7 @@ class DynamicValueParser {
|
|
|
303
298
|
options.value = this._replaceExpression(Object.assign(Object.assign({}, meta), { index: meta.index + 1 }));
|
|
304
299
|
break;
|
|
305
300
|
case 'params':
|
|
306
|
-
options.type = PropBindType.
|
|
301
|
+
options.type = PropBindType.paramData;
|
|
307
302
|
options.value = this._replaceExpression(Object.assign(Object.assign({}, meta), { index: meta.index + 1 }));
|
|
308
303
|
break;
|
|
309
304
|
default:
|