chem-generic-ui 0.1.30 → 0.1.33
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/dist/generic.js +6219 -0
- package/package.json +2 -4
- package/dist/app.js +0 -105
- package/dist/asserts/main.css +0 -465
- package/dist/asserts/main.scss +0 -496
- package/dist/components/admin/ElementManager.js +0 -54
- package/dist/components/details/GenDSDetails.js +0 -273
- package/dist/components/details/GenSgDetails.js +0 -566
- package/dist/components/dnd/DragDropItemTypes.js +0 -20
- package/dist/components/dnd/GenericElDropTarget.js +0 -274
- package/dist/components/dnd/GridDnD.js +0 -77
- package/dist/components/dnd/PanelDnD.js +0 -171
- package/dist/components/fields/ButtonConfirm.js +0 -76
- package/dist/components/fields/ButtonTooltip.js +0 -88
- package/dist/components/fields/FieldLabel.js +0 -38
- package/dist/components/fields/GenDSMisType.js +0 -44
- package/dist/components/fields/GenFormGroupCb.js +0 -31
- package/dist/components/fields/GenProperties.js +0 -83
- package/dist/components/fields/GenPropertiesFields.js +0 -616
- package/dist/components/flow/FlowView.js +0 -88
- package/dist/components/flow/FlowViewerModal.js +0 -83
- package/dist/components/flow/LayerNode.js +0 -59
- package/dist/components/layers/GenPropertiesLayer.js +0 -280
- package/dist/components/layers/LayerModal.js +0 -81
- package/dist/components/layers/LayersLayout.js +0 -88
- package/dist/components/models/Attachment.js +0 -73
- package/dist/components/models/GenericSubField.js +0 -37
- package/dist/components/table/DropLinkRenderer.js +0 -55
- package/dist/components/table/DropRenderer.js +0 -45
- package/dist/components/table/DropTextRenderer.js +0 -45
- package/dist/components/table/GenericElTableDropTarget.js +0 -252
- package/dist/components/table/GridBtn.js +0 -102
- package/dist/components/table/GridEntry.js +0 -163
- package/dist/components/table/SamOption.js +0 -87
- package/dist/components/table/SelectRenderer.js +0 -52
- package/dist/components/table/TableRecord.js +0 -454
- package/dist/components/table/UConverterRenderer.js +0 -41
- package/dist/components/tools/collate.js +0 -103
- package/dist/components/tools/orten.js +0 -294
- package/dist/components/tools/utils.js +0 -593
- package/dist/data/SystemUnits.js +0 -588
- package/dist/data/systemUnits.json +0 -430
- package/dist/index.css +0 -13
- package/dist/index.js +0 -37
- package/dist/logo.svg +0 -1
- package/dist/simulations/SimWF.js +0 -123
- package/dist/simulations/SimuDS.js +0 -118
- package/dist/simulations/SimuSG.js +0 -123
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"fields": [
|
|
3
|
-
{
|
|
4
|
-
"type": "numeric",
|
|
5
|
-
"field": "acceleration",
|
|
6
|
-
"label": "Acceleration",
|
|
7
|
-
"default": "",
|
|
8
|
-
"position": 10,
|
|
9
|
-
"placeholder": "acceleration",
|
|
10
|
-
"units": [
|
|
11
|
-
{ "key": "mm_s2", "label": "mm/s<sup>2</sup>" }
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"type": "numeric",
|
|
16
|
-
"field": "agitation",
|
|
17
|
-
"label": "Agitation",
|
|
18
|
-
"default": "",
|
|
19
|
-
"position": 20,
|
|
20
|
-
"placeholder": "agitation",
|
|
21
|
-
"units": [
|
|
22
|
-
{ "key": "rpm", "label": "rpm" }
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"type": "numeric",
|
|
27
|
-
"field": "amount_enzyme",
|
|
28
|
-
"label": "Amount enzyme as nmol/min",
|
|
29
|
-
"default": "",
|
|
30
|
-
"position": 30,
|
|
31
|
-
"placeholder": "amount enzyme as nmol/min",
|
|
32
|
-
"units": [
|
|
33
|
-
{ "key": "u", "label": "U", "nm": 1 },
|
|
34
|
-
{ "key": "mu", "label": "mU", "nm": 1000 }
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"type": "numeric",
|
|
39
|
-
"field": "molarity",
|
|
40
|
-
"label": "Chem. concentration (Molarity)",
|
|
41
|
-
"default": "",
|
|
42
|
-
"position": 40,
|
|
43
|
-
"placeholder": "molarity",
|
|
44
|
-
"units": [
|
|
45
|
-
{ "key": "mol_l", "label": "mol/L (M)", "nm": 1 },
|
|
46
|
-
{ "key": "mmol_l", "label": "mmol/L (mM)", "nm": 1000 },
|
|
47
|
-
{ "key": "nmol_l", "label": "nmol/L (nM)", "nm": 1000000 },
|
|
48
|
-
{ "key": "pmol_l", "label": "pmol/L (pM)", "nm": 1000000000 }
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"type": "numeric",
|
|
53
|
-
"field": "chem_distances",
|
|
54
|
-
"label": "Chem. distances",
|
|
55
|
-
"default": "",
|
|
56
|
-
"position": 50,
|
|
57
|
-
"placeholder": "Chem. distances",
|
|
58
|
-
"units": [
|
|
59
|
-
{ "key": "angstrom", "label": "Å" }
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "numeric",
|
|
64
|
-
"field": "concentration",
|
|
65
|
-
"label": "Concentration",
|
|
66
|
-
"default": "",
|
|
67
|
-
"position": 60,
|
|
68
|
-
"placeholder": "concentration",
|
|
69
|
-
"units": [
|
|
70
|
-
{ "key": "ng_l", "label": "ng/L", "nm": 1000000 },
|
|
71
|
-
{ "key": "mg_l", "label": "mg/L", "nm": 1000 },
|
|
72
|
-
{ "key": "g_l", "label": "g/L", "nm": 1 }
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"type": "numeric",
|
|
77
|
-
"field": "conductivity",
|
|
78
|
-
"label": "Conductivity",
|
|
79
|
-
"default": "",
|
|
80
|
-
"position": 66,
|
|
81
|
-
"placeholder": "conductivity",
|
|
82
|
-
"units": [
|
|
83
|
-
{ "key": "s_m", "label": "S/m", "nm": 1 }
|
|
84
|
-
]
|
|
85
|
-
},{
|
|
86
|
-
"type": "numeric",
|
|
87
|
-
"field": "current",
|
|
88
|
-
"label": "Current",
|
|
89
|
-
"default": "",
|
|
90
|
-
"position": 60,
|
|
91
|
-
"placeholder": "Current",
|
|
92
|
-
"units": [
|
|
93
|
-
{ "key": "A", "label": "A", "nm": 1 },
|
|
94
|
-
{ "key": "mA", "label": "mA", "nm": 1000 },
|
|
95
|
-
{ "key": "uA", "label": "µA", "nm": 1000000},
|
|
96
|
-
{ "key": "nA", "label": "nA", "nm": 1000000000 }
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"type": "numeric",
|
|
101
|
-
"field": "degree",
|
|
102
|
-
"label": "Degree",
|
|
103
|
-
"default": "",
|
|
104
|
-
"position": 70,
|
|
105
|
-
"placeholder": "degree",
|
|
106
|
-
"units": [
|
|
107
|
-
{ "key": "degree", "label": "°" }
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"type": "numeric",
|
|
112
|
-
"field": "density",
|
|
113
|
-
"label": "Density",
|
|
114
|
-
"default": "",
|
|
115
|
-
"position": 75,
|
|
116
|
-
"placeholder": "density",
|
|
117
|
-
"units": [
|
|
118
|
-
{ "key": "g_cm3", "label": "g/cm<sup>3</sup>", "nm": 1 },
|
|
119
|
-
{ "key": "kg_l", "label": "kg/l", "nm": 1 }
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"type": "numeric",
|
|
124
|
-
"field": "duration",
|
|
125
|
-
"label": "Duration",
|
|
126
|
-
"default": "",
|
|
127
|
-
"position": 80,
|
|
128
|
-
"placeholder": "duration",
|
|
129
|
-
"units": [
|
|
130
|
-
{ "key": "d", "label": "d", "nm": 1 },
|
|
131
|
-
{ "key": "h", "label": "h", "nm": 24 },
|
|
132
|
-
{ "key": "min", "label": "m", "nm": 1440 },
|
|
133
|
-
{ "key": "s", "label": "s", "nm": 86400 }
|
|
134
|
-
]
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"type": "numeric",
|
|
138
|
-
"field": "elastic_modulus",
|
|
139
|
-
"label": "Elastic modulus",
|
|
140
|
-
"default": "",
|
|
141
|
-
"position": 86,
|
|
142
|
-
"placeholder": "Elastic modulus",
|
|
143
|
-
"units": [
|
|
144
|
-
{ "key": "m_pa", "label": "MPa", "nm": 1 },
|
|
145
|
-
{ "key": "k_pa", "label": "kPa", "nm": 1000 },
|
|
146
|
-
{ "key": "pa", "label": "Pa", "nm": 1000000 }
|
|
147
|
-
]
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"type": "numeric",
|
|
151
|
-
"field": "electric_field",
|
|
152
|
-
"label": "Electric field",
|
|
153
|
-
"default": "",
|
|
154
|
-
"position": 86,
|
|
155
|
-
"placeholder": "Electric field",
|
|
156
|
-
"units": [
|
|
157
|
-
{ "key": "v_m", "label": "V/m", "nm": 1 }
|
|
158
|
-
]
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"type": "numeric",
|
|
162
|
-
"field": "energy",
|
|
163
|
-
"label": "Energy",
|
|
164
|
-
"default": "",
|
|
165
|
-
"position": 88,
|
|
166
|
-
"placeholder": "Joule",
|
|
167
|
-
"units": [
|
|
168
|
-
{ "key": "j", "label": "J", "nm": 1000 },
|
|
169
|
-
{ "key": "k_j", "label": "kJ", "nm": 1 }
|
|
170
|
-
]
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"type": "numeric",
|
|
174
|
-
"field": "enzyme_activity",
|
|
175
|
-
"label": "Enzyme activity",
|
|
176
|
-
"default": "",
|
|
177
|
-
"position": 90,
|
|
178
|
-
"placeholder": "Enzyme activity",
|
|
179
|
-
"units": [
|
|
180
|
-
{ "key": "u_l", "label": "U/L", "nm": 1 },
|
|
181
|
-
{ "key": "u_ml", "label": "U/mL", "nm": 1000 }
|
|
182
|
-
]
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"type": "numeric",
|
|
186
|
-
"field": "flow_rate",
|
|
187
|
-
"label": "Flow rate",
|
|
188
|
-
"default": "",
|
|
189
|
-
"position": 100,
|
|
190
|
-
"placeholder": "Flow rate",
|
|
191
|
-
"units": [
|
|
192
|
-
{ "key": "ul_min", "label": "µl/min", "nm": 1000000 },
|
|
193
|
-
{ "key": "ml_min", "label": "ml/min", "nm": 1000 },
|
|
194
|
-
{ "key": "l_m", "label": "l/m", "nm": 1 }
|
|
195
|
-
]
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"type": "numeric",
|
|
199
|
-
"field": "frequency",
|
|
200
|
-
"label": "Frequency",
|
|
201
|
-
"default": "",
|
|
202
|
-
"position": 100,
|
|
203
|
-
"placeholder": "frequency",
|
|
204
|
-
"units": [
|
|
205
|
-
{ "key": "hz", "label": "Hz", "nm": 1000 },
|
|
206
|
-
{ "key": "khz", "label": "kHz", "nm": 1 }
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"type": "numeric",
|
|
211
|
-
"field": "heating_rate",
|
|
212
|
-
"label": "Heating rate",
|
|
213
|
-
"default": "",
|
|
214
|
-
"position": 106,
|
|
215
|
-
"placeholder": "heating rate",
|
|
216
|
-
"units": [
|
|
217
|
-
{ "key": "k_min", "label": "K/min", "nm": 1 }
|
|
218
|
-
]
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"type": "numeric",
|
|
222
|
-
"field": "length",
|
|
223
|
-
"label": "Length",
|
|
224
|
-
"default": "",
|
|
225
|
-
"position": 110,
|
|
226
|
-
"placeholder": "length",
|
|
227
|
-
"units": [
|
|
228
|
-
{ "key": "pm", "label": "pm", "nm": 100000 },
|
|
229
|
-
{ "key": "nm", "label": "nm", "nm": 10000 },
|
|
230
|
-
{ "key": "mm", "label": "mm", "nm": 1000 },
|
|
231
|
-
{ "key": "cm", "label": "cm", "nm": 100 },
|
|
232
|
-
{ "key": "m", "label": "m", "nm": 1 }
|
|
233
|
-
]
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"type": "numeric",
|
|
237
|
-
"field": "magnetic_flux_density",
|
|
238
|
-
"label": "Magnetic flux density/inductivity",
|
|
239
|
-
"default": "",
|
|
240
|
-
"position": 120,
|
|
241
|
-
"placeholder": "",
|
|
242
|
-
"units": [
|
|
243
|
-
{ "key": "T", "label": "T", "nm": 1 }
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"type": "numeric",
|
|
248
|
-
"field": "mass",
|
|
249
|
-
"label": "Mass",
|
|
250
|
-
"default": "",
|
|
251
|
-
"position": 120,
|
|
252
|
-
"placeholder": "mass",
|
|
253
|
-
"units": [
|
|
254
|
-
{ "key": "g", "label": "g", "nm": 1 },
|
|
255
|
-
{ "key": "mg", "label": "mg", "nm": 1000 },
|
|
256
|
-
{ "key": "ug", "label": "µg", "nm": 1000000 }
|
|
257
|
-
]
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"type": "numeric",
|
|
261
|
-
"field": "mass_molecule",
|
|
262
|
-
"label": "Mass of molecule",
|
|
263
|
-
"default": "",
|
|
264
|
-
"position": 126,
|
|
265
|
-
"placeholder": "mass of molecule",
|
|
266
|
-
"units": [
|
|
267
|
-
{ "key": "dalton", "label": "D", "nm": 1000 },
|
|
268
|
-
{ "key": "kilo_dalton", "label": "kD", "nm": 1 }
|
|
269
|
-
]
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"type": "numeric",
|
|
273
|
-
"field": "molecular_weight",
|
|
274
|
-
"label": "Molecular weight",
|
|
275
|
-
"default": "",
|
|
276
|
-
"position": 130,
|
|
277
|
-
"placeholder": "Molecular weight",
|
|
278
|
-
"units": [
|
|
279
|
-
{ "key": "g_mol", "label": "g/mol" }
|
|
280
|
-
]
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"type": "numeric",
|
|
284
|
-
"field": "percentage",
|
|
285
|
-
"label": "Percentage",
|
|
286
|
-
"default": "",
|
|
287
|
-
"position": 136,
|
|
288
|
-
"placeholder": "percentage",
|
|
289
|
-
"units": [
|
|
290
|
-
{ "key": "p", "label": "%", "nm": 1 }
|
|
291
|
-
]
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"type": "numeric",
|
|
295
|
-
"field": "pressure",
|
|
296
|
-
"label": "Pressure",
|
|
297
|
-
"default": "",
|
|
298
|
-
"position": 140,
|
|
299
|
-
"placeholder": "pressure",
|
|
300
|
-
"units": [
|
|
301
|
-
{ "key": "atm", "label": "atm", "nm": 1 },
|
|
302
|
-
{ "key": "pa", "label": "Pa", "nm": 101325 },
|
|
303
|
-
{ "key": "torr", "label": "Torr", "nm": 760 }
|
|
304
|
-
]
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"type": "numeric",
|
|
308
|
-
"field": "reaction_rate",
|
|
309
|
-
"label": "Reaction rate",
|
|
310
|
-
"default": "",
|
|
311
|
-
"position": 150,
|
|
312
|
-
"placeholder": "Reaction rate",
|
|
313
|
-
"units": [
|
|
314
|
-
{ "key": "mol_lmin", "label": "mol/Lmin", "nm": 1 },
|
|
315
|
-
{ "key": "mol_lsec", "label": "mol/Ls", "nm": 60 }
|
|
316
|
-
]
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"type": "numeric",
|
|
320
|
-
"field": "specific_volume",
|
|
321
|
-
"label": "Specific Volume",
|
|
322
|
-
"default": "",
|
|
323
|
-
"position": 160,
|
|
324
|
-
"placeholder": "Specific Volume",
|
|
325
|
-
"units": [
|
|
326
|
-
{ "key": "cm3_g", "label": "cm<sup>3</sup>/g", "nm": 1 }
|
|
327
|
-
]
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"type": "numeric",
|
|
331
|
-
"field": "speed",
|
|
332
|
-
"label": "Speed",
|
|
333
|
-
"default": "",
|
|
334
|
-
"position": 165,
|
|
335
|
-
"placeholder": "speed",
|
|
336
|
-
"units": [
|
|
337
|
-
{ "key": "cm_s", "label": "cm/s", "nm": 1 },
|
|
338
|
-
{ "key": "mm_s", "label": "mm/s", "nm": 10 },
|
|
339
|
-
{ "key": "cm_h", "label": "cm/h", "nm": 3600 },
|
|
340
|
-
{ "key": "mm_h", "label": "mm/h", "nm": 36000 }
|
|
341
|
-
]
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"type": "numeric",
|
|
345
|
-
"field": "surface",
|
|
346
|
-
"label": "Surface",
|
|
347
|
-
"default": "",
|
|
348
|
-
"position": 170,
|
|
349
|
-
"placeholder": "surface",
|
|
350
|
-
"units": [
|
|
351
|
-
{ "key": "a_2", "label": "A<sup>2</sup>" },
|
|
352
|
-
{ "key": "mm_2", "label": "mm<sup>2</sup>" },
|
|
353
|
-
{ "key": "cm_2", "label": "cm<sup>2</sup>" }
|
|
354
|
-
]
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
"type": "numeric",
|
|
358
|
-
"field": "temperature",
|
|
359
|
-
"label": "Temperature",
|
|
360
|
-
"default": "",
|
|
361
|
-
"position": 180,
|
|
362
|
-
"placeholder": "temperature",
|
|
363
|
-
"units": [
|
|
364
|
-
{ "key": "C", "label": "°C" },
|
|
365
|
-
{ "key": "F", "label": "°F" },
|
|
366
|
-
{ "key": "K", "label": "°K" }
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"type": "numeric",
|
|
371
|
-
"field": "turnover_number",
|
|
372
|
-
"label": "Turnover number",
|
|
373
|
-
"default": "",
|
|
374
|
-
"position": 190,
|
|
375
|
-
"placeholder": "Turnover number",
|
|
376
|
-
"units": [
|
|
377
|
-
{ "key": "1_s", "label": "1/s" }
|
|
378
|
-
]
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"type": "numeric",
|
|
382
|
-
"field": "viscosity",
|
|
383
|
-
"label": "Dynamic Viscosity",
|
|
384
|
-
"default": "",
|
|
385
|
-
"position": 200,
|
|
386
|
-
"placeholder": "Dynamic Viscosity",
|
|
387
|
-
"units": [
|
|
388
|
-
{ "key": "pas", "label": "Pas", "nm": 1 },
|
|
389
|
-
{ "key": "mpas", "label": "mPas", "nm": 1000 }
|
|
390
|
-
]
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"type": "numeric",
|
|
394
|
-
"field": "kinematic_viscosity",
|
|
395
|
-
"label": "Kinematic Viscosity",
|
|
396
|
-
"default": "",
|
|
397
|
-
"position": 205,
|
|
398
|
-
"placeholder": "Kinematic Viscosity",
|
|
399
|
-
"units": [
|
|
400
|
-
{ "key": "m2_s", "label": "m<sup>2</sup>/s", "nm": 1 }
|
|
401
|
-
]
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"type": "numeric",
|
|
405
|
-
"field": "voltage",
|
|
406
|
-
"label": "Voltage",
|
|
407
|
-
"default": "",
|
|
408
|
-
"position": 200,
|
|
409
|
-
"placeholder": "voltage",
|
|
410
|
-
"units": [
|
|
411
|
-
{ "key": "mv", "label": "mV", "nm": 1000 },
|
|
412
|
-
{ "key": "v", "label": "V", "nm": 1 }
|
|
413
|
-
]
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
"type": "numeric",
|
|
417
|
-
"field": "volumes",
|
|
418
|
-
"label": "Volumes",
|
|
419
|
-
"default": "",
|
|
420
|
-
"position": 210,
|
|
421
|
-
"placeholder": "volume",
|
|
422
|
-
"units": [
|
|
423
|
-
{ "key": "l", "label": "l", "nm": 1 },
|
|
424
|
-
{ "key": "ml", "label": "ml", "nm": 1000 },
|
|
425
|
-
{ "key": "ul", "label": "µl", "nm": 1000000},
|
|
426
|
-
{ "key": "nl", "label": "nl", "nm": 1000000000 }
|
|
427
|
-
]
|
|
428
|
-
}
|
|
429
|
-
]
|
|
430
|
-
}
|
package/dist/index.css
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
margin: 0;
|
|
3
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
4
|
-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
5
|
-
sans-serif;
|
|
6
|
-
-webkit-font-smoothing: antialiased;
|
|
7
|
-
-moz-osx-font-smoothing: grayscale;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
code {
|
|
11
|
-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
12
|
-
monospace;
|
|
13
|
-
}
|
package/dist/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
|
|
5
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
6
|
-
|
|
7
|
-
require("./index.css");
|
|
8
|
-
|
|
9
|
-
var _app = require("./app");
|
|
10
|
-
|
|
11
|
-
var _SimuDS = _interopRequireDefault(require("./simulations/SimuDS"));
|
|
12
|
-
|
|
13
|
-
var _SimuSG = _interopRequireDefault(require("./simulations/SimuSG"));
|
|
14
|
-
|
|
15
|
-
var _SimWF = _interopRequireDefault(require("./simulations/SimWF"));
|
|
16
|
-
|
|
17
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
|
|
19
|
-
/* eslint-disable no-unused-vars */
|
|
20
|
-
// import 'bootstrap/dist/css/bootstrap.min.css';
|
|
21
|
-
// import 'bootstrap/dist/css/bootstrap.min.css';
|
|
22
|
-
// import App from './App';
|
|
23
|
-
// import reportWebVitals from './reportWebVitals';
|
|
24
|
-
// import { ElementManager, GenPropertiesText } from './components/admin/ElementManager';
|
|
25
|
-
// export { ElementManager, GenPropertiesText };
|
|
26
|
-
_reactDom.default.render( /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_app.ElementManager, {
|
|
27
|
-
elements: [],
|
|
28
|
-
element: {}
|
|
29
|
-
}), /*#__PURE__*/_react.default.createElement(_SimWF.default, null), /*#__PURE__*/_react.default.createElement(_SimuDS.default, null), /*#__PURE__*/_react.default.createElement(_SimuSG.default, null)), document.getElementById('root')); // function App() {
|
|
30
|
-
// return (
|
|
31
|
-
// <div>
|
|
32
|
-
// Project A
|
|
33
|
-
// <ElementManager />
|
|
34
|
-
// </div>
|
|
35
|
-
// );
|
|
36
|
-
// }
|
|
37
|
-
// export default App;
|
package/dist/logo.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _reactBootstrap = require("react-bootstrap");
|
|
13
|
-
|
|
14
|
-
var _FlowViewerModal = _interopRequireDefault(require("../components/flow/FlowViewerModal"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
22
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
-
|
|
24
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
|
-
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
-
|
|
28
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
-
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
-
|
|
32
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
|
-
|
|
34
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
35
|
-
|
|
36
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
|
-
|
|
38
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
|
-
|
|
40
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
-
|
|
42
|
-
var SimuWF = /*#__PURE__*/function (_Component) {
|
|
43
|
-
_inherits(SimuWF, _Component);
|
|
44
|
-
|
|
45
|
-
var _super = _createSuper(SimuWF);
|
|
46
|
-
|
|
47
|
-
function SimuWF(props) {
|
|
48
|
-
var _this;
|
|
49
|
-
|
|
50
|
-
_classCallCheck(this, SimuWF);
|
|
51
|
-
|
|
52
|
-
_this = _super.call(this, props);
|
|
53
|
-
_this.state = {
|
|
54
|
-
show: false,
|
|
55
|
-
data: {
|
|
56
|
-
properties_release: {},
|
|
57
|
-
properties: {},
|
|
58
|
-
shortLabel: 'short label'
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
62
|
-
return _this;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
_createClass(SimuWF, [{
|
|
66
|
-
key: "componentDidMount",
|
|
67
|
-
value: function componentDidMount() {
|
|
68
|
-
var _this2 = this;
|
|
69
|
-
|
|
70
|
-
fetch('sg_details.json', {
|
|
71
|
-
headers: {
|
|
72
|
-
'Content-Type': 'application/json',
|
|
73
|
-
Accept: 'application/json'
|
|
74
|
-
}
|
|
75
|
-
}).then(function (response) {
|
|
76
|
-
return response.json();
|
|
77
|
-
}).then(function (json) {
|
|
78
|
-
console.log(json);
|
|
79
|
-
|
|
80
|
-
_this2.setState({
|
|
81
|
-
data: {
|
|
82
|
-
properties_release: json.properties_release,
|
|
83
|
-
properties: json.properties
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
}).catch(function (errorMessage) {
|
|
87
|
-
console.log(errorMessage);
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
}, {
|
|
91
|
-
key: "handleChange",
|
|
92
|
-
value: function handleChange(show) {
|
|
93
|
-
this.setState({
|
|
94
|
-
show: show
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
}, {
|
|
98
|
-
key: "render",
|
|
99
|
-
value: function render() {
|
|
100
|
-
var _this3 = this;
|
|
101
|
-
|
|
102
|
-
var _this$state = this.state,
|
|
103
|
-
show = _this$state.show,
|
|
104
|
-
data = _this$state.data;
|
|
105
|
-
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h2", null, "Flow view"), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.Button, {
|
|
106
|
-
onClick: function onClick() {
|
|
107
|
-
return _this3.handleChange(true);
|
|
108
|
-
}
|
|
109
|
-
}, "click"), /*#__PURE__*/_react.default.createElement(_FlowViewerModal.default, {
|
|
110
|
-
show: show,
|
|
111
|
-
data: data,
|
|
112
|
-
fnHide: function fnHide() {
|
|
113
|
-
return _this3.handleChange(false);
|
|
114
|
-
}
|
|
115
|
-
})));
|
|
116
|
-
}
|
|
117
|
-
}]);
|
|
118
|
-
|
|
119
|
-
return SimuWF;
|
|
120
|
-
}(_react.Component);
|
|
121
|
-
|
|
122
|
-
var _default = SimuWF;
|
|
123
|
-
exports.default = _default;
|