@ibiz-template/runtime 0.7.41-alpha.96 → 0.7.41-alpha.98

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 +31 -9
  2. package/dist/index.system.min.js +1 -1
  3. package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
  4. package/out/controller/common/control/md-control.controller.js +2 -1
  5. package/out/controller/common/editor/editor.controller.d.ts.map +1 -1
  6. package/out/controller/common/editor/editor.controller.js +4 -0
  7. package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
  8. package/out/controller/control/grid/grid/grid.controller.js +3 -1
  9. package/out/controller/control/md-ctrl/md-ctrl-row.state.d.ts +1 -1
  10. package/out/controller/control/md-ctrl/md-ctrl-row.state.js +1 -1
  11. package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
  12. package/out/controller/control/search-bar/search-bar.controller.js +4 -0
  13. package/out/controller/utils/view-msg/view-msg-controller.d.ts.map +1 -1
  14. package/out/controller/utils/view-msg/view-msg-controller.js +5 -0
  15. package/out/interface/api/common/i-api-data-ability-params.d.ts +1 -1
  16. package/out/interface/api/controller/control/form-detail/i-api-form-container.controller.d.ts +1 -1
  17. package/out/interface/api/controller/control/i-api-app-menu.controller.d.ts +10 -4
  18. package/out/interface/api/controller/control/i-api-app-menu.controller.d.ts.map +1 -1
  19. package/out/interface/api/controller/control/i-api-control.controller.d.ts +1 -1
  20. package/out/interface/api/controller/control/i-api-dashboard.controller.d.ts +18 -1
  21. package/out/interface/api/controller/control/i-api-dashboard.controller.d.ts.map +1 -1
  22. package/out/interface/api/controller/control/i-api-grid.controller.d.ts +1 -1
  23. package/out/interface/api/controller/control/i-api-md-control.controller.d.ts +3 -3
  24. package/out/interface/api/controller/control/i-api-medit-view-panel.controller.d.ts +1 -1
  25. package/out/interface/api/controller/control/i-api-tab-exp-panel.controller.d.ts +1 -1
  26. package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts +2 -2
  27. package/out/interface/api/controller/control/i-api-wizard-panel.controller.d.ts +2 -2
  28. package/out/interface/api/controller/control/panel-item/i-api-panel-container.controller.d.ts +1 -1
  29. package/out/interface/api/controller/control/portlet/i-api-filter-portlet.controller.d.ts +3 -3
  30. package/out/interface/api/controller/control/portlet/i-api-portlet.controller.d.ts +4 -4
  31. package/out/interface/api/controller/view/i-api-view.controller.d.ts +1 -1
  32. package/out/interface/api/state/control/i-api-app-menu.state.d.ts +2 -2
  33. package/out/interface/api/state/control/i-api-app-menu.state.d.ts.map +1 -1
  34. package/out/interface/api/state/control/i-api-grid.state.d.ts +2 -2
  35. package/out/interface/api/state/control/i-api-kanban.state.d.ts +3 -3
  36. package/out/interface/api/state/control/i-api-map.state.d.ts +1 -1
  37. package/out/interface/api/state/control/i-api-md-control.state.d.ts +2 -2
  38. package/out/interface/api/state/control/i-api-mob-md-ctrl.state.d.ts +1 -1
  39. package/out/interface/api/state/control/i-api-tab-exp-panel.state.d.ts +2 -2
  40. package/out/interface/api/state/control/i-api-tree-grid-ex.state.d.ts +1 -1
  41. package/out/interface/controller/controller/control/i-dashboard.controller.d.ts +0 -20
  42. package/out/interface/controller/controller/control/i-dashboard.controller.d.ts.map +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 +4 -4
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
  }
@@ -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];
@@ -29993,7 +30007,7 @@ var MDControlController = class extends ControlController {
29993
30007
  "".concat(this.view.model.id, ".").concat(this.model.name, ".sort")
29994
30008
  );
29995
30009
  } else if (minorSortAppDEFieldId && minorSortDir) {
29996
- const fieldName = this.fieldIdNameMap.get(minorSortAppDEFieldId);
30010
+ const fieldName = this.fieldIdNameMap.get(minorSortAppDEFieldId) || minorSortAppDEFieldId;
29997
30011
  this.state.sortQuery = "".concat(fieldName.toLowerCase(), ",").concat(minorSortDir.toLowerCase());
29998
30012
  } else if (ibiz.config.mdctrldefaultsort) {
29999
30013
  this.state.sortQuery = ibiz.config.mdctrldefaultsort;
@@ -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
 
@@ -52177,9 +52198,10 @@ var GridController = class extends MDControlController {
52177
52198
  * @param {string} order 排序顺序
52178
52199
  */
52179
52200
  setSort(fieldId, order) {
52201
+ var _a3;
52180
52202
  let fieldName;
52181
52203
  if (fieldId) {
52182
- fieldName = this.state.isAutoGrid ? fieldId.toLowerCase() : this.fieldIdNameMap.get(fieldId).toLowerCase();
52204
+ fieldName = this.state.isAutoGrid ? fieldId.toLowerCase() : ((_a3 = this.fieldIdNameMap.get(fieldId)) == null ? void 0 : _a3.toLowerCase()) || fieldId.toLowerCase();
52183
52205
  }
52184
52206
  super.setSort(fieldName, order);
52185
52207
  }
@@ -59636,7 +59658,7 @@ var MobMDCtrlRowState = class {
59636
59658
  this.data = data;
59637
59659
  this.controller = controller;
59638
59660
  /**
59639
- * 行为状态
59661
+ * 界面行为状态,key 为界面行为组标识
59640
59662
  *
59641
59663
  * @author chitanda
59642
59664
  * @date 2023-06-19 18:06:27
@@ -90211,7 +90233,7 @@ var en = {
90211
90233
  lt_and_eq: "Less than or equal to (<=)",
90212
90234
  is_null: "Value is Nil",
90213
90235
  is_not_null: "Value not null (NotNil)",
90214
- IN: "Value In range (In)",
90236
+ in: "Value In range (In)",
90215
90237
  not_in: "Value not in range (NotIn)",
90216
90238
  like: "Text contains (%)",
90217
90239
  lift_like: "Text left contained (%#)",
@@ -90894,7 +90916,7 @@ var zhCn = {
90894
90916
  lt_and_eq: "\u5C0F\u4E8E\u7B49\u4E8E(<=)",
90895
90917
  is_null: "\u503C\u4E3A\u7A7A(Nil)",
90896
90918
  is_not_null: "\u503C\u4E0D\u4E3A\u7A7A(NotNil)",
90897
- IN: "\u503C\u5728\u8303\u56F4\u4E2D(In)",
90919
+ in: "\u503C\u5728\u8303\u56F4\u4E2D(In)",
90898
90920
  not_in: "\u503C\u4E0D\u5728\u8303\u56F4\u4E2D(NotIn)",
90899
90921
  like: "\u6587\u672C\u5305\u542B(%)",
90900
90922
  lift_like: "\u6587\u672C\u5DE6\u5305\u542B(%#)",