@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
|
@@ -23581,6 +23581,48 @@ wi&&(An.prototype[wi]=Xe),An}();typeof define=="function"&&typeof define.amd=="o
|
|
|
23581
23581
|
}
|
|
23582
23582
|
},
|
|
23583
23583
|
};
|
|
23584
|
+
});
|
|
23585
|
+
|
|
23584
23586
|
!(function (e, t) {
|
|
23587
|
+
'object' == typeof exports && 'undefined' != typeof module ? t(exports) : 'function' == typeof define && define.amd ? define(['exports'], t) : t((e.klona = {}));
|
|
23588
|
+
})(this, function (e) {
|
|
23589
|
+
e.klona = function e(t) {
|
|
23590
|
+
if ('object' != typeof t) return t;
|
|
23591
|
+
var o,
|
|
23592
|
+
r,
|
|
23593
|
+
n = Object.prototype.toString.call(t);
|
|
23594
|
+
if ('[object Object]' === n) {
|
|
23595
|
+
if (t.constructor !== Object && 'function' == typeof t.constructor) for (o in ((r = new t.constructor()), t)) t.hasOwnProperty(o) && r[o] !== t[o] && (r[o] = e(t[o]));
|
|
23596
|
+
else for (o in ((r = {}), t)) '__proto__' === o ? Object.defineProperty(r, o, { value: e(t[o]), configurable: !0, enumerable: !0, writable: !0 }) : (r[o] = e(t[o]));
|
|
23597
|
+
return r;
|
|
23598
|
+
}
|
|
23599
|
+
if ('[object Array]' === n) {
|
|
23600
|
+
for (o = t.length, r = Array(o); o--; ) r[o] = e(t[o]);
|
|
23601
|
+
return r;
|
|
23602
|
+
}
|
|
23603
|
+
return '[object Set]' === n
|
|
23604
|
+
? ((r = new Set()),
|
|
23605
|
+
t.forEach(function (t) {
|
|
23606
|
+
r.add(e(t));
|
|
23607
|
+
}),
|
|
23608
|
+
r)
|
|
23609
|
+
: '[object Map]' === n
|
|
23610
|
+
? ((r = new Map()),
|
|
23611
|
+
t.forEach(function (t, o) {
|
|
23612
|
+
r.set(e(o), e(t));
|
|
23613
|
+
}),
|
|
23614
|
+
r)
|
|
23615
|
+
: '[object Date]' === n
|
|
23616
|
+
? new Date(+t)
|
|
23617
|
+
: '[object RegExp]' === n
|
|
23618
|
+
? (((r = new RegExp(t.source, t.flags)).lastIndex = t.lastIndex), r)
|
|
23619
|
+
: '[object DataView]' === n
|
|
23620
|
+
? new t.constructor(e(t.buffer))
|
|
23621
|
+
: '[object ArrayBuffer]' === n
|
|
23622
|
+
? t.slice(0)
|
|
23623
|
+
: 'Array]' === n.slice(-6)
|
|
23624
|
+
? new t.constructor(t)
|
|
23625
|
+
: t;
|
|
23626
|
+
};
|
|
23585
23627
|
});
|
|
23586
23628
|
|
|
23587
23629
|
'use strict';
|
|
23588
23630
|
|
|
@@ -28538,10 +28580,10 @@ func.datasource.prepare = async function (SESSION_ID, prog_id, dataSourceNoP, pa
|
|
|
28538
28580
|
|
|
28539
28581
|
delete _ds.v.old_dataSource; // to eliminate parse error
|
|
28540
28582
|
delete _ds.rows_found;
|
|
28541
|
-
// _ds.raw_data = {};
|
|
28542
28583
|
_ds.data_feed = {};
|
|
28543
28584
|
|
|
28544
|
-
_ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
28585
|
+
// _ds.v.old_dataSource = _.cloneDeep(_ds);
|
|
28586
|
+
_ds.v.old_dataSource = klona(_ds);
|
|
28545
28587
|
} catch (err) {
|
|
28546
28588
|
console.error('function: init_existing_dataSource - error');
|
|
28547
28589
|
return;
|
|
@@ -30171,11 +30213,12 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
30171
30213
|
return Math.min(...arr.map(Number));
|
|
30172
30214
|
}
|
|
30173
30215
|
|
|
30174
|
-
await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
30216
|
+
// await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
30217
|
+
await func.UI.screen.refresh_xu_attributes(SESSION_ID, klona(fields_changed), null, null, findMin(datasource_changed), avoid_xu_for_refresh, trigger);
|
|
30175
30218
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
30176
30219
|
await func.UI.screen.refresh_screen(
|
|
30177
30220
|
SESSION_ID,
|
|
30178
|
-
_.cloneDeep(fields_changed),
|
|
30221
|
+
klona(fields_changed), // _.cloneDeep(fields_changed),
|
|
30179
30222
|
null,
|
|
30180
30223
|
datasource_changed[0], // refresh the current datasource only
|
|
30181
30224
|
);
|
|
@@ -30826,7 +30869,8 @@ func.datasource.set_VIEW_data = async function (SESSION_ID, args, _ds) {
|
|
|
30826
30869
|
};
|
|
30827
30870
|
_ds.viewEventExec_arr = {};
|
|
30828
30871
|
|
|
30829
|
-
var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
30872
|
+
// var view = _.cloneDeep(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
30873
|
+
var view = klona(await func.utils.VIEWS_OBJ.get(SESSION_ID, args.prog_id));
|
|
30830
30874
|
|
|
30831
30875
|
_ds.v.dataSourceSrcType = view.dataSourceSrcType;
|
|
30832
30876
|
|
|
@@ -30995,8 +31039,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
30995
31039
|
|
|
30996
31040
|
let _session = SESSION_OBJ[SESSION_ID];
|
|
30997
31041
|
|
|
30998
|
-
const screenInfo = _.cloneDeep(screen_ret);
|
|
30999
|
-
|
|
31042
|
+
// const screenInfo = _.cloneDeep(screen_ret);
|
|
31043
|
+
const screenInfo = klona(screen_ret);
|
|
31000
31044
|
|
|
31001
31045
|
var screen_type = source_functionP?.split('_')?.[1]; //|| (is_panelP && "panel");
|
|
31002
31046
|
|
|
@@ -31140,7 +31184,8 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
|
|
|
31140
31184
|
return func.utils.alerts.invoke(SESSION_ID, 'system_msg', 'SYS_MSG_0780', params.renderType, ret.dsSessionP);
|
|
31141
31185
|
}
|
|
31142
31186
|
var node;
|
|
31143
|
-
node = _.cloneDeep(viewDoc.progUi);
|
|
31187
|
+
// node = _.cloneDeep(viewDoc.progUi);
|
|
31188
|
+
node = klona(viewDoc.progUi);
|
|
31144
31189
|
if (!node.length) return console.warn('ui node empty');
|
|
31145
31190
|
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);
|
|
31146
31191
|
|
|
@@ -31707,7 +31752,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
|
|
|
31707
31752
|
const new_$div = await func.UI.screen.render_ui_tree(
|
|
31708
31753
|
SESSION_ID,
|
|
31709
31754
|
$elm, // the wrapper
|
|
31710
|
-
_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
31755
|
+
klona($elm.data().xuData.node), //_.cloneDeep($elm.data().xuData.node), // the xu-panel node
|
|
31711
31756
|
{},
|
|
31712
31757
|
elm_data.xuData.paramsP, // the wrapper params
|
|
31713
31758
|
null,
|
|
@@ -32670,7 +32715,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32670
32715
|
is_val_dynamic_field,
|
|
32671
32716
|
reference_source_obj,
|
|
32672
32717
|
};
|
|
32673
|
-
let _parent_info = _.cloneDeep(parent_infoP) || {};
|
|
32718
|
+
// let _parent_info = _.cloneDeep(parent_infoP) || {};
|
|
32719
|
+
let _parent_info = klona(parent_infoP) || {};
|
|
32674
32720
|
_parent_info.iterate_info = iterate_info;
|
|
32675
32721
|
|
|
32676
32722
|
const $divP = await func.UI.screen.render_ui_tree(
|
|
@@ -33384,7 +33430,8 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
33384
33430
|
};
|
|
33385
33431
|
|
|
33386
33432
|
const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP, keyP) {
|
|
33387
|
-
const _paramsP = _.cloneDeep(paramsP);
|
|
33433
|
+
// const _paramsP = _.cloneDeep(paramsP);
|
|
33434
|
+
const _paramsP = klona(paramsP);
|
|
33388
33435
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
33389
33436
|
|
|
33390
33437
|
const currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
|
|
@@ -33397,7 +33444,8 @@ const generate_xu_ui_id = async function (SESSION_ID, nodeP, $container, paramsP
|
|
|
33397
33444
|
};
|
|
33398
33445
|
|
|
33399
33446
|
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) {
|
|
33400
|
-
const _paramsP = _.cloneDeep(paramsP);
|
|
33447
|
+
// const _paramsP = _.cloneDeep(paramsP);
|
|
33448
|
+
const _paramsP = klona(paramsP);
|
|
33401
33449
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
33402
33450
|
var $appendTo = $container;
|
|
33403
33451
|
if ($appendToP) $appendTo = $appendToP;
|
|
@@ -34414,7 +34462,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34414
34462
|
$container.data().xuData[key] = _.cloneDeep(val);
|
|
34415
34463
|
});
|
|
34416
34464
|
$.each($div.data().xuAttributes, function (key, val) {
|
|
34417
|
-
$container.data().xuAttributes[key] = _.cloneDeep(val);
|
|
34465
|
+
// $container.data().xuAttributes[key] = _.cloneDeep(val);
|
|
34466
|
+
$container.data().xuAttributes[key] = klona(val);
|
|
34418
34467
|
});
|
|
34419
34468
|
|
|
34420
34469
|
return await render_screen_type($div);
|