@zhubangyun/lowcode-core 6.2.30 → 6.3.25

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 (73) hide show
  1. package/es/components/react-render/index.js +11 -1
  2. package/es/utils/api/form-api/form-api.assemble-entity.d.ts +2 -0
  3. package/es/utils/api/form-api/form-api.assemble-entity.js +101 -0
  4. package/es/utils/api/form-api/form-api.entity-map.d.ts +12 -0
  5. package/es/utils/api/form-api/form-api.entity-map.js +50 -0
  6. package/es/utils/api/{form-api.utils.d.ts → form-api/form-api.utils.d.ts} +3 -2
  7. package/es/utils/api/{form-api.utils.js → form-api/form-api.utils.js} +46 -23
  8. package/es/utils/api/form-api.js +10 -17
  9. package/es/utils/api/index.d.ts +6 -1
  10. package/es/utils/api/rest-api.d.ts +3 -1
  11. package/es/utils/api/schema-api.d.ts +2 -1
  12. package/es/utils/api/schema-api.js +1 -1
  13. package/es/utils/api/schema.util.d.ts +1 -0
  14. package/es/utils/api/schema.util.js +10 -0
  15. package/es/utils/cache/index.d.ts +0 -1
  16. package/es/utils/cache/index.js +58 -35
  17. package/es/utils/cache/index_db_cache.d.ts +9 -0
  18. package/es/utils/cache/index_db_cache.js +7 -0
  19. package/es/utils/common/SingletonInstanceMap.d.ts +2 -2
  20. package/es/utils/data/index.d.ts +3 -1
  21. package/es/utils/data/index.js +10 -3
  22. package/es/utils/page/index.d.ts +1 -0
  23. package/es/utils/page/index.js +1 -1
  24. package/es/utils/page/page-create-element.d.ts +6 -0
  25. package/es/utils/page/page-create-element.js +23 -0
  26. package/es/utils/page/page-form-group.js +10 -4
  27. package/es/utils/page/page-render.js +1 -1
  28. package/es/utils/page/page-schema-utils.js +19 -2
  29. package/es/utils/page/print-form.d.ts +1 -1
  30. package/es/utils/page/print-form.js +13 -7
  31. package/es/utils/uni-bridge.js +1 -3
  32. package/es/utils/util.common.d.ts +1 -1
  33. package/es/utils/util.common.js +1 -2
  34. package/lib/components/react-render/index.js +11 -1
  35. package/lib/utils/api/form-api/form-api.assemble-entity.d.ts +2 -0
  36. package/lib/utils/api/form-api/form-api.assemble-entity.js +105 -0
  37. package/lib/utils/api/form-api/form-api.entity-map.d.ts +12 -0
  38. package/lib/utils/api/form-api/form-api.entity-map.js +54 -0
  39. package/lib/utils/api/{form-api.utils.d.ts → form-api/form-api.utils.d.ts} +3 -2
  40. package/lib/utils/api/{form-api.utils.js → form-api/form-api.utils.js} +46 -22
  41. package/lib/utils/api/form-api.js +10 -17
  42. package/lib/utils/api/index.d.ts +6 -1
  43. package/lib/utils/api/rest-api.d.ts +3 -1
  44. package/lib/utils/api/schema-api.d.ts +2 -1
  45. package/lib/utils/api/schema-api.js +1 -1
  46. package/lib/utils/api/schema.util.d.ts +1 -0
  47. package/lib/utils/api/schema.util.js +11 -0
  48. package/lib/utils/cache/index.d.ts +0 -1
  49. package/lib/utils/cache/index.js +57 -34
  50. package/lib/utils/cache/index_db_cache.d.ts +9 -0
  51. package/lib/utils/cache/index_db_cache.js +11 -0
  52. package/lib/utils/common/SingletonInstanceMap.d.ts +2 -2
  53. package/lib/utils/data/index.d.ts +3 -1
  54. package/lib/utils/data/index.js +10 -3
  55. package/lib/utils/page/index.d.ts +1 -0
  56. package/lib/utils/page/index.js +4 -2
  57. package/lib/utils/page/page-create-element.d.ts +6 -0
  58. package/lib/utils/page/page-create-element.js +29 -0
  59. package/lib/utils/page/page-form-group.js +10 -4
  60. package/lib/utils/page/page-render.js +1 -1
  61. package/lib/utils/page/page-schema-utils.js +19 -2
  62. package/lib/utils/page/print-form.d.ts +1 -1
  63. package/lib/utils/page/print-form.js +13 -7
  64. package/lib/utils/uni-bridge.js +1 -3
  65. package/lib/utils/util.common.d.ts +1 -1
  66. package/lib/utils/util.common.js +2 -3
  67. package/package.json +5 -4
  68. package/es/utils/cache/schema.d.ts +0 -6
  69. package/es/utils/cache/schema.js +0 -14
  70. package/es/utils/utils.scrollbar-size.js +0 -0
  71. package/lib/utils/cache/schema.d.ts +0 -6
  72. package/lib/utils/cache/schema.js +0 -18
  73. package/lib/utils/utils.scrollbar-size.js +0 -1
@@ -129,13 +129,11 @@ var UniBridge = /*#__PURE__*/function () {
129
129
  case 1:
130
130
  messageId = (0, _uuid.v7)();
131
131
  return _context5.abrupt("return", new Promise(function (resolve, reject) {
132
- console.log("UniBridge.doAction", messageId, action, options);
133
132
  _this.callbacks[messageId] = {
134
133
  resolve: resolve,
135
134
  reject: reject
136
135
  };
137
136
  try {
138
- console.log("postMessage", messageId, action, options);
139
137
  uni.postMessage({
140
138
  data: {
141
139
  action: action,
@@ -162,7 +160,7 @@ var UniBridge = /*#__PURE__*/function () {
162
160
  _proto.receiveMessage = function receiveMessage(message) {
163
161
  var callback = this.callbacks[message.messageId];
164
162
  console.log('客户端收到 UniApp 消息:', JSON.stringify(message));
165
- console.log('客户端收到 UniApp 消息:callbacks', this.callbacks);
163
+ console.log('客户端收到 UniApp 消息:callbacks', JSON.stringify(Object.keys(this.callbacks)), callback);
166
164
  if (callback) {
167
165
  if (message.success) {
168
166
  callback.resolve(message.data);
@@ -1 +1 @@
1
- export declare function isTemplate(): boolean;
1
+ export declare function isTemplateHost(): boolean;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.isTemplate = isTemplate;
5
- function isTemplate() {
6
- return false;
4
+ exports.isTemplateHost = isTemplateHost;
5
+ function isTemplateHost() {
7
6
  return location.host == "templates.zhiyunhe.com";
8
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhubangyun/lowcode-core",
3
- "version": "6.2.30",
3
+ "version": "6.3.25",
4
4
  "description": "低代码核心",
5
5
  "files": [
6
6
  "lib",
@@ -17,13 +17,14 @@
17
17
  "publish:oss": "npm run build:umd && node scripts/publishToCdn.ts"
18
18
  },
19
19
  "dependencies": {
20
+ "@alifd/next": "^1.24.18",
20
21
  "@alilc/lowcode-datasource-fetch-handler": "^1.1.4",
21
22
  "@zhubangyun/lowcode-render-core": "^5.1.14",
22
- "@zhubangyun/lowcode-utils": "^5.1.14",
23
23
  "@zhubangyun/lowcode-types": "^1.0.0",
24
- "@alifd/next": "^1.24.18",
25
- "axios": "^1.7.9",
24
+ "@zhubangyun/lowcode-utils": "^5.1.14",
25
+ "axios": "1.13.5",
26
26
  "case": "^1.6.3",
27
+ "dexie": "^4.3.0",
27
28
  "uuid": "^10.0.0"
28
29
  },
29
30
  "devDependencies": {
@@ -1,6 +0,0 @@
1
- /**
2
- * 遍历schema
3
- * @param schema
4
- * @param callback 返回true 继续往下遍历
5
- */
6
- export declare function forEachFormSchema(schema: any, callback: (child: any, index: number, children: any[]) => boolean): void;
@@ -1,14 +0,0 @@
1
- /**
2
- * 遍历schema
3
- * @param schema
4
- * @param callback 返回true 继续往下遍历
5
- */
6
- export function forEachFormSchema(schema, callback) {
7
- var _schema$children;
8
- schema === null || schema === void 0 ? void 0 : (_schema$children = schema.children) === null || _schema$children === void 0 ? void 0 : _schema$children.forEach(function (child, index, children) {
9
- var ctn = callback(child, index, children);
10
- if (ctn) {
11
- forEachFormSchema(child, callback);
12
- }
13
- });
14
- }
File without changes
@@ -1,6 +0,0 @@
1
- /**
2
- * 遍历schema
3
- * @param schema
4
- * @param callback 返回true 继续往下遍历
5
- */
6
- export declare function forEachFormSchema(schema: any, callback: (child: any, index: number, children: any[]) => boolean): void;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.forEachFormSchema = forEachFormSchema;
5
- /**
6
- * 遍历schema
7
- * @param schema
8
- * @param callback 返回true 继续往下遍历
9
- */
10
- function forEachFormSchema(schema, callback) {
11
- var _schema$children;
12
- schema === null || schema === void 0 ? void 0 : (_schema$children = schema.children) === null || _schema$children === void 0 ? void 0 : _schema$children.forEach(function (child, index, children) {
13
- var ctn = callback(child, index, children);
14
- if (ctn) {
15
- forEachFormSchema(child, callback);
16
- }
17
- });
18
- }
@@ -1 +0,0 @@
1
- "use strict";