@xuda.io/runtime-bundle 1.0.977 → 1.0.979
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 +50 -44
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +50 -44
- package/js/xuda-runtime-slim.min.es.js +50 -44
- package/js/xuda-runtime-slim.min.js +2 -2
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +4 -2
- package/js/xuda-worker-bundle.js +4 -2
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -11142,10 +11142,12 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
|
|
|
11142
11142
|
if (!isServer) {
|
|
11143
11143
|
try {
|
|
11144
11144
|
return eval(val);
|
|
11145
|
-
} catch {
|
|
11145
|
+
} catch (err) {
|
|
11146
11146
|
try {
|
|
11147
|
+
if (glb.DEBUG_MODE) console.warning(err);
|
|
11147
11148
|
return JSON5.parse(val);
|
|
11148
|
-
} catch {
|
|
11149
|
+
} catch (err) {
|
|
11150
|
+
if (glb.DEBUG_MODE) console.warning(err);
|
|
11149
11151
|
return val;
|
|
11150
11152
|
}
|
|
11151
11153
|
}
|
|
@@ -12477,55 +12479,59 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12477
12479
|
|
|
12478
12480
|
const post_render = async function () {
|
|
12479
12481
|
if (value) {
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12482
|
+
try {
|
|
12483
|
+
// abort if already rended
|
|
12484
|
+
if ($elm[0].tagName !== 'XURENDER' && $elm?.length) {
|
|
12485
|
+
return func.events.delete_job(SESSION_ID, jobNoP);
|
|
12486
|
+
}
|
|
12484
12487
|
|
|
12485
|
-
|
|
12488
|
+
let original_data_obj = $elm.data().xuData.original_data_obj;
|
|
12486
12489
|
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12490
|
+
if (!original_data_obj) {
|
|
12491
|
+
func.events.delete_job(SESSION_ID, jobNoP);
|
|
12492
|
+
return { delete_job: jobNoP };
|
|
12493
|
+
}
|
|
12494
|
+
const new_$div = await func.UI.screen.render_ui_tree(
|
|
12495
|
+
SESSION_ID,
|
|
12496
|
+
$elm, //original_data_obj.$container,
|
|
12497
|
+
_.cloneDeep(original_data_obj.nodeP),
|
|
12498
|
+
original_data_obj.parent_infoP,
|
|
12499
|
+
original_data_obj.paramsP,
|
|
12500
|
+
jobNoP,
|
|
12501
|
+
null,
|
|
12502
|
+
original_data_obj.keyP,
|
|
12503
|
+
null,
|
|
12504
|
+
original_data_obj.parent_nodeP,
|
|
12505
|
+
null,
|
|
12506
|
+
original_data_obj.$root_container,
|
|
12507
|
+
);
|
|
12505
12508
|
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
+
new_$div.data().xuData.original_data_obj = original_data_obj;
|
|
12510
|
+
new_$div.data().xuData.xurender_node = $elm.clone(true);
|
|
12511
|
+
new_$div.data().xuAttributes = $elm.data().xuAttributes || {};
|
|
12509
12512
|
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12513
|
+
const replace = async function () {
|
|
12514
|
+
$elm.replaceWith(new_$div);
|
|
12515
|
+
if (from_panel) {
|
|
12516
|
+
const xuPanelWrapper = _.clone(new_$div.data().xuPanelWrapper);
|
|
12517
|
+
$elm.parent().data().xuPanelWrapper = xuPanelWrapper;
|
|
12518
|
+
$elm.replaceWith(new_$div.children());
|
|
12519
|
+
}
|
|
12517
12520
|
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12521
|
+
if (val.fields_arr) {
|
|
12522
|
+
return await func.UI.screen.refresh_xu_attributes(SESSION_ID, val.fields_arr, val.jobNoP, new_$div);
|
|
12523
|
+
}
|
|
12524
|
+
func.events.delete_job(SESSION_ID, jobNoP);
|
|
12525
|
+
};
|
|
12523
12526
|
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12527
|
+
if ($elm && func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', $elm.data().xuData.xu_id).length) {
|
|
12528
|
+
if (new_$div.data().xuData.paramsP) {
|
|
12529
|
+
return await replace();
|
|
12530
|
+
}
|
|
12528
12531
|
|
|
12532
|
+
func.events.delete_job(SESSION_ID, jobNoP);
|
|
12533
|
+
}
|
|
12534
|
+
} catch (error) {
|
|
12529
12535
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
12530
12536
|
}
|
|
12531
12537
|
return;
|
|
@@ -10204,55 +10204,59 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10204
10204
|
|
|
10205
10205
|
const post_render = async function () {
|
|
10206
10206
|
if (value) {
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10207
|
+
try {
|
|
10208
|
+
// abort if already rended
|
|
10209
|
+
if ($elm[0].tagName !== 'XURENDER' && $elm?.length) {
|
|
10210
|
+
return func.events.delete_job(SESSION_ID, jobNoP);
|
|
10211
|
+
}
|
|
10211
10212
|
|
|
10212
|
-
|
|
10213
|
+
let original_data_obj = $elm.data().xuData.original_data_obj;
|
|
10213
10214
|
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10215
|
+
if (!original_data_obj) {
|
|
10216
|
+
func.events.delete_job(SESSION_ID, jobNoP);
|
|
10217
|
+
return { delete_job: jobNoP };
|
|
10218
|
+
}
|
|
10219
|
+
const new_$div = await func.UI.screen.render_ui_tree(
|
|
10220
|
+
SESSION_ID,
|
|
10221
|
+
$elm, //original_data_obj.$container,
|
|
10222
|
+
_.cloneDeep(original_data_obj.nodeP),
|
|
10223
|
+
original_data_obj.parent_infoP,
|
|
10224
|
+
original_data_obj.paramsP,
|
|
10225
|
+
jobNoP,
|
|
10226
|
+
null,
|
|
10227
|
+
original_data_obj.keyP,
|
|
10228
|
+
null,
|
|
10229
|
+
original_data_obj.parent_nodeP,
|
|
10230
|
+
null,
|
|
10231
|
+
original_data_obj.$root_container,
|
|
10232
|
+
);
|
|
10232
10233
|
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10234
|
+
new_$div.data().xuData.original_data_obj = original_data_obj;
|
|
10235
|
+
new_$div.data().xuData.xurender_node = $elm.clone(true);
|
|
10236
|
+
new_$div.data().xuAttributes = $elm.data().xuAttributes || {};
|
|
10236
10237
|
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10238
|
+
const replace = async function () {
|
|
10239
|
+
$elm.replaceWith(new_$div);
|
|
10240
|
+
if (from_panel) {
|
|
10241
|
+
const xuPanelWrapper = _.clone(new_$div.data().xuPanelWrapper);
|
|
10242
|
+
$elm.parent().data().xuPanelWrapper = xuPanelWrapper;
|
|
10243
|
+
$elm.replaceWith(new_$div.children());
|
|
10244
|
+
}
|
|
10244
10245
|
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10246
|
+
if (val.fields_arr) {
|
|
10247
|
+
return await func.UI.screen.refresh_xu_attributes(SESSION_ID, val.fields_arr, val.jobNoP, new_$div);
|
|
10248
|
+
}
|
|
10249
|
+
func.events.delete_job(SESSION_ID, jobNoP);
|
|
10250
|
+
};
|
|
10250
10251
|
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10252
|
+
if ($elm && func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', $elm.data().xuData.xu_id).length) {
|
|
10253
|
+
if (new_$div.data().xuData.paramsP) {
|
|
10254
|
+
return await replace();
|
|
10255
|
+
}
|
|
10255
10256
|
|
|
10257
|
+
func.events.delete_job(SESSION_ID, jobNoP);
|
|
10258
|
+
}
|
|
10259
|
+
} catch (error) {
|
|
10256
10260
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
10257
10261
|
}
|
|
10258
10262
|
return;
|
|
@@ -15277,10 +15281,12 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
|
|
|
15277
15281
|
if (!isServer) {
|
|
15278
15282
|
try {
|
|
15279
15283
|
return eval(val);
|
|
15280
|
-
} catch {
|
|
15284
|
+
} catch (err) {
|
|
15281
15285
|
try {
|
|
15286
|
+
if (glb.DEBUG_MODE) console.warning(err);
|
|
15282
15287
|
return JSON5.parse(val);
|
|
15283
|
-
} catch {
|
|
15288
|
+
} catch (err) {
|
|
15289
|
+
if (glb.DEBUG_MODE) console.warning(err);
|
|
15284
15290
|
return val;
|
|
15285
15291
|
}
|
|
15286
15292
|
}
|