@xuda.io/runtime-bundle 1.0.981 → 1.0.983
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 +10 -10
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +10 -10
- package/js/xuda-runtime-slim.min.es.js +10 -10
- 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 -4
- package/js/xuda-worker-bundle.js +4 -4
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -31767,7 +31767,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
31767
31767
|
// };
|
|
31768
31768
|
const program = val.value?.prog || val.value;
|
|
31769
31769
|
var $wrapper = $('<div>');
|
|
31770
|
-
var $div =
|
|
31770
|
+
var $div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, nodeP.attributes, null, null, null, $wrapper, '');
|
|
31771
31771
|
const params_obj = await get_params_obj_new(SESSION_ID, program, nodeP, paramsP.dsSessionP);
|
|
31772
31772
|
let ret_init = await func.UI.screen.init(SESSION_ID, program, paramsP.screenId, _ds, $div, null, _ds.currentRecordId, jobNoP, true, params_obj.params_res, 'alterXu_panel', undefined, undefined, params_obj.params_raw);
|
|
31773
31773
|
ret = {
|
|
@@ -33094,7 +33094,7 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
33094
33094
|
return jobNoP;
|
|
33095
33095
|
};
|
|
33096
33096
|
|
|
33097
|
-
func.UI.screen.create_container =
|
|
33097
|
+
func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, classP, elem_propP, div_typeP, $appendToP, attr_str) {
|
|
33098
33098
|
const _paramsP = _.cloneDeep(paramsP);
|
|
33099
33099
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
33100
33100
|
var $appendTo = $container;
|
|
@@ -33890,7 +33890,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
33890
33890
|
var exist_elm_obj = get_element_info();
|
|
33891
33891
|
var $div = exist_elm_obj.div;
|
|
33892
33892
|
if (!exist_elm_obj.div) {
|
|
33893
|
-
$div =
|
|
33893
|
+
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, 'widget_wrapper', null, null, null, null);
|
|
33894
33894
|
|
|
33895
33895
|
//////////////////////////
|
|
33896
33896
|
|
|
@@ -34092,7 +34092,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34092
34092
|
|
|
34093
34093
|
if (!exist_elm_obj.div) {
|
|
34094
34094
|
var $wrapper = $('<div>');
|
|
34095
|
-
$div =
|
|
34095
|
+
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, 'div', $wrapper, '');
|
|
34096
34096
|
|
|
34097
34097
|
if (!$div) return;
|
|
34098
34098
|
|
|
@@ -34232,7 +34232,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34232
34232
|
};
|
|
34233
34233
|
|
|
34234
34234
|
var $wrapper = $('<div>');
|
|
34235
|
-
$div =
|
|
34235
|
+
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, null, $wrapper, '');
|
|
34236
34236
|
|
|
34237
34237
|
let ret = await func.UI.screen.set_attributes_new(SESSION_ID, is_skeleton, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, $div.clone(true), true, undefined, refreshed_ds);
|
|
34238
34238
|
if (ret.abort) {
|
|
@@ -34262,7 +34262,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34262
34262
|
if (!element || element === 'script') return await done();
|
|
34263
34263
|
let str = '';
|
|
34264
34264
|
|
|
34265
|
-
var $div =
|
|
34265
|
+
var $div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, element, null, str);
|
|
34266
34266
|
|
|
34267
34267
|
$div.hover(
|
|
34268
34268
|
function (e) {
|
|
@@ -35161,7 +35161,7 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
|
|
|
35161
35161
|
}
|
|
35162
35162
|
|
|
35163
35163
|
const validate_email = async function () {
|
|
35164
|
-
const ret = await func.expression.secure_eval(SESSION_ID, sourceP, valP, jobNo, dsSessionP, js_script_callback);
|
|
35164
|
+
const ret = await func.expression.secure_eval(SESSION_ID, sourceP, valP, jobNo, dsSessionP, js_script_callback, null, true);
|
|
35165
35165
|
|
|
35166
35166
|
return glb.emailRegex.test(ret);
|
|
35167
35167
|
};
|
|
@@ -35913,7 +35913,7 @@ func.expression.remove_quotes = function (valP) {
|
|
|
35913
35913
|
// }
|
|
35914
35914
|
// };
|
|
35915
35915
|
|
|
35916
|
-
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
35916
|
+
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt, ignore_errors) {
|
|
35917
35917
|
if (typeof val !== 'string') return val;
|
|
35918
35918
|
|
|
35919
35919
|
const xu = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|
|
@@ -35934,10 +35934,10 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
|
|
|
35934
35934
|
return eval(val);
|
|
35935
35935
|
} catch (err) {
|
|
35936
35936
|
try {
|
|
35937
|
-
if (sourceP === 'javascript') console.error(err);
|
|
35937
|
+
if (sourceP === 'javascript' && !ignore_errors) console.error(err);
|
|
35938
35938
|
return JSON5.parse(val);
|
|
35939
35939
|
} catch (err) {
|
|
35940
|
-
if (sourceP === 'javascript') console.error(err);
|
|
35940
|
+
if (sourceP === 'javascript' && !ignore_errors) console.error(err);
|
|
35941
35941
|
return val;
|
|
35942
35942
|
}
|
|
35943
35943
|
}
|