config-editor-base 2.9.7 → 2.9.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 +58 -20
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +58 -20
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -24280,7 +24280,8 @@ var FilterBuilderTool = /*#__PURE__*/function (_React$Component) {
|
|
|
24280
24280
|
filterType = _this$state6.filterType,
|
|
24281
24281
|
prescalerType = _this$state6.prescalerType,
|
|
24282
24282
|
prescalerValue = _this$state6.prescalerValue,
|
|
24283
|
-
dataPrescalerMask = _this$state6.dataPrescalerMask
|
|
24283
|
+
dataPrescalerMask = _this$state6.dataPrescalerMask,
|
|
24284
|
+
csvData = _this$state6.csvData;
|
|
24284
24285
|
var selectedEntries = mergedEntries.filter(function (e) {
|
|
24285
24286
|
return e.selected;
|
|
24286
24287
|
});
|
|
@@ -24404,15 +24405,33 @@ var FilterBuilderTool = /*#__PURE__*/function (_React$Component) {
|
|
|
24404
24405
|
} else if (isCanmodRouter) {
|
|
24405
24406
|
var isExtended = _entry4.idInt > 0x7FF;
|
|
24406
24407
|
var idHex = parseInt(_entry4.id, 16).toString(16).toUpperCase();
|
|
24407
|
-
var
|
|
24408
|
-
|
|
24409
|
-
|
|
24410
|
-
|
|
24411
|
-
|
|
24412
|
-
|
|
24413
|
-
|
|
24414
|
-
|
|
24415
|
-
|
|
24408
|
+
var isDbcOnlyJ1939 = !csvData && _entry4.isJ1939 && isExtended;
|
|
24409
|
+
var _filter = void 0;
|
|
24410
|
+
if (isDbcOnlyJ1939) {
|
|
24411
|
+
var _pgn = extractPgn$1(_entry4.idInt);
|
|
24412
|
+
var _isPdu = (_pgn & 0xFF00) < 0xF000;
|
|
24413
|
+
var _mask = _isPdu ? "3FF0000" : "3FFFF00";
|
|
24414
|
+
var _filterId = _isPdu ? ((_pgn & 0x3FF00) << 8).toString(16).toUpperCase() : (_pgn << 8).toString(16).toUpperCase();
|
|
24415
|
+
_filter = {
|
|
24416
|
+
name: (_entry4.messageName || "PGN " + _pgn.toString(16).toUpperCase()).substring(0, 16),
|
|
24417
|
+
state: 1,
|
|
24418
|
+
id_format: 1,
|
|
24419
|
+
frame_format: 2,
|
|
24420
|
+
f1: _filterId,
|
|
24421
|
+
f2: _mask,
|
|
24422
|
+
prescaler_type: prescaler_type
|
|
24423
|
+
};
|
|
24424
|
+
} else {
|
|
24425
|
+
_filter = {
|
|
24426
|
+
name: (_entry4.messageName || idHex).substring(0, 16),
|
|
24427
|
+
state: 1,
|
|
24428
|
+
id_format: isExtended ? 1 : 0,
|
|
24429
|
+
frame_format: 2,
|
|
24430
|
+
f1: idHex,
|
|
24431
|
+
f2: isExtended ? "1FFFFFFF" : "7FF",
|
|
24432
|
+
prescaler_type: prescaler_type
|
|
24433
|
+
};
|
|
24434
|
+
}
|
|
24416
24435
|
if (prescaler_value !== undefined) {
|
|
24417
24436
|
_filter.prescaler_value = prescaler_value;
|
|
24418
24437
|
}
|
|
@@ -24420,16 +24439,35 @@ var FilterBuilderTool = /*#__PURE__*/function (_React$Component) {
|
|
|
24420
24439
|
} else {
|
|
24421
24440
|
var _isExtended = _entry4.idInt > 0x7FF;
|
|
24422
24441
|
var _idHex = _entry4.id.toUpperCase();
|
|
24423
|
-
var
|
|
24424
|
-
|
|
24425
|
-
|
|
24426
|
-
|
|
24427
|
-
|
|
24428
|
-
|
|
24429
|
-
|
|
24430
|
-
|
|
24431
|
-
|
|
24432
|
-
|
|
24442
|
+
var _isDbcOnlyJ = !csvData && _entry4.isJ1939 && _isExtended;
|
|
24443
|
+
var _filter2 = void 0;
|
|
24444
|
+
if (_isDbcOnlyJ) {
|
|
24445
|
+
var _pgn2 = extractPgn$1(_entry4.idInt);
|
|
24446
|
+
var _isPdu2 = (_pgn2 & 0xFF00) < 0xF000;
|
|
24447
|
+
var _mask2 = _isPdu2 ? "3FF0000" : "3FFFF00";
|
|
24448
|
+
var _filterId2 = _isPdu2 ? ((_pgn2 & 0x3FF00) << 8).toString(16).toUpperCase() : (_pgn2 << 8).toString(16).toUpperCase();
|
|
24449
|
+
_filter2 = {
|
|
24450
|
+
name: (_entry4.messageName || "PGN " + _pgn2.toString(16).toUpperCase()).substring(0, 16),
|
|
24451
|
+
state: 1,
|
|
24452
|
+
type: filterTypeValue,
|
|
24453
|
+
id_format: 1,
|
|
24454
|
+
method: 1,
|
|
24455
|
+
f1: _filterId2,
|
|
24456
|
+
f2: _mask2,
|
|
24457
|
+
prescaler_type: prescaler_type
|
|
24458
|
+
};
|
|
24459
|
+
} else {
|
|
24460
|
+
_filter2 = {
|
|
24461
|
+
name: (_entry4.messageName || _idHex).substring(0, 16),
|
|
24462
|
+
state: 1,
|
|
24463
|
+
type: filterTypeValue,
|
|
24464
|
+
id_format: _isExtended ? 1 : 0,
|
|
24465
|
+
method: 0,
|
|
24466
|
+
f1: _idHex,
|
|
24467
|
+
f2: _idHex,
|
|
24468
|
+
prescaler_type: prescaler_type
|
|
24469
|
+
};
|
|
24470
|
+
}
|
|
24433
24471
|
if (prescaler_value !== undefined) {
|
|
24434
24472
|
_filter2.prescaler_value = prescaler_value;
|
|
24435
24473
|
}
|