@ibiz-template/runtime 0.7.41-alpha.126 → 0.7.41-alpha.127

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
@@ -65878,21 +65878,6 @@ function getProvider15(key) {
65878
65878
  async function getAppMenuItemProvider(model, control) {
65879
65879
  let provider;
65880
65880
  const { sysPFPluginId, appId: appId2, itemType } = model;
65881
- const registerKey = CustomRegister.getRegisterKey(
65882
- APPMENUITEM_PROVIDER_PREFIX,
65883
- {
65884
- mainModel: model,
65885
- control
65886
- }
65887
- );
65888
- provider = getProvider15(registerKey);
65889
- if (provider)
65890
- return provider;
65891
- ibiz.log.debug(
65892
- ibiz.i18n.t("runtime.register.helper.menuItemCustomRegistration", {
65893
- registerKey
65894
- })
65895
- );
65896
65881
  if (sysPFPluginId) {
65897
65882
  const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId2);
65898
65883
  if (pluginKey)
@@ -83875,7 +83860,6 @@ var Application = class {
83875
83860
  await this.loadAppModelStyle();
83876
83861
  await this.loadAppLang();
83877
83862
  await this.loadGlobalAppUtil();
83878
- await this.loadExtensionPlugin();
83879
83863
  await this.loadReplaceDefaultPlugin();
83880
83864
  }
83881
83865
  /**
@@ -83937,27 +83921,6 @@ var Application = class {
83937
83921
  return;
83938
83922
  await ibiz.plugin.loadPlugin(globalAppUtilPlugin);
83939
83923
  }
83940
- /**
83941
- * @description 加载扩展插件
83942
- * @protected
83943
- * @returns {*} {Promise<void>}
83944
- * @memberof Application
83945
- */
83946
- async loadExtensionPlugin() {
83947
- try {
83948
- await ibiz.plugin.loadPlugin({
83949
- runtimeObject: true,
83950
- rtobjectName: "ExtensionPlugin",
83951
- rtobjectRepo: "".concat(ibiz.env.baseUrl, "/").concat(this.appId).concat(ibiz.env.remoteModelUrl, "/ext")
83952
- });
83953
- } catch (error) {
83954
- ibiz.log.warn(
83955
- ibiz.i18n.t("runtime.application.noExtensionPlugin", {
83956
- appId: this.appId
83957
- })
83958
- );
83959
- }
83960
- }
83961
83924
  /**
83962
83925
  * @description 加载替换默认插件(仅主应用执行)
83963
83926
  * @protected
@@ -85416,6 +85379,28 @@ var AppHub = class {
85416
85379
  const targetCodeListMap = this.codeLists.get(appId2);
85417
85380
  return targetCodeListMap == null ? void 0 : targetCodeListMap.get(id);
85418
85381
  }
85382
+ /**
85383
+ * @description 加载扩展插件
85384
+ * @public
85385
+ * @param {string} appId
85386
+ * @returns {*} {Promise<void>}
85387
+ * @memberof AppHub
85388
+ */
85389
+ async loadExtensionPlugin(appId2) {
85390
+ try {
85391
+ await ibiz.plugin.loadPlugin({
85392
+ runtimeObject: true,
85393
+ rtobjectName: "ExtensionPlugin",
85394
+ rtobjectRepo: "".concat(ibiz.env.baseUrl, "/").concat(appId2).concat(ibiz.env.remoteModelUrl, "/ext")
85395
+ });
85396
+ } catch (error) {
85397
+ ibiz.log.warn(
85398
+ ibiz.i18n.t("runtime.application.noExtensionPlugin", {
85399
+ appId: ibiz.env.appId
85400
+ })
85401
+ );
85402
+ }
85403
+ }
85419
85404
  /**
85420
85405
  * 新建 hub 应用
85421
85406
  *
@@ -85431,6 +85416,9 @@ var AppHub = class {
85431
85416
  if (!this.modelLoaderProvider) {
85432
85417
  throw new RuntimeError73(ibiz.i18n.t("runtime.utils.firstregister"));
85433
85418
  }
85419
+ if (id !== ibiz.env.appId) {
85420
+ await this.loadExtensionPlugin(id);
85421
+ }
85434
85422
  const appModel = await this.modelLoaderProvider.getApp(id);
85435
85423
  const subAppRef = await this.modelLoaderProvider.getSubAppRef(id);
85436
85424
  const app = new Application(appModel, subAppRef);
@@ -92197,12 +92185,10 @@ var en = {
92197
92185
  noImplemented: "Getting application global variables is not implemented",
92198
92186
  noImplementedRouting: "Getting view routing parameter variables is not implemented"
92199
92187
  },
92200
- application: {
92201
- noExtensionPlugin: "Attempted to load application [{appId}] extension plugin, but no extension plugin was found"
92202
- },
92203
92188
  hub: {
92204
92189
  failedParse: "View parameter {paramsName} failed to parse: {error}",
92205
- noExist: "View [{id}] does not exist"
92190
+ noExist: "View [{id}] does not exist",
92191
+ noExtensionPlugin: "Attempted to load application [{appId}] extension plugin, but no extension plugin was found"
92206
92192
  },
92207
92193
  logicScheduler: {
92208
92194
  executor: {
@@ -92907,12 +92893,10 @@ var zhCn = {
92907
92893
  global: {
92908
92894
  noImplemented: "\u83B7\u53D6\u5E94\u7528\u5168\u5C40\u53D8\u91CF\u6CA1\u6709\u5B9E\u73B0"
92909
92895
  },
92910
- application: {
92911
- noExtensionPlugin: "\u5C1D\u8BD5\u52A0\u8F7D\u5E94\u7528[{appId}]\u6269\u5C55\u63D2\u4EF6\uFF0C\u6682\u672A\u627E\u5230\u6269\u5C55\u63D2\u4EF6"
92912
- },
92913
92896
  hub: {
92914
92897
  failedParse: "\u89C6\u56FE\u53C2\u6570 {paramsName} \u89E3\u6790\u5931\u8D25\uFF1A{error}",
92915
- noExist: "\u89C6\u56FE[{id}]\u4E0D\u5B58\u5728"
92898
+ noExist: "\u89C6\u56FE[{id}]\u4E0D\u5B58\u5728",
92899
+ noExtensionPlugin: "\u5C1D\u8BD5\u52A0\u8F7D\u5E94\u7528[{appId}]\u6269\u5C55\u63D2\u4EF6\uFF0C\u6682\u672A\u627E\u5230\u6269\u5C55\u63D2\u4EF6"
92916
92900
  },
92917
92901
  logicScheduler: {
92918
92902
  executor: {