@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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -16644,7 +16644,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
16644
16644
|
};
|
|
16645
16645
|
|
|
16646
16646
|
const render_screen_type = async function ($div) {
|
|
16647
|
-
const set_call_screen_properties_values = async function (ui_framework) {
|
|
16647
|
+
const set_call_screen_properties_values = async function (ui_framework, params) {
|
|
16648
16648
|
params.properties = {};
|
|
16649
16649
|
|
|
16650
16650
|
const get_values = async function (property) {
|
|
@@ -16683,7 +16683,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
16683
16683
|
|
|
16684
16684
|
let $ret = $div;
|
|
16685
16685
|
const $nav = $(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav');
|
|
16686
|
-
let params;
|
|
16687
16686
|
|
|
16688
16687
|
switch (paramsP.screen_type) {
|
|
16689
16688
|
case 'modal':
|
|
@@ -16697,7 +16696,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
16697
16696
|
|
|
16698
16697
|
let controller_params = $(xu_modal_controller).data('xuControllerParams') || {};
|
|
16699
16698
|
|
|
16700
|
-
|
|
16699
|
+
const modalParams = {
|
|
16701
16700
|
screenId: paramsP.screenId,
|
|
16702
16701
|
$dialogDiv: $div.children(),
|
|
16703
16702
|
$container: $container,
|
|
@@ -16708,40 +16707,40 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
16708
16707
|
paramsP,
|
|
16709
16708
|
};
|
|
16710
16709
|
|
|
16711
|
-
controller_params[modal_id] =
|
|
16710
|
+
controller_params[modal_id] = modalParams;
|
|
16712
16711
|
$(xu_modal_controller).data('xuControllerParams', controller_params);
|
|
16713
16712
|
|
|
16714
16713
|
const modalController = new UI_FRAMEWORK_PLUGIN.modal();
|
|
16715
|
-
await set_call_screen_properties_values(modalController);
|
|
16714
|
+
await set_call_screen_properties_values(modalController, modalParams);
|
|
16716
16715
|
|
|
16717
16716
|
if (!APP_MODAL_OBJ[modal_id]) {
|
|
16718
|
-
APP_MODAL_OBJ[modal_id] = await modalController.create(
|
|
16717
|
+
APP_MODAL_OBJ[modal_id] = await modalController.create(modalParams);
|
|
16719
16718
|
} else {
|
|
16720
16719
|
$(modal_id).empty();
|
|
16721
16720
|
}
|
|
16722
|
-
await modalController.init(
|
|
16721
|
+
await modalController.init(modalParams);
|
|
16723
16722
|
break;
|
|
16724
16723
|
|
|
16725
16724
|
case 'popover':
|
|
16726
16725
|
const xu_popover_controller = func.UI.component.create_app_popover_component(SESSION_ID);
|
|
16727
|
-
|
|
16726
|
+
const popoverParams = {
|
|
16728
16727
|
menuTitle: paramsP.screenInfo.properties?.menuTitle,
|
|
16729
16728
|
screenId: paramsP.screenId,
|
|
16730
16729
|
$dialogDiv: $div.children(),
|
|
16731
16730
|
$container: $container,
|
|
16732
16731
|
};
|
|
16733
16732
|
|
|
16734
|
-
$(xu_popover_controller).data('xuControllerParams',
|
|
16733
|
+
$(xu_popover_controller).data('xuControllerParams', popoverParams);
|
|
16735
16734
|
const popover = new UI_FRAMEWORK_PLUGIN.popover(SESSION_ID);
|
|
16736
|
-
await set_call_screen_properties_values(popover);
|
|
16737
|
-
await popover.open(
|
|
16735
|
+
await set_call_screen_properties_values(popover, popoverParams);
|
|
16736
|
+
await popover.open(popoverParams);
|
|
16738
16737
|
CURRENT_APP_POPOVER = popover;
|
|
16739
16738
|
func.UI.utils.screen_blocker(false, `${paramsP.prog_id}_${paramsP.sourceScreenP}`);
|
|
16740
16739
|
break;
|
|
16741
16740
|
|
|
16742
16741
|
case 'page':
|
|
16743
16742
|
const nav = $nav[0];
|
|
16744
|
-
|
|
16743
|
+
const pageParams = {
|
|
16745
16744
|
div: $div_content,
|
|
16746
16745
|
name: paramsP.screenInfo.properties?.menuTitle,
|
|
16747
16746
|
screenId: paramsP.screenId,
|
|
@@ -16761,19 +16760,19 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
16761
16760
|
|
|
16762
16761
|
// Restore validate
|
|
16763
16762
|
if (navXuData.params?.[paramsP.dsSessionP]) {
|
|
16764
|
-
|
|
16763
|
+
pageParams.$container.data().xuData.validate_screen_ready = navXuData.params[paramsP.dsSessionP].$container.data().xuData.validate_screen_ready;
|
|
16765
16764
|
}
|
|
16766
16765
|
|
|
16767
16766
|
if (!navXuData) return;
|
|
16768
|
-
navXuData.nav_params[paramsP.dsSessionP] =
|
|
16767
|
+
navXuData.nav_params[paramsP.dsSessionP] = pageParams;
|
|
16769
16768
|
|
|
16770
16769
|
if (!$(component_name).length) {
|
|
16771
16770
|
await func.UI.component.create_app_page_component(SESSION_ID, paramsP.dsSessionP);
|
|
16772
16771
|
const page = new UI_FRAMEWORK_PLUGIN.page();
|
|
16773
|
-
await set_call_screen_properties_values(page);
|
|
16774
|
-
await page.create(
|
|
16775
|
-
await page.init(
|
|
16776
|
-
nav.push(component_name, { params });
|
|
16772
|
+
await set_call_screen_properties_values(page, pageParams);
|
|
16773
|
+
await page.create(pageParams);
|
|
16774
|
+
await page.init(pageParams);
|
|
16775
|
+
nav.push(component_name, { params: pageParams });
|
|
16777
16776
|
} else {
|
|
16778
16777
|
$(component_name).empty();
|
|
16779
16778
|
await UI_FRAMEWORK_PLUGIN.page(SESSION_ID, paramsP.dsSessionP);
|
|
@@ -16787,14 +16786,22 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
16787
16786
|
break;
|
|
16788
16787
|
|
|
16789
16788
|
default:
|
|
16790
|
-
|
|
16791
|
-
|
|
16792
|
-
$
|
|
16793
|
-
|
|
16789
|
+
let $activeNav = $nav;
|
|
16790
|
+
if (!$activeNav?.length) {
|
|
16791
|
+
$activeNav = $('<xu-nav>');
|
|
16792
|
+
$container.append($activeNav);
|
|
16793
|
+
func.UI.component.init_xu_nav($container, $activeNav);
|
|
16794
16794
|
}
|
|
16795
16795
|
|
|
16796
|
-
$
|
|
16797
|
-
|
|
16796
|
+
const navData = $activeNav.data().xuData;
|
|
16797
|
+
if (navData) {
|
|
16798
|
+
navData.$div = $div_content;
|
|
16799
|
+
}
|
|
16800
|
+
|
|
16801
|
+
const navElement = $activeNav[0];
|
|
16802
|
+
if (navElement && navElement.setRoot) {
|
|
16803
|
+
await navElement.setRoot(`xu-root-component-${SESSION_ID}`);
|
|
16804
|
+
}
|
|
16798
16805
|
$ret = $container;
|
|
16799
16806
|
break;
|
|
16800
16807
|
}
|
|
@@ -14369,7 +14369,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14369
14369
|
};
|
|
14370
14370
|
|
|
14371
14371
|
const render_screen_type = async function ($div) {
|
|
14372
|
-
const set_call_screen_properties_values = async function (ui_framework) {
|
|
14372
|
+
const set_call_screen_properties_values = async function (ui_framework, params) {
|
|
14373
14373
|
params.properties = {};
|
|
14374
14374
|
|
|
14375
14375
|
const get_values = async function (property) {
|
|
@@ -14408,7 +14408,6 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14408
14408
|
|
|
14409
14409
|
let $ret = $div;
|
|
14410
14410
|
const $nav = $(SESSION_OBJ[SESSION_ID].root_element).find('xu-nav');
|
|
14411
|
-
let params;
|
|
14412
14411
|
|
|
14413
14412
|
switch (paramsP.screen_type) {
|
|
14414
14413
|
case 'modal':
|
|
@@ -14422,7 +14421,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14422
14421
|
|
|
14423
14422
|
let controller_params = $(xu_modal_controller).data('xuControllerParams') || {};
|
|
14424
14423
|
|
|
14425
|
-
|
|
14424
|
+
const modalParams = {
|
|
14426
14425
|
screenId: paramsP.screenId,
|
|
14427
14426
|
$dialogDiv: $div.children(),
|
|
14428
14427
|
$container: $container,
|
|
@@ -14433,40 +14432,40 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14433
14432
|
paramsP,
|
|
14434
14433
|
};
|
|
14435
14434
|
|
|
14436
|
-
controller_params[modal_id] =
|
|
14435
|
+
controller_params[modal_id] = modalParams;
|
|
14437
14436
|
$(xu_modal_controller).data('xuControllerParams', controller_params);
|
|
14438
14437
|
|
|
14439
14438
|
const modalController = new UI_FRAMEWORK_PLUGIN.modal();
|
|
14440
|
-
await set_call_screen_properties_values(modalController);
|
|
14439
|
+
await set_call_screen_properties_values(modalController, modalParams);
|
|
14441
14440
|
|
|
14442
14441
|
if (!APP_MODAL_OBJ[modal_id]) {
|
|
14443
|
-
APP_MODAL_OBJ[modal_id] = await modalController.create(
|
|
14442
|
+
APP_MODAL_OBJ[modal_id] = await modalController.create(modalParams);
|
|
14444
14443
|
} else {
|
|
14445
14444
|
$(modal_id).empty();
|
|
14446
14445
|
}
|
|
14447
|
-
await modalController.init(
|
|
14446
|
+
await modalController.init(modalParams);
|
|
14448
14447
|
break;
|
|
14449
14448
|
|
|
14450
14449
|
case 'popover':
|
|
14451
14450
|
const xu_popover_controller = func.UI.component.create_app_popover_component(SESSION_ID);
|
|
14452
|
-
|
|
14451
|
+
const popoverParams = {
|
|
14453
14452
|
menuTitle: paramsP.screenInfo.properties?.menuTitle,
|
|
14454
14453
|
screenId: paramsP.screenId,
|
|
14455
14454
|
$dialogDiv: $div.children(),
|
|
14456
14455
|
$container: $container,
|
|
14457
14456
|
};
|
|
14458
14457
|
|
|
14459
|
-
$(xu_popover_controller).data('xuControllerParams',
|
|
14458
|
+
$(xu_popover_controller).data('xuControllerParams', popoverParams);
|
|
14460
14459
|
const popover = new UI_FRAMEWORK_PLUGIN.popover(SESSION_ID);
|
|
14461
|
-
await set_call_screen_properties_values(popover);
|
|
14462
|
-
await popover.open(
|
|
14460
|
+
await set_call_screen_properties_values(popover, popoverParams);
|
|
14461
|
+
await popover.open(popoverParams);
|
|
14463
14462
|
CURRENT_APP_POPOVER = popover;
|
|
14464
14463
|
func.UI.utils.screen_blocker(false, `${paramsP.prog_id}_${paramsP.sourceScreenP}`);
|
|
14465
14464
|
break;
|
|
14466
14465
|
|
|
14467
14466
|
case 'page':
|
|
14468
14467
|
const nav = $nav[0];
|
|
14469
|
-
|
|
14468
|
+
const pageParams = {
|
|
14470
14469
|
div: $div_content,
|
|
14471
14470
|
name: paramsP.screenInfo.properties?.menuTitle,
|
|
14472
14471
|
screenId: paramsP.screenId,
|
|
@@ -14486,19 +14485,19 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14486
14485
|
|
|
14487
14486
|
// Restore validate
|
|
14488
14487
|
if (navXuData.params?.[paramsP.dsSessionP]) {
|
|
14489
|
-
|
|
14488
|
+
pageParams.$container.data().xuData.validate_screen_ready = navXuData.params[paramsP.dsSessionP].$container.data().xuData.validate_screen_ready;
|
|
14490
14489
|
}
|
|
14491
14490
|
|
|
14492
14491
|
if (!navXuData) return;
|
|
14493
|
-
navXuData.nav_params[paramsP.dsSessionP] =
|
|
14492
|
+
navXuData.nav_params[paramsP.dsSessionP] = pageParams;
|
|
14494
14493
|
|
|
14495
14494
|
if (!$(component_name).length) {
|
|
14496
14495
|
await func.UI.component.create_app_page_component(SESSION_ID, paramsP.dsSessionP);
|
|
14497
14496
|
const page = new UI_FRAMEWORK_PLUGIN.page();
|
|
14498
|
-
await set_call_screen_properties_values(page);
|
|
14499
|
-
await page.create(
|
|
14500
|
-
await page.init(
|
|
14501
|
-
nav.push(component_name, { params });
|
|
14497
|
+
await set_call_screen_properties_values(page, pageParams);
|
|
14498
|
+
await page.create(pageParams);
|
|
14499
|
+
await page.init(pageParams);
|
|
14500
|
+
nav.push(component_name, { params: pageParams });
|
|
14502
14501
|
} else {
|
|
14503
14502
|
$(component_name).empty();
|
|
14504
14503
|
await UI_FRAMEWORK_PLUGIN.page(SESSION_ID, paramsP.dsSessionP);
|
|
@@ -14512,14 +14511,22 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14512
14511
|
break;
|
|
14513
14512
|
|
|
14514
14513
|
default:
|
|
14515
|
-
|
|
14516
|
-
|
|
14517
|
-
$
|
|
14518
|
-
|
|
14514
|
+
let $activeNav = $nav;
|
|
14515
|
+
if (!$activeNav?.length) {
|
|
14516
|
+
$activeNav = $('<xu-nav>');
|
|
14517
|
+
$container.append($activeNav);
|
|
14518
|
+
func.UI.component.init_xu_nav($container, $activeNav);
|
|
14519
14519
|
}
|
|
14520
14520
|
|
|
14521
|
-
$
|
|
14522
|
-
|
|
14521
|
+
const navData = $activeNav.data().xuData;
|
|
14522
|
+
if (navData) {
|
|
14523
|
+
navData.$div = $div_content;
|
|
14524
|
+
}
|
|
14525
|
+
|
|
14526
|
+
const navElement = $activeNav[0];
|
|
14527
|
+
if (navElement && navElement.setRoot) {
|
|
14528
|
+
await navElement.setRoot(`xu-root-component-${SESSION_ID}`);
|
|
14529
|
+
}
|
|
14523
14530
|
$ret = $container;
|
|
14524
14531
|
break;
|
|
14525
14532
|
}
|