survey-creator-js 2.0.0 → 2.0.1

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator UI v2.0.0
2
+ * SurveyJS Creator UI v2.0.1
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -785,9 +785,9 @@ class CreatorSurveyPageComponent extends CreatorModelElement {
785
785
  }, onDoubleClick: e => this.model.dblclick(e.nativeEvent), onMouseLeave: (e) => this.model.hover(e.nativeEvent, e.currentTarget), onMouseOver: (e) => this.model.hover(e.nativeEvent, e.currentTarget) },
786
786
  React.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--top" }),
787
787
  React.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }),
788
- this.renderHeader(),
789
788
  this.renderContent(),
790
789
  this.renderPlaceholder(),
790
+ this.renderHeader(),
791
791
  this.renderFooter())));
792
792
  }
793
793
  renderPlaceholder() {
@@ -1023,7 +1023,7 @@ class QuestionEditorContentComponent extends React.Component {
1023
1023
  }
1024
1024
  render() {
1025
1025
  const question = this.survey.getAllQuestions()[0];
1026
- return (React.createElement(React.Fragment, null,
1026
+ return (React.createElement("div", { style: this.props.style },
1027
1027
  React.createElement(SurveyQuestion, { creator: this, element: question })));
1028
1028
  }
1029
1029
  }
@@ -1706,10 +1706,13 @@ class TabButtonComponent extends SurveyElementBase {
1706
1706
  return this.props.model;
1707
1707
  }
1708
1708
  renderElement() {
1709
- const button = attachKey2click(React.createElement("div", { className: this.props.model.buttonClassName, title: this.props.model.tooltip, onClick: () => { this.props.model.action(); } },
1709
+ const model = this.props.model;
1710
+ if (!model.visible)
1711
+ return null;
1712
+ const button = attachKey2click(React.createElement("div", { className: model.buttonClassName, title: model.tooltip, onClick: () => { model.action(); } },
1710
1713
  React.createElement("div", { className: "svc-menu-action__icon" },
1711
1714
  React.createElement("div", { className: "svc-menu-action__icon-container" },
1712
- React.createElement(SvgIcon, { iconName: this.props.model.iconName, size: "auto" })))), this.props.model);
1715
+ React.createElement(SvgIcon, { iconName: model.iconName, size: "auto" })))), model);
1713
1716
  return (React.createElement("div", { className: "svc-menu-action" }, button));
1714
1717
  }
1715
1718
  }
@@ -2841,8 +2844,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
2841
2844
  RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
2842
2845
 
2843
2846
  let Version;
2844
- Version = `${"2.0.0"}`;
2845
- checkLibraryVersion(`${"2.0.0"}`, "survey-creator-react");
2847
+ Version = `${"2.0.1"}`;
2848
+ checkLibraryVersion(`${"2.0.1"}`, "survey-creator-react");
2846
2849
 
2847
2850
  const jQuery = window["jQuery"] || window["$"];
2848
2851
  function renderSurveyCreator(creator, element, props = {}) {