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.js
CHANGED
|
@@ -13,36 +13,21 @@ var applyNav__default = _interopDefault(applyNav);
|
|
|
13
13
|
var reactGhLikeDiff = require('react-gh-like-diff');
|
|
14
14
|
|
|
15
15
|
function _extends() {
|
|
16
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
17
|
-
for (var
|
|
18
|
-
var
|
|
19
|
-
for (var
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
21
|
-
target[key] = source[key];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
16
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
17
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
18
|
+
var t = arguments[e];
|
|
19
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
24
20
|
}
|
|
25
|
-
return
|
|
26
|
-
};
|
|
27
|
-
return _extends.apply(this, arguments);
|
|
21
|
+
return n;
|
|
22
|
+
}, _extends.apply(null, arguments);
|
|
28
23
|
}
|
|
29
|
-
function _inheritsLoose(
|
|
30
|
-
|
|
31
|
-
subClass.prototype.constructor = subClass;
|
|
32
|
-
_setPrototypeOf(subClass, superClass);
|
|
24
|
+
function _inheritsLoose(t, o) {
|
|
25
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
33
26
|
}
|
|
34
|
-
function _setPrototypeOf(
|
|
35
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
return _setPrototypeOf(o, p);
|
|
40
|
-
}
|
|
41
|
-
function _assertThisInitialized(self) {
|
|
42
|
-
if (self === void 0) {
|
|
43
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
44
|
-
}
|
|
45
|
-
return self;
|
|
27
|
+
function _setPrototypeOf(t, e) {
|
|
28
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
29
|
+
return t.__proto__ = e, t;
|
|
30
|
+
}, _setPrototypeOf(t, e);
|
|
46
31
|
}
|
|
47
32
|
|
|
48
33
|
var SET = "alert/SET";
|
|
@@ -179,9 +164,12 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
179
164
|
schemaAry = schemaAry.filter(function (e) {
|
|
180
165
|
return e.includes("CANedge3");
|
|
181
166
|
});
|
|
167
|
+
var demoFileName = "config-01.09.json";
|
|
182
168
|
var demoContent = {
|
|
183
169
|
"general": {
|
|
184
|
-
"device": {
|
|
170
|
+
"device": {
|
|
171
|
+
"meta": "Demo Config CE3G"
|
|
172
|
+
},
|
|
185
173
|
"security": {},
|
|
186
174
|
"debug": {
|
|
187
175
|
"syslog": 1,
|
|
@@ -190,8 +178,8 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
190
178
|
},
|
|
191
179
|
"log": {
|
|
192
180
|
"file": {
|
|
193
|
-
"split_size":
|
|
194
|
-
"split_time_period":
|
|
181
|
+
"split_size": 512,
|
|
182
|
+
"split_time_period": 900,
|
|
195
183
|
"split_time_offset": 0,
|
|
196
184
|
"cyclic": 1
|
|
197
185
|
},
|
|
@@ -221,12 +209,121 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
221
209
|
},
|
|
222
210
|
"filter": {
|
|
223
211
|
"id": [{
|
|
212
|
+
"name": "Heartbeat",
|
|
213
|
+
"state": 0,
|
|
214
|
+
"type": 0,
|
|
215
|
+
"id_format": 0,
|
|
216
|
+
"method": 0,
|
|
217
|
+
"f1": "2",
|
|
218
|
+
"f2": "2",
|
|
219
|
+
"prescaler_type": 0
|
|
220
|
+
}, {
|
|
221
|
+
"name": "TimeCalendar",
|
|
222
|
+
"state": 0,
|
|
223
|
+
"type": 0,
|
|
224
|
+
"id_format": 0,
|
|
225
|
+
"method": 0,
|
|
226
|
+
"f1": "3",
|
|
227
|
+
"f2": "3",
|
|
228
|
+
"prescaler_type": 0
|
|
229
|
+
}, {
|
|
230
|
+
"name": "TimeExternal",
|
|
231
|
+
"state": 0,
|
|
232
|
+
"type": 0,
|
|
233
|
+
"id_format": 0,
|
|
234
|
+
"method": 0,
|
|
235
|
+
"f1": "5",
|
|
236
|
+
"f2": "5",
|
|
237
|
+
"prescaler_type": 0
|
|
238
|
+
}, {
|
|
239
|
+
"name": "GnssStatus",
|
|
224
240
|
"state": 1,
|
|
225
241
|
"type": 0,
|
|
226
242
|
"id_format": 0,
|
|
227
243
|
"method": 0,
|
|
228
|
-
"f1": "
|
|
229
|
-
"f2": "
|
|
244
|
+
"f1": "65",
|
|
245
|
+
"f2": "65",
|
|
246
|
+
"prescaler_type": 0
|
|
247
|
+
}, {
|
|
248
|
+
"name": "GnssTime",
|
|
249
|
+
"state": 1,
|
|
250
|
+
"type": 0,
|
|
251
|
+
"id_format": 0,
|
|
252
|
+
"method": 0,
|
|
253
|
+
"f1": "66",
|
|
254
|
+
"f2": "66",
|
|
255
|
+
"prescaler_type": 0
|
|
256
|
+
}, {
|
|
257
|
+
"name": "GnsssPosition",
|
|
258
|
+
"state": 1,
|
|
259
|
+
"type": 0,
|
|
260
|
+
"id_format": 0,
|
|
261
|
+
"method": 0,
|
|
262
|
+
"f1": "67",
|
|
263
|
+
"f2": "67",
|
|
264
|
+
"prescaler_type": 0
|
|
265
|
+
}, {
|
|
266
|
+
"name": "GnssAltitude",
|
|
267
|
+
"state": 1,
|
|
268
|
+
"type": 0,
|
|
269
|
+
"id_format": 0,
|
|
270
|
+
"method": 0,
|
|
271
|
+
"f1": "68",
|
|
272
|
+
"f2": "68",
|
|
273
|
+
"prescaler_type": 0
|
|
274
|
+
}, {
|
|
275
|
+
"name": "GnssAttitude",
|
|
276
|
+
"state": 1,
|
|
277
|
+
"type": 0,
|
|
278
|
+
"id_format": 0,
|
|
279
|
+
"method": 0,
|
|
280
|
+
"f1": "69",
|
|
281
|
+
"f2": "69",
|
|
282
|
+
"prescaler_type": 0
|
|
283
|
+
}, {
|
|
284
|
+
"name": "GnssDistance",
|
|
285
|
+
"state": 1,
|
|
286
|
+
"type": 0,
|
|
287
|
+
"id_format": 0,
|
|
288
|
+
"method": 0,
|
|
289
|
+
"f1": "6A",
|
|
290
|
+
"f2": "6A",
|
|
291
|
+
"prescaler_type": 0
|
|
292
|
+
}, {
|
|
293
|
+
"name": "GnssSpeed",
|
|
294
|
+
"state": 1,
|
|
295
|
+
"type": 0,
|
|
296
|
+
"id_format": 0,
|
|
297
|
+
"method": 0,
|
|
298
|
+
"f1": "6B",
|
|
299
|
+
"f2": "6B",
|
|
300
|
+
"prescaler_type": 0
|
|
301
|
+
}, {
|
|
302
|
+
"name": "GnssGeofence",
|
|
303
|
+
"state": 1,
|
|
304
|
+
"type": 0,
|
|
305
|
+
"id_format": 0,
|
|
306
|
+
"method": 0,
|
|
307
|
+
"f1": "6C",
|
|
308
|
+
"f2": "6C",
|
|
309
|
+
"prescaler_type": 0
|
|
310
|
+
}, {
|
|
311
|
+
"name": "ImuAlign",
|
|
312
|
+
"state": 1,
|
|
313
|
+
"type": 0,
|
|
314
|
+
"id_format": 0,
|
|
315
|
+
"method": 0,
|
|
316
|
+
"f1": "6E",
|
|
317
|
+
"f2": "6E",
|
|
318
|
+
"prescaler_type": 0
|
|
319
|
+
}, {
|
|
320
|
+
"name": "ImuAcc",
|
|
321
|
+
"state": 1,
|
|
322
|
+
"type": 0,
|
|
323
|
+
"id_format": 0,
|
|
324
|
+
"method": 0,
|
|
325
|
+
"f1": "6F",
|
|
326
|
+
"f2": "6F",
|
|
230
327
|
"prescaler_type": 0
|
|
231
328
|
}]
|
|
232
329
|
},
|
|
@@ -242,7 +339,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
242
339
|
},
|
|
243
340
|
"signal": {
|
|
244
341
|
"type": 0,
|
|
245
|
-
"byteorder":
|
|
342
|
+
"byteorder": 0,
|
|
246
343
|
"bitpos": 0,
|
|
247
344
|
"length": 0,
|
|
248
345
|
"factor": 0,
|
|
@@ -260,7 +357,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
260
357
|
},
|
|
261
358
|
"signal": {
|
|
262
359
|
"type": 0,
|
|
263
|
-
"byteorder":
|
|
360
|
+
"byteorder": 0,
|
|
264
361
|
"bitpos": 0,
|
|
265
362
|
"length": 0,
|
|
266
363
|
"factor": 0,
|
|
@@ -277,7 +374,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
277
374
|
"tx_state": 1
|
|
278
375
|
},
|
|
279
376
|
"phy": {
|
|
280
|
-
"mode":
|
|
377
|
+
"mode": 0,
|
|
281
378
|
"retransmission": 1,
|
|
282
379
|
"fd_spec": 0,
|
|
283
380
|
"bit_rate_cfg_mode": 0
|
|
@@ -285,6 +382,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
285
382
|
"filter": {
|
|
286
383
|
"remote_frames": 0,
|
|
287
384
|
"id": [{
|
|
385
|
+
"name": "AllStandardID",
|
|
288
386
|
"state": 1,
|
|
289
387
|
"type": 0,
|
|
290
388
|
"id_format": 0,
|
|
@@ -292,6 +390,15 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
292
390
|
"f1": "0",
|
|
293
391
|
"f2": "7FF",
|
|
294
392
|
"prescaler_type": 0
|
|
393
|
+
}, {
|
|
394
|
+
"name": "AllExtendedID",
|
|
395
|
+
"state": 1,
|
|
396
|
+
"type": 0,
|
|
397
|
+
"id_format": 1,
|
|
398
|
+
"method": 0,
|
|
399
|
+
"f1": "0",
|
|
400
|
+
"f2": "1FFFFFFF",
|
|
401
|
+
"prescaler_type": 0
|
|
295
402
|
}]
|
|
296
403
|
},
|
|
297
404
|
"control": {
|
|
@@ -299,14 +406,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
299
406
|
"control_tx_state": 0,
|
|
300
407
|
"start": {
|
|
301
408
|
"message": {
|
|
302
|
-
"chn":
|
|
409
|
+
"chn": 1,
|
|
303
410
|
"id_format": 0,
|
|
304
411
|
"id": "0",
|
|
305
412
|
"id_mask": "7FF"
|
|
306
413
|
},
|
|
307
414
|
"signal": {
|
|
308
415
|
"type": 0,
|
|
309
|
-
"byteorder":
|
|
416
|
+
"byteorder": 0,
|
|
310
417
|
"bitpos": 0,
|
|
311
418
|
"length": 0,
|
|
312
419
|
"factor": 0,
|
|
@@ -317,14 +424,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
317
424
|
},
|
|
318
425
|
"stop": {
|
|
319
426
|
"message": {
|
|
320
|
-
"chn":
|
|
427
|
+
"chn": 1,
|
|
321
428
|
"id_format": 0,
|
|
322
429
|
"id": "0",
|
|
323
430
|
"id_mask": "7FF"
|
|
324
431
|
},
|
|
325
432
|
"signal": {
|
|
326
433
|
"type": 0,
|
|
327
|
-
"byteorder":
|
|
434
|
+
"byteorder": 0,
|
|
328
435
|
"bitpos": 0,
|
|
329
436
|
"length": 0,
|
|
330
437
|
"factor": 0,
|
|
@@ -341,7 +448,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
341
448
|
"tx_state": 1
|
|
342
449
|
},
|
|
343
450
|
"phy": {
|
|
344
|
-
"mode":
|
|
451
|
+
"mode": 0,
|
|
345
452
|
"retransmission": 1,
|
|
346
453
|
"fd_spec": 0,
|
|
347
454
|
"bit_rate_cfg_mode": 0
|
|
@@ -349,6 +456,7 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
349
456
|
"filter": {
|
|
350
457
|
"remote_frames": 0,
|
|
351
458
|
"id": [{
|
|
459
|
+
"name": "AllStandardID",
|
|
352
460
|
"state": 1,
|
|
353
461
|
"type": 0,
|
|
354
462
|
"id_format": 0,
|
|
@@ -356,6 +464,15 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
356
464
|
"f1": "0",
|
|
357
465
|
"f2": "7FF",
|
|
358
466
|
"prescaler_type": 0
|
|
467
|
+
}, {
|
|
468
|
+
"name": "AllExtendedID",
|
|
469
|
+
"state": 1,
|
|
470
|
+
"type": 0,
|
|
471
|
+
"id_format": 1,
|
|
472
|
+
"method": 0,
|
|
473
|
+
"f1": "0",
|
|
474
|
+
"f2": "1FFFFFFF",
|
|
475
|
+
"prescaler_type": 0
|
|
359
476
|
}]
|
|
360
477
|
},
|
|
361
478
|
"control": {
|
|
@@ -363,14 +480,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
363
480
|
"control_tx_state": 0,
|
|
364
481
|
"start": {
|
|
365
482
|
"message": {
|
|
366
|
-
"chn":
|
|
483
|
+
"chn": 2,
|
|
367
484
|
"id_format": 0,
|
|
368
485
|
"id": "0",
|
|
369
486
|
"id_mask": "7FF"
|
|
370
487
|
},
|
|
371
488
|
"signal": {
|
|
372
489
|
"type": 0,
|
|
373
|
-
"byteorder":
|
|
490
|
+
"byteorder": 0,
|
|
374
491
|
"bitpos": 0,
|
|
375
492
|
"length": 0,
|
|
376
493
|
"factor": 0,
|
|
@@ -381,14 +498,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
381
498
|
},
|
|
382
499
|
"stop": {
|
|
383
500
|
"message": {
|
|
384
|
-
"chn":
|
|
501
|
+
"chn": 2,
|
|
385
502
|
"id_format": 0,
|
|
386
503
|
"id": "0",
|
|
387
504
|
"id_mask": "7FF"
|
|
388
505
|
},
|
|
389
506
|
"signal": {
|
|
390
507
|
"type": 0,
|
|
391
|
-
"byteorder":
|
|
508
|
+
"byteorder": 0,
|
|
392
509
|
"bitpos": 0,
|
|
393
510
|
"length": 0,
|
|
394
511
|
"factor": 0,
|
|
@@ -411,12 +528,33 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
411
528
|
"bit_rate": 19200
|
|
412
529
|
}
|
|
413
530
|
},
|
|
531
|
+
"routing": [{
|
|
532
|
+
"name": "CAN9_Pos_To_CAN1",
|
|
533
|
+
"state": 1,
|
|
534
|
+
"log": 0,
|
|
535
|
+
"chn_src": 0,
|
|
536
|
+
"id_format_src": 0,
|
|
537
|
+
"id_src": "67",
|
|
538
|
+
"chn_dst": 1,
|
|
539
|
+
"id_format_dst": 0,
|
|
540
|
+
"id_dst": "42A"
|
|
541
|
+
}, {
|
|
542
|
+
"name": "LIN1_SoC_To_CAN2",
|
|
543
|
+
"state": 1,
|
|
544
|
+
"log": 0,
|
|
545
|
+
"chn_src": 3,
|
|
546
|
+
"id_format_src": 0,
|
|
547
|
+
"id_src": "22",
|
|
548
|
+
"chn_dst": 2,
|
|
549
|
+
"id_format_dst": 0,
|
|
550
|
+
"id_dst": "321"
|
|
551
|
+
}],
|
|
414
552
|
"connect": {
|
|
415
553
|
"cellular": {
|
|
416
554
|
"keyformat": 0,
|
|
417
|
-
"pin": "",
|
|
418
|
-
"apn": "",
|
|
419
|
-
"roaming":
|
|
555
|
+
"pin": "1234",
|
|
556
|
+
"apn": "myapn.net",
|
|
557
|
+
"roaming": 1
|
|
420
558
|
},
|
|
421
559
|
"protocol": 0,
|
|
422
560
|
"s3": {
|
|
@@ -426,8 +564,14 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
426
564
|
"logfiles": 1
|
|
427
565
|
},
|
|
428
566
|
"server": {
|
|
429
|
-
"
|
|
567
|
+
"endpoint": "https://s3.us-east-1.amazonaws.com",
|
|
568
|
+
"port": 443,
|
|
569
|
+
"bucket": "mytestbucket",
|
|
570
|
+
"region": "us-east-1",
|
|
571
|
+
"request_style": 1,
|
|
572
|
+
"accesskey": "AKIASLWXLZB45BCE2X5O",
|
|
430
573
|
"keyformat": 0,
|
|
574
|
+
"secretkey": "DiI12zYEf12312ASDZZZZdasdasihNqr9E34z",
|
|
431
575
|
"signed_payload": 0
|
|
432
576
|
}
|
|
433
577
|
}
|
|
@@ -441,14 +585,13 @@ var publicUiSchemaFiles = function publicUiSchemaFiles(uiSchemaAry, schemaAry, d
|
|
|
441
585
|
"y": 0,
|
|
442
586
|
"x": 0
|
|
443
587
|
},
|
|
444
|
-
"geofence": [
|
|
445
|
-
"lat": 10,
|
|
446
|
-
"lon": 20,
|
|
447
|
-
"radius": 1
|
|
448
|
-
}],
|
|
588
|
+
"geofence": [],
|
|
449
589
|
"dyn_model": 0
|
|
450
590
|
}
|
|
451
591
|
};
|
|
592
|
+
dispatch(setConfigContent(demoContent));
|
|
593
|
+
dispatch(setUpdatedFormData(demoContent));
|
|
594
|
+
dispatch(setConfigFile([demoFileName]));
|
|
452
595
|
dispatch(publicSchemaFiles(demoConfig, schemaAry, demoContent, uiSchemaAry));
|
|
453
596
|
}
|
|
454
597
|
};
|
|
@@ -18379,7 +18522,6 @@ var selectOptions = function selectOptions(Files) {
|
|
|
18379
18522
|
});
|
|
18380
18523
|
};
|
|
18381
18524
|
var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
18382
|
-
_inheritsLoose(EditorDropDown, _React$Component);
|
|
18383
18525
|
function EditorDropDown(props) {
|
|
18384
18526
|
var _this;
|
|
18385
18527
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -18399,6 +18541,7 @@ var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
18399
18541
|
};
|
|
18400
18542
|
return _this;
|
|
18401
18543
|
}
|
|
18544
|
+
_inheritsLoose(EditorDropDown, _React$Component);
|
|
18402
18545
|
var _proto = EditorDropDown.prototype;
|
|
18403
18546
|
_proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
18404
18547
|
if (nextProps.selected != "") {
|
|
@@ -18455,10 +18598,10 @@ var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
18455
18598
|
}(React.Component);
|
|
18456
18599
|
|
|
18457
18600
|
var EditorSchemaModal = /*#__PURE__*/function (_React$Component) {
|
|
18458
|
-
_inheritsLoose(EditorSchemaModal, _React$Component);
|
|
18459
18601
|
function EditorSchemaModal(props) {
|
|
18460
18602
|
return _React$Component.call(this, props) || this;
|
|
18461
18603
|
}
|
|
18604
|
+
_inheritsLoose(EditorSchemaModal, _React$Component);
|
|
18462
18605
|
var _proto = EditorSchemaModal.prototype;
|
|
18463
18606
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
18464
18607
|
this.props.resetFiles();
|
|
@@ -18526,15 +18669,14 @@ var EditorSchemaModal$1 = reactRedux.connect(null, mapDispatchToProps)(EditorSch
|
|
|
18526
18669
|
var yourForm;
|
|
18527
18670
|
var merge = require("deepmerge");
|
|
18528
18671
|
var PartialConfigLoader = /*#__PURE__*/function (_React$Component) {
|
|
18529
|
-
_inheritsLoose(PartialConfigLoader, _React$Component);
|
|
18530
18672
|
function PartialConfigLoader(props) {
|
|
18531
18673
|
var _this;
|
|
18532
18674
|
_this = _React$Component.call(this, props) || this;
|
|
18533
|
-
_this.onReview = _this.onReview.bind(
|
|
18534
|
-
_this.onFilesError = _this.onFilesError.bind(
|
|
18535
|
-
_this.testMergedFile = _this.testMergedFile.bind(
|
|
18536
|
-
_this.onSubmit = _this.onSubmit.bind(
|
|
18537
|
-
_this.onValidationError = _this.onValidationError.bind(
|
|
18675
|
+
_this.onReview = _this.onReview.bind(_this);
|
|
18676
|
+
_this.onFilesError = _this.onFilesError.bind(_this);
|
|
18677
|
+
_this.testMergedFile = _this.testMergedFile.bind(_this);
|
|
18678
|
+
_this.onSubmit = _this.onSubmit.bind(_this);
|
|
18679
|
+
_this.onValidationError = _this.onValidationError.bind(_this);
|
|
18538
18680
|
_this.state = {
|
|
18539
18681
|
jsonFile: {},
|
|
18540
18682
|
jsonFileName: "",
|
|
@@ -18555,6 +18697,7 @@ var PartialConfigLoader = /*#__PURE__*/function (_React$Component) {
|
|
|
18555
18697
|
};
|
|
18556
18698
|
return _this;
|
|
18557
18699
|
}
|
|
18700
|
+
_inheritsLoose(PartialConfigLoader, _React$Component);
|
|
18558
18701
|
var _proto = PartialConfigLoader.prototype;
|
|
18559
18702
|
_proto.onSubmit = function onSubmit() {
|
|
18560
18703
|
this.setState({
|
|
@@ -18692,10 +18835,10 @@ var mapDispatchToProps$1 = function mapDispatchToProps(dispatch) {
|
|
|
18692
18835
|
var PartialConfigLoader$1 = reactRedux.connect(mapStateToProps, mapDispatchToProps$1)(PartialConfigLoader);
|
|
18693
18836
|
|
|
18694
18837
|
var EditorToolButton = /*#__PURE__*/function (_React$Component) {
|
|
18695
|
-
_inheritsLoose(EditorToolButton, _React$Component);
|
|
18696
18838
|
function EditorToolButton(props) {
|
|
18697
18839
|
return _React$Component.call(this, props) || this;
|
|
18698
18840
|
}
|
|
18841
|
+
_inheritsLoose(EditorToolButton, _React$Component);
|
|
18699
18842
|
var _proto = EditorToolButton.prototype;
|
|
18700
18843
|
_proto.render = function render() {
|
|
18701
18844
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -18717,10 +18860,10 @@ var EditorToolButton = /*#__PURE__*/function (_React$Component) {
|
|
|
18717
18860
|
}(React.Component);
|
|
18718
18861
|
|
|
18719
18862
|
var EditorToolModalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
18720
|
-
_inheritsLoose(EditorToolModalWrapper, _React$Component);
|
|
18721
18863
|
function EditorToolModalWrapper(props) {
|
|
18722
18864
|
return _React$Component.call(this, props) || this;
|
|
18723
18865
|
}
|
|
18866
|
+
_inheritsLoose(EditorToolModalWrapper, _React$Component);
|
|
18724
18867
|
var _proto = EditorToolModalWrapper.prototype;
|
|
18725
18868
|
_proto.render = function render() {
|
|
18726
18869
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -18835,7 +18978,6 @@ var _require$1 = require("detect-browser"),
|
|
|
18835
18978
|
var browser$1 = detect$1();
|
|
18836
18979
|
var crcBrowserSupport$1 = ["chrome", "firefox", "opera", "safari", "edge"].includes(browser$1.name);
|
|
18837
18980
|
var EditorChangesComparison = /*#__PURE__*/function (_React$Component) {
|
|
18838
|
-
_inheritsLoose(EditorChangesComparison, _React$Component);
|
|
18839
18981
|
function EditorChangesComparison(props) {
|
|
18840
18982
|
var _this;
|
|
18841
18983
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -18847,13 +18989,14 @@ var EditorChangesComparison = /*#__PURE__*/function (_React$Component) {
|
|
|
18847
18989
|
_this.handleSelectChange = function (selectedValue) {
|
|
18848
18990
|
_this.props.handleDropdownChange(selectedValue.value, "Previous Configuration File");
|
|
18849
18991
|
};
|
|
18850
|
-
_this.toggleCheckbox = _this.toggleCheckbox.bind(
|
|
18851
|
-
_this.handleSelectChange = _this.handleSelectChange.bind(
|
|
18992
|
+
_this.toggleCheckbox = _this.toggleCheckbox.bind(_this);
|
|
18993
|
+
_this.handleSelectChange = _this.handleSelectChange.bind(_this);
|
|
18852
18994
|
_this.state = {
|
|
18853
18995
|
hideWhiteSpace: true
|
|
18854
18996
|
};
|
|
18855
18997
|
return _this;
|
|
18856
18998
|
}
|
|
18999
|
+
_inheritsLoose(EditorChangesComparison, _React$Component);
|
|
18857
19000
|
var _proto = EditorChangesComparison.prototype;
|
|
18858
19001
|
_proto.render = function render() {
|
|
18859
19002
|
var _this$props = this.props,
|
|
@@ -18968,7 +19111,6 @@ var regexRevision = new RegExp('\\d{2}\\.\\d{2}\\.json', 'g');
|
|
|
18968
19111
|
var isDownloadConfig = false;
|
|
18969
19112
|
var activatedTab;
|
|
18970
19113
|
var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
18971
|
-
_inheritsLoose(EditorSection, _React$Component);
|
|
18972
19114
|
function EditorSection(props) {
|
|
18973
19115
|
var _this;
|
|
18974
19116
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -18980,14 +19122,14 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
18980
19122
|
activatedTab = nav[0];
|
|
18981
19123
|
};
|
|
18982
19124
|
_this.editorForm = React.createRef();
|
|
18983
|
-
_this.handleCompareChanges = _this.handleCompareChanges.bind(
|
|
18984
|
-
_this.closeChangesModal = _this.closeChangesModal.bind(
|
|
18985
|
-
_this.handleError = _this.handleError.bind(
|
|
18986
|
-
_this.onSubmit = _this.onSubmit.bind(
|
|
18987
|
-
_this.escFunction = _this.escFunction.bind(
|
|
18988
|
-
_this.subMenuBtnClick = _this.subMenuBtnClick.bind(
|
|
18989
|
-
_this.handleDropdownChange = _this.handleDropdownChange.bind(
|
|
18990
|
-
_this.hideUischemaModal = _this.hideUischemaModal.bind(
|
|
19125
|
+
_this.handleCompareChanges = _this.handleCompareChanges.bind(_this);
|
|
19126
|
+
_this.closeChangesModal = _this.closeChangesModal.bind(_this);
|
|
19127
|
+
_this.handleError = _this.handleError.bind(_this);
|
|
19128
|
+
_this.onSubmit = _this.onSubmit.bind(_this);
|
|
19129
|
+
_this.escFunction = _this.escFunction.bind(_this);
|
|
19130
|
+
_this.subMenuBtnClick = _this.subMenuBtnClick.bind(_this);
|
|
19131
|
+
_this.handleDropdownChange = _this.handleDropdownChange.bind(_this);
|
|
19132
|
+
_this.hideUischemaModal = _this.hideUischemaModal.bind(_this);
|
|
18991
19133
|
_this.state = {
|
|
18992
19134
|
showUischemaModal: true,
|
|
18993
19135
|
schema: '',
|
|
@@ -19009,6 +19151,7 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
19009
19151
|
_this.s3 = _this.props.fetchFileContentExt ? true : false;
|
|
19010
19152
|
return _this;
|
|
19011
19153
|
}
|
|
19154
|
+
_inheritsLoose(EditorSection, _React$Component);
|
|
19012
19155
|
var _proto = EditorSection.prototype;
|
|
19013
19156
|
_proto.escFunction = function escFunction(event) {
|
|
19014
19157
|
if (event.keyCode === 27) {
|