@xuda.io/runtime-bundle 1.0.1015 → 1.0.1017
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,12 +8650,26 @@ 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(
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8653
|
+
await func.UI.screen.execute_xu_functions(
|
|
8654
|
+
SESSION_ID,
|
|
8655
|
+
null,
|
|
8656
|
+
_data.xuData.$root_container,
|
|
8657
|
+
_data.xuData.node,
|
|
8658
|
+
$(`[xu-ui-id="${_data.xuData.parent_element_ui_id}"`),
|
|
8659
|
+
_data.xuData.paramsP,
|
|
8660
|
+
{},
|
|
8661
|
+
queue_obj.jobNoP,
|
|
8662
|
+
_data.xuData.key,
|
|
8663
|
+
_data.xuData.parent_nodeP,
|
|
8664
|
+
'xu-render',
|
|
8665
|
+
queue_obj.paramsP.elem_val.$elm,
|
|
8666
|
+
{
|
|
8667
|
+
key: 'xu-render',
|
|
8668
|
+
value: queue_obj.paramsP.attr_value, //? "Y" : "N",
|
|
8669
|
+
fields_arr: queue_obj.paramsP.fields_arr,
|
|
8670
|
+
jobNoP: queue_obj.jobNoP,
|
|
8671
|
+
},
|
|
8672
|
+
);
|
|
8659
8673
|
}
|
|
8660
8674
|
|
|
8661
8675
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
@@ -12586,7 +12600,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12586
12600
|
var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
|
|
12587
12601
|
const init_render = async function () {
|
|
12588
12602
|
if (!value) {
|
|
12589
|
-
|
|
12603
|
+
const cloned_$div = $elm.clone(true);
|
|
12590
12604
|
|
|
12591
12605
|
const xu_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
|
|
12592
12606
|
|
|
@@ -12702,33 +12716,44 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12702
12716
|
|
|
12703
12717
|
let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
|
|
12704
12718
|
// // was true before
|
|
12705
|
-
if ($elm.data().xuData.xurender_node) {
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
} else {
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
|
|
12719
|
+
// if ($elm.data().xuData.xurender_node) {
|
|
12720
|
+
// $xurender.data({
|
|
12721
|
+
// xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
12722
|
+
// xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
12723
|
+
// });
|
|
12724
|
+
// } else {
|
|
12725
|
+
// default new state
|
|
12726
|
+
|
|
12727
|
+
$xurender.data({
|
|
12728
|
+
xuAttributes: $elm.data().xuAttributes || {},
|
|
12729
|
+
xuData: $elm.data().xuData || {},
|
|
12730
|
+
});
|
|
12731
|
+
// const original_data_obj = {
|
|
12732
|
+
// nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
12733
|
+
// paramsP: $elm.data().xuData.paramsP,
|
|
12734
|
+
// $container: $elm.clone(true),
|
|
12735
|
+
// parent_infoP: parent_infoP,
|
|
12736
|
+
// };
|
|
12737
|
+
const cloned_$div = $elm.clone(true);
|
|
12738
|
+
let original_data_obj = {
|
|
12739
|
+
force_render: false,
|
|
12740
|
+
$container: cloned_$div,
|
|
12741
|
+
nodeP: cloned_$div.data().xuData.node_org,
|
|
12742
|
+
parent_infoP,
|
|
12743
|
+
paramsP,
|
|
12744
|
+
keyP,
|
|
12745
|
+
parent_nodeP, //:cloned_$div.data().xuData.original_data_obj.parent_nodeP,
|
|
12746
|
+
$root_container,
|
|
12747
|
+
};
|
|
12723
12748
|
|
|
12724
|
-
|
|
12749
|
+
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
12725
12750
|
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
}
|
|
12730
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
12751
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
12752
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
12753
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
12731
12754
|
}
|
|
12755
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
12756
|
+
// }
|
|
12732
12757
|
$elm.replaceWith(tmp_$div.children());
|
|
12733
12758
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
12734
12759
|
};
|
|
@@ -8651,12 +8651,26 @@ 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(
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8654
|
+
await func.UI.screen.execute_xu_functions(
|
|
8655
|
+
SESSION_ID,
|
|
8656
|
+
null,
|
|
8657
|
+
_data.xuData.$root_container,
|
|
8658
|
+
_data.xuData.node,
|
|
8659
|
+
$(`[xu-ui-id="${_data.xuData.parent_element_ui_id}"`),
|
|
8660
|
+
_data.xuData.paramsP,
|
|
8661
|
+
{},
|
|
8662
|
+
queue_obj.jobNoP,
|
|
8663
|
+
_data.xuData.key,
|
|
8664
|
+
_data.xuData.parent_nodeP,
|
|
8665
|
+
'xu-render',
|
|
8666
|
+
queue_obj.paramsP.elem_val.$elm,
|
|
8667
|
+
{
|
|
8668
|
+
key: 'xu-render',
|
|
8669
|
+
value: queue_obj.paramsP.attr_value, //? "Y" : "N",
|
|
8670
|
+
fields_arr: queue_obj.paramsP.fields_arr,
|
|
8671
|
+
jobNoP: queue_obj.jobNoP,
|
|
8672
|
+
},
|
|
8673
|
+
);
|
|
8660
8674
|
}
|
|
8661
8675
|
|
|
8662
8676
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
@@ -10311,7 +10325,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10311
10325
|
var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
|
|
10312
10326
|
const init_render = async function () {
|
|
10313
10327
|
if (!value) {
|
|
10314
|
-
|
|
10328
|
+
const cloned_$div = $elm.clone(true);
|
|
10315
10329
|
|
|
10316
10330
|
const xu_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
|
|
10317
10331
|
|
|
@@ -10427,33 +10441,44 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10427
10441
|
|
|
10428
10442
|
let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
|
|
10429
10443
|
// // was true before
|
|
10430
|
-
if ($elm.data().xuData.xurender_node) {
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
} else {
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10444
|
+
// if ($elm.data().xuData.xurender_node) {
|
|
10445
|
+
// $xurender.data({
|
|
10446
|
+
// xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
|
|
10447
|
+
// xuData: $elm.data().xuData.xurender_node.data().xuData || {},
|
|
10448
|
+
// });
|
|
10449
|
+
// } else {
|
|
10450
|
+
// default new state
|
|
10451
|
+
|
|
10452
|
+
$xurender.data({
|
|
10453
|
+
xuAttributes: $elm.data().xuAttributes || {},
|
|
10454
|
+
xuData: $elm.data().xuData || {},
|
|
10455
|
+
});
|
|
10456
|
+
// const original_data_obj = {
|
|
10457
|
+
// nodeP: _.cloneDeep($elm.data().xuData.node_org),
|
|
10458
|
+
// paramsP: $elm.data().xuData.paramsP,
|
|
10459
|
+
// $container: $elm.clone(true),
|
|
10460
|
+
// parent_infoP: parent_infoP,
|
|
10461
|
+
// };
|
|
10462
|
+
const cloned_$div = $elm.clone(true);
|
|
10463
|
+
let original_data_obj = {
|
|
10464
|
+
force_render: false,
|
|
10465
|
+
$container: cloned_$div,
|
|
10466
|
+
nodeP: cloned_$div.data().xuData.node_org,
|
|
10467
|
+
parent_infoP,
|
|
10468
|
+
paramsP,
|
|
10469
|
+
keyP,
|
|
10470
|
+
parent_nodeP, //:cloned_$div.data().xuData.original_data_obj.parent_nodeP,
|
|
10471
|
+
$root_container,
|
|
10472
|
+
};
|
|
10448
10473
|
|
|
10449
|
-
|
|
10474
|
+
$xurender.data().xuData.original_data_obj = original_data_obj;
|
|
10450
10475
|
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
}
|
|
10455
|
-
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
10476
|
+
const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
|
|
10477
|
+
if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
|
|
10478
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
|
|
10456
10479
|
}
|
|
10480
|
+
UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
|
|
10481
|
+
// }
|
|
10457
10482
|
$elm.replaceWith(tmp_$div.children());
|
|
10458
10483
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
10459
10484
|
};
|