gbflowengine 0.1.0 → 0.1.1

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.
Files changed (79) hide show
  1. package/README.md +271 -271
  2. package/dist/gbflowengine.css +1 -1
  3. package/dist/gbflowengine.js +8232 -6913
  4. package/dist/gbflowengine.js.map +1 -1
  5. package/dist/gbflowengine.umd.cjs +2 -2
  6. package/dist/gbflowengine.umd.cjs.map +1 -1
  7. package/package.json +85 -84
  8. package/src/center/DefinitionInspect.vue +291 -291
  9. package/src/center/FlowCenter.vue +33 -33
  10. package/src/center/index.js +29 -29
  11. package/src/center/storage.js +748 -748
  12. package/src/core/flow/condition.js +160 -160
  13. package/src/core/flow/customNode.js +385 -385
  14. package/src/core/flow/defaults.js +124 -124
  15. package/src/core/flow/flowConstant.js +265 -265
  16. package/src/core/flow/flowNodeUtils.js +29 -29
  17. package/src/core/flow/index.js +47 -47
  18. package/src/core/flow/node.js +44 -44
  19. package/src/core/flow/nodeFactory.js +58 -58
  20. package/src/core/flow/prediction.js +325 -325
  21. package/src/core/flow/schema.js +864 -864
  22. package/src/definition/FlowDefinitionDesigner.vue +338 -338
  23. package/src/definition/index.js +9 -9
  24. package/src/index.js +39 -39
  25. package/src/storage.js +200 -200
  26. package/src/testing/FlowTestPanel.vue +2502 -2502
  27. package/src/testing/UserConfigDrawer.vue +376 -376
  28. package/src/testing/diagram/FlowProgressDiagram.vue +318 -318
  29. package/src/testing/diagramModel.js +517 -517
  30. package/src/testing/index.js +23 -23
  31. package/src/testing/mock.js +246 -246
  32. package/src/testing/oaExecutors.js +51 -51
  33. package/src/testing/oaSeed.js +467 -467
  34. package/src/testing/sample.js +412 -412
  35. package/src/testing/seed.js +122 -122
  36. package/src/utils/format.js +27 -27
  37. package/src/visual/FlowCanvas.vue +440 -440
  38. package/src/visual/NodeProgressDetail.vue +43 -43
  39. package/src/visual/NodeStatusBadge.vue +17 -17
  40. package/src/visual/NodeWrap.vue +46 -46
  41. package/src/visual/ScWorkflow.vue +49 -49
  42. package/src/visual/SelectDialog.vue +459 -459
  43. package/src/visual/conditionHelpers.js +116 -116
  44. package/src/visual/index.js +6 -6
  45. package/src/visual/nodes/AddNode.vue +222 -222
  46. package/src/visual/nodes/ApproverNode.vue +347 -347
  47. package/src/visual/nodes/BranchNode.vue +441 -441
  48. package/src/visual/nodes/CustomNode.vue +339 -339
  49. package/src/visual/nodes/EndNode.vue +21 -21
  50. package/src/visual/nodes/PassNode.vue +100 -100
  51. package/src/visual/nodes/PromoterNode.vue +134 -134
  52. package/src/visual/nodes/RejectNode.vue +100 -100
  53. package/src/visual/nodes/SendNode.vue +151 -151
  54. package/src/visual/styles.scss +879 -879
  55. package/src/visual/useScNodeStatus.js +18 -18
  56. package/src/workbench/OaWorkbench.vue +1341 -1341
  57. package/src/workbench/components/ApprovalWorkspace.vue +2090 -2090
  58. package/src/workbench/components/CategoryIcon.vue +74 -74
  59. package/src/workbench/components/NotificationIcon.vue +73 -73
  60. package/src/workbench/components/ProcessSteps.vue +557 -557
  61. package/src/workbench/components/ResubmitDialog.vue +227 -227
  62. package/src/workbench/components/SidebarNav.vue +138 -138
  63. package/src/workbench/components/StartFlowDialog.vue +1058 -1058
  64. package/src/workbench/components/UserAvatar.vue +68 -68
  65. package/src/workbench/model.js +1080 -1080
  66. package/src/workbench/pages/DesignPage.vue +798 -798
  67. package/src/workbench/pages/HomePage.vue +1050 -1050
  68. package/src/workbench/pages/MonitorPage.vue +1029 -1029
  69. package/src/workbench/pages/NotificationsPage.vue +554 -554
  70. package/src/workbench/pages/RequestsPage.vue +644 -644
  71. package/src/workbench/pages/TaskCenterPage.vue +1155 -1155
  72. package/src/workbench/pages/TemplatesPage.vue +680 -680
  73. package/src/workbench/styles.scss +555 -555
  74. package/types/center.d.ts +5 -5
  75. package/types/core.d.ts +479 -479
  76. package/types/definition.d.ts +4 -4
  77. package/types/index.d.ts +34 -34
  78. package/types/testing.d.ts +20 -20
  79. package/types/visual.d.ts +20 -20
@@ -1,4 +1,4 @@
1
- import type { DefineComponent } from 'vue'
2
-
3
- export const FlowDefinitionDesigner: DefineComponent<any, any, any>
4
- export default FlowDefinitionDesigner
1
+ import type { DefineComponent } from 'vue'
2
+
3
+ export const FlowDefinitionDesigner: DefineComponent<any, any, any>
4
+ export default FlowDefinitionDesigner
package/types/index.d.ts CHANGED
@@ -1,34 +1,34 @@
1
- import type { DefineComponent } from 'vue'
2
- import type { FlowDefinition, FlowNode, PredictionResult, RuntimeState } from './core'
3
-
4
- export * from './core'
5
-
6
- export const FlowCenter: DefineComponent<any, any, any>
7
- export const FlowTestPanel: DefineComponent<any, any, any>
8
- export const UserConfigDrawer: DefineComponent<any, any, any>
9
- export const FlowProgressDiagram: DefineComponent<any, any, any>
10
- export const FlowDefinitionDesigner: DefineComponent<any, any, any>
11
- export const ScWorkflow: DefineComponent<any, any, any>
12
- export const NodeStatusBadge: DefineComponent<any, any, any>
13
- export const NodeProgressDetail: DefineComponent<any, any, any>
14
-
15
- export function createOaDemoInstances(): any[]
16
- export function createDemoCustomExecutors(): Record<string, (context: any) => Promise<unknown> | unknown>
17
-
18
- export function buildDiagramModel(options: {
19
- workflow: FlowNode
20
- state?: RuntimeState | null
21
- prediction?: PredictionResult | null
22
- }): Record<string, any>
23
- export function pruneUnselectedBranches(
24
- workflow: FlowNode | null,
25
- statusMap?: Record<string, any>
26
- ): FlowNode | null
27
-
28
- export const version: string
29
-
30
- declare const plugin: {
31
- version: string
32
- install(app: { component: (name: string, component: any) => void }): void
33
- }
34
- export default plugin
1
+ import type { DefineComponent } from 'vue'
2
+ import type { FlowDefinition, FlowNode, PredictionResult, RuntimeState } from './core'
3
+
4
+ export * from './core'
5
+
6
+ export const FlowCenter: DefineComponent<any, any, any>
7
+ export const FlowTestPanel: DefineComponent<any, any, any>
8
+ export const UserConfigDrawer: DefineComponent<any, any, any>
9
+ export const FlowProgressDiagram: DefineComponent<any, any, any>
10
+ export const FlowDefinitionDesigner: DefineComponent<any, any, any>
11
+ export const ScWorkflow: DefineComponent<any, any, any>
12
+ export const NodeStatusBadge: DefineComponent<any, any, any>
13
+ export const NodeProgressDetail: DefineComponent<any, any, any>
14
+
15
+ export function createOaDemoInstances(): any[]
16
+ export function createDemoCustomExecutors(): Record<string, (context: any) => Promise<unknown> | unknown>
17
+
18
+ export function buildDiagramModel(options: {
19
+ workflow: FlowNode
20
+ state?: RuntimeState | null
21
+ prediction?: PredictionResult | null
22
+ }): Record<string, any>
23
+ export function pruneUnselectedBranches(
24
+ workflow: FlowNode | null,
25
+ statusMap?: Record<string, any>
26
+ ): FlowNode | null
27
+
28
+ export const version: string
29
+
30
+ declare const plugin: {
31
+ version: string
32
+ install(app: { component: (name: string, component: any) => void }): void
33
+ }
34
+ export default plugin
@@ -1,20 +1,20 @@
1
- import type { DefineComponent } from 'vue'
2
-
3
- export const FlowTestPanel: DefineComponent<any, any, any>
4
- export const UserConfigDrawer: DefineComponent<any, any, any>
5
- export const FlowProgressDiagram: DefineComponent<any, any, any>
6
- export const mockUsers: Array<Record<string, any>>
7
- export const mockDepartments: Array<Record<string, any>>
8
- export const mockRoles: Array<Record<string, any>>
9
- export function createMockAdapters(options?: Record<string, any>): Record<string, any>
10
- export function createMockRuntimeContext(options?: Record<string, any>): Record<string, any>
11
- export function createTestRuntime(options?: Record<string, any>): {
12
- runtime: import('./core').FlowRuntime
13
- context: Record<string, any>
14
- initiator: Record<string, any> | null
15
- }
16
- export function createOaDemoInstances(): Array<Record<string, any>>
17
- export function createDemoCustomExecutors(): Record<string, (context: Record<string, any>) => Promise<unknown> | unknown>
18
- export function createSampleDefinition(): import('./core').FlowDefinition
19
- export function createSampleWorkflow(): import('./core').FlowNode
20
- export function createSampleForm(): Array<Record<string, any>>
1
+ import type { DefineComponent } from 'vue'
2
+
3
+ export const FlowTestPanel: DefineComponent<any, any, any>
4
+ export const UserConfigDrawer: DefineComponent<any, any, any>
5
+ export const FlowProgressDiagram: DefineComponent<any, any, any>
6
+ export const mockUsers: Array<Record<string, any>>
7
+ export const mockDepartments: Array<Record<string, any>>
8
+ export const mockRoles: Array<Record<string, any>>
9
+ export function createMockAdapters(options?: Record<string, any>): Record<string, any>
10
+ export function createMockRuntimeContext(options?: Record<string, any>): Record<string, any>
11
+ export function createTestRuntime(options?: Record<string, any>): {
12
+ runtime: import('./core').FlowRuntime
13
+ context: Record<string, any>
14
+ initiator: Record<string, any> | null
15
+ }
16
+ export function createOaDemoInstances(): Array<Record<string, any>>
17
+ export function createDemoCustomExecutors(): Record<string, (context: Record<string, any>) => Promise<unknown> | unknown>
18
+ export function createSampleDefinition(): import('./core').FlowDefinition
19
+ export function createSampleWorkflow(): import('./core').FlowNode
20
+ export function createSampleForm(): Array<Record<string, any>>
package/types/visual.d.ts CHANGED
@@ -1,20 +1,20 @@
1
- import type { DefineComponent } from 'vue'
2
-
3
- export const ScWorkflow: DefineComponent<any, any, any>
4
- export const NodeStatusBadge: DefineComponent<any, any, any>
5
- export const NodeProgressDetail: DefineComponent<any, any, any>
6
- export function useScNodeStatus(nodeConfig: any): {
7
- statusInfo: import('vue').ComputedRef<Record<string, any> | null>
8
- statusClass: import('vue').ComputedRef<string>
9
- }
10
- export function getVariable(formVariables: any[], variableName: string): any
11
- export function getValueControl(formVariables: any[], variableName: string): string
12
- export function getVariableOptions(formVariables: any[], variableName: string): any[]
13
- export function getVariableDateFormat(formVariables: any[], variableName: string): string
14
- export function isIntegerVariable(formVariables: any[], variableName: string): boolean
15
- export function operatorLabel(operator: string): string
16
- export function operatorsForVariable(formVariables: any[], variableName: string): Array<{ value: string; label: string }>
17
- export function needsValue(operator: string): boolean
18
- export function summarizeConditions(formVariables: any[], conditions: any[]): string
19
- export function groupsFromConditions(conditions: any[]): any[][]
20
- export function conditionsFromGroups(groups: any[][]): any[]
1
+ import type { DefineComponent } from 'vue'
2
+
3
+ export const ScWorkflow: DefineComponent<any, any, any>
4
+ export const NodeStatusBadge: DefineComponent<any, any, any>
5
+ export const NodeProgressDetail: DefineComponent<any, any, any>
6
+ export function useScNodeStatus(nodeConfig: any): {
7
+ statusInfo: import('vue').ComputedRef<Record<string, any> | null>
8
+ statusClass: import('vue').ComputedRef<string>
9
+ }
10
+ export function getVariable(formVariables: any[], variableName: string): any
11
+ export function getValueControl(formVariables: any[], variableName: string): string
12
+ export function getVariableOptions(formVariables: any[], variableName: string): any[]
13
+ export function getVariableDateFormat(formVariables: any[], variableName: string): string
14
+ export function isIntegerVariable(formVariables: any[], variableName: string): boolean
15
+ export function operatorLabel(operator: string): string
16
+ export function operatorsForVariable(formVariables: any[], variableName: string): Array<{ value: string; label: string }>
17
+ export function needsValue(operator: string): boolean
18
+ export function summarizeConditions(formVariables: any[], conditions: any[]): string
19
+ export function groupsFromConditions(conditions: any[]): any[][]
20
+ export function conditionsFromGroups(groups: any[][]): any[]