survey-creator-react 1.12.8 → 1.12.10

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 v1.12.8
2
+ * SurveyJS Creator React v1.12.10
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
@@ -31,8 +31,11 @@ __webpack_require__.r(__webpack_exports__);
31
31
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
32
32
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
33
33
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
34
- /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
35
- /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
34
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
35
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
36
+ /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
37
+ /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
38
+
36
39
 
37
40
 
38
41
 
@@ -42,25 +45,48 @@ var ActionButton = /** @class */ (function (_super) {
42
45
  return _super !== null && _super.apply(this, arguments) || this;
43
46
  }
44
47
  ActionButton.prototype.renderElement = function () {
45
- var _this = this;
46
- var classes = this.props.classes + " svc-action-button";
47
- if (this.props.selected) {
48
- classes += " svc-action-button--selected";
48
+ var classes = new survey_core__WEBPACK_IMPORTED_MODULE_2__.CssClassBuilder()
49
+ .append(this.props.classes)
50
+ .append("svc-action-button")
51
+ .append("svc-action-button--selected", !!this.props.selected)
52
+ .append("svc-action-button--disabled", !!this.props.disabled)
53
+ .toString();
54
+ if (this.props.iconName) {
55
+ return this.renderIcon(classes);
49
56
  }
57
+ return this.renderButtonText(classes);
58
+ };
59
+ ActionButton.prototype.renderButtonText = function (classes) {
60
+ var _this = this;
50
61
  if (this.props.disabled) {
51
- classes += " svc-action-button--disabled";
52
62
  return react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: classes }, this.props.text);
53
63
  }
54
- return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "button", className: classes, onClick: function (e) {
64
+ return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "button", className: classes, onClick: function (e) {
55
65
  if (!_this.props.allowBubble) {
56
66
  e.stopPropagation();
57
67
  }
58
68
  _this.props.click();
59
69
  }, title: this.props.title }, this.props.text))));
60
70
  };
71
+ ActionButton.prototype.renderIcon = function (classes) {
72
+ var _this = this;
73
+ classes += " svc-action-button--icon";
74
+ if (this.props.disabled) {
75
+ return react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: classes },
76
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: this.props.iconName }));
77
+ }
78
+ return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: classes, onClick: function (e) {
79
+ if (!_this.props.allowBubble) {
80
+ e.stopPropagation();
81
+ }
82
+ _this.props.click();
83
+ }, title: this.props.title },
84
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: this.props.iconName })))));
85
+ };
61
86
  return ActionButton;
62
- }(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
87
+ }(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
63
88
 
89
+ survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-action-button", function (props) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement(ActionButton, props); });
64
90
 
65
91
 
66
92
  /***/ }),
@@ -104,7 +130,7 @@ var AddQuestionButtonComponent = /** @class */ (function (_super) {
104
130
  questionTypeSelectorModel.action();
105
131
  }, className: "svc-element__question-type-selector", title: this.model.addNewQuestionText },
106
132
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-element__question-type-selector-icon" },
107
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: questionTypeSelectorModel.iconName, size: 24, title: this.model.addNewQuestionText })),
133
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: questionTypeSelectorModel.iconName, size: "auto", title: this.model.addNewQuestionText })),
108
134
  this.props.renderPopup === undefined || this.props.renderPopup ?
109
135
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: questionTypeSelectorModel.popupModel })
110
136
  : null));
@@ -117,7 +143,7 @@ var AddQuestionButtonComponent = /** @class */ (function (_super) {
117
143
  e.stopPropagation();
118
144
  _this.model.addNewQuestion(_this.model, new _events__WEBPACK_IMPORTED_MODULE_3__.ReactMouseEvent(e));
119
145
  }, onMouseOver: function (e) { return _this.model.hoverStopper && _this.model.hoverStopper(e.nativeEvent, e.currentTarget); } },
120
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-panel__add-new-question-icon", iconName: "icon-add_24x24", size: 24 }),
146
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-panel__add-new-question-icon", iconName: "icon-add_24x24", size: "auto" }),
121
147
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-add-new-item-button__text" }, this.model.addNewQuestionText),
122
148
  this.props.renderPopup !== false ? this.renderTypeSelector() : null)),
123
149
  this.props.renderPopup === false ? this.renderTypeSelector() : null);
@@ -208,21 +234,21 @@ var ImageItemValueAdornerComponent = /** @class */ (function (_super) {
208
234
  react__WEBPACK_IMPORTED_MODULE_2__.createElement("label", { className: "sd-imagepicker__label" },
209
235
  react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { style: imageStyle, className: "sd-imagepicker__image" }, this.model.isUploading ? this.renderLoadingIndicator() : null)))),
210
236
  react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-image-item-value-controls" }, this.model.allowAdd && !this.model.isUploading ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-context-button svc-image-item-value-controls__add", onClick: function () { return _this.model.chooseNewFile(_this.model); } },
211
- react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 24, iconName: "icon-add-lg", title: this.model.addFileTitle }))) : null)));
237
+ react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: "icon-add-lg", title: this.model.addFileTitle }))) : null)));
212
238
  }
213
239
  else {
214
240
  content = (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
215
241
  react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-image-item-value__item" }, this.props.element),
216
242
  this.model.isDraggable && this.model.canRenderControls ?
217
243
  react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-context-button svc-image-item-value-controls__drag-area-indicator", onPointerDown: function (event) { return _this.model.onPointerDown(event); } },
218
- react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 24, iconName: "icon-drag-area-indicator" }))
244
+ react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: "icon-drag-24x24" }))
219
245
  : null,
220
246
  this.model.canRenderControls ?
221
247
  react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-context-container svc-image-item-value-controls" },
222
248
  this.model.allowRemove && !this.model.isUploading ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-context-button", onClick: function () { return _this.model.chooseFile(_this.model); } },
223
- react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { role: "button", size: 24, iconName: "icon-file", title: this.model.selectFileTitle }))) : null,
249
+ react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { role: "button", size: "auto", iconName: "icon-choosefile", title: this.model.selectFileTitle }))) : null,
224
250
  this.model.allowRemove && !this.model.isUploading ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-context-button svc-context-button--danger", onClick: function () { return _this.model.remove(_this.model); } },
225
- react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { role: "button", size: 24, iconName: "icon-delete", title: this.model.removeFileTitle }))) : null)
251
+ react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { role: "button", size: "auto", iconName: "icon-delete", title: this.model.removeFileTitle }))) : null)
226
252
  : null));
227
253
  }
228
254
  return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { ref: this.rootRef, className: this.model.getRootCss(), key: this.props.element.key, "data-sv-drop-target-item-value": this.model.isDraggable ? this.model.item.value : undefined, onPointerDown: function (event) { return _this.model.onPointerDown(event); }, onDragStart: this.preventDragHandler },
@@ -314,7 +340,7 @@ var ItemValueAdornerComponent = /** @class */ (function (_super) {
314
340
  react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 16, iconName: "icon-add_16x16", title: this.model.tooltip })))) : (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
315
341
  " ",
316
342
  this.model.isDraggable ? (react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-item-value-controls__button svc-item-value-controls__drag" },
317
- react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { className: "svc-item-value-controls__drag-icon", size: 24, iconName: "icon-drag-area-indicator", title: this.model.dragTooltip }))) : null,
343
+ react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { className: "svc-item-value-controls__drag-icon", size: "auto", iconName: "icon-drag-24x24", title: this.model.dragTooltip }))) : null,
318
344
  this.model.allowRemove ? (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__remove", "aria-label": this.model.tooltip, onClick: function () { return _this.model.remove(_this.model); } },
319
345
  react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 16, iconName: "icon-remove_16x16", title: this.model.tooltip }))) : null));
320
346
  var itemkey = this.props.element.key + (this.model.allowAdd ? "_new" : "");
@@ -388,12 +414,12 @@ var LogoImageComponent = /** @class */ (function (_super) {
388
414
  LogoImageComponent.prototype.renderChooseButton = function () {
389
415
  var _this = this;
390
416
  return (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-context-button", onClick: function () { return _this.model.chooseFile(_this.model); } },
391
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: 24, iconName: "icon-file" })));
417
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: "auto", iconName: "icon-choosefile" })));
392
418
  };
393
419
  LogoImageComponent.prototype.renderClearButton = function () {
394
420
  var _this = this;
395
421
  return (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-context-button svc-context-button--danger", onClick: function () { return _this.model.remove(_this.model); } },
396
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: 24, iconName: "icon-clear" })));
422
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: "auto", iconName: "icon-clear" })));
397
423
  };
398
424
  LogoImageComponent.prototype.renderButtons = function () {
399
425
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-context-container svc-logo-image-controls" },
@@ -409,7 +435,7 @@ var LogoImageComponent = /** @class */ (function (_super) {
409
435
  var _this = this;
410
436
  return this.model.allowEdit && !this.model.isUploading ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-logo-image-placeholder", onClick: function () { return _this.model.chooseFile(_this.model); } },
411
437
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("svg", null,
412
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("use", { xlinkHref: "#icon-logo" })))) : null;
438
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("use", { xlinkHref: "#icon-image-48x48" })))) : null;
413
439
  };
414
440
  LogoImageComponent.prototype.renderInput = function () {
415
441
  return react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { "aria-hidden": "true", type: "file", tabIndex: -1, accept: this.model.acceptedTypes, className: "svc-choose-file-input" });
@@ -500,8 +526,8 @@ var MatrixCellAdornerComponent = /** @class */ (function (_super) {
500
526
  var _this = this;
501
527
  var controls = null;
502
528
  if (!!this.model.isSupportCellEditor) {
503
- controls = react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-matrix-cell__question-controls" }, (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-matrix-cell__question-controls-button", onClick: function (event) { return _this.model.editQuestion(_this.model, event); } },
504
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 24, iconName: "icon-edit" }))));
529
+ controls = react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-matrix-cell__question-controls" }, (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-matrix-cell__question-controls-button svc-context-button", onClick: function (event) { return _this.model.editQuestion(_this.model, event); } },
530
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: "icon-edit" }))));
505
531
  }
506
532
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-matrix-cell", tabIndex: -1, key: this.props.element.key, onClick: function (e) { return !_this.props.question && _this.model.selectContext(_this.model, e); }, onMouseOut: function (e) { return _this.model.hover(e.nativeEvent, e.currentTarget); }, onMouseOver: function (e) { return _this.model.hover(e.nativeEvent, e.currentTarget); } },
507
533
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-matrix-cell--selected" + (this.model.isSelected ? " svc-visible" : "") }),
@@ -753,7 +779,7 @@ var SurveyPageNavigator = /** @class */ (function (_super) {
753
779
  className += " svc-page-navigator__selector--opened";
754
780
  return (react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: "svc-page-navigator", ref: this.containerRef, style: { display: this.model.visible ? "flex" : "none" } },
755
781
  (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: className, onClick: function () { return _this.model.togglePageSelector(); }, title: this.model.pageSelectorCaption },
756
- react__WEBPACK_IMPORTED_MODULE_4__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-page-navigator__navigator-icon", iconName: this.model.icon, size: 24, title: this.model.pageSelectorCaption }),
782
+ react__WEBPACK_IMPORTED_MODULE_4__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-page-navigator__navigator-icon", iconName: this.model.icon, size: "auto", title: this.model.pageSelectorCaption }),
757
783
  react__WEBPACK_IMPORTED_MODULE_4__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.model.popupModel }))),
758
784
  react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", null, this.model.visibleItems.map(function (item) { return (react__WEBPACK_IMPORTED_MODULE_4__.createElement(SurveyPageNavigatorItem, { key: item.id, item: item })); }))));
759
785
  };
@@ -999,7 +1025,7 @@ var SurveyQuestionLinkValue = /** @class */ (function (_super) {
999
1025
  SurveyQuestionLinkValue.prototype.renderElement = function () {
1000
1026
  var _this = this;
1001
1027
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
1002
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ActionButton__WEBPACK_IMPORTED_MODULE_4__.ActionButton, { classes: this.question.linkSetButtonCssClasses, click: function () { return _this.question.doLinkClick(); }, selected: this.question.isSelected, disabled: !this.question.isClickable, text: this.question.linkValueText, title: this.question.tooltip }),
1028
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ActionButton__WEBPACK_IMPORTED_MODULE_4__.ActionButton, { classes: this.question.linkSetButtonCssClasses, click: function () { return _this.question.doLinkClick(); }, selected: this.question.isSelected, disabled: !this.question.isClickable, text: this.question.linkValueText, title: this.question.tooltip, iconName: this.question.iconName }),
1003
1029
  this.renderClear()));
1004
1030
  };
1005
1031
  return SurveyQuestionLinkValue;
@@ -1856,6 +1882,14 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
1856
1882
  this.model.attachToUI(props.page, this.rootRef.current);
1857
1883
  }
1858
1884
  this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_4__.PageAdorner(props.creator, props.page);
1885
+ this.model.isGhost = this.props.isGhost;
1886
+ };
1887
+ CreatorSurveyPageComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
1888
+ var res = _super.prototype.shouldComponentUpdate.call(this, nextProps, nextState);
1889
+ if (this.model) {
1890
+ this.model.isGhost = this.props.isGhost;
1891
+ }
1892
+ return res;
1859
1893
  };
1860
1894
  CreatorSurveyPageComponent.prototype.componentDidUpdate = function (prevProps, prevState) {
1861
1895
  _super.prototype.componentDidUpdate.call(this, prevProps, prevState);
@@ -1869,16 +1903,14 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
1869
1903
  CreatorSurveyPageComponent.prototype.componentDidMount = function () {
1870
1904
  _super.prototype.componentDidMount.call(this);
1871
1905
  this.model.attachToUI(this.props.page, this.rootRef.current);
1906
+ this.model.isGhost = this.props.isGhost;
1872
1907
  };
1873
1908
  CreatorSurveyPageComponent.prototype.componentWillUnmount = function () {
1874
1909
  _super.prototype.componentWillUnmount.call(this);
1875
1910
  this.model.detachFromUI();
1876
1911
  };
1877
1912
  CreatorSurveyPageComponent.prototype.canRender = function () {
1878
- return (!!this.model &&
1879
- this.model.isPageLive &&
1880
- !!this.model.page &&
1881
- !!this.model.page.survey);
1913
+ return _super.prototype.canRender.call(this);
1882
1914
  };
1883
1915
  CreatorSurveyPageComponent.prototype.renderElement = function () {
1884
1916
  var _this = this;
@@ -1912,7 +1944,7 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
1912
1944
  return actions;
1913
1945
  }
1914
1946
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__drag-area", onPointerDown: function (event) { return _this.model.onPointerDown(event); } },
1915
- 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" }),
1947
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-question__drag-element", size: "auto", iconName: "icon-drag-area-indicator_24x16" }),
1916
1948
  actions));
1917
1949
  };
1918
1950
  CreatorSurveyPageComponent.prototype.renderFooter = function () {
@@ -1967,7 +1999,7 @@ var PanelAdornerComponent = /** @class */ (function (_super) {
1967
1999
  e.stopPropagation();
1968
2000
  _this.model.addNewQuestion();
1969
2001
  } },
1970
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-panel__add-new-question-icon", iconName: "icon-add_24x24", size: 24 }),
2002
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-panel__add-new-question-icon", iconName: "icon-add_24x24", size: "auto" }),
1971
2003
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-add-new-item-button__text" }, this.model.addNewQuestionText))) : null)));
1972
2004
  };
1973
2005
  PanelAdornerComponent.prototype.disableTabStop = function () {
@@ -2063,7 +2095,7 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
2063
2095
  };
2064
2096
  QuestionAdornerComponent.prototype.renderContent = function (allowInteractions) {
2065
2097
  var _this = this;
2066
- var content = this.renderElementContent();
2098
+ var content = this.model.needToRenderContent ? this.renderElementContent() : null;
2067
2099
  //if (!allowInteractions) return <>{content}{this.renderFooter()}</>;
2068
2100
  return (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.css(), onClick: function (e) { return _this.model.select(_this.model, new _events__WEBPACK_IMPORTED_MODULE_3__.ReactMouseEvent(e)); } },
2069
2101
  react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--left" }),
@@ -2072,7 +2104,7 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
2072
2104
  react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }),
2073
2105
  allowInteractions ? this.renderHeader() : null,
2074
2106
  content,
2075
- this.renderFooter()), undefined, { disableTabStop: this.disableTabStop() });
2107
+ this.model.needToRenderContent ? this.renderFooter() : null), undefined, { disableTabStop: this.disableTabStop() });
2076
2108
  };
2077
2109
  QuestionAdornerComponent.prototype.renderHeader = function () {
2078
2110
  return survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement("svc-question-header", { model: this.model });
@@ -2092,9 +2124,11 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
2092
2124
  if (!this.model.showHiddenTitle)
2093
2125
  return null;
2094
2126
  var element = this.model.element;
2095
- return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.cssCollapsedHiddenHeader },
2096
- react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { ref: function (node) { return node && (!_this.model.renderedCollapsed ?
2097
- node.setAttribute("inert", "") : node.removeAttribute("inert")); }, className: this.model.cssCollapsedHiddenTitle }, element.hasTitle ? survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.SurveyElementBase.renderLocString(element.locTitle, null, "q_title") : react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-fake-title" }, element.name))));
2127
+ return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { ref: function (node) { return node && (!_this.model.renderedCollapsed ?
2128
+ node.setAttribute("inert", "") : node.removeAttribute("inert")); }, className: this.model.cssCollapsedHiddenHeader }, (element.hasTitle ?
2129
+ react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.TitleElement, { element: element }) :
2130
+ react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.cssCollapsedHiddenTitle },
2131
+ react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-fake-title" }, element.name)))));
2098
2132
  };
2099
2133
  QuestionAdornerComponent.prototype.renderElementContent = function () {
2100
2134
  return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
@@ -2319,7 +2353,7 @@ var QuestionWrapperHeader = /** @class */ (function (_super) {
2319
2353
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__drag-area", onPointerDown: function (event) {
2320
2354
  return _this.props.model.onPointerDown(event);
2321
2355
  } },
2322
- 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" }),
2356
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-question__drag-element", size: "auto", iconName: "icon-drag-area-indicator_24x16" }),
2323
2357
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__top-actions" },
2324
2358
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.props.model.topActionContainer, handleClick: false }))));
2325
2359
  };
@@ -2390,7 +2424,7 @@ var QuestionImageAdornerComponent = /** @class */ (function (_super) {
2390
2424
  QuestionImageAdornerComponent.prototype.renderChooseButton = function () {
2391
2425
  var _this = this;
2392
2426
  return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-image-question-controls" }, this.model.allowEdit ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-context-button", onClick: function () { return _this.imageModel.chooseFile(_this.imageModel); } },
2393
- react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 24, iconName: "icon-file" }))) : null));
2427
+ react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: "icon-choosefile" }))) : null));
2394
2428
  };
2395
2429
  QuestionImageAdornerComponent.prototype.renderElementPlaceholder = function () {
2396
2430
  return this.imageModel.isUploading ? this.renderLoadingPlaceholder() : this.renderChooseButton();
@@ -2603,6 +2637,74 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.regist
2603
2637
  });
2604
2638
 
2605
2639
 
2640
+ /***/ }),
2641
+
2642
+ /***/ "./src/components/Search.tsx":
2643
+ /*!***********************************!*\
2644
+ !*** ./src/components/Search.tsx ***!
2645
+ \***********************************/
2646
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2647
+
2648
+ __webpack_require__.r(__webpack_exports__);
2649
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2650
+ /* harmony export */ SearchComponent: () => (/* binding */ SearchComponent)
2651
+ /* harmony export */ });
2652
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
2653
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
2654
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
2655
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
2656
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
2657
+ /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
2658
+ /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
2659
+
2660
+
2661
+
2662
+
2663
+ var SearchComponent = /** @class */ (function (_super) {
2664
+ (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SearchComponent, _super);
2665
+ function SearchComponent(props) {
2666
+ var _this = _super.call(this, props) || this;
2667
+ _this.state = {
2668
+ filterString: _this.model.filterString || ""
2669
+ };
2670
+ return _this;
2671
+ }
2672
+ Object.defineProperty(SearchComponent.prototype, "model", {
2673
+ get: function () {
2674
+ return this.props.model;
2675
+ },
2676
+ enumerable: false,
2677
+ configurable: true
2678
+ });
2679
+ SearchComponent.prototype.getStateElement = function () {
2680
+ return this.model;
2681
+ };
2682
+ SearchComponent.prototype.renderElement = function () {
2683
+ var _this = this;
2684
+ if (!this.model.isVisible)
2685
+ return null;
2686
+ var onChange = function (e) {
2687
+ var root = survey_core__WEBPACK_IMPORTED_MODULE_2__.settings.environment.root;
2688
+ if (e.target === root.activeElement) {
2689
+ _this.model.filterString = e.target.value;
2690
+ }
2691
+ };
2692
+ return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-search" },
2693
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-search__search-icon" },
2694
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-search", size: "auto" })),
2695
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { type: "text", className: "svc-search__input", "aria-label": this.model.filterStringPlaceholder, placeholder: this.model.filterStringPlaceholder, value: this.state.filterString, onChange: onChange }),
2696
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-search__toolbar" },
2697
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-search__toolbar-counter" }, this.model.matchCounterText),
2698
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyActionBar, { model: this.model.searchActionBar }))));
2699
+ };
2700
+ return SearchComponent;
2701
+ }(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
2702
+
2703
+ survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-search", function (props) {
2704
+ return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SearchComponent, props);
2705
+ });
2706
+
2707
+
2606
2708
  /***/ }),
2607
2709
 
2608
2710
  /***/ "./src/components/SurfacePlaceholder.tsx":
@@ -3219,7 +3321,7 @@ __webpack_require__.r(__webpack_exports__);
3219
3321
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
3220
3322
  /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
3221
3323
  /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
3222
- /* harmony import */ var _Search__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Search */ "./src/side-bar/Search.tsx");
3324
+ /* harmony import */ var _components_Search__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/Search */ "./src/components/Search.tsx");
3223
3325
 
3224
3326
 
3225
3327
 
@@ -3246,7 +3348,7 @@ var PropertyGridComponent = /** @class */ (function (_super) {
3246
3348
  };
3247
3349
  PropertyGridComponent.prototype.renderElement = function () {
3248
3350
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.model.rootCss },
3249
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Search__WEBPACK_IMPORTED_MODULE_3__.SearchComponent, { model: this.model.searchManager }),
3351
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_Search__WEBPACK_IMPORTED_MODULE_3__.SearchComponent, { model: this.model.searchManager }),
3250
3352
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Survey, { model: this.model.survey })));
3251
3353
  };
3252
3354
  return PropertyGridComponent;
@@ -3306,74 +3408,6 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.regist
3306
3408
  });
3307
3409
 
3308
3410
 
3309
- /***/ }),
3310
-
3311
- /***/ "./src/side-bar/Search.tsx":
3312
- /*!*********************************!*\
3313
- !*** ./src/side-bar/Search.tsx ***!
3314
- \*********************************/
3315
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3316
-
3317
- __webpack_require__.r(__webpack_exports__);
3318
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3319
- /* harmony export */ SearchComponent: () => (/* binding */ SearchComponent)
3320
- /* harmony export */ });
3321
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
3322
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
3323
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
3324
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
3325
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
3326
- /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
3327
- /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
3328
-
3329
-
3330
-
3331
-
3332
- var SearchComponent = /** @class */ (function (_super) {
3333
- (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SearchComponent, _super);
3334
- function SearchComponent(props) {
3335
- var _this = _super.call(this, props) || this;
3336
- _this.state = {
3337
- filterString: _this.model.filterString || ""
3338
- };
3339
- return _this;
3340
- }
3341
- Object.defineProperty(SearchComponent.prototype, "model", {
3342
- get: function () {
3343
- return this.props.model;
3344
- },
3345
- enumerable: false,
3346
- configurable: true
3347
- });
3348
- SearchComponent.prototype.getStateElement = function () {
3349
- return this.model;
3350
- };
3351
- SearchComponent.prototype.renderElement = function () {
3352
- var _this = this;
3353
- if (!this.model.isVisible)
3354
- return null;
3355
- var onChange = function (e) {
3356
- var root = survey_core__WEBPACK_IMPORTED_MODULE_2__.settings.environment.root;
3357
- if (e.target === root.activeElement) {
3358
- _this.model.filterString = e.target.value;
3359
- }
3360
- };
3361
- return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_container" },
3362
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_search-icon" },
3363
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-search", size: "auto" })),
3364
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { type: "text", className: "spg-search-editor_input", "aria-label": this.model.filterStringPlaceholder, placeholder: this.model.filterStringPlaceholder, value: this.state.filterString, onChange: onChange }),
3365
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_toolbar" },
3366
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_toolbar-counter" }, this.model.matchCounterText),
3367
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyActionBar, { model: this.model.searchActionBar }))));
3368
- };
3369
- return SearchComponent;
3370
- }(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
3371
-
3372
- survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-search", function (props) {
3373
- return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SearchComponent, props);
3374
- });
3375
-
3376
-
3377
3411
  /***/ }),
3378
3412
 
3379
3413
  /***/ "./src/side-bar/SideBar.tsx":
@@ -3612,13 +3646,14 @@ var SideBarPropertyGridHeader = /** @class */ (function (_super) {
3612
3646
  };
3613
3647
  SideBarPropertyGridHeader.prototype.renderElement = function () {
3614
3648
  var _this = this;
3649
+ var button = (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.objectSelectionAction.buttonClassName, onClick: function () { return _this.objectSelectionAction.action(); } },
3650
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-caption" },
3651
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-title" }, this.objectSelectionAction.title),
3652
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-subtitle" }, this.objectSelectionAction.tooltip))), this.props.model);
3615
3653
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header svc-sidebar__header--tabbed" },
3616
3654
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" },
3617
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-content", onClick: function () { return _this.objectSelectionAction.action(); } },
3618
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.objectSelectionAction.buttonClassName },
3619
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-caption" },
3620
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-title" }, this.objectSelectionAction.title),
3621
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-subtitle" }, this.objectSelectionAction.tooltip))),
3655
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-content" },
3656
+ button,
3622
3657
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.Popup, { model: this.objectSelectionAction.popupModel, getTarget: survey_core__WEBPACK_IMPORTED_MODULE_2__.getActionDropdownButtonTarget })))));
3623
3658
  };
3624
3659
  return SideBarPropertyGridHeader;
@@ -3658,11 +3693,11 @@ var TabButtonComponent = /** @class */ (function (_super) {
3658
3693
  };
3659
3694
  TabButtonComponent.prototype.renderElement = function () {
3660
3695
  var _this = this;
3661
- return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-menu-action" },
3662
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.props.model.buttonClassName, title: this.props.model.tooltip, onClick: function () { _this.props.model.action(); } },
3663
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-menu-action__icon" },
3664
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-menu-action__icon-container" },
3665
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.props.model.iconName, size: 24 }))))));
3696
+ var button = (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.props.model.buttonClassName, title: this.props.model.tooltip, onClick: function () { _this.props.model.action(); } },
3697
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-menu-action__icon" },
3698
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-menu-action__icon-container" },
3699
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.props.model.iconName, size: "auto" })))), this.props.model);
3700
+ return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-menu-action" }, button));
3666
3701
  };
3667
3702
  return TabButtonComponent;
3668
3703
  }(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
@@ -3776,7 +3811,6 @@ var TabDesignerComponent = /** @class */ (function (_super) {
3776
3811
  _this.creator.onDragStart.remove(_this.denyUpdate);
3777
3812
  _this.creator.onDragEnd.remove(_this.allowUpdate);
3778
3813
  };
3779
- _this.renderedPagesCache = {};
3780
3814
  return _this;
3781
3815
  }
3782
3816
  Object.defineProperty(TabDesignerComponent.prototype, "model", {
@@ -3807,47 +3841,31 @@ var TabDesignerComponent = /** @class */ (function (_super) {
3807
3841
  };
3808
3842
  TabDesignerComponent.prototype.getRenderedPages = function () {
3809
3843
  var _this = this;
3810
- if (this.changedStatePropName !== "pages") {
3811
- this.renderedPagesCache = {};
3812
- }
3813
3844
  var renderedPages = [];
3814
3845
  if (this.creator.pageEditMode !== "bypage") {
3815
- var pages = this.creator.survey.pages;
3816
- pages.forEach(function (page, index) {
3817
- var cachedPage = _this.renderedPagesCache[page.id];
3818
- if (!cachedPage) {
3819
- cachedPage = _this.createRenderedPage(page, index);
3820
- _this.renderedPagesCache[page.id] = cachedPage;
3821
- }
3822
- renderedPages.push(cachedPage);
3846
+ var pages = this.model.pages;
3847
+ pages.forEach(function (page) {
3848
+ renderedPages.push(_this.createRenderedPage(page, page == _this.model.newPage));
3823
3849
  });
3824
- if (this.model.showNewPage) {
3825
- renderedPages.push(this.renderNewPage("svc-page", this.model.newPage.id + "-ghost-new-page"));
3826
- }
3827
3850
  }
3828
3851
  else {
3829
3852
  var page2Display = this.model.pagesController.page2Display;
3830
3853
  if (!!page2Display) {
3831
- var cachedPage = this.renderedPagesCache[page2Display.id];
3832
- if (!cachedPage) {
3833
- cachedPage = this.createRenderedPage(page2Display, 0, this.model.newPage === page2Display);
3834
- this.renderedPagesCache[page2Display.id] = cachedPage;
3835
- }
3836
- renderedPages.push(cachedPage);
3854
+ renderedPages.push(this.createRenderedPage(page2Display, this.model.newPage === page2Display));
3837
3855
  }
3838
3856
  }
3839
3857
  return renderedPages;
3840
3858
  };
3841
- TabDesignerComponent.prototype.createRenderedPage = function (page, index, isGhostPage) {
3842
- return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-page", "data-sv-drop-target-page": page.name, "data-sv-drop-target-survey-element": isGhostPage ? "newGhostPage" : page.name, key: page.id + "-" + index }, this.renderPage(page)));
3859
+ TabDesignerComponent.prototype.createRenderedPage = function (page, isGhostPage) {
3860
+ return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-page", "data-sv-drop-target-page": page.name, "data-sv-drop-target-survey-element": isGhostPage ? "newGhostPage" : page.name, key: page.id }, this.renderPage(page, isGhostPage)));
3843
3861
  };
3844
3862
  TabDesignerComponent.prototype.renderNewPage = function (className, key) {
3845
3863
  if (key === void 0) { key = ""; }
3846
3864
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, { key: key },
3847
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: className, "data-sv-drop-target-survey-element": "newGhostPage" }, !!this.model.newPage ? this.renderPage(this.model.newPage) : null)));
3865
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: className, "data-sv-drop-target-survey-element": "newGhostPage" }, !!this.model.newPage ? this.renderPage(this.model.newPage, true) : null)));
3848
3866
  };
3849
- TabDesignerComponent.prototype.renderPage = function (pageV) {
3850
- return survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement("svc-page", { survey: this.creator.survey, page: pageV, creator: this.creator });
3867
+ TabDesignerComponent.prototype.renderPage = function (pageV, isGhost) {
3868
+ return survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement("svc-page", { survey: this.creator.survey, page: pageV, creator: this.creator, isGhost: isGhost });
3851
3869
  };
3852
3870
  TabDesignerComponent.prototype.renderElement = function () {
3853
3871
  var _this = this;
@@ -4645,7 +4663,7 @@ __webpack_require__.r(__webpack_exports__);
4645
4663
  /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
4646
4664
  /* harmony import */ var _Toolbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Toolbox */ "./src/toolbox/Toolbox.tsx");
4647
4665
  /* harmony import */ var _ToolboxItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ToolboxItem */ "./src/toolbox/ToolboxItem.tsx");
4648
- /* harmony import */ var _side_bar_Search__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../side-bar/Search */ "./src/side-bar/Search.tsx");
4666
+ /* harmony import */ var _components_Search__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/Search */ "./src/components/Search.tsx");
4649
4667
 
4650
4668
 
4651
4669
 
@@ -4680,7 +4698,7 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
4680
4698
  null;
4681
4699
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__search-container" },
4682
4700
  searchButton,
4683
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(_side_bar_Search__WEBPACK_IMPORTED_MODULE_6__.SearchComponent, { model: this.toolbox.searchManager }),
4701
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_Search__WEBPACK_IMPORTED_MODULE_6__.SearchComponent, { model: this.toolbox.searchManager }),
4684
4702
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__category-separator svc-toolbox__category-separator--search" })));
4685
4703
  };
4686
4704
  AdaptiveToolbox.prototype.render = function () {
@@ -4864,7 +4882,7 @@ var SurveyCreatorToolboxCategory = /** @class */ (function (_super) {
4864
4882
  var suffixName = this.category.collapsed ? "expand" : "collapse";
4865
4883
  var svgIconClassName = "svc-toolbox__category-header__button svc-string-editor__button--" + suffixName;
4866
4884
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__category-header__controls" },
4867
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: svgIconClassName, iconName: "icon-" + iconName, size: 24 })));
4885
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: svgIconClassName, iconName: "icon-" + iconName, size: "auto" })));
4868
4886
  };
4869
4887
  SurveyCreatorToolboxCategory.prototype.renderCategoryContent = function () {
4870
4888
  return this.renderItems(this.category.items);
@@ -5005,7 +5023,7 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
5005
5023
  event.persist();
5006
5024
  _this.model.click(event);
5007
5025
  } },
5008
- 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(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: this.item.iconName, className: "svc-toolbox__item-icon", title: this.item.tooltip }),
5009
5027
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, this.item.title))
5010
5028
  :
5011
5029
  null);
@@ -5013,7 +5031,7 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
5013
5031
  event.persist();
5014
5032
  _this.model.click(event);
5015
5033
  } },
5016
- 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),
5034
+ 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: "auto", iconName: this.item.iconName, className: "svc-toolbox__item-icon" }) : null),
5017
5035
  (this.props.isCompact ?
5018
5036
  null
5019
5037
  :
@@ -5105,7 +5123,7 @@ var SurveyCreatorToolboxItemGroup = /** @class */ (function (_super) {
5105
5123
  return react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
5106
5124
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ToolboxItem__WEBPACK_IMPORTED_MODULE_4__.SurveyCreatorToolboxItem, { item: this.item, creator: this.creator, model: this.model, parentModel: this.parentModel, isCompact: this.isCompact }),
5107
5125
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__item-submenu-button", onMouseOver: function (event) { return _this.model.onMouseOver(_this.item, event); }, onMouseLeave: function (event) { return _this.model.onMouseLeave(_this.item, event); } },
5108
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: 24, iconName: this.item.subitemsButtonIcon }),
5126
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: "auto", iconName: this.item.subitemsButtonIcon }),
5109
5127
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.item.popupModel, getArea: this.item.getArea })));
5110
5128
  };
5111
5129
  return SurveyCreatorToolboxItemGroup;
@@ -5302,7 +5320,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_survey_react_ui__;
5302
5320
  /******/
5303
5321
  /************************************************************************/
5304
5322
  var __webpack_exports__ = {};
5305
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
5323
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
5306
5324
  (() => {
5307
5325
  /*!******************************!*\
5308
5326
  !*** ./src/entries/index.ts ***!
@@ -5335,7 +5353,7 @@ __webpack_require__.r(__webpack_exports__);
5335
5353
  /* harmony export */ ReactDragEvent: () => (/* reexport safe */ _events__WEBPACK_IMPORTED_MODULE_51__.ReactDragEvent),
5336
5354
  /* harmony export */ ReactMouseEvent: () => (/* reexport safe */ _events__WEBPACK_IMPORTED_MODULE_51__.ReactMouseEvent),
5337
5355
  /* harmony export */ RowWrapper: () => (/* reexport safe */ _adorners_Row__WEBPACK_IMPORTED_MODULE_1__.RowWrapper),
5338
- /* harmony export */ SearchComponent: () => (/* reexport safe */ _side_bar_Search__WEBPACK_IMPORTED_MODULE_54__.SearchComponent),
5356
+ /* harmony export */ SearchComponent: () => (/* reexport safe */ _components_Search__WEBPACK_IMPORTED_MODULE_54__.SearchComponent),
5339
5357
  /* harmony export */ SideBarDefaultHeader: () => (/* reexport safe */ _side_bar_SideBarDefaultHeader__WEBPACK_IMPORTED_MODULE_32__.SideBarDefaultHeader),
5340
5358
  /* harmony export */ SidebarComponent: () => (/* reexport safe */ _side_bar_SideBar__WEBPACK_IMPORTED_MODULE_35__.SidebarComponent),
5341
5359
  /* harmony export */ StylesManager: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.StylesManager),
@@ -5440,7 +5458,7 @@ __webpack_require__.r(__webpack_exports__);
5440
5458
  /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../events */ "./src/events.ts");
5441
5459
  /* harmony import */ var _side_bar_ObjectSelector__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../side-bar/ObjectSelector */ "./src/side-bar/ObjectSelector.tsx");
5442
5460
  /* harmony import */ var _side_bar_PropertyGrid__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../side-bar/PropertyGrid */ "./src/side-bar/PropertyGrid.tsx");
5443
- /* harmony import */ var _side_bar_Search__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../side-bar/Search */ "./src/side-bar/Search.tsx");
5461
+ /* harmony import */ var _components_Search__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../components/Search */ "./src/components/Search.tsx");
5444
5462
  /* harmony import */ var _Switcher__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../Switcher */ "./src/Switcher.tsx");
5445
5463
  /* harmony import */ var _tabs_JsonErrorItem__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../tabs/JsonErrorItem */ "./src/tabs/JsonErrorItem.tsx");
5446
5464
  /* harmony import */ var _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../custom-questions/SpinEditor */ "./src/custom-questions/SpinEditor.tsx");
@@ -5454,7 +5472,7 @@ __webpack_require__.r(__webpack_exports__);
5454
5472
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! survey-core */ "survey-core");
5455
5473
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_64__);
5456
5474
  var Version;
5457
- Version = "".concat("1.12.8");
5475
+ Version = "".concat("1.12.10");
5458
5476
  // import "@survey/creator/survey-creator-core.css";
5459
5477
 
5460
5478
 
@@ -5528,7 +5546,7 @@ Version = "".concat("1.12.8");
5528
5546
 
5529
5547
 
5530
5548
 
5531
- (0,survey_core__WEBPACK_IMPORTED_MODULE_64__.checkLibraryVersion)("".concat("1.12.8"), "survey-creator-react");
5549
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_64__.checkLibraryVersion)("".concat("1.12.10"), "survey-creator-react");
5532
5550
 
5533
5551
  })();
5534
5552