config-editor-base 1.6.3 → 1.6.6
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 +17 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18179,7 +18179,7 @@ function EditorNavs(_ref) {
|
|
|
18179
18179
|
}))))));
|
|
18180
18180
|
}
|
|
18181
18181
|
|
|
18182
|
-
function
|
|
18182
|
+
function ArrayFieldTemplate(props) {
|
|
18183
18183
|
return /*#__PURE__*/React.createElement("div", {
|
|
18184
18184
|
className: "reset-margins"
|
|
18185
18185
|
}, /*#__PURE__*/React.createElement("legend", null, props.title), /*#__PURE__*/React.createElement("p", null, props.schema.description), props.items && props.items.map(function (element) {
|
|
@@ -18410,7 +18410,9 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
18410
18410
|
_this.escFunction = _this.escFunction.bind(_assertThisInitialized(_this));
|
|
18411
18411
|
_this.subMenuBtnClick = _this.subMenuBtnClick.bind(_assertThisInitialized(_this));
|
|
18412
18412
|
_this.handleDropdownChange = _this.handleDropdownChange.bind(_assertThisInitialized(_this));
|
|
18413
|
+
_this.hideUischemaModal = _this.hideUischemaModal.bind(_assertThisInitialized(_this));
|
|
18413
18414
|
_this.state = {
|
|
18415
|
+
showUischemaModal: true,
|
|
18414
18416
|
schema: '',
|
|
18415
18417
|
selecteduischema: '',
|
|
18416
18418
|
selectedschema: '',
|
|
@@ -18450,6 +18452,12 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
18450
18452
|
});
|
|
18451
18453
|
};
|
|
18452
18454
|
|
|
18455
|
+
_proto.hideUischemaModal = function hideUischemaModal() {
|
|
18456
|
+
this.setState({
|
|
18457
|
+
showUischemaModal: false
|
|
18458
|
+
});
|
|
18459
|
+
};
|
|
18460
|
+
|
|
18453
18461
|
_proto.handleDropdownChange = function handleDropdownChange(selection, dropdown) {
|
|
18454
18462
|
var _this$setState,
|
|
18455
18463
|
_this3 = this;
|
|
@@ -18693,7 +18701,11 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
18693
18701
|
}, /*#__PURE__*/React.createElement("p", {
|
|
18694
18702
|
className: "loader-callout"
|
|
18695
18703
|
}, "Load your UIschema File ", /*#__PURE__*/React.createElement("br", null), "(uischema-XX.YY.json)")) : null, editorConfigFiles.length != 0 && editorSchemaFiles.length != 0 && editorUIAdvancedSimpleTest == true ? /*#__PURE__*/React.createElement("div", {
|
|
18696
|
-
|
|
18704
|
+
onClick: this.hideUischemaModal,
|
|
18705
|
+
className: "schema-loader-callout uischema-loader fadeout-box",
|
|
18706
|
+
style: {
|
|
18707
|
+
display: this.state.showUischemaModal ? 'block' : 'none'
|
|
18708
|
+
}
|
|
18697
18709
|
}, /*#__PURE__*/React.createElement("p", {
|
|
18698
18710
|
className: "loader-callout"
|
|
18699
18711
|
}, "Change 'Presentation Mode' to unhide/hide advanced settings")) : null, /*#__PURE__*/React.createElement(FormWithNav, {
|
|
@@ -18709,7 +18721,9 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
18709
18721
|
onChange: this.handleChange,
|
|
18710
18722
|
onError: this.handleError,
|
|
18711
18723
|
onNavChange: this.onNavChange.bind(this),
|
|
18712
|
-
|
|
18724
|
+
templates: {
|
|
18725
|
+
ArrayFieldTemplate: ArrayFieldTemplate
|
|
18726
|
+
},
|
|
18713
18727
|
activeNav: activatedTab
|
|
18714
18728
|
}, /*#__PURE__*/React.createElement(EditorChangesComparison$1, {
|
|
18715
18729
|
isCompareChanges: this.state.isCompareChanges,
|