@xuda.io/xuda-worker-bundle-min 1.3.1078 → 1.3.1080

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 (2) hide show
  1. package/index.js +42 -5
  2. 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: _ds.progDataSource.filterModelMongo,
2374
- filterModelSql: _ds.progDataSource.filterModelSql,
2395
+ filterModelMongo,
2396
+ filterModelSql,
2375
2397
  filterModelUserMongo: _ds.progDataSource.filterModelUserMongo,
2376
2398
  filterModelUserSql: _ds.progDataSource.filterModelUserSql,
2377
2399
  };
@@ -8194,7 +8216,13 @@ 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] ||
8223
+ (typeof val.defaultValue === "function"
8224
+ ? val?.defaultValue?.()
8225
+ : val?.defaultValue);
8198
8226
 
8199
8227
  if (props[`xu-exp:${fieldIdP}`]) {
8200
8228
  value = (
@@ -9496,11 +9524,20 @@ func.expression.get = async function (
9496
9524
  !["DbQuery", "alert", "exp", "api_rendered_output"].includes(
9497
9525
  sourceP
9498
9526
  ) &&
9499
- ["string", "date", "time"].includes(val.type) &&
9527
+ ["string", "date"].includes(val.type) &&
9528
+ var_Arr.length > 1
9529
+ ) {
9530
+ res[key] = "`" + val.value + "`";
9531
+ }
9532
+ // new Dec 18 2024 for Ishai
9533
+ if (
9534
+ ["api_rendered_output"].includes(sourceP) &&
9535
+ ["string", "date"].includes(val.type) &&
9500
9536
  var_Arr.length > 1
9501
9537
  ) {
9502
- res[key] = "`" + val.value + "`"; //res[key] = "'" + val.value + "'"; //
9538
+ res[key] = `"` + val.value + `"`;
9503
9539
  }
9540
+
9504
9541
  if (val.fieldId && val.value && typeof val.value === "string") {
9505
9542
  if (
9506
9543
  ["query", "condition", "range", "sort", "locate"].includes(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1078",
3
+ "version": "1.3.1080",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {