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

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
@@ -34969,7 +34969,15 @@ var UIActionProviderBase = class {
34969
34969
  Object.assign(result, _result);
34970
34970
  if (action.afterCode) {
34971
34971
  await ScriptFactory.asyncExecScriptFn(
34972
- { context, params, data: result, view, ctrl, args },
34972
+ {
34973
+ context,
34974
+ params,
34975
+ data: result,
34976
+ retdata: result.data || {},
34977
+ view,
34978
+ ctrl,
34979
+ args
34980
+ },
34973
34981
  action.afterCode
34974
34982
  );
34975
34983
  }
@@ -76054,7 +76062,13 @@ var AIUtilService = class {
76054
76062
  response,
76055
76063
  "messagemodelMapping"
76056
76064
  );
76057
- return result;
76065
+ let total = response.headers["x-total"];
76066
+ if (total) {
76067
+ total = Number(total);
76068
+ } else {
76069
+ total = result.length;
76070
+ }
76071
+ return { total, data: result.reverse() };
76058
76072
  }
76059
76073
  /**
76060
76074
  * 删除消息(多个以逗号分割)
@@ -88879,12 +88893,16 @@ var AppHub = class {
88879
88893
  return;
88880
88894
  }
88881
88895
  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);
88896
+ const mainApp = this.getAppSourceModel(ibiz.env.appId);
88897
+ if (mainApp && mainApp.getAllPSSubAppRefs) {
88898
+ const targetSubApp = mainApp.getAllPSSubAppRefs.find(
88899
+ (subAppRef) => {
88900
+ return subAppRef.id === appId2;
88901
+ }
88902
+ );
88903
+ if (targetSubApp && targetSubApp.ext_count) {
88904
+ pluginListLength = Number(targetSubApp.ext_count);
88905
+ }
88888
88906
  }
88889
88907
  if (pluginListLength === 0)
88890
88908
  return;
@@ -88936,6 +88954,7 @@ var AppHub = class {
88936
88954
  throw new RuntimeError78(ibiz.i18n.t("runtime.utils.firstregister"));
88937
88955
  }
88938
88956
  if (id !== ibiz.env.appId) {
88957
+ await this.loadSubExtensionPlugin(id);
88939
88958
  }
88940
88959
  const appModel = await this.modelLoaderProvider.getApp(id);
88941
88960
  const subAppRef = await this.modelLoaderProvider.getSubAppRef(id);
@@ -93950,8 +93969,10 @@ export {
93950
93969
  FormItemState,
93951
93970
  FormMDCtrlController,
93952
93971
  FormMDCtrlFormController,
93972
+ FormMDCtrlFormState,
93953
93973
  FormMDCtrlMDController,
93954
93974
  FormMDCtrlRepeaterController,
93975
+ FormMDCtrlState,
93955
93976
  FormNotifyState,
93956
93977
  FormPageController,
93957
93978
  FormPageState,