chem-generic-ui 0.1.21 → 0.1.24
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/app.js +1 -1
- package/dist/asserts/main.css +458 -0
- package/package.json +10 -5
package/dist/app.js
CHANGED
|
@@ -46,7 +46,7 @@ var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
|
46
46
|
|
|
47
47
|
var _freeRegularSvgIcons = require("@fortawesome/free-regular-svg-icons");
|
|
48
48
|
|
|
49
|
-
require("./asserts/main.
|
|
49
|
+
require("./asserts/main.css");
|
|
50
50
|
|
|
51
51
|
var _ElementManager = _interopRequireDefault(require("./components/admin/ElementManager"));
|
|
52
52
|
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
.bg-bs-primary {
|
|
2
|
+
background-color: #337ab7 !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.bg-bs-warning {
|
|
6
|
+
background-color: #f0ad4e !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.icon_generic_nav {
|
|
10
|
+
font-family: FontAwesome, Helvetica, Arial, sans-serif !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.field_required {
|
|
14
|
+
background-color: lightyellow;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.template_panel_heading {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
align-items: center;
|
|
21
|
+
padding: 5px 10px 5px 10px !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.panel_generic_properties {
|
|
25
|
+
border-left: unset !important;
|
|
26
|
+
border-right: unset !important;
|
|
27
|
+
border-bottom: unset !important;
|
|
28
|
+
line-height: 26px !important;
|
|
29
|
+
box-shadow: unset !important;
|
|
30
|
+
margin-bottom: unset !important;
|
|
31
|
+
}
|
|
32
|
+
.panel_generic_properties .panel-title {
|
|
33
|
+
font-weight: bold;
|
|
34
|
+
}
|
|
35
|
+
.panel_generic_properties .default_style {
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
line-height: normal;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.panel_generic_properties_body {
|
|
41
|
+
padding-left: unset !important;
|
|
42
|
+
padding-right: unset !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.panel_generic_heading_slim {
|
|
46
|
+
padding: 5px 0px !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.panel_generic_heading {
|
|
50
|
+
font-weight: bold;
|
|
51
|
+
padding: 10px 0px !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.panel_generic_heading_bu {
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
padding: 10px 0px !important;
|
|
57
|
+
text-decoration: underline;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.panel_generic_heading_bui {
|
|
61
|
+
font-weight: bold;
|
|
62
|
+
padding: 10px 0px !important;
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
font-style: italic;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.text_generic_properties .dummy {
|
|
68
|
+
background-color: unset !important;
|
|
69
|
+
border: unset !important;
|
|
70
|
+
box-shadow: unset !important;
|
|
71
|
+
}
|
|
72
|
+
.text_generic_properties .editable {
|
|
73
|
+
background-color: #fff;
|
|
74
|
+
}
|
|
75
|
+
.text_generic_properties .readonly {
|
|
76
|
+
background-color: #ddd;
|
|
77
|
+
}
|
|
78
|
+
.text_generic_properties .required {
|
|
79
|
+
background-color: lightyellow;
|
|
80
|
+
}
|
|
81
|
+
.text_generic_properties input:invalid {
|
|
82
|
+
border: 1px solid lightcoral;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.select_generic_properties_editable .Select-control {
|
|
86
|
+
background-color: #fff;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.select_generic_properties_readonly .Select-control {
|
|
90
|
+
background-color: #ddd;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.select_generic_properties_required .Select-control {
|
|
94
|
+
background-color: lightyellow;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.drop_generic_properties {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
}
|
|
101
|
+
.drop_generic_properties .target {
|
|
102
|
+
height: 100%;
|
|
103
|
+
width: 100%;
|
|
104
|
+
margin: 0px 10px 0px 10px;
|
|
105
|
+
display: inline-block;
|
|
106
|
+
}
|
|
107
|
+
.drop_generic_properties .target .indicator {
|
|
108
|
+
font-size: x-large;
|
|
109
|
+
}
|
|
110
|
+
.drop_generic_properties .target .s-img {
|
|
111
|
+
display: flex;
|
|
112
|
+
}
|
|
113
|
+
.drop_generic_properties .target .s-img img {
|
|
114
|
+
height: 4vh;
|
|
115
|
+
width: 4vw;
|
|
116
|
+
}
|
|
117
|
+
.drop_generic_properties .target .data {
|
|
118
|
+
font-size: medium;
|
|
119
|
+
line-height: normal !important;
|
|
120
|
+
text-overflow: ellipsis;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
align-self: center;
|
|
124
|
+
width: 100%;
|
|
125
|
+
}
|
|
126
|
+
.drop_generic_properties .target.can-drop .indicator {
|
|
127
|
+
border: 2px dashed lightgray;
|
|
128
|
+
color: lightgray;
|
|
129
|
+
}
|
|
130
|
+
.drop_generic_properties .target.can-drop .data {
|
|
131
|
+
border: 2px dashed lightgray;
|
|
132
|
+
color: lightgray;
|
|
133
|
+
}
|
|
134
|
+
.drop_generic_properties .target.is-over .indicator {
|
|
135
|
+
border: 2px dashed #31708f;
|
|
136
|
+
color: #31708f;
|
|
137
|
+
}
|
|
138
|
+
.drop_generic_properties .target.is-over .data {
|
|
139
|
+
border: 2px dashed #31708f;
|
|
140
|
+
color: #31708f;
|
|
141
|
+
}
|
|
142
|
+
.drop_generic_properties .btn_del {
|
|
143
|
+
float: right;
|
|
144
|
+
align-self: center;
|
|
145
|
+
}
|
|
146
|
+
.drop_generic_properties .sample_radios {
|
|
147
|
+
font-size: xx-small;
|
|
148
|
+
line-height: 2;
|
|
149
|
+
display: inline-flex;
|
|
150
|
+
padding-right: 5px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.generic_criteria_modal {
|
|
154
|
+
display: block;
|
|
155
|
+
padding-left: 0px;
|
|
156
|
+
top: 45% !important;
|
|
157
|
+
width: 75vw !important;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.search_criteria_mof .modal_body {
|
|
161
|
+
max-height: 70vh;
|
|
162
|
+
height: 70vh;
|
|
163
|
+
overflow: auto;
|
|
164
|
+
}
|
|
165
|
+
.search_criteria_mof .btn_footer {
|
|
166
|
+
margin-top: 10px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.input-form .input-group-addon {
|
|
170
|
+
font-weight: bold;
|
|
171
|
+
}
|
|
172
|
+
.input-form .help {
|
|
173
|
+
font-size: 80%;
|
|
174
|
+
margin: 6px;
|
|
175
|
+
font-style: italic;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.g-ds-note {
|
|
179
|
+
color: black !important;
|
|
180
|
+
float: left !important;
|
|
181
|
+
text-align: left !important;
|
|
182
|
+
font-weight: lighter !important;
|
|
183
|
+
}
|
|
184
|
+
.g-ds-note .g-ds-title {
|
|
185
|
+
text-decoration: underline;
|
|
186
|
+
font-weight: 700;
|
|
187
|
+
line-height: 1.5;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.g_input_group {
|
|
191
|
+
padding: 6px 6px !important;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.g_input_group_label {
|
|
195
|
+
background-color: lightgray !important;
|
|
196
|
+
width: unset !important;
|
|
197
|
+
white-space: nowrap !important;
|
|
198
|
+
padding: 6px 6px !important;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.g_col_w {
|
|
202
|
+
width: 20% !important;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.generic_grid {
|
|
206
|
+
display: block;
|
|
207
|
+
}
|
|
208
|
+
.generic_grid > div {
|
|
209
|
+
display: flex;
|
|
210
|
+
flex-wrap: nowrap;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.generic_grid_header {
|
|
214
|
+
width: 100%;
|
|
215
|
+
margin: 6px 0px 6px 6px;
|
|
216
|
+
text-align: center;
|
|
217
|
+
line-height: 15px;
|
|
218
|
+
align-self: center;
|
|
219
|
+
font-weight: bolder;
|
|
220
|
+
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.generic_grid_row {
|
|
224
|
+
width: 100%;
|
|
225
|
+
margin: 6px 0px 6px 6px;
|
|
226
|
+
text-align: center;
|
|
227
|
+
line-height: 15px;
|
|
228
|
+
align-self: center;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.generic_version {
|
|
232
|
+
background-color: #777;
|
|
233
|
+
display: inline-block;
|
|
234
|
+
padding: 0.35em 0.65em;
|
|
235
|
+
font-size: 0.75em;
|
|
236
|
+
text-align: center;
|
|
237
|
+
vertical-align: baseline;
|
|
238
|
+
white-space: nowrap;
|
|
239
|
+
border-radius: 0.5rem;
|
|
240
|
+
color: white;
|
|
241
|
+
background-color: unset;
|
|
242
|
+
color: blue;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.generic_version_draft {
|
|
246
|
+
background-color: #777;
|
|
247
|
+
display: inline-block;
|
|
248
|
+
padding: 0.35em 0.65em;
|
|
249
|
+
font-size: 0.75em;
|
|
250
|
+
text-align: center;
|
|
251
|
+
vertical-align: baseline;
|
|
252
|
+
white-space: nowrap;
|
|
253
|
+
border-radius: 0.5rem;
|
|
254
|
+
color: white;
|
|
255
|
+
background-color: unset;
|
|
256
|
+
color: black;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.generic_version_block {
|
|
260
|
+
display: block;
|
|
261
|
+
padding: 6px 10px;
|
|
262
|
+
margin: 10px;
|
|
263
|
+
border-radius: 10px;
|
|
264
|
+
border: thin solid lightgray;
|
|
265
|
+
font-size: 1.2em;
|
|
266
|
+
}
|
|
267
|
+
.generic_version_block > div {
|
|
268
|
+
display: flex;
|
|
269
|
+
flex-wrap: nowrap;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.generic_block_select {
|
|
273
|
+
border-width: medium;
|
|
274
|
+
border-style: groove;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.generic_panel_none {
|
|
278
|
+
border-color: #ddd !important;
|
|
279
|
+
}
|
|
280
|
+
.generic_panel_none > .panel-heading {
|
|
281
|
+
background-color: white !important;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.generic_tbl_chks {
|
|
285
|
+
line-height: 1em;
|
|
286
|
+
margin: 0px -10px !important;
|
|
287
|
+
}
|
|
288
|
+
.generic_tbl_chks > label {
|
|
289
|
+
display: inline-flex;
|
|
290
|
+
align-content: center;
|
|
291
|
+
align-items: center;
|
|
292
|
+
}
|
|
293
|
+
.generic_tbl_chks > label > input {
|
|
294
|
+
margin-top: 0px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.generic_btn_default {
|
|
298
|
+
background-color: #777 !important;
|
|
299
|
+
color: #fff !important;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.drop_generic_table_wrap .target .s-img {
|
|
303
|
+
position: relative;
|
|
304
|
+
border: 1px solid transparent;
|
|
305
|
+
}
|
|
306
|
+
.drop_generic_table_wrap .target .s-img img {
|
|
307
|
+
height: 4vw;
|
|
308
|
+
width: 4vw;
|
|
309
|
+
}
|
|
310
|
+
.drop_generic_table_wrap .target .s-img .del_btn {
|
|
311
|
+
position: absolute;
|
|
312
|
+
top: 0%;
|
|
313
|
+
left: 0%;
|
|
314
|
+
}
|
|
315
|
+
.drop_generic_table_wrap .target .s-img .link_btn {
|
|
316
|
+
position: absolute;
|
|
317
|
+
bottom: 0%;
|
|
318
|
+
left: 0%;
|
|
319
|
+
}
|
|
320
|
+
.drop_generic_table_wrap .target .s-img:hover {
|
|
321
|
+
border: 1px solid #0dcaf0;
|
|
322
|
+
}
|
|
323
|
+
.drop_generic_table_wrap .target .data {
|
|
324
|
+
font-size: unset;
|
|
325
|
+
white-space: unset;
|
|
326
|
+
text-align: left;
|
|
327
|
+
}
|
|
328
|
+
.drop_generic_table_wrap .target.can-drop .s-img {
|
|
329
|
+
border: 2px dashed lightgray;
|
|
330
|
+
color: lightgray;
|
|
331
|
+
}
|
|
332
|
+
.drop_generic_table_wrap .target.is-over .s-img {
|
|
333
|
+
border: 2px dashed #31708f;
|
|
334
|
+
color: #31708f;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.generic_grid_img {
|
|
338
|
+
border: #ddd solid thin;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.generic_sam_options {
|
|
342
|
+
display: flex;
|
|
343
|
+
flex-direction: column;
|
|
344
|
+
text-align: left;
|
|
345
|
+
font-size: x-small;
|
|
346
|
+
}
|
|
347
|
+
.generic_sam_options .radio {
|
|
348
|
+
margin-top: unset;
|
|
349
|
+
margin-bottom: unset;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.generic_files {
|
|
353
|
+
padding: 0px 5px !important;
|
|
354
|
+
}
|
|
355
|
+
.generic_files > div > div > div {
|
|
356
|
+
text-align: left;
|
|
357
|
+
align-self: center;
|
|
358
|
+
}
|
|
359
|
+
.generic_files > div > div > div .form-group {
|
|
360
|
+
margin-bottom: 0px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.grid-btn-none {
|
|
364
|
+
font-size: large;
|
|
365
|
+
color: white;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.generic_grid_dnd .dnd {
|
|
369
|
+
cursor: move;
|
|
370
|
+
}
|
|
371
|
+
.generic_grid_dnd .dnd-btn {
|
|
372
|
+
font-size: large;
|
|
373
|
+
}
|
|
374
|
+
.generic_grid_dnd .dnd-btn span {
|
|
375
|
+
cursor: move;
|
|
376
|
+
}
|
|
377
|
+
.generic_grid_dnd.can-drop {
|
|
378
|
+
border: 2px dashed lightgray;
|
|
379
|
+
color: lightgray;
|
|
380
|
+
}
|
|
381
|
+
.generic_grid_dnd.is-over {
|
|
382
|
+
border: 2px dashed #31708f;
|
|
383
|
+
color: #31708f;
|
|
384
|
+
}
|
|
385
|
+
.generic_grid_dnd.is-dragging {
|
|
386
|
+
opacity: 0.2;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.generic_layer_modal > .layer_header {
|
|
390
|
+
background-color: white;
|
|
391
|
+
color: #337ab7;
|
|
392
|
+
font-size: 20px;
|
|
393
|
+
}
|
|
394
|
+
.generic_layer_modal > .panel-body {
|
|
395
|
+
background-color: #d9edf7;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.generic_layer_column {
|
|
399
|
+
width: 100%;
|
|
400
|
+
margin: 6px 0px 6px 6px;
|
|
401
|
+
text-align: center;
|
|
402
|
+
line-height: 15px;
|
|
403
|
+
align-self: center;
|
|
404
|
+
border: 1px solid #337ab7;
|
|
405
|
+
background-color: white;
|
|
406
|
+
margin: 5px;
|
|
407
|
+
padding: 10px;
|
|
408
|
+
color: #337ab7;
|
|
409
|
+
border-radius: 4px;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.generic_layer_column > div:first-child {
|
|
413
|
+
display: flex;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.generic_layer_column > div:first-child > button {
|
|
417
|
+
float: right;
|
|
418
|
+
border-radius: 50%;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.generic_layer_column > div:first-child > div {
|
|
422
|
+
width: 100%;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.generic_wf_modal {
|
|
426
|
+
max-height: 100%;
|
|
427
|
+
overflow: auto;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.generic_wf_modal > div:first-child {
|
|
431
|
+
height: 85vh;
|
|
432
|
+
width: 100%;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.flow_view_draggable {
|
|
436
|
+
z-index: 100;
|
|
437
|
+
position: absolute;
|
|
438
|
+
top: 12%;
|
|
439
|
+
left: 10%;
|
|
440
|
+
}
|
|
441
|
+
.flow_view_draggable .panel-body {
|
|
442
|
+
padding: 5px;
|
|
443
|
+
}
|
|
444
|
+
.flow_view_draggable .panel-body > .body_bg {
|
|
445
|
+
max-height: 100%;
|
|
446
|
+
overflow: auto;
|
|
447
|
+
background-color: #d9edf7;
|
|
448
|
+
}
|
|
449
|
+
.flow_view_draggable .panel-body > .body_bg > .body_canvas {
|
|
450
|
+
resize: both;
|
|
451
|
+
overflow: auto;
|
|
452
|
+
height: 70vh;
|
|
453
|
+
width: 40vw;
|
|
454
|
+
min-height: 250px;
|
|
455
|
+
min-width: 300px;
|
|
456
|
+
max-width: 1600px;
|
|
457
|
+
max-height: 840px;
|
|
458
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chem-generic-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "react-scripts start",
|
|
8
8
|
"build": "react-scripts build",
|
|
9
9
|
"compile": "rm -rf dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files",
|
|
10
|
-
"
|
|
10
|
+
"build-css": "node-sass src/asserts/ -o dist",
|
|
11
|
+
"sass" : "sass src/asserts:src/asserts --watch --no-source-map",
|
|
12
|
+
"test": "react-scripts test --env=jsdom --testPathIgnorePatterns=src/__tests__/helper/* src/__tests__/e2e/*",
|
|
13
|
+
"eject": "react-scripts eject"
|
|
11
14
|
},
|
|
12
15
|
"peerDependencies": {
|
|
13
16
|
"react": "^17.0.2",
|
|
@@ -32,9 +35,6 @@
|
|
|
32
35
|
"defaults"
|
|
33
36
|
],
|
|
34
37
|
"dependencies": {
|
|
35
|
-
"sass-loader": "8.0.2",
|
|
36
|
-
"css-loader": "4.3.0",
|
|
37
|
-
"sass": "^1.49.9",
|
|
38
38
|
"@babel/cli": "^7.0.0",
|
|
39
39
|
"@babel/core": "^7.0.0",
|
|
40
40
|
"@babel/eslint-parser": "^7.15.0",
|
|
@@ -45,7 +45,10 @@
|
|
|
45
45
|
"@fortawesome/free-regular-svg-icons": "^6.0.0",
|
|
46
46
|
"@fortawesome/free-solid-svg-icons": "^6.0.0",
|
|
47
47
|
"@fortawesome/react-fontawesome": "^0.1.17",
|
|
48
|
+
"css-loader": "4.3.0",
|
|
48
49
|
"lodash": "^4.17.21",
|
|
50
|
+
"mini-css-extract-plugin": "0.11.3",
|
|
51
|
+
"node-sass": "^7.0.1",
|
|
49
52
|
"numeral": "^1.5.3",
|
|
50
53
|
"prop-types": "^15.8.1",
|
|
51
54
|
"react": "^17.0.2",
|
|
@@ -59,6 +62,8 @@
|
|
|
59
62
|
"redux": "^4.1.0",
|
|
60
63
|
"redux-immutable": "^4.0.0",
|
|
61
64
|
"redux-thunk": "^2.0.0",
|
|
65
|
+
"sass": "^1.49.9",
|
|
66
|
+
"sass-loader": "8.0.2",
|
|
62
67
|
"uuid": "^8.3.2"
|
|
63
68
|
}
|
|
64
69
|
}
|