@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.
- package/es/components/react-render/index.js +11 -1
- package/es/utils/api/form-api/form-api.assemble-entity.d.ts +2 -0
- package/es/utils/api/form-api/form-api.assemble-entity.js +101 -0
- package/es/utils/api/form-api/form-api.entity-map.d.ts +12 -0
- package/es/utils/api/form-api/form-api.entity-map.js +50 -0
- package/es/utils/api/{form-api.utils.d.ts → form-api/form-api.utils.d.ts} +3 -2
- package/es/utils/api/{form-api.utils.js → form-api/form-api.utils.js} +46 -23
- package/es/utils/api/form-api.js +10 -17
- package/es/utils/api/index.d.ts +6 -1
- package/es/utils/api/rest-api.d.ts +3 -1
- package/es/utils/api/schema-api.d.ts +2 -1
- package/es/utils/api/schema-api.js +1 -1
- package/es/utils/api/schema.util.d.ts +1 -0
- package/es/utils/api/schema.util.js +10 -0
- package/es/utils/cache/index.d.ts +0 -1
- package/es/utils/cache/index.js +58 -35
- package/es/utils/cache/index_db_cache.d.ts +9 -0
- package/es/utils/cache/index_db_cache.js +7 -0
- package/es/utils/common/SingletonInstanceMap.d.ts +2 -2
- package/es/utils/data/index.d.ts +3 -1
- package/es/utils/data/index.js +10 -3
- package/es/utils/page/index.d.ts +1 -0
- package/es/utils/page/index.js +1 -1
- package/es/utils/page/page-create-element.d.ts +6 -0
- package/es/utils/page/page-create-element.js +23 -0
- package/es/utils/page/page-form-group.js +10 -4
- package/es/utils/page/page-render.js +1 -1
- package/es/utils/page/page-schema-utils.js +19 -2
- package/es/utils/page/print-form.d.ts +1 -1
- package/es/utils/page/print-form.js +13 -7
- package/es/utils/uni-bridge.js +1 -3
- package/es/utils/util.common.d.ts +1 -1
- package/es/utils/util.common.js +1 -2
- package/lib/components/react-render/index.js +11 -1
- package/lib/utils/api/form-api/form-api.assemble-entity.d.ts +2 -0
- package/lib/utils/api/form-api/form-api.assemble-entity.js +105 -0
- package/lib/utils/api/form-api/form-api.entity-map.d.ts +12 -0
- package/lib/utils/api/form-api/form-api.entity-map.js +54 -0
- package/lib/utils/api/{form-api.utils.d.ts → form-api/form-api.utils.d.ts} +3 -2
- package/lib/utils/api/{form-api.utils.js → form-api/form-api.utils.js} +46 -22
- package/lib/utils/api/form-api.js +10 -17
- package/lib/utils/api/index.d.ts +6 -1
- package/lib/utils/api/rest-api.d.ts +3 -1
- package/lib/utils/api/schema-api.d.ts +2 -1
- package/lib/utils/api/schema-api.js +1 -1
- package/lib/utils/api/schema.util.d.ts +1 -0
- package/lib/utils/api/schema.util.js +11 -0
- package/lib/utils/cache/index.d.ts +0 -1
- package/lib/utils/cache/index.js +57 -34
- package/lib/utils/cache/index_db_cache.d.ts +9 -0
- package/lib/utils/cache/index_db_cache.js +11 -0
- package/lib/utils/common/SingletonInstanceMap.d.ts +2 -2
- package/lib/utils/data/index.d.ts +3 -1
- package/lib/utils/data/index.js +10 -3
- package/lib/utils/page/index.d.ts +1 -0
- package/lib/utils/page/index.js +4 -2
- package/lib/utils/page/page-create-element.d.ts +6 -0
- package/lib/utils/page/page-create-element.js +29 -0
- package/lib/utils/page/page-form-group.js +10 -4
- package/lib/utils/page/page-render.js +1 -1
- package/lib/utils/page/page-schema-utils.js +19 -2
- package/lib/utils/page/print-form.d.ts +1 -1
- package/lib/utils/page/print-form.js +13 -7
- package/lib/utils/uni-bridge.js +1 -3
- package/lib/utils/util.common.d.ts +1 -1
- package/lib/utils/util.common.js +2 -3
- package/package.json +5 -4
- package/es/utils/cache/schema.d.ts +0 -6
- package/es/utils/cache/schema.js +0 -14
- package/es/utils/utils.scrollbar-size.js +0 -0
- package/lib/utils/cache/schema.d.ts +0 -6
- package/lib/utils/cache/schema.js +0 -18
- package/lib/utils/utils.scrollbar-size.js +0 -1
package/lib/utils/uni-bridge.js
CHANGED
|
@@ -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
|
|
1
|
+
export declare function isTemplateHost(): boolean;
|
package/lib/utils/util.common.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhubangyun/lowcode-core",
|
|
3
|
-
"version": "6.
|
|
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
|
-
"@
|
|
25
|
-
"axios": "
|
|
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": {
|
package/es/utils/cache/schema.js
DELETED
|
@@ -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,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";
|