@ibiz-template/runtime 0.4.2 → 0.4.3-dev.0
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 +30 -7
- package/dist/index.system.min.js +2 -2
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/control/report-panel/generator/user-generator.d.ts.map +1 -1
- package/out/controller/control/report-panel/generator/user-generator.js +5 -3
- package/out/controller/utils/button-state/ui-action-button.state.d.ts +14 -0
- package/out/controller/utils/button-state/ui-action-button.state.d.ts.map +1 -1
- package/out/controller/utils/button-state/ui-action-button.state.js +21 -2
- package/out/utils/nav-params/nav-params.d.ts.map +1 -1
- package/out/utils/nav-params/nav-params.js +5 -3
- package/package.json +2 -2
- package/src/controller/control/report-panel/generator/user-generator.ts +6 -3
- package/src/controller/utils/button-state/ui-action-button.state.ts +22 -2
- package/src/utils/nav-params/nav-params.ts +7 -3
package/dist/index.esm.js
CHANGED
|
@@ -559,14 +559,18 @@ function convertNavDataByArray(naviDatas, ...origins) {
|
|
|
559
559
|
if (matchArr !== null) {
|
|
560
560
|
let valueStr = naviData.value;
|
|
561
561
|
matchArr.forEach((key) => {
|
|
562
|
-
const { find, value } = getVal(
|
|
562
|
+
const { find, value } = getVal(
|
|
563
|
+
origins,
|
|
564
|
+
// 去掉${},适配平台模型转小写取值
|
|
565
|
+
key.slice(2, -1).toLowerCase()
|
|
566
|
+
);
|
|
563
567
|
if (find) {
|
|
564
568
|
valueStr = valueStr.replace(key, "".concat(value));
|
|
565
569
|
}
|
|
566
570
|
});
|
|
567
571
|
result[naviData.key.toLowerCase()] = valueStr;
|
|
568
572
|
} else {
|
|
569
|
-
const { find, value } = getVal(origins, naviData.value);
|
|
573
|
+
const { find, value } = getVal(origins, naviData.value.toLowerCase());
|
|
570
574
|
if (find) {
|
|
571
575
|
result[naviData.key.toLowerCase()] = value;
|
|
572
576
|
}
|
|
@@ -9987,8 +9991,22 @@ var UIActionButtonState = class {
|
|
|
9987
9991
|
this.noPermissionHidden = true;
|
|
9988
9992
|
/**
|
|
9989
9993
|
* 有权限时且没数据时,是否禁用
|
|
9994
|
+
*
|
|
9995
|
+
* @author chitanda
|
|
9996
|
+
* @date 2023-11-30 11:11:14
|
|
9997
|
+
* @protected
|
|
9998
|
+
* @type {boolean}
|
|
9990
9999
|
*/
|
|
9991
10000
|
this.noDataDisabled = false;
|
|
10001
|
+
/**
|
|
10002
|
+
* 有权限时且没主键时,是否禁用
|
|
10003
|
+
*
|
|
10004
|
+
* @author chitanda
|
|
10005
|
+
* @date 2023-11-30 11:11:03
|
|
10006
|
+
* @protected
|
|
10007
|
+
* @type {boolean}
|
|
10008
|
+
*/
|
|
10009
|
+
this.noKeyDisabled = false;
|
|
9992
10010
|
/**
|
|
9993
10011
|
* 是否初始化
|
|
9994
10012
|
*/
|
|
@@ -10036,6 +10054,9 @@ var UIActionButtonState = class {
|
|
|
10036
10054
|
"RemoveAndExit"
|
|
10037
10055
|
].includes(uiactionTag)) {
|
|
10038
10056
|
this.noDataDisabled = true;
|
|
10057
|
+
if (actionTarget === "SINGLEKEY" || actionTarget === "MULTIKEY") {
|
|
10058
|
+
this.noKeyDisabled = true;
|
|
10059
|
+
}
|
|
10039
10060
|
}
|
|
10040
10061
|
this.isInit = true;
|
|
10041
10062
|
}
|
|
@@ -10074,7 +10095,7 @@ var UIActionButtonState = class {
|
|
|
10074
10095
|
this.visible = !this.noPermissionHidden;
|
|
10075
10096
|
} else {
|
|
10076
10097
|
this.visible = true;
|
|
10077
|
-
this.disabled = this.noDataDisabled && !data;
|
|
10098
|
+
this.disabled = this.noDataDisabled && (!data || this.noKeyDisabled && !data.srfkey);
|
|
10078
10099
|
}
|
|
10079
10100
|
}
|
|
10080
10101
|
};
|
|
@@ -25990,18 +26011,20 @@ var UserReportPanelGenerator = class extends ReportPanelBaseGenerator {
|
|
|
25990
26011
|
}
|
|
25991
26012
|
},
|
|
25992
26013
|
NODELEGENDCONFIG: {
|
|
25993
|
-
valueField: "source_lables",
|
|
25994
|
-
selected: "{{return Object.is(data.source_lables, 'NEO4J_ZT')}}"
|
|
26014
|
+
valueField: "source_lables||target_lables",
|
|
26015
|
+
selected: "{{return Object.is(data.source_lables, 'NEO4J_ZT') || Object.is(data.target_lables, 'NEO4J_ZT')}}",
|
|
26016
|
+
codeListTag: "web.nodetype"
|
|
25995
26017
|
},
|
|
25996
26018
|
EDGELEGENDCONFIG: {
|
|
25997
|
-
valueField: "relationship_type"
|
|
26019
|
+
valueField: "relationship_type",
|
|
26020
|
+
codeListTag: "web.relationshiptype"
|
|
25998
26021
|
},
|
|
25999
26022
|
PLUGINCONFIG: {
|
|
26000
26023
|
gridConfig: {},
|
|
26001
26024
|
miniMapConfig: {}
|
|
26002
26025
|
},
|
|
26003
26026
|
HOOKS: {
|
|
26004
|
-
nodeDataHook: "{{ data.forEach(node => {Object.assign(node, { label: node.data.name, size: 66,donutAttrs: { prop1: 10000, prop2: 10 },donutColorMap: { prop1:
|
|
26027
|
+
nodeDataHook: "{{ data.forEach(node => { const type = node.data.source_lables || node.data.target_lables; Object.assign(node, { label: node.data.name, size: 66, style: { fill: node.color },donutAttrs: { prop1: 10000, prop2: 10 },donutColorMap: { prop1: node.color, prop2: node.color },icon: {show: true,img: type === 'NEO4J_ZT' ? './assets/images/user-avatar.png' : './assets/images/phone.png',width: 40,height: 40}})})}}",
|
|
26005
26028
|
edgeDataHook: "{{ data.forEach(edge => {Object.assign(edge, { label: edge.name })}) }}"
|
|
26006
26029
|
}
|
|
26007
26030
|
};
|