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.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";
|
|
@@ -18534,7 +18519,6 @@ var selectOptions = function selectOptions(Files) {
|
|
|
18534
18519
|
});
|
|
18535
18520
|
};
|
|
18536
18521
|
var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
18537
|
-
_inheritsLoose(EditorDropDown, _React$Component);
|
|
18538
18522
|
function EditorDropDown(props) {
|
|
18539
18523
|
var _this;
|
|
18540
18524
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -18554,6 +18538,7 @@ var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
18554
18538
|
};
|
|
18555
18539
|
return _this;
|
|
18556
18540
|
}
|
|
18541
|
+
_inheritsLoose(EditorDropDown, _React$Component);
|
|
18557
18542
|
var _proto = EditorDropDown.prototype;
|
|
18558
18543
|
_proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
18559
18544
|
if (nextProps.selected != "") {
|
|
@@ -18610,10 +18595,10 @@ var EditorDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
18610
18595
|
}(React.Component);
|
|
18611
18596
|
|
|
18612
18597
|
var EditorSchemaModal = /*#__PURE__*/function (_React$Component) {
|
|
18613
|
-
_inheritsLoose(EditorSchemaModal, _React$Component);
|
|
18614
18598
|
function EditorSchemaModal(props) {
|
|
18615
18599
|
return _React$Component.call(this, props) || this;
|
|
18616
18600
|
}
|
|
18601
|
+
_inheritsLoose(EditorSchemaModal, _React$Component);
|
|
18617
18602
|
var _proto = EditorSchemaModal.prototype;
|
|
18618
18603
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
18619
18604
|
this.props.resetFiles();
|
|
@@ -18681,15 +18666,14 @@ var EditorSchemaModal$1 = connect(null, mapDispatchToProps)(EditorSchemaModal);
|
|
|
18681
18666
|
var yourForm;
|
|
18682
18667
|
var merge = require("deepmerge");
|
|
18683
18668
|
var PartialConfigLoader = /*#__PURE__*/function (_React$Component) {
|
|
18684
|
-
_inheritsLoose(PartialConfigLoader, _React$Component);
|
|
18685
18669
|
function PartialConfigLoader(props) {
|
|
18686
18670
|
var _this;
|
|
18687
18671
|
_this = _React$Component.call(this, props) || this;
|
|
18688
|
-
_this.onReview = _this.onReview.bind(
|
|
18689
|
-
_this.onFilesError = _this.onFilesError.bind(
|
|
18690
|
-
_this.testMergedFile = _this.testMergedFile.bind(
|
|
18691
|
-
_this.onSubmit = _this.onSubmit.bind(
|
|
18692
|
-
_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);
|
|
18693
18677
|
_this.state = {
|
|
18694
18678
|
jsonFile: {},
|
|
18695
18679
|
jsonFileName: "",
|
|
@@ -18710,6 +18694,7 @@ var PartialConfigLoader = /*#__PURE__*/function (_React$Component) {
|
|
|
18710
18694
|
};
|
|
18711
18695
|
return _this;
|
|
18712
18696
|
}
|
|
18697
|
+
_inheritsLoose(PartialConfigLoader, _React$Component);
|
|
18713
18698
|
var _proto = PartialConfigLoader.prototype;
|
|
18714
18699
|
_proto.onSubmit = function onSubmit() {
|
|
18715
18700
|
this.setState({
|
|
@@ -18847,10 +18832,10 @@ var mapDispatchToProps$1 = function mapDispatchToProps(dispatch) {
|
|
|
18847
18832
|
var PartialConfigLoader$1 = connect(mapStateToProps, mapDispatchToProps$1)(PartialConfigLoader);
|
|
18848
18833
|
|
|
18849
18834
|
var EditorToolButton = /*#__PURE__*/function (_React$Component) {
|
|
18850
|
-
_inheritsLoose(EditorToolButton, _React$Component);
|
|
18851
18835
|
function EditorToolButton(props) {
|
|
18852
18836
|
return _React$Component.call(this, props) || this;
|
|
18853
18837
|
}
|
|
18838
|
+
_inheritsLoose(EditorToolButton, _React$Component);
|
|
18854
18839
|
var _proto = EditorToolButton.prototype;
|
|
18855
18840
|
_proto.render = function render() {
|
|
18856
18841
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -18872,10 +18857,10 @@ var EditorToolButton = /*#__PURE__*/function (_React$Component) {
|
|
|
18872
18857
|
}(React.Component);
|
|
18873
18858
|
|
|
18874
18859
|
var EditorToolModalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
18875
|
-
_inheritsLoose(EditorToolModalWrapper, _React$Component);
|
|
18876
18860
|
function EditorToolModalWrapper(props) {
|
|
18877
18861
|
return _React$Component.call(this, props) || this;
|
|
18878
18862
|
}
|
|
18863
|
+
_inheritsLoose(EditorToolModalWrapper, _React$Component);
|
|
18879
18864
|
var _proto = EditorToolModalWrapper.prototype;
|
|
18880
18865
|
_proto.render = function render() {
|
|
18881
18866
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -18990,7 +18975,6 @@ var _require$1 = require("detect-browser"),
|
|
|
18990
18975
|
var browser$1 = detect$1();
|
|
18991
18976
|
var crcBrowserSupport$1 = ["chrome", "firefox", "opera", "safari", "edge"].includes(browser$1.name);
|
|
18992
18977
|
var EditorChangesComparison = /*#__PURE__*/function (_React$Component) {
|
|
18993
|
-
_inheritsLoose(EditorChangesComparison, _React$Component);
|
|
18994
18978
|
function EditorChangesComparison(props) {
|
|
18995
18979
|
var _this;
|
|
18996
18980
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -19002,13 +18986,14 @@ var EditorChangesComparison = /*#__PURE__*/function (_React$Component) {
|
|
|
19002
18986
|
_this.handleSelectChange = function (selectedValue) {
|
|
19003
18987
|
_this.props.handleDropdownChange(selectedValue.value, "Previous Configuration File");
|
|
19004
18988
|
};
|
|
19005
|
-
_this.toggleCheckbox = _this.toggleCheckbox.bind(
|
|
19006
|
-
_this.handleSelectChange = _this.handleSelectChange.bind(
|
|
18989
|
+
_this.toggleCheckbox = _this.toggleCheckbox.bind(_this);
|
|
18990
|
+
_this.handleSelectChange = _this.handleSelectChange.bind(_this);
|
|
19007
18991
|
_this.state = {
|
|
19008
18992
|
hideWhiteSpace: true
|
|
19009
18993
|
};
|
|
19010
18994
|
return _this;
|
|
19011
18995
|
}
|
|
18996
|
+
_inheritsLoose(EditorChangesComparison, _React$Component);
|
|
19012
18997
|
var _proto = EditorChangesComparison.prototype;
|
|
19013
18998
|
_proto.render = function render() {
|
|
19014
18999
|
var _this$props = this.props,
|
|
@@ -19123,7 +19108,6 @@ var regexRevision = new RegExp('\\d{2}\\.\\d{2}\\.json', 'g');
|
|
|
19123
19108
|
var isDownloadConfig = false;
|
|
19124
19109
|
var activatedTab;
|
|
19125
19110
|
var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
19126
|
-
_inheritsLoose(EditorSection, _React$Component);
|
|
19127
19111
|
function EditorSection(props) {
|
|
19128
19112
|
var _this;
|
|
19129
19113
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -19135,14 +19119,14 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
19135
19119
|
activatedTab = nav[0];
|
|
19136
19120
|
};
|
|
19137
19121
|
_this.editorForm = React.createRef();
|
|
19138
|
-
_this.handleCompareChanges = _this.handleCompareChanges.bind(
|
|
19139
|
-
_this.closeChangesModal = _this.closeChangesModal.bind(
|
|
19140
|
-
_this.handleError = _this.handleError.bind(
|
|
19141
|
-
_this.onSubmit = _this.onSubmit.bind(
|
|
19142
|
-
_this.escFunction = _this.escFunction.bind(
|
|
19143
|
-
_this.subMenuBtnClick = _this.subMenuBtnClick.bind(
|
|
19144
|
-
_this.handleDropdownChange = _this.handleDropdownChange.bind(
|
|
19145
|
-
_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);
|
|
19146
19130
|
_this.state = {
|
|
19147
19131
|
showUischemaModal: true,
|
|
19148
19132
|
schema: '',
|
|
@@ -19164,6 +19148,7 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
19164
19148
|
_this.s3 = _this.props.fetchFileContentExt ? true : false;
|
|
19165
19149
|
return _this;
|
|
19166
19150
|
}
|
|
19151
|
+
_inheritsLoose(EditorSection, _React$Component);
|
|
19167
19152
|
var _proto = EditorSection.prototype;
|
|
19168
19153
|
_proto.escFunction = function escFunction(event) {
|
|
19169
19154
|
if (event.keyCode === 27) {
|