@ibiz-template/runtime 0.6.15 → 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.
- package/dist/index.esm.js +65 -10
- package/dist/index.system.min.js +1 -1
- package/out/constant/sys-uiaction-tag.d.ts +16 -0
- package/out/constant/sys-uiaction-tag.d.ts.map +1 -1
- package/out/constant/sys-uiaction-tag.js +16 -0
- package/out/controller/common/control/control.controller.js +1 -1
- package/out/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.js +1 -1
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +6 -0
- package/out/interface/controller/controller/control/i-control.controller.d.ts +15 -0
- package/out/interface/controller/controller/control/i-control.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/panel-item/i-panel-item-coop-pos.controller.d.ts +63 -0
- package/out/interface/controller/controller/control/panel-item/i-panel-item-coop-pos.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/control/panel-item/i-panel-item-coop-pos.controller.js +1 -0
- package/out/interface/controller/controller/control/panel-item/index.d.ts +1 -0
- package/out/interface/controller/controller/control/panel-item/index.d.ts.map +1 -1
- package/out/interface/controller/controller/control/panel-item/index.js +1 -0
- package/out/interface/service/service/i-mark-open-data.service.d.ts +10 -1
- package/out/interface/service/service/i-mark-open-data.service.d.ts.map +1 -1
- package/out/interface/util/i-view-stack/i-view-stack.d.ts +8 -0
- package/out/interface/util/i-view-stack/i-view-stack.d.ts.map +1 -1
- package/out/model/utils/util.d.ts +5 -2
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +9 -4
- package/out/service/service/authority/authority.service.d.ts.map +1 -1
- package/out/service/service/authority/authority.service.js +3 -5
- package/out/service/service/mark-open-data/mark-open-data.service.d.ts +16 -0
- package/out/service/service/mark-open-data/mark-open-data.service.d.ts.map +1 -1
- package/out/service/service/mark-open-data/mark-open-data.service.js +19 -0
- package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.js +16 -2
- package/out/utils/view-stack/view-stack.d.ts +8 -0
- package/out/utils/view-stack/view-stack.d.ts.map +1 -1
- package/out/utils/view-stack/view-stack.js +10 -0
- 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
|
|
835
|
-
var _a, _b;
|
|
836
|
-
|
|
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 (
|
|
9565
|
-
return
|
|
9583
|
+
if (opPriv && opPriv.mapSysUniResMode && opPriv.mapSysUniResCode) {
|
|
9584
|
+
return !!this.calcByResCode(opPriv.mapSysUniResCode);
|
|
9566
9585
|
}
|
|
9567
9586
|
}
|
|
9568
9587
|
if (appDeId) {
|
|
@@ -12017,12 +12036,34 @@ var MarkOpenDataService = class {
|
|
|
12017
12036
|
}
|
|
12018
12037
|
});
|
|
12019
12038
|
}
|
|
12039
|
+
/**
|
|
12040
|
+
* 获取站内信的集合
|
|
12041
|
+
* @author lxm
|
|
12042
|
+
* @date 2023-11-15 10:55:25
|
|
12043
|
+
* @param {IParams} [params={}]
|
|
12044
|
+
* @return {*} {Promise<IHttpResponse>}
|
|
12045
|
+
*/
|
|
12020
12046
|
async action(deName, key, action) {
|
|
12021
12047
|
const res = await ibiz.net.get(
|
|
12022
12048
|
"".concat(this.baseUrl, "/").concat(deName, "/").concat(key, "/").concat(action)
|
|
12023
12049
|
);
|
|
12024
12050
|
return res;
|
|
12025
12051
|
}
|
|
12052
|
+
/**
|
|
12053
|
+
* 发送系统消息
|
|
12054
|
+
* @param name
|
|
12055
|
+
* @param key
|
|
12056
|
+
* @param action
|
|
12057
|
+
* @param data
|
|
12058
|
+
* @return {*} {Promise<IHttpResponse>}
|
|
12059
|
+
*/
|
|
12060
|
+
async send(name, key, action, data) {
|
|
12061
|
+
const res = await ibiz.net.post(
|
|
12062
|
+
"".concat(this.baseUrl, "/").concat(name, "/").concat(key, "/").concat(action),
|
|
12063
|
+
data
|
|
12064
|
+
);
|
|
12065
|
+
return res;
|
|
12066
|
+
}
|
|
12026
12067
|
/**
|
|
12027
12068
|
* 监听指定实体指定主键的消息
|
|
12028
12069
|
* @author lxm
|
|
@@ -15940,7 +15981,7 @@ var ControlController = class extends BaseController {
|
|
|
15940
15981
|
}
|
|
15941
15982
|
if (this.model.appDataEntityId) {
|
|
15942
15983
|
const codeName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
15943
|
-
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);
|
|
15944
15985
|
}
|
|
15945
15986
|
this.onDEDataChange = this.onDEDataChange.bind(this);
|
|
15946
15987
|
ibiz.mc.command.change.on(this.onDEDataChange);
|
|
@@ -19749,7 +19790,11 @@ var UILogicParam = class {
|
|
|
19749
19790
|
} else if (m.navViewParamParam) {
|
|
19750
19791
|
throw new ModelError24(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u89C6\u56FE\u8DEF\u7531\u53C2\u6570");
|
|
19751
19792
|
} else if (m.routeViewSessionParam) {
|
|
19752
|
-
|
|
19793
|
+
let value = parameters.view.getTopView().state;
|
|
19794
|
+
if (m.paramFieldName) {
|
|
19795
|
+
value = value[m.paramFieldName];
|
|
19796
|
+
}
|
|
19797
|
+
ctx.params[tag] = value;
|
|
19753
19798
|
} else if (m.simpleListParam) {
|
|
19754
19799
|
ctx.params[tag] = [];
|
|
19755
19800
|
} else if (m.simpleParam) {
|
|
@@ -19757,7 +19802,13 @@ var UILogicParam = class {
|
|
|
19757
19802
|
} else if (m.viewNavDataParam) {
|
|
19758
19803
|
ctx.params[tag] = params;
|
|
19759
19804
|
} else if (m.viewSessionParam) {
|
|
19760
|
-
|
|
19805
|
+
let value = parameters.view.state;
|
|
19806
|
+
if (m.paramFieldName) {
|
|
19807
|
+
value = value[m.paramFieldName];
|
|
19808
|
+
}
|
|
19809
|
+
ctx.params[tag] = value;
|
|
19810
|
+
} else if (m.filterParam) {
|
|
19811
|
+
ctx.params[tag] = {};
|
|
19761
19812
|
}
|
|
19762
19813
|
ibiz.log.debug("\u8BA1\u7B97\u754C\u9762\u903B\u8F91\u53C2\u6570\uFF0C\u6807\u8BC6\uFF1A".concat(tag), "-\u503C\uFF1A", ctx.params[tag]);
|
|
19763
19814
|
}
|
|
@@ -24127,7 +24178,7 @@ var FormGroupPanelController = class extends FormDetailController {
|
|
|
24127
24178
|
super.formStateNotify(state);
|
|
24128
24179
|
if (this.state.actionGroupState) {
|
|
24129
24180
|
const deData = this.data.getOrigin ? this.data.getOrigin() : this.data;
|
|
24130
|
-
this.state.actionGroupState.update(deData);
|
|
24181
|
+
this.state.actionGroupState.update(this.form.context, deData);
|
|
24131
24182
|
}
|
|
24132
24183
|
}
|
|
24133
24184
|
/**
|
|
@@ -36687,6 +36738,9 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
36687
36738
|
this.load(args);
|
|
36688
36739
|
return null;
|
|
36689
36740
|
}
|
|
36741
|
+
if (key === "GetAllData" /* GET_ALL_DATA */) {
|
|
36742
|
+
return this.xdataControl.state.items;
|
|
36743
|
+
}
|
|
36690
36744
|
return super.call(key, args);
|
|
36691
36745
|
}
|
|
36692
36746
|
getData() {
|
|
@@ -36705,6 +36759,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
36705
36759
|
var _a, _b;
|
|
36706
36760
|
const { data, event } = args;
|
|
36707
36761
|
const context = (args.context || this.view.context).clone();
|
|
36762
|
+
context.srfpaginationviewid = this.view.id;
|
|
36708
36763
|
const params = args.params || this.view.params;
|
|
36709
36764
|
const deName = ((_a = data[0].srfdecodename) == null ? void 0 : _a.toLowerCase()) || calcDeCodeNameById(this.xdataControl.model.appDataEntityId);
|
|
36710
36765
|
context[deName.toLowerCase()] = data[0].srfkey;
|
|
@@ -38472,7 +38527,7 @@ export {
|
|
|
38472
38527
|
getControlPanel,
|
|
38473
38528
|
getControlProvider,
|
|
38474
38529
|
getControlsByView,
|
|
38475
|
-
|
|
38530
|
+
getCtrlTeleportParams,
|
|
38476
38531
|
getDEMethodProvider,
|
|
38477
38532
|
getDERedirectToView,
|
|
38478
38533
|
getDeACMode,
|