survey-creator-react 3.0.0-beta.8 → 3.0.0

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.0.0-beta.8
2
+ * SurveyJS Creator v3.0.0
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
@@ -2320,7 +2320,7 @@ class TabDesignerComponent extends SurveyElementBase {
2320
2320
  renderTabContent() {
2321
2321
  const survey = this.creator.survey;
2322
2322
  const surveyHeader = this.renderHeader(this.creator.showSurveyHeader);
2323
- const style = Object.assign({}, this.model.surfaceCssVariables);
2323
+ const style = { ...this.model.surfaceCssVariables };
2324
2324
  style.maxWidth = survey.renderedWidth;
2325
2325
  const tabTools = this.renderTabTools();
2326
2326
  return (React.createElement(React.Fragment, null,
@@ -2633,6 +2633,7 @@ class TabTranslationComponent extends SurveyElementBase {
2633
2633
  return (React.createElement("div", { className: "svc-creator-tab__content svc-translation-tab" + (this.model.isEmpty ? " svc-translation-tab--empty" : "") }, this.renderElementContent()));
2634
2634
  }
2635
2635
  renderElementContent() {
2636
+ var _a, _b;
2636
2637
  if (this.model.isEmpty) {
2637
2638
  return React.createElement(SurfacePlaceholder, { name: "translation", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText });
2638
2639
  }
@@ -2640,9 +2641,9 @@ class TabTranslationComponent extends SurveyElementBase {
2640
2641
  return (React.createElement("div", { className: "st-content" },
2641
2642
  React.createElement("div", { className: "svc-flex-column st-strings-wrapper" },
2642
2643
  React.createElement("div", { className: "svc-flex-row st-strings-header" },
2643
- React.createElement(Survey, { model: this.model.stringsHeaderSurvey })),
2644
+ React.createElement(Survey, { key: (_a = this.model.stringsHeaderSurvey) === null || _a === void 0 ? void 0 : _a.elementIdPrefix, model: this.model.stringsHeaderSurvey })),
2644
2645
  React.createElement("div", { className: "svc-flex-row svc-plugin-tab__content st-strings" },
2645
- React.createElement(Survey, { model: this.model.stringsSurvey })))));
2646
+ React.createElement(Survey, { key: (_b = this.model.stringsSurvey) === null || _b === void 0 ? void 0 : _b.elementIdPrefix, model: this.model.stringsSurvey })))));
2646
2647
  }
2647
2648
  }
2648
2649
  }
@@ -2695,7 +2696,7 @@ class ComponentContainer extends React.Component {
2695
2696
  }
2696
2697
  render() {
2697
2698
  const children = this.props.model.elements.map((element, index) => {
2698
- return ReactElementFactory.Instance.createElement(element.componentName, Object.assign(Object.assign({}, element.componentData), { key: index }));
2699
+ return ReactElementFactory.Instance.createElement(element.componentName, { ...element.componentData, key: index });
2699
2700
  });
2700
2701
  const inner = this.props.model.scrollable ? React.createElement(Scroll, null,
2701
2702
  " ",
@@ -2852,7 +2853,7 @@ class Swatch extends React.Component {
2852
2853
  const { onColorInputChange, colorInputValue, colorInputClassName, inputDisabled, arias } = this.props;
2853
2854
  if (!onColorInputChange)
2854
2855
  return null;
2855
- return (React.createElement("input", Object.assign({ type: "color", disabled: inputDisabled, value: colorInputValue, className: colorInputClassName, onChange: onColorInputChange, tabIndex: -1 }, arias)));
2856
+ return (React.createElement("input", { type: "color", disabled: inputDisabled, value: colorInputValue, className: colorInputClassName, onChange: onColorInputChange, tabIndex: -1, ...arias }));
2856
2857
  }
2857
2858
  render() {
2858
2859
  const content = (React.createElement("div", { className: "sd-color-swatch__content", style: this.rootStyle },
@@ -2954,7 +2955,8 @@ class SurveyQuestionFileEditorButton extends SurveyElementBase {
2954
2955
  renderElement() {
2955
2956
  return (React.createElement("div", null,
2956
2957
  attachKey2click(React.createElement("label", { onClick: event => this.question.chooseFiles(event.nativeEvent), className: this.item.getActionBarItemCss(), htmlFor: this.question.inputId, "aria-label": this.question.chooseButtonCaption },
2957
- React.createElement(SvgIcon, { iconName: this.item.iconName, size: "auto", title: this.item.title, className: this.item.cssClasses.itemIcon }))),
2958
+ React.createElement(SvgIcon, { iconName: this.item.iconName, size: "auto", title: this.item.title, className: this.item.cssClasses.itemIcon }),
2959
+ React.createElement("span", { className: "sv-visuallyhidden" }, this.question.chooseButtonCaption))),
2958
2960
  React.createElement("input", { type: "file", disabled: this.item.disabled, className: this.question.cssClasses.fileInput, id: this.question.inputId, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy, multiple: false, title: this.question.inputTitle, accept: this.question.acceptedTypes, tabIndex: -1, onChange: (event) => this.question.onFileInputChange(event.nativeEvent) })));
2959
2961
  }
2960
2962
  }
@@ -2966,8 +2968,8 @@ ReactElementFactory.Instance.registerElement("sv-fileedit-button", (props) => {
2966
2968
  });
2967
2969
 
2968
2970
  let Version;
2969
- Version = `${"3.0.0-beta.8"}`;
2970
- checkLibraryVersion(`${"3.0.0-beta.8"}`, "survey-creator-react");
2971
+ Version = `${"3.0.0"}`;
2972
+ checkLibraryVersion(`${"3.0.0"}`, "survey-creator-react");
2971
2973
 
2972
2974
  export { ActionButton, AdaptiveToolbox, AddQuestionButtonComponent, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, ComponentContainer, CreatorSurveyPageComponent, 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, TranslationLineSkeleton, Version };
2973
2975
  //# sourceMappingURL=survey-creator-react.mjs.map