@szjy/workflow 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ import SZHello from "./index.vue";
2
+ export { SZHello };
@@ -0,0 +1,2 @@
1
+ import SZWorkflow from "./index.vue";
2
+ export { SZWorkflow };
@@ -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
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
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<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
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;
@@ -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=\"false\">\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>";
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,2 @@
1
+ export * from './Hello/component';
2
+ export * from './Workflow/component';
@@ -0,0 +1,2 @@
1
+ export declare const VERSION = "0.1.2";
2
+ export declare const COMP_PREFIX = "Sz";
@@ -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;
@@ -1,4 +1,5 @@
1
1
  import { App } from "vue";
2
2
  import 'virtual:svg-icons-register';
3
+ export declare const commonInstall: (app: App) => void;
3
4
  declare const installer: (app: App) => void;
4
5
  export default installer;