@zhubangyun/lowcode-core 1.1.2 → 1.1.4

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.
Files changed (84) hide show
  1. package/es/components/layout/index.d.ts +3 -0
  2. package/es/components/layout/index.js +7 -5
  3. package/es/components/layout/index.less +1 -8
  4. package/es/{pages → demo}/data/assets.d.ts +2 -2
  5. package/es/{pages → demo}/data/assets.js +7 -7
  6. package/es/demo/index.js +40 -0
  7. package/es/index.d.ts +3 -3
  8. package/es/index.js +3 -3
  9. package/es/utils/common/Request.js +9 -14
  10. package/es/utils/common/RestApi.d.ts +1 -1
  11. package/es/utils/common/RestApi.js +7 -7
  12. package/es/utils/common/index.d.ts +0 -3
  13. package/es/utils/common/index.js +0 -3
  14. package/es/utils/designer/assets/assets.data.antd.d.ts +3 -0
  15. package/es/utils/designer/assets/assets.data.antd.js +29 -0
  16. package/es/utils/designer/assets/assets.data.base.d.ts +3 -0
  17. package/es/utils/designer/assets/assets.data.base.js +41 -0
  18. package/es/utils/designer/assets/assets.data.chart.d.ts +3 -0
  19. package/es/utils/designer/assets/assets.data.chart.js +27 -0
  20. package/es/utils/designer/assets/assets.data.design.d.ts +3 -0
  21. package/es/utils/designer/assets/assets.data.design.js +10 -0
  22. package/es/utils/designer/assets/assets.parse.d.ts +3 -0
  23. package/es/utils/{lowcode/parseAssets.js → designer/assets/assets.parse.js} +5 -5
  24. package/es/utils/designer/assets/assets.typing.d.ts +298 -0
  25. package/es/utils/designer/assets/assets.typing.js +54 -0
  26. package/es/utils/designer/assets/index.d.ts +10 -0
  27. package/es/utils/designer/assets/index.js +50 -0
  28. package/es/utils/designer/engine/index.d.ts +19 -0
  29. package/es/utils/designer/engine/index.js +116 -0
  30. package/es/utils/designer/index.d.ts +3 -0
  31. package/es/utils/designer/index.js +27 -0
  32. package/es/utils/index.d.ts +4 -9
  33. package/es/utils/index.js +6 -6
  34. package/lib/components/layout/index.d.ts +3 -0
  35. package/lib/components/layout/index.js +7 -5
  36. package/lib/components/layout/index.less +1 -8
  37. package/lib/{pages → demo}/data/assets.d.ts +2 -2
  38. package/lib/{pages → demo}/data/assets.js +7 -7
  39. package/lib/demo/index.js +45 -0
  40. package/lib/index.d.ts +3 -3
  41. package/lib/index.js +6 -3
  42. package/lib/utils/common/Request.js +9 -14
  43. package/lib/utils/common/RestApi.d.ts +1 -1
  44. package/lib/utils/common/RestApi.js +7 -7
  45. package/lib/utils/common/index.d.ts +0 -3
  46. package/lib/utils/common/index.js +1 -6
  47. package/lib/utils/designer/assets/assets.data.antd.d.ts +3 -0
  48. package/lib/utils/designer/assets/assets.data.antd.js +33 -0
  49. package/lib/utils/designer/assets/assets.data.base.d.ts +3 -0
  50. package/lib/utils/designer/assets/assets.data.base.js +45 -0
  51. package/lib/utils/designer/assets/assets.data.chart.d.ts +3 -0
  52. package/lib/utils/designer/assets/assets.data.chart.js +31 -0
  53. package/lib/utils/designer/assets/assets.data.design.d.ts +3 -0
  54. package/lib/utils/designer/assets/assets.data.design.js +14 -0
  55. package/lib/utils/designer/assets/assets.parse.d.ts +3 -0
  56. package/lib/utils/{lowcode/parseAssets.js → designer/assets/assets.parse.js} +6 -6
  57. package/lib/utils/designer/assets/assets.typing.d.ts +298 -0
  58. package/lib/utils/designer/assets/assets.typing.js +47 -0
  59. package/lib/utils/designer/assets/index.d.ts +10 -0
  60. package/lib/utils/designer/assets/index.js +55 -0
  61. package/lib/utils/designer/engine/index.d.ts +19 -0
  62. package/lib/utils/designer/engine/index.js +121 -0
  63. package/lib/utils/designer/index.d.ts +3 -0
  64. package/lib/utils/designer/index.js +34 -0
  65. package/lib/utils/index.d.ts +4 -9
  66. package/lib/utils/index.js +8 -9
  67. package/package.json +4 -2
  68. package/readme.md +2 -0
  69. package/es/pages/index.js +0 -31
  70. package/es/utils/lowcode/index.d.ts +0 -1
  71. package/es/utils/lowcode/index.js +0 -1
  72. package/es/utils/lowcode/parseAssets.d.ts +0 -3
  73. package/lib/pages/index.js +0 -34
  74. package/lib/utils/lowcode/index.d.ts +0 -1
  75. package/lib/utils/lowcode/index.js +0 -6
  76. package/lib/utils/lowcode/parseAssets.d.ts +0 -3
  77. /package/es/{pages → demo}/data/schema.d.ts +0 -0
  78. /package/es/{pages → demo}/data/schema.js +0 -0
  79. /package/es/{pages → demo}/index.d.ts +0 -0
  80. /package/es/{pages → demo}/index.less +0 -0
  81. /package/lib/{pages → demo}/data/schema.d.ts +0 -0
  82. /package/lib/{pages → demo}/data/schema.js +0 -0
  83. /package/lib/{pages → demo}/index.d.ts +0 -0
  84. /package/lib/{pages → demo}/index.less +0 -0
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties, ReactNode } from "react";
2
2
  import "./index.less";
3
3
  export declare function Layout(props: {
4
+ className?: string;
4
5
  header?: ReactNode;
5
6
  footer?: ReactNode;
6
7
  left?: ReactNode;
@@ -15,6 +16,7 @@ export declare function Layout(props: {
15
16
  };
16
17
  }): import("react").JSX.Element;
17
18
  export declare function LayoutVertical(props: {
19
+ className?: string;
18
20
  header?: ReactNode;
19
21
  footer?: ReactNode;
20
22
  children?: ReactNode;
@@ -24,6 +26,7 @@ export declare function LayoutVertical(props: {
24
26
  };
25
27
  }): import("react").JSX.Element;
26
28
  export declare function LayoutHorizontal(props: {
29
+ className?: string;
27
30
  left?: ReactNode;
28
31
  right?: ReactNode;
29
32
  children?: ReactNode;
@@ -2,16 +2,18 @@ import "./index.less";
2
2
  export function Layout(props) {
3
3
  var _props$styles;
4
4
  return /*#__PURE__*/React.createElement("main", {
5
- className: "layout",
5
+ className: "layout " + (props.className || ""),
6
6
  style: {
7
7
  flexDirection: "column"
8
8
  }
9
9
  }, /*#__PURE__*/React.createElement(LayoutVertical, {
10
10
  footer: props.footer,
11
- header: props.header
11
+ header: props.header,
12
+ styles: props.styles
12
13
  }, /*#__PURE__*/React.createElement(LayoutHorizontal, {
13
14
  left: props.left,
14
- right: props.right
15
+ right: props.right,
16
+ styles: props.styles
15
17
  }, /*#__PURE__*/React.createElement("div", {
16
18
  style: (_props$styles = props.styles) === null || _props$styles === void 0 ? void 0 : _props$styles.content,
17
19
  className: "layout-content"
@@ -31,7 +33,7 @@ export function LayoutVertical(props) {
31
33
  style: (_props$styles3 = props.styles) === null || _props$styles3 === void 0 ? void 0 : _props$styles3.footer
32
34
  }, props.footer) : undefined;
33
35
  return /*#__PURE__*/React.createElement("main", {
34
- className: "layout-vertical",
36
+ className: "layout-vertical " + (props.className || ""),
35
37
  style: {
36
38
  flexDirection: "column",
37
39
  overflow: "hidden"
@@ -51,7 +53,7 @@ export function LayoutHorizontal(props) {
51
53
  style: (_props$styles5 = props.styles) === null || _props$styles5 === void 0 ? void 0 : _props$styles5.right
52
54
  }, props.right) : undefined;
53
55
  return /*#__PURE__*/React.createElement("main", {
54
- className: "layout-horizontal",
56
+ className: "layout-horizontal " + (props.className || ""),
55
57
  style: {
56
58
  flexDirection: "row"
57
59
  }
@@ -3,18 +3,11 @@
3
3
  .layout-horizontal {
4
4
  height: 100%;
5
5
  display: flex;
6
-
7
- aside,
8
- footer,
9
- header {
10
- padding: 12px;
11
- }
12
-
13
6
  }
14
7
 
15
8
  .layout-content {
16
9
  height: 100%;
17
10
  overflow-y: auto;
18
11
  background: #f1f1f1;
19
- padding: 12px;
12
+ border-radius: 6px;
20
13
  }
@@ -8,11 +8,11 @@ declare const _default: {
8
8
  description?: undefined;
9
9
  } | {
10
10
  title: string;
11
+ description: string;
11
12
  package: string;
12
13
  version: string;
13
- description: string;
14
- urls: string[];
15
14
  library: string;
15
+ urls: string[];
16
16
  })[];
17
17
  components: {
18
18
  exportName: string;
@@ -9,18 +9,18 @@ export default {
9
9
  "version": "0.1.0",
10
10
  "library": "AntdMaterial",
11
11
  "urls": ["https://cdn.zhiyunhe.com/plugin/dayjs/dayjs.min.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.css"]
12
- }, {
13
- "title": "fusion组件库",
14
- "package": "@alifd/next",
15
- "version": "1.26.4",
16
- "description": "不可删除否则会出问题",
17
- "urls": ["https://g.alicdn.com/code/lib/alifd__next/1.26.4/next-with-locales.min.js"],
18
- "library": "Next"
19
12
  }, {
20
13
  "package": "chart-material",
21
14
  "version": "0.1.0",
22
15
  "library": "ChartMaterial",
23
16
  "urls": ["https://cdn.zhiyunhe.com/plugin/antv/g2/5.1.19/g2.min.js", "https://cdn.zhiyunhe.com/plugin/datav/1.2.5/datav.min.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/view.css"]
17
+ }, {
18
+ "title": "fusion组件库",
19
+ "description": "不可删除否则会出问题",
20
+ "package": "@alifd/next",
21
+ "version": "1.26.4",
22
+ "library": "Next",
23
+ "urls": ["https://g.alicdn.com/code/lib/alifd__next/1.26.4/next-with-locales.min.js"]
24
24
  }],
25
25
  "components": [{
26
26
  "exportName": "RootMaterialMeta",
@@ -0,0 +1,40 @@
1
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
+ import React, { Fragment, useEffect, useRef } from "react";
4
+ import ReactDOM from "react-dom";
5
+ import utils from "../utils";
6
+ import Schema from "./data/schema";
7
+ console.log(utils);
8
+ function App() {
9
+ var ref = useRef();
10
+ useEffect(function () {
11
+ utils.designer.initEngine().then( /*#__PURE__*/function () {
12
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(engine) {
13
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
14
+ while (1) switch (_context.prev = _context.next) {
15
+ case 0:
16
+ _context.next = 2;
17
+ return engine.injectAssets(["antd"]);
18
+ case 2:
19
+ _context.next = 4;
20
+ return engine.init(ref.current, Schema);
21
+ case 4:
22
+ case "end":
23
+ return _context.stop();
24
+ }
25
+ }, _callee);
26
+ }));
27
+ return function (_x) {
28
+ return _ref.apply(this, arguments);
29
+ };
30
+ }());
31
+ }, []);
32
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
33
+ ref: ref,
34
+ style: {
35
+ width: "100%",
36
+ height: "100%"
37
+ }
38
+ }));
39
+ }
40
+ ReactDOM.render( /*#__PURE__*/React.createElement(App, null), document.getElementById('root'));
package/es/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as utils from "./utils";
2
- export { RestApi } from "./utils";
3
- export { RestFormApi } from "./utils";
4
- export { ClientCache } from "./utils";
2
+ export { RestApi } from "./utils/common/RestApi";
3
+ export { RestFormApi } from "./utils/common/RestFormApi";
4
+ export { ClientCache } from "./utils/common/ClientCache";
5
5
  export { Layout } from "./components/layout";
6
6
  export { SchemaRender } from "./components/schema-render";
7
7
  export { utils };
package/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as utils from "./utils";
2
- export { RestApi } from "./utils";
3
- export { RestFormApi } from "./utils";
4
- export { ClientCache } from "./utils";
2
+ export { RestApi } from "./utils/common/RestApi";
3
+ export { RestFormApi } from "./utils/common/RestFormApi";
4
+ export { ClientCache } from "./utils/common/ClientCache";
5
5
  export { Layout } from "./components/layout";
6
6
  export { SchemaRender } from "./components/schema-render";
7
7
  export { utils };
@@ -2,19 +2,14 @@ export function onFulfilled(res) {
2
2
  return res.data;
3
3
  }
4
4
  export function onRejected(error) {
5
- var _error$response, _window$antd;
6
- var data = (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.data;
7
- var statusCode = data.statusCode,
8
- message = data.message;
9
- // @ts-ignore
10
- var msg = (_window$antd = window.antd) === null || _window$antd === void 0 ? void 0 : _window$antd.message;
11
- switch (statusCode) {
12
- case 500:
13
- msg === null || msg === void 0 ? void 0 : msg.error(message).then();
14
- break;
15
- case 400:
16
- msg === null || msg === void 0 ? void 0 : msg.error(message).then();
17
- break;
5
+ var _error$response = error.response,
6
+ status = _error$response.status,
7
+ statusText = _error$response.statusText;
8
+ if (status == 400) {
9
+ return error.response.data || {};
18
10
  }
19
- return data;
11
+ return {
12
+ success: false,
13
+ message: statusText
14
+ };
20
15
  }
@@ -33,7 +33,7 @@ export declare class RestApi<DataType> {
33
33
  * 通过id删除
34
34
  */
35
35
  deleteById(id: string, options?: BaseRequestOptions<DataType>): Promise<boolean>;
36
- showError(msg?: string): Promise<void>;
36
+ showError(type?: string, msg?: string): Promise<void>;
37
37
  }
38
38
  export interface BaseType {
39
39
  /**
@@ -77,7 +77,7 @@ export var RestApi = /*#__PURE__*/function () {
77
77
  _context2.next = 7;
78
78
  break;
79
79
  }
80
- this.showError("\u83B7\u53D6{" + id + "}\u5931\u8D25!" + res.message).then();
80
+ this.showError("\u83B7\u53D6{" + id + "}\u5931\u8D25!", res.message).then();
81
81
  _context2.next = 7;
82
82
  return options === null || options === void 0 ? void 0 : (_options$onError = options.onError) === null || _options$onError === void 0 ? void 0 : _options$onError.call(options, res);
83
83
  case 7:
@@ -113,7 +113,7 @@ export var RestApi = /*#__PURE__*/function () {
113
113
  _context3.next = 7;
114
114
  break;
115
115
  }
116
- this.showError("\u65B0\u589E\u5931\u8D25!" + res.message).then();
116
+ this.showError("\u65B0\u589E\u5931\u8D25!", res.message).then();
117
117
  _context3.next = 7;
118
118
  return options === null || options === void 0 ? void 0 : (_options$onError2 = options.onError) === null || _options$onError2 === void 0 ? void 0 : _options$onError2.call(options, res);
119
119
  case 7:
@@ -149,7 +149,7 @@ export var RestApi = /*#__PURE__*/function () {
149
149
  _context4.next = 7;
150
150
  break;
151
151
  }
152
- this.showError("\u66F4\u65B0\u5931\u8D25!" + res.message).then();
152
+ this.showError("\u66F4\u65B0\u5931\u8D25!", res.message).then();
153
153
  _context4.next = 7;
154
154
  return options === null || options === void 0 ? void 0 : (_options$onError3 = options.onError) === null || _options$onError3 === void 0 ? void 0 : _options$onError3.call(options, res);
155
155
  case 7:
@@ -185,7 +185,7 @@ export var RestApi = /*#__PURE__*/function () {
185
185
  _context5.next = 7;
186
186
  break;
187
187
  }
188
- this.showError("\u5220\u9664{" + id + "}\u5931\u8D25!" + res.message).then();
188
+ this.showError("\u5220\u9664{" + id + "}\u5931\u8D25!", res.message).then();
189
189
  _context5.next = 7;
190
190
  return options === null || options === void 0 ? void 0 : (_options$onError4 = options.onError) === null || _options$onError4 === void 0 ? void 0 : _options$onError4.call(options, res);
191
191
  case 7:
@@ -202,18 +202,18 @@ export var RestApi = /*#__PURE__*/function () {
202
202
  return deleteById;
203
203
  }();
204
204
  _proto.showError = /*#__PURE__*/function () {
205
- var _showError = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(msg) {
205
+ var _showError = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(type, msg) {
206
206
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
207
207
  while (1) switch (_context6.prev = _context6.next) {
208
208
  case 0:
209
- _message === null || _message === void 0 ? void 0 : _message.error(this.title + ":" + msg).then();
209
+ _message === null || _message === void 0 ? void 0 : _message.error("{" + this.title + "}" + type + (msg || "")).then();
210
210
  case 1:
211
211
  case "end":
212
212
  return _context6.stop();
213
213
  }
214
214
  }, _callee6, this);
215
215
  }));
216
- function showError(_x13) {
216
+ function showError(_x13, _x14) {
217
217
  return _showError.apply(this, arguments);
218
218
  }
219
219
  return showError;
@@ -1,7 +1,4 @@
1
1
  import { ClientCache } from "./ClientCache";
2
- export { RestApi } from "./RestApi";
3
- export { RestFormApi } from "./RestFormApi";
4
- export { ClientCache } from "./ClientCache";
5
2
  export { loadPlugins } from "./LoadPlugins";
6
3
  export declare function uuid(prefix?: string, separator?: string): string;
7
4
  export declare const schemaCache: ClientCache;
@@ -3,9 +3,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { v4 } from "uuid";
4
4
  import { ClientCache } from "./ClientCache";
5
5
  import { request } from "../api";
6
- export { RestApi } from "./RestApi";
7
- export { RestFormApi } from "./RestFormApi";
8
- export { ClientCache } from "./ClientCache";
9
6
  export { loadPlugins } from "./LoadPlugins";
10
7
  export function uuid(prefix, separator) {
11
8
  return [prefix, separator, v4()].filter(function (v) {
@@ -0,0 +1,3 @@
1
+ import { Assets } from "./assets.typing";
2
+ export declare const AntdAssets: Assets;
3
+ export default AntdAssets;
@@ -0,0 +1,29 @@
1
+ export var AntdAssets = {
2
+ packages: [{
3
+ "package": "antd-material",
4
+ "version": "0.1.0",
5
+ "library": "AntdMaterial",
6
+ "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/view.css"]
7
+ }, {
8
+ "package": "antd-pro-material",
9
+ "version": "0.1.0",
10
+ "library": "AntdProMaterial",
11
+ "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/view.css"]
12
+ }],
13
+ components: [{
14
+ "exportName": "AntdMaterialMeta",
15
+ "npm": {
16
+ "package": "antd-material",
17
+ "version": "1.0.0"
18
+ },
19
+ "url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd/meta.js"
20
+ }, {
21
+ "exportName": "ZhubangyunAntdProMaterialMeta",
22
+ "npm": {
23
+ "package": "@zhubangyun/antd-pro-material",
24
+ "version": "1.0.0"
25
+ },
26
+ "url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/antd-pro/meta.js"
27
+ }]
28
+ };
29
+ export default AntdAssets;
@@ -0,0 +1,3 @@
1
+ import { Assets } from "./assets.typing";
2
+ declare const BaseAssets: Assets;
3
+ export default BaseAssets;
@@ -0,0 +1,41 @@
1
+ var BaseAssets = {
2
+ "version": "0.1.0",
3
+ "packages": [{
4
+ "package": "dayjs",
5
+ "version": "1.11.10",
6
+ "library": "dayjs",
7
+ "external": true,
8
+ "urls": ["https://cdn.zhiyunhe.com/plugin/dayjs/dayjs.min.js"]
9
+ }, {
10
+ "package": "lodash",
11
+ "version": "4.6.1",
12
+ "library": "_",
13
+ "external": true,
14
+ "urls": ["https://cdn.zhiyunhe.com/plugin/lodash/4.6.1/lodash.min.js"]
15
+ }, {
16
+ "package": "antd",
17
+ "version": "5.16.4",
18
+ "library": "antd",
19
+ "id": "antd",
20
+ "external": true,
21
+ "urls": ["https://cdn.zhiyunhe.com/plugin/antd/5.17.0/antd.min.js", "https://cdn.zhiyunhe.com/plugin/antd/5.17.0/reset.min.css", "https://cdn.zhiyunhe.com/plugin/antdIcon/1.0.0/antdIcon.min.js"]
22
+ }, {
23
+ "package": "root-material",
24
+ "version": "0.1.0",
25
+ "library": "RootMaterial",
26
+ "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/view.css"]
27
+ }],
28
+ "components": [{
29
+ "exportName": "RootMaterialMeta",
30
+ "npm": {
31
+ "package": "root-material",
32
+ "version": "1.0.0"
33
+ },
34
+ "url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/root/meta.js"
35
+ }],
36
+ "sort": {
37
+ "categoryList": ["布局", "通用", "导航", "数据录入", "数据展示", "反馈", "大屏组件", "图表", "基础元素", "表格类", "表单详情类", "帮助类", "对话框类", "业务类", "引导", "信息输入", "信息展示", "信息反馈", "布局容器类", "增强组件", "工具组件"],
38
+ "groupList": ["", "原子组件", "精选组件", "增强分组", "图表组件", "默认分组"]
39
+ }
40
+ };
41
+ export default BaseAssets;
@@ -0,0 +1,3 @@
1
+ import { Assets } from "./assets.typing";
2
+ declare const ChartAssets: Assets;
3
+ export default ChartAssets;
@@ -0,0 +1,27 @@
1
+ var ChartAssets = {
2
+ packages: [{
3
+ "package": "g2",
4
+ "version": "5.1.19",
5
+ "library": "G2",
6
+ "urls": ["https://cdn.zhiyunhe.com/plugin/antv/g2/5.1.19/g2.min.js"]
7
+ }, {
8
+ "package": "datav",
9
+ "version": "1.2.5",
10
+ "library": "datav",
11
+ "urls": ["https://cdn.zhiyunhe.com/plugin/datav/1.2.5/datav.min.js"]
12
+ }, {
13
+ "package": "chart-material",
14
+ "version": "0.1.0",
15
+ "library": "ChartMaterial",
16
+ "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/view.js", "https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/view.css"]
17
+ }],
18
+ components: [{
19
+ "exportName": "ChartMaterialMeta",
20
+ "npm": {
21
+ "package": "chart-material",
22
+ "version": "1.0.0"
23
+ },
24
+ "url": "https://cdn.zhiyunhe.com/plugin/lowcode/materials/chart/meta.js"
25
+ }]
26
+ };
27
+ export default ChartAssets;
@@ -0,0 +1,3 @@
1
+ import { Assets } from "./assets.typing";
2
+ declare const DesignAssets: Assets;
3
+ export default DesignAssets;
@@ -0,0 +1,10 @@
1
+ var DesignAssets = {
2
+ packages: [{
3
+ "package": "@alifd/next",
4
+ "version": "1.26.4",
5
+ "library": "Next",
6
+ "urls": ["https://cdn.zhiyunhe.com/plugin/lowcode/materials/next-with-locales.min.js"]
7
+ }],
8
+ components: []
9
+ };
10
+ export default DesignAssets;
@@ -0,0 +1,3 @@
1
+ export declare function assetsParse(assets: any): Promise<{
2
+ components: any;
3
+ }>;
@@ -22,11 +22,11 @@ function genLowcodeComp(schema, components) {
22
22
  return LowcodeComp;
23
23
  }(React.Component);
24
24
  }
25
- export function parseAssets(_x) {
26
- return _parseAssets.apply(this, arguments);
25
+ export function assetsParse(_x) {
26
+ return _assetsParse.apply(this, arguments);
27
27
  }
28
- function _parseAssets() {
29
- _parseAssets = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(assets) {
28
+ function _assetsParse() {
29
+ _assetsParse = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(assets) {
30
30
  var rawComponents, packages, libraryAsset, libraryMap, packagesMap, assetLoader, newComponents, componentDescriptions, remoteComponentDescriptions, lowcodeComponentsArray, proCodeComponentsMap, genLowCodeComponentsMap, components, lowCodeComponents;
31
31
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
32
32
  while (1) switch (_context2.prev = _context2.next) {
@@ -181,5 +181,5 @@ function _parseAssets() {
181
181
  }
182
182
  }, _callee2);
183
183
  }));
184
- return _parseAssets.apply(this, arguments);
184
+ return _assetsParse.apply(this, arguments);
185
185
  }