@fickou/quasar-workflow 1.0.0
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/LICENSE +21 -0
- package/README.md +535 -0
- package/dist/composables/useWorkflow.d.ts +108 -0
- package/dist/composables/useWorkflow.js +183 -0
- package/dist/composables/useWorkflow.js.map +1 -0
- package/dist/composables/useWorkflowAdmin.d.ts +51 -0
- package/dist/composables/useWorkflowAdmin.js +140 -0
- package/dist/composables/useWorkflowAdmin.js.map +1 -0
- package/dist/composables/useWorkflowDashboard.d.ts +72 -0
- package/dist/composables/useWorkflowDashboard.js +40 -0
- package/dist/composables/useWorkflowDashboard.js.map +1 -0
- package/dist/composables/useWorkflowDelegation.d.ts +76 -0
- package/dist/composables/useWorkflowDelegation.js +87 -0
- package/dist/composables/useWorkflowDelegation.js.map +1 -0
- package/dist/composables/useWorkflowFieldControl.d.ts +19 -0
- package/dist/composables/useWorkflowFieldControl.js +111 -0
- package/dist/composables/useWorkflowFieldControl.js.map +1 -0
- package/dist/composables/useWorkflowStats.d.ts +21 -0
- package/dist/composables/useWorkflowStats.js +87 -0
- package/dist/composables/useWorkflowStats.js.map +1 -0
- package/dist/composables/useWorkflowWebSocket.d.ts +26 -0
- package/dist/composables/useWorkflowWebSocket.js +140 -0
- package/dist/composables/useWorkflowWebSocket.js.map +1 -0
- package/dist/directives/vWorkflowField.d.ts +2 -0
- package/dist/directives/vWorkflowField.js +59 -0
- package/dist/directives/vWorkflowField.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/plugins/WorkflowPlugin.d.ts +6 -0
- package/dist/plugins/WorkflowPlugin.js +36 -0
- package/dist/plugins/WorkflowPlugin.js.map +1 -0
- package/dist/types/index.d.ts +47 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type FieldState = 'editable' | 'readonly' | 'disabled';
|
|
2
|
+
export type FormMode = 'create' | 'view' | 'edit' | 'correction' | 'locked' | 'suspended';
|
|
3
|
+
export type StepType = 'standard' | 'fork' | 'join';
|
|
4
|
+
export type DelegationScope = 'global' | 'workflow' | 'step';
|
|
5
|
+
export type WorkflowStatus = 'pending' | 'in_progress' | 'correction_pending' | 'suspended' | 'completed' | 'cancelled' | 'rejected';
|
|
6
|
+
export type WorkflowAction = 'approve' | 'reject_previous' | 'reject_start' | 'reject_cancel' | 'request_correction' | 'transfer' | 'suspend';
|
|
7
|
+
export interface ActionPayload {
|
|
8
|
+
version: number;
|
|
9
|
+
reason?: string;
|
|
10
|
+
changes?: Record<string, unknown>;
|
|
11
|
+
target_step_id?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface WorkflowStepDTO {
|
|
14
|
+
id: string;
|
|
15
|
+
order: number;
|
|
16
|
+
step_type: StepType;
|
|
17
|
+
validation_threshold: number;
|
|
18
|
+
name: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
editable_fields?: string[];
|
|
21
|
+
}
|
|
22
|
+
export interface WorkflowDefinitionDTO {
|
|
23
|
+
id: string;
|
|
24
|
+
entity_type: string;
|
|
25
|
+
auto_start: boolean;
|
|
26
|
+
steps: WorkflowStepDTO[];
|
|
27
|
+
}
|
|
28
|
+
export interface WorkflowInstanceDTO {
|
|
29
|
+
id: string;
|
|
30
|
+
entity_type: string;
|
|
31
|
+
entity_id: string;
|
|
32
|
+
status: WorkflowStatus;
|
|
33
|
+
ever_started: boolean;
|
|
34
|
+
snapshot_id: string;
|
|
35
|
+
steps: WorkflowInstanceStepDTO[];
|
|
36
|
+
snapshot?: {
|
|
37
|
+
snapshot_data: WorkflowDefinitionDTO;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface WorkflowInstanceStepDTO {
|
|
41
|
+
id: string;
|
|
42
|
+
instance_id: string;
|
|
43
|
+
step_id: string;
|
|
44
|
+
status: 'pending' | 'active' | 'completed' | 'skipped' | 'rejected';
|
|
45
|
+
validation_count: number;
|
|
46
|
+
version: number;
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA,qBAAqB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fickou/quasar-workflow",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Workflow components and composables for Quasar v2 / Vue 3",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md",
|
|
11
|
+
"LICENSE"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"require": "./dist/index.js",
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc",
|
|
22
|
+
"prepublishOnly": "npm run build"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"quasar",
|
|
26
|
+
"vue",
|
|
27
|
+
"vue3",
|
|
28
|
+
"workflow",
|
|
29
|
+
"erp",
|
|
30
|
+
"approval",
|
|
31
|
+
"bpm",
|
|
32
|
+
"composables",
|
|
33
|
+
"typescript"
|
|
34
|
+
],
|
|
35
|
+
"author": {
|
|
36
|
+
"name": "fickou",
|
|
37
|
+
"url": "https://github.com/fickou"
|
|
38
|
+
},
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "https://github.com/fickou/quasar-workflow.git"
|
|
43
|
+
},
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/fickou/quasar-workflow/issues"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/fickou/quasar-workflow#readme",
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"vue": "^3.2.0",
|
|
50
|
+
"quasar": "^2.6.0",
|
|
51
|
+
"axios": "^1.0.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@quasar/extras": "^1.0.0",
|
|
55
|
+
"quasar": "^2.16.0",
|
|
56
|
+
"vue": "^3.4.21",
|
|
57
|
+
"typescript": "^5.0.0",
|
|
58
|
+
"axios": "^1.6.8"
|
|
59
|
+
},
|
|
60
|
+
"publishConfig": {
|
|
61
|
+
"access": "public"
|
|
62
|
+
}
|
|
63
|
+
}
|