@xuda.io/runtime-bundle 1.0.1234 → 1.0.1236
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 +67 -8185
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +23 -13
- package/js/xuda-runtime-slim.min.es.js +23 -13
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-runtime-vendor.js +44 -8172
- package/js/xuda-runtime-vendor.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +10 -5
- package/js/xuda-worker-bundle.js +10 -5
- package/js/xuda-worker-bundle.min.js +1 -1
- package/js/xuda_common-bundle.js +3 -0
- package/js/xuda_common-bundle.min.js +1 -1
- package/js/xuda_worker.js +3 -2
- package/js/xuda_worker.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -2598,6 +2598,9 @@ func.common.perform_rpi_request = async function (SESSION_ID, serviceP, opt = {}
|
|
|
2598
2598
|
if (_session.engine_mode === 'live_preview') {
|
|
2599
2599
|
throw new Error('live_preview');
|
|
2600
2600
|
}
|
|
2601
|
+
if (_session.engine_mode === 'miniapp') {
|
|
2602
|
+
throw new Error('miniapp');
|
|
2603
|
+
}
|
|
2601
2604
|
|
|
2602
2605
|
if (SESSION_OBJ?.[SESSION_ID]?.rpi_http_methods?.includes(serviceP)) {
|
|
2603
2606
|
const ret = await func.common.get_data_from_websocket(SESSION_ID, serviceP, data);
|
|
@@ -3270,10 +3273,10 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
3270
3273
|
|
|
3271
3274
|
delete _ds.v.old_dataSource; // to eliminate parse error
|
|
3272
3275
|
delete _ds.rows_found;
|
|
3273
|
-
// _ds.raw_data = {};
|
|
3274
3276
|
_ds.data_feed = {};
|
|
3275
3277
|
|
|
3276
|
-
_ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
3278
|
+
// _ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
3279
|
+
_ds.v.old_dataSource = klona(_ds);
|
|
3277
3280
|
} catch (err) {
|
|
3278
3281
|
console.error('function: init_existing_dataSource - error');
|
|
3279
3282
|
return;
|
|
@@ -4903,11 +4906,12 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4903
4906
|
return Math.min(...arr.map(Number));
|
|
4904
4907
|
}
|
|
4905
4908
|
|
|
4906
|
-
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);
|
|
4907
4911
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
4908
4912
|
await func.UI.screen.refresh_screen(
|
|
4909
4913
|
SESSION_ID,
|
|
4910
|
-
_.cloneDeep(fields_changed),
|
|
4914
|
+
klona(fields_changed), // _.cloneDeep(fields_changed),
|
|
4911
4915
|
null,
|
|
4912
4916
|
datasource_changed[0], // refresh the current datasource only
|
|
4913
4917
|
);
|
|
@@ -5558,7 +5562,8 @@ func.datasource.set_VIEW_data = async function (SESSION_ID, args, _ds) {
|
|
|
5558
5562
|
};
|
|
5559
5563
|
_ds.viewEventExec_arr = {};
|
|
5560
5564
|
|
|
5561
|
-
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));
|
|
5562
5567
|
|
|
5563
5568
|
_ds.v.dataSourceSrcType = view.dataSourceSrcType;
|
|
5564
5569
|
|
|
@@ -11308,8 +11313,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
11308
11313
|
|
|
11309
11314
|
let _session = SESSION_OBJ[SESSION_ID];
|
|
11310
11315
|
|
|
11311
|
-
const screenInfo = _.cloneDeep(screen_ret);
|
|
11312
|
-
|
|
11316
|
+
// const screenInfo = _.cloneDeep(screen_ret);
|
|
11317
|
+
const screenInfo = klona(screen_ret);
|
|
11313
11318
|
|
|
11314
11319
|
var screen_type = source_functionP?.split('_')?.[1]; //|| (is_panelP && "panel");
|
|
11315
11320
|
|
|
@@ -11453,7 +11458,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
11453
11458
|
return func.utils.alerts.invoke(SESSION_ID, 'system_msg', 'SYS_MSG_0780', params.renderType, ret.dsSessionP);
|
|
11454
11459
|
}
|
|
11455
11460
|
var node;
|
|
11456
|
-
node = _.cloneDeep(viewDoc.progUi);
|
|
11461
|
+
// node = _.cloneDeep(viewDoc.progUi);
|
|
11462
|
+
node = klona(viewDoc.progUi);
|
|
11457
11463
|
if (!node.length) return console.warn('ui node empty');
|
|
11458
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);
|
|
11459
11465
|
|
|
@@ -12020,7 +12026,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
12020
12026
|
const new_$div = await func.UI.screen.render_ui_tree(
|
|
12021
12027
|
SESSION_ID,
|
|
12022
12028
|
$elm, // the wrapper
|
|
12023
|
-
_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
12029
|
+
klona($elm.data().xuData.node), //_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
12024
12030
|
{},
|
|
12025
12031
|
elm_data.xuData.paramsP, // the wrapper params
|
|
12026
12032
|
null,
|
|
@@ -12983,7 +12989,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12983
12989
|
is_val_dynamic_field,
|
|
12984
12990
|
reference_source_obj,
|
|
12985
12991
|
};
|
|
12986
|
-
let _parent_info = _.cloneDeep(parent_infoP) || {};
|
|
12992
|
+
// let _parent_info = _.cloneDeep(parent_infoP) || {};
|
|
12993
|
+
let _parent_info = klona(parent_infoP) || {};
|
|
12987
12994
|
_parent_info.iterate_info = iterate_info;
|
|
12988
12995
|
|
|
12989
12996
|
const $divP = await func.UI.screen.render_ui_tree(
|
|
@@ -13697,7 +13704,8 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
13697
13704
|
};
|
|
13698
13705
|
|
|
13699
13706
|
const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP, keyP) {
|
|
13700
|
-
const _paramsP = _.cloneDeep(paramsP);
|
|
13707
|
+
// const _paramsP = _.cloneDeep(paramsP);
|
|
13708
|
+
const _paramsP = klona(paramsP);
|
|
13701
13709
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
13702
13710
|
|
|
13703
13711
|
const currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
|
|
@@ -13710,7 +13718,8 @@ const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP
|
|
|
13710
13718
|
};
|
|
13711
13719
|
|
|
13712
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) {
|
|
13713
|
-
const _paramsP = _.cloneDeep(paramsP);
|
|
13721
|
+
// const _paramsP = _.cloneDeep(paramsP);
|
|
13722
|
+
const _paramsP = klona(paramsP);
|
|
13714
13723
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
13715
13724
|
var $appendTo = $container;
|
|
13716
13725
|
if ($appendToP) $appendTo = $appendToP;
|
|
@@ -14727,7 +14736,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14727
14736
|
$container.data().xuData[key] = _.cloneDeep(val);
|
|
14728
14737
|
});
|
|
14729
14738
|
$.each($div.data().xuAttributes, function (key, val) {
|
|
14730
|
-
$container.data().xuAttributes[key] = _.cloneDeep(val);
|
|
14739
|
+
// $container.data().xuAttributes[key] = _.cloneDeep(val);
|
|
14740
|
+
$container.data().xuAttributes[key] = klona(val);
|
|
14731
14741
|
});
|
|
14732
14742
|
|
|
14733
14743
|
return await render_screen_type($div);
|
|
@@ -2599,6 +2599,9 @@ func.common.perform_rpi_request = async function (SESSION_ID, serviceP, opt = {}
|
|
|
2599
2599
|
if (_session.engine_mode === 'live_preview') {
|
|
2600
2600
|
throw new Error('live_preview');
|
|
2601
2601
|
}
|
|
2602
|
+
if (_session.engine_mode === 'miniapp') {
|
|
2603
|
+
throw new Error('miniapp');
|
|
2604
|
+
}
|
|
2602
2605
|
|
|
2603
2606
|
if (SESSION_OBJ?.[SESSION_ID]?.rpi_http_methods?.includes(serviceP)) {
|
|
2604
2607
|
const ret = await func.common.get_data_from_websocket(SESSION_ID, serviceP, data);
|
|
@@ -3271,10 +3274,10 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
3271
3274
|
|
|
3272
3275
|
delete _ds.v.old_dataSource; // to eliminate parse error
|
|
3273
3276
|
delete _ds.rows_found;
|
|
3274
|
-
// _ds.raw_data = {};
|
|
3275
3277
|
_ds.data_feed = {};
|
|
3276
3278
|
|
|
3277
|
-
_ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
3279
|
+
// _ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
3280
|
+
_ds.v.old_dataSource = klona(_ds);
|
|
3278
3281
|
} catch (err) {
|
|
3279
3282
|
console.error('function: init_existing_dataSource - error');
|
|
3280
3283
|
return;
|
|
@@ -4904,11 +4907,12 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
4904
4907
|
return Math.min(...arr.map(Number));
|
|
4905
4908
|
}
|
|
4906
4909
|
|
|
4907
|
-
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);
|
|
4908
4912
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
4909
4913
|
await func.UI.screen.refresh_screen(
|
|
4910
4914
|
SESSION_ID,
|
|
4911
|
-
_.cloneDeep(fields_changed),
|
|
4915
|
+
klona(fields_changed), // _.cloneDeep(fields_changed),
|
|
4912
4916
|
null,
|
|
4913
4917
|
datasource_changed[0], // refresh the current datasource only
|
|
4914
4918
|
);
|
|
@@ -5559,7 +5563,8 @@ func.datasource.set_VIEW_data = async function (SESSION_ID, args, _ds) {
|
|
|
5559
5563
|
};
|
|
5560
5564
|
_ds.viewEventExec_arr = {};
|
|
5561
5565
|
|
|
5562
|
-
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));
|
|
5563
5568
|
|
|
5564
5569
|
_ds.v.dataSourceSrcType = view.dataSourceSrcType;
|
|
5565
5570
|
|
|
@@ -9033,8 +9038,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
9033
9038
|
|
|
9034
9039
|
let _session = SESSION_OBJ[SESSION_ID];
|
|
9035
9040
|
|
|
9036
|
-
const screenInfo = _.cloneDeep(screen_ret);
|
|
9037
|
-
|
|
9041
|
+
// const screenInfo = _.cloneDeep(screen_ret);
|
|
9042
|
+
const screenInfo = klona(screen_ret);
|
|
9038
9043
|
|
|
9039
9044
|
var screen_type = source_functionP?.split('_')?.[1]; //|| (is_panelP && "panel");
|
|
9040
9045
|
|
|
@@ -9178,7 +9183,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
9178
9183
|
return func.utils.alerts.invoke(SESSION_ID, 'system_msg', 'SYS_MSG_0780', params.renderType, ret.dsSessionP);
|
|
9179
9184
|
}
|
|
9180
9185
|
var node;
|
|
9181
|
-
node = _.cloneDeep(viewDoc.progUi);
|
|
9186
|
+
// node = _.cloneDeep(viewDoc.progUi);
|
|
9187
|
+
node = klona(viewDoc.progUi);
|
|
9182
9188
|
if (!node.length) return console.warn('ui node empty');
|
|
9183
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);
|
|
9184
9190
|
|
|
@@ -9745,7 +9751,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
9745
9751
|
const new_$div = await func.UI.screen.render_ui_tree(
|
|
9746
9752
|
SESSION_ID,
|
|
9747
9753
|
$elm, // the wrapper
|
|
9748
|
-
_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
9754
|
+
klona($elm.data().xuData.node), //_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
9749
9755
|
{},
|
|
9750
9756
|
elm_data.xuData.paramsP, // the wrapper params
|
|
9751
9757
|
null,
|
|
@@ -10708,7 +10714,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10708
10714
|
is_val_dynamic_field,
|
|
10709
10715
|
reference_source_obj,
|
|
10710
10716
|
};
|
|
10711
|
-
let _parent_info = _.cloneDeep(parent_infoP) || {};
|
|
10717
|
+
// let _parent_info = _.cloneDeep(parent_infoP) || {};
|
|
10718
|
+
let _parent_info = klona(parent_infoP) || {};
|
|
10712
10719
|
_parent_info.iterate_info = iterate_info;
|
|
10713
10720
|
|
|
10714
10721
|
const $divP = await func.UI.screen.render_ui_tree(
|
|
@@ -11422,7 +11429,8 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
11422
11429
|
};
|
|
11423
11430
|
|
|
11424
11431
|
const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP, keyP) {
|
|
11425
|
-
const _paramsP = _.cloneDeep(paramsP);
|
|
11432
|
+
// const _paramsP = _.cloneDeep(paramsP);
|
|
11433
|
+
const _paramsP = klona(paramsP);
|
|
11426
11434
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
11427
11435
|
|
|
11428
11436
|
const currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
|
|
@@ -11435,7 +11443,8 @@ const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP
|
|
|
11435
11443
|
};
|
|
11436
11444
|
|
|
11437
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) {
|
|
11438
|
-
const _paramsP = _.cloneDeep(paramsP);
|
|
11446
|
+
// const _paramsP = _.cloneDeep(paramsP);
|
|
11447
|
+
const _paramsP = klona(paramsP);
|
|
11439
11448
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
11440
11449
|
var $appendTo = $container;
|
|
11441
11450
|
if ($appendToP) $appendTo = $appendToP;
|
|
@@ -12452,7 +12461,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12452
12461
|
$container.data().xuData[key] = _.cloneDeep(val);
|
|
12453
12462
|
});
|
|
12454
12463
|
$.each($div.data().xuAttributes, function (key, val) {
|
|
12455
|
-
$container.data().xuAttributes[key] = _.cloneDeep(val);
|
|
12464
|
+
// $container.data().xuAttributes[key] = _.cloneDeep(val);
|
|
12465
|
+
$container.data().xuAttributes[key] = klona(val);
|
|
12456
12466
|
});
|
|
12457
12467
|
|
|
12458
12468
|
return await render_screen_type($div);
|