@stackmango/graff 0.1.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 +73 -0
- package/dist/js/graff.css +1 -0
- package/dist/js/index.cjs +213 -0
- package/dist/js/index.js +43125 -0
- package/dist/js/vite.svg +1 -0
- package/dist/types/App.d.ts +1 -0
- package/dist/types/App.d.ts.map +1 -0
- package/dist/types/Document/Document.d.ts +7 -0
- package/dist/types/Document/Document.d.ts.map +1 -0
- package/dist/types/Document/index.d.ts +3 -0
- package/dist/types/Document/index.d.ts.map +1 -0
- package/dist/types/Utils/Connection.d.ts +5 -0
- package/dist/types/Utils/Connection.d.ts.map +1 -0
- package/dist/types/Utils/Draggable.d.ts +13 -0
- package/dist/types/Utils/Draggable.d.ts.map +1 -0
- package/dist/types/Utils/Form.d.ts +4 -0
- package/dist/types/Utils/Form.d.ts.map +1 -0
- package/dist/types/Utils/index.d.ts +6 -0
- package/dist/types/Utils/index.d.ts.map +1 -0
- package/dist/types/Utils/misc.d.ts +9 -0
- package/dist/types/Utils/misc.d.ts.map +1 -0
- package/dist/types/Workspace/Workspace.d.ts +4 -0
- package/dist/types/Workspace/Workspace.d.ts.map +1 -0
- package/dist/types/Workspace/index.d.ts +3 -0
- package/dist/types/Workspace/index.d.ts.map +1 -0
- package/dist/types/components/Document/Document.d.ts +7 -0
- package/dist/types/components/Document/Document.d.ts.map +1 -0
- package/dist/types/components/Document/index.d.ts +3 -0
- package/dist/types/components/Document/index.d.ts.map +1 -0
- package/dist/types/components/UIElements/Dropdown.d.ts +4 -0
- package/dist/types/components/UIElements/Dropdown.d.ts.map +1 -0
- package/dist/types/components/UIElements/Textbox.d.ts +4 -0
- package/dist/types/components/UIElements/Textbox.d.ts.map +1 -0
- package/dist/types/components/UIElements/Toggle.d.ts +4 -0
- package/dist/types/components/UIElements/Toggle.d.ts.map +1 -0
- package/dist/types/components/UIElements/index.d.ts +5 -0
- package/dist/types/components/UIElements/index.d.ts.map +1 -0
- package/dist/types/components/Utils/Connection.d.ts +5 -0
- package/dist/types/components/Utils/Connection.d.ts.map +1 -0
- package/dist/types/components/Utils/Draggable.d.ts +13 -0
- package/dist/types/components/Utils/Draggable.d.ts.map +1 -0
- package/dist/types/components/Utils/Form.d.ts +4 -0
- package/dist/types/components/Utils/Form.d.ts.map +1 -0
- package/dist/types/components/Utils/index.d.ts +6 -0
- package/dist/types/components/Utils/index.d.ts.map +1 -0
- package/dist/types/components/Utils/misc.d.ts +9 -0
- package/dist/types/components/Utils/misc.d.ts.map +1 -0
- package/dist/types/components/Workspace/Workspace.d.ts +4 -0
- package/dist/types/components/Workspace/Workspace.d.ts.map +1 -0
- package/dist/types/components/Workspace/index.d.ts +3 -0
- package/dist/types/components/Workspace/index.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +11 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/components/type.d.ts +5 -0
- package/dist/types/components/type.d.ts.map +1 -0
- package/dist/types/contexts/Formcontext.d.ts +32 -0
- package/dist/types/contexts/Formcontext.d.ts.map +1 -0
- package/dist/types/contexts/Graphcontext.d.ts +3 -0
- package/dist/types/contexts/Graphcontext.d.ts.map +1 -0
- package/dist/types/hooks/useForm.d.ts +3 -0
- package/dist/types/hooks/useForm.d.ts.map +1 -0
- package/dist/types/hooks/useGraph.d.ts +1 -0
- package/dist/types/hooks/useGraph.d.ts.map +1 -0
- package/dist/types/hooks/useWorkspace.d.ts +37 -0
- package/dist/types/hooks/useWorkspace.d.ts.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/library/Input.d.ts +77 -0
- package/dist/types/library/Input.d.ts.map +1 -0
- package/dist/types/library/JSONForms.d.ts +233 -0
- package/dist/types/library/JSONForms.d.ts.map +1 -0
- package/dist/types/library/NodeTemplates.d.ts +41 -0
- package/dist/types/library/NodeTemplates.d.ts.map +1 -0
- package/dist/types/library/coordinateSystemUtils.d.ts +29 -0
- package/dist/types/library/coordinateSystemUtils.d.ts.map +1 -0
- package/dist/types/library/form.d.ts +66 -0
- package/dist/types/library/form.d.ts.map +1 -0
- package/dist/types/library/misc.d.ts +47 -0
- package/dist/types/library/misc.d.ts.map +1 -0
- package/dist/types/library/utils.d.ts +104 -0
- package/dist/types/library/utils.d.ts.map +1 -0
- package/dist/types/library/vectorApi.d.ts +31 -0
- package/dist/types/library/vectorApi.d.ts.map +1 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/types/main.d.ts.map +1 -0
- package/dist/types/reducers/form.d.ts +14 -0
- package/dist/types/reducers/form.d.ts.map +1 -0
- package/dist/types/reducers/graph.d.ts +90 -0
- package/dist/types/reducers/graph.d.ts.map +1 -0
- package/dist/types/reducers/graph_data.d.ts +1 -0
- package/dist/types/reducers/graph_data.d.ts.map +1 -0
- package/dist/types/reducers/uiElements.d.ts +5 -0
- package/dist/types/reducers/uiElements.d.ts.map +1 -0
- package/dist/types/type.d.ts +5 -0
- package/dist/types/type.d.ts.map +1 -0
- package/dist/types/types/Dataflow.d.ts +1 -0
- package/dist/types/types/Dataflow.d.ts.map +1 -0
- package/dist/types/types/Execution.d.ts +24 -0
- package/dist/types/types/Execution.d.ts.map +1 -0
- package/dist/types/types/Form.d.ts +115 -0
- package/dist/types/types/Form.d.ts.map +1 -0
- package/dist/types/types/Schema.d.ts +23 -0
- package/dist/types/types/Schema.d.ts.map +1 -0
- package/dist/types/types/UIElements.d.ts +55 -0
- package/dist/types/types/UIElements.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +564 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
export declare const JSONForms: {
|
|
2
|
+
string: {
|
|
3
|
+
key: {
|
|
4
|
+
schema: {
|
|
5
|
+
type: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
component: string;
|
|
10
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
11
|
+
};
|
|
12
|
+
title: {
|
|
13
|
+
schema: {
|
|
14
|
+
type: string;
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
component: string;
|
|
19
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
20
|
+
};
|
|
21
|
+
description: {
|
|
22
|
+
schema: {
|
|
23
|
+
type: string;
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
component: string;
|
|
28
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
29
|
+
};
|
|
30
|
+
default: {
|
|
31
|
+
schema: {
|
|
32
|
+
type: string;
|
|
33
|
+
title: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
component: string;
|
|
37
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
38
|
+
};
|
|
39
|
+
readOnly: {
|
|
40
|
+
schema: {
|
|
41
|
+
type: string;
|
|
42
|
+
title: string;
|
|
43
|
+
};
|
|
44
|
+
component: string;
|
|
45
|
+
reducer: (state: boolean, action: import("../components").ToggleAction) => boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
number: {
|
|
49
|
+
key: {
|
|
50
|
+
schema: {
|
|
51
|
+
type: string;
|
|
52
|
+
title: string;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
component: string;
|
|
56
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
57
|
+
};
|
|
58
|
+
title: {
|
|
59
|
+
schema: {
|
|
60
|
+
type: string;
|
|
61
|
+
title: string;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
component: string;
|
|
65
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
66
|
+
};
|
|
67
|
+
description: {
|
|
68
|
+
schema: {
|
|
69
|
+
type: string;
|
|
70
|
+
title: string;
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
73
|
+
component: string;
|
|
74
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
75
|
+
};
|
|
76
|
+
default: {
|
|
77
|
+
schema: {
|
|
78
|
+
type: string;
|
|
79
|
+
title: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
component: string;
|
|
83
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
84
|
+
};
|
|
85
|
+
readOnly: {
|
|
86
|
+
schema: {
|
|
87
|
+
type: string;
|
|
88
|
+
title: string;
|
|
89
|
+
};
|
|
90
|
+
component: string;
|
|
91
|
+
reducer: (state: boolean, action: import("../components").ToggleAction) => boolean;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
boolean: {
|
|
95
|
+
key: {
|
|
96
|
+
schema: {
|
|
97
|
+
type: string;
|
|
98
|
+
title: string;
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
component: string;
|
|
102
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
103
|
+
};
|
|
104
|
+
title: {
|
|
105
|
+
schema: {
|
|
106
|
+
type: string;
|
|
107
|
+
title: string;
|
|
108
|
+
description: string;
|
|
109
|
+
};
|
|
110
|
+
component: string;
|
|
111
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
112
|
+
};
|
|
113
|
+
description: {
|
|
114
|
+
schema: {
|
|
115
|
+
type: string;
|
|
116
|
+
title: string;
|
|
117
|
+
description: string;
|
|
118
|
+
};
|
|
119
|
+
component: string;
|
|
120
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
121
|
+
};
|
|
122
|
+
default: {
|
|
123
|
+
schema: {
|
|
124
|
+
type: string;
|
|
125
|
+
title: string;
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
component: string;
|
|
129
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
130
|
+
};
|
|
131
|
+
readOnly: {
|
|
132
|
+
schema: {
|
|
133
|
+
type: string;
|
|
134
|
+
title: string;
|
|
135
|
+
};
|
|
136
|
+
component: string;
|
|
137
|
+
reducer: (state: boolean, action: import("../components").ToggleAction) => boolean;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
array: {
|
|
141
|
+
key: {
|
|
142
|
+
schema: {
|
|
143
|
+
type: string;
|
|
144
|
+
title: string;
|
|
145
|
+
description: string;
|
|
146
|
+
};
|
|
147
|
+
component: string;
|
|
148
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
149
|
+
};
|
|
150
|
+
title: {
|
|
151
|
+
schema: {
|
|
152
|
+
type: string;
|
|
153
|
+
title: string;
|
|
154
|
+
description: string;
|
|
155
|
+
};
|
|
156
|
+
component: string;
|
|
157
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
158
|
+
};
|
|
159
|
+
description: {
|
|
160
|
+
schema: {
|
|
161
|
+
type: string;
|
|
162
|
+
title: string;
|
|
163
|
+
description: string;
|
|
164
|
+
};
|
|
165
|
+
component: string;
|
|
166
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
167
|
+
};
|
|
168
|
+
default: {
|
|
169
|
+
schema: {
|
|
170
|
+
type: string;
|
|
171
|
+
title: string;
|
|
172
|
+
description: string;
|
|
173
|
+
};
|
|
174
|
+
component: string;
|
|
175
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
176
|
+
};
|
|
177
|
+
readOnly: {
|
|
178
|
+
schema: {
|
|
179
|
+
type: string;
|
|
180
|
+
title: string;
|
|
181
|
+
};
|
|
182
|
+
component: string;
|
|
183
|
+
reducer: (state: boolean, action: import("../components").ToggleAction) => boolean;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
object: {
|
|
187
|
+
key: {
|
|
188
|
+
schema: {
|
|
189
|
+
type: string;
|
|
190
|
+
title: string;
|
|
191
|
+
description: string;
|
|
192
|
+
};
|
|
193
|
+
component: string;
|
|
194
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
195
|
+
};
|
|
196
|
+
title: {
|
|
197
|
+
schema: {
|
|
198
|
+
type: string;
|
|
199
|
+
title: string;
|
|
200
|
+
description: string;
|
|
201
|
+
};
|
|
202
|
+
component: string;
|
|
203
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
204
|
+
};
|
|
205
|
+
description: {
|
|
206
|
+
schema: {
|
|
207
|
+
type: string;
|
|
208
|
+
title: string;
|
|
209
|
+
description: string;
|
|
210
|
+
};
|
|
211
|
+
component: string;
|
|
212
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
213
|
+
};
|
|
214
|
+
default: {
|
|
215
|
+
schema: {
|
|
216
|
+
type: string;
|
|
217
|
+
title: string;
|
|
218
|
+
description: string;
|
|
219
|
+
};
|
|
220
|
+
component: string;
|
|
221
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
222
|
+
};
|
|
223
|
+
readOnly: {
|
|
224
|
+
schema: {
|
|
225
|
+
type: string;
|
|
226
|
+
title: string;
|
|
227
|
+
};
|
|
228
|
+
component: string;
|
|
229
|
+
reducer: (state: boolean, action: import("../components").ToggleAction) => boolean;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
//# sourceMappingURL=JSONForms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSONForms.d.ts","sourceRoot":"","sources":["../../../src/library/JSONForms.ts"],"names":[],"mappings":"AA8UA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMrB,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Node_Execution_Type } from "../types/Execution";
|
|
2
|
+
export declare const NODE_TEMPLATES: Record<string, Node_Execution_Type>;
|
|
3
|
+
export declare const getSchemaNode: (type: string) => {
|
|
4
|
+
type: string;
|
|
5
|
+
ports: {
|
|
6
|
+
input: {
|
|
7
|
+
i1: {
|
|
8
|
+
meta: {
|
|
9
|
+
index: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
output: {
|
|
14
|
+
o1: {
|
|
15
|
+
meta: {
|
|
16
|
+
index: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
core: {
|
|
22
|
+
properties: number;
|
|
23
|
+
type: string;
|
|
24
|
+
} | {
|
|
25
|
+
items: number;
|
|
26
|
+
type: string;
|
|
27
|
+
} | {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
meta: {
|
|
31
|
+
label: string;
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
editRules: {
|
|
35
|
+
ports: {
|
|
36
|
+
input: boolean;
|
|
37
|
+
ouput: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=NodeTemplates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeTemplates.d.ts","sourceRoot":"","sources":["../../../src/library/NodeTemplates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAG9D,eAAO,MAAM,cAAc,EAAC,MAAM,CAAC,MAAM,EAAC,mBAAmB,CAuF5D,CAAA;AAqCD,eAAO,MAAM,aAAa,GAAE,MAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCtC,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Coordinate, CoordinatePosition, CoordinateSystem, CoordinateSystemType } from "../types/index";
|
|
2
|
+
export declare const CoordinateSystemUtils: {
|
|
3
|
+
shiftPosition: (from: CoordinatePosition, to: CoordinateSystemType, system: CoordinateSystem) => {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
};
|
|
7
|
+
getBoxCoordinates: (startPosition: Coordinate, endPosition: Coordinate) => {
|
|
8
|
+
coords: {
|
|
9
|
+
a: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
b: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
};
|
|
17
|
+
c: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
};
|
|
21
|
+
d: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
quad: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=coordinateSystemUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coordinateSystemUtils.d.ts","sourceRoot":"","sources":["../../../src/library/coordinateSystemUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG5G,eAAO,MAAM,qBAAqB;0BACV,kBAAkB,MAAI,oBAAoB,UAAQ,gBAAgB;;;;uCAUrD,UAAU,eAAa,UAAU;;;;;;;;;;;;;;;;;;;;;CAgDrE,CAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { JSONSchema } from "../types/index";
|
|
2
|
+
export declare const StandardUiElements: ({
|
|
3
|
+
id: string;
|
|
4
|
+
component: (props: import("@stackmango/formact").DesignUnit<null, null, null, {
|
|
5
|
+
options: import("@stackmango/formact").Listitem[];
|
|
6
|
+
placement?: "bottom" | "top";
|
|
7
|
+
selectType: "single" | "multi";
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
validator?: (value: any) => import("@stackmango/formact").ServerResponse;
|
|
10
|
+
}, string[], null, null, any>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
} | {
|
|
12
|
+
id: string;
|
|
13
|
+
component: (props: import("@stackmango/formact").DesignUnit<null, null, null, {
|
|
14
|
+
fieldIcon?: {
|
|
15
|
+
src: string;
|
|
16
|
+
opacity?: number;
|
|
17
|
+
};
|
|
18
|
+
fieldLabel: string;
|
|
19
|
+
validator?: (value: any) => import("@stackmango/formact").ServerResponse;
|
|
20
|
+
dataType: "int" | "float" | "alphanumeric";
|
|
21
|
+
placeholder?: import("@stackmango/formact").alphanumeric;
|
|
22
|
+
showCopyButton: boolean;
|
|
23
|
+
}, import("@stackmango/formact").alphanumeric, null, null, null>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
} | {
|
|
25
|
+
id: string;
|
|
26
|
+
component: (props: import("@stackmango/formact").DesignUnit<null, null, null, import("@stackmango/formact").DateConfig, import("@stackmango/formact").alphanumeric, null, null, null>) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
})[];
|
|
28
|
+
export declare const UiElementsRegistry_Standard: {
|
|
29
|
+
dropdown: {
|
|
30
|
+
component: (props: import("../components").UIElement_Dropdown) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
reducer: (state: string[], action: import("../components").DropdownAction) => string[];
|
|
32
|
+
};
|
|
33
|
+
textbox: {
|
|
34
|
+
component: (props: import("../components").UIElement_Textbox) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
reducer: (state: string | number, action: import("../components").TextboxAction) => string | number;
|
|
36
|
+
};
|
|
37
|
+
toggle: {
|
|
38
|
+
component: (props: import("../components").UIElement_Toggle) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
reducer: (state: boolean, action: import("../components").ToggleAction) => boolean;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare const forms: {
|
|
43
|
+
register: {
|
|
44
|
+
id: string;
|
|
45
|
+
label: string;
|
|
46
|
+
component: string;
|
|
47
|
+
core: {
|
|
48
|
+
placeholder: string;
|
|
49
|
+
};
|
|
50
|
+
isRequired: boolean;
|
|
51
|
+
validator: (val: any) => {
|
|
52
|
+
success: boolean;
|
|
53
|
+
message: string;
|
|
54
|
+
};
|
|
55
|
+
initialValue: string;
|
|
56
|
+
defaultValue: {
|
|
57
|
+
id: string;
|
|
58
|
+
value: string;
|
|
59
|
+
};
|
|
60
|
+
}[];
|
|
61
|
+
};
|
|
62
|
+
export declare const extractOptionsFromSchema: (schema: JSONSchema) => {
|
|
63
|
+
value: any;
|
|
64
|
+
label: string;
|
|
65
|
+
}[];
|
|
66
|
+
//# sourceMappingURL=form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/library/form.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAoB,MAAM,gBAAgB,CAAC;AAI9D,eAAO,MAAM,kBAAkB;;;;iBA+DrB,CAAN;;mBAEI,CAAC;iBACD,CAAP;;;;;iBA+C2xD,CAAC;;mBAAoB,CAAC;;;iBAAoC,CAAC;;mBAAuF,CAAC;;;;;;IAjG96D,CAAA;AAED,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;CAqBvC,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;;;;yBAyBK,GAAG;;;;;;;;;;CAuBzB,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAE,QAAQ,UAAU;;;GAoBxD,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const validations: {
|
|
2
|
+
EMAIL: {
|
|
3
|
+
regex: RegExp;
|
|
4
|
+
errorMessage: string;
|
|
5
|
+
};
|
|
6
|
+
PASSWORD: {
|
|
7
|
+
regex: RegExp;
|
|
8
|
+
errorMessage: string;
|
|
9
|
+
};
|
|
10
|
+
FIRSTNAME: {
|
|
11
|
+
regex: RegExp;
|
|
12
|
+
errorMessage: string;
|
|
13
|
+
};
|
|
14
|
+
LASTNAME: {
|
|
15
|
+
regex: RegExp;
|
|
16
|
+
errorMessage: string;
|
|
17
|
+
};
|
|
18
|
+
PHONENUMBER: {
|
|
19
|
+
regex: RegExp;
|
|
20
|
+
errorMessage: string;
|
|
21
|
+
};
|
|
22
|
+
URL: {
|
|
23
|
+
regex: RegExp;
|
|
24
|
+
errorMessage: string;
|
|
25
|
+
};
|
|
26
|
+
YOUTUBEURL: {
|
|
27
|
+
regex: RegExp;
|
|
28
|
+
errorMessage: string;
|
|
29
|
+
};
|
|
30
|
+
ARRAYSTRING: {
|
|
31
|
+
regex: RegExp;
|
|
32
|
+
errorMessage: string;
|
|
33
|
+
};
|
|
34
|
+
ARRAYSTRING2: {
|
|
35
|
+
regex: RegExp;
|
|
36
|
+
errorMessage: string;
|
|
37
|
+
};
|
|
38
|
+
VARIABLE_KEY: {
|
|
39
|
+
regex: RegExp;
|
|
40
|
+
errorMessage: string;
|
|
41
|
+
};
|
|
42
|
+
DATE: {
|
|
43
|
+
regex: RegExp;
|
|
44
|
+
errorMessage: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=misc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/library/misc.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYvB,CAAA"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { Vector2 } from "@use-gesture/react";
|
|
2
|
+
import type { Connection_Skeleton_Draft, Coordinate, FormActions } from "../types/index";
|
|
3
|
+
import type { FlowScreenConfig, FlowScreenErrorHandler, FormFieldConfig, FormcomponentConfigdataType, FormcomponentState } from "@stackmango/formact";
|
|
4
|
+
import type { Node_Schema_Skeleton, Node_Schema_Skeleton_Draft } from "../types/Schema";
|
|
5
|
+
export declare const NodeUtils: {
|
|
6
|
+
getPortPosition: (node: {
|
|
7
|
+
position: Coordinate;
|
|
8
|
+
dimensions: {
|
|
9
|
+
width: number;
|
|
10
|
+
};
|
|
11
|
+
}, port: {
|
|
12
|
+
id: {
|
|
13
|
+
type: "input" | "output";
|
|
14
|
+
index: number;
|
|
15
|
+
};
|
|
16
|
+
dimensions: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
}) => {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
};
|
|
24
|
+
getAllPortsPositions: (node: {
|
|
25
|
+
position: Coordinate;
|
|
26
|
+
dimensions: {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
};
|
|
30
|
+
}, port: {
|
|
31
|
+
input: string[];
|
|
32
|
+
output: string[];
|
|
33
|
+
dimensions: {
|
|
34
|
+
portRadius: number;
|
|
35
|
+
slabHeight: number;
|
|
36
|
+
};
|
|
37
|
+
}) => {
|
|
38
|
+
inputPorts: {
|
|
39
|
+
key: string;
|
|
40
|
+
position: {
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
};
|
|
44
|
+
}[];
|
|
45
|
+
outputPorts: {
|
|
46
|
+
key: string;
|
|
47
|
+
position: {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
};
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
53
|
+
idDraft: (draftNodes: Record<string, any>) => any[];
|
|
54
|
+
};
|
|
55
|
+
export declare const FormFlowScreenStandardConfig: (config: {
|
|
56
|
+
fields: FormFieldConfig<any>[];
|
|
57
|
+
style?: "inline" | "normal";
|
|
58
|
+
uiElementsRegistry?: {
|
|
59
|
+
id: string;
|
|
60
|
+
component: any;
|
|
61
|
+
}[];
|
|
62
|
+
data?: any;
|
|
63
|
+
}) => {
|
|
64
|
+
errorHandlingStyle: string;
|
|
65
|
+
component: string;
|
|
66
|
+
reducer: (state: FormcomponentState, action: FormActions) => {
|
|
67
|
+
fields: import("@stackmango/formact").FormcomponentFieldState[];
|
|
68
|
+
errorMask?: boolean;
|
|
69
|
+
};
|
|
70
|
+
errorHandler: FlowScreenErrorHandler<FormcomponentState, FlowScreenConfig<FormcomponentState, FormcomponentConfigdataType, FormActions>>;
|
|
71
|
+
core: {
|
|
72
|
+
fields: FormFieldConfig<any>[];
|
|
73
|
+
formFieldStyle: string;
|
|
74
|
+
errorHandlingStyle: string;
|
|
75
|
+
uiElementsRegistry: {
|
|
76
|
+
id: string;
|
|
77
|
+
component: any;
|
|
78
|
+
}[];
|
|
79
|
+
maxFieldsPerRow: number;
|
|
80
|
+
componentType: string;
|
|
81
|
+
};
|
|
82
|
+
defaultValue: {
|
|
83
|
+
fields: never[];
|
|
84
|
+
errorMask: boolean;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export declare const FormScreenReducer: (state: FormcomponentState, action: FormActions) => {
|
|
88
|
+
fields: import("@stackmango/formact").FormcomponentFieldState[];
|
|
89
|
+
errorMask?: boolean;
|
|
90
|
+
};
|
|
91
|
+
export declare const FormScreenErrorhandler: FlowScreenErrorHandler<FormcomponentState, FlowScreenConfig<FormcomponentState, FormcomponentConfigdataType, FormActions>>;
|
|
92
|
+
export declare const Vector2ToCoordinate: (v: Vector2) => {
|
|
93
|
+
x: number;
|
|
94
|
+
y: number;
|
|
95
|
+
};
|
|
96
|
+
export declare const cmpArrays: (a: any[], b: any[]) => boolean;
|
|
97
|
+
export declare const UIDCreator: (isNumber?: boolean) => string | number;
|
|
98
|
+
export declare const schemaNodeExporter: (node: Node_Schema_Skeleton, graph: {
|
|
99
|
+
nodes: Record<string, Node_Schema_Skeleton_Draft>;
|
|
100
|
+
connections: Record<string, Connection_Skeleton_Draft>;
|
|
101
|
+
}) => {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/library/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAuB,yBAAyB,EAAE,UAAU,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE7G,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,eAAe,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEtJ,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAExF,eAAO,MAAM,SAAS;4BAEI;QAAC,QAAQ,EAAC,UAAU,CAAC;QAAA,UAAU,EAAC;YAAC,KAAK,EAAC,MAAM,CAAA;SAAC,CAAA;KAAC,QAAM;QAAC,EAAE,EAAC;YAAC,IAAI,EAAC,OAAO,GAAC,QAAQ,CAAC;YAAA,KAAK,EAAC,MAAM,CAAA;SAAC,CAAC;QAAA,UAAU,EAAC;YAAC,KAAK,EAAC,MAAM,CAAC;YAAA,MAAM,EAAC,MAAM,CAAA;SAAC,CAAA;KAAC;;;;iCAOjI;QAAC,QAAQ,EAAC,UAAU,CAAC;QAAA,UAAU,EAAC;YAAC,KAAK,EAAC,MAAM,CAAC;YAAA,MAAM,EAAC,MAAM,CAAA;SAAC,CAAA;KAAC,QAAM;QAAC,KAAK,EAAC,MAAM,EAAE,CAAC;QAAA,MAAM,EAAC,MAAM,EAAE,CAAC;QAAA,UAAU,EAAC;YAAC,UAAU,EAAC,MAAM,CAAC;YAAA,UAAU,EAAC,MAAM,CAAA;SAAC,CAAA;KAAC;;;;;;;;;;;;;;;;0BAgD3J,MAAM,CAAC,MAAM,EAAC,GAAG,CAAC;CAWzC,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAE,QAAO;IAAC,MAAM,EAAC,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;IAAA,KAAK,CAAC,EAAC,QAAQ,GAAC,QAAQ,CAAC;IAAA,kBAAkB,CAAC,EAAC;QAAC,EAAE,EAAC,MAAM,CAAC;QAAA,SAAS,EAAC,GAAG,CAAA;KAAC,EAAE,CAAC;IAAA,IAAI,CAAC,EAAC,GAAG,CAAA;CAAC;;;qBAoB9H,kBAAkB,UAAQ,WAAW;;;;;;;;;;gBApBuD,MAAM;uBAAW,GAAG;;;;;;;;;CAiBpJ,CAAA;AAGF,eAAO,MAAM,iBAAiB,GAAE,OAAM,kBAAkB,EAAC,QAAO,WAAW;;;CAQ1E,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAC,sBAAsB,CAAC,kBAAkB,EAAC,gBAAgB,CAAC,kBAAkB,EAAC,2BAA2B,EAAC,WAAW,CAAC,CAiCzJ,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAE,GAAE,OAAO;;;CAAoB,CAAA;AAE/D,eAAO,MAAM,SAAS,GAAE,GAAE,GAAG,EAAE,EAAC,GAAE,GAAG,EAAE,YAItC,CAAA;AAED,eAAO,MAAM,UAAU,GAAE,WAAU,OAAO,oBAGzC,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAE,MAAK,oBAAoB,EAAC,OAAM;IAAC,KAAK,EAAC,MAAM,CAAC,MAAM,EAAC,0BAA0B,CAAC,CAAC;IAAA,WAAW,EAAC,MAAM,CAAC,MAAM,EAAC,yBAAyB,CAAC,CAAA;CAAC;;CAuCtK,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Coordinate } from "../types/index";
|
|
2
|
+
export declare const VectorApi: {
|
|
3
|
+
magnitude: (p1: Coordinate, p2: Coordinate) => number;
|
|
4
|
+
translateOrigin: (oNew: Coordinate, p: Coordinate) => {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
add: (v1: Coordinate, v2: Coordinate) => {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
};
|
|
12
|
+
subtract: (v1: Coordinate, v2: Coordinate) => {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
};
|
|
16
|
+
getAngle: (v1: Coordinate, v2: Coordinate, unit?: "degree" | "radian") => number;
|
|
17
|
+
getUnitVector: (v: Coordinate) => {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
};
|
|
21
|
+
getScaledVector: (v: Coordinate, scale: number) => {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
};
|
|
25
|
+
getVectorMagnitude: (v: Coordinate) => number;
|
|
26
|
+
ORIGIN: {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=vectorApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vectorApi.d.ts","sourceRoot":"","sources":["../../../src/library/vectorApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,eAAO,MAAM,SAAS;oBACJ,UAAU,MAAI,UAAU;4BAKhB,UAAU,KAAG,UAAU;;;;cAMrC,UAAU,MAAI,UAAU;;;;mBAGnB,UAAU,MAAI,UAAU;;;;mBAGxB,UAAU,MAAI,UAAU,SAAO,QAAQ,GAAC,QAAQ;uBAU5C,UAAU;;;;yBAOR,UAAU,SAAO,MAAM;;;;4BAOpB,UAAU;;;;;CAKnC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Asset_Form, Asset_Form_action, Runtime_Form, Runtime_Form_action, View_Form, View_Form_action } from "../types/Form";
|
|
2
|
+
export declare const Asset_Form_Reducer: (state: Asset_Form, action: Asset_Form_action) => {
|
|
3
|
+
title?: string;
|
|
4
|
+
fields: Record<string, import("../components").Asset_Field>;
|
|
5
|
+
};
|
|
6
|
+
export declare const View_Form_Reducer: (state: View_Form, action: View_Form_action) => {
|
|
7
|
+
form: any;
|
|
8
|
+
fields: Record<string, import("../components").View_Field>;
|
|
9
|
+
};
|
|
10
|
+
export declare const Runtime_Form_Reducer: (state: Runtime_Form, action: Runtime_Form_action) => {
|
|
11
|
+
form: any;
|
|
12
|
+
fields: Record<string, import("../components").Runtime_Field>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/reducers/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,mBAAmB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnI,eAAO,MAAM,kBAAkB,GAAE,OAAM,UAAU,EAAC,QAAO,iBAAiB;;;CAczE,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAE,OAAM,SAAS,EAAC,QAAO,gBAAgB;;;CActE,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAE,OAAM,YAAY,EAAC,QAAO,mBAAmB;;;CAc/E,CAAA"}
|