beta-glozic-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/README.md +70 -0
- package/dist/component/TaskPalette/TaskPalette.css +105 -0
- package/dist/component/TaskPalette/TaskPalette.js +104 -0
- package/dist/component/TaskPalette/index.js +10 -0
- package/dist/component/TaskPaletteGroup/TaskPaletteGroup.css +85 -0
- package/dist/component/TaskPaletteGroup/TaskPaletteGroup.js +71 -0
- package/dist/component/TaskPaletteGroup/index.js +10 -0
- package/dist/css/style.css +363 -0
- package/dist/index.css +0 -0
- package/dist/index.js +2040 -0
- package/dist/nodeconfig.js +50 -0
- package/dist/utils/Designer.module.js +202 -0
- package/dist/utils/taskConfig.js +330 -0
- package/dist/utils/workflow.config.js +176 -0
- package/package.json +58 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.config = void 0;
|
|
7
|
+
var _propTypes = require("prop-types");
|
|
8
|
+
var _taskConfig = require("./taskConfig");
|
|
9
|
+
const config = {
|
|
10
|
+
MAXIMUM_NESTED: 5,
|
|
11
|
+
logger: true,
|
|
12
|
+
nodeGap: 60,
|
|
13
|
+
nodeStartEndSize: 35,
|
|
14
|
+
nodeWidthDefault: 160,
|
|
15
|
+
nodeSizeDefault: 44,
|
|
16
|
+
tabs: [{
|
|
17
|
+
id: 'workflowSetting',
|
|
18
|
+
title: 'Workflow Settings'
|
|
19
|
+
}, {
|
|
20
|
+
id: 'workflowDesigner',
|
|
21
|
+
title: 'Workflow Designer',
|
|
22
|
+
active: true
|
|
23
|
+
}],
|
|
24
|
+
SPECIAL_END_NODE: 'special_end_node',
|
|
25
|
+
taskType: _taskConfig.taskConfig,
|
|
26
|
+
renameFormSchema: {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["name"],
|
|
29
|
+
"title": "Rename",
|
|
30
|
+
"properties": {
|
|
31
|
+
"name": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"title": "Name"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
SAVE_FLOWCHART_API: 'https://app.opus272.com/api/workflow',
|
|
38
|
+
LOAD_FLOWCHART_API: 'https://app.opus272.com/api/workflow',
|
|
39
|
+
workflowSettingSchema: {
|
|
40
|
+
schema: {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"required": ['workflowName', 'workflowType', 'isActive', 'version'],
|
|
43
|
+
"title": "Workflow Setting",
|
|
44
|
+
"properties": {
|
|
45
|
+
"workflowName": {
|
|
46
|
+
type: 'string',
|
|
47
|
+
title: 'Name'
|
|
48
|
+
},
|
|
49
|
+
"workflowDescription": {
|
|
50
|
+
type: 'string',
|
|
51
|
+
title: 'Description'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
uiSchema: {
|
|
56
|
+
"workflowDescription": {
|
|
57
|
+
"ui:widget": "textarea"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
workflowVariable: {
|
|
62
|
+
schema: {
|
|
63
|
+
"title": "Variables",
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"name": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"title": "Name"
|
|
69
|
+
},
|
|
70
|
+
"type": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"title": "Type",
|
|
73
|
+
"enum": ["string", "number", "boolean", "object", "array"],
|
|
74
|
+
"enumNames": ["String", "Number", "Boolean", "Object", "Array"],
|
|
75
|
+
"default": "string"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"required": ["name", "type"],
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"type": {
|
|
81
|
+
"oneOf": [{
|
|
82
|
+
"properties": {
|
|
83
|
+
"type": {
|
|
84
|
+
"enum": ["string"]
|
|
85
|
+
},
|
|
86
|
+
"defaultValueString": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"title": "Default value (string)"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
"properties": {
|
|
93
|
+
"type": {
|
|
94
|
+
"enum": ["number"]
|
|
95
|
+
},
|
|
96
|
+
"defaultValueNumber": {
|
|
97
|
+
"type": "number",
|
|
98
|
+
"title": "Default value (number)"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
"properties": {
|
|
103
|
+
"type": {
|
|
104
|
+
"enum": ["boolean"]
|
|
105
|
+
},
|
|
106
|
+
"defaultValueBoolean": {
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"title": "Default value (boolean)"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
"properties": {
|
|
113
|
+
"type": {
|
|
114
|
+
"enum": ["object"]
|
|
115
|
+
},
|
|
116
|
+
"defaultValueObject": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"title": "Default value (Object)",
|
|
119
|
+
"default": "{}"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}, {
|
|
123
|
+
"properties": {
|
|
124
|
+
"type": {
|
|
125
|
+
"enum": ["array"]
|
|
126
|
+
},
|
|
127
|
+
"defaultValueArray": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"title": "Default value (Array)",
|
|
130
|
+
"default": "[]"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
uiSchema: {
|
|
138
|
+
"defaultValueBoolean": {
|
|
139
|
+
"ui:widget": "radio"
|
|
140
|
+
},
|
|
141
|
+
"defaultValueObject": {
|
|
142
|
+
"ui:widget": "textarea"
|
|
143
|
+
},
|
|
144
|
+
"defaultValueArray": {
|
|
145
|
+
"ui:widget": "textarea"
|
|
146
|
+
}
|
|
147
|
+
/*"dependencies": {
|
|
148
|
+
"type": {
|
|
149
|
+
"oneOf": [
|
|
150
|
+
{
|
|
151
|
+
"properties": {
|
|
152
|
+
"type": {
|
|
153
|
+
"enum": ["boolen"]
|
|
154
|
+
},
|
|
155
|
+
"defaultValue": {
|
|
156
|
+
"ui:widget": "radio"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"properties": {
|
|
162
|
+
"type": {
|
|
163
|
+
"enum": ["string"]
|
|
164
|
+
},
|
|
165
|
+
"defaultValue": {
|
|
166
|
+
"ui:widget": "textarea"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
}*/
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
exports.config = config;
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "beta-glozic-workflow",
|
|
3
|
+
"description": "Two test React components",
|
|
4
|
+
"author": "K.K.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"components",
|
|
8
|
+
"ui"
|
|
9
|
+
],
|
|
10
|
+
"version": "1.0.0",
|
|
11
|
+
"private": false,
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"module": "dist/index.js",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"dagre": "^0.8.5",
|
|
20
|
+
"jquery": "^3.6.0",
|
|
21
|
+
"jsplumb": "^2.15.6",
|
|
22
|
+
"react": "^17.0.2",
|
|
23
|
+
"react-dom": "^17.0.2",
|
|
24
|
+
"react-scripts": "5.0.0",
|
|
25
|
+
"reactstrap": "^9.1.5",
|
|
26
|
+
"sass": "^1.56.1"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"start": "react-scripts start",
|
|
30
|
+
"build": "rm -rf dist && set NODE_ENV=production && babel src/lib --out-dir dist --copy-files",
|
|
31
|
+
"test": "react-scripts test",
|
|
32
|
+
"eject": "react-scripts eject"
|
|
33
|
+
},
|
|
34
|
+
"eslintConfig": {
|
|
35
|
+
"extends": [
|
|
36
|
+
"react-app",
|
|
37
|
+
"react-app/jest"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"browserslist": {
|
|
41
|
+
"production": [
|
|
42
|
+
">0.2%",
|
|
43
|
+
"not dead",
|
|
44
|
+
"not op_mini all"
|
|
45
|
+
],
|
|
46
|
+
"development": [
|
|
47
|
+
"last 1 chrome version",
|
|
48
|
+
"last 1 firefox version",
|
|
49
|
+
"last 1 safari version"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@babel/polyfill": "^7.12.1",
|
|
54
|
+
"@babel/cli": "^7.19.3",
|
|
55
|
+
"@babel/core": "^7.20.2",
|
|
56
|
+
"@babel/preset-env": "^7.20.2"
|
|
57
|
+
}
|
|
58
|
+
}
|