survey-creator-react 2.0.0-rc.9 → 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 React v2.0.0-rc.9
2
+ * SurveyJS Creator React 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
@@ -787,9 +787,9 @@ class CreatorSurveyPageComponent extends CreatorModelElement {
787
787
  }, 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) },
788
788
  React.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--top" }),
789
789
  React.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }),
790
- this.renderHeader(),
791
790
  this.renderContent(),
792
791
  this.renderPlaceholder(),
792
+ this.renderHeader(),
793
793
  this.renderFooter())));
794
794
  }
795
795
  renderPlaceholder() {
@@ -1025,7 +1025,7 @@ class QuestionEditorContentComponent extends React.Component {
1025
1025
  }
1026
1026
  render() {
1027
1027
  const question = this.survey.getAllQuestions()[0];
1028
- return (React.createElement(React.Fragment, null,
1028
+ return (React.createElement("div", { style: this.props.style },
1029
1029
  React.createElement(SurveyQuestion, { creator: this, element: question })));
1030
1030
  }
1031
1031
  }
@@ -1708,10 +1708,13 @@ class TabButtonComponent extends SurveyElementBase {
1708
1708
  return this.props.model;
1709
1709
  }
1710
1710
  renderElement() {
1711
- const button = attachKey2click(React.createElement("div", { className: this.props.model.buttonClassName, title: this.props.model.tooltip, onClick: () => { this.props.model.action(); } },
1711
+ const model = this.props.model;
1712
+ if (!model.visible)
1713
+ return null;
1714
+ const button = attachKey2click(React.createElement("div", { className: model.buttonClassName, title: model.tooltip, onClick: () => { model.action(); } },
1712
1715
  React.createElement("div", { className: "svc-menu-action__icon" },
1713
1716
  React.createElement("div", { className: "svc-menu-action__icon-container" },
1714
- React.createElement(SvgIcon, { iconName: this.props.model.iconName, size: "auto" })))), this.props.model);
1717
+ React.createElement(SvgIcon, { iconName: model.iconName, size: "auto" })))), model);
1715
1718
  return (React.createElement("div", { className: "svc-menu-action" }, button));
1716
1719
  }
1717
1720
  }
@@ -2843,8 +2846,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
2843
2846
  RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
2844
2847
 
2845
2848
  let Version;
2846
- Version = `${"2.0.0-rc.9"}`;
2847
- checkLibraryVersion(`${"2.0.0-rc.9"}`, "survey-creator-react");
2849
+ Version = `${"2.0.1"}`;
2850
+ checkLibraryVersion(`${"2.0.1"}`, "survey-creator-react");
2848
2851
 
2849
2852
  export { ActionButton, AdaptiveToolbox, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, CreatorSurveyPageComponent, ImageItemValueAdornerComponent, ItemValueAdornerComponent, LogoImageComponent, MatrixCellAdornerComponent, PanelAdornerComponent, PropertyGridComponent, PropertyGridPlaceholderComponent, QuestionAdornerComponent, QuestionBanner, QuestionDropdownAdornerComponent, QuestionEditorContentComponent, QuestionErrorComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, QuestionWrapperFooter, QuestionWrapperHeader, ReactDragEvent, ReactMouseEvent, RowWrapper, SearchComponent, SideBarDefaultHeader, SidebarComponent, SurveyCreator, SurveyCreatorComponent, SurveyCreatorToolboxCategory, SurveyCreatorToolboxItem, SurveyCreatorToolboxItemGroup, SurveyCreatorToolboxTool, SurveyElementEmbeddedSurvey, SurveyLocStringEditor, SurveyLogicOpertor, SurveyNavigation, SurveyQuestionBooleanSwitch, SurveyQuestionColor, SurveyQuestionFileEditor, SurveyQuestionLinkValue, SurveyQuestionSpinEditor, SurveyQuestionTextWithReset, SurveyResults, SurveyResultsByRow, SurveySimulator, SwitcherComponent, TabButtonComponent, TabDesignerComponent, TabJsonEditorAceComponent, TabJsonEditorErrorsComponent, TabJsonEditorTextareaComponent, TabLogicAddButtonComponent, TabLogicComponent, TabPreviewSurveyComponent, TabPreviewTestSurveyAgainComponent, TabThemeSurveyComponent, TabTranslationComponent, TabbedMenuComponent, TabbedMenuItemComponent, ToolboxList, TranslateFromAction, TranslationLineSkeleton, Version };
2850
2853
  //# sourceMappingURL=survey-creator-react.js.map