@xuda.io/xuda-worker-bundle-min 1.3.1078 → 1.3.1079
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/index.js +41 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2368,10 +2368,32 @@ func.datasource.execute = async function (
|
|
|
2368
2368
|
_ds.v,
|
|
2369
2369
|
_ds
|
|
2370
2370
|
);
|
|
2371
|
+
|
|
2372
|
+
let filterModelMongo = _ds.progDataSource.filterModelMongo;
|
|
2373
|
+
if (_ds.progDataSource.filterModelMongoFx) {
|
|
2374
|
+
let ret = await func.expression.get(
|
|
2375
|
+
SESSION_ID,
|
|
2376
|
+
_ds.progDataSource.filterModelMongoFx,
|
|
2377
|
+
dataSourceSession,
|
|
2378
|
+
"query"
|
|
2379
|
+
);
|
|
2380
|
+
filterModelMongo = ret.result;
|
|
2381
|
+
}
|
|
2382
|
+
let filterModelSql = _ds.progDataSource.filterModelSql;
|
|
2383
|
+
if (_ds.progDataSource.filterModelSqlFx) {
|
|
2384
|
+
let ret = await func.expression.get(
|
|
2385
|
+
SESSION_ID,
|
|
2386
|
+
_ds.progDataSource.filterModelSqlFx,
|
|
2387
|
+
dataSourceSession,
|
|
2388
|
+
"query"
|
|
2389
|
+
);
|
|
2390
|
+
filterModelSql = ret.result;
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2371
2393
|
const filterModel = {
|
|
2372
2394
|
filterModelNative: _ds.progDataSource.filterModelNative,
|
|
2373
|
-
filterModelMongo
|
|
2374
|
-
filterModelSql
|
|
2395
|
+
filterModelMongo,
|
|
2396
|
+
filterModelSql,
|
|
2375
2397
|
filterModelUserMongo: _ds.progDataSource.filterModelUserMongo,
|
|
2376
2398
|
filterModelUserSql: _ds.progDataSource.filterModelUserSql,
|
|
2377
2399
|
};
|
|
@@ -8194,7 +8216,12 @@ func.events.execute = async function (
|
|
|
8194
8216
|
);
|
|
8195
8217
|
};
|
|
8196
8218
|
const get_property_value = async function (fieldIdP, val) {
|
|
8197
|
-
var value = props[fieldIdP];
|
|
8219
|
+
// var value = props[fieldIdP];
|
|
8220
|
+
|
|
8221
|
+
var value =
|
|
8222
|
+
props[fieldIdP] || typeof val.defaultValue === "function"
|
|
8223
|
+
? val?.defaultValue?.()
|
|
8224
|
+
: val?.defaultValue;
|
|
8198
8225
|
|
|
8199
8226
|
if (props[`xu-exp:${fieldIdP}`]) {
|
|
8200
8227
|
value = (
|
|
@@ -9496,11 +9523,20 @@ func.expression.get = async function (
|
|
|
9496
9523
|
!["DbQuery", "alert", "exp", "api_rendered_output"].includes(
|
|
9497
9524
|
sourceP
|
|
9498
9525
|
) &&
|
|
9499
|
-
["string", "date"
|
|
9526
|
+
["string", "date"].includes(val.type) &&
|
|
9527
|
+
var_Arr.length > 1
|
|
9528
|
+
) {
|
|
9529
|
+
res[key] = "`" + val.value + "`";
|
|
9530
|
+
}
|
|
9531
|
+
// new Dec 18 2024 for Ishai
|
|
9532
|
+
if (
|
|
9533
|
+
["api_rendered_output"].includes(sourceP) &&
|
|
9534
|
+
["string", "date"].includes(val.type) &&
|
|
9500
9535
|
var_Arr.length > 1
|
|
9501
9536
|
) {
|
|
9502
|
-
res[key] = "`
|
|
9537
|
+
res[key] = `"` + val.value + `"`;
|
|
9503
9538
|
}
|
|
9539
|
+
|
|
9504
9540
|
if (val.fieldId && val.value && typeof val.value === "string") {
|
|
9505
9541
|
if (
|
|
9506
9542
|
["query", "condition", "range", "sort", "locate"].includes(
|