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.
@@ -18176,7 +18176,7 @@ function EditorNavs(_ref) {
18176
18176
  }))))));
18177
18177
  }
18178
18178
 
18179
- function EditorArrayFieldTemplate(props) {
18179
+ function ArrayFieldTemplate(props) {
18180
18180
  return /*#__PURE__*/React.createElement("div", {
18181
18181
  className: "reset-margins"
18182
18182
  }, /*#__PURE__*/React.createElement("legend", null, props.title), /*#__PURE__*/React.createElement("p", null, props.schema.description), props.items && props.items.map(function (element) {
@@ -18407,7 +18407,9 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
18407
18407
  _this.escFunction = _this.escFunction.bind(_assertThisInitialized(_this));
18408
18408
  _this.subMenuBtnClick = _this.subMenuBtnClick.bind(_assertThisInitialized(_this));
18409
18409
  _this.handleDropdownChange = _this.handleDropdownChange.bind(_assertThisInitialized(_this));
18410
+ _this.hideUischemaModal = _this.hideUischemaModal.bind(_assertThisInitialized(_this));
18410
18411
  _this.state = {
18412
+ showUischemaModal: true,
18411
18413
  schema: '',
18412
18414
  selecteduischema: '',
18413
18415
  selectedschema: '',
@@ -18447,6 +18449,12 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
18447
18449
  });
18448
18450
  };
18449
18451
 
18452
+ _proto.hideUischemaModal = function hideUischemaModal() {
18453
+ this.setState({
18454
+ showUischemaModal: false
18455
+ });
18456
+ };
18457
+
18450
18458
  _proto.handleDropdownChange = function handleDropdownChange(selection, dropdown) {
18451
18459
  var _this$setState,
18452
18460
  _this3 = this;
@@ -18690,7 +18698,11 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
18690
18698
  }, /*#__PURE__*/React.createElement("p", {
18691
18699
  className: "loader-callout"
18692
18700
  }, "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", {
18693
- className: "schema-loader-callout uischema-loader fadeout-box"
18701
+ onClick: this.hideUischemaModal,
18702
+ className: "schema-loader-callout uischema-loader fadeout-box",
18703
+ style: {
18704
+ display: this.state.showUischemaModal ? 'block' : 'none'
18705
+ }
18694
18706
  }, /*#__PURE__*/React.createElement("p", {
18695
18707
  className: "loader-callout"
18696
18708
  }, "Change 'Presentation Mode' to unhide/hide advanced settings")) : null, /*#__PURE__*/React.createElement(FormWithNav, {
@@ -18706,7 +18718,9 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
18706
18718
  onChange: this.handleChange,
18707
18719
  onError: this.handleError,
18708
18720
  onNavChange: this.onNavChange.bind(this),
18709
- ArrayFieldTemplate: EditorArrayFieldTemplate,
18721
+ templates: {
18722
+ ArrayFieldTemplate: ArrayFieldTemplate
18723
+ },
18710
18724
  activeNav: activatedTab
18711
18725
  }, /*#__PURE__*/React.createElement(EditorChangesComparison$1, {
18712
18726
  isCompareChanges: this.state.isCompareChanges,