@cloudbase/framework-plugin-low-code 1.0.2-beta.1 → 1.0.2
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/package.json +2 -1
- 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 -58
- 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 -789
- 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/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 -669
- 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/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,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KEBAB_REGEX = exports.DISTANCE_KEY_LIST = exports.PERCENTAGE_KEY_LIST = exports.WRAPPER_REMOVE_STYLE_KEY_LIST = exports.SELF_REMOVE_WITH_PERCENTAGE_KEY_LIST = exports.SELF_REMOVE_STYLE_KEY_LIST = void 0;
|
|
4
|
-
exports.SELF_REMOVE_STYLE_KEY_LIST = [
|
|
5
|
-
'margin',
|
|
6
|
-
'marginTop',
|
|
7
|
-
'marginRight',
|
|
8
|
-
'marginBottom',
|
|
9
|
-
'marginLeft',
|
|
10
|
-
'position',
|
|
11
|
-
'top',
|
|
12
|
-
'right',
|
|
13
|
-
'bottom',
|
|
14
|
-
'left',
|
|
15
|
-
'float',
|
|
16
|
-
'transform',
|
|
17
|
-
'animation',
|
|
18
|
-
];
|
|
19
|
-
exports.SELF_REMOVE_WITH_PERCENTAGE_KEY_LIST = ['width', 'height'];
|
|
20
|
-
exports.WRAPPER_REMOVE_STYLE_KEY_LIST = [
|
|
21
|
-
'justifyContent',
|
|
22
|
-
'alignItems',
|
|
23
|
-
'flexDirection',
|
|
24
|
-
'flexWrap',
|
|
25
|
-
'flexFlow',
|
|
26
|
-
'background',
|
|
27
|
-
'backgroundColor',
|
|
28
|
-
'backgroundImage',
|
|
29
|
-
'padding',
|
|
30
|
-
'paddingTop',
|
|
31
|
-
'paddingRight',
|
|
32
|
-
'paddingBottom',
|
|
33
|
-
'paddingLeft',
|
|
34
|
-
'border',
|
|
35
|
-
'borderStyle',
|
|
36
|
-
'borderWidth',
|
|
37
|
-
'borderColor',
|
|
38
|
-
'borderImage',
|
|
39
|
-
'borderRadius',
|
|
40
|
-
'borderTop',
|
|
41
|
-
'borderRight',
|
|
42
|
-
'borderBottom',
|
|
43
|
-
'borderLeft',
|
|
44
|
-
'outline',
|
|
45
|
-
'outlineColor',
|
|
46
|
-
'outlineOffset',
|
|
47
|
-
'outlineStyle',
|
|
48
|
-
'outlineWidth',
|
|
49
|
-
'boxShadow',
|
|
50
|
-
'columnCount',
|
|
51
|
-
'columnGap',
|
|
52
|
-
'columnRuleStyle',
|
|
53
|
-
'columnRuleWidth',
|
|
54
|
-
'columnRuleColor',
|
|
55
|
-
'columnRule',
|
|
56
|
-
'columnSpan',
|
|
57
|
-
'columnWidth',
|
|
58
|
-
];
|
|
59
|
-
exports.PERCENTAGE_KEY_LIST = [
|
|
60
|
-
'opacity',
|
|
61
|
-
'order',
|
|
62
|
-
'flex',
|
|
63
|
-
'flexGrow',
|
|
64
|
-
'flexShrink',
|
|
65
|
-
'zIndex',
|
|
66
|
-
'fontWeight',
|
|
67
|
-
'borderImage',
|
|
68
|
-
];
|
|
69
|
-
exports.DISTANCE_KEY_LIST = ['top', 'right', 'bottom', 'left'];
|
|
70
|
-
exports.KEBAB_REGEX = /[A-Z]/g;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/weapps-core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AAEvB,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAEtC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
package/lib/weapps-core/index.js
DELETED
|
@@ -1,31 +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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
-
};
|
|
17
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
-
if (mod && mod.__esModule) return mod;
|
|
19
|
-
var result = {};
|
|
20
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
-
__setModuleDefault(result, mod);
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.style = exports.formily = void 0;
|
|
26
|
-
__exportStar(require("./types"), exports);
|
|
27
|
-
__exportStar(require("./utils"), exports);
|
|
28
|
-
const formily = __importStar(require("./utils/formily"));
|
|
29
|
-
exports.formily = formily;
|
|
30
|
-
const style = __importStar(require("./utils/style"));
|
|
31
|
-
exports.style = style;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare enum BaseActionTrigger {
|
|
2
|
-
INIT = "__weapps_action_trigger_init",
|
|
3
|
-
CLICK = "__weapps_action_trigger_click",
|
|
4
|
-
MOUSE_ENTER = "__weapps_action_trigger_mouseEnter",
|
|
5
|
-
MOUSE_LEAVE = "__weapps_action_trigger_mouseLeave",
|
|
6
|
-
DOUBLE_CLICK = "__weapps_action_trigger_double_click",
|
|
7
|
-
LONG_PRESS = "__weapps_action_trigger_long_press",
|
|
8
|
-
ENTER_VIEW = "__weapps_action_trigger_enter_view",
|
|
9
|
-
LEAVE_VIEW = "__weapps_action_trigger_leave_view",
|
|
10
|
-
UNMOUNT = "__weapps_action_trigger_unmount",
|
|
11
|
-
FIELD_VALUE_CHANGE = "__weapps_action_trigger_field_value_change"
|
|
12
|
-
}
|
|
13
|
-
export declare type ActionTrigger = BaseActionTrigger | 'string';
|
|
14
|
-
export declare enum ActionType {
|
|
15
|
-
Rematch = "rematch",
|
|
16
|
-
Material = "material",
|
|
17
|
-
GeneralFunc = "general-func",
|
|
18
|
-
LifeCycle = "lifecycle",
|
|
19
|
-
PropEvent = "prop-event",
|
|
20
|
-
HandlerFn = "handler-fn",
|
|
21
|
-
Inline = "inline",
|
|
22
|
-
Platform = "platform",
|
|
23
|
-
DataSource = "dataSource"
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=action.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/action.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,IAAI,iCAAiC;IACrC,KAAK,kCAAkC;IACvC,WAAW,uCAAuC;IAClD,WAAW,uCAAuC;IAClD,YAAY,yCAAyC;IACrD,UAAU,uCAAuC;IACjD,UAAU,uCAAuC;IACjD,UAAU,uCAAuC;IACjD,OAAO,oCAAoC;IAC3C,kBAAkB,+CAA+C;CAClE;AAED,oBAAY,aAAa,GAAG,iBAAiB,GAAG,QAAQ,CAAA;AAExD,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,WAAW,iBAAiB;IAC5B,SAAS,cAAc;IACvB,SAAS,eAAe;IACxB,SAAS,eAAe;IACxB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActionType = exports.BaseActionTrigger = void 0;
|
|
4
|
-
var BaseActionTrigger;
|
|
5
|
-
(function (BaseActionTrigger) {
|
|
6
|
-
BaseActionTrigger["INIT"] = "__weapps_action_trigger_init";
|
|
7
|
-
BaseActionTrigger["CLICK"] = "__weapps_action_trigger_click";
|
|
8
|
-
BaseActionTrigger["MOUSE_ENTER"] = "__weapps_action_trigger_mouseEnter";
|
|
9
|
-
BaseActionTrigger["MOUSE_LEAVE"] = "__weapps_action_trigger_mouseLeave";
|
|
10
|
-
BaseActionTrigger["DOUBLE_CLICK"] = "__weapps_action_trigger_double_click";
|
|
11
|
-
BaseActionTrigger["LONG_PRESS"] = "__weapps_action_trigger_long_press";
|
|
12
|
-
BaseActionTrigger["ENTER_VIEW"] = "__weapps_action_trigger_enter_view";
|
|
13
|
-
BaseActionTrigger["LEAVE_VIEW"] = "__weapps_action_trigger_leave_view";
|
|
14
|
-
BaseActionTrigger["UNMOUNT"] = "__weapps_action_trigger_unmount";
|
|
15
|
-
BaseActionTrigger["FIELD_VALUE_CHANGE"] = "__weapps_action_trigger_field_value_change";
|
|
16
|
-
})(BaseActionTrigger = exports.BaseActionTrigger || (exports.BaseActionTrigger = {}));
|
|
17
|
-
var ActionType;
|
|
18
|
-
(function (ActionType) {
|
|
19
|
-
ActionType["Rematch"] = "rematch";
|
|
20
|
-
ActionType["Material"] = "material";
|
|
21
|
-
ActionType["GeneralFunc"] = "general-func";
|
|
22
|
-
ActionType["LifeCycle"] = "lifecycle";
|
|
23
|
-
ActionType["PropEvent"] = "prop-event";
|
|
24
|
-
ActionType["HandlerFn"] = "handler-fn";
|
|
25
|
-
ActionType["Inline"] = "inline";
|
|
26
|
-
ActionType["Platform"] = "platform";
|
|
27
|
-
ActionType["DataSource"] = "dataSource";
|
|
28
|
-
})(ActionType = exports.ActionType || (exports.ActionType = {}));
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ICommonStyle } from './style';
|
|
2
|
-
import { ActionType } from './action';
|
|
3
|
-
import { IWeAppCode } from './lowcode';
|
|
4
|
-
import { IMiniprogramPlugin, IPlugin } from '../types/plugins';
|
|
5
|
-
import { HISTORY_TYPE } from '../../types';
|
|
6
|
-
export interface IAppAndPageVar {
|
|
7
|
-
dataset?: {
|
|
8
|
-
state?: {};
|
|
9
|
-
param?: {};
|
|
10
|
-
};
|
|
11
|
-
vars: {
|
|
12
|
-
data: any[];
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface IWeAppData {
|
|
16
|
-
mpPkgUrl?: string;
|
|
17
|
-
selectedPageId?: string;
|
|
18
|
-
historyType?: HISTORY_TYPE;
|
|
19
|
-
pageInstanceList: IWeAppPage[];
|
|
20
|
-
lowCodes: IWeAppCode[];
|
|
21
|
-
npmDependencies: {
|
|
22
|
-
[packageName: string]: string;
|
|
23
|
-
};
|
|
24
|
-
plugins: IPlugin[];
|
|
25
|
-
maxID?: number;
|
|
26
|
-
rootPath?: string;
|
|
27
|
-
themeVars?: {
|
|
28
|
-
[key: string]: string;
|
|
29
|
-
};
|
|
30
|
-
presetColors?: string[];
|
|
31
|
-
appConfig?: Record<string, any>;
|
|
32
|
-
envId: string;
|
|
33
|
-
datasources: any[];
|
|
34
|
-
dataset?: IAppAndPageVar['dataset'];
|
|
35
|
-
vars: IAppAndPageVar['vars'];
|
|
36
|
-
miniprogramPlugins: IMiniprogramPlugin[];
|
|
37
|
-
extra: {
|
|
38
|
-
domain: string;
|
|
39
|
-
clientId?: string;
|
|
40
|
-
loginConfigVersion?: string;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export interface IWeAppPage {
|
|
44
|
-
id: string;
|
|
45
|
-
isHome: boolean;
|
|
46
|
-
data: {
|
|
47
|
-
[prop: string]: IDynamicValue;
|
|
48
|
-
};
|
|
49
|
-
listeners: IEventListener[];
|
|
50
|
-
componentInstances: {
|
|
51
|
-
[key: string]: IWeAppComponentInstance;
|
|
52
|
-
};
|
|
53
|
-
pluginInstances: any[];
|
|
54
|
-
commonStyle: ICommonStyle;
|
|
55
|
-
styleBindPath: string;
|
|
56
|
-
lowCodes?: IWeAppCode[];
|
|
57
|
-
children?: IWeAppPage[];
|
|
58
|
-
pageId?: string;
|
|
59
|
-
codeType?: 'page' | 'global';
|
|
60
|
-
code?: string;
|
|
61
|
-
dataset?: IAppAndPageVar['dataset'];
|
|
62
|
-
}
|
|
63
|
-
export interface IWeAppComponentInstance {
|
|
64
|
-
xComponent?: {
|
|
65
|
-
moduleName: string;
|
|
66
|
-
name: string;
|
|
67
|
-
};
|
|
68
|
-
xProps?: {
|
|
69
|
-
data: {
|
|
70
|
-
[prop: string]: IDynamicValue;
|
|
71
|
-
};
|
|
72
|
-
directives?: {
|
|
73
|
-
waIf?: IDynamicValue;
|
|
74
|
-
waFor?: IDynamicValue;
|
|
75
|
-
waForKey?: IDynamicValue;
|
|
76
|
-
};
|
|
77
|
-
listeners?: IEventListener[];
|
|
78
|
-
style: CSSProperties;
|
|
79
|
-
styleBind: IDynamicValue;
|
|
80
|
-
classList: string[];
|
|
81
|
-
classListBind: IDynamicValue;
|
|
82
|
-
commonStyle: ICommonStyle;
|
|
83
|
-
styleBindPath?: string;
|
|
84
|
-
customDataForm: Record<string, any>;
|
|
85
|
-
staticResourceAttribute: string[];
|
|
86
|
-
};
|
|
87
|
-
xIndex?: number;
|
|
88
|
-
properties?: {
|
|
89
|
-
[key: string]: IWeAppComponentInstance;
|
|
90
|
-
};
|
|
91
|
-
genericComp?: {
|
|
92
|
-
propName: string;
|
|
93
|
-
title: string;
|
|
94
|
-
description?: string;
|
|
95
|
-
allowedCompType?: string;
|
|
96
|
-
xIndex?: number;
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
export interface IEventListener extends IEventModifiers {
|
|
100
|
-
key?: string;
|
|
101
|
-
trigger: string;
|
|
102
|
-
type: ActionType;
|
|
103
|
-
handler?: {
|
|
104
|
-
moduleName: string;
|
|
105
|
-
name: string;
|
|
106
|
-
};
|
|
107
|
-
jsCode?: string;
|
|
108
|
-
data: {
|
|
109
|
-
[prop: string]: IDynamicValue;
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
export interface IEventModifiers {
|
|
113
|
-
isCapturePhase?: boolean;
|
|
114
|
-
noPropagation?: boolean;
|
|
115
|
-
}
|
|
116
|
-
export interface IDynamicValue {
|
|
117
|
-
type?: 'static' | PropBindType;
|
|
118
|
-
value: any | string;
|
|
119
|
-
}
|
|
120
|
-
export declare enum PropBindType {
|
|
121
|
-
state = "rematch",
|
|
122
|
-
computed = "computed",
|
|
123
|
-
forItem = "for-item",
|
|
124
|
-
expression = "expression",
|
|
125
|
-
prop = "prop",
|
|
126
|
-
slot = "slot",
|
|
127
|
-
dataVar = "dataVar",
|
|
128
|
-
stateData = "state",
|
|
129
|
-
paramData = "params",
|
|
130
|
-
scope = "scope"
|
|
131
|
-
}
|
|
132
|
-
export declare enum BindPropertyPath {
|
|
133
|
-
style = "style",
|
|
134
|
-
classNameList = "classNameList"
|
|
135
|
-
}
|
|
136
|
-
export interface ILockedPage {
|
|
137
|
-
id: string;
|
|
138
|
-
username: string;
|
|
139
|
-
socketId: string;
|
|
140
|
-
}
|
|
141
|
-
export declare type IBuildType = 'web' | 'mp' | 'app' | 'qywxH5' | 'wxH5';
|
|
142
|
-
//# sourceMappingURL=app.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/weap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CAAC;CACrB;AAED,oBAAY,YAAY;IACtB,KAAK,YAAY;IACjB,QAAQ,aAAa;IACrB,OAAO,aAAa;IACpB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,SAAS,UAAU;IACnB,SAAS,WAAW;IACpB,KAAK,UAAU;CAChB;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,aAAa,kBAAkB;CAChC;AACD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,UAAU,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BindPropertyPath = exports.PropBindType = void 0;
|
|
4
|
-
var PropBindType;
|
|
5
|
-
(function (PropBindType) {
|
|
6
|
-
PropBindType["state"] = "rematch";
|
|
7
|
-
PropBindType["computed"] = "computed";
|
|
8
|
-
PropBindType["forItem"] = "for-item";
|
|
9
|
-
PropBindType["expression"] = "expression";
|
|
10
|
-
PropBindType["prop"] = "prop";
|
|
11
|
-
PropBindType["slot"] = "slot";
|
|
12
|
-
PropBindType["dataVar"] = "dataVar";
|
|
13
|
-
PropBindType["stateData"] = "state";
|
|
14
|
-
PropBindType["paramData"] = "params";
|
|
15
|
-
PropBindType["scope"] = "scope";
|
|
16
|
-
})(PropBindType = exports.PropBindType || (exports.PropBindType = {}));
|
|
17
|
-
var BindPropertyPath;
|
|
18
|
-
(function (BindPropertyPath) {
|
|
19
|
-
BindPropertyPath["style"] = "style";
|
|
20
|
-
BindPropertyPath["classNameList"] = "classNameList";
|
|
21
|
-
})(BindPropertyPath = exports.BindPropertyPath || (exports.BindPropertyPath = {}));
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export declare enum APPbuildTypes {
|
|
2
|
-
Android = 1,
|
|
3
|
-
iOS = 2,
|
|
4
|
-
web = 3,
|
|
5
|
-
app = 4,
|
|
6
|
-
qywxH5 = 5,
|
|
7
|
-
wxH5 = 6
|
|
8
|
-
}
|
|
9
|
-
export declare enum APPbuildModes {
|
|
10
|
-
'Production' = 1,
|
|
11
|
-
'Debugger' = 2
|
|
12
|
-
}
|
|
13
|
-
export declare enum APPbuildStatus {
|
|
14
|
-
'INITIALIZING' = 0,
|
|
15
|
-
'RUNNING' = 1,
|
|
16
|
-
'SUCCEED' = 2,
|
|
17
|
-
'FAILED' = 3
|
|
18
|
-
}
|
|
19
|
-
export interface IAppBuildContent {
|
|
20
|
-
url?: string;
|
|
21
|
-
h5AppBuildId?: number;
|
|
22
|
-
h5Version?: string;
|
|
23
|
-
h5log?: string;
|
|
24
|
-
FileName?: string;
|
|
25
|
-
}
|
|
26
|
-
export declare const ChannelTypes: string[];
|
|
27
|
-
export declare const H5BuildTypes: {
|
|
28
|
-
value: string;
|
|
29
|
-
label: string;
|
|
30
|
-
}[];
|
|
31
|
-
export declare enum CodingPublishType {
|
|
32
|
-
Android = "android",
|
|
33
|
-
iOS = "ios",
|
|
34
|
-
H5 = "h5"
|
|
35
|
-
}
|
|
36
|
-
export interface ICtnProps {
|
|
37
|
-
name: string;
|
|
38
|
-
createTime: number;
|
|
39
|
-
uri: string;
|
|
40
|
-
}
|
|
41
|
-
export interface IOutputs {
|
|
42
|
-
h5JobId?: string;
|
|
43
|
-
androidJobId?: string;
|
|
44
|
-
iOSJobId?: string;
|
|
45
|
-
logo: string;
|
|
46
|
-
name: string;
|
|
47
|
-
appid?: string;
|
|
48
|
-
iOSappId?: string;
|
|
49
|
-
androidCtn: ICtnProps;
|
|
50
|
-
iOSCtn: ICtnProps;
|
|
51
|
-
}
|
|
52
|
-
export declare enum IOSChannelTypes {
|
|
53
|
-
development = "development",
|
|
54
|
-
adhoc = "ad-hoc",
|
|
55
|
-
appStore = "app-store",
|
|
56
|
-
enterprise = "enterprise"
|
|
57
|
-
}
|
|
58
|
-
export declare const IOSChannels: {
|
|
59
|
-
value: IOSChannelTypes;
|
|
60
|
-
title: string;
|
|
61
|
-
label: string;
|
|
62
|
-
}[];
|
|
63
|
-
//# sourceMappingURL=appbuild.d.ts.map
|
|
@@ -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,oBAAY,aAAa;IACvB,YAAY,IAAI;IAChB,UAAU,IAAA;CACX;AAED,oBAAY,cAAc;IACxB,cAAc,IAAA;IACd,SAAS,IAAA;IACT,SAAS,IAAA;IACT,QAAQ,IAAA;CACT;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,YAAY,UAAmC,CAAC;AAE7D,eAAO,MAAM,YAAY;;;GAiBxB,CAAC;AAEF,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,EAAE,OAAO;CACV;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,SAAS,CAAC;IACtB,MAAM,EAAE,SAAS,CAAC;CACnB;AAGD,oBAAY,eAAe;IACzB,WAAW,gBAAgB;IAC3B,KAAK,WAAW;IAChB,QAAQ,cAAc;IACtB,UAAU,eAAe;CAC1B;AAGD,eAAO,MAAM,WAAW;;;;GAwBvB,CAAC"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IOSChannels = exports.IOSChannelTypes = 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,GAChB,SAAS,GACT,gBAAgB,GAChB,UAAU,GACV,cAAc,GACd,SAAS,GACT,WAAW,GACX,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,eAAe,GACf,WAAW,GACX,OAAO,GACP,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GAGV,MAAM,GACN,YAAY,GACZ,aAAa,GACb,MAAM,CAAC;AAEX,oBAAY,aAAa,CAAC,KAAK,IAAI,CAAC,IAAI,EAAE;IACxC,GAAG,MAAC;IACJ,OAAO,MAAC;CACT,KAAK;IACJ,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,KAAA,KAAK,KAAK,CAAA;KAAE,CAAC;IACnE,OAAO,EAAE,CAAC,QAAQ,KAAA,KAAK;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAAA;KAAE,CAAC;IACjE,QAAQ,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAA;KAAE,CAAC;CAC1D,CAAC;AAEF,oBAAY,aAAa,GAAG,CAAC,QAAQ,KAAA,KAAK,iBAAiB,CAAC;AAE5D,oBAAY,eAAe,GAAG,CAAC,UAAU,EAAE,GAAG,KAAK,GAAG,CAAC;AAEvD,oBAAY,aAAa,GAAG,GAAG,CAAC;AAEhC,oBAAY,iBAAiB,GAAG,CAAC,IAAI,EAAE;IACrC,IAAI,MAAC;IACL,eAAe,MAAC;IAChB,OAAO,MAAC;IACR,WAAW,MAAC;CACb,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../../src/weapps-core/types/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,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;
|