@xuda.io/runtime-bundle 1.0.371 → 1.0.373
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/js/xuda-runtime-bundle.js +7 -2
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +7 -2
- package/js/xuda-runtime-slim.min.es.js +7 -2
- package/js/xuda-runtime-slim.min.js +2 -2
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +1 -0
- package/js/xuda-worker-bundle.js +1 -0
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -10570,6 +10570,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
10570
10570
|
|
|
10571
10571
|
const ret = await func.datasource.get_value(SESSION_ID, val.fieldId, dsSessionP, rowIdP); // find field in dataSources
|
|
10572
10572
|
console.log(valP, val.fieldId, ret);
|
|
10573
|
+
debugger;
|
|
10573
10574
|
await replace_value_in_string(ret.ret, ret.fieldIdP);
|
|
10574
10575
|
}
|
|
10575
10576
|
}
|
|
@@ -11328,8 +11329,12 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
11328
11329
|
|
|
11329
11330
|
if (key.substr(0, 8) === 'xu-class') {
|
|
11330
11331
|
try {
|
|
11331
|
-
let obj = JSON.parse(val);
|
|
11332
|
-
|
|
11332
|
+
// let obj = JSON.parse(val);
|
|
11333
|
+
|
|
11334
|
+
const classes_string = val;
|
|
11335
|
+
const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
|
|
11336
|
+
|
|
11337
|
+
$.each(classes_obj, function (cla, cond) {
|
|
11333
11338
|
if (cond.includes(val_field) || cond?.includes?.(parameter_in_filed_id)) {
|
|
11334
11339
|
// attr.push("xuClass");
|
|
11335
11340
|
attr.push('xu-class');
|
|
@@ -9399,8 +9399,12 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
9399
9399
|
|
|
9400
9400
|
if (key.substr(0, 8) === 'xu-class') {
|
|
9401
9401
|
try {
|
|
9402
|
-
let obj = JSON.parse(val);
|
|
9403
|
-
|
|
9402
|
+
// let obj = JSON.parse(val);
|
|
9403
|
+
|
|
9404
|
+
const classes_string = val;
|
|
9405
|
+
const classes_obj = _.isString(classes_string) ? JSON.parse(classes_string) : _.defaults(classes_string, {});
|
|
9406
|
+
|
|
9407
|
+
$.each(classes_obj, function (cla, cond) {
|
|
9404
9408
|
if (cond.includes(val_field) || cond?.includes?.(parameter_in_filed_id)) {
|
|
9405
9409
|
// attr.push("xuClass");
|
|
9406
9410
|
attr.push('xu-class');
|
|
@@ -14273,6 +14277,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
14273
14277
|
|
|
14274
14278
|
const ret = await func.datasource.get_value(SESSION_ID, val.fieldId, dsSessionP, rowIdP); // find field in dataSources
|
|
14275
14279
|
console.log(valP, val.fieldId, ret);
|
|
14280
|
+
debugger;
|
|
14276
14281
|
await replace_value_in_string(ret.ret, ret.fieldIdP);
|
|
14277
14282
|
}
|
|
14278
14283
|
}
|