@ibiz-template/runtime 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
@@ -30728,7 +30728,8 @@ var MethodReturn = class {
30728
30728
  app.deService.clearTempCacheByRs(
30729
30729
  {
30730
30730
  srfappid: app.appId,
30731
- srfsessionid: context.srfsessionid
30731
+ srfsessionid: context.srfsessionid,
30732
+ srfskipcleartmpres: context.srfskipcleartmpres
30732
30733
  },
30733
30734
  this.entity.id
30734
30735
  );
@@ -34909,6 +34910,9 @@ var _DEServiceUtil = class _DEServiceUtil {
34909
34910
  if (service) {
34910
34911
  service.local.clear();
34911
34912
  }
34913
+ if (context.srfskipcleartmpres === true) {
34914
+ return;
34915
+ }
34912
34916
  const uiDomain = ibiz.uiDomainManager.get(context.srfsessionid);
34913
34917
  if (uiDomain) {
34914
34918
  const configs = uiDomain.getDERConfigByMajor(entityID);
@@ -37841,7 +37845,7 @@ var ViewController = class extends BaseController {
37841
37845
  return result;
37842
37846
  }
37843
37847
  async callUIAction(key, args) {
37844
- const result = this.call(key, args);
37848
+ const result = await this.call(key, args);
37845
37849
  if (result === void 0) {
37846
37850
  throw new RuntimeError31(
37847
37851
  ibiz.i18n.t("runtime.controller.common.view.noSupportBehavior", {
@@ -42832,23 +42836,24 @@ var UIActionUtil = class {
42832
42836
  static async execAndResolved(actionId, params, appId2) {
42833
42837
  var _a3, _b2, _c;
42834
42838
  const result = await this.exec(actionId, params, appId2);
42835
- if (result.closeView) {
42836
- params.view.modal.ignoreDismissCheck = true;
42837
- params.view.closeView({ ok: true });
42838
- } else if (result.refresh) {
42839
+ if (result.refresh) {
42839
42840
  switch (result.refreshMode) {
42840
42841
  case 1:
42841
- params.view.callUIAction("Refresh" /* REFRESH */);
42842
+ await params.view.callUIAction("Refresh" /* REFRESH */);
42842
42843
  break;
42843
42844
  case 2:
42844
- (_a3 = params.view.parentView) == null ? void 0 : _a3.callUIAction("Refresh" /* REFRESH */);
42845
+ await ((_a3 = params.view.parentView) == null ? void 0 : _a3.callUIAction("Refresh" /* REFRESH */));
42845
42846
  break;
42846
42847
  case 3:
42847
- (_b2 = params.view.getTopView()) == null ? void 0 : _b2.callUIAction("Refresh" /* REFRESH */);
42848
+ await ((_b2 = params.view.getTopView()) == null ? void 0 : _b2.callUIAction("Refresh" /* REFRESH */));
42848
42849
  break;
42849
42850
  default:
42850
42851
  }
42851
42852
  }
42853
+ if (result.closeView) {
42854
+ params.view.modal.ignoreDismissCheck = true;
42855
+ params.view.closeView({ ok: true });
42856
+ }
42852
42857
  const action = await getUIActionById(actionId, appId2);
42853
42858
  if (action.asyncAction && !result.cancel || ((_c = action.uiactionParamJO) == null ? void 0 : _c.srfasyncaction)) {
42854
42859
  this.handleAsyncAction(params.event);
@@ -57743,6 +57748,9 @@ var EditFormService = class extends FormService {
57743
57748
  */
57744
57749
  async getDraft(context, params = {}) {
57745
57750
  var _a3;
57751
+ if (params && params.srfdefdata) {
57752
+ context.srfskipcleartmpres = true;
57753
+ }
57746
57754
  const { args } = this.getLoadParams(params);
57747
57755
  let res = await this.exec(
57748
57756
  ((_a3 = this.model.getDraftControlAction) == null ? void 0 : _a3.appDEMethodId) || "getdraft",
@@ -85112,6 +85120,10 @@ var AppHub = class {
85112
85120
  * @type {Map<string, IModel[]>}
85113
85121
  */
85114
85122
  this.drcontrols = /* @__PURE__ */ new Map();
85123
+ /**
85124
+ * 子应用分页导航面板模型
85125
+ */
85126
+ this.subAppTabExpPanels = /* @__PURE__ */ new Map();
85115
85127
  /**
85116
85128
  * 子应用界面行为组模型
85117
85129
  *
@@ -85278,6 +85290,18 @@ var AppHub = class {
85278
85290
  const targetAppDrControls = this.drcontrols.get(appId2);
85279
85291
  targetAppDrControls == null ? void 0 : targetAppDrControls.push(model);
85280
85292
  }
85293
+ /**
85294
+ * 注册子应用分页导航面板模型
85295
+ * @param appId
85296
+ * @param model
85297
+ */
85298
+ registerSubAppTabExpPanel(appId2, model) {
85299
+ if (!this.subAppTabExpPanels.has(appId2)) {
85300
+ this.subAppTabExpPanels.set(appId2, []);
85301
+ }
85302
+ const targetAppTabExpPanels = this.subAppTabExpPanels.get(appId2);
85303
+ targetAppTabExpPanels == null ? void 0 : targetAppTabExpPanels.push(model);
85304
+ }
85281
85305
  /**
85282
85306
  * 注册子应用界面行为组
85283
85307
  *
@@ -85549,6 +85573,20 @@ var AppHub = class {
85549
85573
  return "".concat(item.appDataEntityId.split(".")[1], "_").concat(item.modelType, "_").concat(item.dataRelationTag).toLowerCase() === tag;
85550
85574
  });
85551
85575
  }
85576
+ /**
85577
+ * @description 根据分页导航面板的唯一标识(uniqueTag)获取模型
85578
+ * @param tag
85579
+ * @param appId
85580
+ */
85581
+ getSubAppTabExpPanel(tag, appId2) {
85582
+ if (!this.subAppTabExpPanels.has(appId2)) {
85583
+ return void 0;
85584
+ }
85585
+ const targetAppTabExpPanels = this.subAppTabExpPanels.get(appId2);
85586
+ return targetAppTabExpPanels.find((item) => {
85587
+ return item.uniqueTag === tag;
85588
+ });
85589
+ }
85552
85590
  /**
85553
85591
  * 根据界面行为组标识和子应用标识获取模型
85554
85592
  *
@@ -86083,6 +86121,9 @@ var ViewEngineBase = class {
86083
86121
  this.calcDynamicLayout();
86084
86122
  this.onDEDataChange = this.onDEDataChange.bind(this);
86085
86123
  ibiz.mc.command.change.on(this.onDEDataChange);
86124
+ if (ibiz.env.isMob) {
86125
+ ibiz.util.hiddenAppLoading();
86126
+ }
86086
86127
  }
86087
86128
  /**
86088
86129
  * 计算动态布局模型