@szjy/workflow 0.1.0 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +25 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +127748 -0
- package/dist/index.umd.js +4129 -95
- package/dist/packages/components/Hello/component.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/index.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementAsyncContinuations.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementCandidateStarter.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementConditional.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementDocumentations.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementExtensionProperties.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementFieldInjection.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementFormType.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementGenerations.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementHOC.d.ts +12 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementImplementation.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementJobExecution.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementListeners.vue.d.ts +14 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementMultiInstance.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementStartInitiator.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementUserAssignment.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/ui/FieldList.vue.d.ts +36 -0
- package/dist/packages/components/Workflow/PropertyPanel/ui/HasEdit.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/PropertyPanel/ui/JsonEditor.vue.d.ts +14 -0
- package/dist/packages/components/Workflow/Toolbar.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/form-permissions/FormPermissionProperty.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/form-permissions/util.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/approval/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/approval/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/approval/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/approval/util.d.ts +10 -0
- package/dist/packages/components/Workflow/biz-logic/leave/common/CounterSignProperty.vue.d.ts +15 -0
- package/dist/packages/components/Workflow/biz-logic/leave/common/GatewayLineProperty.vue.d.ts +35 -0
- package/dist/packages/components/Workflow/biz-logic/leave/common/OrgTitleConfigProperty.vue.d.ts +24 -0
- package/dist/packages/components/Workflow/biz-logic/leave/common/UserConfigProperty.vue.d.ts +35 -0
- package/dist/packages/components/Workflow/biz-logic/leave/common/WorkflowStatusProperty.vue.d.ts +15 -0
- package/dist/packages/components/Workflow/biz-logic/leave/constant.d.ts +110 -0
- package/dist/packages/components/Workflow/biz-logic/leave/counter-sign/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/counter-sign/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/counter-sign/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-company/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-company/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-company/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-multi-user/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-multi-user/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-multi-user/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-single-user/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-single-user/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-single-user/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-supervisory-org/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-supervisory-org/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-supervisory-org/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-user-info/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-user-info/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/get-user-info/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/index.d.ts +93 -0
- package/dist/packages/components/Workflow/biz-logic/leave/leave-gateway/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/leave-gateway/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/leave-gateway/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/set-work-status/index.d.ts +3 -0
- package/dist/packages/components/Workflow/biz-logic/leave/set-work-status/palette.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/set-work-status/property.vue.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/types.d.ts +42 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/approvalUtil.d.ts +6 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/counterSignUtil.d.ts +13 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/findElementUtil.d.ts +2 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/gatewayUtil.d.ts +6 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/orgUtil.d.ts +5 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/titleUtil.d.ts +5 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/userUtil.d.ts +15 -0
- package/dist/packages/components/Workflow/biz-logic/leave/utils/workStatusUtil.d.ts +5 -0
- package/dist/packages/components/Workflow/bpmn-icons/getIconType.d.ts +2 -0
- package/dist/packages/components/Workflow/bpmn-icons/index.d.ts +113 -0
- package/dist/packages/components/Workflow/component.d.ts +2 -0
- package/dist/packages/components/Workflow/components/biz/ConditionValueCreator.vue.d.ts +28 -0
- package/dist/packages/components/Workflow/components/biz/CounterSignSelector.vue.d.ts +49 -0
- package/dist/packages/components/Workflow/components/biz/GatewayConditionSelector.vue.d.ts +39 -0
- package/dist/packages/components/Workflow/components/biz/OrgTitleSelector.vue.d.ts +67 -0
- package/dist/packages/components/Workflow/components/biz/UserSelector.vue.d.ts +39 -0
- package/dist/packages/components/Workflow/components/common/BpmnIcon.vue.d.ts +23 -0
- package/dist/packages/components/Workflow/components/common/CollapseTitle.vue.d.ts +14 -0
- package/dist/packages/components/Workflow/components/common/EditItem.vue.d.ts +39 -0
- package/dist/packages/components/Workflow/contants.d.ts +31 -0
- package/dist/packages/components/Workflow/customTranslate/index.d.ts +1 -0
- package/dist/packages/components/Workflow/exposeApi.d.ts +14 -0
- package/dist/packages/components/Workflow/index.vue.d.ts +13 -0
- package/dist/packages/components/Workflow/main.vue.d.ts +25 -0
- package/dist/packages/components/Workflow/palette/CustomPalette.d.ts +13 -0
- package/dist/packages/components/Workflow/palette/CustomPaletteProvider.d.ts +103 -0
- package/dist/packages/components/Workflow/palette/index.d.ts +11 -0
- package/dist/packages/components/Workflow/palette/replaceDefault.d.ts +1 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/FieldInjectionPropertiesUtil.d.ts +10 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/asynchronousContinuationsUtil.d.ts +8 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/candidateStarter.d.ts +6 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/conditionUtil.d.ts +27 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/documentationUtil.d.ts +3 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/executionListenersUtil.d.ts +14 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/extensionPropertiesUtil.d.ts +4 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/formTypeUtil.d.ts +4 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/idUtil.d.ts +3 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/implementationUtil.d.ts +12 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/initiatorUtil.d.ts +5 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/jobExecutionUtil.d.ts +8 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/listenersUtil.d.ts +16 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/multiInstanceUtil.d.ts +8 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/nameUtil.d.ts +3 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/processUtil.d.ts +5 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/scriptUtil.d.ts +3 -0
- package/dist/packages/components/Workflow/store/bpmn-utils/userAssignmentUtil.d.ts +8 -0
- package/dist/packages/components/Workflow/store/instance.d.ts +1 -0
- package/dist/packages/components/Workflow/store/modeler.d.ts +69 -0
- package/dist/packages/components/Workflow/store/permission/constants.d.ts +41 -0
- package/dist/packages/components/Workflow/store/permission/index.d.ts +27 -0
- package/dist/packages/components/Workflow/store/useElementUpdateListener.d.ts +1 -0
- package/dist/packages/components/Workflow/types/utils.d.ts +5 -0
- package/dist/packages/components/Workflow/utils/BpmnAsyncElement.d.ts +4 -0
- package/dist/packages/components/Workflow/utils/BpmnEventDefinitionUtil.d.ts +29 -0
- package/dist/packages/components/Workflow/utils/BpmnExtensionElementsUtil.d.ts +14 -0
- package/dist/packages/components/Workflow/utils/BpmnImplementationType.d.ts +27 -0
- package/dist/packages/components/Workflow/utils/BpmnValidator.d.ts +13 -0
- package/dist/packages/components/Workflow/utils/ElementUtil.d.ts +23 -0
- package/dist/packages/components/Workflow/utils/Logger.d.ts +13 -0
- package/dist/packages/components/Workflow/utils/common.d.ts +3 -0
- package/dist/packages/components/Workflow/utils/emitter.d.ts +8 -0
- package/dist/packages/components/Workflow/utils/parseBizString.d.ts +23 -0
- package/dist/packages/components/Workflow/xml.d.ts +1 -0
- 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 +2 -0
- package/dist/packages/i18n/en_US/configForm.d.ts +33 -0
- package/dist/packages/i18n/en_US/elements/events.d.ts +49 -0
- package/dist/packages/i18n/en_US/elements/gateway.d.ts +14 -0
- package/dist/packages/i18n/en_US/elements/other.d.ts +184 -0
- package/dist/packages/i18n/en_US/elements/tasks.d.ts +28 -0
- package/dist/packages/i18n/en_US/index.d.ts +394 -0
- package/dist/packages/i18n/en_US/lint.d.ts +5 -0
- package/dist/packages/i18n/en_US/panel.d.ts +88 -0
- package/dist/packages/i18n/en_US/toolbar.d.ts +28 -0
- package/dist/packages/i18n/index.d.ts +790 -0
- package/dist/packages/i18n/zh_CN/configForm.d.ts +33 -0
- package/dist/packages/i18n/zh_CN/elements/events.d.ts +49 -0
- package/dist/packages/i18n/zh_CN/elements/gateway.d.ts +14 -0
- package/dist/packages/i18n/zh_CN/elements/other.d.ts +184 -0
- package/dist/packages/i18n/zh_CN/elements/tasks.d.ts +28 -0
- package/dist/packages/i18n/zh_CN/index.d.ts +394 -0
- package/dist/packages/i18n/zh_CN/lint.d.ts +5 -0
- package/dist/packages/i18n/zh_CN/panel.d.ts +88 -0
- package/dist/packages/i18n/zh_CN/toolbar.d.ts +28 -0
- package/dist/style.css +1 -0
- package/dist/vanilla-picker-CWMPCyEj.mjs +539 -0
- package/package.json +24 -5
- package/dist/packages/components/index.d.ts +0 -3
@@ -0,0 +1,12 @@
|
|
1
|
+
import { defineComponent } from 'vue';
|
2
|
+
declare function withElementType<T>(WrappedComponent: ReturnType<typeof defineComponent>, elementType: T): import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
3
|
+
[key: string]: any;
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
5
|
+
declare const ElementTaskListeners: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
6
|
+
[key: string]: any;
|
7
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
8
|
+
declare const ElementExecutionListeners: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
9
|
+
[key: string]: any;
|
10
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
11
|
+
export { ElementTaskListeners, ElementExecutionListeners };
|
12
|
+
export default withElementType;
|
package/dist/packages/components/Workflow/PropertyPanel/property-group/ElementListeners.vue.d.ts
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
import { type PropType } from 'vue';
|
2
|
+
import { type ListenerElementType } from '../../store/bpmn-utils/listenersUtil';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
elementType: {
|
5
|
+
type: PropType<ListenerElementType>;
|
6
|
+
required: true;
|
7
|
+
};
|
8
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
9
|
+
elementType: {
|
10
|
+
type: PropType<ListenerElementType>;
|
11
|
+
required: true;
|
12
|
+
};
|
13
|
+
}>>, {}, {}>;
|
14
|
+
export default _default;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
interface PropsType {
|
2
|
+
fields: FieldPropertyForm[];
|
3
|
+
}
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PropsType>, {
|
5
|
+
fields: () => never[];
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
7
|
+
addProperty: (newProperty: FieldPropertyForm) => void;
|
8
|
+
updateProperty: (index: number, newProperty: FieldPropertyForm) => void;
|
9
|
+
removeProperty: (propIndex: number) => void;
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PropsType>, {
|
11
|
+
fields: () => never[];
|
12
|
+
}>>> & {
|
13
|
+
onAddProperty?: ((newProperty: FieldPropertyForm) => any) | undefined;
|
14
|
+
onUpdateProperty?: ((index: number, newProperty: FieldPropertyForm) => any) | undefined;
|
15
|
+
onRemoveProperty?: ((propIndex: number) => any) | undefined;
|
16
|
+
}, {
|
17
|
+
fields: FieldPropertyForm[];
|
18
|
+
}, {}>;
|
19
|
+
export default _default;
|
20
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
21
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
22
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
23
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
24
|
+
} : {
|
25
|
+
type: import('vue').PropType<T[K]>;
|
26
|
+
required: true;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
type __VLS_WithDefaults<P, D> = {
|
30
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
31
|
+
default: D[K];
|
32
|
+
}> : P[K];
|
33
|
+
};
|
34
|
+
type __VLS_Prettify<T> = {
|
35
|
+
[K in keyof T]: T[K];
|
36
|
+
} & {};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
code: {
|
3
|
+
type: StringConstructor;
|
4
|
+
};
|
5
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
6
|
+
"update:code": (newCode: string) => void;
|
7
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
8
|
+
code: {
|
9
|
+
type: StringConstructor;
|
10
|
+
};
|
11
|
+
}>> & {
|
12
|
+
"onUpdate:code"?: ((newCode: string) => any) | undefined;
|
13
|
+
}, {}, {}>;
|
14
|
+
export default _default;
|
@@ -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 approvalPaletteEntries: (create: Create, elementFactory: ElementFactory) => {
|
4
|
+
"approval-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
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { Element } from 'bpmn-js/lib/model/Types';
|
2
|
+
export declare const addUserItem: (element: Element, { type, userId }: {
|
3
|
+
type: string;
|
4
|
+
userId: string;
|
5
|
+
}) => void;
|
6
|
+
export declare const getUserValue: (element: Element) => any;
|
7
|
+
export declare const updateUserValue: (element: Element, { type, userId }: {
|
8
|
+
type: string;
|
9
|
+
userId: string;
|
10
|
+
}) => void;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { type PropType } from 'vue';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
label: {
|
4
|
+
type: PropType<string>;
|
5
|
+
default: string;
|
6
|
+
};
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
8
|
+
label: {
|
9
|
+
type: PropType<string>;
|
10
|
+
default: string;
|
11
|
+
};
|
12
|
+
}>>, {
|
13
|
+
label: string;
|
14
|
+
}, {}>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { type PropType } from 'vue';
|
2
|
+
import type { Element } from 'bpmn-js/lib/model/Types';
|
3
|
+
import { type ConditionJSON } from '../types';
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
5
|
+
label: {
|
6
|
+
type: PropType<string>;
|
7
|
+
default: string;
|
8
|
+
};
|
9
|
+
getConditionValue: {
|
10
|
+
type: PropType<(element: Element) => ConditionJSON>;
|
11
|
+
default: (element: Element) => any;
|
12
|
+
};
|
13
|
+
updateConditionValue: {
|
14
|
+
type: PropType<(element: Element, newCondition: ConditionJSON) => void>;
|
15
|
+
default: (element: Element, conditionJson: ConditionJSON) => void;
|
16
|
+
};
|
17
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
18
|
+
label: {
|
19
|
+
type: PropType<string>;
|
20
|
+
default: string;
|
21
|
+
};
|
22
|
+
getConditionValue: {
|
23
|
+
type: PropType<(element: Element) => ConditionJSON>;
|
24
|
+
default: (element: Element) => any;
|
25
|
+
};
|
26
|
+
updateConditionValue: {
|
27
|
+
type: PropType<(element: Element, newCondition: ConditionJSON) => void>;
|
28
|
+
default: (element: Element, conditionJson: ConditionJSON) => void;
|
29
|
+
};
|
30
|
+
}>>, {
|
31
|
+
label: string;
|
32
|
+
getConditionValue: (element: Element) => ConditionJSON;
|
33
|
+
updateConditionValue: (element: Element, newCondition: ConditionJSON) => void;
|
34
|
+
}, {}>;
|
35
|
+
export default _default;
|
package/dist/packages/components/Workflow/biz-logic/leave/common/OrgTitleConfigProperty.vue.d.ts
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
import { type PropType } from 'vue';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
label: {
|
4
|
+
type: PropType<string>;
|
5
|
+
default: string;
|
6
|
+
};
|
7
|
+
disableTitle: {
|
8
|
+
type: PropType<boolean>;
|
9
|
+
default: boolean;
|
10
|
+
};
|
11
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
12
|
+
label: {
|
13
|
+
type: PropType<string>;
|
14
|
+
default: string;
|
15
|
+
};
|
16
|
+
disableTitle: {
|
17
|
+
type: PropType<boolean>;
|
18
|
+
default: boolean;
|
19
|
+
};
|
20
|
+
}>>, {
|
21
|
+
label: string;
|
22
|
+
disableTitle: boolean;
|
23
|
+
}, {}>;
|
24
|
+
export default _default;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { type PropType } from 'vue';
|
2
|
+
import type { Element } from 'bpmn-js/lib/model/Types';
|
3
|
+
import { type UserJSON } from '../types';
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
5
|
+
label: {
|
6
|
+
type: PropType<string>;
|
7
|
+
default: string;
|
8
|
+
};
|
9
|
+
getUserValue: {
|
10
|
+
type: PropType<(element: Element) => UserJSON>;
|
11
|
+
default: (element: Element) => any;
|
12
|
+
};
|
13
|
+
updateUserValue: {
|
14
|
+
type: PropType<(element: Element, newUser: UserJSON) => void>;
|
15
|
+
default: (element: Element, userJson: UserJSON) => void;
|
16
|
+
};
|
17
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
18
|
+
label: {
|
19
|
+
type: PropType<string>;
|
20
|
+
default: string;
|
21
|
+
};
|
22
|
+
getUserValue: {
|
23
|
+
type: PropType<(element: Element) => UserJSON>;
|
24
|
+
default: (element: Element) => any;
|
25
|
+
};
|
26
|
+
updateUserValue: {
|
27
|
+
type: PropType<(element: Element, newUser: UserJSON) => void>;
|
28
|
+
default: (element: Element, userJson: UserJSON) => void;
|
29
|
+
};
|
30
|
+
}>>, {
|
31
|
+
label: string;
|
32
|
+
getUserValue: (element: Element) => UserJSON;
|
33
|
+
updateUserValue: (element: Element, newUser: UserJSON) => void;
|
34
|
+
}, {}>;
|
35
|
+
export default _default;
|
package/dist/packages/components/Workflow/biz-logic/leave/common/WorkflowStatusProperty.vue.d.ts
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
import { type PropType } from 'vue';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
label: {
|
4
|
+
type: PropType<string>;
|
5
|
+
default: string;
|
6
|
+
};
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
8
|
+
label: {
|
9
|
+
type: PropType<string>;
|
10
|
+
default: string;
|
11
|
+
};
|
12
|
+
}>>, {
|
13
|
+
label: string;
|
14
|
+
}, {}>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import type { ElementLike } from "diagram-js/lib/model/Types";
|
2
|
+
import type { ConditionJSON, ConditionValueJSON } from "./types";
|
3
|
+
export declare const ELE_PROP_KEY = "__bizType";
|
4
|
+
export declare const ELE_GET_COMPANY = "GET_COMPANY";
|
5
|
+
export declare const ELE_GET_USER_INFO = "GET_USER_INFO";
|
6
|
+
export declare const ELE_GET_SINGLE_USER = "GET_SINGLE_USER";
|
7
|
+
export declare const ELE_GET_MULTI_USER = "GET_MULTI_USER";
|
8
|
+
export declare const ELE_GET_SUPERVISORY_ORG = "GET_SUPERVISORY_ORG";
|
9
|
+
export declare const ELE_COUNTER_SIGN = "COUNTER_SIGN";
|
10
|
+
export declare const ELE_APPROVAL = "APPROVAL";
|
11
|
+
export declare const ELE_LEAVE_GATEWAY = "LEAVE_GATEWAY";
|
12
|
+
export declare const ELE_SET_WORK_STATUS = "SET_WORK_STATUS";
|
13
|
+
export declare const GET_USER_TYPES: {
|
14
|
+
CREATOR: string;
|
15
|
+
USER_ID: string;
|
16
|
+
FORM_FIELD: string;
|
17
|
+
GET_SINGLE_USER: string;
|
18
|
+
GET_MULTI_USERS: string;
|
19
|
+
UNKNOWN: string;
|
20
|
+
};
|
21
|
+
export declare const GET_USER_TYPES_OPTIONS: {
|
22
|
+
label: string;
|
23
|
+
value: string;
|
24
|
+
}[];
|
25
|
+
export declare const GET_ORG_TYPES: {
|
26
|
+
ORG_ID: string;
|
27
|
+
GET_TASK_OUTPUT: string;
|
28
|
+
UNKNOWN: string;
|
29
|
+
};
|
30
|
+
export declare const GET_ORG_TYPES_OPTIONS: {
|
31
|
+
label: string;
|
32
|
+
value: string;
|
33
|
+
}[];
|
34
|
+
export declare const GET_JOB_TITLE_TYPES: {
|
35
|
+
TITLE_NAME_LIST: string;
|
36
|
+
UNKNOWN: string;
|
37
|
+
};
|
38
|
+
export declare const GET_JOB_TITLE_TYPES_OPTIONS: {
|
39
|
+
label: string;
|
40
|
+
value: string;
|
41
|
+
}[];
|
42
|
+
export declare const formatNodeOption: (node: ElementLike, extraInfo?: any) => any;
|
43
|
+
export declare const getNodesOfUserOptions: (idType: string) => any[];
|
44
|
+
export declare const getNodesOfOrgOptions: (idType: string) => any[];
|
45
|
+
export declare const GATEWAY_CONDITION_TYPES: {
|
46
|
+
APPROVE: "APPROVE";
|
47
|
+
OPERATOR: "OPERATOR";
|
48
|
+
};
|
49
|
+
export type GATEWAY_CONDITION_KEYS = keyof typeof GATEWAY_CONDITION_TYPES;
|
50
|
+
export declare const GATEWAY_CONDITION_TYPES_OPTIONS: ({
|
51
|
+
label: string;
|
52
|
+
value: "OPERATOR";
|
53
|
+
} | {
|
54
|
+
label: string;
|
55
|
+
value: "APPROVE";
|
56
|
+
})[];
|
57
|
+
export declare const CONDITION_OPT_TYPES: {
|
58
|
+
EQ: string;
|
59
|
+
IN: string;
|
60
|
+
};
|
61
|
+
export type CONDITION_OPT_KEYS = keyof typeof CONDITION_OPT_TYPES;
|
62
|
+
export declare const CONDITION_OPT_TYPES_OPTIONS: {
|
63
|
+
label: string;
|
64
|
+
value: string;
|
65
|
+
}[];
|
66
|
+
export declare const CONDITION_VALUE_TYPES: {
|
67
|
+
EMPTY: string;
|
68
|
+
STRING: string;
|
69
|
+
NUMBER: string;
|
70
|
+
TASK_OUTPUT: string;
|
71
|
+
STRING_LIST: string;
|
72
|
+
CREATOR: string;
|
73
|
+
};
|
74
|
+
export type CONDITION_VALUE_KEYS = keyof typeof CONDITION_VALUE_TYPES;
|
75
|
+
export declare const CONDITION_VALUE_TYPES_OPTIONS: {
|
76
|
+
label: string;
|
77
|
+
value: string;
|
78
|
+
}[];
|
79
|
+
export declare const getLabelByValue: (value: string, options: any[]) => any;
|
80
|
+
export declare const getConditionValuePreviewText: (valueJson: Partial<ConditionValueJSON>) => string;
|
81
|
+
export declare const getConditionPreviewText: (conditionJson: ConditionJSON) => string;
|
82
|
+
export declare const DEFAULT_CONDITION_VALUE: ConditionValueJSON;
|
83
|
+
export declare const NODE_TYPE_FOR_CONDITION_OPTIONS: {
|
84
|
+
label: string;
|
85
|
+
value: string;
|
86
|
+
}[];
|
87
|
+
export declare const OUTPUT_ATTR_FOR_COMPANY_OPTIONS: {
|
88
|
+
label: string;
|
89
|
+
value: string;
|
90
|
+
}[];
|
91
|
+
export declare const OUTPUT_ATTR_FOR_USER_INFO_OPTIONS: {
|
92
|
+
label: string;
|
93
|
+
value: string;
|
94
|
+
}[];
|
95
|
+
export declare const getNodesForConditionOptions: () => any[];
|
96
|
+
export declare const WORKFLOW_STATUS_TYPES: {
|
97
|
+
readonly COMPLETED: "COMPLETED";
|
98
|
+
readonly FAILED: "FAILED";
|
99
|
+
readonly CANCELLED: "CANCELLED";
|
100
|
+
};
|
101
|
+
export declare const WORKFLOW_STATUS_OPTIONS: ({
|
102
|
+
label: string;
|
103
|
+
value: "COMPLETED";
|
104
|
+
} | {
|
105
|
+
label: string;
|
106
|
+
value: "FAILED";
|
107
|
+
} | {
|
108
|
+
label: string;
|
109
|
+
value: "CANCELLED";
|
110
|
+
})[];
|
@@ -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 counterSignPaletteEntries: (create: Create, elementFactory: ElementFactory) => {
|
4
|
+
"counter-sign-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
|
+
};
|
@@ -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 getCompanyPaletteEntries: (create: Create, elementFactory: ElementFactory) => {
|
4
|
+
"get-company": {
|
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 getMultiUserPaletteEntries: (create: Create, elementFactory: ElementFactory) => {
|
4
|
+
"get-multi-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
|
+
};
|
@@ -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 getSingleUserPaletteEntries: (create: Create, elementFactory: ElementFactory) => {
|
4
|
+
"get-single-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
|
+
};
|
@@ -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 getSupervisoryOrgPaletteEntries: (create: Create, elementFactory: ElementFactory) => {
|
4
|
+
"get-supervisory-org": {
|
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 getUserInfomationPaletteEntries: (create: Create, elementFactory: ElementFactory) => {
|
4
|
+
"get-user-info": {
|
5
|
+
group: string;
|
6
|
+
title: string;
|
7
|
+
imageUrl: any;
|
8
|
+
action: {
|
9
|
+
click: (event: any) => void;
|
10
|
+
dragstart: (event: any) => void;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
};
|