@ibiz-template/runtime 0.5.3-beta.6 → 0.5.3-beta.7
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/dist/index.esm.js +17 -8
- package/dist/index.system.min.js +1 -1
- package/out/application.js +1 -1
- package/out/de-logic/utils/handle-src-val.d.ts +15 -0
- package/out/de-logic/utils/handle-src-val.d.ts.map +1 -1
- package/out/de-logic/utils/handle-src-val.js +10 -1
- package/out/service/mqtt/mqtt.service.js +2 -2
- package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
- package/out/service/service/auth/v7-auth.service.js +2 -0
- package/out/service/utils/res-path/res-path.d.ts +2 -2
- package/out/service/utils/res-path/res-path.d.ts.map +1 -1
- package/out/service/utils/res-path/res-path.js +1 -1
- package/out/ui-logic/ui-logic-node/debug-param-node/debug-param-node.js +1 -1
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +0 -1
- package/out/utils/script/script-function.js +1 -1
- package/out/utils/ui-domain/ui-domain.d.ts.map +1 -1
- package/out/utils/ui-domain/ui-domain.js +0 -1
- package/package.json +3 -3
- package/src/application.ts +1 -1
- package/src/de-logic/utils/handle-src-val.ts +29 -1
- package/src/service/mqtt/mqtt.service.ts +2 -2
- package/src/service/service/auth/v7-auth.service.ts +2 -0
- package/src/service/utils/res-path/res-path.ts +2 -2
- package/src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts +1 -1
- package/src/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.ts +0 -1
- package/src/utils/script/script-function.ts +1 -1
- package/src/utils/ui-domain/ui-domain.ts +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -1501,7 +1501,7 @@ var ScriptFunction = class {
|
|
|
1501
1501
|
try {
|
|
1502
1502
|
return fn.apply({}, args);
|
|
1503
1503
|
} catch (error) {
|
|
1504
|
-
|
|
1504
|
+
ibiz.log.error("\u62A5\u9519\u811A\u672C", code);
|
|
1505
1505
|
throw error;
|
|
1506
1506
|
}
|
|
1507
1507
|
};
|
|
@@ -2935,7 +2935,6 @@ var UIDomain = class {
|
|
|
2935
2935
|
this.rs2Map.get(major).push(config);
|
|
2936
2936
|
});
|
|
2937
2937
|
});
|
|
2938
|
-
console.log(Array.from(this.rs2Map.values()));
|
|
2939
2938
|
}
|
|
2940
2939
|
/**
|
|
2941
2940
|
* 界面域销毁
|
|
@@ -7230,6 +7229,8 @@ var V7AuthService = class {
|
|
|
7230
7229
|
clearCookie(CoreConst.TOKEN_EXPIRES);
|
|
7231
7230
|
clearCookie(CoreConst.TOKEN_REMEMBER);
|
|
7232
7231
|
clearCookie(CoreConst.IS_ANONYMOUS);
|
|
7232
|
+
ibiz.appData = void 0;
|
|
7233
|
+
ibiz.orgData = void 0;
|
|
7233
7234
|
return true;
|
|
7234
7235
|
} catch (err) {
|
|
7235
7236
|
ibiz.notification.error({
|
|
@@ -7962,7 +7963,7 @@ import { clone as clone10 } from "ramda";
|
|
|
7962
7963
|
import { ModelError as ModelError10 } from "@ibiz-template/core";
|
|
7963
7964
|
import { clone as clone9 } from "ramda";
|
|
7964
7965
|
function handleSrcVal(ctx, srcValParams) {
|
|
7965
|
-
const { srcDELogicParamId, srcFieldName, srcValue } = srcValParams;
|
|
7966
|
+
const { srcDELogicParamId, srcFieldName, srcValue, expression } = srcValParams;
|
|
7966
7967
|
const srcValueType = srcValParams.srcValueType || "SRCDLPARAM";
|
|
7967
7968
|
let srcField = srcFieldName;
|
|
7968
7969
|
let value;
|
|
@@ -7992,6 +7993,15 @@ function handleSrcVal(ctx, srcValParams) {
|
|
|
7992
7993
|
case "ENVPARAM":
|
|
7993
7994
|
value = clone9(ibiz.env);
|
|
7994
7995
|
break;
|
|
7996
|
+
case "EXPRESSION":
|
|
7997
|
+
if (!expression) {
|
|
7998
|
+
throw new ModelError10(srcValParams, "\u8868\u8FBE\u5F0F\u4E3A\u7A7A");
|
|
7999
|
+
}
|
|
8000
|
+
value = ScriptFactory.execScriptFn(ctx, expression, {
|
|
8001
|
+
singleRowReturn: true,
|
|
8002
|
+
isAsync: false
|
|
8003
|
+
});
|
|
8004
|
+
break;
|
|
7995
8005
|
default:
|
|
7996
8006
|
throw new ModelError10(srcValParams, "\u6682\u672A\u652F\u6301\u6E90\u503C\u7C7B\u578B".concat(srcValueType));
|
|
7997
8007
|
}
|
|
@@ -9964,10 +9974,10 @@ var MqttService = class {
|
|
|
9964
9974
|
ibiz.log.debug("mqtt message", topic, payload.toString());
|
|
9965
9975
|
});
|
|
9966
9976
|
this.client.on("reconnect", () => {
|
|
9967
|
-
ibiz.log.
|
|
9977
|
+
ibiz.log.warn("mqtt reconnect");
|
|
9968
9978
|
});
|
|
9969
9979
|
this.client.on("close", () => {
|
|
9970
|
-
|
|
9980
|
+
ibiz.log.warn("mqtt close");
|
|
9971
9981
|
});
|
|
9972
9982
|
}
|
|
9973
9983
|
/**
|
|
@@ -10455,7 +10465,7 @@ var Application = class {
|
|
|
10455
10465
|
async init() {
|
|
10456
10466
|
await this.authority.init();
|
|
10457
10467
|
await this.loadAppModelStyle();
|
|
10458
|
-
if (ibiz.env.enableMqtt && ibiz.appData) {
|
|
10468
|
+
if (ibiz.env.enableMqtt && ibiz.appData && ibiz.auth.isAnonymous !== true) {
|
|
10459
10469
|
this.mqtt = new MqttService(
|
|
10460
10470
|
ibiz.appData.mqtttopic,
|
|
10461
10471
|
getToken(),
|
|
@@ -16017,7 +16027,7 @@ var DebugParamNode = class extends UILogicNode {
|
|
|
16017
16027
|
throw new RuntimeModelError38(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
|
|
16018
16028
|
}
|
|
16019
16029
|
const param = ctx.params[dstDEUILogicParamId];
|
|
16020
|
-
|
|
16030
|
+
ibiz.log.debug("\u903B\u8F91\u8282\u70B9".concat(name, "\u64CD\u4F5C\u53C2\u6570\u503C:"), param);
|
|
16021
16031
|
}
|
|
16022
16032
|
};
|
|
16023
16033
|
|
|
@@ -16209,7 +16219,6 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
16209
16219
|
// src/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.ts
|
|
16210
16220
|
var RawJSCodeNode = class extends UILogicNode {
|
|
16211
16221
|
async exec(ctx) {
|
|
16212
|
-
console.log(ctx);
|
|
16213
16222
|
ScriptFactory.execScriptFn(
|
|
16214
16223
|
{
|
|
16215
16224
|
view: ctx.view,
|