@szjy/workflow 0.1.22 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -23,6 +23,7 @@ export type CounterSignConditionJSON = {
23
23
  orgBased: boolean;
24
24
  minApprovedPerOrg: number;
25
25
  maxRejectedPerOrg: number;
26
+ needAllApproved: boolean;
26
27
  };
27
28
  export type ConditionJSON = {
28
29
  conditionType: GATEWAY_CONDITION_KEYS;
@@ -4,7 +4,7 @@ export declare const addTaskListenerItem: (element: Element, event: string, expr
4
4
  export declare const initApprovalItems: (element: Element) => void;
5
5
  export declare const initSignReceiptItems: (element: Element) => void;
6
6
  export declare const initReformItems: (element: Element) => void;
7
- export declare const getUserValue: (element: Element) => any;
7
+ export declare const getUserValue: (element: Element) => UserJSON;
8
8
  export declare const updateUserValue: (element: Element, userJson: Partial<UserJSON>) => void;
9
9
  export declare const KEY_ADD_TO_AFTER_REFORM_TASK = "addToMyCompleteAfterReformTask";
10
10
  export declare const getReformTaskFieldValue: (element: Element) => boolean;
@@ -8,6 +8,7 @@ export declare const DEFAULT_COMPLETE_CONDITION: {
8
8
  orgBased: boolean;
9
9
  minApprovedPerOrg: number;
10
10
  maxRejectedPerOrg: number;
11
+ needAllApproved: boolean;
11
12
  };
12
13
  export declare const initCounterSignrItems: (element: Element) => void;
13
14
  export declare const initMultiSignReceiptItems: (element: Element) => void;
@@ -1,4 +1,5 @@
1
1
  import { FieldItemType, FieldPermissionConfigMapNode, PermissionJSONLike } from "./store/permission/constants";
2
+ import { EsignJSONLike } from './store/esign';
2
3
  export declare const getWorkflowXml: () => Promise<string | undefined>;
3
4
  export declare function initXmlToStore(xml: string): Promise<void>;
4
5
  export declare function updateProcessId(processId: string): void;
@@ -8,3 +9,10 @@ export declare function getPermissionJSON(): {
8
9
  };
9
10
  export declare function setPermissionByFields(permissonJSON: PermissionJSONLike, fields: FieldItemType[]): void;
10
11
  export declare function updatePermFields(fields: FieldItemType[]): void;
12
+ export declare function getEsignJSON(): {
13
+ initEsignConfig: {};
14
+ taskToEsignConfigMap: {
15
+ [key: string]: import("./store/esign").EsignConfig;
16
+ };
17
+ };
18
+ export declare function setEsignConfig(esignJSON: EsignJSONLike): void;
@@ -1,4 +1,4 @@
1
- import { getPermissionJSON, initXmlToStore, updateProcessId, setPermissionByFields, updatePermFields } from "./exposeApi";
1
+ import { getPermissionJSON, initXmlToStore, updateProcessId, setPermissionByFields, updatePermFields, getEsignJSON, setEsignConfig } from "./exposeApi";
2
2
  import BpmnModeler from 'bpmn-js/lib/Modeler.js';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  mode: {
@@ -16,6 +16,8 @@ declare const _default: import("vue").DefineComponent<{
16
16
  getPermissionJSON: typeof getPermissionJSON;
17
17
  setPermissionByFields: typeof setPermissionByFields;
18
18
  updatePermFields: typeof updatePermFields;
19
+ getEsignJSON: typeof getEsignJSON;
20
+ setEsignConfig: typeof setEsignConfig;
19
21
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
22
  init: (modeler: BpmnModeler) => void;
21
23
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -0,0 +1,53 @@
1
+ export type EsignConfig = {
2
+ needSign?: boolean;
3
+ needSeal?: boolean;
4
+ };
5
+ type TaskIdMapEsignConfig = {
6
+ [key: string]: EsignConfig;
7
+ };
8
+ declare const EDITABLE_KEY = "taskToEsignConfigMap";
9
+ export type EsignJSONLike = {
10
+ [EDITABLE_KEY]?: TaskIdMapEsignConfig;
11
+ [key: string]: any;
12
+ };
13
+ declare const useEsignStore: import("pinia").StoreDefinition<"esign", import("pinia")._UnwrapAll<Pick<{
14
+ allTaskEsignMap: import("vue").Ref<TaskIdMapEsignConfig>;
15
+ curNodeId: import("vue").Ref<string>;
16
+ setCurNodeId: (id?: string) => void;
17
+ setTaskConfig: (id?: string, config?: EsignConfig) => void;
18
+ curTaskMap: import("vue").ComputedRef<any>;
19
+ getTaskConfig: (id?: string) => EsignConfig;
20
+ updateEsingConfig: (newConfig?: EsignConfig) => void;
21
+ getEsignJSON: () => {
22
+ initEsignConfig: {};
23
+ taskToEsignConfigMap: TaskIdMapEsignConfig;
24
+ };
25
+ initFromEsignJSON: (json: EsignJSONLike) => void;
26
+ }, "curNodeId" | "allTaskEsignMap">>, Pick<{
27
+ allTaskEsignMap: import("vue").Ref<TaskIdMapEsignConfig>;
28
+ curNodeId: import("vue").Ref<string>;
29
+ setCurNodeId: (id?: string) => void;
30
+ setTaskConfig: (id?: string, config?: EsignConfig) => void;
31
+ curTaskMap: import("vue").ComputedRef<any>;
32
+ getTaskConfig: (id?: string) => EsignConfig;
33
+ updateEsingConfig: (newConfig?: EsignConfig) => void;
34
+ getEsignJSON: () => {
35
+ initEsignConfig: {};
36
+ taskToEsignConfigMap: TaskIdMapEsignConfig;
37
+ };
38
+ initFromEsignJSON: (json: EsignJSONLike) => void;
39
+ }, "curTaskMap">, Pick<{
40
+ allTaskEsignMap: import("vue").Ref<TaskIdMapEsignConfig>;
41
+ curNodeId: import("vue").Ref<string>;
42
+ setCurNodeId: (id?: string) => void;
43
+ setTaskConfig: (id?: string, config?: EsignConfig) => void;
44
+ curTaskMap: import("vue").ComputedRef<any>;
45
+ getTaskConfig: (id?: string) => EsignConfig;
46
+ updateEsingConfig: (newConfig?: EsignConfig) => void;
47
+ getEsignJSON: () => {
48
+ initEsignConfig: {};
49
+ taskToEsignConfigMap: TaskIdMapEsignConfig;
50
+ };
51
+ initFromEsignJSON: (json: EsignJSONLike) => void;
52
+ }, "setCurNodeId" | "setTaskConfig" | "getTaskConfig" | "updateEsingConfig" | "getEsignJSON" | "initFromEsignJSON">>;
53
+ export default useEsignStore;