survey-creator-react 1.12.5 → 1.12.7

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.
package/index.html CHANGED
@@ -16,7 +16,9 @@
16
16
  <script src="./node_modules/survey-core/survey.i18n.min.js"></script>
17
17
  <script src="./node_modules/survey-core/themes/index.js"></script>
18
18
  <script src="./node_modules/survey-react-ui/survey-react-ui.js"></script>
19
+ <script src="./node_modules/survey-creator-core/themes/index.js"></script>
19
20
  <script src="./node_modules/survey-creator-core/survey-creator-core.js"></script>
21
+ <script src="./node_modules/survey-creator-core/survey-creator-core.i18n.min.js"></script>
20
22
 
21
23
  <!--<script src="./build/survey-creator-react.js"></script>-->
22
24
  <link rel="stylesheet" type="text/css" href="./node_modules/survey-core/defaultV2.css" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-react",
3
- "version": "1.12.5",
3
+ "version": "1.12.7",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -29,9 +29,9 @@
29
29
  "ace-builds": "^1.4.12",
30
30
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0",
31
31
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0",
32
- "survey-core": "1.12.5",
33
- "survey-react-ui": "1.12.5",
34
- "survey-creator-core": "1.12.5"
32
+ "survey-core": "1.12.7",
33
+ "survey-react-ui": "1.12.7",
34
+ "survey-creator-core": "1.12.7"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "ace-builds": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator React v1.12.5
2
+ * SurveyJS Creator React v1.12.7
3
3
  * (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -196,9 +196,6 @@ var ImageItemValueAdornerComponent = /** @class */ (function (_super) {
196
196
  };
197
197
  ImageItemValueAdornerComponent.prototype.render = function () {
198
198
  var _this = this;
199
- // if (this.model.question.isDragged) {
200
- // return null;
201
- // }
202
199
  this.model.item = this.props.item;
203
200
  var isNew = !this.props.question.isItemInList(this.props.item);
204
201
  this.model.isNew = isNew;
@@ -309,9 +306,6 @@ var ItemValueAdornerComponent = /** @class */ (function (_super) {
309
306
  };
310
307
  ItemValueAdornerComponent.prototype.render = function () {
311
308
  var _this = this;
312
- // if (this.model.question.isDragged) {
313
- // return null;
314
- // }
315
309
  this.model.item = this.props.item;
316
310
  var button = this.model.allowAdd ? ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-item-value-controls__button svc-item-value-controls__add", "aria-label": this.model.tooltip, onClick: function () {
317
311
  _this.model.add(_this.model);
@@ -1420,6 +1414,8 @@ var SurveyCreatorComponent = /** @class */ (function (_super) {
1420
1414
  var areaClassName = "svc-full-container svc-creator__area svc-flex-column" + (this.props.creator.haveCommercialLicense ? "" : " svc-creator__area--with-banner");
1421
1415
  var contentWrapperClassName = "svc-creator__content-wrapper svc-flex-row" + (this.props.creator.isMobileView ? " svc-creator__content-wrapper--footer-toolbar" : "");
1422
1416
  var fullContainerClassName = "svc-flex-row svc-full-container" + (" svc-creator__side-bar--" + this.creator.sidebarLocation);
1417
+ var creatorStyles = {};
1418
+ (0,survey_creator_core__WEBPACK_IMPORTED_MODULE_4__.assign)(creatorStyles, this.style, this.props.creator.themeVariables);
1423
1419
  var licenseBanner = null;
1424
1420
  if (!this.props.creator.haveCommercialLicense) {
1425
1421
  var htmlValue = { __html: this.props.creator.licenseText };
@@ -1427,7 +1423,7 @@ var SurveyCreatorComponent = /** @class */ (function (_super) {
1427
1423
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-creator__non-commercial-text", dangerouslySetInnerHTML: htmlValue })));
1428
1424
  }
1429
1425
  //AM: width unrecognized by react
1430
- return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.creator.getRootCss(), ref: this.rootNode, style: this.style },
1426
+ return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.creator.getRootCss(), ref: this.rootNode, style: creatorStyles },
1431
1427
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgBundleComponent, null),
1432
1428
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: areaClassName },
1433
1429
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: fullContainerClassName },
@@ -1744,9 +1740,6 @@ var CellQuestionAdornerComponent = /** @class */ (function (_super) {
1744
1740
  return ["question", "componentData"];
1745
1741
  };
1746
1742
  CellQuestionAdornerComponent.prototype.render = function () {
1747
- if (this.model.isDragged) {
1748
- return null;
1749
- }
1750
1743
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
1751
1744
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { "data-sv-drop-target-survey-element": this.model.element.name, className: "svc-question__adorner" },
1752
1745
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: " svc-question__content--in-popup svc-question__content" }, this.props.element))));
@@ -1799,9 +1792,6 @@ var CellQuestionDropdownAdornerComponent = /** @class */ (function (_super) {
1799
1792
  return this.model;
1800
1793
  };
1801
1794
  CellQuestionDropdownAdornerComponent.prototype.render = function () {
1802
- if (this.model.isDragged) {
1803
- return null;
1804
- }
1805
1795
  var question = this.props.question;
1806
1796
  var textStyle = this.props.question.textStyle;
1807
1797
  return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
@@ -1862,16 +1852,12 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
1862
1852
  }
1863
1853
  CreatorSurveyPageComponent.prototype.createModel = function (props) {
1864
1854
  if (this.model) {
1865
- this.model.dispose();
1855
+ this.model.attachToUI(props.page, this.rootRef.current);
1866
1856
  }
1867
1857
  this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_4__.PageAdorner(props.creator, props.page);
1868
1858
  };
1869
1859
  CreatorSurveyPageComponent.prototype.componentDidUpdate = function (prevProps, prevState) {
1870
- var _a;
1871
1860
  _super.prototype.componentDidUpdate.call(this, prevProps, prevState);
1872
- if (!!((_a = this.rootRef) === null || _a === void 0 ? void 0 : _a.current)) {
1873
- this.model.rootElement = this.rootRef.current;
1874
- }
1875
1861
  };
1876
1862
  CreatorSurveyPageComponent.prototype.getUpdatedModelProps = function () {
1877
1863
  return ["creator", "page"];
@@ -1881,13 +1867,11 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
1881
1867
  };
1882
1868
  CreatorSurveyPageComponent.prototype.componentDidMount = function () {
1883
1869
  _super.prototype.componentDidMount.call(this);
1884
- if (!!this.rootRef.current) {
1885
- this.model.rootElement = this.rootRef.current;
1886
- }
1870
+ this.model.attachToUI(this.props.page, this.rootRef.current);
1887
1871
  };
1888
1872
  CreatorSurveyPageComponent.prototype.componentWillUnmount = function () {
1889
1873
  _super.prototype.componentWillUnmount.call(this);
1890
- this.model.dispose();
1874
+ this.model.detachFromUI();
1891
1875
  };
1892
1876
  CreatorSurveyPageComponent.prototype.canRender = function () {
1893
1877
  return (!!this.model &&
@@ -1899,9 +1883,11 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
1899
1883
  var _this = this;
1900
1884
  if (!this.props.page)
1901
1885
  return null;
1902
- return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.rootRef, className: "svc-page__content " + this.model.css, id: this.props.page.id, onClick: function (e) {
1886
+ return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.rootRef, id: this.props.page.id, "data-sv-drop-target-survey-page": this.model.dropTargetName, className: "svc-page__content " + this.model.css, onClick: function (e) {
1903
1887
  return _this.model.select(_this.model, new _events__WEBPACK_IMPORTED_MODULE_5__.ReactMouseEvent(e));
1904
1888
  }, onDoubleClick: function (e) { return _this.model.dblclick(e.nativeEvent); }, onMouseLeave: function (e) { return _this.model.hover(e.nativeEvent, e.currentTarget); }, onMouseOver: function (e) { return _this.model.hover(e.nativeEvent, e.currentTarget); } },
1889
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--top" }),
1890
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }),
1905
1891
  this.renderHeader(),
1906
1892
  this.renderContent(),
1907
1893
  this.renderPlaceholder(),
@@ -1918,8 +1904,15 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
1918
1904
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyPage, { page: this.props.page, survey: this.props.survey, creator: this.props.creator, css: this.model.css }));
1919
1905
  };
1920
1906
  CreatorSurveyPageComponent.prototype.renderHeader = function () {
1921
- return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-page__content-actions" },
1907
+ var _this = this;
1908
+ var actions = (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-page__content-actions" },
1922
1909
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.actionContainer })));
1910
+ if (this.model.isGhost || !this.model.allowDragging) {
1911
+ return actions;
1912
+ }
1913
+ return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__drag-area", onPointerDown: function (event) { return _this.model.onPointerDown(event); } },
1914
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-question__drag-element", size: 24, iconName: "icon-drag-area-indicator_24x16" }),
1915
+ actions));
1923
1916
  };
1924
1917
  CreatorSurveyPageComponent.prototype.renderFooter = function () {
1925
1918
  return react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.footerActionsBar });
@@ -2031,10 +2024,12 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
2031
2024
  return _this;
2032
2025
  }
2033
2026
  QuestionAdornerComponent.prototype.createModel = function (props) {
2034
- if (this.modelValue) {
2035
- this.modelValue.dispose();
2027
+ if (this.model) {
2028
+ this.model.attachToUI(props.question, this.rootRef.current);
2029
+ }
2030
+ else {
2031
+ this.modelValue = this.createQuestionViewModel(props);
2036
2032
  }
2037
- this.modelValue = this.createQuestionViewModel(props);
2038
2033
  };
2039
2034
  QuestionAdornerComponent.prototype.createQuestionViewModel = function (props) {
2040
2035
  return new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionAdornerViewModel(props.componentData, props.question, null);
@@ -2052,9 +2047,6 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
2052
2047
  QuestionAdornerComponent.prototype.getStateElement = function () {
2053
2048
  return this.model;
2054
2049
  };
2055
- QuestionAdornerComponent.prototype.canRender = function () {
2056
- return _super.prototype.canRender.call(this) && !this.model.isDragged;
2057
- };
2058
2050
  QuestionAdornerComponent.prototype.renderElement = function () {
2059
2051
  var _this = this;
2060
2052
  var allowInteractions = this.model.element
@@ -2111,14 +2103,7 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
2111
2103
  };
2112
2104
  QuestionAdornerComponent.prototype.componentDidMount = function () {
2113
2105
  _super.prototype.componentDidMount.call(this);
2114
- this.model.rootElement = this.rootRef.current;
2115
- };
2116
- QuestionAdornerComponent.prototype.componentDidUpdate = function (prevProps, prevState) {
2117
- var _a;
2118
- _super.prototype.componentDidUpdate.call(this, prevProps, prevState);
2119
- if (((_a = this.rootRef) === null || _a === void 0 ? void 0 : _a.current) && this.modelValue) {
2120
- this.modelValue.rootElement = this.rootRef.current;
2121
- }
2106
+ this.model.attachToUI(this.props.question, this.rootRef.current);
2122
2107
  };
2123
2108
  QuestionAdornerComponent.prototype.renderElementPlaceholder = function () {
2124
2109
  if (!this.model.isEmptyElement) {
@@ -2129,9 +2114,8 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
2129
2114
  react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText))));
2130
2115
  };
2131
2116
  QuestionAdornerComponent.prototype.componentWillUnmount = function () {
2132
- if (this.model) {
2133
- this.model.dispose();
2134
- }
2117
+ _super.prototype.componentWillUnmount.call(this);
2118
+ this.model.detachFromUI();
2135
2119
  };
2136
2120
  return QuestionAdornerComponent;
2137
2121
  }(_ModelElement__WEBPACK_IMPORTED_MODULE_5__.CreatorModelElement));
@@ -2688,12 +2672,13 @@ var SurveyQuestionBooleanSwitch = /** @class */ (function (_super) {
2688
2672
  }
2689
2673
  SurveyQuestionBooleanSwitch.prototype.renderElement = function () {
2690
2674
  var _this = this;
2675
+ var button = (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__button" + (this.questionBase.value ? " spg-boolean-switch__button--checked" : ""), tabIndex: 0, role: "checkbox", "aria-required": this.questionBase.ariaRequired, "aria-label": this.questionBase.ariaLabel, "aria-invalid": this.questionBase.ariaInvalid, "aria-errormessage": this.questionBase.ariaErrormessage },
2676
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb" },
2677
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })),
2678
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb" },
2679
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right" }))), this.questionBase, { processEsc: false });
2691
2680
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch", onClick: function () { return _this.questionBase.value = !_this.questionBase.value; } },
2692
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__button" + (this.questionBase.value ? " spg-boolean-switch__button--checked" : ""), tabIndex: 0, role: "checkbox", "aria-required": this.questionBase.ariaRequired, "aria-label": this.questionBase.ariaLabel, "aria-invalid": this.questionBase.ariaInvalid, "aria-errormessage": this.questionBase.ariaErrormessage },
2693
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb" },
2694
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })),
2695
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb" },
2696
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right" }))),
2681
+ button,
2697
2682
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__caption" },
2698
2683
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__title" }, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase.renderLocString(this.questionBase.locTitle)))));
2699
2684
  };
@@ -3259,8 +3244,7 @@ var PropertyGridComponent = /** @class */ (function (_super) {
3259
3244
  return _super.prototype.canRender.call(this);
3260
3245
  };
3261
3246
  PropertyGridComponent.prototype.renderElement = function () {
3262
- var rootClassName = this.model.searchEnabled ? "spg-container spg-container_search" : "spg-container";
3263
- return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: rootClassName },
3247
+ return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.model.rootCss },
3264
3248
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Search__WEBPACK_IMPORTED_MODULE_3__.SearchComponent, { model: this.model.searchManager }),
3265
3249
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Survey, { model: this.model.survey })));
3266
3250
  };
@@ -4685,6 +4669,7 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
4685
4669
  };
4686
4670
  AdaptiveToolbox.prototype.componentWillUnmount = function () {
4687
4671
  this.manager && (this.manager.dispose());
4672
+ this.toolbox.unsubscribeRootElement();
4688
4673
  _super.prototype.componentWillUnmount.call(this);
4689
4674
  };
4690
4675
  AdaptiveToolbox.prototype.renderSearch = function () {
@@ -4705,12 +4690,15 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
4705
4690
  var placeholder = this.toolbox.showPlaceholder ? react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__placeholder" }, this.toolbox.toolboxNoResultsFound) : null;
4706
4691
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.rootRef, className: this.toolbox.classNames },
4707
4692
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { onBlur: function (e) { return _this.toolbox.focusOut(e); }, className: "svc-toolbox__panel" },
4708
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__scroller sv-drag-target-skipped", onScroll: function (event) { return _this.toolbox.onScroll(_this.toolbox, event); } },
4709
- search,
4710
- placeholder,
4711
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__container" }, (this.toolbox.showInSingleCategory) ?
4712
- (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__category" }, this.renderItems(this.toolbox.renderedActions, this.toolbox.isCompactRendered)))
4713
- : this.renderCategories())))));
4693
+ search,
4694
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { onBlur: function (e) { return _this.toolbox.focusOut(e); }, className: "svc-toolbox__scroll-wrapper" },
4695
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__scroller sv-drag-target-skipped", onScroll: function (event) { return _this.toolbox.onScroll(_this.toolbox, event); } },
4696
+ placeholder,
4697
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__container" }, (this.toolbox.showInSingleCategory) ?
4698
+ (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__category" }, this.renderItems(this.toolbox.renderedActions, this.toolbox.isCompactRendered)))
4699
+ : this.renderCategories())),
4700
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__scrollbar", onScroll: function (event) { return _this.toolbox.onScrollbarScroll(event.nativeEvent); } },
4701
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__scrollbar-sizer" }))))));
4714
4702
  };
4715
4703
  return AdaptiveToolbox;
4716
4704
  }(_Toolbox__WEBPACK_IMPORTED_MODULE_4__.Toolbox));
@@ -4855,7 +4843,7 @@ var SurveyCreatorToolboxCategory = /** @class */ (function (_super) {
4855
4843
  var header = this.renderCategoryHeader();
4856
4844
  var items = this.renderCategoryContent();
4857
4845
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.class, key: this.category.name },
4858
- header,
4846
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__category-header-wrapper" }, header),
4859
4847
  items));
4860
4848
  };
4861
4849
  SurveyCreatorToolboxCategory.prototype.renderCategoryHeader = function () {
@@ -4969,7 +4957,7 @@ var SurveyCreatorToolboxTool = /** @class */ (function (_super) {
4969
4957
  });
4970
4958
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: item.css, key: item.id },
4971
4959
  (item.needSeparator && !this.creator.toolbox.showCategoryTitles) ? (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__category-separator" })) : null,
4972
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "sv-action__content", onPointerDown: function (event) {
4960
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__tool-content sv-action__content", onPointerDown: function (event) {
4973
4961
  event.persist();
4974
4962
  _this.model.onPointerDown(event);
4975
4963
  }, onMouseOver: function (event) {
@@ -5015,17 +5003,27 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
5015
5003
  };
5016
5004
  SurveyCreatorToolboxItem.prototype.render = function () {
5017
5005
  var _this = this;
5018
- return (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__item " + this.item.className, tabIndex: 0, role: "button", "aria-label": this.item.tooltip, title: this.item.tooltip, onClick: function (event) {
5006
+ var banner = (this.props.isCompact ?
5007
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-toolbox__item-banner", onClick: function (event) {
5008
+ event.persist();
5009
+ _this.model.click(event);
5010
+ } },
5011
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 24, iconName: this.item.iconName, className: "svc-toolbox__item-icon", title: this.item.tooltip }),
5012
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, this.item.title))
5013
+ :
5014
+ null);
5015
+ var item = (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.item.renderedCss, tabIndex: 0, role: "button", "aria-label": this.item.tooltip, onClick: function (event) {
5019
5016
  event.persist();
5020
5017
  _this.model.click(event);
5021
5018
  } },
5022
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-toolbox__item-container" }, !!this.item.iconName ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 24, iconName: this.item.iconName, title: this.item.tooltip }) : null),
5019
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-toolbox__item-container" }, !!this.item.iconName ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 24, iconName: this.item.iconName }) : null),
5023
5020
  (this.props.isCompact ?
5024
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-toolbox__item-banner svc-item__banner" },
5025
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 24, iconName: this.item.iconName, className: "svc-toolbox__item-icon", title: this.item.tooltip }),
5026
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-toolbox__item-title" }, this.item.title))
5021
+ null
5027
5022
  :
5028
5023
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-toolbox__item-title" }, this.item.title))));
5024
+ return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
5025
+ item,
5026
+ banner));
5029
5027
  };
5030
5028
  return SurveyCreatorToolboxItem;
5031
5029
  }(_ModelElement__WEBPACK_IMPORTED_MODULE_4__.CreatorModelElement));
@@ -5459,7 +5457,7 @@ __webpack_require__.r(__webpack_exports__);
5459
5457
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! survey-core */ "survey-core");
5460
5458
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_64__);
5461
5459
  var Version;
5462
- Version = "".concat("1.12.5");
5460
+ Version = "".concat("1.12.7");
5463
5461
  // import "@survey/creator/survey-creator-core.css";
5464
5462
 
5465
5463
 
@@ -5533,7 +5531,7 @@ Version = "".concat("1.12.5");
5533
5531
 
5534
5532
 
5535
5533
 
5536
- (0,survey_core__WEBPACK_IMPORTED_MODULE_64__.checkLibraryVersion)("".concat("1.12.5"), "survey-creator-react");
5534
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_64__.checkLibraryVersion)("".concat("1.12.7"), "survey-creator-react");
5537
5535
 
5538
5536
  })();
5539
5537