@cloudbase/cals 0.5.19 → 1.0.1-2.beta.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/lib/parser/cals/index.d.ts +63 -3
- package/lib/parser/cals/index.d.ts.map +1 -1
- package/lib/parser/cals/index.js +240 -91
- package/lib/parser/cals/utils/block/index.d.ts.map +1 -1
- package/lib/parser/cals/utils/block/index.js +7 -3
- package/lib/parser/cals/utils/code/index.d.ts.map +1 -1
- package/lib/parser/cals/utils/code/index.js +18 -12
- package/lib/parser/cals/utils/runtime.d.ts.map +1 -1
- package/lib/parser/cals/utils/runtime.js +5 -2
- package/lib/parser/cals/utils/style.d.ts.map +1 -1
- package/lib/parser/cals/utils/style.js +7 -3
- package/lib/parser/cals/utils/template.js +2 -2
- package/lib/parser/cals/utils/version/common.d.ts.map +1 -1
- package/lib/parser/cals/utils/version/common.js +16 -33
- package/lib/parser/cals/utils/version/parses.d.ts.map +1 -1
- package/lib/parser/cals/utils/version/parses.js +18 -36
- package/lib/parser/cals/utils/version/utils.js +5 -2
- package/lib/parser/plugins/postcss-rpx2clac.js +2 -2
- package/lib/types/basic/common.d.ts +1 -1
- package/lib/types/basic/common.d.ts.map +1 -1
- package/lib/types/basic/component.d.ts +5 -0
- package/lib/types/basic/component.d.ts.map +1 -1
- package/lib/types/index.d.ts +2 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +14 -1
- package/lib/types/lcds.d.ts +400 -114
- package/lib/types/lcds.d.ts.map +1 -1
- package/lib/types/platform/app.d.ts +4 -0
- package/lib/types/platform/app.d.ts.map +1 -1
- package/lib/types/platform/common.d.ts +11 -1
- package/lib/types/platform/common.d.ts.map +1 -1
- package/lib/types/platform/component.d.ts +6 -0
- package/lib/types/platform/component.d.ts.map +1 -1
- 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 +67 -0
- package/lib/types/platform/query.d.ts.map +1 -0
- package/lib/types/platform/query.js +2 -0
- package/lib/utils/build.js +3 -3
- 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 +1308 -37
- package/lib/utils/dts/build.js +22 -6
- package/lib/utils/dts/index.d.ts +46 -5
- package/lib/utils/dts/index.d.ts.map +1 -1
- package/lib/utils/dts/index.js +478 -68
- package/lib/utils/version/featureChecker.js +2 -2
- package/lib/utils/version/migrations/version4.js +2 -2
- package/package.json +2 -1
|
@@ -11,7 +11,7 @@ function compareOfficialLibVersionWithVersion(dependencies, baseVersion, timesna
|
|
|
11
11
|
return (0, common_1.semverComp)(baseVersion, version) <= 0;
|
|
12
12
|
// 正式版本的版本号
|
|
13
13
|
}
|
|
14
|
-
else if (Number(version) >=
|
|
14
|
+
else if (Number(version) >= timesnap) {
|
|
15
15
|
// 测试版本的版本号
|
|
16
16
|
return true;
|
|
17
17
|
}
|
|
@@ -26,6 +26,6 @@ function isEnbaleObserverVersion(dependencies = []) {
|
|
|
26
26
|
}
|
|
27
27
|
exports.isEnbaleObserverVersion = isEnbaleObserverVersion;
|
|
28
28
|
function isEnablePageRoot(dependencies) {
|
|
29
|
-
return compareOfficialLibVersionWithVersion(dependencies, '
|
|
29
|
+
return compareOfficialLibVersionWithVersion(dependencies, '2.26.2', 1682499675611);
|
|
30
30
|
}
|
|
31
31
|
exports.isEnablePageRoot = isEnablePageRoot;
|
|
@@ -15,7 +15,7 @@ exports.version4 = version4;
|
|
|
15
15
|
const transformPxLowcodeCompAndSourceComp = (cals, isUpgrade, setSchemaVersionCallback) => {
|
|
16
16
|
var _a, _b, _c, _d;
|
|
17
17
|
{
|
|
18
|
-
|
|
18
|
+
const transformCals = (items, isUpgradeToPx) => {
|
|
19
19
|
return items.map((item) => {
|
|
20
20
|
var _a;
|
|
21
21
|
// 对于表单操作区的按钮组件的父容器添加.wd-form__action, 兼容组件规范化按钮升级样式
|
|
@@ -52,7 +52,7 @@ const transformPxLowcodeCompAndSourceComp = (cals, isUpgrade, setSchemaVersionCa
|
|
|
52
52
|
}
|
|
53
53
|
return item;
|
|
54
54
|
});
|
|
55
|
-
}
|
|
55
|
+
};
|
|
56
56
|
let pages = cals['items'];
|
|
57
57
|
let isDivision;
|
|
58
58
|
if (isUpgrade && (0, common_1.semverComp)((_a = cals['schemaVersion']) !== null && _a !== void 0 ? _a : '3.0.0', '4.0.0') < 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cals",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.12.beta.0",
|
|
4
4
|
"description": "Common application specifications",
|
|
5
5
|
"main": "lib/utils/index.js",
|
|
6
6
|
"source": "src/utils/index.ts",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"acorn": "^8.0.4",
|
|
33
|
+
"json-easy-filter": "^0.3.1",
|
|
33
34
|
"json-schema-to-typescript-for-browser": "^11.0.3",
|
|
34
35
|
"lodash": "^4.17.20",
|
|
35
36
|
"postcss": "^8.4.20",
|