@cloud-app-dev/vidc 1.0.45 → 1.0.46
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/es/TreeMode/demo.js +3 -1
- package/es/TreeMode/index.css +0 -5
- package/es/WorkerFlow/Demo.js +1 -1
- package/es/WorkerFlow/Form/Approver.js +2 -2
- package/es/WorkerFlow/Form/Condition.js +1 -1
- package/es/WorkerFlow/Form/Handle.js +2 -2
- package/es/WorkerFlow/interface.d.ts +1 -1
- package/es/WorkerFlow/utils.d.ts +1 -0
- package/es/WorkerFlow/utils.js +10 -1
- package/package.json +2 -2
package/es/TreeMode/demo.js
CHANGED
|
@@ -20,7 +20,9 @@ function App() {
|
|
|
20
20
|
mode: "Custom"
|
|
21
21
|
}), /*#__PURE__*/React.createElement(BsTree, {
|
|
22
22
|
title: "\u884C\u653F\u533A\u5212",
|
|
23
|
-
mode: "Place"
|
|
23
|
+
mode: "Place",
|
|
24
|
+
checkable: true,
|
|
25
|
+
checkStrictly: true
|
|
24
26
|
}), /*#__PURE__*/React.createElement(BsTree, {
|
|
25
27
|
title: "\u7EC4\u7EC7\u673A\u6784",
|
|
26
28
|
mode: "Org"
|
package/es/TreeMode/index.css
CHANGED
|
@@ -13,11 +13,6 @@
|
|
|
13
13
|
flex: 1;
|
|
14
14
|
overflow: auto;
|
|
15
15
|
}
|
|
16
|
-
.bc-type-tree-layout .lm-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper:hover:after,
|
|
17
|
-
.bc-type-tree-layout .lm-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper.cloudapp-tree-node-selected:after {
|
|
18
|
-
left: 10px;
|
|
19
|
-
width: calc(100% - 10px);
|
|
20
|
-
}
|
|
21
16
|
.bc-type-tree-layout .cloudapp-tree {
|
|
22
17
|
height: 100%;
|
|
23
18
|
overflow: auto;
|
package/es/WorkerFlow/Demo.js
CHANGED
|
@@ -14,8 +14,8 @@ function ApproverForm(_ref) {
|
|
|
14
14
|
return (_a = getParentNodeById(config, item.id)) === null || _a === void 0 ? void 0 : _a.bpmnType;
|
|
15
15
|
}, [config, item.id]);
|
|
16
16
|
var includeUserTypes = useMemo(function () {
|
|
17
|
-
return parentNodeType === 'startEvent'
|
|
18
|
-
}, []);
|
|
17
|
+
return parentNodeType === 'startEvent' ? [1, 3] : parentNodeType === 'sequenceFlow' ? [1, 3, 4, 5] : [1, 2, 3, 4, 5];
|
|
18
|
+
}, [parentNodeType]);
|
|
19
19
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(UserSet, {
|
|
20
20
|
chargeLevel: item.chargeLevel,
|
|
21
21
|
userType: item.userType,
|
|
@@ -57,7 +57,7 @@ function ConditionForm(_ref) {
|
|
|
57
57
|
var addCondition = useCallback(function () {
|
|
58
58
|
var modal = modalRef.current;
|
|
59
59
|
var allowForm = form.filter(function (v) {
|
|
60
|
-
return v.
|
|
60
|
+
return v.widgetType === 'SINGLE_SELECTION' && v.required;
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
var onOk = function onOk() {
|
|
@@ -14,8 +14,8 @@ function HandleForm(_ref) {
|
|
|
14
14
|
return (_a = getParentNodeById(config, item.id)) === null || _a === void 0 ? void 0 : _a.bpmnType;
|
|
15
15
|
}, [config, item.id]);
|
|
16
16
|
var includeUserTypes = useMemo(function () {
|
|
17
|
-
return parentNodeType === 'startEvent'
|
|
18
|
-
}, []);
|
|
17
|
+
return parentNodeType === 'startEvent' ? [1, 3] : parentNodeType === 'sequenceFlow' ? [1, 3, 4, 5] : [1, 2, 3, 4, 5];
|
|
18
|
+
}, [parentNodeType]);
|
|
19
19
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(UserSet, {
|
|
20
20
|
chargeLevel: item.chargeLevel,
|
|
21
21
|
userType: item.userType,
|
|
@@ -15,7 +15,7 @@ export type NodeUserType = {
|
|
|
15
15
|
export type WorkerFlowFormType = {
|
|
16
16
|
name: string;
|
|
17
17
|
label: string;
|
|
18
|
-
|
|
18
|
+
widgetType: 'SINGLE_TEXT' | 'MULTIPLE_TEXT' | 'SINGLE_SELECTION' | 'MULTIPLE_SELECTION' | 'IMAGE';
|
|
19
19
|
type: string;
|
|
20
20
|
value: string;
|
|
21
21
|
auth?: FormAuthType;
|
package/es/WorkerFlow/utils.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export declare function getNextTaskId(node: NodeItem): string | undefined;
|
|
|
4
4
|
export declare function getNextNode(node: NodeItem): NodeItem | undefined;
|
|
5
5
|
export declare function filterNoticeNode(data: NodeItem): NodeItem;
|
|
6
6
|
export declare function getUserFormKeys(data: NodeItem): ConditionItemType[];
|
|
7
|
+
export declare function getFirstUserTask(data: NodeItem): NodeItem | undefined;
|
package/es/WorkerFlow/utils.js
CHANGED
|
@@ -13,6 +13,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
13
13
|
import _ from 'lodash';
|
|
14
14
|
import { getNodeById } from './XML/utils';
|
|
15
15
|
export function getJAVATaskData(data) {
|
|
16
|
+
var _a;
|
|
17
|
+
|
|
16
18
|
var arr = [];
|
|
17
19
|
|
|
18
20
|
var fn = function fn(node, _nextNode) {
|
|
@@ -100,7 +102,7 @@ export function getJAVATaskData(data) {
|
|
|
100
102
|
} // 修正最后一个节点的nextid
|
|
101
103
|
|
|
102
104
|
|
|
103
|
-
var lastNextId = arr[arr.length - 1].nextTaskId;
|
|
105
|
+
var lastNextId = (_a = arr[arr.length - 1]) === null || _a === void 0 ? void 0 : _a.nextTaskId;
|
|
104
106
|
|
|
105
107
|
if (lastNextId) {
|
|
106
108
|
var lastNode = getNodeById(data, lastNextId);
|
|
@@ -186,4 +188,11 @@ export function getUserFormKeys(data) {
|
|
|
186
188
|
return arr.filter(function (v) {
|
|
187
189
|
return !!v;
|
|
188
190
|
});
|
|
191
|
+
}
|
|
192
|
+
export function getFirstUserTask(data) {
|
|
193
|
+
if (data.bpmnType === 'startEvent') {
|
|
194
|
+
return data.childNode;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return undefined;
|
|
189
198
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@cloud-app-dev/vidc",
|
|
4
4
|
"description": "Video Image Data Componennts",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.46",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "dumi dev",
|
|
8
8
|
"docs:build": "dumi build",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@cloud-app-dev/utils": "^2.0.1",
|
|
41
|
-
"@cloud-app-dev/basic-components": "^1.0.
|
|
41
|
+
"@cloud-app-dev/basic-components": "^1.0.56",
|
|
42
42
|
"@types/chroma-js": "^2.1.3",
|
|
43
43
|
"@types/lodash": "^4.14.172",
|
|
44
44
|
"@umijs/test": "^3.0.5",
|