@xuda.io/xuda-worker-bundle-min 1.3.878 → 1.3.880

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 +27 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3264,7 +3264,8 @@ func.datasource.execute_field_init_events = async function (
3264
3264
  var args = _ds.args;
3265
3265
  var arr = _ds.dataSource_init_arr[rowIdP];
3266
3266
 
3267
- for await (const [key, val] of Object.entries(arr)) {
3267
+ // for await (const [key, val] of Object.entries(arr)) {
3268
+ for await (const val of arr) {
3268
3269
  if (!func.utils.is_onscreen_event(val.eventInfo.data.action)) {
3269
3270
  var cond = val?.eventInfo?.data?.enabled;
3270
3271
  var expression = undefined;
@@ -3342,7 +3343,7 @@ func.datasource.get_field_init_count = async function (
3342
3343
 
3343
3344
  const _view_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, _ds.prog_id);
3344
3345
 
3345
- _ds.dataSource_init_arr[rowIdP] = {};
3346
+ // _ds.dataSource_init_arr[rowIdP] = {};
3346
3347
  var ret = 0;
3347
3348
  // if (_ds.v.ViewFieldsObjs) {
3348
3349
  for await (const field_obj of _view_obj.progFields) {
@@ -3375,9 +3376,30 @@ func.datasource.get_field_init_count = async function (
3375
3376
  }
3376
3377
 
3377
3378
  if (trigger_obj.data.enabled) {
3378
- SESSION_OBJ[SESSION_ID].DS_GLB[dataSourceSession].dataSource_init_arr[
3379
- rowIdP
3380
- ][ret] = {
3379
+ if (!_ds.dataSource_init_arr[rowIdP]) {
3380
+ _ds.dataSource_init_arr[rowIdP] = [];
3381
+ }
3382
+
3383
+ // _ds.dataSource_init_arr[rowIdP][ret] = {
3384
+ // eventInfo: trigger_obj,
3385
+ // triggerId: trigger_obj.id,
3386
+ // fieldId: fieldId,
3387
+ // rowId: rowIdP,
3388
+ // colId: field_obj.id,
3389
+ // node_id: args.prog_id + "_" + trigger_obj.id + "_" + field_obj.id,
3390
+ // fieldProp: field_obj,
3391
+ // DEBUG_INFO_OBJ: {
3392
+ // module: _ds.viewModule,
3393
+ // action: "init field event",
3394
+ // prop: fieldId,
3395
+ // source: _ds.viewSourceDesc,
3396
+ // type: "event",
3397
+ // prog_id: args.prog_id,
3398
+ // dsSession: dataSourceSession,
3399
+ // },
3400
+ // };
3401
+
3402
+ _ds.dataSource_init_arr[rowIdP].push = {
3381
3403
  eventInfo: trigger_obj,
3382
3404
  triggerId: trigger_obj.id,
3383
3405
  fieldId: fieldId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.878",
3
+ "version": "1.3.880",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {