@ibiz-template/model-helper 0.7.41-alpha.60 → 0.7.41-alpha.62

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
@@ -17912,7 +17912,10 @@ var Environment = {
17912
17912
  aMapKey: "",
17913
17913
  runContainer: "DYNAENGINE",
17914
17914
  mobWeChatAppId: "",
17915
- isPortalApp: false
17915
+ isPortalApp: false,
17916
+ mobLoadingCaption: "\u79FB\u52A8\u7AEF\u5E94\u7528",
17917
+ mobLoadingDescription: "\u79FB\u52A8\u7AEF\u5E94\u7528\u63CF\u8FF0",
17918
+ mobLoadingBackground: "rgba(0, 100, 250, 1)"
17916
17919
  };
17917
17920
 
17918
17921
  // ../core/out/error/runtime-error/runtime-error.js
@@ -18410,6 +18413,35 @@ function mergeDEDrControl(dstDRCtrl, srcDRCtrl) {
18410
18413
  });
18411
18414
  }
18412
18415
  }
18416
+ function mergeDETabExpPanel(dstTabExpPanel, srcTabExpPanel) {
18417
+ if (!srcTabExpPanel || !dstTabExpPanel) {
18418
+ return;
18419
+ }
18420
+ if (!dstTabExpPanel.tabExpPageIds) {
18421
+ dstTabExpPanel.tabExpPageIds = [];
18422
+ }
18423
+ if (!dstTabExpPanel.appViewRefs) {
18424
+ dstTabExpPanel.appViewRefs = [];
18425
+ }
18426
+ if (!dstTabExpPanel.controls) {
18427
+ dstTabExpPanel.controls = [];
18428
+ }
18429
+ if (srcTabExpPanel.tabExpPageIds) {
18430
+ srcTabExpPanel.tabExpPageIds.forEach((id1) => {
18431
+ dstTabExpPanel.tabExpPageIds.push(id1);
18432
+ });
18433
+ }
18434
+ if (srcTabExpPanel.appViewRefs) {
18435
+ srcTabExpPanel.appViewRefs.forEach((item1) => {
18436
+ dstTabExpPanel.appViewRefs.push(item1);
18437
+ });
18438
+ }
18439
+ if (srcTabExpPanel.controls) {
18440
+ srcTabExpPanel.controls.forEach((item1) => {
18441
+ dstTabExpPanel.controls.push(item1);
18442
+ });
18443
+ }
18444
+ }
18413
18445
 
18414
18446
  // src/utils/merge-model/merge-app-uiaction-group.ts
18415
18447
  function parseDynamicOverlay(tag) {
@@ -18933,16 +18965,31 @@ var MergeSubModelHelper = class {
18933
18965
  */
18934
18966
  mergeSubAppDRCtrl(view, controls, subAppRefs) {
18935
18967
  const dstDRCtrl = controls == null ? void 0 : controls.find((item) => {
18936
- return item.controlType === "DRBAR" || item.controlType === "DRTAB";
18968
+ return item.controlType === "DRBAR" || item.controlType === "DRTAB" || item.controlType === "TABEXPPANEL";
18937
18969
  });
18938
18970
  if (dstDRCtrl) {
18939
- for (let i = 0; i < subAppRefs.length; i++) {
18940
- const srcDRCtrl = ibiz.hub.getSubAppDrControl(
18941
- "".concat(dstDRCtrl.appDataEntityId.split(".")[1], "_").concat(dstDRCtrl.modelType, "_").concat(dstDRCtrl.dataRelationTag).toLowerCase(),
18942
- subAppRefs[i].appId
18943
- );
18944
- if (srcDRCtrl) {
18945
- mergeDEDrControl(dstDRCtrl, srcDRCtrl);
18971
+ if (dstDRCtrl.controlType === "TABEXPPANEL") {
18972
+ for (let i = 0; i < subAppRefs.length; i++) {
18973
+ const srcDRCtrl = ibiz.hub.getSubAppTabExpPanel(
18974
+ dstDRCtrl.uniqueTag,
18975
+ subAppRefs[i].appId
18976
+ );
18977
+ if (srcDRCtrl) {
18978
+ mergeDETabExpPanel(
18979
+ dstDRCtrl,
18980
+ srcDRCtrl
18981
+ );
18982
+ }
18983
+ }
18984
+ } else {
18985
+ for (let i = 0; i < subAppRefs.length; i++) {
18986
+ const srcDRCtrl = ibiz.hub.getSubAppDrControl(
18987
+ "".concat(dstDRCtrl.appDataEntityId.split(".")[1], "_").concat(dstDRCtrl.modelType, "_").concat(dstDRCtrl.dataRelationTag).toLowerCase(),
18988
+ subAppRefs[i].appId
18989
+ );
18990
+ if (srcDRCtrl) {
18991
+ mergeDEDrControl(dstDRCtrl, srcDRCtrl);
18992
+ }
18946
18993
  }
18947
18994
  }
18948
18995
  }
@@ -19985,7 +20032,11 @@ var ModelHelper = class {
19985
20032
  const drCtrls = this.dsl.controls(sourceSubApp.getAllPSDEDRControls || []);
19986
20033
  drCtrlIds.forEach((id, index) => {
19987
20034
  const drCtrl = drCtrls[index];
19988
- ibiz.hub.registerSubAppDrControls(subApp.id || ibiz.env.appId, drCtrl);
20035
+ if (drCtrl.controlType === "TABEXPPANEL") {
20036
+ ibiz.hub.registerSubAppTabExpPanel(subApp.id || ibiz.env.appId, drCtrl);
20037
+ } else {
20038
+ ibiz.hub.registerSubAppDrControls(subApp.id || ibiz.env.appId, drCtrl);
20039
+ }
19989
20040
  });
19990
20041
  const appDEUIActionGroupIds = subApp.appDEUIActionGroupIds || [];
19991
20042
  const appDEUIActionGroups = sourceSubApp.getAllPSAppDEUIActionGroups || [];