@szjy/workflow 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +87379 -87206
- package/dist/index.umd.js +858 -858
- package/dist/packages/components/Hello/component.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/constant.d.ts +3 -1
- package/dist/packages/components/Workflow/biz-logic/leave/index.d.ts +18 -0
- package/dist/packages/components/Workflow/biz-logic/leave/leave-end/index.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/leave-end/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/reform/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/reform/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/reform/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/approvalUtil.d.ts +1 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/endUtil.d.ts +3 -0
- package/dist/packages/components/Workflow/component.d.ts +2 -0
- package/dist/packages/components/Workflow/exposeApi.d.ts +14 -0
- package/dist/packages/components/Workflow/index.vue.d.ts +12 -1
- package/dist/packages/components/Workflow/main.vue.d.ts +20 -1
- package/dist/packages/components/Workflow/palette/CustomPaletteProvider.d.ts +18 -0
- package/dist/packages/components/Workflow/xml.d.ts +1 -1
- package/dist/packages/components/components.d.ts +2 -0
- package/dist/packages/components/contants.d.ts +2 -0
- package/dist/packages/components/create.d.ts +13 -0
- package/dist/packages/components/installer.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/dist/packages/components/Workflow/biz-logic/leave/approval/util.d.ts +0 -10
- package/dist/packages/components/index.d.ts +0 -4
@@ -8,8 +8,10 @@ export declare const ELE_GET_MULTI_USER = "GET_MULTI_USER";
|
|
8
8
|
export declare const ELE_GET_SUPERVISORY_ORG = "GET_SUPERVISORY_ORG";
|
9
9
|
export declare const ELE_COUNTER_SIGN = "COUNTER_SIGN";
|
10
10
|
export declare const ELE_APPROVAL = "APPROVAL";
|
11
|
+
export declare const ELE_REFORM = "REFORM";
|
11
12
|
export declare const ELE_LEAVE_GATEWAY = "LEAVE_GATEWAY";
|
12
13
|
export declare const ELE_SET_WORK_STATUS = "SET_WORK_STATUS";
|
14
|
+
export declare const ELE_LEAVE_END = "LEAVE_END";
|
13
15
|
export declare const GET_USER_TYPES: {
|
14
16
|
CREATOR: string;
|
15
17
|
USER_ID: string;
|
@@ -24,7 +26,7 @@ export declare const GET_USER_TYPES_OPTIONS: {
|
|
24
26
|
}[];
|
25
27
|
export declare const GET_ORG_TYPES: {
|
26
28
|
ORG_ID: string;
|
27
|
-
|
29
|
+
GET_ORG_TASK_OUTPUT: string;
|
28
30
|
UNKNOWN: string;
|
29
31
|
};
|
30
32
|
export declare const GET_ORG_TYPES_OPTIONS: {
|
@@ -3,6 +3,15 @@ import type ElementFactory from 'diagram-js/lib/core/ElementFactory';
|
|
3
3
|
import type { Element } from 'bpmn-js/lib/model/Types';
|
4
4
|
import type { DefineComponent } from 'vue';
|
5
5
|
export declare const getBizPaletteEntries: (create: Create, elementFactory: ElementFactory) => {
|
6
|
+
"leave-end": {
|
7
|
+
group: string;
|
8
|
+
title: string;
|
9
|
+
imageUrl: any;
|
10
|
+
action: {
|
11
|
+
click: (event: any) => void;
|
12
|
+
dragstart: (event: any) => void;
|
13
|
+
};
|
14
|
+
};
|
6
15
|
"set-workflow-status": {
|
7
16
|
group: string;
|
8
17
|
title: string;
|
@@ -21,6 +30,15 @@ export declare const getBizPaletteEntries: (create: Create, elementFactory: Elem
|
|
21
30
|
dragstart: (event: any) => void;
|
22
31
|
};
|
23
32
|
};
|
33
|
+
"reform-user": {
|
34
|
+
group: string;
|
35
|
+
title: string;
|
36
|
+
imageUrl: any;
|
37
|
+
action: {
|
38
|
+
click: (event: any) => void;
|
39
|
+
dragstart: (event: any) => void;
|
40
|
+
};
|
41
|
+
};
|
24
42
|
"approval-user": {
|
25
43
|
group: string;
|
26
44
|
title: string;
|
@@ -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 leaveEndPaletteEntries: (create: Create, elementFactory: ElementFactory) => {
|
4
|
+
"leave-end": {
|
5
|
+
group: string;
|
6
|
+
title: string;
|
7
|
+
imageUrl: any;
|
8
|
+
action: {
|
9
|
+
click: (event: any) => void;
|
10
|
+
dragstart: (event: any) => void;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
};
|
@@ -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 reformPaletteEntries: (create: Create, elementFactory: ElementFactory) => {
|
4
|
+
"reform-user": {
|
5
|
+
group: string;
|
6
|
+
title: string;
|
7
|
+
imageUrl: any;
|
8
|
+
action: {
|
9
|
+
click: (event: any) => void;
|
10
|
+
dragstart: (event: any) => void;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
};
|
@@ -2,5 +2,6 @@ import type { Element } from 'bpmn-js/lib/model/Types';
|
|
2
2
|
import type { UserJSON } from '../types';
|
3
3
|
export declare const addTaskListenerItem: (element: Element, event: string, expression: string, fields?: FieldPropertyForm[]) => void;
|
4
4
|
export declare const initApprovalItems: (element: Element) => void;
|
5
|
+
export declare const initReformItems: (element: Element) => void;
|
5
6
|
export declare const getUserValue: (element: Element) => any;
|
6
7
|
export declare const updateUserValue: (element: Element, userJson: Partial<UserJSON>) => void;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export declare const getWorkflowXml: () => Promise<string | undefined>;
|
2
|
+
export declare function getPermissionJSON(): {
|
3
|
+
createFieldPermission: {
|
4
|
+
assigneeFieldPermissionMap: {
|
5
|
+
[key: string]: "EDITABLE" | "READ_ONLY" | "HIDDEN";
|
6
|
+
};
|
7
|
+
othersFieldPermissionMap: {
|
8
|
+
[key: string]: "EDITABLE" | "READ_ONLY" | "HIDDEN";
|
9
|
+
};
|
10
|
+
};
|
11
|
+
taskToFieldPermissionMap: any;
|
12
|
+
};
|
13
|
+
export declare function initXmlToStore(xml: string): Promise<void>;
|
14
|
+
export declare function updateProcessId(processId: string): void;
|
@@ -1,2 +1,13 @@
|
|
1
|
-
|
1
|
+
import { getPermissionJSON, initXmlToStore, updateProcessId } from "./exposeApi";
|
2
|
+
import BpmnModeler from 'bpmn-js/lib/Modeler.js';
|
3
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
4
|
+
getWorkflowXml: () => Promise<string | undefined>;
|
5
|
+
getPermissionJSON: typeof getPermissionJSON;
|
6
|
+
initXmlToStore: typeof initXmlToStore;
|
7
|
+
updateProcessId: typeof updateProcessId;
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
9
|
+
init: (modeler: BpmnModeler) => void;
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
11
|
+
onInit?: ((modeler: BpmnModeler) => any) | undefined;
|
12
|
+
}, {}, {}>;
|
2
13
|
export default _default;
|
@@ -1,6 +1,25 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import BpmnModeler from 'bpmn-js/lib/Modeler.js';
|
3
|
+
import 'bpmn-js/dist/assets/diagram-js.css';
|
1
4
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css';
|
2
5
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css';
|
3
6
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css';
|
4
7
|
import 'bpmn-js-properties-panel/dist/assets/properties-panel.css';
|
5
|
-
declare const _default: import("vue").DefineComponent<{
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
9
|
+
label: {
|
10
|
+
type: PropType<string>;
|
11
|
+
default: string;
|
12
|
+
};
|
13
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
14
|
+
"modeler-init": (modeler: BpmnModeler) => void;
|
15
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
16
|
+
label: {
|
17
|
+
type: PropType<string>;
|
18
|
+
default: string;
|
19
|
+
};
|
20
|
+
}>> & {
|
21
|
+
"onModeler-init"?: ((modeler: BpmnModeler) => any) | undefined;
|
22
|
+
}, {
|
23
|
+
label: string;
|
24
|
+
}, {}>;
|
6
25
|
export default _default;
|
@@ -14,6 +14,15 @@ export default class CustomPaletteProvider extends PaletteProvider {
|
|
14
14
|
translate: (template: string, replacements?: TranslateReplacements | undefined) => string;
|
15
15
|
constructor(create: Create, elementFactory: ElementFactory<Connection, Label, Root, Shape>, globalConnect: GlobalConnect, handTool: HandTool, lassoTool: LassoTool, palette: Palette, spaceTool: BpmnSpaceTool, translate: (template: string, replacements?: TranslateReplacements | undefined) => string);
|
16
16
|
getPaletteEntries(): import("diagram-js/lib/features/palette/PaletteProvider").PaletteEntries & {
|
17
|
+
"leave-end": {
|
18
|
+
group: string;
|
19
|
+
title: string;
|
20
|
+
imageUrl: any;
|
21
|
+
action: {
|
22
|
+
click: (event: any) => void;
|
23
|
+
dragstart: (event: any) => void;
|
24
|
+
};
|
25
|
+
};
|
17
26
|
"set-workflow-status": {
|
18
27
|
group: string;
|
19
28
|
title: string;
|
@@ -32,6 +41,15 @@ export default class CustomPaletteProvider extends PaletteProvider {
|
|
32
41
|
dragstart: (event: any) => void;
|
33
42
|
};
|
34
43
|
};
|
44
|
+
"reform-user": {
|
45
|
+
group: string;
|
46
|
+
title: string;
|
47
|
+
imageUrl: any;
|
48
|
+
action: {
|
49
|
+
click: (event: any) => void;
|
50
|
+
dragstart: (event: any) => void;
|
51
|
+
};
|
52
|
+
};
|
35
53
|
"approval-user": {
|
36
54
|
group: string;
|
37
55
|
title: string;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const xmlStr = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" \n xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" \n xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" \n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n id=\"sid-38422fae-e03e-43a3-bef4-bd33b32041b2\" \n targetNamespace=\"http://bpmn.io/bpmn\" \n exporter=\"bpmn-js (https://demo.bpmn.io)\" \n exporterVersion=\"5.1.2\">\n <process id=\"Process_1\" name=\"\" isExecutable=\"
|
1
|
+
export declare const xmlStr = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" \n xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" \n xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" \n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n id=\"sid-38422fae-e03e-43a3-bef4-bd33b32041b2\" \n targetNamespace=\"http://bpmn.io/bpmn\" \n exporter=\"bpmn-js (https://demo.bpmn.io)\" \n exporterVersion=\"5.1.2\">\n <process id=\"Process_1\" name=\"\" isExecutable=\"true\">\n <startEvent id=\"StartEvent_1y45yut\" name=\"\u5F00\u59CB\" />\n </process>\n <bpmndi:BPMNDiagram id=\"BpmnDiagram_1\">\n <bpmndi:BPMNPlane id=\"BpmnPlane_1\" bpmnElement=\"Process_1\">\n <bpmndi:BPMNShape id=\"StartEvent_1y45yut_di\" bpmnElement=\"StartEvent_1y45yut\">\n <omgdc:Bounds x=\"152\" y=\"102\" width=\"36\" height=\"36\" />\n <bpmndi:BPMNLabel>\n <omgdc:Bounds x=\"160\" y=\"145\" width=\"22\" height=\"14\" />\n </bpmndi:BPMNLabel>\n </bpmndi:BPMNShape>\n </bpmndi:BPMNPlane>\n </bpmndi:BPMNDiagram>\n </definitions>";
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { type App } from 'vue';
|
2
|
+
type ComponentType = any;
|
3
|
+
export interface SZInstance {
|
4
|
+
version: string;
|
5
|
+
componentPrefix: string;
|
6
|
+
install: (app: App) => void;
|
7
|
+
}
|
8
|
+
interface SZCreateOptions {
|
9
|
+
components?: ComponentType[];
|
10
|
+
componentPrefix?: string;
|
11
|
+
}
|
12
|
+
declare function create({ componentPrefix, components }?: SZCreateOptions): SZInstance;
|
13
|
+
export default create;
|