@cloudbase/framework-plugin-low-code 1.7.3 → 1.7.5
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/index.d.ts +0 -0
- package/lib/index.d.ts.map +0 -0
- package/lib/index.js +0 -0
- package/lib/utils/common.d.ts +0 -0
- package/lib/utils/common.d.ts.map +0 -0
- package/lib/utils/common.js +0 -0
- package/lib/utils/index.d.ts +0 -0
- package/lib/utils/index.d.ts.map +0 -0
- package/lib/utils/index.js +0 -0
- package/package.json +4 -4
- package/scripts/link.js +3 -7
- package/lib/builder/config/common.d.ts +0 -2
- package/lib/builder/config/common.d.ts.map +0 -1
- package/lib/builder/config/common.js +0 -13
- package/lib/builder/config/index.d.ts +0 -3
- package/lib/builder/config/index.d.ts.map +0 -1
- package/lib/builder/config/index.js +0 -29
- package/lib/builder/config/mp.d.ts +0 -2
- package/lib/builder/config/mp.d.ts.map +0 -1
- package/lib/builder/config/mp.js +0 -13
- package/lib/builder/core/copy.d.ts +0 -5
- package/lib/builder/core/copy.d.ts.map +0 -1
- package/lib/builder/core/copy.js +0 -62
- package/lib/builder/core/generate.d.ts +0 -9
- package/lib/builder/core/generate.d.ts.map +0 -1
- package/lib/builder/core/generate.js +0 -128
- package/lib/builder/core/index.d.ts +0 -32
- package/lib/builder/core/index.d.ts.map +0 -1
- package/lib/builder/core/index.js +0 -149
- package/lib/builder/core/material.d.ts +0 -4
- package/lib/builder/core/material.d.ts.map +0 -1
- package/lib/builder/core/material.js +0 -80
- package/lib/builder/core/plugin.d.ts +0 -4
- package/lib/builder/core/plugin.d.ts.map +0 -1
- package/lib/builder/core/plugin.js +0 -30
- package/lib/builder/core/prepare.d.ts +0 -8
- package/lib/builder/core/prepare.d.ts.map +0 -1
- package/lib/builder/core/prepare.js +0 -108
- package/lib/builder/core/webpack.d.ts +0 -15
- package/lib/builder/core/webpack.d.ts.map +0 -1
- package/lib/builder/core/webpack.js +0 -58
- package/lib/builder/mp/BuildContext.d.ts +0 -13
- package/lib/builder/mp/BuildContext.d.ts.map +0 -1
- package/lib/builder/mp/BuildContext.js +0 -2
- package/lib/builder/mp/index.d.ts +0 -33
- package/lib/builder/mp/index.d.ts.map +0 -1
- package/lib/builder/mp/index.js +0 -450
- package/lib/builder/mp/lowcode.d.ts +0 -8
- package/lib/builder/mp/lowcode.d.ts.map +0 -1
- package/lib/builder/mp/lowcode.js +0 -54
- package/lib/builder/mp/materials.d.ts +0 -15
- package/lib/builder/mp/materials.d.ts.map +0 -1
- package/lib/builder/mp/materials.js +0 -338
- package/lib/builder/mp/mixMode.d.ts +0 -10
- package/lib/builder/mp/mixMode.d.ts.map +0 -1
- package/lib/builder/mp/mixMode.js +0 -215
- package/lib/builder/mp/mp_config.d.ts +0 -18
- package/lib/builder/mp/mp_config.d.ts.map +0 -1
- package/lib/builder/mp/mp_config.js +0 -206
- package/lib/builder/mp/util.d.ts +0 -20
- package/lib/builder/mp/util.d.ts.map +0 -1
- package/lib/builder/mp/util.js +0 -243
- package/lib/builder/mp/wxml.d.ts +0 -16
- package/lib/builder/mp/wxml.d.ts.map +0 -1
- package/lib/builder/mp/wxml.js +0 -300
- package/lib/builder/service/builder/copy.d.ts +0 -14
- package/lib/builder/service/builder/copy.d.ts.map +0 -1
- package/lib/builder/service/builder/copy.js +0 -189
- package/lib/builder/service/builder/generate.d.ts +0 -52
- package/lib/builder/service/builder/generate.d.ts.map +0 -1
- package/lib/builder/service/builder/generate.js +0 -792
- package/lib/builder/service/builder/index.d.ts +0 -16
- package/lib/builder/service/builder/index.d.ts.map +0 -1
- package/lib/builder/service/builder/index.js +0 -69
- package/lib/builder/service/builder/plugin.d.ts +0 -8
- package/lib/builder/service/builder/plugin.d.ts.map +0 -1
- package/lib/builder/service/builder/plugin.js +0 -149
- package/lib/builder/service/builder/webpack.d.ts +0 -91
- package/lib/builder/service/builder/webpack.d.ts.map +0 -1
- package/lib/builder/service/builder/webpack.js +0 -589
- package/lib/builder/types/common.d.ts +0 -12
- package/lib/builder/types/common.d.ts.map +0 -1
- package/lib/builder/types/common.js +0 -7
- package/lib/builder/util/common.d.ts +0 -36
- package/lib/builder/util/common.d.ts.map +0 -1
- package/lib/builder/util/common.js +0 -257
- package/lib/builder/util/console.d.ts +0 -2
- package/lib/builder/util/console.d.ts.map +0 -1
- package/lib/builder/util/console.js +0 -13
- package/lib/builder/util/generateFiles.d.ts +0 -6
- package/lib/builder/util/generateFiles.d.ts.map +0 -1
- package/lib/builder/util/generateFiles.js +0 -94
- package/lib/builder/util/index.d.ts +0 -2
- package/lib/builder/util/index.d.ts.map +0 -1
- package/lib/builder/util/index.js +0 -13
- package/lib/builder/util/junk.d.ts +0 -3
- package/lib/builder/util/junk.d.ts.map +0 -1
- package/lib/builder/util/junk.js +0 -25
- package/lib/builder/util/mp.d.ts +0 -5
- package/lib/builder/util/mp.d.ts.map +0 -1
- package/lib/builder/util/mp.js +0 -99
- package/lib/builder/util/name-mangler.d.ts +0 -3
- package/lib/builder/util/name-mangler.d.ts.map +0 -1
- package/lib/builder/util/name-mangler.js +0 -7
- package/lib/builder/util/net.d.ts +0 -3
- package/lib/builder/util/net.d.ts.map +0 -1
- package/lib/builder/util/net.js +0 -54
- package/lib/builder/util/process.d.ts +0 -9
- package/lib/builder/util/process.d.ts.map +0 -1
- package/lib/builder/util/process.js +0 -28
- package/lib/builder/util/style.d.ts +0 -2
- package/lib/builder/util/style.d.ts.map +0 -1
- package/lib/builder/util/style.js +0 -13
- package/lib/builder/util/weapp.d.ts +0 -2
- package/lib/builder/util/weapp.d.ts.map +0 -1
- package/lib/builder/util/weapp.js +0 -13
- package/lib/config/private.d.ts +0 -3
- package/lib/config/private.d.ts.map +0 -1
- package/lib/config/private.js +0 -14
- package/lib/generate.d.ts +0 -2
- package/lib/generate.d.ts.map +0 -1
- package/lib/generate.js +0 -49
- package/lib/generator/config/common.d.ts +0 -6
- package/lib/generator/config/common.d.ts.map +0 -1
- package/lib/generator/config/common.js +0 -25
- package/lib/generator/config/index.d.ts +0 -18
- package/lib/generator/config/index.d.ts.map +0 -1
- package/lib/generator/config/index.js +0 -43
- package/lib/generator/config/mp.d.ts +0 -56
- package/lib/generator/config/mp.d.ts.map +0 -1
- package/lib/generator/config/mp.js +0 -104
- package/lib/generator/core/generate.d.ts +0 -59
- package/lib/generator/core/generate.d.ts.map +0 -1
- package/lib/generator/core/generate.js +0 -663
- package/lib/generator/core/index.d.ts +0 -25
- package/lib/generator/core/index.d.ts.map +0 -1
- package/lib/generator/core/index.js +0 -102
- package/lib/generator/core/material.d.ts +0 -14
- package/lib/generator/core/material.d.ts.map +0 -1
- package/lib/generator/core/material.js +0 -230
- package/lib/generator/template.d.ts +0 -3
- package/lib/generator/template.d.ts.map +0 -1
- package/lib/generator/template.js +0 -3
- package/lib/generator/types/common.d.ts +0 -69
- package/lib/generator/types/common.d.ts.map +0 -1
- package/lib/generator/types/common.js +0 -21
- package/lib/generator/util/common.d.ts +0 -36
- package/lib/generator/util/common.d.ts.map +0 -1
- package/lib/generator/util/common.js +0 -238
- package/lib/generator/util/console.d.ts +0 -3
- package/lib/generator/util/console.d.ts.map +0 -1
- package/lib/generator/util/console.js +0 -17
- package/lib/generator/util/index.d.ts +0 -2
- package/lib/generator/util/index.d.ts.map +0 -1
- package/lib/generator/util/index.js +0 -13
- package/lib/generator/util/name-mangler.d.ts +0 -17
- package/lib/generator/util/name-mangler.d.ts.map +0 -1
- package/lib/generator/util/name-mangler.js +0 -63
- package/lib/generator/util/postcss-rpx.d.ts +0 -11
- package/lib/generator/util/postcss-rpx.d.ts.map +0 -1
- package/lib/generator/util/postcss-rpx.js +0 -16
- package/lib/generator/util/style.d.ts +0 -6
- package/lib/generator/util/style.d.ts.map +0 -1
- package/lib/generator/util/style.js +0 -92
- package/lib/generator/util/weapp.d.ts +0 -5
- package/lib/generator/util/weapp.d.ts.map +0 -1
- package/lib/generator/util/weapp.js +0 -17
- package/lib/types.d.ts +0 -14
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -19
- package/lib/utils/dataSource.d.ts +0 -28
- package/lib/utils/dataSource.d.ts.map +0 -1
- package/lib/utils/dataSource.js +0 -171
- package/lib/utils/postProcess.d.ts +0 -3
- package/lib/utils/postProcess.d.ts.map +0 -1
- package/lib/utils/postProcess.js +0 -48
- package/lib/weapps-core/config/index.d.ts +0 -2
- package/lib/weapps-core/config/index.d.ts.map +0 -1
- package/lib/weapps-core/config/index.js +0 -13
- package/lib/weapps-core/config/style.d.ts +0 -7
- package/lib/weapps-core/config/style.d.ts.map +0 -1
- package/lib/weapps-core/config/style.js +0 -70
- package/lib/weapps-core/index.d.ts +0 -6
- package/lib/weapps-core/index.d.ts.map +0 -1
- package/lib/weapps-core/index.js +0 -31
- package/lib/weapps-core/types/action.d.ts +0 -25
- package/lib/weapps-core/types/action.d.ts.map +0 -1
- package/lib/weapps-core/types/action.js +0 -28
- package/lib/weapps-core/types/app.d.ts +0 -142
- package/lib/weapps-core/types/app.d.ts.map +0 -1
- package/lib/weapps-core/types/app.js +0 -21
- package/lib/weapps-core/types/appbuild.d.ts +0 -63
- package/lib/weapps-core/types/appbuild.d.ts.map +0 -1
- package/lib/weapps-core/types/appbuild.js +0 -78
- package/lib/weapps-core/types/code_types.d.ts +0 -26
- package/lib/weapps-core/types/code_types.d.ts.map +0 -1
- package/lib/weapps-core/types/code_types.js +0 -2
- package/lib/weapps-core/types/git.d.ts +0 -7
- package/lib/weapps-core/types/git.d.ts.map +0 -1
- package/lib/weapps-core/types/git.js +0 -2
- package/lib/weapps-core/types/index.d.ts +0 -11
- package/lib/weapps-core/types/index.d.ts.map +0 -1
- package/lib/weapps-core/types/index.js +0 -22
- package/lib/weapps-core/types/lowcode.d.ts +0 -26
- package/lib/weapps-core/types/lowcode.d.ts.map +0 -1
- package/lib/weapps-core/types/lowcode.js +0 -25
- package/lib/weapps-core/types/material.d.ts +0 -90
- package/lib/weapps-core/types/material.d.ts.map +0 -1
- package/lib/weapps-core/types/material.js +0 -9
- package/lib/weapps-core/types/plugins.d.ts +0 -17
- package/lib/weapps-core/types/plugins.d.ts.map +0 -1
- package/lib/weapps-core/types/plugins.js +0 -2
- package/lib/weapps-core/types/style.d.ts +0 -93
- package/lib/weapps-core/types/style.d.ts.map +0 -1
- package/lib/weapps-core/types/style.js +0 -2
- package/lib/weapps-core/types/web.d.ts +0 -120
- package/lib/weapps-core/types/web.d.ts.map +0 -1
- package/lib/weapps-core/types/web.js +0 -2
- package/lib/weapps-core/utils/appbuild.d.ts +0 -6
- package/lib/weapps-core/utils/appbuild.d.ts.map +0 -1
- package/lib/weapps-core/utils/appbuild.js +0 -40
- package/lib/weapps-core/utils/common.d.ts +0 -16
- package/lib/weapps-core/utils/common.d.ts.map +0 -1
- package/lib/weapps-core/utils/common.js +0 -90
- package/lib/weapps-core/utils/file.d.ts +0 -12
- package/lib/weapps-core/utils/file.d.ts.map +0 -1
- package/lib/weapps-core/utils/file.js +0 -142
- package/lib/weapps-core/utils/formily.d.ts +0 -5
- package/lib/weapps-core/utils/formily.d.ts.map +0 -1
- package/lib/weapps-core/utils/formily.js +0 -416
- package/lib/weapps-core/utils/index.d.ts +0 -7
- package/lib/weapps-core/utils/index.d.ts.map +0 -1
- package/lib/weapps-core/utils/index.js +0 -18
- package/lib/weapps-core/utils/lowcdoe.d.ts +0 -4
- package/lib/weapps-core/utils/lowcdoe.d.ts.map +0 -1
- package/lib/weapps-core/utils/lowcdoe.js +0 -69
- package/lib/weapps-core/utils/style.d.ts +0 -17
- package/lib/weapps-core/utils/style.d.ts.map +0 -1
- package/lib/weapps-core/utils/style.js +0 -330
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appbuild.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/appbuild.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,IAAI;IACX,GAAG,IAAA;IACH,GAAG,IAAA;IACH,GAAG,IAAA;IACH,MAAM,IAAA;IACN,IAAI,IAAA;CACL;AACD,oB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Types = exports.CodingPublishType = exports.H5BuildTypes = exports.ChannelTypes = exports.APPbuildStatus = exports.APPbuildModes = exports.APPbuildTypes = void 0;
|
|
4
|
-
var APPbuildTypes;
|
|
5
|
-
(function (APPbuildTypes) {
|
|
6
|
-
APPbuildTypes[APPbuildTypes["Android"] = 1] = "Android";
|
|
7
|
-
APPbuildTypes[APPbuildTypes["iOS"] = 2] = "iOS";
|
|
8
|
-
APPbuildTypes[APPbuildTypes["web"] = 3] = "web";
|
|
9
|
-
APPbuildTypes[APPbuildTypes["app"] = 4] = "app";
|
|
10
|
-
APPbuildTypes[APPbuildTypes["qywxH5"] = 5] = "qywxH5";
|
|
11
|
-
APPbuildTypes[APPbuildTypes["wxH5"] = 6] = "wxH5";
|
|
12
|
-
})(APPbuildTypes = exports.APPbuildTypes || (exports.APPbuildTypes = {}));
|
|
13
|
-
var APPbuildModes;
|
|
14
|
-
(function (APPbuildModes) {
|
|
15
|
-
APPbuildModes[APPbuildModes["Production"] = 1] = "Production";
|
|
16
|
-
APPbuildModes[APPbuildModes["Debugger"] = 2] = "Debugger";
|
|
17
|
-
})(APPbuildModes = exports.APPbuildModes || (exports.APPbuildModes = {}));
|
|
18
|
-
var APPbuildStatus;
|
|
19
|
-
(function (APPbuildStatus) {
|
|
20
|
-
APPbuildStatus[APPbuildStatus["INITIALIZING"] = 0] = "INITIALIZING";
|
|
21
|
-
APPbuildStatus[APPbuildStatus["RUNNING"] = 1] = "RUNNING";
|
|
22
|
-
APPbuildStatus[APPbuildStatus["SUCCEED"] = 2] = "SUCCEED";
|
|
23
|
-
APPbuildStatus[APPbuildStatus["FAILED"] = 3] = "FAILED";
|
|
24
|
-
})(APPbuildStatus = exports.APPbuildStatus || (exports.APPbuildStatus = {}));
|
|
25
|
-
exports.ChannelTypes = ['androidChannel', 'iOSChannel'];
|
|
26
|
-
exports.H5BuildTypes = [
|
|
27
|
-
{
|
|
28
|
-
value: 'web',
|
|
29
|
-
label: "普通Web应用 (process.env.buildType = 'web')",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
value: 'app',
|
|
33
|
-
label: "Hybrid App内嵌h5 (process.env.buildType = 'app')",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
value: 'qywxH5',
|
|
37
|
-
label: "企业微信(政务微信)h5 (process.env.buildType = 'qywxH5')",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
value: 'wxH5',
|
|
41
|
-
label: "微信网页h5 (process.env.buildType = 'wxH5')",
|
|
42
|
-
},
|
|
43
|
-
];
|
|
44
|
-
var CodingPublishType;
|
|
45
|
-
(function (CodingPublishType) {
|
|
46
|
-
CodingPublishType["Android"] = "android";
|
|
47
|
-
CodingPublishType["iOS"] = "ios";
|
|
48
|
-
CodingPublishType["H5"] = "h5";
|
|
49
|
-
})(CodingPublishType = exports.CodingPublishType || (exports.CodingPublishType = {}));
|
|
50
|
-
var IOSChannelTypes;
|
|
51
|
-
(function (IOSChannelTypes) {
|
|
52
|
-
IOSChannelTypes["development"] = "development";
|
|
53
|
-
IOSChannelTypes["adhoc"] = "ad-hoc";
|
|
54
|
-
IOSChannelTypes["appStore"] = "app-store";
|
|
55
|
-
IOSChannelTypes["enterprise"] = "enterprise";
|
|
56
|
-
})(IOSChannelTypes = exports.IOSChannelTypes || (exports.IOSChannelTypes = {}));
|
|
57
|
-
exports.IOSChannels = [
|
|
58
|
-
{
|
|
59
|
-
value: IOSChannelTypes.development,
|
|
60
|
-
title: 'development测试分发',
|
|
61
|
-
label: '用于给我们内部人员测试使用的,指定的授权用户设备才可以安装,可部署到服务器下载安装,需要开发证书打包',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
value: IOSChannelTypes.adhoc,
|
|
65
|
-
title: 'ad-hoc测试分发',
|
|
66
|
-
label: '用于给我们内部人员测试使用的,指定的授权用户设备才可以安装,可部署到服务器下载安装,需要发布证书打',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
value: IOSChannelTypes.appStore,
|
|
70
|
-
title: 'app-store商店分发 ',
|
|
71
|
-
label: '用于提交到商店审核,用户设备只能通过在App Store下载安装',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
value: IOSChannelTypes.enterprise,
|
|
75
|
-
title: 'enterprise企业分发',
|
|
76
|
-
label: '布署到服务器,所有用户设备都可通过扫描二维码或使用浏览器点击链接下载安装',
|
|
77
|
-
},
|
|
78
|
-
];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare type CodeType = 'rematch' | 'rematch-action' | 'computed' | 'general-func' | 'general' | 'lifecycle' | 'config' | 'state' | 'handler-fn' | 'normal-module' | 'app-style' | 'style' | 'theme' | 'lib' | 'index' | 'renderer' | 'json' | 'app-config' | 'page-config' | 'page';
|
|
2
|
-
export declare type RematchModule<State> = (args: {
|
|
3
|
-
sdk: any;
|
|
4
|
-
history: any;
|
|
5
|
-
}) => {
|
|
6
|
-
state: State;
|
|
7
|
-
reducers: {
|
|
8
|
-
[funcName: string]: (state: State, payload: any) => State;
|
|
9
|
-
};
|
|
10
|
-
effects: (dispatch: any) => {
|
|
11
|
-
[funcName: string]: RematchActionFunc;
|
|
12
|
-
};
|
|
13
|
-
computed?: {
|
|
14
|
-
[funcName: string]: (state: State) => any;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare type RematchAction = (dispatch: any) => RematchActionFunc;
|
|
18
|
-
export declare type GeneralFunction = (userParams: any) => any;
|
|
19
|
-
export declare type GeneralModule = any;
|
|
20
|
-
export declare type RematchActionFunc = (args: {
|
|
21
|
-
data: any;
|
|
22
|
-
customEventData: any;
|
|
23
|
-
history: any;
|
|
24
|
-
FormActions: any;
|
|
25
|
-
}) => Promise<any> | any;
|
|
26
|
-
//# sourceMappingURL=code_types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code_types.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/code_types.ts"],"names":[],"mappings":"AAEA,oBAAY,QAAQ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AClC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,UAAU,CAAA;CACjB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './material';
|
|
2
|
-
export * from './action';
|
|
3
|
-
export * from './app';
|
|
4
|
-
export * from './lowcode';
|
|
5
|
-
export * from './code_types';
|
|
6
|
-
export * from './style';
|
|
7
|
-
export * from './web';
|
|
8
|
-
export * from './plugins';
|
|
9
|
-
export * from './git';
|
|
10
|
-
export * from './appbuild';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./material"), exports);
|
|
14
|
-
__exportStar(require("./action"), exports);
|
|
15
|
-
__exportStar(require("./app"), exports);
|
|
16
|
-
__exportStar(require("./lowcode"), exports);
|
|
17
|
-
__exportStar(require("./code_types"), exports);
|
|
18
|
-
__exportStar(require("./style"), exports);
|
|
19
|
-
__exportStar(require("./web"), exports);
|
|
20
|
-
__exportStar(require("./plugins"), exports);
|
|
21
|
-
__exportStar(require("./git"), exports);
|
|
22
|
-
__exportStar(require("./appbuild"), exports);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { CodeType } from './code_types';
|
|
2
|
-
export interface IWeAppCode {
|
|
3
|
-
id?: string;
|
|
4
|
-
path: string;
|
|
5
|
-
system?: boolean;
|
|
6
|
-
type: CodeType;
|
|
7
|
-
name: string;
|
|
8
|
-
code: string;
|
|
9
|
-
desc?: string;
|
|
10
|
-
pageId?: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ILowCodesModifyStatus {
|
|
14
|
-
type: 'del' | 'add' | 'mod';
|
|
15
|
-
path: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IWeAppFile {
|
|
18
|
-
pageId: string;
|
|
19
|
-
name: string;
|
|
20
|
-
code: string;
|
|
21
|
-
type: CodeType;
|
|
22
|
-
path: string;
|
|
23
|
-
}
|
|
24
|
-
export declare function isStyleFile(mod: any): boolean;
|
|
25
|
-
export declare function getCodeModuleFilePath(pageId: string, mod: IWeAppCode, exts?: any): string;
|
|
26
|
-
//# sourceMappingURL=lowcode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lowcode.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/lowcode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,WAAW,UAAU;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAOD,wBAAgB,WAAW,CAAC,GAAG,KAAA,WAE9B;AACD,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,UAAU,EACf,IAAI,GAAE,GAAQ,UAcf"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCodeModuleFilePath = exports.isStyleFile = void 0;
|
|
4
|
-
function isStyleFile(mod) {
|
|
5
|
-
return mod.type === 'style' || mod.type === 'theme';
|
|
6
|
-
}
|
|
7
|
-
exports.isStyleFile = isStyleFile;
|
|
8
|
-
function getCodeModuleFilePath(pageId, mod, exts = {}) {
|
|
9
|
-
var _a, _b, _c, _d;
|
|
10
|
-
let file = ``;
|
|
11
|
-
if ((_a = mod === null || mod === void 0 ? void 0 : mod.path) === null || _a === void 0 ? void 0 : _a.startsWith('comp-')) {
|
|
12
|
-
file = `/${mod.path.replace(/comp-\w+/, '')}`;
|
|
13
|
-
}
|
|
14
|
-
else if ((_b = mod === null || mod === void 0 ? void 0 : mod.path) === null || _b === void 0 ? void 0 : _b.startsWith('$comp')) {
|
|
15
|
-
file = `/${mod.path.replace(/\$comp_\d+/, '')}`;
|
|
16
|
-
}
|
|
17
|
-
else if (pageId === 'global') {
|
|
18
|
-
file = `/${(_c = mod === null || mod === void 0 ? void 0 : mod.path) === null || _c === void 0 ? void 0 : _c.replace(/^global/, '')}`;
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
file = `/${(_d = mod === null || mod === void 0 ? void 0 : mod.path) === null || _d === void 0 ? void 0 : _d.replace(/.*?\//, `${pageId}/`)}`;
|
|
22
|
-
}
|
|
23
|
-
return file + (isStyleFile(mod) ? exts.style || '.less' : '.js');
|
|
24
|
-
}
|
|
25
|
-
exports.getCodeModuleFilePath = getCodeModuleFilePath;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { IWeAppComponentInstance } from './app';
|
|
2
|
-
import { IWeAppCode } from './lowcode';
|
|
3
|
-
export interface ICompLibCommonResource {
|
|
4
|
-
theme: {
|
|
5
|
-
variable: string;
|
|
6
|
-
class: string;
|
|
7
|
-
};
|
|
8
|
-
class: string;
|
|
9
|
-
const: IWeAppCode;
|
|
10
|
-
tools: IWeAppCode;
|
|
11
|
-
npm: {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface IMaterialItem {
|
|
16
|
-
compLibCommonResource: ICompLibCommonResource;
|
|
17
|
-
name: string;
|
|
18
|
-
version: string;
|
|
19
|
-
srcZipUrl: string;
|
|
20
|
-
mpPkgUrl: string;
|
|
21
|
-
actions: {
|
|
22
|
-
name: string;
|
|
23
|
-
}[];
|
|
24
|
-
components: ICompositedComponent[];
|
|
25
|
-
isComposite?: boolean;
|
|
26
|
-
isMiniProgramPlugins?: boolean;
|
|
27
|
-
styles?: string[];
|
|
28
|
-
dependencies?: {};
|
|
29
|
-
schemaVersion?: string;
|
|
30
|
-
meta?: Record<string, any>;
|
|
31
|
-
componentInstances?: IWeAppComponentInstance[];
|
|
32
|
-
}
|
|
33
|
-
export interface IComponentLibEntry {
|
|
34
|
-
entry: string;
|
|
35
|
-
components?: string;
|
|
36
|
-
actions?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface ICompositedComponent {
|
|
39
|
-
id: number;
|
|
40
|
-
name: string;
|
|
41
|
-
materialName: string;
|
|
42
|
-
componentInstances: {
|
|
43
|
-
[key: string]: IWeAppComponentInstance;
|
|
44
|
-
};
|
|
45
|
-
compConfig: Record<string, any>;
|
|
46
|
-
dataForm: any;
|
|
47
|
-
evnets?: any[];
|
|
48
|
-
emitEvents: any[];
|
|
49
|
-
listeners: any[];
|
|
50
|
-
lowCodes: IWeAppCode[];
|
|
51
|
-
meta: IComponentMeta;
|
|
52
|
-
npmDependencies: any;
|
|
53
|
-
}
|
|
54
|
-
export interface IDependencies {
|
|
55
|
-
[key: string]: string;
|
|
56
|
-
}
|
|
57
|
-
export interface IComponentMeta {
|
|
58
|
-
title: string;
|
|
59
|
-
desc?: string;
|
|
60
|
-
category?: string;
|
|
61
|
-
categoryOrder?: number;
|
|
62
|
-
componentOrder?: number;
|
|
63
|
-
inputProps: {
|
|
64
|
-
[valuePropName: string]: IPropSynConfig;
|
|
65
|
-
};
|
|
66
|
-
syncProps: {
|
|
67
|
-
[valuePropName: string]: IPropSynConfig | IPropSynConfig[];
|
|
68
|
-
};
|
|
69
|
-
platforms: {
|
|
70
|
-
mp: {
|
|
71
|
-
tagName?: string;
|
|
72
|
-
path?: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
mustEmptyStyle?: boolean;
|
|
76
|
-
}
|
|
77
|
-
interface IPropSynConfig {
|
|
78
|
-
changeEvent: string;
|
|
79
|
-
valueFromEvent: string;
|
|
80
|
-
isFormField?: boolean;
|
|
81
|
-
}
|
|
82
|
-
export interface IGenericComp {
|
|
83
|
-
propName: string;
|
|
84
|
-
title: string;
|
|
85
|
-
}
|
|
86
|
-
export declare const COMPONENT_API_PREFIX = "this.$WEAPPS_COMP";
|
|
87
|
-
export declare const PAGE_API_PREFIX = "this";
|
|
88
|
-
export declare function getCompositedComponentClass(comp: ICompositedComponent): string;
|
|
89
|
-
export {};
|
|
90
|
-
//# sourceMappingURL=material.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"material.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/material.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE;QACL,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IAEF,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,GAAG,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAChC;AAGD,MAAM,WAAW,aAAa;IAC5B,qBAAqB,EAAE,sBAAsB,CAAC;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5B,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IAItB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAG/B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,CAAC,EAAE,EAAE,CAAC;IAGlB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG3B,kBAAkB,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAChD;AA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E,OAAO,CAAC;CAC1B;AAED,UAAU,cAAc;IAEtB,WAAW,EAAE,MAAM,CAAC;IAEpB,cAAc,EAAE,MAAM,CAAC;IAEvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,oBAAoB,sBAAsB,CAAC;AACxD,eAAO,MAAM,eAAe,SAAS,CAAC;AAEtC,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,oBAAoB,UAErE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCompositedComponentClass = exports.PAGE_API_PREFIX = exports.COMPONENT_API_PREFIX = void 0;
|
|
4
|
-
exports.COMPONENT_API_PREFIX = 'this.$WEAPPS_COMP';
|
|
5
|
-
exports.PAGE_API_PREFIX = 'this';
|
|
6
|
-
function getCompositedComponentClass(comp) {
|
|
7
|
-
return `wa-comp-${comp.materialName}-${comp.name}`;
|
|
8
|
-
}
|
|
9
|
-
exports.getCompositedComponentClass = getCompositedComponentClass;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ICompositedComponent } from './material';
|
|
2
|
-
export interface IPlugin {
|
|
3
|
-
title: string;
|
|
4
|
-
name: string;
|
|
5
|
-
module: string;
|
|
6
|
-
type?: 'kbone' | 'mp';
|
|
7
|
-
version: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IMiniprogramPlugin {
|
|
10
|
-
name: string;
|
|
11
|
-
version: string;
|
|
12
|
-
pluginAppId: string;
|
|
13
|
-
componentConfigs: (ICompositedComponent & {
|
|
14
|
-
isMiniProgramPlugins?: boolean;
|
|
15
|
-
})[];
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,CAAC,oBAAoB,GAAG;QACxC,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC,EAAE,CAAC;CACN"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
export declare type PX = string;
|
|
2
|
-
export declare type Percent = number;
|
|
3
|
-
export declare type Color = string;
|
|
4
|
-
export declare type URL = string;
|
|
5
|
-
export declare type CSSProperties = any;
|
|
6
|
-
export interface ICommonStyle {
|
|
7
|
-
size?: ISizeStyle;
|
|
8
|
-
transform?: ITransformStyle;
|
|
9
|
-
text?: ITextStyle;
|
|
10
|
-
margin?: IDistanceStyleWithAuto;
|
|
11
|
-
padding?: IDistanceStyle;
|
|
12
|
-
border?: IBorderStyle;
|
|
13
|
-
background?: IBackgroundStyle;
|
|
14
|
-
position?: IPositionStyle;
|
|
15
|
-
zIndex?: number;
|
|
16
|
-
custom?: ICustomStyle[];
|
|
17
|
-
self?: object;
|
|
18
|
-
display?: string;
|
|
19
|
-
flexConfig?: {
|
|
20
|
-
flexDirection?: string;
|
|
21
|
-
justifyContent?: string;
|
|
22
|
-
alignItems?: string;
|
|
23
|
-
flexWrap?: string;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export interface IPositionStyle {
|
|
27
|
-
position?: 'fixed' | 'absolute' | 'relative' | 'static';
|
|
28
|
-
top?: PX;
|
|
29
|
-
right?: PX | 'auto';
|
|
30
|
-
bottom?: PX;
|
|
31
|
-
left?: PX | 'auto';
|
|
32
|
-
}
|
|
33
|
-
export interface ISizeStyle {
|
|
34
|
-
autoWidth: boolean;
|
|
35
|
-
width: PX;
|
|
36
|
-
autoHeight: boolean;
|
|
37
|
-
height: PX;
|
|
38
|
-
}
|
|
39
|
-
export interface ITransformStyle {
|
|
40
|
-
rotate: number;
|
|
41
|
-
opacity: number;
|
|
42
|
-
scale: number;
|
|
43
|
-
radius: PX;
|
|
44
|
-
}
|
|
45
|
-
export interface ITextStyle {
|
|
46
|
-
color: Color;
|
|
47
|
-
fontSize: PX;
|
|
48
|
-
lineHeight: PX;
|
|
49
|
-
textAlign: 'left' | 'center' | 'right' | 'justify';
|
|
50
|
-
weight: 'lighter' | 'bolder' | 'normal';
|
|
51
|
-
opacity: number;
|
|
52
|
-
}
|
|
53
|
-
export interface IBorderStyle {
|
|
54
|
-
type: 'none' | 'solid' | 'dashed';
|
|
55
|
-
color: Color;
|
|
56
|
-
width: PX;
|
|
57
|
-
radius?: PX;
|
|
58
|
-
radiusInfo?: {
|
|
59
|
-
topLeft: string;
|
|
60
|
-
topRight: string;
|
|
61
|
-
bottomRight: string;
|
|
62
|
-
bottomLeft: string;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
export interface IBackgroundStyle {
|
|
66
|
-
bgType: 'color' | 'image';
|
|
67
|
-
color: Color;
|
|
68
|
-
image: URL;
|
|
69
|
-
size: string;
|
|
70
|
-
repeat: string;
|
|
71
|
-
position?: string;
|
|
72
|
-
positionObj?: {
|
|
73
|
-
left: string;
|
|
74
|
-
top: string;
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
export interface IDistanceStyle {
|
|
78
|
-
top?: PX;
|
|
79
|
-
right?: PX;
|
|
80
|
-
bottom?: PX;
|
|
81
|
-
left?: PX;
|
|
82
|
-
}
|
|
83
|
-
export interface IDistanceStyleWithAuto {
|
|
84
|
-
top?: PX;
|
|
85
|
-
right?: PX | 'auto';
|
|
86
|
-
bottom?: PX;
|
|
87
|
-
left?: PX | 'auto';
|
|
88
|
-
}
|
|
89
|
-
export interface ICustomStyle {
|
|
90
|
-
key: string;
|
|
91
|
-
value: string;
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/style.ts"],"names":[],"mappings":"AAAA,oBAAY,EAAE,GAAG,MAAM,CAAC;AACxB,oBAAY,OAAO,GAAG,MAAM,CAAC;AAC7B,oBAAY,KAAK,GAAG,MAAM,CAAC;AAC3B,oBAAY,GAAG,GAAG,MAAM,CAAC;AAMzB,oBAAY,aAAa,GAAG,GAAG,CAAC;AAEhC,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE;QACX,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,cAAc;IAC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E,KAAK,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,EAAE,CAAC;IACT,KAAK,CAAC,EAAE,EAAE,CAAC;IACX,MAAM,CAAC,EAAE,EAAE,CAAC;IACZ,IAAI,CAAC,EAAE,EAAE,CAAC;CACX;AAED,MAAM,WAAW,sBAAsB;IACrC,GAAG,CAAC,EAAE,EAAE,CAAC;IACT,KAAK,CAAC,EAAE,EAAE,GAAG,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,EAAE,CAAC;IACZ,IAAI,CAAC,EAAE,EAAE,GAAG,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { ActionType } from './action';
|
|
2
|
-
import { ICommonStyle } from './style';
|
|
3
|
-
import { IWeAppCode } from './lowcode';
|
|
4
|
-
import { IPlugin } from './plugins';
|
|
5
|
-
import { PropBindType, IEventModifiers, IAppAndPageVar, IWeAppComponentInstance } from './app';
|
|
6
|
-
export interface IWebRuntimeAppData extends IAppAndPageVar {
|
|
7
|
-
envId?: string;
|
|
8
|
-
datasources: any[];
|
|
9
|
-
selectedPageId?: string;
|
|
10
|
-
pageInstanceList: IPageInstance[];
|
|
11
|
-
rootPath?: string;
|
|
12
|
-
maxID?: number;
|
|
13
|
-
codeModules: IWeAppCode[];
|
|
14
|
-
npmDependencies: {
|
|
15
|
-
[packageName: string]: string;
|
|
16
|
-
};
|
|
17
|
-
plugins?: IPlugin[];
|
|
18
|
-
themeVars?: {
|
|
19
|
-
[key: string]: string;
|
|
20
|
-
};
|
|
21
|
-
presetColors?: string[];
|
|
22
|
-
appConfig?: {
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
};
|
|
25
|
-
extra: {
|
|
26
|
-
domain: string;
|
|
27
|
-
clientId?: string;
|
|
28
|
-
loginConfigVersion?: string;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export interface IPageInstance extends ICommonInstanceProps, IAppAndPageVar {
|
|
32
|
-
id: string;
|
|
33
|
-
isHome?: boolean;
|
|
34
|
-
componentSchemaJson?: IComponentSchemaJson;
|
|
35
|
-
pluginInstances: IPluginInstance[];
|
|
36
|
-
children?: IPageInstance[];
|
|
37
|
-
codeModules: IWeAppCode[];
|
|
38
|
-
}
|
|
39
|
-
export interface IPageData {
|
|
40
|
-
title: string;
|
|
41
|
-
desc?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface IDataBind {
|
|
44
|
-
propertyPath: string;
|
|
45
|
-
bindDataPath: string;
|
|
46
|
-
type?: PropBindType;
|
|
47
|
-
}
|
|
48
|
-
export interface IDataType {
|
|
49
|
-
propertyPath: string;
|
|
50
|
-
type?: 'static' | 'slot' | 'bind';
|
|
51
|
-
}
|
|
52
|
-
export interface IDataAndBindInstanceProps {
|
|
53
|
-
data: {
|
|
54
|
-
[key: string]: any;
|
|
55
|
-
};
|
|
56
|
-
dataBinds?: IDataBind[];
|
|
57
|
-
dataTypes?: IDataType[];
|
|
58
|
-
}
|
|
59
|
-
export interface IItemInstance extends IDataAndBindInstanceProps {
|
|
60
|
-
key: Readonly<string>;
|
|
61
|
-
sourceKey: string;
|
|
62
|
-
instanceFunction?: string;
|
|
63
|
-
}
|
|
64
|
-
export interface IPluginInstance extends IItemInstance {
|
|
65
|
-
instanceFunction?: string;
|
|
66
|
-
}
|
|
67
|
-
export interface IListenerInstance extends IItemInstance, IEventModifiers {
|
|
68
|
-
trigger: string;
|
|
69
|
-
target?: string | null;
|
|
70
|
-
type: ActionType;
|
|
71
|
-
handler?: {
|
|
72
|
-
moduleName: string;
|
|
73
|
-
name: string;
|
|
74
|
-
};
|
|
75
|
-
jsCode?: string;
|
|
76
|
-
}
|
|
77
|
-
export interface IComponentSchemaJson {
|
|
78
|
-
key?: string;
|
|
79
|
-
type?: string;
|
|
80
|
-
['x-component']?: string;
|
|
81
|
-
['x-props']?: IComponentInstanceProps;
|
|
82
|
-
['x-index']?: number;
|
|
83
|
-
properties: {
|
|
84
|
-
[key: string]: IComponentSchemaJson;
|
|
85
|
-
};
|
|
86
|
-
path?: string;
|
|
87
|
-
genericComp?: IWeAppComponentInstance['genericComp'];
|
|
88
|
-
}
|
|
89
|
-
export interface ICommonInstanceProps extends IDataAndBindInstanceProps {
|
|
90
|
-
style: object;
|
|
91
|
-
commonStyle?: ICommonStyle;
|
|
92
|
-
styleBindPath?: string;
|
|
93
|
-
styleBind?: IDataBind;
|
|
94
|
-
classNameListBind?: IDataBind;
|
|
95
|
-
classNameList?: string[];
|
|
96
|
-
listenerInstances: IListenerInstance[];
|
|
97
|
-
customDataForm?: Record<string, any>;
|
|
98
|
-
staticResourceAttribute?: string[];
|
|
99
|
-
}
|
|
100
|
-
export interface IComponentInstanceProps extends ICommonInstanceProps {
|
|
101
|
-
sourceKey: string;
|
|
102
|
-
isContainer: boolean;
|
|
103
|
-
}
|
|
104
|
-
export interface IPageWidgets {
|
|
105
|
-
style: Record<string, any>;
|
|
106
|
-
classList: string[];
|
|
107
|
-
value?: any;
|
|
108
|
-
[key: string]: any;
|
|
109
|
-
}
|
|
110
|
-
export interface II18nConfig {
|
|
111
|
-
enabled: boolean;
|
|
112
|
-
i18nData: any;
|
|
113
|
-
baseUrl?: string;
|
|
114
|
-
docUrl?: string;
|
|
115
|
-
}
|
|
116
|
-
export interface IExtraData {
|
|
117
|
-
isComposite: boolean;
|
|
118
|
-
compProps: any;
|
|
119
|
-
}
|
|
120
|
-
//# sourceMappingURL=web.d.ts.map
|
|
@@ -1 +0,0 @@
|
|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AC;IACjB,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC;CAChB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CodingPublishType, IOutputs } from '../types/appbuild';
|
|
2
|
-
export declare const INIT_VERSION = "0.0.0";
|
|
3
|
-
export declare const checkVersion: (value: string) => boolean;
|
|
4
|
-
export declare const biggerThanVersion: (value?: string, lastVersion?: string) => boolean;
|
|
5
|
-
export declare const getPublishAppId: (codingPublishType: CodingPublishType, outputs: IOutputs) => string | undefined;
|
|
6
|
-
//# sourceMappingURL=appbuild.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appbuild.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/utils/appbuild.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGhE,eAAO,MAAM,YAAY,UAAU,CAAC;AAGpC,eAAO,MAAM,YAAY,UAAW,MAAM,YAEzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,mDAqB7B,CAAC;AAEF,eAAO,MAAM,eAAe,sBACP,iBAAiB,WAC3B,QAAQ,uBAOlB,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPublishAppId = exports.biggerThanVersion = exports.checkVersion = exports.INIT_VERSION = void 0;
|
|
4
|
-
const appbuild_1 = require("../types/appbuild");
|
|
5
|
-
exports.INIT_VERSION = '0.0.0';
|
|
6
|
-
const checkVersion = (value) => {
|
|
7
|
-
return /^\d+\.\d+(\.\d+){0,2}$/.test(value);
|
|
8
|
-
};
|
|
9
|
-
exports.checkVersion = checkVersion;
|
|
10
|
-
const biggerThanVersion = (value = '', lastVersion = '') => {
|
|
11
|
-
const nowVersions = value
|
|
12
|
-
.split('.')
|
|
13
|
-
.map((item) => (Number.isNaN(parseInt(item)) ? 0 : parseInt(item)));
|
|
14
|
-
const lastVersions = lastVersion
|
|
15
|
-
.split('.')
|
|
16
|
-
.map((item) => (Number.isNaN(parseInt(item)) ? 0 : parseInt(item)));
|
|
17
|
-
const maxLen = nowVersions.length > lastVersion.length
|
|
18
|
-
? nowVersions.length
|
|
19
|
-
: lastVersion.length;
|
|
20
|
-
for (let i = 0; i < maxLen; i++) {
|
|
21
|
-
const now = nowVersions[i] || 0;
|
|
22
|
-
const last = lastVersions[i] || 0;
|
|
23
|
-
if (now > last) {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
else if (now < last) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return false;
|
|
31
|
-
};
|
|
32
|
-
exports.biggerThanVersion = biggerThanVersion;
|
|
33
|
-
const getPublishAppId = (codingPublishType, outputs) => {
|
|
34
|
-
return codingPublishType === appbuild_1.CodingPublishType.Android
|
|
35
|
-
? outputs.appid
|
|
36
|
-
: codingPublishType === appbuild_1.CodingPublishType.iOS
|
|
37
|
-
? outputs.iOSappId
|
|
38
|
-
: 'main';
|
|
39
|
-
};
|
|
40
|
-
exports.getPublishAppId = getPublishAppId;
|