@ibiz-template/runtime 0.7.41-alpha.124 → 0.7.41-alpha.125

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.
Files changed (54) hide show
  1. package/dist/index.esm.js +206 -111
  2. package/dist/index.system.min.js +1 -1
  3. package/out/application.d.ts +7 -0
  4. package/out/application.d.ts.map +1 -1
  5. package/out/application.js +21 -0
  6. package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
  7. package/out/controller/control/form/form-detail/form-item/form-item.controller.js +1 -1
  8. package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.d.ts.map +1 -1
  9. package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +1 -1
  10. package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.d.ts.map +1 -1
  11. package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.js +1 -1
  12. package/out/interface/register/i-register-params.d.ts +20 -35
  13. package/out/interface/register/i-register-params.d.ts.map +1 -1
  14. package/out/locale/en/index.d.ts +11 -0
  15. package/out/locale/en/index.d.ts.map +1 -1
  16. package/out/locale/en/index.js +11 -0
  17. package/out/locale/zh-CN/index.d.ts +11 -0
  18. package/out/locale/zh-CN/index.d.ts.map +1 -1
  19. package/out/locale/zh-CN/index.js +11 -0
  20. package/out/register/custom-register.d.ts +38 -22
  21. package/out/register/custom-register.d.ts.map +1 -1
  22. package/out/register/custom-register.js +123 -78
  23. package/out/register/helper/control-register.js +2 -2
  24. package/out/register/helper/de-method-register.d.ts +1 -1
  25. package/out/register/helper/de-method-register.d.ts.map +1 -1
  26. package/out/register/helper/de-method-register.js +4 -4
  27. package/out/register/helper/editor-register.d.ts +2 -3
  28. package/out/register/helper/editor-register.d.ts.map +1 -1
  29. package/out/register/helper/editor-register.js +4 -6
  30. package/out/register/helper/form-detail-register.js +3 -3
  31. package/out/register/helper/grid-column-register.d.ts +3 -3
  32. package/out/register/helper/grid-column-register.d.ts.map +1 -1
  33. package/out/register/helper/grid-column-register.js +9 -9
  34. package/out/register/helper/panel-item-register.js +4 -4
  35. package/out/register/helper/ui-action-register.js +2 -2
  36. package/out/register/helper/view-register.d.ts.map +1 -1
  37. package/out/register/helper/view-register.js +14 -0
  38. package/package.json +2 -2
  39. package/src/application.ts +23 -0
  40. package/src/controller/control/form/form-detail/form-item/form-item.controller.ts +0 -1
  41. package/src/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.ts +0 -1
  42. package/src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts +0 -1
  43. package/src/interface/register/i-register-params.ts +28 -38
  44. package/src/locale/en/index.ts +20 -0
  45. package/src/locale/zh-CN/index.ts +19 -0
  46. package/src/register/custom-register.ts +126 -81
  47. package/src/register/helper/control-register.ts +2 -2
  48. package/src/register/helper/de-method-register.ts +4 -4
  49. package/src/register/helper/editor-register.ts +4 -7
  50. package/src/register/helper/form-detail-register.ts +3 -3
  51. package/src/register/helper/grid-column-register.ts +9 -9
  52. package/src/register/helper/panel-item-register.ts +4 -4
  53. package/src/register/helper/ui-action-register.ts +2 -2
  54. package/src/register/helper/view-register.ts +15 -0
package/dist/index.esm.js CHANGED
@@ -24120,69 +24120,69 @@ async function getAppCounterProvider(model) {
24120
24120
  // src/register/custom-register.ts
24121
24121
  var CustomRegister = class {
24122
24122
  /**
24123
- * 获取适配器注册key
24124
- *
24125
- * @author ljx
24126
- * @date 2024-04-16 23:08:08
24123
+ * @description 获取适配器注册key
24124
+ * @static
24127
24125
  * @param {string} registerType
24128
24126
  * @param {IRegisterParams} opts
24129
- * @return {string}
24127
+ * @returns {*} {string}
24128
+ * @memberof CustomRegister
24130
24129
  */
24131
24130
  static getRegisterKey(registerType, opts) {
24132
24131
  switch (registerType) {
24132
+ case VIEW_PROVIDER_PREFIX:
24133
+ return this.calcExtensionViewKey(opts);
24134
+ case CONTROL_PROVIDER_PREFIX:
24135
+ return this.calcExtensionControlKey(opts);
24133
24136
  case PANELITEM_PROVIDER_PREFIX:
24134
- return this.calcKeyByView(opts);
24137
+ return this.calcExtensionPanelItemKey(opts);
24135
24138
  case FORMDETAIL_PROVIDER_PREFIX:
24136
24139
  case GRIDCOLUMN_PROVIDER_PREFIX:
24137
- case CONTROL_PROVIDER_PREFIX:
24138
- return this.calcKeyByCtrl(opts);
24140
+ return this.calcExtensionControlItemKey(opts);
24141
+ case EDITOR_PROVIDER_PREFIX:
24142
+ return this.calcExtensionEditorKey(opts);
24139
24143
  case UIACTION_PROVIDER_PREFIX:
24140
- return this.calcKeyByAction(opts);
24144
+ return this.calcExtensionUIActionKey(opts);
24141
24145
  case DEMETHOD_PROVIDER_PREFIX:
24142
- return this.calcKeyByMethod(opts);
24143
- case EDITOR_PROVIDER_PREFIX:
24144
- return this.calcKeyByEditor(opts);
24146
+ return this.calcExtensionMethodKey(opts);
24145
24147
  default:
24146
24148
  return "";
24147
24149
  }
24148
24150
  }
24149
24151
  /**
24150
- * 通过视图计算key
24151
- * 目前适用于计算面板项的key
24152
- * @author ljx
24153
- * @date 2024-04-16 23:08:08
24152
+ * @description 计算扩展视图key,(appId@codeName)全大写
24153
+ * @static
24154
24154
  * @param {IRegisterParams} opts
24155
- * @return {string}
24155
+ * @returns {*} {string}
24156
+ * @memberof CustomRegister
24156
24157
  */
24157
- static calcKeyByView(opts) {
24158
- const { controlItemModel, controlModel, viewModel } = opts;
24158
+ static calcExtensionViewKey(opts) {
24159
+ const { mainModel } = opts;
24159
24160
  let key = "";
24160
- if (viewModel == null ? void 0 : viewModel.codeName) {
24161
- key += "".concat(viewModel.codeName.toUpperCase());
24161
+ if (mainModel.appId) {
24162
+ key += "".concat(mainModel.appId.toUpperCase());
24162
24163
  }
24163
- if (controlModel == null ? void 0 : controlModel.codeName) {
24164
- key += "@".concat(controlModel.codeName.toUpperCase());
24165
- }
24166
- if (controlItemModel == null ? void 0 : controlItemModel.id) {
24167
- key += "@".concat(controlItemModel.id.toUpperCase());
24164
+ if (mainModel.codeName) {
24165
+ key += "@".concat(mainModel.codeName.toUpperCase());
24168
24166
  }
24169
24167
  return key;
24170
24168
  }
24171
24169
  /**
24172
- * 通过部件计算key
24173
- * 没有实体的部件默认为APP
24174
- * @date 2024-04-16 23:08:08
24170
+ * @description 计算扩展部件key,(appId/DEFAULT@实体codeName/APP@部件类型@部件codeName)全大写
24171
+ * @static
24175
24172
  * @param {IRegisterParams} opts
24176
- * @return {string}
24173
+ * @returns {*} {string}
24174
+ * @memberof CustomRegister
24177
24175
  */
24178
- static calcKeyByCtrl(opts) {
24179
- const { controlModel, controlItemModel } = opts;
24176
+ static calcExtensionControlKey(opts) {
24180
24177
  let key = "";
24181
- let prefix = "APP";
24182
- if (controlModel) {
24183
- const { appDataEntityId, controlType, codeName } = controlModel;
24178
+ const { mainModel } = opts;
24179
+ if (mainModel) {
24180
+ key = (mainModel.appId || "DEFAULT").toUpperCase();
24181
+ const { appDataEntityId, controlType, codeName } = mainModel;
24184
24182
  if (appDataEntityId) {
24185
- prefix = calcDeCodeNameById(appDataEntityId).toUpperCase();
24183
+ key += "@".concat(calcDeCodeNameById(appDataEntityId).toUpperCase());
24184
+ } else {
24185
+ key += "@APP";
24186
24186
  }
24187
24187
  if (controlType) {
24188
24188
  key += "@".concat(controlType.toUpperCase());
@@ -24191,86 +24191,128 @@ var CustomRegister = class {
24191
24191
  key += "@".concat(codeName.toUpperCase());
24192
24192
  }
24193
24193
  }
24194
- if (controlItemModel == null ? void 0 : controlItemModel.codeName) {
24195
- key += "@".concat(controlItemModel.codeName.toUpperCase());
24194
+ return key;
24195
+ }
24196
+ /**
24197
+ * @description 计算扩展面板key,(appId/DEFAULT@视图codeName@部件codeName@面板项标识)全大写
24198
+ * @static
24199
+ * @param {IRegisterParams} opts
24200
+ * @returns {*} {string}
24201
+ * @memberof CustomRegister
24202
+ */
24203
+ static calcExtensionPanelItemKey(opts) {
24204
+ const { mainModel, view, control } = opts;
24205
+ let key = "".concat((mainModel.appId || "DEFAULT").toUpperCase());
24206
+ if (view == null ? void 0 : view.codeName) {
24207
+ key += "@".concat(view.codeName.toUpperCase());
24208
+ }
24209
+ if (control == null ? void 0 : control.codeName) {
24210
+ key += "@".concat(control.codeName.toUpperCase());
24211
+ }
24212
+ if (mainModel == null ? void 0 : mainModel.id) {
24213
+ key += "@".concat(mainModel.id.toUpperCase());
24196
24214
  }
24197
- key = prefix + key;
24198
24215
  return key;
24199
24216
  }
24200
24217
  /**
24201
- * @description 通过界面行为模型计算key,其中实体部分无实体的话默认为APP
24218
+ * @description 计算扩展部件项key,(appId/DEFAULT@实体codeName/APP@部件类型@部件codeName@部件项codeName)全大写
24202
24219
  * @static
24203
24220
  * @param {IRegisterParams} opts
24204
24221
  * @returns {*} {string}
24205
24222
  * @memberof CustomRegister
24206
24223
  */
24207
- static calcKeyByAction(opts) {
24208
- const { uiActionModel } = opts;
24209
- let prefix = "APP";
24224
+ static calcExtensionControlItemKey(opts) {
24225
+ const { mainModel, control } = opts;
24210
24226
  let key = "";
24211
- if (uiActionModel) {
24212
- const { appDataEntityId, uiactionTag } = uiActionModel;
24227
+ if (mainModel) {
24228
+ key = (mainModel.appId || "DEFAULT").toUpperCase();
24229
+ const { appDataEntityId, controlType, codeName } = control;
24213
24230
  if (appDataEntityId) {
24214
- prefix = calcDeCodeNameById(appDataEntityId).toUpperCase();
24231
+ key += "@".concat(calcDeCodeNameById(appDataEntityId).toUpperCase());
24232
+ } else {
24233
+ key += "@APP";
24215
24234
  }
24216
- key += "".concat(prefix);
24217
- if (uiactionTag) {
24218
- key += "@".concat(uiactionTag.toUpperCase());
24235
+ if (controlType) {
24236
+ key += "@".concat(controlType.toUpperCase());
24237
+ }
24238
+ if (codeName) {
24239
+ key += "@".concat(codeName.toUpperCase());
24240
+ }
24241
+ if (mainModel.codeName) {
24242
+ key += "@".concat(mainModel.codeName.toUpperCase());
24219
24243
  }
24220
24244
  }
24221
24245
  return key;
24222
24246
  }
24223
24247
  /**
24224
- * @description 通过实体方法模型计算key
24248
+ * @description 计算扩展编辑器key,(appId/DEFAULT@实体codeName/APP@部件类型@部件codeName@项标识_EDITOR)全大写
24225
24249
  * @static
24226
24250
  * @param {IRegisterParams} opts
24227
24251
  * @returns {*} {string}
24228
24252
  * @memberof CustomRegister
24229
24253
  */
24230
- static calcKeyByMethod(opts) {
24231
- const { deMethodModel, entityModel } = opts;
24232
- let key = "";
24233
- if (deMethodModel) {
24234
- const { methodType, codeName } = deMethodModel;
24235
- if (entityModel == null ? void 0 : entityModel.id) {
24236
- key += calcDeCodeNameById(entityModel.id).toUpperCase();
24237
- }
24238
- if (methodType && codeName) {
24239
- key += "@".concat(methodType.toUpperCase(), "@").concat(codeName.toUpperCase());
24254
+ static calcExtensionEditorKey(opts) {
24255
+ const { mainModel, control } = opts;
24256
+ let key = (mainModel.appId || "DEFAULT").toUpperCase();
24257
+ if (control) {
24258
+ const { appDataEntityId, controlType, codeName } = control;
24259
+ if (appDataEntityId) {
24260
+ key += "@".concat(calcDeCodeNameById(appDataEntityId).toUpperCase());
24261
+ } else {
24262
+ key += "@APP";
24240
24263
  }
24264
+ key += "@".concat((controlType || "DEFAULT").toUpperCase());
24265
+ key += "@".concat((codeName || "DEFAULT").toUpperCase());
24266
+ }
24267
+ if (mainModel.id) {
24268
+ key += "@".concat(mainModel.id.toUpperCase(), "_EDITOR");
24241
24269
  }
24242
24270
  return key;
24243
24271
  }
24244
24272
  /**
24245
- * @description 通过编辑器模型计算key
24273
+ * @description 计算扩展界面行为key,(appId/DEFAULT@实体codeName/APP@界面行为标记)全大写
24274
+ * @author tony001
24275
+ * @date 2026-08-11 17:08:45
24246
24276
  * @static
24247
24277
  * @param {IRegisterParams} opts
24248
24278
  * @returns {*} {string}
24249
24279
  * @memberof CustomRegister
24250
24280
  */
24251
- static calcKeyByEditor(opts) {
24252
- const { editorModel, controlItemModel, controlModel } = opts;
24253
- let key = "";
24254
- let prefix = "APP";
24255
- if (controlModel) {
24256
- const { appDataEntityId, controlType, codeName } = controlModel;
24281
+ static calcExtensionUIActionKey(opts) {
24282
+ const { mainModel } = opts;
24283
+ let key = (mainModel.appId || "DEFAULT").toUpperCase();
24284
+ if (mainModel) {
24285
+ const { appDataEntityId, uiactionTag } = mainModel;
24257
24286
  if (appDataEntityId) {
24258
- prefix = calcDeCodeNameById(appDataEntityId).toUpperCase();
24259
- }
24260
- if (controlType) {
24261
- key += "@".concat(controlType.toUpperCase());
24287
+ key += "@".concat(calcDeCodeNameById(appDataEntityId).toUpperCase());
24288
+ } else {
24289
+ key += "@APP";
24262
24290
  }
24263
- if (codeName) {
24264
- key += "@".concat(codeName.toUpperCase());
24291
+ if (uiactionTag) {
24292
+ key += "@".concat(uiactionTag.toUpperCase());
24265
24293
  }
24266
24294
  }
24267
- if (controlItemModel == null ? void 0 : controlItemModel.codeName) {
24268
- key += "@".concat(controlItemModel.codeName.toUpperCase());
24295
+ return key;
24296
+ }
24297
+ /**
24298
+ * @description 计算扩展实体方法key,(appId/DEFAULT@实体codeName/方法类型/方法codeName)全大写
24299
+ * @static
24300
+ * @param {IRegisterParams} opts
24301
+ * @returns {*} {string}
24302
+ * @memberof CustomRegister
24303
+ */
24304
+ static calcExtensionMethodKey(opts) {
24305
+ const { mainModel, entity } = opts;
24306
+ let key = (mainModel.appId || "DEFAULT").toUpperCase();
24307
+ if (entity == null ? void 0 : entity.id) {
24308
+ key += "@".concat(calcDeCodeNameById(entity.id).toUpperCase());
24269
24309
  }
24270
- if (editorModel) {
24271
- key += "_EDITOR";
24310
+ if (mainModel) {
24311
+ const { methodType, codeName } = mainModel;
24312
+ if (methodType && codeName) {
24313
+ key += "@".concat(methodType.toUpperCase(), "@").concat(codeName.toUpperCase());
24314
+ }
24272
24315
  }
24273
- key = prefix + key;
24274
24316
  return key;
24275
24317
  }
24276
24318
  };
@@ -24289,12 +24331,12 @@ async function getControlProvider(model) {
24289
24331
  let provider;
24290
24332
  const { controlType, controlStyle, sysPFPluginId, appId: appId2 } = model;
24291
24333
  const registerKey = CustomRegister.getRegisterKey(CONTROL_PROVIDER_PREFIX, {
24292
- controlModel: model
24334
+ mainModel: model
24293
24335
  });
24294
24336
  provider = getProvider2(registerKey);
24295
24337
  if (!provider) {
24296
24338
  ibiz.log.debug(
24297
- ibiz.i18n.t("runtime.register.helper.customRegistration", {
24339
+ ibiz.i18n.t("runtime.register.helper.ctrlCustomRegistration", {
24298
24340
  registerKey
24299
24341
  })
24300
24342
  );
@@ -24358,18 +24400,17 @@ function getProvider3(key) {
24358
24400
  "".concat(EDITOR_PROVIDER_PREFIX, "_").concat(key)
24359
24401
  );
24360
24402
  }
24361
- async function getEditorProvider(model, ctrlItem, ctrl) {
24403
+ async function getEditorProvider(model, ctrl) {
24362
24404
  let provider;
24363
24405
  const { editorType, editorStyle, predefinedType, sysPFPluginId, appId: appId2 } = model;
24364
24406
  const registerKey = CustomRegister.getRegisterKey(EDITOR_PROVIDER_PREFIX, {
24365
- controlItemModel: ctrlItem,
24366
- controlModel: ctrl,
24367
- editorModel: model
24407
+ mainModel: model,
24408
+ control: ctrl
24368
24409
  });
24369
24410
  provider = getProvider3(registerKey);
24370
24411
  if (!provider) {
24371
24412
  ibiz.log.debug(
24372
- ibiz.i18n.t("runtime.register.helper.customRegistration", {
24413
+ ibiz.i18n.t("runtime.register.helper.editorCustomRegistration", {
24373
24414
  registerKey
24374
24415
  })
24375
24416
  );
@@ -24452,14 +24493,14 @@ async function getFormDetailProvider(model, formModel) {
24452
24493
  const registerKey = CustomRegister.getRegisterKey(
24453
24494
  FORMDETAIL_PROVIDER_PREFIX,
24454
24495
  {
24455
- controlItemModel: model,
24456
- controlModel: formModel
24496
+ mainModel: model,
24497
+ control: formModel
24457
24498
  }
24458
24499
  );
24459
24500
  provider = getProvider4(registerKey);
24460
24501
  if (!provider) {
24461
24502
  ibiz.log.debug(
24462
- ibiz.i18n.t("runtime.register.helper.customRegistration", {
24503
+ ibiz.i18n.t("runtime.register.helper.formDetailCustomRegistration", {
24463
24504
  registerKey
24464
24505
  })
24465
24506
  );
@@ -24503,20 +24544,20 @@ function getProvider5(key) {
24503
24544
  "".concat(GRIDCOLUMN_PROVIDER_PREFIX, "_").concat(key)
24504
24545
  );
24505
24546
  }
24506
- async function getGridColumnProvider(model, gridModel) {
24547
+ async function getGridColumnProvider(model, grid) {
24507
24548
  let provider;
24508
24549
  const { columnType, enableRowEdit, sysPFPluginId, appId: appId2 } = model;
24509
24550
  const registerKey = CustomRegister.getRegisterKey(
24510
24551
  GRIDCOLUMN_PROVIDER_PREFIX,
24511
24552
  {
24512
- controlItemModel: model,
24513
- controlModel: gridModel
24553
+ mainModel: model,
24554
+ control: grid
24514
24555
  }
24515
24556
  );
24516
24557
  provider = getProvider5(registerKey);
24517
24558
  if (!provider) {
24518
24559
  ibiz.log.debug(
24519
- ibiz.i18n.t("runtime.register.helper.customRegistration", {
24560
+ ibiz.i18n.t("runtime.register.helper.gridColumnCustomRegistration", {
24520
24561
  registerKey
24521
24562
  })
24522
24563
  );
@@ -24550,20 +24591,20 @@ async function getGridColumnProvider(model, gridModel) {
24550
24591
  return provider;
24551
24592
  }
24552
24593
  }
24553
- async function getAutoGridColumnProvider(model, gridModel) {
24594
+ async function getAutoGridColumnProvider(model, grid) {
24554
24595
  let provider;
24555
24596
  const { columnType, enableRowEdit, sysPFPluginId, appId: appId2 } = model;
24556
24597
  const registerKey = CustomRegister.getRegisterKey(
24557
24598
  GRIDCOLUMN_PROVIDER_PREFIX,
24558
24599
  {
24559
- controlItemModel: model,
24560
- controlModel: gridModel
24600
+ mainModel: model,
24601
+ control: grid
24561
24602
  }
24562
24603
  );
24563
24604
  provider = getProvider5(registerKey);
24564
24605
  if (!provider) {
24565
24606
  ibiz.log.debug(
24566
- ibiz.i18n.t("runtime.register.helper.customRegistration", {
24607
+ ibiz.i18n.t("runtime.register.helper.gridColumnCustomRegistration", {
24567
24608
  registerKey
24568
24609
  })
24569
24610
  );
@@ -24616,14 +24657,14 @@ async function getPanelItemProvider(model, panelModel, viewModel) {
24616
24657
  let provider;
24617
24658
  const { itemType, sysPFPluginId, appId: appId2, controlRenders, id } = model;
24618
24659
  const registerKey = CustomRegister.getRegisterKey(PANELITEM_PROVIDER_PREFIX, {
24619
- controlItemModel: model,
24620
- controlModel: panelModel,
24621
- viewModel
24660
+ mainModel: model,
24661
+ view: viewModel,
24662
+ control: panelModel
24622
24663
  });
24623
24664
  provider = getProvider6(registerKey);
24624
24665
  if (!provider) {
24625
24666
  ibiz.log.debug(
24626
- ibiz.i18n.t("runtime.register.helper.customRegistration", {
24667
+ ibiz.i18n.t("runtime.register.helper.panelItemCustomRegistration", {
24627
24668
  registerKey
24628
24669
  })
24629
24670
  );
@@ -24766,12 +24807,12 @@ async function getUIActionProvider(model) {
24766
24807
  let provider;
24767
24808
  const { uiactionMode, sysPFPluginId, appId: appId2, uiactionTag } = model;
24768
24809
  const registerKey = CustomRegister.getRegisterKey(UIACTION_PROVIDER_PREFIX, {
24769
- uiActionModel: model
24810
+ mainModel: model
24770
24811
  });
24771
24812
  provider = getProvider8(registerKey);
24772
24813
  if (!provider) {
24773
24814
  ibiz.log.debug(
24774
- ibiz.i18n.t("runtime.register.helper.customRegistration", {
24815
+ ibiz.i18n.t("runtime.register.helper.uiactionCustomRegistration", {
24775
24816
  registerKey
24776
24817
  })
24777
24818
  );
@@ -24845,6 +24886,19 @@ function getProvider9(key) {
24845
24886
  async function getViewProvider(model) {
24846
24887
  let provider;
24847
24888
  const { viewType, viewStyle, sysPFPluginId, appId: appId2 } = model;
24889
+ const registerKey = CustomRegister.getRegisterKey(VIEW_PROVIDER_PREFIX, {
24890
+ mainModel: model
24891
+ });
24892
+ provider = getProvider9(registerKey);
24893
+ if (!provider) {
24894
+ ibiz.log.debug(
24895
+ ibiz.i18n.t("runtime.register.helper.viewCustomRegistration", {
24896
+ registerKey
24897
+ })
24898
+ );
24899
+ } else {
24900
+ return provider;
24901
+ }
24848
24902
  if (sysPFPluginId) {
24849
24903
  const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId2);
24850
24904
  if (pluginKey) {
@@ -48318,7 +48372,6 @@ var FormItemController = class extends FormDetailController {
48318
48372
  if (this.model.editor && this.model.editor.editorType !== "HIDDEN") {
48319
48373
  this.editorProvider = await getEditorProvider(
48320
48374
  this.model.editor,
48321
- this.model,
48322
48375
  this.form.model
48323
48376
  );
48324
48377
  if (this.editorProvider) {
@@ -54008,7 +54061,6 @@ var GridFieldColumnController = class extends GridColumnController {
54008
54061
  if (filterEditor && columnEnableFilter && filterEditor.editorType !== "HIDDEN") {
54009
54062
  this.filterEditorProvider = await getEditorProvider(
54010
54063
  filterEditor,
54011
- this.model,
54012
54064
  this.grid.model
54013
54065
  );
54014
54066
  if (this.filterEditorProvider) {
@@ -54491,7 +54543,6 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
54491
54543
  if (this.editItem.editor && this.editItem.editor.editorType !== "HIDDEN") {
54492
54544
  this.editorProvider = await getEditorProvider(
54493
54545
  this.editItem.editor,
54494
- this.model,
54495
54546
  this.grid.model
54496
54547
  );
54497
54548
  if (this.editorProvider) {
@@ -68706,17 +68757,17 @@ function getProvider12(key) {
68706
68757
  "".concat(DEMETHOD_PROVIDER_PREFIX, "_").concat(key)
68707
68758
  );
68708
68759
  }
68709
- async function getDEMethodProvider(model, entityModel) {
68760
+ async function getDEMethodProvider(model, entity) {
68710
68761
  let provider;
68711
68762
  const { methodType, sysPFPluginId, appId: appId2 } = model;
68712
68763
  const registerKey = CustomRegister.getRegisterKey(DEMETHOD_PROVIDER_PREFIX, {
68713
- deMethodModel: model,
68714
- entityModel
68764
+ mainModel: model,
68765
+ entity
68715
68766
  });
68716
68767
  provider = getProvider12(registerKey);
68717
68768
  if (!provider) {
68718
68769
  ibiz.log.debug(
68719
- ibiz.i18n.t("runtime.register.helper.customRegistration", {
68770
+ ibiz.i18n.t("runtime.register.helper.deMethodCustomRegistration", {
68720
68771
  registerKey
68721
68772
  })
68722
68773
  );
@@ -86661,6 +86712,7 @@ var Application = class {
86661
86712
  await this.loadAppModelStyle();
86662
86713
  await this.loadAppLang();
86663
86714
  await this.loadGlobalAppUtil();
86715
+ await this.loadExtensionPlugin();
86664
86716
  await this.loadReplaceDefaultPlugin();
86665
86717
  }
86666
86718
  /**
@@ -86722,6 +86774,27 @@ var Application = class {
86722
86774
  return;
86723
86775
  await ibiz.plugin.loadPlugin(globalAppUtilPlugin);
86724
86776
  }
86777
+ /**
86778
+ * @description 加载扩展插件
86779
+ * @protected
86780
+ * @returns {*} {Promise<void>}
86781
+ * @memberof Application
86782
+ */
86783
+ async loadExtensionPlugin() {
86784
+ try {
86785
+ await ibiz.plugin.loadPlugin({
86786
+ runtimeObject: true,
86787
+ rtobjectName: "ExtensionPlugin",
86788
+ rtobjectRepo: "".concat(ibiz.env.baseUrl, "/").concat(this.appId).concat(ibiz.env.remoteModelUrl, "/ext")
86789
+ });
86790
+ } catch (error) {
86791
+ ibiz.log.warn(
86792
+ ibiz.i18n.t("runtime.application.noExtensionPlugin", {
86793
+ appId: this.appId
86794
+ })
86795
+ );
86796
+ }
86797
+ }
86725
86798
  /**
86726
86799
  * @description 加载替换默认插件(仅主应用执行)
86727
86800
  * @protected
@@ -91851,6 +91924,9 @@ var en = {
91851
91924
  noImplemented: "Getting application global variables is not implemented",
91852
91925
  noImplementedRouting: "Getting view routing parameter variables is not implemented"
91853
91926
  },
91927
+ application: {
91928
+ noExtensionPlugin: "Attempted to load application [{appId}] extension plugin, but no extension plugin was found"
91929
+ },
91854
91930
  hub: {
91855
91931
  failedParse: "View parameter {paramsName} failed to parse: {error}",
91856
91932
  noExist: "View [{id}] does not exist"
@@ -91938,7 +92014,15 @@ var en = {
91938
92014
  viewPlugin: "Cannot find the adapter corresponding to the view plugin {pluginKey}.",
91939
92015
  correspondViewTypeStyle: "Cannot find an adapter for view type: [{viewType}] corresponding to view style: [{viewStyle}].",
91940
92016
  toolbarItem: "Cannot find the adapter corresponding to the toolbar item plugin {pluginKey}.",
91941
- acItem: "Cannot find the adapter corresponding to the ac item plugin {pluginKey}."
92017
+ acItem: "Cannot find the adapter corresponding to the ac item plugin {pluginKey}.",
92018
+ viewCustomRegistration: "[Custom Extended View] Cannot find an adapter with a custom registration ID of [{registerKey}].",
92019
+ ctrlCustomRegistration: "[Custom Extended Control] Cannot find an adapter with a custom registration ID of [{registerKey}].",
92020
+ panelItemCustomRegistration: "[Custom Extended Panel Item] Cannot find an adapter with a custom registration ID of [{registerKey}].",
92021
+ formDetailCustomRegistration: "[Custom Extended Form Detail] Cannot find an adapter with a custom registration ID of [{registerKey}].",
92022
+ gridColumnCustomRegistration: "[Custom Extended Grid Column] Cannot find an adapter with a custom registration ID of [{registerKey}].",
92023
+ editorCustomRegistration: "[Custom Extended Editor] Cannot find an adapter with a custom registration ID of [{registerKey}].",
92024
+ uiactionCustomRegistration: "[Custom Extended UIAction] Cannot find an adapter with a custom registration ID of [{registerKey}].",
92025
+ deMethodCustomRegistration: "[Custom Extended DEMethod] Cannot find an adapter with a custom registration ID of [{registerKey}]."
91942
92026
  }
91943
92027
  },
91944
92028
  service: {
@@ -92540,6 +92624,9 @@ var zhCn = {
92540
92624
  global: {
92541
92625
  noImplemented: "\u83B7\u53D6\u5E94\u7528\u5168\u5C40\u53D8\u91CF\u6CA1\u6709\u5B9E\u73B0"
92542
92626
  },
92627
+ application: {
92628
+ noExtensionPlugin: "\u5C1D\u8BD5\u52A0\u8F7D\u5E94\u7528[{appId}]\u6269\u5C55\u63D2\u4EF6\uFF0C\u6682\u672A\u627E\u5230\u6269\u5C55\u63D2\u4EF6"
92629
+ },
92543
92630
  hub: {
92544
92631
  failedParse: "\u89C6\u56FE\u53C2\u6570 {paramsName} \u89E3\u6790\u5931\u8D25\uFF1A{error}",
92545
92632
  noExist: "\u89C6\u56FE[{id}]\u4E0D\u5B58\u5728"
@@ -92627,7 +92714,15 @@ var zhCn = {
92627
92714
  viewPlugin: "\u627E\u4E0D\u5230\u89C6\u56FE\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
92628
92715
  correspondViewTypeStyle: "\u627E\u4E0D\u5230\u89C6\u56FE\u7C7B\u578B\uFF1A[{viewType}]\u7684\u89C6\u56FE\u6837\u5F0F\uFF1A[{viewStyle}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
92629
92716
  toolbarItem: "\u627E\u4E0D\u5230\u5DE5\u5177\u680F\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
92630
- acItem: "\u627E\u4E0D\u5230\u81EA\u586B\u5217\u8868\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668"
92717
+ acItem: "\u627E\u4E0D\u5230\u81EA\u586B\u5217\u8868\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
92718
+ viewCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u89C6\u56FE] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
92719
+ ctrlCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u90E8\u4EF6] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
92720
+ panelItemCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u9762\u677F\u9879] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
92721
+ formDetailCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u8868\u5355\u6210\u5458] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
92722
+ gridColumnCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u8868\u683C\u5217] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
92723
+ editorCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u7F16\u8F91\u5668] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
92724
+ uiactionCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u754C\u9762\u884C\u4E3A] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
92725
+ deMethodCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u5B9E\u4F53\u65B9\u6CD5] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668"
92631
92726
  }
92632
92727
  },
92633
92728
  service: {