survey-creator-react 3.2.3 → 3.2.5

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.3
2
+ * SurveyJS Creator v3.2.5
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
@@ -106,7 +106,7 @@ class TabbedMenuItemComponent extends SurveyElementBase {
106
106
  getStateElement() {
107
107
  return this.item;
108
108
  }
109
- render() {
109
+ renderElement() {
110
110
  const item = this.item;
111
111
  return attachKey2click(
112
112
  /* @__PURE__ */ React.createElement(
@@ -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,
@@ -325,7 +326,7 @@ class RowWrapper extends CreatorModelElement {
325
326
  this.model.unsubscribeElementChanges();
326
327
  super.componentWillUnmount();
327
328
  }
328
- render() {
329
+ renderElement() {
329
330
  return /* @__PURE__ */ React.createElement(
330
331
  "div",
331
332
  {
@@ -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
  )
@@ -618,7 +621,7 @@ ReactElementFactory.Instance.registerElement("svc-action-button", (props) => {
618
621
 
619
622
  class QuestionBanner extends React.Component {
620
623
  render() {
621
- return /* @__PURE__ */ React.createElement("div", { className: "svc-carry-forward-panel-wrapper" }, /* @__PURE__ */ React.createElement("div", { className: "svc-carry-forward-panel" }, /* @__PURE__ */ React.createElement("span", null, this.props.text, " "), /* @__PURE__ */ React.createElement("span", { className: "svc-carry-forward-panel__link" }, /* @__PURE__ */ React.createElement(ActionButton, { click: () => this.props.onClick(), text: this.props.actionText }))));
624
+ return /* @__PURE__ */ React.createElement("div", { className: "svc-carry-forward-panel-wrapper" }, /* @__PURE__ */ React.createElement("div", { className: "svc-carry-forward-panel" }, /* @__PURE__ */ React.createElement("span", null, this.props.text, " "), this.props.actionText ? /* @__PURE__ */ React.createElement("span", { className: "svc-carry-forward-panel__link" }, /* @__PURE__ */ React.createElement(ActionButton, { click: () => this.props.onClick(), text: this.props.actionText })) : null));
622
625
  }
623
626
  }
624
627
  ReactElementFactory.Instance.registerElement(
@@ -850,7 +853,7 @@ class CellQuestionAdornerComponent extends CreatorModelElement {
850
853
  getUpdatedModelProps() {
851
854
  return ["question", "componentData"];
852
855
  }
853
- render() {
856
+ renderElement() {
854
857
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
855
858
  "div",
856
859
  {
@@ -882,7 +885,7 @@ class CellQuestionDropdownAdornerComponent extends CreatorModelElement {
882
885
  getStateElement() {
883
886
  return this.model;
884
887
  }
885
- render() {
888
+ renderElement() {
886
889
  const question = this.props.question;
887
890
  const textStyle = this.props.question.textStyle;
888
891
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
@@ -928,14 +931,17 @@ ReactElementFactory.Instance.registerElement(
928
931
  );
929
932
 
930
933
  class TranslationDropdownQuestionComponent extends CreatorModelElement {
934
+ get model() {
935
+ return this.modelValue;
936
+ }
931
937
  createModel(props) {
932
- if (!!this.model) {
933
- this.model.dispose();
938
+ const { question } = props;
939
+ const translation = props.componentData ? props.componentData.translation : void 0;
940
+ if (!this.modelValue) {
941
+ this.modelValue = new TranslationDropdownViewModel(question, translation);
942
+ } else {
943
+ this.modelValue.attachToUI(question, translation);
934
944
  }
935
- this.model = new TranslationDropdownViewModel(
936
- props.question,
937
- props.componentData ? props.componentData.translation : void 0
938
- );
939
945
  }
940
946
  getUpdatedModelProps() {
941
947
  return ["question", "componentData"];
@@ -943,9 +949,13 @@ class TranslationDropdownQuestionComponent extends CreatorModelElement {
943
949
  getStateElement() {
944
950
  return this.model;
945
951
  }
952
+ componentDidMount() {
953
+ super.componentDidMount();
954
+ this.createModel(this.props);
955
+ }
946
956
  componentWillUnmount() {
947
957
  super.componentWillUnmount();
948
- this.model.dispose();
958
+ this.model?.detachFromUI();
949
959
  }
950
960
  renderElement() {
951
961
  const question = this.props.question;
@@ -1027,7 +1037,7 @@ class CreatorSurveyPageComponent extends CreatorModelElement {
1027
1037
  "div",
1028
1038
  {
1029
1039
  ref: this.rootRef,
1030
- id: this.props.page.id,
1040
+ id: this.props.page.renderedId,
1031
1041
  "data-sv-drop-target-survey-page": this.model.dropTargetName,
1032
1042
  className: "svc-page__content " + this.model.css,
1033
1043
  onClick: (e) => {
@@ -1151,6 +1161,9 @@ ReactElementFactory.Instance.registerElement(
1151
1161
  class LogoImageComponent extends CreatorModelElement {
1152
1162
  constructor(props) {
1153
1163
  super(props);
1164
+ this.reactOnStrChanged = () => {
1165
+ this.setState({ locLogoLinkchanged: !!this.state && this.state.locLogoLink ? this.state.locLogoLink + 1 : 1 });
1166
+ };
1154
1167
  this.rootRef = React.createRef();
1155
1168
  }
1156
1169
  createModel(props) {
@@ -1166,8 +1179,17 @@ class LogoImageComponent extends CreatorModelElement {
1166
1179
  getStateElement() {
1167
1180
  return this.model;
1168
1181
  }
1182
+ componentDidUpdate(prevProps, prevState) {
1183
+ super.componentDidUpdate(prevProps, prevState);
1184
+ this.model.survey.locLogo.onStringChanged.add(this.reactOnStrChanged);
1185
+ }
1186
+ componentWillUnmount() {
1187
+ super.componentWillUnmount();
1188
+ this.model.survey.locLogo.onStringChanged.remove(this.reactOnStrChanged);
1189
+ }
1169
1190
  componentDidMount() {
1170
1191
  super.componentDidMount();
1192
+ this.model.survey.locLogo.onStringChanged.add(this.reactOnStrChanged);
1171
1193
  this.model.root = this.rootRef.current;
1172
1194
  }
1173
1195
  renderButtons() {
@@ -1185,7 +1207,7 @@ class LogoImageComponent extends CreatorModelElement {
1185
1207
  renderLoadingIndicator() {
1186
1208
  return /* @__PURE__ */ React.createElement("div", { className: "svc-logo-image__loading" }, /* @__PURE__ */ React.createElement(LoadingIndicatorComponent, null));
1187
1209
  }
1188
- render() {
1210
+ renderElement() {
1189
1211
  let content = null;
1190
1212
  if (this.model.survey.locLogo.renderedHtml && !this.model.isUploading) {
1191
1213
  content = this.renderImage();
@@ -1263,9 +1285,11 @@ class SurveyElementEmbeddedSurvey extends SurveyQuestionElementBase {
1263
1285
  this.embeddedSurvey.rootElement = this.rootRef.current;
1264
1286
  }
1265
1287
  }
1266
- render() {
1288
+ canRender() {
1289
+ return !!this.embeddedSurvey;
1290
+ }
1291
+ renderElement() {
1267
1292
  const survey = this.embeddedSurvey;
1268
- if (!survey) return null;
1269
1293
  return /* @__PURE__ */ React.createElement("div", { style: { display: "contents" }, ref: this.rootRef }, /* @__PURE__ */ React.createElement(
1270
1294
  SurveyPage,
1271
1295
  {
@@ -1365,12 +1389,13 @@ class ItemValueAdornerComponent extends CreatorModelElement {
1365
1389
  item: action
1366
1390
  });
1367
1391
  }
1368
- render() {
1392
+ renderElement() {
1369
1393
  this.model.item = this.props.item;
1370
1394
  const button = this.model.allowAdd ? this.renderButton(this.model.addAction) : /* @__PURE__ */ React.createElement(React.Fragment, null, " ", this.model.isDraggable ? /* @__PURE__ */ React.createElement(
1371
1395
  "span",
1372
1396
  {
1373
- className: "svc-item-value-controls__drag"
1397
+ className: "svc-item-value-controls__drag",
1398
+ "data-sv-tooltip": this.model.dragTooltip
1374
1399
  },
1375
1400
  /* @__PURE__ */ React.createElement(SvgIcon, { className: "svc-item-value-controls__drag-icon", size: "auto", iconName: "icon-drag-24x24", title: this.model.dragTooltip })
1376
1401
  ) : null, this.model.allowRemove ? this.renderButton(this.model.removeAction) : null);
@@ -1466,7 +1491,7 @@ class ImageItemValueAdornerComponent extends CreatorModelElement {
1466
1491
  const placeholder = this.model.showPlaceholder ? /* @__PURE__ */ React.createElement("span", { className: "svc-image-item-value__placeholder" }, this.model.placeholderText) : null;
1467
1492
  return /* @__PURE__ */ React.createElement(React.Fragment, null, placeholder, controls);
1468
1493
  }
1469
- render() {
1494
+ renderElement() {
1470
1495
  this.model.item = this.props.item;
1471
1496
  const isNew = !this.props.question.isItemInList(this.props.item);
1472
1497
  this.model.isNew = isNew;
@@ -1567,7 +1592,7 @@ class MatrixCellAdornerComponent extends CreatorModelElement {
1567
1592
  getStateElement() {
1568
1593
  return this.model;
1569
1594
  }
1570
- render() {
1595
+ renderElement() {
1571
1596
  let controls = null;
1572
1597
  if (!!this.model.isSupportCellEditor) {
1573
1598
  controls = /* @__PURE__ */ React.createElement("div", { className: "svc-matrix-cell__question-controls" }, ReactElementFactory.Instance.createElement("sv-action-bar-item", {
@@ -1609,7 +1634,7 @@ class SurveyResults extends CreatorModelElement {
1609
1634
  getStateElement() {
1610
1635
  return this.model;
1611
1636
  }
1612
- render() {
1637
+ renderElement() {
1613
1638
  if (!this.model) {
1614
1639
  return null;
1615
1640
  }
@@ -1658,7 +1683,7 @@ class SurveyResultsByRow extends CreatorModelElement {
1658
1683
  getStateElement() {
1659
1684
  return this.row;
1660
1685
  }
1661
- render() {
1686
+ renderElement() {
1662
1687
  return /* @__PURE__ */ React.createElement(React.Fragment, null, attachKey2click(/* @__PURE__ */ React.createElement("tr", { onClick: () => this.row.toggle() }, /* @__PURE__ */ React.createElement(
1663
1688
  "td",
1664
1689
  {
@@ -1708,7 +1733,7 @@ class SurveyCreatorToolboxTool extends CreatorModelElement {
1708
1733
  getStateElement() {
1709
1734
  return this.item;
1710
1735
  }
1711
- render() {
1736
+ renderElement() {
1712
1737
  const item = this.item;
1713
1738
  const itemComponent = ReactElementFactory.Instance.createElement(
1714
1739
  this.model.itemComponent,
@@ -1774,7 +1799,7 @@ class SurveyCreatorToolboxItem extends CreatorModelElement {
1774
1799
  getStateElement() {
1775
1800
  return this.model;
1776
1801
  }
1777
- render() {
1802
+ renderElement() {
1778
1803
  const banner = this.props.isCompact ? /* @__PURE__ */ React.createElement(
1779
1804
  "span",
1780
1805
  {
@@ -1838,7 +1863,7 @@ class SurveyCreatorToolboxItemGroup extends CreatorModelElement {
1838
1863
  getStateElement() {
1839
1864
  return this.item;
1840
1865
  }
1841
- render() {
1866
+ renderElement() {
1842
1867
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SurveyCreatorToolboxItem, { item: this.item, creator: this.creator, model: this.model, parentModel: this.parentModel, isCompact: this.isCompact }), /* @__PURE__ */ React.createElement(
1843
1868
  "div",
1844
1869
  {
@@ -1868,7 +1893,7 @@ class SurveyCreatorToolboxCategory extends SurveyElementBase {
1868
1893
  getStateElement() {
1869
1894
  return this.category;
1870
1895
  }
1871
- render() {
1896
+ renderElement() {
1872
1897
  const header = this.renderCategoryHeader();
1873
1898
  const items = this.renderCategoryContent();
1874
1899
  return /* @__PURE__ */ React.createElement("div", { className: this.class, key: this.category.name }, /* @__PURE__ */ React.createElement("div", { className: "svc-toolbox__category-header-wrapper" }, header), items);
@@ -1914,7 +1939,7 @@ class ToolboxList extends SurveyElementBase {
1914
1939
  getStateElement() {
1915
1940
  return this.model;
1916
1941
  }
1917
- render() {
1942
+ renderElement() {
1918
1943
  if (!this.model || !this.model.renderElements) return null;
1919
1944
  const items = this.renderItems();
1920
1945
  return /* @__PURE__ */ React.createElement("div", { className: this.model.cssClasses.root }, items);
@@ -1939,9 +1964,6 @@ class SearchComponent extends SurveyElementBase {
1939
1964
  }
1940
1965
  constructor(props) {
1941
1966
  super(props);
1942
- this.state = {
1943
- filterString: this.model.filterString || ""
1944
- };
1945
1967
  }
1946
1968
  renderElement() {
1947
1969
  if (!this.model.isVisible) return null;
@@ -1960,7 +1982,7 @@ class SearchComponent extends SurveyElementBase {
1960
1982
  className: "svc-search__input",
1961
1983
  "aria-label": this.model.filterStringPlaceholder,
1962
1984
  placeholder: this.model.filterStringPlaceholder,
1963
- value: this.state.filterString,
1985
+ value: this.model.filterString || "",
1964
1986
  onChange,
1965
1987
  tabIndex: this.model.getTabIndex()
1966
1988
  }
@@ -2024,7 +2046,7 @@ class AdaptiveToolbox extends SurveyElementBase {
2024
2046
  const searchButton = this.toolbox.isCompactRendered ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SurveyCreatorToolboxTool, { item: this.toolbox.searchItem, creator: this.creator, parentModel: this.toolbox, isCompact: this.toolbox.isCompactRendered, key: "searchitem" })) : null;
2025
2047
  return /* @__PURE__ */ React.createElement("div", { className: "svc-toolbox__search-container" }, searchButton, /* @__PURE__ */ React.createElement(SearchComponent, { model: this.toolbox.searchManager }), /* @__PURE__ */ React.createElement("div", { className: "svc-toolbox__category-separator svc-toolbox__category-separator--search" }));
2026
2048
  }
2027
- render() {
2049
+ renderElement() {
2028
2050
  const search = this.toolbox.showSearch ? this.renderSearch() : null;
2029
2051
  const placeholder = this.toolbox.showPlaceholder ? /* @__PURE__ */ React.createElement("div", { className: "svc-toolbox__placeholder" }, this.toolbox.toolboxNoResultsFound) : null;
2030
2052
  return /* @__PURE__ */ React.createElement("div", { ref: this.rootRef, className: this.toolbox.classNames, style: this.toolbox.getRootStyle() }, /* @__PURE__ */ React.createElement("div", { onBlur: (e) => this.toolbox.focusOut(e), className: "svc-toolbox__panel" }, search, placeholder, /* @__PURE__ */ React.createElement(Scroll, null, this.toolbox.showInSingleCategory ? /* @__PURE__ */ React.createElement("div", { className: "svc-toolbox__category" }, this.renderItems(this.toolbox.renderedActions, this.toolbox.isCompactRendered)) : this.renderCategories())));
@@ -2035,43 +2057,6 @@ ReactElementFactory.Instance.registerElement("svc-toolbox", (props) => {
2035
2057
  });
2036
2058
 
2037
2059
  class SurveyNavigation extends SurveyElementBase {
2038
- constructor() {
2039
- super(...arguments);
2040
- this.onPropChangedHandler = (sender, options) => {
2041
- if (this.isRendering) return;
2042
- const reactiveProps = [
2043
- "showProgressBar",
2044
- "progressBarType",
2045
- "currentPageValue"
2046
- ];
2047
- if (reactiveProps.indexOf(options.name) < 0) return;
2048
- var val = {};
2049
- for (var i = 0; i < reactiveProps.length; i++) {
2050
- var propName = reactiveProps[i];
2051
- val[propName] = this.survey[propName];
2052
- }
2053
- this.setState(val);
2054
- };
2055
- }
2056
- componentDidMount() {
2057
- super.componentDidMount();
2058
- this.setHandler();
2059
- }
2060
- componentDidUpdate(prevProps, prevState) {
2061
- super.componentDidUpdate(prevProps, prevState);
2062
- this.setHandler();
2063
- }
2064
- setHandler() {
2065
- if (!this.survey || this.survey.onPropertyChanged.hasFunc(this.onPropChangedHandler))
2066
- return;
2067
- this.survey.onPropertyChanged.add(this.onPropChangedHandler);
2068
- }
2069
- componentWillUnmount() {
2070
- super.componentWillUnmount();
2071
- if (this.survey) {
2072
- this.survey.onPropertyChanged.remove(this.onPropChangedHandler);
2073
- }
2074
- }
2075
2060
  get survey() {
2076
2061
  return this.props.survey;
2077
2062
  }
@@ -2412,7 +2397,7 @@ class SurveyLocStringEditor extends CreatorModelElement {
2412
2397
  get className() {
2413
2398
  return this.baseModel.className(this.locString.renderedHtml);
2414
2399
  }
2415
- render() {
2400
+ renderElement() {
2416
2401
  if (!this.locString) {
2417
2402
  return null;
2418
2403
  }
@@ -2639,16 +2624,16 @@ class TabDesignerComponent extends SurveyElementBase {
2639
2624
  this.denyUpdate = () => {
2640
2625
  this.denyComponentUpdate();
2641
2626
  };
2642
- this.allowUpdate = () => {
2627
+ this.allowUpdateHandler = () => {
2643
2628
  this.allowComponentUpdate();
2644
2629
  };
2645
2630
  this.addDragDropEvents = () => {
2646
2631
  this.creator.onDragStart.add(this.denyUpdate);
2647
- this.creator.onDragClear.add(this.allowUpdate);
2632
+ this.creator.onDragClear.add(this.allowUpdateHandler);
2648
2633
  };
2649
2634
  this.clearDragDropEvents = () => {
2650
2635
  this.creator.onDragStart.remove(this.denyUpdate);
2651
- this.creator.onDragClear.remove(this.allowUpdate);
2636
+ this.creator.onDragClear.remove(this.allowUpdateHandler);
2652
2637
  };
2653
2638
  }
2654
2639
  get model() {
@@ -2664,7 +2649,6 @@ class TabDesignerComponent extends SurveyElementBase {
2664
2649
  componentWillUnmount() {
2665
2650
  super.componentWillUnmount();
2666
2651
  this.clearDragDropEvents();
2667
- super.componentWillUnmount();
2668
2652
  }
2669
2653
  getStateElements() {
2670
2654
  return [this.model, this.model.survey, this.model.pagesController];
@@ -2833,6 +2817,7 @@ class TabJsonEditorAceComponent extends SurveyElementBase {
2833
2817
  return this.props.data;
2834
2818
  }
2835
2819
  componentDidMount() {
2820
+ super.componentDidMount();
2836
2821
  this.model.init(ace.edit(this.aceEditorrRef.current));
2837
2822
  }
2838
2823
  renderElement() {
@@ -2853,6 +2838,39 @@ ReactElementFactory.Instance.registerElement(
2853
2838
  }
2854
2839
  );
2855
2840
 
2841
+ class TabJsonEditorMonacoComponent extends SurveyElementBase {
2842
+ constructor(props) {
2843
+ super(props);
2844
+ this.monacoEditorRef = React.createRef();
2845
+ }
2846
+ getStateElement() {
2847
+ return this.model;
2848
+ }
2849
+ get model() {
2850
+ return this.props.data;
2851
+ }
2852
+ componentDidMount() {
2853
+ super.componentDidMount();
2854
+ this.model.init(this.monacoEditorRef.current);
2855
+ }
2856
+ renderElement() {
2857
+ const errors = /* @__PURE__ */ React.createElement(TabJsonEditorErrorsComponent, { data: this.model });
2858
+ return /* @__PURE__ */ React.createElement("div", { className: "svc-creator-tab__content" }, /* @__PURE__ */ React.createElement("div", { className: "svc-json-editor-tab__content" }, /* @__PURE__ */ React.createElement(
2859
+ "div",
2860
+ {
2861
+ className: "svc-json-editor-tab__monaco-editor",
2862
+ ref: this.monacoEditorRef
2863
+ }
2864
+ ), errors));
2865
+ }
2866
+ }
2867
+ ReactElementFactory.Instance.registerElement(
2868
+ "svc-tab-json-editor-monaco",
2869
+ (props) => {
2870
+ return React.createElement(TabJsonEditorMonacoComponent, props);
2871
+ }
2872
+ );
2873
+
2856
2874
  class TabLogicComponent extends SurveyElementBase {
2857
2875
  get model() {
2858
2876
  return this.props.data;
@@ -3198,6 +3216,7 @@ class SwitcherComponent extends SurveyElementBase {
3198
3216
  disabled: this.item.disabled,
3199
3217
  onClick: (args) => this.item.action(this.item, this.item.getIsTrusted(args)),
3200
3218
  title: tooltip,
3219
+ "data-sv-tooltip": tooltip,
3201
3220
  "aria-checked": this.item.ariaChecked,
3202
3221
  "aria-expanded": this.item.ariaExpanded,
3203
3222
  role: this.item.ariaRole
@@ -3301,7 +3320,7 @@ ReactElementFactory.Instance.registerElement("svc-floating-panel", (props) => {
3301
3320
  });
3302
3321
 
3303
3322
  let ItemTemplateComponent$1 = class ItemTemplateComponent extends SurveyElementBase {
3304
- render() {
3323
+ renderElement() {
3305
3324
  const item = this.props.item;
3306
3325
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SvgIcon, { iconName: item.iconName, size: item.iconSize, className: "svc-json-error__icon" }), /* @__PURE__ */ React.createElement("div", { className: "svc-json-error__container" }, /* @__PURE__ */ React.createElement("div", { className: "svc-json-error__title" }, /* @__PURE__ */ React.createElement("span", { key: 2 }, this.renderLocString(item.locTitle, void 0, "locString"))), this.renderFixButton()));
3307
3326
  }
@@ -3311,7 +3330,7 @@ let ItemTemplateComponent$1 = class ItemTemplateComponent extends SurveyElementB
3311
3330
  return attachKey2click(/* @__PURE__ */ React.createElement("button", { type: "button", onClick: (event) => {
3312
3331
  event.stopPropagation();
3313
3332
  item.data.fixError();
3314
- }, title: item.data.fixButtonTitle, className: "svc-json-error__fix-button" }, /* @__PURE__ */ React.createElement(SvgIcon, { iconName: item.data.fixButtonIcon, size: "auto" })));
3333
+ }, 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" })));
3315
3334
  }
3316
3335
  };
3317
3336
  ReactElementFactory.Instance.registerElement(
@@ -3475,7 +3494,7 @@ class Swatch extends React.Component {
3475
3494
  }
3476
3495
 
3477
3496
  class ItemTemplateComponent extends SurveyElementBase {
3478
- render() {
3497
+ renderElement() {
3479
3498
  const item = this.props.item;
3480
3499
  return /* @__PURE__ */ React.createElement("div", { className: "sd-color-swatch-item" }, /* @__PURE__ */ React.createElement("div", { className: "sd-color-swatch-item__label" }, /* @__PURE__ */ React.createElement("span", { key: 2, className: "sd-color-swatch-item__caption" }, this.renderLocString(item.locTitle, void 0, "locString"))), /* @__PURE__ */ React.createElement(Swatch, { color: item.value }));
3481
3500
  }
@@ -3617,6 +3636,7 @@ class SurveyQuestionFileEditorButton extends SurveyElementBase {
3617
3636
  onClick: (event) => this.question.chooseFiles(event.nativeEvent),
3618
3637
  className: this.item.getActionBarItemCss(),
3619
3638
  htmlFor: this.question.inputId,
3639
+ "data-sv-tooltip": this.item.title,
3620
3640
  "aria-label": this.question.chooseButtonCaption
3621
3641
  },
3622
3642
  /* @__PURE__ */ React.createElement(SvgIcon, { iconName: this.item.iconName, size: "auto", title: this.item.title, className: this.item.cssClasses.itemIcon }),
@@ -3650,8 +3670,8 @@ ReactElementFactory.Instance.registerElement("sv-fileedit-button", (props) => {
3650
3670
  });
3651
3671
 
3652
3672
  let Version;
3653
- Version = `${"3.2.3"}`;
3654
- checkLibraryVersion(`${"3.2.3"}`, "survey-creator-react");
3673
+ Version = `${"3.2.5"}`;
3674
+ checkLibraryVersion(`${"3.2.5"}`, "survey-creator-react");
3655
3675
 
3656
- 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 };
3676
+ 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, TabJsonEditorMonacoComponent, TabJsonEditorTextareaComponent, TabLogicComponent, TabPreviewSurveyComponent, TabThemeSurveyComponent, TabTranslationComponent, TabbedMenuComponent, TabbedMenuItemComponent, ToolboxList, TranslateFromAction, TranslationDropdownQuestionComponent, TranslationLineSkeleton, TranslationLocaleItemComponent, VariablesViewerComponent, Version };
3657
3677
  //# sourceMappingURL=survey-creator-react.mjs.map