chem-generic-ui 0.1.23 → 0.1.26

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.
@@ -0,0 +1,430 @@
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 ADDED
@@ -0,0 +1,13 @@
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/logo.svg ADDED
@@ -0,0 +1 @@
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>
@@ -9,6 +9,10 @@ exports.default = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
+ var _reactDnd = require("react-dnd");
13
+
14
+ var _reactDndHtml5Backend = _interopRequireDefault(require("react-dnd-html5-backend"));
15
+
12
16
  var _GenSgDetails = _interopRequireDefault(require("../components/details/GenSgDetails"));
13
17
 
14
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -114,5 +118,6 @@ var SimuSG = /*#__PURE__*/function (_Component) {
114
118
  return SimuSG;
115
119
  }(_react.Component);
116
120
 
117
- var _default = SimuSG;
121
+ var _default = (0, _reactDnd.DragDropContext)(_reactDndHtml5Backend.default)(SimuSG);
122
+
118
123
  exports.default = _default;
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "chem-generic-ui",
3
- "version": "0.1.23",
3
+ "version": "0.1.26",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "scripts": {
7
7
  "start": "react-scripts start",
8
8
  "build": "react-scripts build",
9
- "compile": "rm -rf dist && NODE_ENV=production babel ./src --out-dir ./dist",
9
+ "compile": "rm -rf dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files",
10
+ "build-css": "node-sass src/asserts/ -o dist",
11
+ "sass" : "sass src/asserts:src/asserts --watch --no-source-map",
10
12
  "test": "react-scripts test --env=jsdom --testPathIgnorePatterns=src/__tests__/helper/* src/__tests__/e2e/*",
11
13
  "eject": "react-scripts eject"
12
14
  },
@@ -33,10 +35,6 @@
33
35
  "defaults"
34
36
  ],
35
37
  "dependencies": {
36
- "sass-loader": "8.0.2",
37
- "css-loader": "4.3.0",
38
- "mini-css-extract-plugin": "0.11.3",
39
- "sass": "^1.49.9",
40
38
  "@babel/cli": "^7.0.0",
41
39
  "@babel/core": "^7.0.0",
42
40
  "@babel/eslint-parser": "^7.15.0",
@@ -47,7 +45,10 @@
47
45
  "@fortawesome/free-regular-svg-icons": "^6.0.0",
48
46
  "@fortawesome/free-solid-svg-icons": "^6.0.0",
49
47
  "@fortawesome/react-fontawesome": "^0.1.17",
48
+ "css-loader": "4.3.0",
50
49
  "lodash": "^4.17.21",
50
+ "mini-css-extract-plugin": "0.11.3",
51
+ "node-sass": "^7.0.1",
51
52
  "numeral": "^1.5.3",
52
53
  "prop-types": "^15.8.1",
53
54
  "react": "^17.0.2",
@@ -61,6 +62,8 @@
61
62
  "redux": "^4.1.0",
62
63
  "redux-immutable": "^4.0.0",
63
64
  "redux-thunk": "^2.0.0",
65
+ "sass": "^1.49.9",
66
+ "sass-loader": "8.0.2",
64
67
  "uuid": "^8.3.2"
65
68
  }
66
69
  }