@ibiz-template/runtime 0.7.23 → 0.7.24-alpha.1

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 (37) hide show
  1. package/dist/index.esm.js +41 -37
  2. package/dist/index.system.min.js +1 -1
  3. package/out/app-hub.d.ts +1 -1
  4. package/out/app-hub.d.ts.map +1 -1
  5. package/out/app-hub.js +2 -2
  6. package/out/controller/common/control/md-control.controller.d.ts +8 -0
  7. package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
  8. package/out/controller/common/control/md-control.controller.js +12 -0
  9. package/out/controller/control/data-view/data-view.controller.d.ts +0 -7
  10. package/out/controller/control/data-view/data-view.controller.d.ts.map +1 -1
  11. package/out/controller/control/data-view/data-view.controller.js +0 -11
  12. package/out/controller/control/form/form-detail/form-detail/form-detail.state.d.ts +8 -0
  13. package/out/controller/control/form/form-detail/form-detail/form-detail.state.d.ts.map +1 -1
  14. package/out/controller/control/form/form-detail/form-detail/form-detail.state.js +9 -1
  15. package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
  16. package/out/controller/control/form/form-detail/form-item/form-item.controller.js +3 -0
  17. package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
  18. package/out/controller/control/grid/grid/grid.controller.js +10 -4
  19. package/out/controller/control/list/list.controller.d.ts +0 -7
  20. package/out/controller/control/list/list.controller.d.ts.map +1 -1
  21. package/out/controller/control/list/list.controller.js +0 -11
  22. package/out/controller/control/tree/tree.service.js +1 -1
  23. package/out/engine/md-view.engine.js +1 -1
  24. package/out/hub/config/app-view-config-service.d.ts +1 -1
  25. package/out/hub/config/app-view-config-service.d.ts.map +1 -1
  26. package/out/hub/config/app-view-config-service.js +2 -2
  27. package/out/interface/controller/controller/control/panel-item/i-panel-item-coop-pos.controller.d.ts +8 -0
  28. package/out/interface/controller/controller/control/panel-item/i-panel-item-coop-pos.controller.d.ts.map +1 -1
  29. package/out/interface/controller/state/control/i-drtab.state.d.ts +8 -0
  30. package/out/interface/controller/state/control/i-drtab.state.d.ts.map +1 -1
  31. package/out/locale/en/index.d.ts +1 -1
  32. package/out/locale/en/index.js +1 -1
  33. package/out/locale/zh-CN/index.d.ts +1 -1
  34. package/out/locale/zh-CN/index.d.ts.map +1 -1
  35. package/out/locale/zh-CN/index.js +1 -1
  36. package/out/service/service/authority/de-authority.service.js +2 -2
  37. package/package.json +4 -4
package/dist/index.esm.js CHANGED
@@ -7911,9 +7911,9 @@ var DeAuthorityService = class {
7911
7911
  return result;
7912
7912
  }
7913
7913
  const appDataEntity = this.entityModel;
7914
- if (!appDataEntity.enableDEMainState) {
7914
+ if (!appDataEntity.enableDEMainState || !appDataEntity.demainStates) {
7915
7915
  ibiz.log.debug(
7916
- ibiz.i18n.t("runtime.service.masterState", {
7916
+ ibiz.i18n.t("runtime.service.mainState", {
7917
7917
  codeName: appDataEntity.codeName
7918
7918
  })
7919
7919
  );
@@ -15661,9 +15661,9 @@ var AppViewConfigService = class {
15661
15661
  * @param {string} tag
15662
15662
  * @return {*} {string}
15663
15663
  */
15664
- calcAppViewId(tag) {
15664
+ calcAppViewId(tag = "") {
15665
15665
  let id = "";
15666
- if (tag.indexOf(".") !== -1) {
15666
+ if (tag && tag.indexOf(".") !== -1) {
15667
15667
  const ids = tag.split(".");
15668
15668
  id = ids[ids.length - 1];
15669
15669
  } else {
@@ -19064,6 +19064,18 @@ var MDControlController = class extends ControlController {
19064
19064
  }
19065
19065
  return resultParams;
19066
19066
  }
19067
+ /**
19068
+ * 加载更多
19069
+ *
19070
+ * @author zhanghengfeng
19071
+ * @date 2024-06-11 19:06:15
19072
+ * @return {*} {Promise<void>}
19073
+ */
19074
+ async loadMore() {
19075
+ if (this.state.total > this.state.items.length) {
19076
+ await this.load({ isLoadMore: true });
19077
+ }
19078
+ }
19067
19079
  /**
19068
19080
  * 部件加载数据行为
19069
19081
  *
@@ -25358,17 +25370,6 @@ var DataViewControlController = class extends MDControlController {
25358
25370
  }
25359
25371
  }
25360
25372
  }
25361
- /**
25362
- * 加载更多
25363
- *
25364
- * @return {*} {Promise<void>}
25365
- * @memberof DataViewControlController
25366
- */
25367
- async loadMore() {
25368
- if (this.state.total > this.state.items.length) {
25369
- await this.load({ isLoadMore: true });
25370
- }
25371
- }
25372
25373
  /**
25373
25374
  * 计算表格展示模式
25374
25375
  * @author fzh
@@ -27176,6 +27177,14 @@ var FormDetailState = class {
27176
27177
  * @type {boolean}
27177
27178
  */
27178
27179
  this.readonly = false;
27180
+ /**
27181
+ * 是否识别srfreadonly
27182
+ *
27183
+ * @author zhanghengfeng
27184
+ * @date 2024-06-13 13:06:50
27185
+ * @type {boolean}
27186
+ */
27187
+ this.enableReadonly = true;
27179
27188
  let $visible = true;
27180
27189
  Object.defineProperty(this, "visible", {
27181
27190
  enumerable: true,
@@ -27222,7 +27231,7 @@ var FormDetailState = class {
27222
27231
  if ($readonly !== void 0) {
27223
27232
  return $readonly;
27224
27233
  }
27225
- if (this.context) {
27234
+ if (this.context && this.enableReadonly) {
27226
27235
  return !!(this.context.srfreadonly === true || this.context.srfreadonly === "true");
27227
27236
  }
27228
27237
  return false;
@@ -28027,6 +28036,7 @@ var FormItemController = class extends FormDetailController {
28027
28036
  * @type {IData[]}
28028
28037
  */
28029
28038
  this.rules = [];
28039
+ this.state.enableReadonly = this.form.getControlType() !== "SEARCHFORM" /* SEARCHFORM */;
28030
28040
  }
28031
28041
  createState() {
28032
28042
  var _a;
@@ -30795,15 +30805,20 @@ var GridController = class extends MDControlController {
30795
30805
  }),
30796
30806
  false
30797
30807
  );
30798
- this.state.rows = items.map((item) => {
30808
+ const rows = items.map((item) => {
30799
30809
  const row = new GridRowState(item, this);
30800
30810
  this.gridStateNotify(row, "LOAD" /* LOAD */);
30801
30811
  return row;
30802
30812
  });
30813
+ if (args.isLoadMore) {
30814
+ this.state.rows.push(...rows);
30815
+ } else {
30816
+ this.state.rows = rows;
30817
+ }
30803
30818
  await this.updateRows(this.state.rows);
30804
- this.calcGroupData(items);
30805
- this.calcAggResult(items);
30806
- this.calcShowMode(items);
30819
+ this.calcGroupData(this.state.items);
30820
+ this.calcAggResult(this.state.items);
30821
+ this.calcShowMode(this.state.items);
30807
30822
  return items;
30808
30823
  }
30809
30824
  /**
@@ -32471,17 +32486,6 @@ var ListController = class extends MDControlController {
32471
32486
  minorSortDir: this.model.minorSortDir
32472
32487
  };
32473
32488
  }
32474
- /**
32475
- * 加载更多
32476
- * @author lxm
32477
- * @date 2023-05-22 07:33:59
32478
- * @return {*} {Promise<void>}
32479
- */
32480
- async loadMore() {
32481
- if (this.state.total > this.state.items.length) {
32482
- await this.load({ isLoadMore: true });
32483
- }
32484
- }
32485
32489
  /**
32486
32490
  * 计算表格展示模式
32487
32491
  * @author fzh
@@ -35359,7 +35363,7 @@ var TreeService = class extends MDControlService {
35359
35363
  if (parentData) {
35360
35364
  data = parentData._deData || {};
35361
35365
  const parentNodeModel = getTreeNode(this.model, parentData._nodeId);
35362
- if (parentNodeModel.appDataEntityId) {
35366
+ if (parentNodeModel && parentNodeModel.appDataEntityId) {
35363
35367
  deName = calcDeCodeNameById(parentNodeModel.appDataEntityId);
35364
35368
  }
35365
35369
  derValue = parentData._value;
@@ -41053,9 +41057,9 @@ var AppHub = class {
41053
41057
  * @param {string} tag
41054
41058
  * @return {*} {string}
41055
41059
  */
41056
- calcAppViewId(tag) {
41060
+ calcAppViewId(tag = "") {
41057
41061
  let id = "";
41058
- if (tag.indexOf(".") !== -1) {
41062
+ if (tag && tag.indexOf(".") !== -1) {
41059
41063
  const ids = tag.split(".");
41060
41064
  id = ids[ids.length - 1];
41061
41065
  } else {
@@ -42127,7 +42131,7 @@ var MDViewEngine = class extends ViewEngineBase {
42127
42131
  event,
42128
42132
  view: this.view
42129
42133
  }));
42130
- if (result === -1) {
42134
+ if (result === -1 || !result) {
42131
42135
  throw new RuntimeModelError73(
42132
42136
  this.view.model,
42133
42137
  ibiz.i18n.t("runtime.engine.logicOpendata")
@@ -44081,7 +44085,7 @@ var en = {
44081
44085
  loginFailure: "Login Failure",
44082
44086
  logoutFailure: "Logout failure",
44083
44087
  noFound: "Application entity not found [{id}]",
44084
- masterState: "{codeName} entity does not exist or is enabled for master state, return true",
44088
+ mainState: "{codeName} entity does not exist, the main state is not enabled, or the main state collection is empty, return true",
44085
44089
  operationIdentifier: "Operation identifier {dataAccessAction} main state calculation started",
44086
44090
  matchMasterState: "Match master state",
44087
44091
  masterStatePermissions: "Collection of allowed master state permissions",
@@ -44657,7 +44661,7 @@ var zhCn = {
44657
44661
  loginFailure: "\u767B\u5F55\u5931\u8D25",
44658
44662
  logoutFailure: "\u767B\u51FA\u5931\u8D25",
44659
44663
  noFound: "\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[{id}]",
44660
- masterState: "{codeName}\u5B9E\u4F53\u4E0D\u5B58\u5728\u6216\u8005\u4E3A\u542F\u7528\u4E3B\u72B6\u6001\uFF0C\u8FD4\u56DEtrue",
44664
+ mainState: "{codeName}\u5B9E\u4F53\u4E0D\u5B58\u5728\u3001\u672A\u542F\u7528\u4E3B\u72B6\u6001\u6216\u8005\u4E3B\u72B6\u6001\u96C6\u5408\u4E3A\u7A7A\uFF0C\u8FD4\u56DEtrue",
44661
44665
  operationIdentifier: "\u64CD\u4F5C\u6807\u8BC6{dataAccessAction}\u4E3B\u72B6\u6001\u8BA1\u7B97\u5F00\u59CB",
44662
44666
  matchMasterState: "\u5339\u914D\u4E3B\u72B6\u6001",
44663
44667
  masterStatePermissions: "\u5141\u8BB8\u7684\u4E3B\u72B6\u6001\u6743\u9650\u96C6\u5408",