@szjy/workflow 0.1.19 → 0.1.21
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.mjs +23181 -23006
- package/dist/index.umd.js +204 -204
- package/dist/packages/components/Workflow/biz-logic/leave/common/UserConfigProperty.vue.d.ts +7 -2
- package/dist/packages/components/Workflow/biz-logic/leave/common/slots.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/constant.d.ts +12 -1
- package/dist/packages/components/Workflow/biz-logic/leave/types.d.ts +11 -1
- package/dist/packages/components/Workflow/biz-logic/leave/utils/approvalUtil.d.ts +3 -0
- package/dist/packages/components/Workflow/components/biz/UserSelector.vue.d.ts +7 -2
- package/dist/packages/components/Workflow/components/biz/slots.d.ts +6 -0
- package/dist/packages/components/Workflow/components/biz/ui/UserSearchWithRole.vue.d.ts +35 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/packages/components/Workflow/biz-logic/leave/common/UserConfigProperty.vue.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type PropType } from 'vue';
|
2
2
|
import type { Element } from 'bpmn-js/lib/model/Types';
|
3
3
|
import { type UserJSON } from '../types';
|
4
|
-
declare const _default: import("vue").DefineComponent<{
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
5
5
|
label: {
|
6
6
|
type: PropType<string>;
|
7
7
|
default: string;
|
@@ -40,5 +40,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
showOrgBased: boolean;
|
41
41
|
getUserValue: (element: Element) => UserJSON;
|
42
42
|
updateUserValue: (element: Element, newUser: UserJSON) => void;
|
43
|
-
}, {}
|
43
|
+
}, {}>, Partial<Record<string, (_: {}) => any>> & Partial<Record<string, (_: {}) => any>>>;
|
44
44
|
export default _default;
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
46
|
+
new (): {
|
47
|
+
$slots: S;
|
48
|
+
};
|
49
|
+
};
|
@@ -25,6 +25,7 @@ export declare const GET_USER_TYPES: {
|
|
25
25
|
GET_SINGLE_USER: string;
|
26
26
|
GET_MULTI_USERS: string;
|
27
27
|
CREATOR_RELATED: string;
|
28
|
+
CREATOR_ORG_ROLE_RELATED: string;
|
28
29
|
UNKNOWN: string;
|
29
30
|
};
|
30
31
|
export declare const GET_USER_TYPES_OPTIONS: {
|
@@ -35,7 +36,8 @@ export declare const USER_WITH_CREATOR_RES_TYPES_OPTIONS: any;
|
|
35
36
|
export declare const USER_WITH_ORG_BASED_TYPES_OPTIONS: any;
|
36
37
|
export declare enum SearchType {
|
37
38
|
SEARCH_WITH_COMPANY_AND_TITLE = "SEARCH_WITH_COMPANY_AND_TITLE",
|
38
|
-
SEARCH_WITH_TITLE = "SEARCH_WITH_TITLE"
|
39
|
+
SEARCH_WITH_TITLE = "SEARCH_WITH_TITLE",
|
40
|
+
SEARCH_WITH_COMPANY_AND_ROLE_NAME = "SEARCH_WITH_COMPANY_AND_ROLE_NAME"
|
39
41
|
}
|
40
42
|
export declare enum SearchWithCompanyType {
|
41
43
|
SELF_ORG = "SELF_ORG",// 本单位
|
@@ -56,6 +58,14 @@ export declare const DEFAULT_USER_SEARCH_INFO: {
|
|
56
58
|
titleList: never[];
|
57
59
|
};
|
58
60
|
};
|
61
|
+
export declare const DEFAULT_USER_SEARCH_WITH_ROLE: {
|
62
|
+
enabled: boolean;
|
63
|
+
searchType: SearchType;
|
64
|
+
searchWithCompanyAndRoleNameInfo: {
|
65
|
+
searchWithCompanyType: SearchWithCompanyType;
|
66
|
+
roleNameList: never[];
|
67
|
+
};
|
68
|
+
};
|
59
69
|
export declare const DEFAULT_ORG_SEARCH_INFO: {
|
60
70
|
enabled: boolean;
|
61
71
|
searchType: SearchType;
|
@@ -111,6 +121,7 @@ export declare const CONDITION_VALUE_TYPES: {
|
|
111
121
|
TASK_OUTPUT: string;
|
112
122
|
STRING_LIST: string;
|
113
123
|
CREATOR: string;
|
124
|
+
CREATOR_COMPANY_SECTION_NAME: string;
|
114
125
|
};
|
115
126
|
export type CONDITION_VALUE_KEYS = keyof typeof CONDITION_VALUE_TYPES;
|
116
127
|
export declare const CONDITION_VALUE_TYPES_OPTIONS: {
|
@@ -5,7 +5,7 @@ export type UserJSON = {
|
|
5
5
|
outputTaskDefKey: string;
|
6
6
|
userIdList?: string[];
|
7
7
|
formFieldId?: string;
|
8
|
-
userSearchInfo?: UserSearchInfoType;
|
8
|
+
userSearchInfo?: UserSearchInfoType | UserSearchWithRoleType;
|
9
9
|
orgSearchInfo?: OrgSearchInfoType;
|
10
10
|
};
|
11
11
|
export type JobTitleJSON = {
|
@@ -28,6 +28,7 @@ export type ConditionJSON = {
|
|
28
28
|
conditionType: GATEWAY_CONDITION_KEYS;
|
29
29
|
approveCondition: Partial<ApproveConditionJSON>;
|
30
30
|
operatorCondition: OperatorConditionJSON;
|
31
|
+
additionalPendingTaskType?: string;
|
31
32
|
};
|
32
33
|
export type ApproveConditionJSON = {
|
33
34
|
approveTaskDefKey: string;
|
@@ -51,11 +52,20 @@ export type SearchWithCompanyAndTitleInfo = {
|
|
51
52
|
searchWithCompanyType: SearchWithCompanyType;
|
52
53
|
titleList: string[];
|
53
54
|
};
|
55
|
+
export type SearchWithCompanyAndRoleNameInfo = {
|
56
|
+
searchWithCompanyType: SearchWithCompanyType;
|
57
|
+
roleNameList: string[];
|
58
|
+
};
|
54
59
|
export type UserSearchInfoType = {
|
55
60
|
enabled: boolean;
|
56
61
|
searchType: SearchType;
|
57
62
|
searchWithCompanyAndTitleinfo: SearchWithCompanyAndTitleInfo;
|
58
63
|
};
|
64
|
+
export type UserSearchWithRoleType = {
|
65
|
+
enabled: boolean;
|
66
|
+
searchType: SearchType;
|
67
|
+
searchWithCompanyAndRoleNameInfo: SearchWithCompanyAndRoleNameInfo;
|
68
|
+
};
|
59
69
|
export type SearchWithTitleInfo = {
|
60
70
|
titleList: string[];
|
61
71
|
};
|
@@ -6,3 +6,6 @@ export declare const initSignReceiptItems: (element: Element) => void;
|
|
6
6
|
export declare const initReformItems: (element: Element) => void;
|
7
7
|
export declare const getUserValue: (element: Element) => any;
|
8
8
|
export declare const updateUserValue: (element: Element, userJson: Partial<UserJSON>) => void;
|
9
|
+
export declare const KEY_ADD_TO_AFTER_REFORM_TASK = "addToMyCompleteAfterReformTask";
|
10
|
+
export declare const getReformTaskFieldValue: (element: Element) => boolean;
|
11
|
+
export declare const updateReformTaskListener: (element: Element, isAdd: boolean, isUpdateListener?: boolean) => void;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PropType } from 'vue';
|
2
2
|
import { type UserJSON } from '../../biz-logic/leave/types';
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
4
4
|
user: {
|
5
5
|
type: PropType<UserJSON>;
|
6
6
|
required: true;
|
@@ -44,5 +44,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
44
44
|
label: string;
|
45
45
|
dialogTitle: string;
|
46
46
|
showOrgBased: boolean;
|
47
|
-
}, {}
|
47
|
+
}, {}>, Partial<Record<string, (_: {}) => any>>>;
|
48
48
|
export default _default;
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
50
|
+
new (): {
|
51
|
+
$slots: S;
|
52
|
+
};
|
53
|
+
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { UserSearchWithRoleType } from '../../../biz-logic/leave/types';
|
3
|
+
import { SearchWithCompanyType } from '../../../biz-logic/leave/constant';
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
5
|
+
searchInfo: {
|
6
|
+
type: PropType<UserSearchWithRoleType>;
|
7
|
+
default: {
|
8
|
+
enabled: boolean;
|
9
|
+
searchType: import("../../../biz-logic/leave/constant").SearchType;
|
10
|
+
searchWithCompanyAndRoleNameInfo: {
|
11
|
+
searchWithCompanyType: SearchWithCompanyType;
|
12
|
+
roleNameList: never[];
|
13
|
+
};
|
14
|
+
};
|
15
|
+
};
|
16
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
17
|
+
"update:searchInfo": (searchInfo: UserSearchWithRoleType) => void;
|
18
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
19
|
+
searchInfo: {
|
20
|
+
type: PropType<UserSearchWithRoleType>;
|
21
|
+
default: {
|
22
|
+
enabled: boolean;
|
23
|
+
searchType: import("../../../biz-logic/leave/constant").SearchType;
|
24
|
+
searchWithCompanyAndRoleNameInfo: {
|
25
|
+
searchWithCompanyType: SearchWithCompanyType;
|
26
|
+
roleNameList: never[];
|
27
|
+
};
|
28
|
+
};
|
29
|
+
};
|
30
|
+
}>> & {
|
31
|
+
"onUpdate:searchInfo"?: ((searchInfo: UserSearchWithRoleType) => any) | undefined;
|
32
|
+
}, {
|
33
|
+
searchInfo: UserSearchWithRoleType;
|
34
|
+
}, {}>;
|
35
|
+
export default _default;
|