@xuda.io/runtime-bundle 1.0.597 → 1.0.599
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.
|
@@ -31366,6 +31366,11 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31366
31366
|
}, 100);
|
|
31367
31367
|
return;
|
|
31368
31368
|
}
|
|
31369
|
+
const _session = SESSION_OBJ[SESSION_ID];
|
|
31370
|
+
if (_session.engine_mode === 'live_preview') {
|
|
31371
|
+
console.info('========= xu-attributes refresh info ==============');
|
|
31372
|
+
console.info('fields_arr:', fields_arr);
|
|
31373
|
+
}
|
|
31369
31374
|
|
|
31370
31375
|
var selectors = {};
|
|
31371
31376
|
var search_from = 'body';
|
|
@@ -31465,21 +31470,18 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31465
31470
|
|
|
31466
31471
|
const add_execute_queue = async function (type) {
|
|
31467
31472
|
if (!elem_val.$elm?.data?.()?.xuData) return;
|
|
31468
|
-
|
|
31469
|
-
|
|
31473
|
+
const obj = {
|
|
31474
|
+
ui_type: elem_val.$elm.data().xuData.ui_type,
|
|
31470
31475
|
SESSION_ID,
|
|
31471
|
-
|
|
31472
|
-
|
|
31473
|
-
|
|
31474
|
-
|
|
31475
|
-
|
|
31476
|
-
|
|
31477
|
-
|
|
31478
|
-
|
|
31479
|
-
|
|
31480
|
-
new_job,
|
|
31481
|
-
elem_val.$elm,
|
|
31482
|
-
);
|
|
31476
|
+
fields_arr,
|
|
31477
|
+
elem_key,
|
|
31478
|
+
elem_val,
|
|
31479
|
+
};
|
|
31480
|
+
new_job = await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', type, obj, new_job, elem_val.$elm);
|
|
31481
|
+
|
|
31482
|
+
if (_session.engine_mode === 'live_preview') {
|
|
31483
|
+
console.info(type, obj);
|
|
31484
|
+
}
|
|
31483
31485
|
};
|
|
31484
31486
|
//////////// process render first ///////////////
|
|
31485
31487
|
|
|
@@ -31501,25 +31503,20 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31501
31503
|
}
|
|
31502
31504
|
|
|
31503
31505
|
if (!elem_val?.$elm?.data()?.xuData?.ui_type) continue;
|
|
31504
|
-
|
|
31505
|
-
|
|
31506
|
-
new_job = await func.UI.worker.add_to_queue(
|
|
31506
|
+
const obj = {
|
|
31507
|
+
ui_type: elem_val.$elm.data().xuData.ui_type,
|
|
31507
31508
|
SESSION_ID,
|
|
31508
|
-
|
|
31509
|
-
|
|
31510
|
-
|
|
31511
|
-
|
|
31512
|
-
|
|
31513
|
-
|
|
31514
|
-
|
|
31515
|
-
fields_arr,
|
|
31516
|
-
attr_value,
|
|
31517
|
-
},
|
|
31518
|
-
new_job,
|
|
31519
|
-
elem_val.$elm,
|
|
31520
|
-
elem_val.$elm.data().xuData.paramsP.dsSessionP,
|
|
31521
|
-
);
|
|
31509
|
+
elem_key,
|
|
31510
|
+
elem_val,
|
|
31511
|
+
fields_arr,
|
|
31512
|
+
attr_value,
|
|
31513
|
+
};
|
|
31514
|
+
new_job = jobNoP;
|
|
31515
|
+
new_job = await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_render_attributes', obj, new_job, elem_val.$elm, elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
31522
31516
|
performed_render = true;
|
|
31517
|
+
if (_session.engine_mode === 'live_preview') {
|
|
31518
|
+
console.info('execute_xu_render_attributes', obj);
|
|
31519
|
+
}
|
|
31523
31520
|
}
|
|
31524
31521
|
|
|
31525
31522
|
if (performed_render || elem_val.$elm[0].tagName === 'XURENDER') continue; // bypass job
|
|
@@ -31559,24 +31556,20 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31559
31556
|
$.each(_$elem.data()?.xuAttributes, function (key, val) {
|
|
31560
31557
|
_elem_val.attributes.push(key);
|
|
31561
31558
|
});
|
|
31562
|
-
|
|
31563
|
-
|
|
31559
|
+
const obj = {
|
|
31560
|
+
ui_type: _elem_val.$elm.data().xuData.ui_type,
|
|
31564
31561
|
SESSION_ID,
|
|
31565
|
-
|
|
31566
|
-
|
|
31567
|
-
|
|
31568
|
-
|
|
31569
|
-
|
|
31570
|
-
elem_key: _elem_key,
|
|
31571
|
-
elem_val: _elem_val,
|
|
31572
|
-
fields_arr,
|
|
31573
|
-
},
|
|
31574
|
-
new_job,
|
|
31575
|
-
_elem_val.$elm,
|
|
31576
|
-
_elem_val.$elm.data().xuData.paramsP.dsSessionP,
|
|
31577
|
-
);
|
|
31562
|
+
elem_key: _elem_key,
|
|
31563
|
+
elem_val: _elem_val,
|
|
31564
|
+
fields_arr,
|
|
31565
|
+
};
|
|
31566
|
+
await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_for', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
31578
31567
|
|
|
31579
31568
|
refreshed_ids.push(parent_element_ui_id);
|
|
31569
|
+
|
|
31570
|
+
if (_session.engine_mode === 'live_preview') {
|
|
31571
|
+
console.info('execute_xu_for', obj);
|
|
31572
|
+
}
|
|
31580
31573
|
}
|
|
31581
31574
|
}
|
|
31582
31575
|
|
|
@@ -31627,22 +31620,18 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31627
31620
|
$.each(_$elem.data()?.xuAttributes, function (key, val) {
|
|
31628
31621
|
_elem_val.attributes.push(key);
|
|
31629
31622
|
});
|
|
31630
|
-
|
|
31631
|
-
|
|
31623
|
+
const obj = {
|
|
31624
|
+
ui_type: _elem_val.$elm.data().xuData.ui_type,
|
|
31632
31625
|
SESSION_ID,
|
|
31633
|
-
|
|
31634
|
-
|
|
31635
|
-
|
|
31636
|
-
|
|
31637
|
-
|
|
31638
|
-
|
|
31639
|
-
|
|
31640
|
-
|
|
31641
|
-
|
|
31642
|
-
new_job,
|
|
31643
|
-
_elem_val.$elm,
|
|
31644
|
-
_elem_val.$elm.data().xuData.paramsP.dsSessionP,
|
|
31645
|
-
);
|
|
31626
|
+
elem_key: _elem_key,
|
|
31627
|
+
elem_val: _elem_val,
|
|
31628
|
+
fields_arr,
|
|
31629
|
+
};
|
|
31630
|
+
await func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'execute_xu_for', obj, new_job, _elem_val.$elm, _elem_val.$elm.data().xuData.paramsP.dsSessionP);
|
|
31631
|
+
|
|
31632
|
+
if (_session.engine_mode === 'live_preview') {
|
|
31633
|
+
console.info('node execute_xu_for', obj);
|
|
31634
|
+
}
|
|
31646
31635
|
|
|
31647
31636
|
break;
|
|
31648
31637
|
}
|
|
@@ -31696,6 +31685,10 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31696
31685
|
}
|
|
31697
31686
|
|
|
31698
31687
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
31688
|
+
|
|
31689
|
+
if (_session.engine_mode === 'live_preview') {
|
|
31690
|
+
console.info('===================================================');
|
|
31691
|
+
}
|
|
31699
31692
|
};
|
|
31700
31693
|
|
|
31701
31694
|
func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr, datasource_changed, fields_changed_datasource) {
|