@szjy/workflow 0.1.33 → 0.1.36
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.d.ts +2 -0
- package/dist/index.mjs +32142 -31136
- package/dist/index.umd.js +314 -314
- package/dist/packages/components/Workflow/biz-logic/leave/constant.d.ts +36 -0
- package/dist/packages/components/Workflow/biz-logic/leave/types.d.ts +9 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/dynamicApproverUtil.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/formFieldExtractorRegistry.d.ts +12 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/workflowMetaUtil.d.ts +15 -0
- package/dist/packages/components/Workflow/exposeApi.d.ts +4 -0
- package/dist/packages/components/Workflow/slots.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +49 -49
- package/dist/packages/components/Hello/index.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/index.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementAsyncContinuations.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementCandidateStarter.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementConditional.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementDocumentations.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementExtensionProperties.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementFieldInjection.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementFormType.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementGenerations.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementImplementation.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementJobExecution.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementListeners.vue.d.ts +0 -14
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementMultiInstance.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementStartInitiator.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementUserAssignment.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/ui/FieldList.vue.d.ts +0 -36
- package/dist/packages/components/Workflow/PropertyPanel/ui/HasEdit.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/PropertyPanel/ui/JsonEditor.vue.d.ts +0 -14
- package/dist/packages/components/Workflow/Toolbar.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/esign/FormEsignProperty.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/form-cell/FormAssociatedProperty.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/form-permissions/FormPermissionProperty.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/approval/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/carbon-copy/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/common/CounterSignProperty.vue.d.ts +0 -24
- package/dist/packages/components/Workflow/biz-logic/leave/common/GatewayLineProperty.vue.d.ts +0 -35
- package/dist/packages/components/Workflow/biz-logic/leave/common/OrgTitleConfigProperty.vue.d.ts +0 -24
- package/dist/packages/components/Workflow/biz-logic/leave/common/UserConfigProperty.vue.d.ts +0 -49
- package/dist/packages/components/Workflow/biz-logic/leave/common/WorkflowStatusProperty.vue.d.ts +0 -15
- package/dist/packages/components/Workflow/biz-logic/leave/counter-sign/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/get-company/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/get-construction-org/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/get-multi-user/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/get-single-user/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/get-supervisory-org/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/get-user-info/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/leave-gateway/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/multi-sign-receipt/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/reform/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/set-work-status/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/biz-logic/leave/sign-receipt/property.vue.d.ts +0 -2
- package/dist/packages/components/Workflow/components/biz/ConditionValueCreator.vue.d.ts +0 -28
- package/dist/packages/components/Workflow/components/biz/CounterSignSelector.vue.d.ts +0 -58
- package/dist/packages/components/Workflow/components/biz/GatewayConditionSelector.vue.d.ts +0 -39
- package/dist/packages/components/Workflow/components/biz/OrgTitleSelector.vue.d.ts +0 -67
- package/dist/packages/components/Workflow/components/biz/UserSelector.vue.d.ts +0 -53
- package/dist/packages/components/Workflow/components/biz/ui/CompanySearchWithRole.vue.d.ts +0 -35
- package/dist/packages/components/Workflow/components/biz/ui/CounterSignConditionDesc.vue.d.ts +0 -14
- package/dist/packages/components/Workflow/components/biz/ui/FormOrgWithRole.vue.d.ts +0 -39
- package/dist/packages/components/Workflow/components/biz/ui/OrgSearchInfo.vue.d.ts +0 -32
- package/dist/packages/components/Workflow/components/biz/ui/UserForm.vue.d.ts +0 -26
- package/dist/packages/components/Workflow/components/biz/ui/UserJSONDesc.vue.d.ts +0 -22
- package/dist/packages/components/Workflow/components/biz/ui/UserOrgBasedForm.vue.d.ts +0 -26
- package/dist/packages/components/Workflow/components/biz/ui/UserSearchInfo.vue.d.ts +0 -39
- package/dist/packages/components/Workflow/components/biz/ui/UserSearchWithRole.vue.d.ts +0 -39
- package/dist/packages/components/Workflow/components/common/BpmnIcon.vue.d.ts +0 -23
- package/dist/packages/components/Workflow/components/common/CollapseTitle.vue.d.ts +0 -14
- package/dist/packages/components/Workflow/components/common/EditItem.vue.d.ts +0 -39
- package/dist/packages/components/Workflow/index.vue.d.ts +0 -41
- package/dist/packages/components/Workflow/main.vue.d.ts +0 -43
- package/dist/packages/components/Workflow/palette/CustomPaletteProvider.d.ts +0 -157
- package/dist/packages/components/Workflow/store/bpmn-utils/idUtil.d.ts +0 -3
- package/dist/packages/components/Workflow/store/cell-associated/index.d.ts +0 -37
- package/dist/packages/components/Workflow/store/esign/index.d.ts +0 -54
- package/dist/packages/components/Workflow/store/instance.d.ts +0 -1
- package/dist/packages/components/Workflow/store/modeler.d.ts +0 -72
- package/dist/packages/components/Workflow/store/permission/index.d.ts +0 -42
- package/dist/packages/components/Workflow/utils/discreteApi.d.ts +0 -2
- package/dist/packages/components/Workflow/utils/emitter.d.ts +0 -8
- package/dist/packages/i18n/index.d.ts +0 -790
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ElementLike } from "diagram-js/lib/model/Types";
|
|
2
2
|
import type { ConditionJSON, ConditionValueJSON } from "./types";
|
|
3
3
|
export declare const ELE_PROP_KEY = "__bizType";
|
|
4
|
+
export declare const ELE_PROP_DYNAMIC_APPROVER = "__dynamicApproverEnabled";
|
|
4
5
|
export declare const ELE_GET_COMPANY = "GET_COMPANY";
|
|
5
6
|
export declare const ELE_GET_USER_INFO = "GET_USER_INFO";
|
|
6
7
|
export declare const ELE_GET_SINGLE_USER = "GET_SINGLE_USER";
|
|
@@ -127,6 +128,7 @@ export declare const getNodesOfOrgOptions: (idType: string) => any[];
|
|
|
127
128
|
export declare const GATEWAY_CONDITION_TYPES: {
|
|
128
129
|
APPROVE: "APPROVE";
|
|
129
130
|
OPERATOR: "OPERATOR";
|
|
131
|
+
GROUP: "GROUP";
|
|
130
132
|
};
|
|
131
133
|
export type GATEWAY_CONDITION_KEYS = keyof typeof GATEWAY_CONDITION_TYPES;
|
|
132
134
|
export declare const GATEWAY_CONDITION_TYPES_OPTIONS: ({
|
|
@@ -136,9 +138,31 @@ export declare const GATEWAY_CONDITION_TYPES_OPTIONS: ({
|
|
|
136
138
|
label: string;
|
|
137
139
|
value: "APPROVE";
|
|
138
140
|
})[];
|
|
141
|
+
export declare const LOGIC_TYPES: {
|
|
142
|
+
AND: "AND";
|
|
143
|
+
OR: "OR";
|
|
144
|
+
NOT: "NOT";
|
|
145
|
+
};
|
|
146
|
+
export type LOGIC_TYPE_KEYS = keyof typeof LOGIC_TYPES;
|
|
147
|
+
export declare const LOGIC_TYPES_OPTIONS: ({
|
|
148
|
+
label: string;
|
|
149
|
+
value: "AND";
|
|
150
|
+
} | {
|
|
151
|
+
label: string;
|
|
152
|
+
value: "OR";
|
|
153
|
+
} | {
|
|
154
|
+
label: string;
|
|
155
|
+
value: "NOT";
|
|
156
|
+
})[];
|
|
139
157
|
export declare const CONDITION_OPT_TYPES: {
|
|
140
158
|
EQ: string;
|
|
159
|
+
NOT_EQ: string;
|
|
141
160
|
IN: string;
|
|
161
|
+
NOT_IN: string;
|
|
162
|
+
LT: string;
|
|
163
|
+
LTE: string;
|
|
164
|
+
GT: string;
|
|
165
|
+
GTE: string;
|
|
142
166
|
};
|
|
143
167
|
export type CONDITION_OPT_KEYS = keyof typeof CONDITION_OPT_TYPES;
|
|
144
168
|
export declare const CONDITION_OPT_TYPES_OPTIONS: {
|
|
@@ -149,16 +173,28 @@ export declare const CONDITION_VALUE_TYPES: {
|
|
|
149
173
|
EMPTY: string;
|
|
150
174
|
STRING: string;
|
|
151
175
|
NUMBER: string;
|
|
176
|
+
DATE: string;
|
|
152
177
|
TASK_OUTPUT: string;
|
|
153
178
|
STRING_LIST: string;
|
|
179
|
+
INT_LIST: string;
|
|
154
180
|
CREATOR: string;
|
|
155
181
|
CREATOR_COMPANY_SECTION_NAME: string;
|
|
182
|
+
FORM_FIELD: string;
|
|
183
|
+
CREATOR_ORG: string;
|
|
156
184
|
};
|
|
157
185
|
export type CONDITION_VALUE_KEYS = keyof typeof CONDITION_VALUE_TYPES;
|
|
158
186
|
export declare const CONDITION_VALUE_TYPES_OPTIONS: {
|
|
159
187
|
label: string;
|
|
160
188
|
value: string;
|
|
161
189
|
}[];
|
|
190
|
+
export declare const CONDITION_VALUE_TYPES_LEFT_OPTIONS: {
|
|
191
|
+
label: string;
|
|
192
|
+
value: string;
|
|
193
|
+
}[];
|
|
194
|
+
export declare const CONDITION_VALUE_TYPES_RIGHT_OPTIONS: {
|
|
195
|
+
label: string;
|
|
196
|
+
value: string;
|
|
197
|
+
}[];
|
|
162
198
|
export declare const getLabelByValue: (value: string, options: any[]) => any;
|
|
163
199
|
export declare const getConditionValuePreviewText: (valueJson: Partial<ConditionValueJSON>) => string;
|
|
164
200
|
export declare const getConditionPreviewText: (conditionJson: ConditionJSON) => string;
|
|
@@ -25,10 +25,15 @@ export type CounterSignConditionJSON = {
|
|
|
25
25
|
maxRejectedPerOrg: number;
|
|
26
26
|
needAllApproved: boolean;
|
|
27
27
|
};
|
|
28
|
+
export type GroupConditionJSON = {
|
|
29
|
+
logicType: 'AND' | 'OR' | 'NOT';
|
|
30
|
+
conditions: ConditionJSON[];
|
|
31
|
+
};
|
|
28
32
|
export type ConditionJSON = {
|
|
29
33
|
conditionType: GATEWAY_CONDITION_KEYS;
|
|
30
34
|
approveCondition: Partial<ApproveConditionJSON>;
|
|
31
35
|
operatorCondition: OperatorConditionJSON;
|
|
36
|
+
conditionGroup?: GroupConditionJSON;
|
|
32
37
|
additionalPendingTaskType?: string;
|
|
33
38
|
};
|
|
34
39
|
export type ApproveConditionJSON = {
|
|
@@ -44,9 +49,13 @@ export type ConditionValueJSON = {
|
|
|
44
49
|
conditionValueType: CONDITION_VALUE_KEYS;
|
|
45
50
|
stringValue?: string;
|
|
46
51
|
numberValue?: string;
|
|
52
|
+
dateValue?: string;
|
|
47
53
|
stringValueList?: string[];
|
|
48
54
|
taskDefKey?: string;
|
|
49
55
|
taskOutputKey?: string;
|
|
56
|
+
formFieldId?: string;
|
|
57
|
+
creatorOrgKey?: string;
|
|
58
|
+
intValueList?: number[];
|
|
50
59
|
};
|
|
51
60
|
export type WorkflowStatusType = keyof typeof WORKFLOW_STATUS_TYPES;
|
|
52
61
|
export type SearchWithCompanyAndTitleInfo = {
|
package/dist/packages/components/Workflow/biz-logic/leave/utils/formFieldExtractorRegistry.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Element } from 'bpmn-js/lib/model/Types';
|
|
2
|
+
export type FormFieldExtractor = (element: Element) => string[];
|
|
3
|
+
/**
|
|
4
|
+
* 注册某个 bizType 节点的 formFieldId 提取器。
|
|
5
|
+
* 在各节点模块初始化时调用,方便后续扩展。
|
|
6
|
+
*/
|
|
7
|
+
export declare function registerFormFieldExtractor(bizType: string, extractor: FormFieldExtractor): void;
|
|
8
|
+
/**
|
|
9
|
+
* 根据 bizType 提取节点中涉及的 formFieldId 列表。
|
|
10
|
+
* 若未注册提取器则返回空数组。
|
|
11
|
+
*/
|
|
12
|
+
export declare function extractFormFieldIds(element: Element, bizType: string): string[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface NodeMetaInfo {
|
|
2
|
+
/** 节点 id */
|
|
3
|
+
id: string;
|
|
4
|
+
/** 节点名称 */
|
|
5
|
+
name: string;
|
|
6
|
+
/** BPMN 元素类型,如 bpmn:UserTask */
|
|
7
|
+
bpmnType: string;
|
|
8
|
+
/** 业务节点类型,如 APPROVAL、COUNTER_SIGN */
|
|
9
|
+
bizType: string;
|
|
10
|
+
/** 是否启用动态加签 */
|
|
11
|
+
dynamicApproverEnabled: boolean;
|
|
12
|
+
/** 节点配置中涉及的表单字段 id 列表(包含 extensionProperties 中的 formId 属性) */
|
|
13
|
+
formFieldIds: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare function getWorkflowMeta(): Record<string, NodeMetaInfo>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { FieldItemType, FieldPermissionConfigMapNode, PermissionJSONLike } from "./store/permission/constants";
|
|
2
2
|
import { EsignJSONLike } from './store/esign';
|
|
3
3
|
import { CellAssociatedJSONLike } from "./store/cell-associated/constants";
|
|
4
|
+
export type { NodeMetaInfo } from './biz-logic/leave/utils/workflowMetaUtil';
|
|
4
5
|
export declare const getWorkflowXml: () => Promise<string | undefined>;
|
|
6
|
+
export declare const getWorkflowJSON: () => Promise<any>;
|
|
7
|
+
export declare const getAllBizNodes: () => Promise<any>;
|
|
5
8
|
export declare function initXmlToStore(xml: string): Promise<void>;
|
|
6
9
|
export declare function updateProcessId(processId: string): void;
|
|
7
10
|
export declare function getPermissionJSON(): {
|
|
@@ -20,3 +23,4 @@ export declare function setEsignConfig(esignJSON: EsignJSONLike): void;
|
|
|
20
23
|
export declare function getCellAssociatedJSON(): CellAssociatedJSONLike;
|
|
21
24
|
export declare function setCellAssociatedConfig(cellAssociatedJSON: CellAssociatedJSONLike, fields: FieldItemType[]): void;
|
|
22
25
|
export declare function updateCellAssociatedFields(fields: FieldItemType[]): void;
|
|
26
|
+
export declare function getWorkflowMeta(): Record<string, import("./biz-logic/leave/utils/workflowMetaUtil").NodeMetaInfo>;
|
|
@@ -3,6 +3,8 @@ export declare const SLOT_NAMES: {
|
|
|
3
3
|
readonly TOOLBAR_SUFFIX: "TOOLBAR_SUFFIX";
|
|
4
4
|
readonly USER_CHOOSER_SUFFIX: "USER_CHOOSER_SUFFIX";
|
|
5
5
|
readonly FORMID_CHOOSER_SUFFIX: "FORMID_CHOOSER_SUFFIX";
|
|
6
|
+
readonly CONDITION_FORM_FIELD_CHOOSER: "CONDITION_FORM_FIELD_CHOOSER";
|
|
7
|
+
readonly CONDITION_DEPARTMENT_CHOOSER: "CONDITION_DEPARTMENT_CHOOSER";
|
|
6
8
|
};
|
|
7
9
|
type SlotNames = keyof typeof SLOT_NAMES;
|
|
8
10
|
export declare const slotKeyName: (name: SlotNames) => string;
|