@xuda.io/runtime-bundle 1.0.1253 → 1.0.1255
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.
|
@@ -36370,7 +36370,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
36370
36370
|
};
|
|
36371
36371
|
|
|
36372
36372
|
const render_screen_type = async function ($div) {
|
|
36373
|
-
const set_call_screen_properties_values = async function (ui_framework) {
|
|
36373
|
+
const set_call_screen_properties_values = async function (ui_framework, params) {
|
|
36374
36374
|
params.properties = {};
|
|
36375
36375
|
|
|
36376
36376
|
const get_values = async function (property) {
|
|
@@ -36409,7 +36409,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
36409
36409
|
|
|
36410
36410
|
let $ret = $div;
|
|
36411
36411
|
const $nav = $(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav');
|
|
36412
|
-
let params;
|
|
36413
36412
|
|
|
36414
36413
|
switch (paramsP.screen_type) {
|
|
36415
36414
|
case 'modal':
|
|
@@ -36423,7 +36422,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
36423
36422
|
|
|
36424
36423
|
let controller_params = $(xu_modal_controller).data('xuControllerParams') || {};
|
|
36425
36424
|
|
|
36426
|
-
|
|
36425
|
+
const modalParams = {
|
|
36427
36426
|
screenId: paramsP.screenId,
|
|
36428
36427
|
$dialogDiv: $div.children(),
|
|
36429
36428
|
$container: $container,
|
|
@@ -36434,40 +36433,40 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
36434
36433
|
paramsP,
|
|
36435
36434
|
};
|
|
36436
36435
|
|
|
36437
|
-
controller_params[modal_id] =
|
|
36436
|
+
controller_params[modal_id] = modalParams;
|
|
36438
36437
|
$(xu_modal_controller).data('xuControllerParams', controller_params);
|
|
36439
36438
|
|
|
36440
36439
|
const modalController = new UI_FRAMEWORK_PLUGIN.modal();
|
|
36441
|
-
await set_call_screen_properties_values(modalController);
|
|
36440
|
+
await set_call_screen_properties_values(modalController, modalParams);
|
|
36442
36441
|
|
|
36443
36442
|
if (!APP_MODAL_OBJ[modal_id]) {
|
|
36444
|
-
APP_MODAL_OBJ[modal_id] = await modalController.create(
|
|
36443
|
+
APP_MODAL_OBJ[modal_id] = await modalController.create(modalParams);
|
|
36445
36444
|
} else {
|
|
36446
36445
|
$(modal_id).empty();
|
|
36447
36446
|
}
|
|
36448
|
-
await modalController.init(
|
|
36447
|
+
await modalController.init(modalParams);
|
|
36449
36448
|
break;
|
|
36450
36449
|
|
|
36451
36450
|
case 'popover':
|
|
36452
36451
|
const xu_popover_controller = func.UI.component.create_app_popover_component(SESSION_ID);
|
|
36453
|
-
|
|
36452
|
+
const popoverParams = {
|
|
36454
36453
|
menuTitle: paramsP.screenInfo.properties?.menuTitle,
|
|
36455
36454
|
screenId: paramsP.screenId,
|
|
36456
36455
|
$dialogDiv: $div.children(),
|
|
36457
36456
|
$container: $container,
|
|
36458
36457
|
};
|
|
36459
36458
|
|
|
36460
|
-
$(xu_popover_controller).data('xuControllerParams',
|
|
36459
|
+
$(xu_popover_controller).data('xuControllerParams', popoverParams);
|
|
36461
36460
|
const popover = new UI_FRAMEWORK_PLUGIN.popover(SESSION_ID);
|
|
36462
|
-
await set_call_screen_properties_values(popover);
|
|
36463
|
-
await popover.open(
|
|
36461
|
+
await set_call_screen_properties_values(popover, popoverParams);
|
|
36462
|
+
await popover.open(popoverParams);
|
|
36464
36463
|
CURRENT_APP_POPOVER = popover;
|
|
36465
36464
|
func.UI.utils.screen_blocker(false, `${paramsP.prog_id}_${paramsP.sourceScreenP}`);
|
|
36466
36465
|
break;
|
|
36467
36466
|
|
|
36468
36467
|
case 'page':
|
|
36469
36468
|
const nav = $nav[0];
|
|
36470
|
-
|
|
36469
|
+
const pageParams = {
|
|
36471
36470
|
div: $div_content,
|
|
36472
36471
|
name: paramsP.screenInfo.properties?.menuTitle,
|
|
36473
36472
|
screenId: paramsP.screenId,
|
|
@@ -36487,19 +36486,19 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
36487
36486
|
|
|
36488
36487
|
// Restore validate
|
|
36489
36488
|
if (navXuData.params?.[paramsP.dsSessionP]) {
|
|
36490
|
-
|
|
36489
|
+
pageParams.$container.data().xuData.validate_screen_ready = navXuData.params[paramsP.dsSessionP].$container.data().xuData.validate_screen_ready;
|
|
36491
36490
|
}
|
|
36492
36491
|
|
|
36493
36492
|
if (!navXuData) return;
|
|
36494
|
-
navXuData.nav_params[paramsP.dsSessionP] =
|
|
36493
|
+
navXuData.nav_params[paramsP.dsSessionP] = pageParams;
|
|
36495
36494
|
|
|
36496
36495
|
if (!$(component_name).length) {
|
|
36497
36496
|
await func.UI.component.create_app_page_component(SESSION_ID, paramsP.dsSessionP);
|
|
36498
36497
|
const page = new UI_FRAMEWORK_PLUGIN.page();
|
|
36499
|
-
await set_call_screen_properties_values(page);
|
|
36500
|
-
await page.create(
|
|
36501
|
-
await page.init(
|
|
36502
|
-
nav.push(component_name, { params });
|
|
36498
|
+
await set_call_screen_properties_values(page, pageParams);
|
|
36499
|
+
await page.create(pageParams);
|
|
36500
|
+
await page.init(pageParams);
|
|
36501
|
+
nav.push(component_name, { params: pageParams });
|
|
36503
36502
|
} else {
|
|
36504
36503
|
$(component_name).empty();
|
|
36505
36504
|
await UI_FRAMEWORK_PLUGIN.page(SESSION_ID, paramsP.dsSessionP);
|
|
@@ -36513,14 +36512,22 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
36513
36512
|
break;
|
|
36514
36513
|
|
|
36515
36514
|
default:
|
|
36516
|
-
|
|
36517
|
-
|
|
36518
|
-
$
|
|
36519
|
-
|
|
36515
|
+
let $activeNav = $nav;
|
|
36516
|
+
if (!$activeNav?.length) {
|
|
36517
|
+
$activeNav = $('<xu-nav>');
|
|
36518
|
+
$container.append($activeNav);
|
|
36519
|
+
func.UI.component.init_xu_nav($container, $activeNav);
|
|
36520
36520
|
}
|
|
36521
36521
|
|
|
36522
|
-
$
|
|
36523
|
-
|
|
36522
|
+
const navData = $activeNav.data().xuData;
|
|
36523
|
+
if (navData) {
|
|
36524
|
+
navData.$div = $div_content;
|
|
36525
|
+
}
|
|
36526
|
+
|
|
36527
|
+
const navElement = $activeNav[0];
|
|
36528
|
+
if (navElement && navElement.setRoot) {
|
|
36529
|
+
await navElement.setRoot(`xu-root-component-${SESSION_ID}`);
|
|
36530
|
+
}
|
|
36524
36531
|
$ret = $container;
|
|
36525
36532
|
break;
|
|
36526
36533
|
}
|