config-editor-base 2.7.7 → 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 +34 -49
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +34 -49
- 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";
|
|
@@ -18537,7 +18522,6 @@ var selectOptions = function selectOptions(Files) {
|
|
|
18537
18522
|
});
|
|
18538
18523
|
};
|
|
18539
18524
|
var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
18540
|
-
_inheritsLoose(EditorDropDown, _React$Component);
|
|
18541
18525
|
function EditorDropDown(props) {
|
|
18542
18526
|
var _this;
|
|
18543
18527
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -18557,6 +18541,7 @@ var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
18557
18541
|
};
|
|
18558
18542
|
return _this;
|
|
18559
18543
|
}
|
|
18544
|
+
_inheritsLoose(EditorDropDown, _React$Component);
|
|
18560
18545
|
var _proto = EditorDropDown.prototype;
|
|
18561
18546
|
_proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
18562
18547
|
if (nextProps.selected != "") {
|
|
@@ -18613,10 +18598,10 @@ var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
18613
18598
|
}(React.Component);
|
|
18614
18599
|
|
|
18615
18600
|
var EditorSchemaModal = /*#__PURE__*/function (_React$Component) {
|
|
18616
|
-
_inheritsLoose(EditorSchemaModal, _React$Component);
|
|
18617
18601
|
function EditorSchemaModal(props) {
|
|
18618
18602
|
return _React$Component.call(this, props) || this;
|
|
18619
18603
|
}
|
|
18604
|
+
_inheritsLoose(EditorSchemaModal, _React$Component);
|
|
18620
18605
|
var _proto = EditorSchemaModal.prototype;
|
|
18621
18606
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
18622
18607
|
this.props.resetFiles();
|
|
@@ -18684,15 +18669,14 @@ var EditorSchemaModal$1 = reactRedux.connect(null, mapDispatchToProps)(EditorSch
|
|
|
18684
18669
|
var yourForm;
|
|
18685
18670
|
var merge = require("deepmerge");
|
|
18686
18671
|
var PartialConfigLoader = /*#__PURE__*/function (_React$Component) {
|
|
18687
|
-
_inheritsLoose(PartialConfigLoader, _React$Component);
|
|
18688
18672
|
function PartialConfigLoader(props) {
|
|
18689
18673
|
var _this;
|
|
18690
18674
|
_this = _React$Component.call(this, props) || this;
|
|
18691
|
-
_this.onReview = _this.onReview.bind(
|
|
18692
|
-
_this.onFilesError = _this.onFilesError.bind(
|
|
18693
|
-
_this.testMergedFile = _this.testMergedFile.bind(
|
|
18694
|
-
_this.onSubmit = _this.onSubmit.bind(
|
|
18695
|
-
_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);
|
|
18696
18680
|
_this.state = {
|
|
18697
18681
|
jsonFile: {},
|
|
18698
18682
|
jsonFileName: "",
|
|
@@ -18713,6 +18697,7 @@ var PartialConfigLoader = /*#__PURE__*/function (_React$Component) {
|
|
|
18713
18697
|
};
|
|
18714
18698
|
return _this;
|
|
18715
18699
|
}
|
|
18700
|
+
_inheritsLoose(PartialConfigLoader, _React$Component);
|
|
18716
18701
|
var _proto = PartialConfigLoader.prototype;
|
|
18717
18702
|
_proto.onSubmit = function onSubmit() {
|
|
18718
18703
|
this.setState({
|
|
@@ -18850,10 +18835,10 @@ var mapDispatchToProps$1 = function mapDispatchToProps(dispatch) {
|
|
|
18850
18835
|
var PartialConfigLoader$1 = reactRedux.connect(mapStateToProps, mapDispatchToProps$1)(PartialConfigLoader);
|
|
18851
18836
|
|
|
18852
18837
|
var EditorToolButton = /*#__PURE__*/function (_React$Component) {
|
|
18853
|
-
_inheritsLoose(EditorToolButton, _React$Component);
|
|
18854
18838
|
function EditorToolButton(props) {
|
|
18855
18839
|
return _React$Component.call(this, props) || this;
|
|
18856
18840
|
}
|
|
18841
|
+
_inheritsLoose(EditorToolButton, _React$Component);
|
|
18857
18842
|
var _proto = EditorToolButton.prototype;
|
|
18858
18843
|
_proto.render = function render() {
|
|
18859
18844
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -18875,10 +18860,10 @@ var EditorToolButton = /*#__PURE__*/function (_React$Component) {
|
|
|
18875
18860
|
}(React.Component);
|
|
18876
18861
|
|
|
18877
18862
|
var EditorToolModalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
18878
|
-
_inheritsLoose(EditorToolModalWrapper, _React$Component);
|
|
18879
18863
|
function EditorToolModalWrapper(props) {
|
|
18880
18864
|
return _React$Component.call(this, props) || this;
|
|
18881
18865
|
}
|
|
18866
|
+
_inheritsLoose(EditorToolModalWrapper, _React$Component);
|
|
18882
18867
|
var _proto = EditorToolModalWrapper.prototype;
|
|
18883
18868
|
_proto.render = function render() {
|
|
18884
18869
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -18993,7 +18978,6 @@ var _require$1 = require("detect-browser"),
|
|
|
18993
18978
|
var browser$1 = detect$1();
|
|
18994
18979
|
var crcBrowserSupport$1 = ["chrome", "firefox", "opera", "safari", "edge"].includes(browser$1.name);
|
|
18995
18980
|
var EditorChangesComparison = /*#__PURE__*/function (_React$Component) {
|
|
18996
|
-
_inheritsLoose(EditorChangesComparison, _React$Component);
|
|
18997
18981
|
function EditorChangesComparison(props) {
|
|
18998
18982
|
var _this;
|
|
18999
18983
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -19005,13 +18989,14 @@ var EditorChangesComparison = /*#__PURE__*/function (_React$Component) {
|
|
|
19005
18989
|
_this.handleSelectChange = function (selectedValue) {
|
|
19006
18990
|
_this.props.handleDropdownChange(selectedValue.value, "Previous Configuration File");
|
|
19007
18991
|
};
|
|
19008
|
-
_this.toggleCheckbox = _this.toggleCheckbox.bind(
|
|
19009
|
-
_this.handleSelectChange = _this.handleSelectChange.bind(
|
|
18992
|
+
_this.toggleCheckbox = _this.toggleCheckbox.bind(_this);
|
|
18993
|
+
_this.handleSelectChange = _this.handleSelectChange.bind(_this);
|
|
19010
18994
|
_this.state = {
|
|
19011
18995
|
hideWhiteSpace: true
|
|
19012
18996
|
};
|
|
19013
18997
|
return _this;
|
|
19014
18998
|
}
|
|
18999
|
+
_inheritsLoose(EditorChangesComparison, _React$Component);
|
|
19015
19000
|
var _proto = EditorChangesComparison.prototype;
|
|
19016
19001
|
_proto.render = function render() {
|
|
19017
19002
|
var _this$props = this.props,
|
|
@@ -19126,7 +19111,6 @@ var regexRevision = new RegExp('\\d{2}\\.\\d{2}\\.json', 'g');
|
|
|
19126
19111
|
var isDownloadConfig = false;
|
|
19127
19112
|
var activatedTab;
|
|
19128
19113
|
var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
19129
|
-
_inheritsLoose(EditorSection, _React$Component);
|
|
19130
19114
|
function EditorSection(props) {
|
|
19131
19115
|
var _this;
|
|
19132
19116
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -19138,14 +19122,14 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
19138
19122
|
activatedTab = nav[0];
|
|
19139
19123
|
};
|
|
19140
19124
|
_this.editorForm = React.createRef();
|
|
19141
|
-
_this.handleCompareChanges = _this.handleCompareChanges.bind(
|
|
19142
|
-
_this.closeChangesModal = _this.closeChangesModal.bind(
|
|
19143
|
-
_this.handleError = _this.handleError.bind(
|
|
19144
|
-
_this.onSubmit = _this.onSubmit.bind(
|
|
19145
|
-
_this.escFunction = _this.escFunction.bind(
|
|
19146
|
-
_this.subMenuBtnClick = _this.subMenuBtnClick.bind(
|
|
19147
|
-
_this.handleDropdownChange = _this.handleDropdownChange.bind(
|
|
19148
|
-
_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);
|
|
19149
19133
|
_this.state = {
|
|
19150
19134
|
showUischemaModal: true,
|
|
19151
19135
|
schema: '',
|
|
@@ -19167,6 +19151,7 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
19167
19151
|
_this.s3 = _this.props.fetchFileContentExt ? true : false;
|
|
19168
19152
|
return _this;
|
|
19169
19153
|
}
|
|
19154
|
+
_inheritsLoose(EditorSection, _React$Component);
|
|
19170
19155
|
var _proto = EditorSection.prototype;
|
|
19171
19156
|
_proto.escFunction = function escFunction(event) {
|
|
19172
19157
|
if (event.keyCode === 27) {
|