config-editor-base 2.7.6 → 2.7.8
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/index.js +218 -75
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +218 -75
- package/dist/index.modern.js.map +1 -1
- package/dist/schema/Advanced/uischema-01.09.json +1012 -1012
- package/dist/schema/CANedge1/schema-01.09.json +2424 -2424
- package/dist/schema/CANedge1 GNSS/schema-01.09.json +2817 -2817
- package/dist/schema/CANedge2/schema-01.09.json +3002 -3002
- package/dist/schema/CANedge2 GNSS/schema-01.09.json +3395 -3395
- package/dist/schema/CANedge3 GNSS/schema-01.09.json +3214 -3214
- package/dist/schema/DemoConfig/config-01.09.json +414 -414
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -10,36 +10,21 @@ import applyNav, { GENERIC_NAV } from 'rjsf-tabs';
|
|
|
10
10
|
import { ReactGhLikeDiff } from 'react-gh-like-diff';
|
|
11
11
|
|
|
12
12
|
function _extends() {
|
|
13
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
14
|
-
for (var
|
|
15
|
-
var
|
|
16
|
-
for (var
|
|
17
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
18
|
-
target[key] = source[key];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
13
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
14
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
15
|
+
var t = arguments[e];
|
|
16
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
21
17
|
}
|
|
22
|
-
return
|
|
23
|
-
};
|
|
24
|
-
return _extends.apply(this, arguments);
|
|
18
|
+
return n;
|
|
19
|
+
}, _extends.apply(null, arguments);
|
|
25
20
|
}
|
|
26
|
-
function _inheritsLoose(
|
|
27
|
-
|
|
28
|
-
subClass.prototype.constructor = subClass;
|
|
29
|
-
_setPrototypeOf(subClass, superClass);
|
|
21
|
+
function _inheritsLoose(t, o) {
|
|
22
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
30
23
|
}
|
|
31
|
-
function _setPrototypeOf(
|
|
32
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
return _setPrototypeOf(o, p);
|
|
37
|
-
}
|
|
38
|
-
function _assertThisInitialized(self) {
|
|
39
|
-
if (self === void 0) {
|
|
40
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
41
|
-
}
|
|
42
|
-
return self;
|
|
24
|
+
function _setPrototypeOf(t, e) {
|
|
25
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
26
|
+
return t.__proto__ = e, t;
|
|
27
|
+
}, _setPrototypeOf(t, e);
|
|
43
28
|
}
|
|
44
29
|
|
|
45
30
|
var SET = "alert/SET";
|
|
@@ -176,9 +161,12 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
176
161
|
schemaAry = schemaAry.filter(function (e) {
|
|
177
162
|
return e.includes("CANedge3");
|
|
178
163
|
});
|
|
164
|
+
var demoFileName = "config-01.09.json";
|
|
179
165
|
var demoContent = {
|
|
180
166
|
"general": {
|
|
181
|
-
"device": {
|
|
167
|
+
"device": {
|
|
168
|
+
"meta": "Demo Config CE3G"
|
|
169
|
+
},
|
|
182
170
|
"security": {},
|
|
183
171
|
"debug": {
|
|
184
172
|
"syslog": 1,
|
|
@@ -187,8 +175,8 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
187
175
|
},
|
|
188
176
|
"log": {
|
|
189
177
|
"file": {
|
|
190
|
-
"split_size":
|
|
191
|
-
"split_time_period":
|
|
178
|
+
"split_size": 512,
|
|
179
|
+
"split_time_period": 900,
|
|
192
180
|
"split_time_offset": 0,
|
|
193
181
|
"cyclic": 1
|
|
194
182
|
},
|
|
@@ -218,12 +206,121 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
218
206
|
},
|
|
219
207
|
"filter": {
|
|
220
208
|
"id": [{
|
|
209
|
+
"name": "Heartbeat",
|
|
210
|
+
"state": 0,
|
|
211
|
+
"type": 0,
|
|
212
|
+
"id_format": 0,
|
|
213
|
+
"method": 0,
|
|
214
|
+
"f1": "2",
|
|
215
|
+
"f2": "2",
|
|
216
|
+
"prescaler_type": 0
|
|
217
|
+
}, {
|
|
218
|
+
"name": "TimeCalendar",
|
|
219
|
+
"state": 0,
|
|
220
|
+
"type": 0,
|
|
221
|
+
"id_format": 0,
|
|
222
|
+
"method": 0,
|
|
223
|
+
"f1": "3",
|
|
224
|
+
"f2": "3",
|
|
225
|
+
"prescaler_type": 0
|
|
226
|
+
}, {
|
|
227
|
+
"name": "TimeExternal",
|
|
228
|
+
"state": 0,
|
|
229
|
+
"type": 0,
|
|
230
|
+
"id_format": 0,
|
|
231
|
+
"method": 0,
|
|
232
|
+
"f1": "5",
|
|
233
|
+
"f2": "5",
|
|
234
|
+
"prescaler_type": 0
|
|
235
|
+
}, {
|
|
236
|
+
"name": "GnssStatus",
|
|
221
237
|
"state": 1,
|
|
222
238
|
"type": 0,
|
|
223
239
|
"id_format": 0,
|
|
224
240
|
"method": 0,
|
|
225
|
-
"f1": "
|
|
226
|
-
"f2": "
|
|
241
|
+
"f1": "65",
|
|
242
|
+
"f2": "65",
|
|
243
|
+
"prescaler_type": 0
|
|
244
|
+
}, {
|
|
245
|
+
"name": "GnssTime",
|
|
246
|
+
"state": 1,
|
|
247
|
+
"type": 0,
|
|
248
|
+
"id_format": 0,
|
|
249
|
+
"method": 0,
|
|
250
|
+
"f1": "66",
|
|
251
|
+
"f2": "66",
|
|
252
|
+
"prescaler_type": 0
|
|
253
|
+
}, {
|
|
254
|
+
"name": "GnsssPosition",
|
|
255
|
+
"state": 1,
|
|
256
|
+
"type": 0,
|
|
257
|
+
"id_format": 0,
|
|
258
|
+
"method": 0,
|
|
259
|
+
"f1": "67",
|
|
260
|
+
"f2": "67",
|
|
261
|
+
"prescaler_type": 0
|
|
262
|
+
}, {
|
|
263
|
+
"name": "GnssAltitude",
|
|
264
|
+
"state": 1,
|
|
265
|
+
"type": 0,
|
|
266
|
+
"id_format": 0,
|
|
267
|
+
"method": 0,
|
|
268
|
+
"f1": "68",
|
|
269
|
+
"f2": "68",
|
|
270
|
+
"prescaler_type": 0
|
|
271
|
+
}, {
|
|
272
|
+
"name": "GnssAttitude",
|
|
273
|
+
"state": 1,
|
|
274
|
+
"type": 0,
|
|
275
|
+
"id_format": 0,
|
|
276
|
+
"method": 0,
|
|
277
|
+
"f1": "69",
|
|
278
|
+
"f2": "69",
|
|
279
|
+
"prescaler_type": 0
|
|
280
|
+
}, {
|
|
281
|
+
"name": "GnssDistance",
|
|
282
|
+
"state": 1,
|
|
283
|
+
"type": 0,
|
|
284
|
+
"id_format": 0,
|
|
285
|
+
"method": 0,
|
|
286
|
+
"f1": "6A",
|
|
287
|
+
"f2": "6A",
|
|
288
|
+
"prescaler_type": 0
|
|
289
|
+
}, {
|
|
290
|
+
"name": "GnssSpeed",
|
|
291
|
+
"state": 1,
|
|
292
|
+
"type": 0,
|
|
293
|
+
"id_format": 0,
|
|
294
|
+
"method": 0,
|
|
295
|
+
"f1": "6B",
|
|
296
|
+
"f2": "6B",
|
|
297
|
+
"prescaler_type": 0
|
|
298
|
+
}, {
|
|
299
|
+
"name": "GnssGeofence",
|
|
300
|
+
"state": 1,
|
|
301
|
+
"type": 0,
|
|
302
|
+
"id_format": 0,
|
|
303
|
+
"method": 0,
|
|
304
|
+
"f1": "6C",
|
|
305
|
+
"f2": "6C",
|
|
306
|
+
"prescaler_type": 0
|
|
307
|
+
}, {
|
|
308
|
+
"name": "ImuAlign",
|
|
309
|
+
"state": 1,
|
|
310
|
+
"type": 0,
|
|
311
|
+
"id_format": 0,
|
|
312
|
+
"method": 0,
|
|
313
|
+
"f1": "6E",
|
|
314
|
+
"f2": "6E",
|
|
315
|
+
"prescaler_type": 0
|
|
316
|
+
}, {
|
|
317
|
+
"name": "ImuAcc",
|
|
318
|
+
"state": 1,
|
|
319
|
+
"type": 0,
|
|
320
|
+
"id_format": 0,
|
|
321
|
+
"method": 0,
|
|
322
|
+
"f1": "6F",
|
|
323
|
+
"f2": "6F",
|
|
227
324
|
"prescaler_type": 0
|
|
228
325
|
}]
|
|
229
326
|
},
|
|
@@ -239,7 +336,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
239
336
|
},
|
|
240
337
|
"signal": {
|
|
241
338
|
"type": 0,
|
|
242
|
-
"byteorder":
|
|
339
|
+
"byteorder": 0,
|
|
243
340
|
"bitpos": 0,
|
|
244
341
|
"length": 0,
|
|
245
342
|
"factor": 0,
|
|
@@ -257,7 +354,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
257
354
|
},
|
|
258
355
|
"signal": {
|
|
259
356
|
"type": 0,
|
|
260
|
-
"byteorder":
|
|
357
|
+
"byteorder": 0,
|
|
261
358
|
"bitpos": 0,
|
|
262
359
|
"length": 0,
|
|
263
360
|
"factor": 0,
|
|
@@ -274,7 +371,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
274
371
|
"tx_state": 1
|
|
275
372
|
},
|
|
276
373
|
"phy": {
|
|
277
|
-
"mode":
|
|
374
|
+
"mode": 0,
|
|
278
375
|
"retransmission": 1,
|
|
279
376
|
"fd_spec": 0,
|
|
280
377
|
"bit_rate_cfg_mode": 0
|
|
@@ -282,6 +379,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
282
379
|
"filter": {
|
|
283
380
|
"remote_frames": 0,
|
|
284
381
|
"id": [{
|
|
382
|
+
"name": "AllStandardID",
|
|
285
383
|
"state": 1,
|
|
286
384
|
"type": 0,
|
|
287
385
|
"id_format": 0,
|
|
@@ -289,6 +387,15 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
289
387
|
"f1": "0",
|
|
290
388
|
"f2": "7FF",
|
|
291
389
|
"prescaler_type": 0
|
|
390
|
+
}, {
|
|
391
|
+
"name": "AllExtendedID",
|
|
392
|
+
"state": 1,
|
|
393
|
+
"type": 0,
|
|
394
|
+
"id_format": 1,
|
|
395
|
+
"method": 0,
|
|
396
|
+
"f1": "0",
|
|
397
|
+
"f2": "1FFFFFFF",
|
|
398
|
+
"prescaler_type": 0
|
|
292
399
|
}]
|
|
293
400
|
},
|
|
294
401
|
"control": {
|
|
@@ -296,14 +403,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
296
403
|
"control_tx_state": 0,
|
|
297
404
|
"start": {
|
|
298
405
|
"message": {
|
|
299
|
-
"chn":
|
|
406
|
+
"chn": 1,
|
|
300
407
|
"id_format": 0,
|
|
301
408
|
"id": "0",
|
|
302
409
|
"id_mask": "7FF"
|
|
303
410
|
},
|
|
304
411
|
"signal": {
|
|
305
412
|
"type": 0,
|
|
306
|
-
"byteorder":
|
|
413
|
+
"byteorder": 0,
|
|
307
414
|
"bitpos": 0,
|
|
308
415
|
"length": 0,
|
|
309
416
|
"factor": 0,
|
|
@@ -314,14 +421,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
314
421
|
},
|
|
315
422
|
"stop": {
|
|
316
423
|
"message": {
|
|
317
|
-
"chn":
|
|
424
|
+
"chn": 1,
|
|
318
425
|
"id_format": 0,
|
|
319
426
|
"id": "0",
|
|
320
427
|
"id_mask": "7FF"
|
|
321
428
|
},
|
|
322
429
|
"signal": {
|
|
323
430
|
"type": 0,
|
|
324
|
-
"byteorder":
|
|
431
|
+
"byteorder": 0,
|
|
325
432
|
"bitpos": 0,
|
|
326
433
|
"length": 0,
|
|
327
434
|
"factor": 0,
|
|
@@ -338,7 +445,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
338
445
|
"tx_state": 1
|
|
339
446
|
},
|
|
340
447
|
"phy": {
|
|
341
|
-
"mode":
|
|
448
|
+
"mode": 0,
|
|
342
449
|
"retransmission": 1,
|
|
343
450
|
"fd_spec": 0,
|
|
344
451
|
"bit_rate_cfg_mode": 0
|
|
@@ -346,6 +453,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
346
453
|
"filter": {
|
|
347
454
|
"remote_frames": 0,
|
|
348
455
|
"id": [{
|
|
456
|
+
"name": "AllStandardID",
|
|
349
457
|
"state": 1,
|
|
350
458
|
"type": 0,
|
|
351
459
|
"id_format": 0,
|
|
@@ -353,6 +461,15 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
353
461
|
"f1": "0",
|
|
354
462
|
"f2": "7FF",
|
|
355
463
|
"prescaler_type": 0
|
|
464
|
+
}, {
|
|
465
|
+
"name": "AllExtendedID",
|
|
466
|
+
"state": 1,
|
|
467
|
+
"type": 0,
|
|
468
|
+
"id_format": 1,
|
|
469
|
+
"method": 0,
|
|
470
|
+
"f1": "0",
|
|
471
|
+
"f2": "1FFFFFFF",
|
|
472
|
+
"prescaler_type": 0
|
|
356
473
|
}]
|
|
357
474
|
},
|
|
358
475
|
"control": {
|
|
@@ -360,14 +477,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
360
477
|
"control_tx_state": 0,
|
|
361
478
|
"start": {
|
|
362
479
|
"message": {
|
|
363
|
-
"chn":
|
|
480
|
+
"chn": 2,
|
|
364
481
|
"id_format": 0,
|
|
365
482
|
"id": "0",
|
|
366
483
|
"id_mask": "7FF"
|
|
367
484
|
},
|
|
368
485
|
"signal": {
|
|
369
486
|
"type": 0,
|
|
370
|
-
"byteorder":
|
|
487
|
+
"byteorder": 0,
|
|
371
488
|
"bitpos": 0,
|
|
372
489
|
"length": 0,
|
|
373
490
|
"factor": 0,
|
|
@@ -378,14 +495,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
378
495
|
},
|
|
379
496
|
"stop": {
|
|
380
497
|
"message": {
|
|
381
|
-
"chn":
|
|
498
|
+
"chn": 2,
|
|
382
499
|
"id_format": 0,
|
|
383
500
|
"id": "0",
|
|
384
501
|
"id_mask": "7FF"
|
|
385
502
|
},
|
|
386
503
|
"signal": {
|
|
387
504
|
"type": 0,
|
|
388
|
-
"byteorder":
|
|
505
|
+
"byteorder": 0,
|
|
389
506
|
"bitpos": 0,
|
|
390
507
|
"length": 0,
|
|
391
508
|
"factor": 0,
|
|
@@ -408,12 +525,33 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
408
525
|
"bit_rate": 19200
|
|
409
526
|
}
|
|
410
527
|
},
|
|
528
|
+
"routing": [{
|
|
529
|
+
"name": "CAN9_Pos_To_CAN1",
|
|
530
|
+
"state": 1,
|
|
531
|
+
"log": 0,
|
|
532
|
+
"chn_src": 0,
|
|
533
|
+
"id_format_src": 0,
|
|
534
|
+
"id_src": "67",
|
|
535
|
+
"chn_dst": 1,
|
|
536
|
+
"id_format_dst": 0,
|
|
537
|
+
"id_dst": "42A"
|
|
538
|
+
}, {
|
|
539
|
+
"name": "LIN1_SoC_To_CAN2",
|
|
540
|
+
"state": 1,
|
|
541
|
+
"log": 0,
|
|
542
|
+
"chn_src": 3,
|
|
543
|
+
"id_format_src": 0,
|
|
544
|
+
"id_src": "22",
|
|
545
|
+
"chn_dst": 2,
|
|
546
|
+
"id_format_dst": 0,
|
|
547
|
+
"id_dst": "321"
|
|
548
|
+
}],
|
|
411
549
|
"connect": {
|
|
412
550
|
"cellular": {
|
|
413
551
|
"keyformat": 0,
|
|
414
|
-
"pin": "",
|
|
415
|
-
"apn": "",
|
|
416
|
-
"roaming":
|
|
552
|
+
"pin": "1234",
|
|
553
|
+
"apn": "myapn.net",
|
|
554
|
+
"roaming": 1
|
|
417
555
|
},
|
|
418
556
|
"protocol": 0,
|
|
419
557
|
"s3": {
|
|
@@ -423,8 +561,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
423
561
|
"logfiles": 1
|
|
424
562
|
},
|
|
425
563
|
"server": {
|
|
426
|
-
"
|
|
564
|
+
"endpoint": "https://s3.us-east-1.amazonaws.com",
|
|
565
|
+
"port": 443,
|
|
566
|
+
"bucket": "mytestbucket",
|
|
567
|
+
"region": "us-east-1",
|
|
568
|
+
"request_style": 1,
|
|
569
|
+
"accesskey": "AKIASLWXLZB45BCE2X5O",
|
|
427
570
|
"keyformat": 0,
|
|
571
|
+
"secretkey": "DiI12zYEf12312ASDZZZZdasdasihNqr9E34z",
|
|
428
572
|
"signed_payload": 0
|
|
429
573
|
}
|
|
430
574
|
}
|
|
@@ -438,14 +582,13 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
438
582
|
"y": 0,
|
|
439
583
|
"x": 0
|
|
440
584
|
},
|
|
441
|
-
"geofence": [
|
|
442
|
-
"lat": 10,
|
|
443
|
-
"lon": 20,
|
|
444
|
-
"radius": 1
|
|
445
|
-
}],
|
|
585
|
+
"geofence": [],
|
|
446
586
|
"dyn_model": 0
|
|
447
587
|
}
|
|
448
588
|
};
|
|
589
|
+
dispatch(setConfigContent(demoContent));
|
|
590
|
+
dispatch(setUpdatedFormData(demoContent));
|
|
591
|
+
dispatch(setConfigFile([demoFileName]));
|
|
449
592
|
dispatch(publicSchemaFiles(demoConfig, schemaAry, demoContent, uiSchemaAry));
|
|
450
593
|
}
|
|
451
594
|
};
|
|
@@ -18376,7 +18519,6 @@ var selectOptions = function selectOptions(Files) {
|
|
|
18376
18519
|
});
|
|
18377
18520
|
};
|
|
18378
18521
|
var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
18379
|
-
_inheritsLoose(EditorDropDown, _React$Component);
|
|
18380
18522
|
function EditorDropDown(props) {
|
|
18381
18523
|
var _this;
|
|
18382
18524
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -18396,6 +18538,7 @@ var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
18396
18538
|
};
|
|
18397
18539
|
return _this;
|
|
18398
18540
|
}
|
|
18541
|
+
_inheritsLoose(EditorDropDown, _React$Component);
|
|
18399
18542
|
var _proto = EditorDropDown.prototype;
|
|
18400
18543
|
_proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
18401
18544
|
if (nextProps.selected != "") {
|
|
@@ -18452,10 +18595,10 @@ var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
18452
18595
|
}(React.Component);
|
|
18453
18596
|
|
|
18454
18597
|
var EditorSchemaModal = /*#__PURE__*/function (_React$Component) {
|
|
18455
|
-
_inheritsLoose(EditorSchemaModal, _React$Component);
|
|
18456
18598
|
function EditorSchemaModal(props) {
|
|
18457
18599
|
return _React$Component.call(this, props) || this;
|
|
18458
18600
|
}
|
|
18601
|
+
_inheritsLoose(EditorSchemaModal, _React$Component);
|
|
18459
18602
|
var _proto = EditorSchemaModal.prototype;
|
|
18460
18603
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
18461
18604
|
this.props.resetFiles();
|
|
@@ -18523,15 +18666,14 @@ var EditorSchemaModal$1 = connect(null, mapDispatchToProps)(EditorSchemaModal);
|
|
|
18523
18666
|
var yourForm;
|
|
18524
18667
|
var merge = require("deepmerge");
|
|
18525
18668
|
var PartialConfigLoader = /*#__PURE__*/function (_React$Component) {
|
|
18526
|
-
_inheritsLoose(PartialConfigLoader, _React$Component);
|
|
18527
18669
|
function PartialConfigLoader(props) {
|
|
18528
18670
|
var _this;
|
|
18529
18671
|
_this = _React$Component.call(this, props) || this;
|
|
18530
|
-
_this.onReview = _this.onReview.bind(
|
|
18531
|
-
_this.onFilesError = _this.onFilesError.bind(
|
|
18532
|
-
_this.testMergedFile = _this.testMergedFile.bind(
|
|
18533
|
-
_this.onSubmit = _this.onSubmit.bind(
|
|
18534
|
-
_this.onValidationError = _this.onValidationError.bind(
|
|
18672
|
+
_this.onReview = _this.onReview.bind(_this);
|
|
18673
|
+
_this.onFilesError = _this.onFilesError.bind(_this);
|
|
18674
|
+
_this.testMergedFile = _this.testMergedFile.bind(_this);
|
|
18675
|
+
_this.onSubmit = _this.onSubmit.bind(_this);
|
|
18676
|
+
_this.onValidationError = _this.onValidationError.bind(_this);
|
|
18535
18677
|
_this.state = {
|
|
18536
18678
|
jsonFile: {},
|
|
18537
18679
|
jsonFileName: "",
|
|
@@ -18552,6 +18694,7 @@ var PartialConfigLoader = /*#__PURE__*/function (_React$Component) {
|
|
|
18552
18694
|
};
|
|
18553
18695
|
return _this;
|
|
18554
18696
|
}
|
|
18697
|
+
_inheritsLoose(PartialConfigLoader, _React$Component);
|
|
18555
18698
|
var _proto = PartialConfigLoader.prototype;
|
|
18556
18699
|
_proto.onSubmit = function onSubmit() {
|
|
18557
18700
|
this.setState({
|
|
@@ -18689,10 +18832,10 @@ var mapDispatchToProps$1 = function mapDispatchToProps(dispatch) {
|
|
|
18689
18832
|
var PartialConfigLoader$1 = connect(mapStateToProps, mapDispatchToProps$1)(PartialConfigLoader);
|
|
18690
18833
|
|
|
18691
18834
|
var EditorToolButton = /*#__PURE__*/function (_React$Component) {
|
|
18692
|
-
_inheritsLoose(EditorToolButton, _React$Component);
|
|
18693
18835
|
function EditorToolButton(props) {
|
|
18694
18836
|
return _React$Component.call(this, props) || this;
|
|
18695
18837
|
}
|
|
18838
|
+
_inheritsLoose(EditorToolButton, _React$Component);
|
|
18696
18839
|
var _proto = EditorToolButton.prototype;
|
|
18697
18840
|
_proto.render = function render() {
|
|
18698
18841
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -18714,10 +18857,10 @@ var EditorToolButton = /*#__PURE__*/function (_React$Component) {
|
|
|
18714
18857
|
}(React.Component);
|
|
18715
18858
|
|
|
18716
18859
|
var EditorToolModalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
18717
|
-
_inheritsLoose(EditorToolModalWrapper, _React$Component);
|
|
18718
18860
|
function EditorToolModalWrapper(props) {
|
|
18719
18861
|
return _React$Component.call(this, props) || this;
|
|
18720
18862
|
}
|
|
18863
|
+
_inheritsLoose(EditorToolModalWrapper, _React$Component);
|
|
18721
18864
|
var _proto = EditorToolModalWrapper.prototype;
|
|
18722
18865
|
_proto.render = function render() {
|
|
18723
18866
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -18832,7 +18975,6 @@ var _require$1 = require("detect-browser"),
|
|
|
18832
18975
|
var browser$1 = detect$1();
|
|
18833
18976
|
var crcBrowserSupport$1 = ["chrome", "firefox", "opera", "safari", "edge"].includes(browser$1.name);
|
|
18834
18977
|
var EditorChangesComparison = /*#__PURE__*/function (_React$Component) {
|
|
18835
|
-
_inheritsLoose(EditorChangesComparison, _React$Component);
|
|
18836
18978
|
function EditorChangesComparison(props) {
|
|
18837
18979
|
var _this;
|
|
18838
18980
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -18844,13 +18986,14 @@ var EditorChangesComparison = /*#__PURE__*/function (_React$Component) {
|
|
|
18844
18986
|
_this.handleSelectChange = function (selectedValue) {
|
|
18845
18987
|
_this.props.handleDropdownChange(selectedValue.value, "Previous Configuration File");
|
|
18846
18988
|
};
|
|
18847
|
-
_this.toggleCheckbox = _this.toggleCheckbox.bind(
|
|
18848
|
-
_this.handleSelectChange = _this.handleSelectChange.bind(
|
|
18989
|
+
_this.toggleCheckbox = _this.toggleCheckbox.bind(_this);
|
|
18990
|
+
_this.handleSelectChange = _this.handleSelectChange.bind(_this);
|
|
18849
18991
|
_this.state = {
|
|
18850
18992
|
hideWhiteSpace: true
|
|
18851
18993
|
};
|
|
18852
18994
|
return _this;
|
|
18853
18995
|
}
|
|
18996
|
+
_inheritsLoose(EditorChangesComparison, _React$Component);
|
|
18854
18997
|
var _proto = EditorChangesComparison.prototype;
|
|
18855
18998
|
_proto.render = function render() {
|
|
18856
18999
|
var _this$props = this.props,
|
|
@@ -18965,7 +19108,6 @@ var regexRevision = new RegExp('\\d{2}\\.\\d{2}\\.json', 'g');
|
|
|
18965
19108
|
var isDownloadConfig = false;
|
|
18966
19109
|
var activatedTab;
|
|
18967
19110
|
var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
18968
|
-
_inheritsLoose(EditorSection, _React$Component);
|
|
18969
19111
|
function EditorSection(props) {
|
|
18970
19112
|
var _this;
|
|
18971
19113
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -18977,14 +19119,14 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
18977
19119
|
activatedTab = nav[0];
|
|
18978
19120
|
};
|
|
18979
19121
|
_this.editorForm = React.createRef();
|
|
18980
|
-
_this.handleCompareChanges = _this.handleCompareChanges.bind(
|
|
18981
|
-
_this.closeChangesModal = _this.closeChangesModal.bind(
|
|
18982
|
-
_this.handleError = _this.handleError.bind(
|
|
18983
|
-
_this.onSubmit = _this.onSubmit.bind(
|
|
18984
|
-
_this.escFunction = _this.escFunction.bind(
|
|
18985
|
-
_this.subMenuBtnClick = _this.subMenuBtnClick.bind(
|
|
18986
|
-
_this.handleDropdownChange = _this.handleDropdownChange.bind(
|
|
18987
|
-
_this.hideUischemaModal = _this.hideUischemaModal.bind(
|
|
19122
|
+
_this.handleCompareChanges = _this.handleCompareChanges.bind(_this);
|
|
19123
|
+
_this.closeChangesModal = _this.closeChangesModal.bind(_this);
|
|
19124
|
+
_this.handleError = _this.handleError.bind(_this);
|
|
19125
|
+
_this.onSubmit = _this.onSubmit.bind(_this);
|
|
19126
|
+
_this.escFunction = _this.escFunction.bind(_this);
|
|
19127
|
+
_this.subMenuBtnClick = _this.subMenuBtnClick.bind(_this);
|
|
19128
|
+
_this.handleDropdownChange = _this.handleDropdownChange.bind(_this);
|
|
19129
|
+
_this.hideUischemaModal = _this.hideUischemaModal.bind(_this);
|
|
18988
19130
|
_this.state = {
|
|
18989
19131
|
showUischemaModal: true,
|
|
18990
19132
|
schema: '',
|
|
@@ -19006,6 +19148,7 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
19006
19148
|
_this.s3 = _this.props.fetchFileContentExt ? true : false;
|
|
19007
19149
|
return _this;
|
|
19008
19150
|
}
|
|
19151
|
+
_inheritsLoose(EditorSection, _React$Component);
|
|
19009
19152
|
var _proto = EditorSection.prototype;
|
|
19010
19153
|
_proto.escFunction = function escFunction(event) {
|
|
19011
19154
|
if (event.keyCode === 27) {
|