@xuda.io/runtime-bundle 1.0.977 → 1.0.978
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.
|
@@ -32163,55 +32163,59 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32163
32163
|
|
|
32164
32164
|
const post_render = async function () {
|
|
32165
32165
|
if (value) {
|
|
32166
|
-
|
|
32167
|
-
|
|
32168
|
-
|
|
32169
|
-
|
|
32166
|
+
try {
|
|
32167
|
+
// abort if already rended
|
|
32168
|
+
if ($elm[0].tagName !== 'XURENDER' && $elm?.length) {
|
|
32169
|
+
return func.events.delete_job(SESSION_ID, jobNoP);
|
|
32170
|
+
}
|
|
32170
32171
|
|
|
32171
|
-
|
|
32172
|
+
let original_data_obj = $elm.data().xuData.original_data_obj;
|
|
32172
32173
|
|
|
32173
|
-
|
|
32174
|
-
|
|
32175
|
-
|
|
32176
|
-
|
|
32177
|
-
|
|
32178
|
-
|
|
32179
|
-
|
|
32180
|
-
|
|
32181
|
-
|
|
32182
|
-
|
|
32183
|
-
|
|
32184
|
-
|
|
32185
|
-
|
|
32186
|
-
|
|
32187
|
-
|
|
32188
|
-
|
|
32189
|
-
|
|
32190
|
-
|
|
32174
|
+
if (!original_data_obj) {
|
|
32175
|
+
func.events.delete_job(SESSION_ID, jobNoP);
|
|
32176
|
+
return { delete_job: jobNoP };
|
|
32177
|
+
}
|
|
32178
|
+
const new_$div = await func.UI.screen.render_ui_tree(
|
|
32179
|
+
SESSION_ID,
|
|
32180
|
+
$elm, //original_data_obj.$container,
|
|
32181
|
+
_.cloneDeep(original_data_obj.nodeP),
|
|
32182
|
+
original_data_obj.parent_infoP,
|
|
32183
|
+
original_data_obj.paramsP,
|
|
32184
|
+
jobNoP,
|
|
32185
|
+
null,
|
|
32186
|
+
original_data_obj.keyP,
|
|
32187
|
+
null,
|
|
32188
|
+
original_data_obj.parent_nodeP,
|
|
32189
|
+
null,
|
|
32190
|
+
original_data_obj.$root_container,
|
|
32191
|
+
);
|
|
32191
32192
|
|
|
32192
|
-
|
|
32193
|
-
|
|
32194
|
-
|
|
32193
|
+
new_$div.data().xuData.original_data_obj = original_data_obj;
|
|
32194
|
+
new_$div.data().xuData.xurender_node = $elm.clone(true);
|
|
32195
|
+
new_$div.data().xuAttributes = $elm.data().xuAttributes || {};
|
|
32195
32196
|
|
|
32196
|
-
|
|
32197
|
-
|
|
32198
|
-
|
|
32199
|
-
|
|
32200
|
-
|
|
32201
|
-
|
|
32202
|
-
|
|
32197
|
+
const replace = async function () {
|
|
32198
|
+
$elm.replaceWith(new_$div);
|
|
32199
|
+
if (from_panel) {
|
|
32200
|
+
const xuPanelWrapper = _.clone(new_$div.data().xuPanelWrapper);
|
|
32201
|
+
$elm.parent().data().xuPanelWrapper = xuPanelWrapper;
|
|
32202
|
+
$elm.replaceWith(new_$div.children());
|
|
32203
|
+
}
|
|
32203
32204
|
|
|
32204
|
-
|
|
32205
|
-
|
|
32206
|
-
|
|
32207
|
-
|
|
32208
|
-
|
|
32205
|
+
if (val.fields_arr) {
|
|
32206
|
+
return await func.UI.screen.refresh_xu_attributes(SESSION_ID, val.fields_arr, val.jobNoP, new_$div);
|
|
32207
|
+
}
|
|
32208
|
+
func.events.delete_job(SESSION_ID, jobNoP);
|
|
32209
|
+
};
|
|
32209
32210
|
|
|
32210
|
-
|
|
32211
|
-
|
|
32212
|
-
|
|
32213
|
-
|
|
32211
|
+
if ($elm && func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', $elm.data().xuData.xu_id).length) {
|
|
32212
|
+
if (new_$div.data().xuData.paramsP) {
|
|
32213
|
+
return await replace();
|
|
32214
|
+
}
|
|
32214
32215
|
|
|
32216
|
+
func.events.delete_job(SESSION_ID, jobNoP);
|
|
32217
|
+
}
|
|
32218
|
+
} catch (error) {
|
|
32215
32219
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
32216
32220
|
}
|
|
32217
32221
|
return;
|