@xuda.io/runtime-bundle 1.0.1235 → 1.0.1237
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-bundle.js +62 -13
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +20 -13
- package/js/xuda-runtime-slim.min.es.js +20 -13
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-runtime-vendor.js +42 -0
- package/js/xuda-runtime-vendor.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +7 -5
- package/js/xuda-worker-bundle.js +7 -5
- package/js/xuda-worker-bundle.min.js +1 -1
- package/js/xuda_worker.js +3 -2
- package/js/xuda_worker.min.js +1 -1
- package/package.json +4 -2
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -3273,10 +3273,10 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
3273
3273
|
|
|
3274
3274
|
delete _ds.v.old_dataSource; // to eliminate parse error
|
|
3275
3275
|
delete _ds.rows_found;
|
|
3276
|
-
// _ds.raw_data = {};
|
|
3277
3276
|
_ds.data_feed = {};
|
|
3278
3277
|
|
|
3279
|
-
_ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
3278
|
+
// _ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
3279
|
+
_ds.v.old_dataSource = klona(_ds);
|
|
3280
3280
|
} catch (err) {
|
|
3281
3281
|
console.error('function: init_existing_dataSource - error');
|
|
3282
3282
|
return;
|
|
@@ -4906,11 +4906,12 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4906
4906
|
return Math.min(...arr.map(Number));
|
|
4907
4907
|
}
|
|
4908
4908
|
|
|
4909
|
-
await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
4909
|
+
// await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
4910
|
+
await func.UI.screen.refresh_xu_attributes(SESSION_ID, klona(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
4910
4911
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
4911
4912
|
await func.UI.screen.refresh_screen(
|
|
4912
4913
|
SESSION_ID,
|
|
4913
|
-
_.cloneDeep(fields_changed),
|
|
4914
|
+
klona(fields_changed), // _.cloneDeep(fields_changed),
|
|
4914
4915
|
null,
|
|
4915
4916
|
datasource_changed[0], // refresh the current datasource only
|
|
4916
4917
|
);
|
|
@@ -5561,7 +5562,8 @@ func.datasource.set_VIEW_data = async function (SESSION_ID, args, _ds) {
|
|
|
5561
5562
|
};
|
|
5562
5563
|
_ds.viewEventExec_arr = {};
|
|
5563
5564
|
|
|
5564
|
-
var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
5565
|
+
// var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
5566
|
+
var view = klona(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
5565
5567
|
|
|
5566
5568
|
_ds.v.dataSourceSrcType = view.dataSourceSrcType;
|
|
5567
5569
|
|
|
@@ -11311,8 +11313,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
11311
11313
|
|
|
11312
11314
|
let _session = SESSION_OBJ[SESSION_ID];
|
|
11313
11315
|
|
|
11314
|
-
const screenInfo = _.cloneDeep(screen_ret);
|
|
11315
|
-
|
|
11316
|
+
// const screenInfo = _.cloneDeep(screen_ret);
|
|
11317
|
+
const screenInfo = klona(screen_ret);
|
|
11316
11318
|
|
|
11317
11319
|
var screen_type = source_functionP?.split('_')?.[1]; //|| (is_panelP && "panel");
|
|
11318
11320
|
|
|
@@ -11456,7 +11458,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
11456
11458
|
return func.utils.alerts.invoke(SESSION_ID, 'system_msg', 'SYS_MSG_0780', params.renderType, ret.dsSessionP);
|
|
11457
11459
|
}
|
|
11458
11460
|
var node;
|
|
11459
|
-
node = _.cloneDeep(viewDoc.progUi);
|
|
11461
|
+
// node = _.cloneDeep(viewDoc.progUi);
|
|
11462
|
+
node = klona(viewDoc.progUi);
|
|
11460
11463
|
if (!node.length) return console.warn('ui node empty');
|
|
11461
11464
|
const ret_render_$container = await func.UI.screen.render_ui_tree(SESSION_ID, $rootFrame, node[0], null, params, jobNoP, null, null, null, null, null, $rootFrame);
|
|
11462
11465
|
|
|
@@ -12023,7 +12026,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12023
12026
|
const new_$div = await func.UI.screen.render_ui_tree(
|
|
12024
12027
|
SESSION_ID,
|
|
12025
12028
|
$elm, // the wrapper
|
|
12026
|
-
_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
12029
|
+
klona($elm.data().xuData.node), //_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
12027
12030
|
{},
|
|
12028
12031
|
elm_data.xuData.paramsP, // the wrapper params
|
|
12029
12032
|
null,
|
|
@@ -12986,7 +12989,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12986
12989
|
is_val_dynamic_field,
|
|
12987
12990
|
reference_source_obj,
|
|
12988
12991
|
};
|
|
12989
|
-
let _parent_info = _.cloneDeep(parent_infoP) || {};
|
|
12992
|
+
// let _parent_info = _.cloneDeep(parent_infoP) || {};
|
|
12993
|
+
let _parent_info = klona(parent_infoP) || {};
|
|
12990
12994
|
_parent_info.iterate_info = iterate_info;
|
|
12991
12995
|
|
|
12992
12996
|
const $divP = await func.UI.screen.render_ui_tree(
|
|
@@ -13700,7 +13704,8 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
13700
13704
|
};
|
|
13701
13705
|
|
|
13702
13706
|
const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP, keyP) {
|
|
13703
|
-
const _paramsP = _.cloneDeep(paramsP);
|
|
13707
|
+
// const _paramsP = _.cloneDeep(paramsP);
|
|
13708
|
+
const _paramsP = klona(paramsP);
|
|
13704
13709
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
13705
13710
|
|
|
13706
13711
|
const currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
|
|
@@ -13713,7 +13718,8 @@ const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP
|
|
|
13713
13718
|
};
|
|
13714
13719
|
|
|
13715
13720
|
func.UI.screen.create_container = async function (SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, classP, elem_propP, div_typeP, $appendToP, attr_str, is_placeholder) {
|
|
13716
|
-
const _paramsP = _.cloneDeep(paramsP);
|
|
13721
|
+
// const _paramsP = _.cloneDeep(paramsP);
|
|
13722
|
+
const _paramsP = klona(paramsP);
|
|
13717
13723
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
13718
13724
|
var $appendTo = $container;
|
|
13719
13725
|
if ($appendToP) $appendTo = $appendToP;
|
|
@@ -14730,7 +14736,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14730
14736
|
$container.data().xuData[key] = _.cloneDeep(val);
|
|
14731
14737
|
});
|
|
14732
14738
|
$.each($div.data().xuAttributes, function (key, val) {
|
|
14733
|
-
$container.data().xuAttributes[key] = _.cloneDeep(val);
|
|
14739
|
+
// $container.data().xuAttributes[key] = _.cloneDeep(val);
|
|
14740
|
+
$container.data().xuAttributes[key] = klona(val);
|
|
14734
14741
|
});
|
|
14735
14742
|
|
|
14736
14743
|
return await render_screen_type($div);
|
|
@@ -3274,10 +3274,10 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
3274
3274
|
|
|
3275
3275
|
delete _ds.v.old_dataSource; // to eliminate parse error
|
|
3276
3276
|
delete _ds.rows_found;
|
|
3277
|
-
// _ds.raw_data = {};
|
|
3278
3277
|
_ds.data_feed = {};
|
|
3279
3278
|
|
|
3280
|
-
_ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
3279
|
+
// _ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
3280
|
+
_ds.v.old_dataSource = klona(_ds);
|
|
3281
3281
|
} catch (err) {
|
|
3282
3282
|
console.error('function: init_existing_dataSource - error');
|
|
3283
3283
|
return;
|
|
@@ -4907,11 +4907,12 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4907
4907
|
return Math.min(...arr.map(Number));
|
|
4908
4908
|
}
|
|
4909
4909
|
|
|
4910
|
-
await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
4910
|
+
// await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
4911
|
+
await func.UI.screen.refresh_xu_attributes(SESSION_ID, klona(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
4911
4912
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
4912
4913
|
await func.UI.screen.refresh_screen(
|
|
4913
4914
|
SESSION_ID,
|
|
4914
|
-
_.cloneDeep(fields_changed),
|
|
4915
|
+
klona(fields_changed), // _.cloneDeep(fields_changed),
|
|
4915
4916
|
null,
|
|
4916
4917
|
datasource_changed[0], // refresh the current datasource only
|
|
4917
4918
|
);
|
|
@@ -5562,7 +5563,8 @@ func.datasource.set_VIEW_data = async function (SESSION_ID, args, _ds) {
|
|
|
5562
5563
|
};
|
|
5563
5564
|
_ds.viewEventExec_arr = {};
|
|
5564
5565
|
|
|
5565
|
-
var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
5566
|
+
// var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
5567
|
+
var view = klona(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
5566
5568
|
|
|
5567
5569
|
_ds.v.dataSourceSrcType = view.dataSourceSrcType;
|
|
5568
5570
|
|
|
@@ -9036,8 +9038,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
9036
9038
|
|
|
9037
9039
|
let _session = SESSION_OBJ[SESSION_ID];
|
|
9038
9040
|
|
|
9039
|
-
const screenInfo = _.cloneDeep(screen_ret);
|
|
9040
|
-
|
|
9041
|
+
// const screenInfo = _.cloneDeep(screen_ret);
|
|
9042
|
+
const screenInfo = klona(screen_ret);
|
|
9041
9043
|
|
|
9042
9044
|
var screen_type = source_functionP?.split('_')?.[1]; //|| (is_panelP && "panel");
|
|
9043
9045
|
|
|
@@ -9181,7 +9183,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
9181
9183
|
return func.utils.alerts.invoke(SESSION_ID, 'system_msg', 'SYS_MSG_0780', params.renderType, ret.dsSessionP);
|
|
9182
9184
|
}
|
|
9183
9185
|
var node;
|
|
9184
|
-
node = _.cloneDeep(viewDoc.progUi);
|
|
9186
|
+
// node = _.cloneDeep(viewDoc.progUi);
|
|
9187
|
+
node = klona(viewDoc.progUi);
|
|
9185
9188
|
if (!node.length) return console.warn('ui node empty');
|
|
9186
9189
|
const ret_render_$container = await func.UI.screen.render_ui_tree(SESSION_ID, $rootFrame, node[0], null, params, jobNoP, null, null, null, null, null, $rootFrame);
|
|
9187
9190
|
|
|
@@ -9748,7 +9751,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9748
9751
|
const new_$div = await func.UI.screen.render_ui_tree(
|
|
9749
9752
|
SESSION_ID,
|
|
9750
9753
|
$elm, // the wrapper
|
|
9751
|
-
_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
9754
|
+
klona($elm.data().xuData.node), //_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
9752
9755
|
{},
|
|
9753
9756
|
elm_data.xuData.paramsP, // the wrapper params
|
|
9754
9757
|
null,
|
|
@@ -10711,7 +10714,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10711
10714
|
is_val_dynamic_field,
|
|
10712
10715
|
reference_source_obj,
|
|
10713
10716
|
};
|
|
10714
|
-
let _parent_info = _.cloneDeep(parent_infoP) || {};
|
|
10717
|
+
// let _parent_info = _.cloneDeep(parent_infoP) || {};
|
|
10718
|
+
let _parent_info = klona(parent_infoP) || {};
|
|
10715
10719
|
_parent_info.iterate_info = iterate_info;
|
|
10716
10720
|
|
|
10717
10721
|
const $divP = await func.UI.screen.render_ui_tree(
|
|
@@ -11425,7 +11429,8 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
11425
11429
|
};
|
|
11426
11430
|
|
|
11427
11431
|
const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP, keyP) {
|
|
11428
|
-
const _paramsP = _.cloneDeep(paramsP);
|
|
11432
|
+
// const _paramsP = _.cloneDeep(paramsP);
|
|
11433
|
+
const _paramsP = klona(paramsP);
|
|
11429
11434
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
11430
11435
|
|
|
11431
11436
|
const currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
|
|
@@ -11438,7 +11443,8 @@ const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP
|
|
|
11438
11443
|
};
|
|
11439
11444
|
|
|
11440
11445
|
func.UI.screen.create_container = async function (SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, classP, elem_propP, div_typeP, $appendToP, attr_str, is_placeholder) {
|
|
11441
|
-
const _paramsP = _.cloneDeep(paramsP);
|
|
11446
|
+
// const _paramsP = _.cloneDeep(paramsP);
|
|
11447
|
+
const _paramsP = klona(paramsP);
|
|
11442
11448
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
11443
11449
|
var $appendTo = $container;
|
|
11444
11450
|
if ($appendToP) $appendTo = $appendToP;
|
|
@@ -12455,7 +12461,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12455
12461
|
$container.data().xuData[key] = _.cloneDeep(val);
|
|
12456
12462
|
});
|
|
12457
12463
|
$.each($div.data().xuAttributes, function (key, val) {
|
|
12458
|
-
$container.data().xuAttributes[key] = _.cloneDeep(val);
|
|
12464
|
+
// $container.data().xuAttributes[key] = _.cloneDeep(val);
|
|
12465
|
+
$container.data().xuAttributes[key] = klona(val);
|
|
12459
12466
|
});
|
|
12460
12467
|
|
|
12461
12468
|
return await render_screen_type($div);
|