@xuda.io/runtime-bundle 1.0.886 → 1.0.888
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.
|
@@ -31115,11 +31115,11 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
|
|
|
31115
31115
|
.find('*')
|
|
31116
31116
|
.filter(function () {
|
|
31117
31117
|
// // look if the changed field include in the calling in parameters
|
|
31118
|
-
|
|
31119
|
-
|
|
31118
|
+
const elm_data = $(this).data();
|
|
31119
|
+
const parameter_in_filed_id = elm_data?.paramsP?.parameters_raw_obj?.[val.substr(1)] ? val.substr(1) : '';
|
|
31120
31120
|
let attr = [];
|
|
31121
31121
|
|
|
31122
|
-
$.each(
|
|
31122
|
+
$.each(elm_data?.xuAttributes, function (key, val) {
|
|
31123
31123
|
if (key.substr(0, 3) !== 'xu-') return true;
|
|
31124
31124
|
|
|
31125
31125
|
if (key === 'xu-bind') {
|
|
@@ -32177,7 +32177,16 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32177
32177
|
console.warn(e);
|
|
32178
32178
|
}
|
|
32179
32179
|
|
|
32180
|
-
return {};
|
|
32180
|
+
return { abort: true };
|
|
32181
|
+
},
|
|
32182
|
+
'xu-text': async function ($elm, val) {
|
|
32183
|
+
try {
|
|
32184
|
+
$elm.text(val.value);
|
|
32185
|
+
} catch (error) {
|
|
32186
|
+
console.warn(e);
|
|
32187
|
+
}
|
|
32188
|
+
|
|
32189
|
+
return { abort: true };
|
|
32181
32190
|
},
|
|
32182
32191
|
'xu-for': async function ($elm, data) {
|
|
32183
32192
|
// exit if call from rendered xu-for item to prevent infante loop (parent_infoP?.iterate_info indicate call from rendered item)
|
|
@@ -34166,6 +34175,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34166
34175
|
if (nodeP.content && nodeP.attributes) {
|
|
34167
34176
|
nodeP.attributes['xu-content'] = nodeP.content;
|
|
34168
34177
|
}
|
|
34178
|
+
|
|
34169
34179
|
if (nodeP.tagName === 'xu-widget') {
|
|
34170
34180
|
if (is_skeleton) return;
|
|
34171
34181
|
return await fx['widget']();
|
|
@@ -39053,7 +39063,7 @@ func.index.new_webworker = async function (SESSION_ID, prog_obj, obj) {
|
|
|
39053
39063
|
const content = `importScripts( "${url}" );`;
|
|
39054
39064
|
return URL.createObjectURL(new Blob([content], { type: 'text/javascript' }));
|
|
39055
39065
|
}
|
|
39056
|
-
const _session =
|
|
39066
|
+
const _session = SESSION_OBJ[SESSION_ID];
|
|
39057
39067
|
let blob = getWorkerURL(func.common.get_url(SESSION_ID, 'dist', func.utils.get_resource_filename(['live_preview', 'cms'].includes(_session.engine_mode) ? '' : _session?.opt?.app_build_id, 'runtime/js/xuda_worker.js')));
|
|
39058
39068
|
WEB_WORKER[SESSION_ID][worker_id] = {
|
|
39059
39069
|
worker: new Worker(blob, {
|