config-editor-base 2.7.8 → 2.8.0
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 +39 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +39 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/schema/CANmod.gps/config-01.03.json +1 -0
- package/dist/schema/CANmod.gps/config-01.04.json +1 -0
- package/dist/schema/CANmod.gps/schema-01.03.json +1 -0
- package/dist/schema/CANmod.gps/schema-01.04.json +1 -0
- package/dist/schema/CANmod.gps/uischema-01.03.json +250 -0
- package/dist/schema/CANmod.gps/uischema-01.04.json +262 -0
- package/dist/schema/CANmod.input/config-01.04.json +1 -0
- package/dist/schema/CANmod.input/schema-01.04.json +1 -0
- package/dist/schema/CANmod.input/uischema-01.04.json +411 -0
- package/dist/schema/CANmod.router/config-01.01.json +1 -0
- package/dist/schema/CANmod.router/config-01.02.json +1 -0
- package/dist/schema/CANmod.router/schema-01.01.json +1 -0
- package/dist/schema/CANmod.router/schema-01.02.json +1 -0
- package/dist/schema/CANmod.router/uischema-01.01.json +586 -0
- package/dist/schema/CANmod.router/uischema-01.02.json +817 -0
- package/dist/schema/CANmod.temp/config-01.04.json +1 -0
- package/dist/schema/CANmod.temp/config-01.05.json +1 -0
- package/dist/schema/CANmod.temp/schema-01.04.json +1 -0
- package/dist/schema/CANmod.temp/schema-01.05.json +1 -0
- package/dist/schema/CANmod.temp/uischema-01.04.json +106 -0
- package/dist/schema/CANmod.temp/uischema-01.05.json +118 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -735,11 +735,32 @@ var publicSchemaFiles = function publicSchemaFiles(selectedConfig, schemaAry, co
|
|
|
735
735
|
if (contentJSON.can_2 != undefined && contentJSON.connect && contentJSON.connect.cellular != undefined && contentJSON.gnss != undefined) {
|
|
736
736
|
deviceType = "CANedge3 GNSS";
|
|
737
737
|
}
|
|
738
|
+
if (contentJSON.sensor && contentJSON.sensor.gnss !== undefined) {
|
|
739
|
+
deviceType = "CANmod.gps";
|
|
740
|
+
}
|
|
741
|
+
if (contentJSON.sensor && contentJSON.sensor.channel_1 && contentJSON.sensor.channel_1.digital_low !== undefined) {
|
|
742
|
+
deviceType = "CANmod.input";
|
|
743
|
+
}
|
|
744
|
+
if (contentJSON.phy && contentJSON.phy.can && contentJSON.phy.can.route) {
|
|
745
|
+
deviceType = "CANmod.router";
|
|
746
|
+
}
|
|
747
|
+
if (contentJSON.sensor && contentJSON.sensor.top_left && contentJSON.sensor.top_left.type !== undefined) {
|
|
748
|
+
deviceType = "CANmod.temp";
|
|
749
|
+
}
|
|
750
|
+
var version = selectedConfig.substr(7, 5);
|
|
738
751
|
var schemaAryFiltered = schemaAry.filter(function (e) {
|
|
739
|
-
|
|
752
|
+
if (!e.includes(version)) return false;
|
|
753
|
+
if (deviceType && deviceType.startsWith('CANmod')) {
|
|
754
|
+
return e.includes(deviceType);
|
|
755
|
+
}
|
|
756
|
+
return true;
|
|
740
757
|
});
|
|
741
758
|
var uiSchemaAryFiltered = uiSchemaAry.filter(function (e) {
|
|
742
|
-
|
|
759
|
+
if (!e.includes(version)) return false;
|
|
760
|
+
if (deviceType && deviceType.startsWith('CANmod')) {
|
|
761
|
+
return e.includes(deviceType);
|
|
762
|
+
}
|
|
763
|
+
return true;
|
|
743
764
|
});
|
|
744
765
|
if (!deviceType.includes("GNSS")) {
|
|
745
766
|
schemaAryFiltered = schemaAryFiltered.filter(function (e) {
|
|
@@ -1146,6 +1167,20 @@ var checkGNSSEstimate = function checkGNSSEstimate(content) {
|
|
|
1146
1167
|
}
|
|
1147
1168
|
};
|
|
1148
1169
|
};
|
|
1170
|
+
var checkCANmodMonitoringMode = function checkCANmodMonitoringMode(content) {
|
|
1171
|
+
return function (dispatch) {
|
|
1172
|
+
var _content$phy, _content$phy$can, _content$phy$can$phy;
|
|
1173
|
+
if (((_content$phy = content.phy) === null || _content$phy === void 0 ? void 0 : (_content$phy$can = _content$phy.can) === null || _content$phy$can === void 0 ? void 0 : (_content$phy$can$phy = _content$phy$can.phy) === null || _content$phy$can$phy === void 0 ? void 0 : _content$phy$can$phy.mode) !== undefined) {
|
|
1174
|
+
if (content.phy.can.phy.mode !== 0) {
|
|
1175
|
+
dispatch(set({
|
|
1176
|
+
type: "warning",
|
|
1177
|
+
message: "Your CANmod primary CAN bus mode must be set to 'Normal' if you want the CANmod to output CAN messages",
|
|
1178
|
+
autoClear: false
|
|
1179
|
+
}));
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1149
1184
|
var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, content) {
|
|
1150
1185
|
return function (dispatch) {
|
|
1151
1186
|
if (content.can_2 != undefined) {
|
|
@@ -1172,6 +1207,7 @@ var saveUpdatedConfiguration = function saveUpdatedConfiguration(filename, conte
|
|
|
1172
1207
|
dispatch(checkIncorrectRoamingSuperSIM(content));
|
|
1173
1208
|
dispatch(checkConfigControlSignalZeroScalingFactor(content));
|
|
1174
1209
|
}
|
|
1210
|
+
dispatch(checkCANmodMonitoringMode(content));
|
|
1175
1211
|
dispatch(setConfigContent(content));
|
|
1176
1212
|
var blob = new Blob([JSON.stringify(content, null, 2)], {
|
|
1177
1213
|
type: "text/json"
|
|
@@ -1290,6 +1326,7 @@ var actions = {
|
|
|
1290
1326
|
checkIncorrectAPNSpaces: checkIncorrectAPNSpaces,
|
|
1291
1327
|
checkFileSplitValue: checkFileSplitValue,
|
|
1292
1328
|
checkGNSSEstimate: checkGNSSEstimate,
|
|
1329
|
+
checkCANmodMonitoringMode: checkCANmodMonitoringMode,
|
|
1293
1330
|
saveUpdatedConfiguration: saveUpdatedConfiguration,
|
|
1294
1331
|
setUpdatedFormData: setUpdatedFormData,
|
|
1295
1332
|
setUpdatedFormDataValue: setUpdatedFormDataValue,
|