@ibiz-template/runtime 0.6.16 → 0.6.17

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 (26) hide show
  1. package/dist/index.esm.js +31 -8
  2. package/dist/index.system.min.js +1 -1
  3. package/out/constant/sys-uiaction-tag.d.ts +16 -0
  4. package/out/constant/sys-uiaction-tag.d.ts.map +1 -1
  5. package/out/constant/sys-uiaction-tag.js +16 -0
  6. package/out/controller/common/control/control.controller.js +1 -1
  7. package/out/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.js +1 -1
  8. package/out/engine/md-view.engine.d.ts.map +1 -1
  9. package/out/engine/md-view.engine.js +6 -0
  10. package/out/interface/controller/controller/control/panel-item/i-panel-item-coop-pos.controller.d.ts +63 -0
  11. package/out/interface/controller/controller/control/panel-item/i-panel-item-coop-pos.controller.d.ts.map +1 -0
  12. package/out/interface/controller/controller/control/panel-item/i-panel-item-coop-pos.controller.js +1 -0
  13. package/out/interface/controller/controller/control/panel-item/index.d.ts +1 -0
  14. package/out/interface/controller/controller/control/panel-item/index.d.ts.map +1 -1
  15. package/out/interface/controller/controller/control/panel-item/index.js +1 -0
  16. package/out/interface/util/i-view-stack/i-view-stack.d.ts +8 -0
  17. package/out/interface/util/i-view-stack/i-view-stack.d.ts.map +1 -1
  18. package/out/model/utils/util.d.ts +5 -2
  19. package/out/model/utils/util.d.ts.map +1 -1
  20. package/out/model/utils/util.js +9 -4
  21. package/out/service/service/authority/authority.service.d.ts.map +1 -1
  22. package/out/service/service/authority/authority.service.js +3 -5
  23. package/out/utils/view-stack/view-stack.d.ts +8 -0
  24. package/out/utils/view-stack/view-stack.d.ts.map +1 -1
  25. package/out/utils/view-stack/view-stack.js +10 -0
  26. package/package.json +2 -2
package/dist/index.esm.js CHANGED
@@ -831,9 +831,14 @@ function findAppDEMethod(appDataEntity, id) {
831
831
  }
832
832
  return null;
833
833
  }
834
- function getCtrlTeleportTag(control) {
835
- var _a, _b;
836
- return (_b = (_a = control.controlParam) == null ? void 0 : _a.ctrlParams) == null ? void 0 : _b.TELEPORTTAG;
834
+ function getCtrlTeleportParams(control) {
835
+ var _a, _b, _c, _d;
836
+ const teleportTag = (_b = (_a = control.controlParam) == null ? void 0 : _a.ctrlParams) == null ? void 0 : _b.TELEPORTTAG;
837
+ const teleportFlag = ((_d = (_c = control.controlParam) == null ? void 0 : _c.ctrlParams) == null ? void 0 : _d.TELEPORTFLAG) === "true";
838
+ return {
839
+ teleportTag,
840
+ teleportFlag
841
+ };
837
842
  }
838
843
 
839
844
  // src/model/layout/layout.ts
@@ -2485,6 +2490,10 @@ var SysUIActionTag = /* @__PURE__ */ ((SysUIActionTag2) => {
2485
2490
  SysUIActionTag2["TOGGLE_ROW_EDIT"] = "ToggleRowEdit";
2486
2491
  SysUIActionTag2["REFRESH_ALL"] = "RefreshAll";
2487
2492
  SysUIActionTag2["REFRESH_PARENT"] = "RefreshParent";
2493
+ SysUIActionTag2["FIRST_RECORD"] = "FirstRecord";
2494
+ SysUIActionTag2["LAST_RECORD"] = "LastRecord";
2495
+ SysUIActionTag2["PREV_RECORD"] = "PrevRecord";
2496
+ SysUIActionTag2["NEXT_RECORD"] = "NextRecord";
2488
2497
  SysUIActionTag2["LOAD_MORE"] = "LoadMore";
2489
2498
  return SysUIActionTag2;
2490
2499
  })(SysUIActionTag || {});
@@ -3291,6 +3300,16 @@ var ViewStack = class {
3291
3300
  this.evt.emit("change", { type: "deactivate", view });
3292
3301
  }
3293
3302
  }
3303
+ /**
3304
+ * 获取视图堆栈里的视图控制器
3305
+ * @author lxm
3306
+ * @date 2024-04-01 01:15:52
3307
+ * @param {string} id
3308
+ * @return {*} {(IViewController | undefined)}
3309
+ */
3310
+ getView(id) {
3311
+ return this.stackMap.get(id);
3312
+ }
3294
3313
  /**
3295
3314
  * 重新计算激活视图堆栈
3296
3315
  *
@@ -9561,8 +9580,8 @@ var AuthorityService = class {
9561
9580
  if (this.enablePermission) {
9562
9581
  const app = await ibiz.hub.getApp(this.appModel.appId);
9563
9582
  const opPriv = await app.getOPPriv(dataAccessAction, appDeId);
9564
- if (this.enablePermission && (opPriv == null ? void 0 : opPriv.mapSysUniResCode) && !this.calcByResCode(opPriv.mapSysUniResCode)) {
9565
- return false;
9583
+ if (opPriv && opPriv.mapSysUniResMode && opPriv.mapSysUniResCode) {
9584
+ return !!this.calcByResCode(opPriv.mapSysUniResCode);
9566
9585
  }
9567
9586
  }
9568
9587
  if (appDeId) {
@@ -15962,7 +15981,7 @@ var ControlController = class extends BaseController {
15962
15981
  }
15963
15982
  if (this.model.appDataEntityId) {
15964
15983
  const codeName = calcDeCodeNameById(this.model.appDataEntityId);
15965
- this.triggerKey = "".concat(codeName, "@").concat(this.model.controlType, "@").concat(this.model.codeName);
15984
+ this.triggerKey = "".concat(this.view.name, "@").concat(codeName, "@").concat(this.model.controlType, "@").concat(this.model.codeName);
15966
15985
  }
15967
15986
  this.onDEDataChange = this.onDEDataChange.bind(this);
15968
15987
  ibiz.mc.command.change.on(this.onDEDataChange);
@@ -24159,7 +24178,7 @@ var FormGroupPanelController = class extends FormDetailController {
24159
24178
  super.formStateNotify(state);
24160
24179
  if (this.state.actionGroupState) {
24161
24180
  const deData = this.data.getOrigin ? this.data.getOrigin() : this.data;
24162
- this.state.actionGroupState.update(deData);
24181
+ this.state.actionGroupState.update(this.form.context, deData);
24163
24182
  }
24164
24183
  }
24165
24184
  /**
@@ -36719,6 +36738,9 @@ var MDViewEngine = class extends ViewEngineBase {
36719
36738
  this.load(args);
36720
36739
  return null;
36721
36740
  }
36741
+ if (key === "GetAllData" /* GET_ALL_DATA */) {
36742
+ return this.xdataControl.state.items;
36743
+ }
36722
36744
  return super.call(key, args);
36723
36745
  }
36724
36746
  getData() {
@@ -36737,6 +36759,7 @@ var MDViewEngine = class extends ViewEngineBase {
36737
36759
  var _a, _b;
36738
36760
  const { data, event } = args;
36739
36761
  const context = (args.context || this.view.context).clone();
36762
+ context.srfpaginationviewid = this.view.id;
36740
36763
  const params = args.params || this.view.params;
36741
36764
  const deName = ((_a = data[0].srfdecodename) == null ? void 0 : _a.toLowerCase()) || calcDeCodeNameById(this.xdataControl.model.appDataEntityId);
36742
36765
  context[deName.toLowerCase()] = data[0].srfkey;
@@ -38504,7 +38527,7 @@ export {
38504
38527
  getControlPanel,
38505
38528
  getControlProvider,
38506
38529
  getControlsByView,
38507
- getCtrlTeleportTag,
38530
+ getCtrlTeleportParams,
38508
38531
  getDEMethodProvider,
38509
38532
  getDERedirectToView,
38510
38533
  getDeACMode,