@ibiz-template/runtime 0.7.41-alpha.142 → 0.7.41-alpha.143

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
@@ -76054,7 +76054,13 @@ var AIUtilService = class {
76054
76054
  response,
76055
76055
  "messagemodelMapping"
76056
76056
  );
76057
- return result;
76057
+ let total = response.headers["x-total"];
76058
+ if (total) {
76059
+ total = Number(total);
76060
+ } else {
76061
+ total = result.length;
76062
+ }
76063
+ return { total, data: result.reverse() };
76058
76064
  }
76059
76065
  /**
76060
76066
  * 删除消息(多个以逗号分割)
@@ -88879,12 +88885,16 @@ var AppHub = class {
88879
88885
  return;
88880
88886
  }
88881
88887
  let pluginListLength = 0;
88882
- const res = await ibiz.net.axios({
88883
- method: "get",
88884
- url: "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.remoteModelUrl, "/subapps/").concat(appId2, "/extension")
88885
- });
88886
- if (res.status === 200 && res.data) {
88887
- pluginListLength = Number(res.data);
88888
+ const mainApp = this.getAppSourceModel(ibiz.env.appId);
88889
+ if (mainApp && mainApp.getAllPSSubAppRefs) {
88890
+ const targetSubApp = mainApp.getAllPSSubAppRefs.find(
88891
+ (subAppRef) => {
88892
+ return subAppRef.id === appId2;
88893
+ }
88894
+ );
88895
+ if (targetSubApp && targetSubApp.ext_count) {
88896
+ pluginListLength = Number(targetSubApp.ext_count);
88897
+ }
88888
88898
  }
88889
88899
  if (pluginListLength === 0)
88890
88900
  return;
@@ -88936,6 +88946,7 @@ var AppHub = class {
88936
88946
  throw new RuntimeError78(ibiz.i18n.t("runtime.utils.firstregister"));
88937
88947
  }
88938
88948
  if (id !== ibiz.env.appId) {
88949
+ await this.loadSubExtensionPlugin(id);
88939
88950
  }
88940
88951
  const appModel = await this.modelLoaderProvider.getApp(id);
88941
88952
  const subAppRef = await this.modelLoaderProvider.getSubAppRef(id);
@@ -93950,8 +93961,10 @@ export {
93950
93961
  FormItemState,
93951
93962
  FormMDCtrlController,
93952
93963
  FormMDCtrlFormController,
93964
+ FormMDCtrlFormState,
93953
93965
  FormMDCtrlMDController,
93954
93966
  FormMDCtrlRepeaterController,
93967
+ FormMDCtrlState,
93955
93968
  FormNotifyState,
93956
93969
  FormPageController,
93957
93970
  FormPageState,