@xuda.io/runtime-bundle 1.0.982 → 1.0.984
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
|
@@ -12083,7 +12083,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12083
12083
|
// };
|
|
12084
12084
|
const program = val.value?.prog || val.value;
|
|
12085
12085
|
var $wrapper = $('<div>');
|
|
12086
|
-
var $div =
|
|
12086
|
+
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, '');
|
|
12087
12087
|
const params_obj = await get_params_obj_new(SESSION_ID, program, nodeP, paramsP.dsSessionP);
|
|
12088
12088
|
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);
|
|
12089
12089
|
ret = {
|
|
@@ -13410,7 +13410,7 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
13410
13410
|
return jobNoP;
|
|
13411
13411
|
};
|
|
13412
13412
|
|
|
13413
|
-
func.UI.screen.create_container =
|
|
13413
|
+
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) {
|
|
13414
13414
|
const _paramsP = _.cloneDeep(paramsP);
|
|
13415
13415
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
13416
13416
|
var $appendTo = $container;
|
|
@@ -13476,25 +13476,6 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
13476
13476
|
} else {
|
|
13477
13477
|
$div = $(`<${div} ${attr_str ? attr_str : ''}>`);
|
|
13478
13478
|
}
|
|
13479
|
-
// const svgNS = "http://www.w3.org/2000/svg";
|
|
13480
|
-
// // $div = $(document.createElementNS(svgNS, "svg"));
|
|
13481
|
-
// $div = $(`<${div} ${attr_str ? attr_str : ""} ${svg_attributes_str}>`);
|
|
13482
|
-
// } else {
|
|
13483
|
-
// $div = $(`<${div} ${attr_str ? attr_str : ""}>`);
|
|
13484
|
-
|
|
13485
|
-
// async function generateHash(str, algorithm = 'SHA-256') {
|
|
13486
|
-
// // Encode the string as UTF-8
|
|
13487
|
-
// const msgBuffer = new TextEncoder().encode(str);
|
|
13488
|
-
|
|
13489
|
-
// // Hash the string
|
|
13490
|
-
// const hashBuffer = await crypto.subtle.digest(algorithm, msgBuffer);
|
|
13491
|
-
|
|
13492
|
-
// // Convert to hex string
|
|
13493
|
-
// const hashArray = Array.from(new Uint8Array(hashBuffer));
|
|
13494
|
-
// const hashHex = hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
|
|
13495
|
-
|
|
13496
|
-
// return hashHex;
|
|
13497
|
-
// }
|
|
13498
13479
|
|
|
13499
13480
|
// Returns a 32-bit unsigned integer hash of a string (FNV-1a)
|
|
13500
13481
|
function hash32(str) {
|
|
@@ -13512,8 +13493,7 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
13512
13493
|
return (hash32(str) >>> 0).toString(16).padStart(8, '0');
|
|
13513
13494
|
}
|
|
13514
13495
|
|
|
13515
|
-
|
|
13516
|
-
const new_ui_id = hash32hex(ui_id);
|
|
13496
|
+
const new_ui_id = ui_id; // hash32hex(ui_id);
|
|
13517
13497
|
|
|
13518
13498
|
$div.attr('xu-ui-id', new_ui_id).data({
|
|
13519
13499
|
xuData: {
|
|
@@ -14206,7 +14186,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14206
14186
|
var exist_elm_obj = get_element_info();
|
|
14207
14187
|
var $div = exist_elm_obj.div;
|
|
14208
14188
|
if (!exist_elm_obj.div) {
|
|
14209
|
-
$div =
|
|
14189
|
+
$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);
|
|
14210
14190
|
|
|
14211
14191
|
//////////////////////////
|
|
14212
14192
|
|
|
@@ -14408,7 +14388,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14408
14388
|
|
|
14409
14389
|
if (!exist_elm_obj.div) {
|
|
14410
14390
|
var $wrapper = $('<div>');
|
|
14411
|
-
$div =
|
|
14391
|
+
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, 'div', $wrapper, '');
|
|
14412
14392
|
|
|
14413
14393
|
if (!$div) return;
|
|
14414
14394
|
|
|
@@ -14548,7 +14528,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14548
14528
|
};
|
|
14549
14529
|
|
|
14550
14530
|
var $wrapper = $('<div>');
|
|
14551
|
-
$div =
|
|
14531
|
+
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, null, $wrapper, '');
|
|
14552
14532
|
|
|
14553
14533
|
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);
|
|
14554
14534
|
if (ret.abort) {
|
|
@@ -14578,7 +14558,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14578
14558
|
if (!element || element === 'script') return await done();
|
|
14579
14559
|
let str = '';
|
|
14580
14560
|
|
|
14581
|
-
var $div =
|
|
14561
|
+
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);
|
|
14582
14562
|
|
|
14583
14563
|
$div.hover(
|
|
14584
14564
|
function (e) {
|
|
@@ -9808,7 +9808,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
9808
9808
|
// };
|
|
9809
9809
|
const program = val.value?.prog || val.value;
|
|
9810
9810
|
var $wrapper = $('<div>');
|
|
9811
|
-
var $div =
|
|
9811
|
+
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, '');
|
|
9812
9812
|
const params_obj = await get_params_obj_new(SESSION_ID, program, nodeP, paramsP.dsSessionP);
|
|
9813
9813
|
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);
|
|
9814
9814
|
ret = {
|
|
@@ -11135,7 +11135,7 @@ func.UI.screen.panel_post_render_handler = async function (
|
|
|
11135
11135
|
return jobNoP;
|
|
11136
11136
|
};
|
|
11137
11137
|
|
|
11138
|
-
func.UI.screen.create_container =
|
|
11138
|
+
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) {
|
|
11139
11139
|
const _paramsP = _.cloneDeep(paramsP);
|
|
11140
11140
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_paramsP.dsSessionP];
|
|
11141
11141
|
var $appendTo = $container;
|
|
@@ -11201,25 +11201,6 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
11201
11201
|
} else {
|
|
11202
11202
|
$div = $(`<${div} ${attr_str ? attr_str : ''}>`);
|
|
11203
11203
|
}
|
|
11204
|
-
// const svgNS = "http://www.w3.org/2000/svg";
|
|
11205
|
-
// // $div = $(document.createElementNS(svgNS, "svg"));
|
|
11206
|
-
// $div = $(`<${div} ${attr_str ? attr_str : ""} ${svg_attributes_str}>`);
|
|
11207
|
-
// } else {
|
|
11208
|
-
// $div = $(`<${div} ${attr_str ? attr_str : ""}>`);
|
|
11209
|
-
|
|
11210
|
-
// async function generateHash(str, algorithm = 'SHA-256') {
|
|
11211
|
-
// // Encode the string as UTF-8
|
|
11212
|
-
// const msgBuffer = new TextEncoder().encode(str);
|
|
11213
|
-
|
|
11214
|
-
// // Hash the string
|
|
11215
|
-
// const hashBuffer = await crypto.subtle.digest(algorithm, msgBuffer);
|
|
11216
|
-
|
|
11217
|
-
// // Convert to hex string
|
|
11218
|
-
// const hashArray = Array.from(new Uint8Array(hashBuffer));
|
|
11219
|
-
// const hashHex = hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
|
|
11220
|
-
|
|
11221
|
-
// return hashHex;
|
|
11222
|
-
// }
|
|
11223
11204
|
|
|
11224
11205
|
// Returns a 32-bit unsigned integer hash of a string (FNV-1a)
|
|
11225
11206
|
function hash32(str) {
|
|
@@ -11237,8 +11218,7 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
11237
11218
|
return (hash32(str) >>> 0).toString(16).padStart(8, '0');
|
|
11238
11219
|
}
|
|
11239
11220
|
|
|
11240
|
-
|
|
11241
|
-
const new_ui_id = hash32hex(ui_id);
|
|
11221
|
+
const new_ui_id = ui_id; // hash32hex(ui_id);
|
|
11242
11222
|
|
|
11243
11223
|
$div.attr('xu-ui-id', new_ui_id).data({
|
|
11244
11224
|
xuData: {
|
|
@@ -11931,7 +11911,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
11931
11911
|
var exist_elm_obj = get_element_info();
|
|
11932
11912
|
var $div = exist_elm_obj.div;
|
|
11933
11913
|
if (!exist_elm_obj.div) {
|
|
11934
|
-
$div =
|
|
11914
|
+
$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);
|
|
11935
11915
|
|
|
11936
11916
|
//////////////////////////
|
|
11937
11917
|
|
|
@@ -12133,7 +12113,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12133
12113
|
|
|
12134
12114
|
if (!exist_elm_obj.div) {
|
|
12135
12115
|
var $wrapper = $('<div>');
|
|
12136
|
-
$div =
|
|
12116
|
+
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, 'div', $wrapper, '');
|
|
12137
12117
|
|
|
12138
12118
|
if (!$div) return;
|
|
12139
12119
|
|
|
@@ -12273,7 +12253,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12273
12253
|
};
|
|
12274
12254
|
|
|
12275
12255
|
var $wrapper = $('<div>');
|
|
12276
|
-
$div =
|
|
12256
|
+
$div = func.UI.screen.create_container(SESSION_ID, $root_container, nodeP, $container, paramsP, parent_infoP, jobNoP, keyP, parent_nodeP, prop, null, null, null, $wrapper, '');
|
|
12277
12257
|
|
|
12278
12258
|
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);
|
|
12279
12259
|
if (ret.abort) {
|
|
@@ -12303,7 +12283,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12303
12283
|
if (!element || element === 'script') return await done();
|
|
12304
12284
|
let str = '';
|
|
12305
12285
|
|
|
12306
|
-
var $div =
|
|
12286
|
+
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);
|
|
12307
12287
|
|
|
12308
12288
|
$div.hover(
|
|
12309
12289
|
function (e) {
|