@ibiz-template/model-helper 0.5.3-beta.5 → 0.5.3-beta.6
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/dist/index.esm.js
CHANGED
|
@@ -16220,7 +16220,7 @@ var ModelHelper = class {
|
|
|
16220
16220
|
if (appSourceModel.getAllPSAppViews && appId === ibiz.env.appId) {
|
|
16221
16221
|
const appViews = appSourceModel.getAllPSAppViews;
|
|
16222
16222
|
appViews.forEach((appView) => {
|
|
16223
|
-
ibiz.hub.setAppView(appView.id, appSourceModel.id);
|
|
16223
|
+
ibiz.hub.setAppView(appView.id, appSourceModel.id, appView.priority);
|
|
16224
16224
|
});
|
|
16225
16225
|
}
|
|
16226
16226
|
if (appSourceModel.getDefaultPSAppIndexView) {
|
|
@@ -16253,9 +16253,11 @@ var ModelHelper = class {
|
|
|
16253
16253
|
});
|
|
16254
16254
|
{
|
|
16255
16255
|
const { subAppRefs = [] } = app.model;
|
|
16256
|
+
const { getAllPSSubAppRefs = [] } = appSourceModel;
|
|
16256
16257
|
for (let i = 0; i < subAppRefs.length; i++) {
|
|
16257
16258
|
const subApp = subAppRefs[i];
|
|
16258
|
-
|
|
16259
|
+
const sourceSubApp = getAllPSSubAppRefs[i];
|
|
16260
|
+
await this.initSubApp(app, subApp, sourceSubApp);
|
|
16259
16261
|
}
|
|
16260
16262
|
}
|
|
16261
16263
|
}
|
|
@@ -16269,11 +16271,13 @@ var ModelHelper = class {
|
|
|
16269
16271
|
* @param {ISubAppRef} subApp
|
|
16270
16272
|
* @return {*} {Promise<void>}
|
|
16271
16273
|
*/
|
|
16272
|
-
async initSubApp(app, subApp) {
|
|
16274
|
+
async initSubApp(app, subApp, sourceSubApp) {
|
|
16273
16275
|
this.subAppRefs.push(subApp);
|
|
16274
16276
|
const ids = subApp.appViewIds || [];
|
|
16275
|
-
|
|
16276
|
-
|
|
16277
|
+
const views = sourceSubApp.getAllPSAppViews || [];
|
|
16278
|
+
ids.forEach((id, index) => {
|
|
16279
|
+
const view = views[index];
|
|
16280
|
+
ibiz.hub.setAppView(id, subApp.id, view.priority);
|
|
16277
16281
|
});
|
|
16278
16282
|
}
|
|
16279
16283
|
/**
|