@xuda.io/runtime-bundle 1.0.1013 → 1.0.1015
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-slim.js
CHANGED
|
@@ -8650,7 +8650,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8650
8650
|
execute_xu_render_attributes: async function () {
|
|
8651
8651
|
const _data = queue_obj.paramsP.elem_val.$elm.data();
|
|
8652
8652
|
if (_data?.xuData?.paramsP) {
|
|
8653
|
-
await func.UI.screen.execute_xu_functions(SESSION_ID, null, _data.xuData.$root_container, _data.xuData.node, $(`[xu-ui-id="${_data.xuData.parent_element_ui_id}"`), _data.xuData.paramsP, {}, queue_obj.jobNoP,
|
|
8653
|
+
await func.UI.screen.execute_xu_functions(SESSION_ID, null, _data.xuData.$root_container, _data.xuData.node, $(`[xu-ui-id="${_data.xuData.parent_element_ui_id}"`), _data.xuData.paramsP, {}, queue_obj.jobNoP, _data.xuData.key, null, 'xu-render', queue_obj.paramsP.elem_val.$elm, {
|
|
8654
8654
|
key: 'xu-render',
|
|
8655
8655
|
value: queue_obj.paramsP.attr_value, //? "Y" : "N",
|
|
8656
8656
|
fields_arr: queue_obj.paramsP.fields_arr,
|
|
@@ -12702,34 +12702,33 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12702
12702
|
|
|
12703
12703
|
let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
|
|
12704
12704
|
// // was true before
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
|
|
12705
|
+
if ($elm.data().xuData.xurender_node) {
|
|
12706
|
+
$xurender.data({
|
|
12707
|
+
xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
12708
|
+
xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
12709
|
+
});
|
|
12710
|
+
} else {
|
|
12711
|
+
// default new state
|
|
12712
|
+
|
|
12713
|
+
$xurender.data({
|
|
12714
|
+
xuAttributes: $elm.data().xuAttributes || {},
|
|
12715
|
+
xuData: $elm.data().xuData || {},
|
|
12716
|
+
});
|
|
12717
|
+
const original_data_obj = {
|
|
12718
|
+
nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
12719
|
+
paramsP: $elm.data().xuData.paramsP,
|
|
12720
|
+
$container: $elm.clone(true),
|
|
12721
|
+
parent_infoP: parent_infoP,
|
|
12722
|
+
};
|
|
12723
12723
|
|
|
12724
|
-
|
|
12724
|
+
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
12725
12725
|
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12726
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
12727
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
12728
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
12729
|
+
}
|
|
12730
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
12729
12731
|
}
|
|
12730
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
12731
|
-
|
|
12732
|
-
// }
|
|
12733
12732
|
$elm.replaceWith(tmp_$div.children());
|
|
12734
12733
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
12735
12734
|
};
|
|
@@ -8651,7 +8651,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8651
8651
|
execute_xu_render_attributes: async function () {
|
|
8652
8652
|
const _data = queue_obj.paramsP.elem_val.$elm.data();
|
|
8653
8653
|
if (_data?.xuData?.paramsP) {
|
|
8654
|
-
await func.UI.screen.execute_xu_functions(SESSION_ID, null, _data.xuData.$root_container, _data.xuData.node, $(`[xu-ui-id="${_data.xuData.parent_element_ui_id}"`), _data.xuData.paramsP, {}, queue_obj.jobNoP,
|
|
8654
|
+
await func.UI.screen.execute_xu_functions(SESSION_ID, null, _data.xuData.$root_container, _data.xuData.node, $(`[xu-ui-id="${_data.xuData.parent_element_ui_id}"`), _data.xuData.paramsP, {}, queue_obj.jobNoP, _data.xuData.key, null, 'xu-render', queue_obj.paramsP.elem_val.$elm, {
|
|
8655
8655
|
key: 'xu-render',
|
|
8656
8656
|
value: queue_obj.paramsP.attr_value, //? "Y" : "N",
|
|
8657
8657
|
fields_arr: queue_obj.paramsP.fields_arr,
|
|
@@ -10427,34 +10427,33 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10427
10427
|
|
|
10428
10428
|
let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
|
|
10429
10429
|
// // was true before
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10430
|
+
if ($elm.data().xuData.xurender_node) {
|
|
10431
|
+
$xurender.data({
|
|
10432
|
+
xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
10433
|
+
xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
10434
|
+
});
|
|
10435
|
+
} else {
|
|
10436
|
+
// default new state
|
|
10437
|
+
|
|
10438
|
+
$xurender.data({
|
|
10439
|
+
xuAttributes: $elm.data().xuAttributes || {},
|
|
10440
|
+
xuData: $elm.data().xuData || {},
|
|
10441
|
+
});
|
|
10442
|
+
const original_data_obj = {
|
|
10443
|
+
nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
10444
|
+
paramsP: $elm.data().xuData.paramsP,
|
|
10445
|
+
$container: $elm.clone(true),
|
|
10446
|
+
parent_infoP: parent_infoP,
|
|
10447
|
+
};
|
|
10448
10448
|
|
|
10449
|
-
|
|
10449
|
+
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
10450
10450
|
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10451
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
10452
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
10453
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
10454
|
+
}
|
|
10455
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
10454
10456
|
}
|
|
10455
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
10456
|
-
|
|
10457
|
-
// }
|
|
10458
10457
|
$elm.replaceWith(tmp_$div.children());
|
|
10459
10458
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
10460
10459
|
};
|