survey-creator-react 3.2.2 → 3.2.4

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 v3.2.2
2
+ * SurveyJS Creator v3.2.4
3
3
  * (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -117,6 +117,7 @@ class TabbedMenuItemComponent extends SurveyElementBase {
117
117
  "aria-selected": item.active,
118
118
  "aria-controls": "scrollableDiv-" + item.id,
119
119
  className: item.getRootCss(),
120
+ "data-sv-tooltip": item.hasIcon ? item.tooltip || item.title : void 0,
120
121
  onClick: () => item.doAction()
121
122
  },
122
123
  item.hasTitle ? /* @__PURE__ */ React.createElement("span", { className: item.getTitleCss() }, item.title) : null,
@@ -583,7 +584,8 @@ class ActionButton extends SurveyElementBase {
583
584
  }
584
585
  this.props.click();
585
586
  },
586
- title: this.props.title
587
+ title: this.props.title,
588
+ "data-sv-tooltip": this.props.title
587
589
  },
588
590
  this.props.text
589
591
  )
@@ -605,7 +607,8 @@ class ActionButton extends SurveyElementBase {
605
607
  }
606
608
  this.props.click();
607
609
  },
608
- title: this.props.title
610
+ title: this.props.title,
611
+ "data-sv-tooltip": this.props.title
609
612
  },
610
613
  /* @__PURE__ */ React.createElement(SvgIcon, { size: "auto", iconName: this.props.iconName })
611
614
  )
@@ -1051,7 +1054,7 @@ class CreatorSurveyPageComponent extends CreatorModelElement {
1051
1054
  }
1052
1055
  renderContent() {
1053
1056
  if (!this.model.needRenderContent) {
1054
- return /* @__PURE__ */ React.createElement("div", { className: "svc-page__loading-content" }, /* @__PURE__ */ React.createElement(LoadingIndicatorComponent, null));
1057
+ return /* @__PURE__ */ React.createElement("div", { className: this.model.loadingContentCss }, /* @__PURE__ */ React.createElement(LoadingIndicatorComponent, null));
1055
1058
  }
1056
1059
  return /* @__PURE__ */ React.createElement(
1057
1060
  PageElementContent,
@@ -1063,6 +1066,7 @@ class CreatorSurveyPageComponent extends CreatorModelElement {
1063
1066
  );
1064
1067
  }
1065
1068
  renderHeader() {
1069
+ if (!this.model.needRenderContent) return null;
1066
1070
  const actions = /* @__PURE__ */ React.createElement("div", { className: "svc-page__content-actions" }, /* @__PURE__ */ React.createElement(SurveyActionBar, { model: this.model.actionContainer }), this.model.topActionContainer.hasActions ? /* @__PURE__ */ React.createElement(SurveyActionBar, { model: this.model.topActionContainer }) : null);
1067
1071
  if (this.model.isGhost || !this.model.allowDragging) {
1068
1072
  return actions;
@@ -1078,6 +1082,7 @@ class CreatorSurveyPageComponent extends CreatorModelElement {
1078
1082
  );
1079
1083
  }
1080
1084
  renderFooter() {
1085
+ if (!this.model.needRenderContent) return null;
1081
1086
  return /* @__PURE__ */ React.createElement(SurveyActionBar, { model: this.model.footerActionsBar });
1082
1087
  }
1083
1088
  }
@@ -1368,7 +1373,8 @@ class ItemValueAdornerComponent extends CreatorModelElement {
1368
1373
  const button = this.model.allowAdd ? this.renderButton(this.model.addAction) : /* @__PURE__ */ React.createElement(React.Fragment, null, " ", this.model.isDraggable ? /* @__PURE__ */ React.createElement(
1369
1374
  "span",
1370
1375
  {
1371
- className: "svc-item-value-controls__drag"
1376
+ className: "svc-item-value-controls__drag",
1377
+ "data-sv-tooltip": this.model.dragTooltip
1372
1378
  },
1373
1379
  /* @__PURE__ */ React.createElement(SvgIcon, { className: "svc-item-value-controls__drag-icon", size: "auto", iconName: "icon-drag-24x24", title: this.model.dragTooltip })
1374
1380
  ) : null, this.model.allowRemove ? this.renderButton(this.model.removeAction) : null);
@@ -2804,7 +2810,7 @@ class TabJsonEditorTextareaComponent extends SurveyElementBase {
2804
2810
  ref: (input) => setControl(input),
2805
2811
  className: "svc-json-editor-tab__content-area",
2806
2812
  value: this.model.text,
2807
- onChange: (e) => this.model.text = e.target.value,
2813
+ onChange: (e) => this.model.onTextInput(e.target.value),
2808
2814
  onKeyDown: (e) => this.model.checkKey(e, e),
2809
2815
  disabled: this.model.readOnly,
2810
2816
  "aria-label": this.model.ariaLabel
@@ -3196,6 +3202,7 @@ class SwitcherComponent extends SurveyElementBase {
3196
3202
  disabled: this.item.disabled,
3197
3203
  onClick: (args) => this.item.action(this.item, this.item.getIsTrusted(args)),
3198
3204
  title: tooltip,
3205
+ "data-sv-tooltip": tooltip,
3199
3206
  "aria-checked": this.item.ariaChecked,
3200
3207
  "aria-expanded": this.item.ariaExpanded,
3201
3208
  role: this.item.ariaRole
@@ -3309,7 +3316,7 @@ let ItemTemplateComponent$1 = class ItemTemplateComponent extends SurveyElementB
3309
3316
  return attachKey2click(/* @__PURE__ */ React.createElement("button", { type: "button", onClick: (event) => {
3310
3317
  event.stopPropagation();
3311
3318
  item.data.fixError();
3312
- }, title: item.data.fixButtonTitle, className: "svc-json-error__fix-button" }, /* @__PURE__ */ React.createElement(SvgIcon, { iconName: item.data.fixButtonIcon, size: "auto" })));
3319
+ }, title: item.data.fixButtonTitle, "data-sv-tooltip": item.data.fixButtonTitle, className: "svc-json-error__fix-button" }, /* @__PURE__ */ React.createElement(SvgIcon, { iconName: item.data.fixButtonIcon, size: "auto" })));
3313
3320
  }
3314
3321
  };
3315
3322
  ReactElementFactory.Instance.registerElement(
@@ -3615,6 +3622,7 @@ class SurveyQuestionFileEditorButton extends SurveyElementBase {
3615
3622
  onClick: (event) => this.question.chooseFiles(event.nativeEvent),
3616
3623
  className: this.item.getActionBarItemCss(),
3617
3624
  htmlFor: this.question.inputId,
3625
+ "data-sv-tooltip": this.item.title,
3618
3626
  "aria-label": this.question.chooseButtonCaption
3619
3627
  },
3620
3628
  /* @__PURE__ */ React.createElement(SvgIcon, { iconName: this.item.iconName, size: "auto", title: this.item.title, className: this.item.cssClasses.itemIcon }),
@@ -3648,8 +3656,8 @@ ReactElementFactory.Instance.registerElement("sv-fileedit-button", (props) => {
3648
3656
  });
3649
3657
 
3650
3658
  let Version;
3651
- Version = `${"3.2.2"}`;
3652
- checkLibraryVersion(`${"3.2.2"}`, "survey-creator-react");
3659
+ Version = `${"3.2.4"}`;
3660
+ checkLibraryVersion(`${"3.2.4"}`, "survey-creator-react");
3653
3661
 
3654
3662
  export { ActionButton, AdaptiveToolbox, AddQuestionButtonComponent, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, CollabRowComponent, ComponentContainer, CreatorSurveyPageComponent, FloatingPanelComponent, IconItem, ImageItemValueAdornerComponent, ItemValueAdornerComponent, LogoImageComponent, MatrixCellAdornerComponent, PanelAdornerComponent, PropertyGridComponent, PropertyGridPlaceholderComponent, QuestionAdornerComponent, QuestionBanner, QuestionDropdownAdornerComponent, QuestionEditorContentComponent, QuestionErrorComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, QuestionWrapperFooter, QuestionWrapperHeader, ReactDragEvent, ReactMouseEvent, RowWrapper, SearchComponent, SideBarDefaultHeader, SideBarLaunchCard, SidebarComponent, SurveyCreator, SurveyCreatorComponent, SurveyCreatorToolboxCategory, SurveyCreatorToolboxItem, SurveyCreatorToolboxItemGroup, SurveyCreatorToolboxTool, SurveyElementEmbeddedSurvey, SurveyLocStringEditor, SurveyLogicOpertor, SurveyNavigation, SurveyQuestionColor, SurveyQuestionFileEditor, SurveyQuestionFileEditorButton, SurveyQuestionLinkValue, SurveyQuestionSpinEditor, SurveyResults, SurveyResultsByRow, SurveySimulator, SurveySpinEditorButton, SwitcherComponent, TabButtonComponent, TabContainerComponent, TabDesignerComponent, TabJsonEditorAceComponent, TabJsonEditorErrorsComponent, TabJsonEditorTextareaComponent, TabLogicComponent, TabPreviewSurveyComponent, TabThemeSurveyComponent, TabTranslationComponent, TabbedMenuComponent, TabbedMenuItemComponent, ToolboxList, TranslateFromAction, TranslationDropdownQuestionComponent, TranslationLineSkeleton, TranslationLocaleItemComponent, VariablesViewerComponent, Version };
3655
3663
  //# sourceMappingURL=survey-creator-react.mjs.map