@xuda.io/runtime-bundle 1.0.920 → 1.0.922
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
|
@@ -14410,6 +14410,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14410
14410
|
},
|
|
14411
14411
|
);
|
|
14412
14412
|
|
|
14413
|
+
$div.on('click contextmenu', function (e) {
|
|
14414
|
+
hover_in($div, e);
|
|
14415
|
+
});
|
|
14416
|
+
|
|
14413
14417
|
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, true);
|
|
14414
14418
|
if (ret.abort || nodeP.tagName === 'svg' || !_.isEmpty(nodeP?.attributes?.['xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-html']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-html'])) return await done();
|
|
14415
14419
|
// check if iterator made to prevent children render
|
|
@@ -14475,14 +14479,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14475
14479
|
return;
|
|
14476
14480
|
}
|
|
14477
14481
|
|
|
14478
|
-
if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
} else {
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
}
|
|
14482
|
+
// if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
|
|
14483
|
+
// $div[0].style.removeProperty('height');
|
|
14484
|
+
// $div.removeClass('skeleton');
|
|
14485
|
+
// $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
|
|
14486
|
+
// } else {
|
|
14487
|
+
hover_in($div);
|
|
14488
|
+
ui_job_id = func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
|
|
14489
|
+
// }
|
|
14486
14490
|
observer_outViewport.observe($div[0]);
|
|
14487
14491
|
});
|
|
14488
14492
|
|
|
@@ -14492,7 +14496,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14492
14496
|
if ($div.children().length) {
|
|
14493
14497
|
// UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
|
|
14494
14498
|
$div.empty();
|
|
14495
|
-
const height = $div
|
|
14499
|
+
const height = $div?.data()?.xuData?.viewport_height || 10;
|
|
14496
14500
|
if (typeof height !== 'undefined') {
|
|
14497
14501
|
$div.css('height', height);
|
|
14498
14502
|
}
|
|
@@ -12137,6 +12137,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12137
12137
|
},
|
|
12138
12138
|
);
|
|
12139
12139
|
|
|
12140
|
+
$div.on('click contextmenu', function (e) {
|
|
12141
|
+
hover_in($div, e);
|
|
12142
|
+
});
|
|
12143
|
+
|
|
12140
12144
|
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, true);
|
|
12141
12145
|
if (ret.abort || nodeP.tagName === 'svg' || !_.isEmpty(nodeP?.attributes?.['xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-html']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-text']) || !_.isEmpty(nodeP?.attributes?.['xu-exp:xu-html'])) return await done();
|
|
12142
12146
|
// check if iterator made to prevent children render
|
|
@@ -12202,14 +12206,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12202
12206
|
return;
|
|
12203
12207
|
}
|
|
12204
12208
|
|
|
12205
|
-
if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
} else {
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
}
|
|
12209
|
+
// if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
|
|
12210
|
+
// $div[0].style.removeProperty('height');
|
|
12211
|
+
// $div.removeClass('skeleton');
|
|
12212
|
+
// $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
|
|
12213
|
+
// } else {
|
|
12214
|
+
hover_in($div);
|
|
12215
|
+
ui_job_id = func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
|
|
12216
|
+
// }
|
|
12213
12217
|
observer_outViewport.observe($div[0]);
|
|
12214
12218
|
});
|
|
12215
12219
|
|
|
@@ -12219,7 +12223,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12219
12223
|
if ($div.children().length) {
|
|
12220
12224
|
// UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
|
|
12221
12225
|
$div.empty();
|
|
12222
|
-
const height = $div
|
|
12226
|
+
const height = $div?.data()?.xuData?.viewport_height || 10;
|
|
12223
12227
|
if (typeof height !== 'undefined') {
|
|
12224
12228
|
$div.css('height', height);
|
|
12225
12229
|
}
|