@ibiz-template/runtime 0.7.41-alpha.97 → 0.7.41-alpha.99

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 (48) hide show
  1. package/dist/index.esm.js +35 -14
  2. package/dist/index.system.min.js +1 -1
  3. package/out/controller/common/editor/editor.controller.d.ts.map +1 -1
  4. package/out/controller/common/editor/editor.controller.js +4 -0
  5. package/out/controller/common/view/view.controller.d.ts.map +1 -1
  6. package/out/controller/common/view/view.controller.js +6 -3
  7. package/out/controller/control/exp-bar/chart-exp-bar.controller.d.ts +2 -2
  8. package/out/controller/control/exp-bar/chart-exp-bar.controller.d.ts.map +1 -1
  9. package/out/controller/control/exp-bar/chart-exp-bar.controller.js +1 -1
  10. package/out/controller/control/exp-bar/exp-bar.controller.d.ts +6 -6
  11. package/out/controller/control/exp-bar/exp-bar.controller.d.ts.map +1 -1
  12. package/out/controller/control/exp-bar/exp-bar.controller.js +3 -3
  13. package/out/controller/control/exp-bar/tree-exp-bar.controller.d.ts +1 -1
  14. package/out/controller/control/exp-bar/tree-exp-bar.controller.d.ts.map +1 -1
  15. package/out/controller/control/md-ctrl/md-ctrl-row.state.d.ts +1 -1
  16. package/out/controller/control/md-ctrl/md-ctrl-row.state.js +1 -1
  17. package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
  18. package/out/controller/control/search-bar/search-bar.controller.js +5 -1
  19. package/out/controller/utils/view-msg/view-msg-controller.d.ts.map +1 -1
  20. package/out/controller/utils/view-msg/view-msg-controller.js +5 -0
  21. package/out/interface/api/common/i-api-data-ability-params.d.ts +1 -1
  22. package/out/interface/api/controller/control/form-detail/i-api-form-container.controller.d.ts +1 -1
  23. package/out/interface/api/controller/control/i-api-control.controller.d.ts +1 -1
  24. package/out/interface/api/controller/control/i-api-dashboard.controller.d.ts +2 -2
  25. package/out/interface/api/controller/control/i-api-exp-bar-control.controller.d.ts +33 -1
  26. package/out/interface/api/controller/control/i-api-exp-bar-control.controller.d.ts.map +1 -1
  27. package/out/interface/api/controller/control/i-api-grid.controller.d.ts +1 -1
  28. package/out/interface/api/controller/control/i-api-md-control.controller.d.ts +3 -3
  29. package/out/interface/api/controller/control/i-api-medit-view-panel.controller.d.ts +1 -1
  30. package/out/interface/api/controller/control/i-api-tab-exp-panel.controller.d.ts +1 -1
  31. package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts +2 -2
  32. package/out/interface/api/controller/control/i-api-wizard-panel.controller.d.ts +2 -2
  33. package/out/interface/api/controller/control/panel-item/i-api-panel-container.controller.d.ts +1 -1
  34. package/out/interface/api/controller/control/portlet/i-api-filter-portlet.controller.d.ts +3 -3
  35. package/out/interface/api/controller/view/i-api-view.controller.d.ts +1 -1
  36. package/out/interface/api/state/control/i-api-grid.state.d.ts +2 -2
  37. package/out/interface/api/state/control/i-api-kanban.state.d.ts +3 -3
  38. package/out/interface/api/state/control/i-api-map.state.d.ts +1 -1
  39. package/out/interface/api/state/control/i-api-md-control.state.d.ts +2 -2
  40. package/out/interface/api/state/control/i-api-mob-md-ctrl.state.d.ts +1 -1
  41. package/out/interface/api/state/control/i-api-tab-exp-panel.state.d.ts +2 -2
  42. package/out/interface/api/state/control/i-api-tree-grid-ex.state.d.ts +1 -1
  43. package/out/interface/controller/state/control/i-mob-md-ctrl.state.d.ts +1 -1
  44. package/out/locale/en/index.d.ts +1 -1
  45. package/out/locale/en/index.js +1 -1
  46. package/out/locale/zh-CN/index.d.ts +1 -1
  47. package/out/locale/zh-CN/index.js +1 -1
  48. package/package.json +2 -2
package/dist/index.esm.js CHANGED
@@ -27240,8 +27240,15 @@ var ViewMsgController = class _ViewMsgController {
27240
27240
  if (!msgDetailsViewMsgIds)
27241
27241
  return;
27242
27242
  (_c = appModel.appViewMsgs) == null ? void 0 : _c.forEach((item) => {
27243
+ var _a4;
27243
27244
  const index = msgDetailsViewMsgIds.indexOf(item.id);
27244
27245
  if (index !== -1) {
27246
+ if ((_a4 = item.contentLanguageRes) == null ? void 0 : _a4.lanResTag) {
27247
+ item.message = ibiz.i18n.t(
27248
+ item.contentLanguageRes.lanResTag,
27249
+ item.message
27250
+ );
27251
+ }
27245
27252
  this.viewMsgMap.set(item.id, item);
27246
27253
  msgDetailsViewMsgIds.splice(index, 1);
27247
27254
  }
@@ -28227,7 +28234,7 @@ var ViewController = class extends BaseController {
28227
28234
  const LoaddingTextValue = (_a3 = appViewParams == null ? void 0 : appViewParams.find(
28228
28235
  (item) => item.id.toLowerCase() === "srfloadingtext"
28229
28236
  )) == null ? void 0 : _a3.value;
28230
- this.state.loadingText = LoaddingTextValue || ibiz.config.view.loadingText;
28237
+ this.state.loadingText = LoaddingTextValue ? ibiz.appUtil.resolveI18nText(LoaddingTextValue) : ibiz.config.view.loadingText;
28231
28238
  this.state.isLoading = true;
28232
28239
  await super.onCreated();
28233
28240
  this.modal.hooks.beforeDismiss.tapPromise(async (modalData) => {
@@ -28424,7 +28431,7 @@ var ViewController = class extends BaseController {
28424
28431
  const LoaddingTextValue = (_a3 = appViewParams == null ? void 0 : appViewParams.find(
28425
28432
  (item) => item.id.toLowerCase() === "srfloadingtext"
28426
28433
  )) == null ? void 0 : _a3.value;
28427
- this.state.loadingText = LoaddingTextValue || ibiz.config.view.loadingText;
28434
+ this.state.loadingText = LoaddingTextValue ? ibiz.appUtil.resolveI18nText(LoaddingTextValue) : ibiz.config.view.loadingText;
28428
28435
  }
28429
28436
  }
28430
28437
  endLoading() {
@@ -28903,9 +28910,16 @@ var EditorController = class {
28903
28910
  await this.onInit();
28904
28911
  }
28905
28912
  async onInit() {
28913
+ var _a3, _b2;
28906
28914
  if (this.model.placeHolder) {
28907
28915
  this.placeHolder = this.model.placeHolder;
28908
28916
  }
28917
+ if ((_a3 = this.model.phlanguageRes) == null ? void 0 : _a3.lanResTag) {
28918
+ this.placeHolder = ibiz.i18n.t(
28919
+ (_b2 = this.model.phlanguageRes) == null ? void 0 : _b2.lanResTag,
28920
+ this.placeHolder
28921
+ );
28922
+ }
28909
28923
  if (this.model.editorParams) {
28910
28924
  Object.keys(this.model.editorParams).forEach((key) => {
28911
28925
  this.editorParams[key] = this.model.editorParams[key];
@@ -41688,7 +41702,7 @@ var SearchBarController = class extends ControlController {
41688
41702
  */
41689
41703
  get searchPhSeparator() {
41690
41704
  if (this.controlParams.searchphseparator) {
41691
- return this.controlParams.searchphseparator;
41705
+ return ibiz.appUtil.resolveI18nText(this.controlParams.searchphseparator);
41692
41706
  }
41693
41707
  return ibiz.config.common.searchPhSeparator;
41694
41708
  }
@@ -42473,19 +42487,26 @@ var SearchBarController = class extends ControlController {
42473
42487
  * @memberof SearchBarController
42474
42488
  */
42475
42489
  convertMultipleLanguages() {
42490
+ var _a3;
42476
42491
  const { searchBarGroups = [], searchBarFilters } = this.model;
42477
42492
  searchBarGroups.forEach((item) => {
42478
- var _a3;
42479
- if ((_a3 = item.capLanguageRes) == null ? void 0 : _a3.lanResTag) {
42493
+ var _a4;
42494
+ if ((_a4 = item.capLanguageRes) == null ? void 0 : _a4.lanResTag) {
42480
42495
  item.caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
42481
42496
  }
42482
42497
  });
42483
42498
  searchBarFilters == null ? void 0 : searchBarFilters.forEach((item) => {
42484
- var _a3;
42485
- if ((_a3 = item.capLanguageRes) == null ? void 0 : _a3.lanResTag) {
42499
+ var _a4;
42500
+ if ((_a4 = item.capLanguageRes) == null ? void 0 : _a4.lanResTag) {
42486
42501
  item.caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
42487
42502
  }
42488
42503
  });
42504
+ if ((_a3 = this.model.gmtlanguageRes) == null ? void 0 : _a3.lanResTag) {
42505
+ this.model.groupMoreText = ibiz.i18n.t(
42506
+ this.model.gmtlanguageRes.lanResTag,
42507
+ this.model.groupMoreText
42508
+ );
42509
+ }
42489
42510
  }
42490
42511
  };
42491
42512
 
@@ -44061,7 +44082,7 @@ var ExpBarControlController = class extends ControlController {
44061
44082
  * 默认通过路由上的srfnav导航
44062
44083
  * @author lxm
44063
44084
  * @date 2023-08-10 04:04:08
44064
- * @protected
44085
+ * @public
44065
44086
  */
44066
44087
  navBySrfnav() {
44067
44088
  if (!this.xDataController)
@@ -44106,7 +44127,7 @@ var ExpBarControlController = class extends ControlController {
44106
44127
  * 对于不同的导航,第一条可导航的数据可能定义不同,可以重写改方法。
44107
44128
  * @author lxm
44108
44129
  * @date 2023-08-10 03:58:15
44109
- * @protected
44130
+ * @public
44110
44131
  */
44111
44132
  navByFirstItem() {
44112
44133
  if (!this.xDataController)
@@ -44119,7 +44140,7 @@ var ExpBarControlController = class extends ControlController {
44119
44140
  }
44120
44141
  /**
44121
44142
  * @description 清空导航
44122
- * @protected
44143
+ * @public
44123
44144
  * @memberof ExpBarControlController
44124
44145
  */
44125
44146
  clearNavigation() {
@@ -44636,7 +44657,7 @@ var ChartExpBarController = class extends ExpBarControlController {
44636
44657
  * 对于不同的导航,第一条可导航的数据可能定义不同,可以重写改方法。
44637
44658
  * @author lxm
44638
44659
  * @date 2023-08-10 03:58:15
44639
- * @protected
44660
+ * @public
44640
44661
  */
44641
44662
  navByFirstItem() {
44642
44663
  if (!this.xDataController)
@@ -59637,7 +59658,7 @@ var MobMDCtrlRowState = class {
59637
59658
  this.data = data;
59638
59659
  this.controller = controller;
59639
59660
  /**
59640
- * 行为状态
59661
+ * 界面行为状态,key 为界面行为组标识
59641
59662
  *
59642
59663
  * @author chitanda
59643
59664
  * @date 2023-06-19 18:06:27
@@ -90212,7 +90233,7 @@ var en = {
90212
90233
  lt_and_eq: "Less than or equal to (<=)",
90213
90234
  is_null: "Value is Nil",
90214
90235
  is_not_null: "Value not null (NotNil)",
90215
- IN: "Value In range (In)",
90236
+ in: "Value In range (In)",
90216
90237
  not_in: "Value not in range (NotIn)",
90217
90238
  like: "Text contains (%)",
90218
90239
  lift_like: "Text left contained (%#)",
@@ -90895,7 +90916,7 @@ var zhCn = {
90895
90916
  lt_and_eq: "\u5C0F\u4E8E\u7B49\u4E8E(<=)",
90896
90917
  is_null: "\u503C\u4E3A\u7A7A(Nil)",
90897
90918
  is_not_null: "\u503C\u4E0D\u4E3A\u7A7A(NotNil)",
90898
- IN: "\u503C\u5728\u8303\u56F4\u4E2D(In)",
90919
+ in: "\u503C\u5728\u8303\u56F4\u4E2D(In)",
90899
90920
  not_in: "\u503C\u4E0D\u5728\u8303\u56F4\u4E2D(NotIn)",
90900
90921
  like: "\u6587\u672C\u5305\u542B(%)",
90901
90922
  lift_like: "\u6587\u672C\u5DE6\u5305\u542B(%#)",