@szjy/workflow 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.mjs +21016 -20913
- package/dist/index.umd.js +192 -192
- package/dist/packages/components/Workflow/biz-logic/leave/carbon-copy/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/carbon-copy/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/carbon-copy/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/constant.d.ts +26 -0
- package/dist/packages/components/Workflow/biz-logic/leave/index.d.ts +9 -0
- package/dist/packages/components/Workflow/biz-logic/leave/types.d.ts +12 -1
- package/dist/packages/components/Workflow/biz-logic/leave/utils/counterSignUtil.d.ts +1 -1
- package/dist/packages/components/Workflow/biz-logic/leave/utils/userUtil.d.ts +1 -0
- package/dist/packages/components/Workflow/components/biz/ui/UserForm.vue.d.ts +26 -0
- package/dist/packages/components/Workflow/components/biz/ui/UserJSONDesc.vue.d.ts +22 -0
- package/dist/packages/components/Workflow/components/biz/ui/UserSearchInfo.vue.d.ts +35 -0
- package/dist/packages/components/Workflow/palette/CustomPaletteProvider.d.ts +9 -0
- package/dist/packages/components/contants.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -0,0 +1,13 @@
|
|
1
|
+
import type Create from 'diagram-js/lib/features/create/Create';
|
2
|
+
import type ElementFactory from 'diagram-js/lib/core/ElementFactory';
|
3
|
+
export declare const carbonCopyPaletteEntries: (create: Create, elementFactory: ElementFactory) => {
|
4
|
+
"carbon-copy": {
|
5
|
+
group: string;
|
6
|
+
title: string;
|
7
|
+
imageUrl: any;
|
8
|
+
action: {
|
9
|
+
click: (event: any) => void;
|
10
|
+
dragstart: (event: any) => void;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
};
|
@@ -12,21 +12,47 @@ export declare const ELE_MULTI_SIGN_RECEIPT = "MULTI_SIGN_RECEIPT";
|
|
12
12
|
export declare const ELE_APPROVAL = "APPROVAL";
|
13
13
|
export declare const ELE_SIGN_RECEIPT = "SIGN_RECEIPT";
|
14
14
|
export declare const ELE_REFORM = "REFORM";
|
15
|
+
export declare const ELE_CARBON_COPY = "CARBON_COPY";
|
15
16
|
export declare const ELE_LEAVE_GATEWAY = "LEAVE_GATEWAY";
|
16
17
|
export declare const ELE_SET_WORK_STATUS = "SET_WORK_STATUS";
|
17
18
|
export declare const ELE_LEAVE_END = "LEAVE_END";
|
18
19
|
export declare const GET_USER_TYPES: {
|
19
20
|
CREATOR: string;
|
20
21
|
USER_ID: string;
|
22
|
+
USER_ID_LIST: string;
|
21
23
|
FORM_FIELD: string;
|
22
24
|
GET_SINGLE_USER: string;
|
23
25
|
GET_MULTI_USERS: string;
|
26
|
+
CREATOR_RELATED: string;
|
24
27
|
UNKNOWN: string;
|
25
28
|
};
|
26
29
|
export declare const GET_USER_TYPES_OPTIONS: {
|
27
30
|
label: string;
|
28
31
|
value: string;
|
29
32
|
}[];
|
33
|
+
export declare const USER_WITH_CREATOR_RES_TYPES_OPTIONS: any;
|
34
|
+
export declare enum SearchType {
|
35
|
+
SEARCH_WITH_COMPANY_AND_TITLE = "SEARCH_WITH_COMPANY_AND_TITLE"
|
36
|
+
}
|
37
|
+
export declare enum SearchWithCompanyType {
|
38
|
+
SELF_ORG = "SELF_ORG",// 本单位
|
39
|
+
CONSTRUCTION_ORG = "CONSTRUCTION_ORG",// 施工单位
|
40
|
+
SUPERVISORY_ORG = "SUPERVISORY_ORG",// 监理单位
|
41
|
+
BUILD_ORG = "BUILD_ORG"
|
42
|
+
}
|
43
|
+
export declare const getLabelByComponyType: (type: SearchWithCompanyType) => "" | "本单位" | "施工单位" | "监理单位" | "建设单位";
|
44
|
+
export declare const SEARCH_WITH_COMPANY_TYPE_OPTIONS: {
|
45
|
+
label: string;
|
46
|
+
value: SearchWithCompanyType;
|
47
|
+
}[];
|
48
|
+
export declare const DEFAULT_USER_SEARCH_INFO: {
|
49
|
+
enabled: boolean;
|
50
|
+
searchType: SearchType;
|
51
|
+
searchWithCompanyAndTitleinfo: {
|
52
|
+
searchWithCompanyType: SearchWithCompanyType;
|
53
|
+
titleList: never[];
|
54
|
+
};
|
55
|
+
};
|
30
56
|
export declare const GET_ORG_TYPES: {
|
31
57
|
ORG_ID: string;
|
32
58
|
GET_ORG_TASK_OUTPUT: string;
|
@@ -30,6 +30,15 @@ export declare const getBizPaletteEntries: (create: Create, elementFactory: Elem
|
|
30
30
|
dragstart: (event: any) => void;
|
31
31
|
};
|
32
32
|
};
|
33
|
+
"carbon-copy": {
|
34
|
+
group: string;
|
35
|
+
title: string;
|
36
|
+
imageUrl: any;
|
37
|
+
action: {
|
38
|
+
click: (event: any) => void;
|
39
|
+
dragstart: (event: any) => void;
|
40
|
+
};
|
41
|
+
};
|
33
42
|
"reform-user": {
|
34
43
|
group: string;
|
35
44
|
title: string;
|
@@ -1,9 +1,11 @@
|
|
1
|
-
import type { CONDITION_OPT_KEYS, CONDITION_VALUE_KEYS, GATEWAY_CONDITION_KEYS, WORKFLOW_STATUS_TYPES } from "./constant";
|
1
|
+
import type { CONDITION_OPT_KEYS, CONDITION_VALUE_KEYS, GATEWAY_CONDITION_KEYS, SearchType, SearchWithCompanyType, WORKFLOW_STATUS_TYPES } from "./constant";
|
2
2
|
export type UserJSON = {
|
3
3
|
userIdType: string;
|
4
4
|
userId: string;
|
5
5
|
outputTaskDefKey: string;
|
6
|
+
userIdList?: string[];
|
6
7
|
formFieldId?: string;
|
8
|
+
userSearchInfo?: UserSearchInfoType;
|
7
9
|
};
|
8
10
|
export type JobTitleJSON = {
|
9
11
|
titleListType: string;
|
@@ -41,3 +43,12 @@ export type ConditionValueJSON = {
|
|
41
43
|
taskOutputKey?: string;
|
42
44
|
};
|
43
45
|
export type WorkflowStatusType = keyof typeof WORKFLOW_STATUS_TYPES;
|
46
|
+
export type SearchWithCompanyAndTitleInfo = {
|
47
|
+
searchWithCompanyType: SearchWithCompanyType;
|
48
|
+
titleList: string[];
|
49
|
+
};
|
50
|
+
export type UserSearchInfoType = {
|
51
|
+
enabled: boolean;
|
52
|
+
searchType: SearchType;
|
53
|
+
searchWithCompanyAndTitleinfo: SearchWithCompanyAndTitleInfo;
|
54
|
+
};
|
@@ -8,7 +8,7 @@ export declare const DEFAULT_COMPLETE_CONDITION: {
|
|
8
8
|
};
|
9
9
|
export declare const initCounterSignrItems: (element: Element) => void;
|
10
10
|
export declare const initMultiSignReceiptItems: (element: Element) => void;
|
11
|
-
export declare const getUserValue: (element: Element) =>
|
11
|
+
export declare const getUserValue: (element: Element) => UserJSON;
|
12
12
|
export declare const updateUserValue: (element: Element, userJson: Partial<UserJSON>) => void;
|
13
13
|
export declare const getConditionValue: (element: Element) => any;
|
14
14
|
export declare const updateConditionValue: (element: Element, conditionJson: CounterSignConditionJSON, isUpdateListener?: boolean) => void;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { Element } from 'bpmn-js/lib/model/Types';
|
2
2
|
import type { UserJSON } from '../types';
|
3
3
|
export declare const USER_ID_KEY = "userId";
|
4
|
+
export declare const filterUserJson: (userJson: Partial<UserJSON>) => Partial<UserJSON>;
|
4
5
|
export declare const getFieldContent: (userJson: Partial<UserJSON>) => {
|
5
6
|
name: string;
|
6
7
|
type: string;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { UserJSON } from '../../../biz-logic/leave/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
user: {
|
5
|
+
type: PropType<UserJSON>;
|
6
|
+
default: {
|
7
|
+
userIdType: string;
|
8
|
+
userId: string;
|
9
|
+
};
|
10
|
+
};
|
11
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
12
|
+
"update:user": (user: UserJSON) => void;
|
13
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
user: {
|
15
|
+
type: PropType<UserJSON>;
|
16
|
+
default: {
|
17
|
+
userIdType: string;
|
18
|
+
userId: string;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
}>> & {
|
22
|
+
"onUpdate:user"?: ((user: UserJSON) => any) | undefined;
|
23
|
+
}, {
|
24
|
+
user: UserJSON;
|
25
|
+
}, {}>;
|
26
|
+
export default _default;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { UserJSON } from '../../../biz-logic/leave/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
userJson: {
|
5
|
+
type: PropType<UserJSON>;
|
6
|
+
default: {
|
7
|
+
userIdType: string;
|
8
|
+
userId: string;
|
9
|
+
};
|
10
|
+
};
|
11
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
12
|
+
userJson: {
|
13
|
+
type: PropType<UserJSON>;
|
14
|
+
default: {
|
15
|
+
userIdType: string;
|
16
|
+
userId: string;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
}>>, {
|
20
|
+
userJson: UserJSON;
|
21
|
+
}, {}>;
|
22
|
+
export default _default;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { UserSearchInfoType } from '../../../biz-logic/leave/types';
|
3
|
+
import { SearchType, SearchWithCompanyType } from '../../../biz-logic/leave/constant';
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
5
|
+
searchInfo: {
|
6
|
+
type: PropType<UserSearchInfoType>;
|
7
|
+
default: {
|
8
|
+
enabled: boolean;
|
9
|
+
searchType: SearchType;
|
10
|
+
searchWithCompanyAndTitleinfo: {
|
11
|
+
searchWithCompanyType: SearchWithCompanyType;
|
12
|
+
titleList: never[];
|
13
|
+
};
|
14
|
+
};
|
15
|
+
};
|
16
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
17
|
+
"update:searchInfo": (searchInfo: UserSearchInfoType) => void;
|
18
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
19
|
+
searchInfo: {
|
20
|
+
type: PropType<UserSearchInfoType>;
|
21
|
+
default: {
|
22
|
+
enabled: boolean;
|
23
|
+
searchType: SearchType;
|
24
|
+
searchWithCompanyAndTitleinfo: {
|
25
|
+
searchWithCompanyType: SearchWithCompanyType;
|
26
|
+
titleList: never[];
|
27
|
+
};
|
28
|
+
};
|
29
|
+
};
|
30
|
+
}>> & {
|
31
|
+
"onUpdate:searchInfo"?: ((searchInfo: UserSearchInfoType) => any) | undefined;
|
32
|
+
}, {
|
33
|
+
searchInfo: UserSearchInfoType;
|
34
|
+
}, {}>;
|
35
|
+
export default _default;
|
@@ -41,6 +41,15 @@ export default class CustomPaletteProvider extends PaletteProvider {
|
|
41
41
|
dragstart: (event: any) => void;
|
42
42
|
};
|
43
43
|
};
|
44
|
+
"carbon-copy": {
|
45
|
+
group: string;
|
46
|
+
title: string;
|
47
|
+
imageUrl: any;
|
48
|
+
action: {
|
49
|
+
click: (event: any) => void;
|
50
|
+
dragstart: (event: any) => void;
|
51
|
+
};
|
52
|
+
};
|
44
53
|
"reform-user": {
|
45
54
|
group: string;
|
46
55
|
title: string;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const VERSION
|
1
|
+
export declare const VERSION: any;
|
2
2
|
export declare const COMP_PREFIX = "Sz";
|