@xuda.io/runtime-bundle 1.0.1135 → 1.0.1137
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-slim.js
CHANGED
|
@@ -12658,8 +12658,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12658
12658
|
}
|
|
12659
12659
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
12660
12660
|
};
|
|
12661
|
-
|
|
12662
|
-
if ($elm &&
|
|
12661
|
+
// if ($elm && func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', $elm.data().xuData.xu_id).length) {
|
|
12662
|
+
if ($elm && $(`[xu-ui-id="${$elm.attr('xu-ui-id')}"]`).length) {
|
|
12663
12663
|
if (new_$div.data().xuData.paramsP) {
|
|
12664
12664
|
return await replace();
|
|
12665
12665
|
}
|
|
@@ -13178,7 +13178,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
13178
13178
|
prop_val.value = res.result;
|
|
13179
13179
|
}
|
|
13180
13180
|
}
|
|
13181
|
-
|
|
13181
|
+
$elm.data().xu_ui_plugin = { properties };
|
|
13182
13182
|
const plugin_runtime_src = await func.utils.get_plugin_npm_cdn(SESSION_ID, plugin_name, `${_plugin.manifest['runtime.mjs'].dist ? 'dist/' : ''}runtime.mjs`);
|
|
13183
13183
|
|
|
13184
13184
|
const plugin_runtime_resources = await import(plugin_runtime_src);
|
|
@@ -13190,7 +13190,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
13190
13190
|
}
|
|
13191
13191
|
|
|
13192
13192
|
if (plugin_runtime_resources.fn) {
|
|
13193
|
-
await plugin_runtime_resources.fn(plugin_name, $elm?.[0], properties);
|
|
13193
|
+
// await plugin_runtime_resources.fn(plugin_name, $elm?.[0], properties);
|
|
13194
|
+
await plugin_runtime_resources.fn(plugin_name, $elm?.[0], $elm.data().xu_ui_plugin.properties);
|
|
13194
13195
|
}
|
|
13195
13196
|
}
|
|
13196
13197
|
}
|
|
@@ -13679,8 +13680,8 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
13679
13680
|
return val.xu_tree_id || val.id;
|
|
13680
13681
|
});
|
|
13681
13682
|
var currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
|
|
13682
|
-
var xu_id = (glb.screen_num++).toString();
|
|
13683
|
-
xu_id = xu_id += '_' + currentRecordId;
|
|
13683
|
+
// var xu_id = (glb.screen_num++).toString();
|
|
13684
|
+
// xu_id = xu_id += '_' + currentRecordId;
|
|
13684
13685
|
|
|
13685
13686
|
try {
|
|
13686
13687
|
const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
|
|
@@ -13761,7 +13762,7 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
13761
13762
|
prog_id: _paramsP.prog_id,
|
|
13762
13763
|
nodeid: nodeP.id,
|
|
13763
13764
|
ui_type: nodeP.tagName,
|
|
13764
|
-
xu_id,
|
|
13765
|
+
// xu_id,
|
|
13765
13766
|
recordid: currentRecordId,
|
|
13766
13767
|
paramsP: _paramsP,
|
|
13767
13768
|
key: keyP,
|
|
@@ -10383,8 +10383,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10383
10383
|
}
|
|
10384
10384
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
10385
10385
|
};
|
|
10386
|
-
|
|
10387
|
-
if ($elm &&
|
|
10386
|
+
// if ($elm && func.UI.utils.find_in_element_data('xuData', $(SESSION_OBJ[SESSION_ID].root_element), 'xu_id', $elm.data().xuData.xu_id).length) {
|
|
10387
|
+
if ($elm && $(`[xu-ui-id="${$elm.attr('xu-ui-id')}"]`).length) {
|
|
10388
10388
|
if (new_$div.data().xuData.paramsP) {
|
|
10389
10389
|
return await replace();
|
|
10390
10390
|
}
|
|
@@ -10903,7 +10903,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10903
10903
|
prop_val.value = res.result;
|
|
10904
10904
|
}
|
|
10905
10905
|
}
|
|
10906
|
-
|
|
10906
|
+
$elm.data().xu_ui_plugin = { properties };
|
|
10907
10907
|
const plugin_runtime_src = await func.utils.get_plugin_npm_cdn(SESSION_ID, plugin_name, `${_plugin.manifest['runtime.mjs'].dist ? 'dist/' : ''}runtime.mjs`);
|
|
10908
10908
|
|
|
10909
10909
|
const plugin_runtime_resources = await import(plugin_runtime_src);
|
|
@@ -10915,7 +10915,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10915
10915
|
}
|
|
10916
10916
|
|
|
10917
10917
|
if (plugin_runtime_resources.fn) {
|
|
10918
|
-
await plugin_runtime_resources.fn(plugin_name, $elm?.[0], properties);
|
|
10918
|
+
// await plugin_runtime_resources.fn(plugin_name, $elm?.[0], properties);
|
|
10919
|
+
await plugin_runtime_resources.fn(plugin_name, $elm?.[0], $elm.data().xu_ui_plugin.properties);
|
|
10919
10920
|
}
|
|
10920
10921
|
}
|
|
10921
10922
|
}
|
|
@@ -11404,8 +11405,8 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
11404
11405
|
return val.xu_tree_id || val.id;
|
|
11405
11406
|
});
|
|
11406
11407
|
var currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
|
|
11407
|
-
var xu_id = (glb.screen_num++).toString();
|
|
11408
|
-
xu_id = xu_id += '_' + currentRecordId;
|
|
11408
|
+
// var xu_id = (glb.screen_num++).toString();
|
|
11409
|
+
// xu_id = xu_id += '_' + currentRecordId;
|
|
11409
11410
|
|
|
11410
11411
|
try {
|
|
11411
11412
|
const key_path = `${$container?.data()?.xuData?.key_path || '0'}-${keyP || '0'}`;
|
|
@@ -11486,7 +11487,7 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
11486
11487
|
prog_id: _paramsP.prog_id,
|
|
11487
11488
|
nodeid: nodeP.id,
|
|
11488
11489
|
ui_type: nodeP.tagName,
|
|
11489
|
-
xu_id,
|
|
11490
|
+
// xu_id,
|
|
11490
11491
|
recordid: currentRecordId,
|
|
11491
11492
|
paramsP: _paramsP,
|
|
11492
11493
|
key: keyP,
|