survey-creator-react 1.9.104 → 1.9.106

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-react",
3
- "version": "1.9.104",
3
+ "version": "1.9.106",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -34,9 +34,9 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "survey-core": "1.9.104",
38
- "survey-react-ui": "1.9.104",
39
- "survey-creator-core": "1.9.104",
37
+ "survey-core": "1.9.106",
38
+ "survey-react-ui": "1.9.106",
39
+ "survey-creator-core": "1.9.106",
40
40
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0",
41
41
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
42
42
  },
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator React v1.9.104
2
+ * SurveyJS Creator React v1.9.106
3
3
  * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1355,16 +1355,13 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
1355
1355
  };
1356
1356
  _this.state = { changed: 0 };
1357
1357
  _this.svStringEditorRef = react__WEBPACK_IMPORTED_MODULE_1___default.a.createRef();
1358
- _this.baseModel.getEditorElement = function () { return _this.svStringEditorRef.current; };
1359
1358
  return _this;
1360
1359
  }
1361
1360
  SurveyLocStringEditor.prototype.createModel = function () {
1362
- var _this = this;
1361
+ if (this.baseModel) {
1362
+ this.baseModel.dispose();
1363
+ }
1363
1364
  this.baseModel = new survey_creator_core__WEBPACK_IMPORTED_MODULE_3__["StringEditorViewModelBase"](this.locString, this.creator);
1364
- this.baseModel.blurEditor = function () {
1365
- _this.svStringEditorRef.current.blur();
1366
- _this.svStringEditorRef.current.spellcheck = false;
1367
- };
1368
1365
  };
1369
1366
  SurveyLocStringEditor.prototype.getUpdatedModelProps = function () {
1370
1367
  return ["creator", "locString"];
@@ -1401,10 +1398,15 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
1401
1398
  configurable: true
1402
1399
  });
1403
1400
  SurveyLocStringEditor.prototype.componentDidMount = function () {
1401
+ var _this = this;
1404
1402
  _super.prototype.componentDidMount.call(this);
1405
1403
  if (!this.locString)
1406
1404
  return;
1407
- var self = this;
1405
+ this.baseModel.getEditorElement = function () { return _this.svStringEditorRef.current; };
1406
+ this.baseModel.blurEditor = function () {
1407
+ _this.svStringEditorRef.current.blur();
1408
+ _this.svStringEditorRef.current.spellcheck = false;
1409
+ };
1408
1410
  this.baseModel.afterRender();
1409
1411
  this.locString.onStringChanged.add(this.onChangedHandler);
1410
1412
  if (this.locString["__isEditing"]) {
@@ -1414,10 +1416,14 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
1414
1416
  };
1415
1417
  SurveyLocStringEditor.prototype.componentDidUpdate = function (prevProps, prevState) {
1416
1418
  _super.prototype.componentDidUpdate.call(this, prevProps, prevState);
1419
+ this.baseModel.setLocString(this.locString);
1417
1420
  this.baseModel.afterRender();
1418
1421
  };
1419
1422
  SurveyLocStringEditor.prototype.componentWillUnmount = function () {
1420
1423
  _super.prototype.componentWillUnmount.call(this);
1424
+ this.baseModel.getEditorElement = undefined;
1425
+ this.baseModel.blurEditor = undefined;
1426
+ this.baseModel.dispose();
1421
1427
  if (!this.locString)
1422
1428
  return;
1423
1429
  this.locString.onStringChanged.remove(this.onChangedHandler);
@@ -1447,9 +1453,6 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
1447
1453
  if (!this.locString) {
1448
1454
  return null;
1449
1455
  }
1450
- else {
1451
- this.baseModel.setLocString(this.locString);
1452
- }
1453
1456
  var control = null;
1454
1457
  if (this.locString.hasHtml) {
1455
1458
  var htmlValue = { __html: this.baseModel.focused && this.baseModel.editAsText && this.locString.text || this.locString.renderedHtml };
@@ -2013,6 +2016,7 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
2013
2016
  };
2014
2017
  CreatorSurveyPageComponent.prototype.componentWillUnmount = function () {
2015
2018
  _super.prototype.componentWillUnmount.call(this);
2019
+ this.model.onPageSelectedCallback = undefined;
2016
2020
  this.model.dispose();
2017
2021
  };
2018
2022
  CreatorSurveyPageComponent.prototype.canRender = function () {
@@ -2182,6 +2186,9 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
2182
2186
  return _super !== null && _super.apply(this, arguments) || this;
2183
2187
  }
2184
2188
  QuestionAdornerComponent.prototype.createModel = function () {
2189
+ if (this.modelValue) {
2190
+ this.modelValue.dispose();
2191
+ }
2185
2192
  this.modelValue = this.createQuestionViewModel();
2186
2193
  };
2187
2194
  QuestionAdornerComponent.prototype.createQuestionViewModel = function () {
@@ -2793,7 +2800,8 @@ var SurveyQuestionColor = /** @class */ (function (_super) {
2793
2800
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, placeholder: this.question.renderedPlaceholder, autoComplete: "off", onKeyUp: function (event) { return _this.question.onKeyUp(event.nativeEvent); }, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onChange: this.question.onChange, onBeforeInput: function (event) { return _this.question.onBeforeInput(event.nativeEvent); }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy })));
2794
2801
  };
2795
2802
  SurveyQuestionColor.prototype.renderElement = function () {
2796
- return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.question.cssClasses.root },
2803
+ var _this = this;
2804
+ return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.question.cssClasses.root, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
2797
2805
  this.renderColorSwatch(),
2798
2806
  this.renderInput(),
2799
2807
  this.question.showDropdownAction ? this.renderDropdownAction() : null));
@@ -2858,7 +2866,7 @@ var SurveyQuestionFileEditor = /** @class */ (function (_super) {
2858
2866
  SurveyQuestionFileEditor.prototype.renderInput = function () {
2859
2867
  var _this = this;
2860
2868
  return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
2861
- react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { disabled: this.isDisplayMode, className: this.questionFile.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, autoComplete: "off", onBlur: function (event) { return _this.questionFile.onInputBlur(event.nativeEvent); }, onChange: function (event) { return _this.questionFile.onInputChange(event.nativeEvent); } })));
2869
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { disabled: this.isDisplayMode, className: this.questionFile.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, autoComplete: "off", type: "text", onBlur: function (event) { return _this.questionFile.onInputBlur(event.nativeEvent); }, onChange: function (event) { return _this.questionFile.onInputChange(event.nativeEvent); } })));
2862
2870
  };
2863
2871
  SurveyQuestionFileEditor.prototype.renderButtons = function () {
2864
2872
  return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.questionFile.cssClasses.buttonsContainer },
@@ -2875,7 +2883,8 @@ var SurveyQuestionFileEditor = /** @class */ (function (_super) {
2875
2883
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "file", disabled: this.isDisplayMode, className: this.questionFile.cssClasses.fileInput, id: this.questionFile.inputId, "aria-required": this.questionFile.ariaRequired, "aria-label": this.questionFile.ariaLabel, "aria-invalid": this.questionFile.ariaInvalid, "aria-describedby": this.questionFile.ariaDescribedBy, multiple: false, title: this.questionFile.inputTitle, accept: this.questionFile.acceptedTypes, onChange: this.questionFile.doChange })));
2876
2884
  };
2877
2885
  SurveyQuestionFileEditor.prototype.renderElement = function () {
2878
- return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.questionFile.cssClasses.root, onDragEnter: this.questionFile.onDragEnter, onDragOver: this.questionFile.onDragOver, onDrop: this.questionFile.onDrop, onDragLeave: this.questionFile.onDragLeave },
2886
+ var _this = this;
2887
+ return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.questionFile.cssClasses.root, onDragEnter: this.questionFile.onDragEnter, onDragOver: this.questionFile.onDragOver, onDrop: this.questionFile.onDrop, onDragLeave: this.questionFile.onDragLeave, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
2879
2888
  this.renderInput(),
2880
2889
  this.renderButtons()));
2881
2890
  };
@@ -2949,6 +2958,68 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactQuestionFactory"].Instance.re
2949
2958
  });
2950
2959
 
2951
2960
 
2961
+ /***/ }),
2962
+
2963
+ /***/ "./src/custom-questions/TextWithResetQuestion.tsx":
2964
+ /*!********************************************************!*\
2965
+ !*** ./src/custom-questions/TextWithResetQuestion.tsx ***!
2966
+ \********************************************************/
2967
+ /*! exports provided: SurveyQuestionTextWithReset */
2968
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2969
+
2970
+ "use strict";
2971
+ __webpack_require__.r(__webpack_exports__);
2972
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionTextWithReset", function() { return SurveyQuestionTextWithReset; });
2973
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
2974
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
2975
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
2976
+ /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
2977
+ /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
2978
+
2979
+
2980
+
2981
+ var SurveyQuestionTextWithReset = /** @class */ (function (_super) {
2982
+ Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyQuestionTextWithReset, _super);
2983
+ function SurveyQuestionTextWithReset() {
2984
+ return _super !== null && _super.apply(this, arguments) || this;
2985
+ }
2986
+ Object.defineProperty(SurveyQuestionTextWithReset.prototype, "question", {
2987
+ get: function () {
2988
+ return this.questionBase;
2989
+ },
2990
+ enumerable: false,
2991
+ configurable: true
2992
+ });
2993
+ SurveyQuestionTextWithReset.prototype.renderElement = function () {
2994
+ var textElement = this.renderInput();
2995
+ var resetButton = this.renderResetButton();
2996
+ return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.question.getRootClass() },
2997
+ textElement,
2998
+ resetButton));
2999
+ };
3000
+ SurveyQuestionTextWithReset.prototype.renderInput = function () {
3001
+ return survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactQuestionFactory"].Instance.createQuestion(this.question.wrappedQuestionTemplate, {
3002
+ question: this.question,
3003
+ isDisplayMode: this.question.isInputReadOnly,
3004
+ creator: this,
3005
+ });
3006
+ };
3007
+ SurveyQuestionTextWithReset.prototype.renderResetButton = function () {
3008
+ var _this = this;
3009
+ return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.question.cssClasses.resetButton, disabled: this.question.resetValueAdorner.isDisabled, title: this.question.resetValueAdorner.caption, onClick: function () { return _this.question.resetValueAdorner.resetValue(); } },
3010
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.resetButtonIcon, size: "auto" })));
3011
+ };
3012
+ return SurveyQuestionTextWithReset;
3013
+ }(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SurveyQuestionElementBase"]));
3014
+
3015
+ survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactQuestionFactory"].Instance.registerQuestion("textwithreset", function (props) {
3016
+ return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](SurveyQuestionTextWithReset, props);
3017
+ });
3018
+ survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactQuestionFactory"].Instance.registerQuestion("commentwithreset", function (props) {
3019
+ return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](SurveyQuestionTextWithReset, props);
3020
+ });
3021
+
3022
+
2952
3023
  /***/ }),
2953
3024
 
2954
3025
  /***/ "./src/entries/helpers.ts":
@@ -3016,7 +3087,7 @@ var __spreadArrays = function () {
3016
3087
  /*!******************************!*\
3017
3088
  !*** ./src/entries/index.ts ***!
3018
3089
  \******************************/
3019
- /*! exports provided: Version, SurveyCreatorComponent, SurveyCreator, RowWrapper, QuestionAdornerComponent, QuestionWrapperHeader, QuestionWrapperFooter, QuestionCarrayForwardBanner, QuestionDropdownAdornerComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, CreatorSurveyPageComponent, PanelAdornerComponent, LogoImageComponent, SurveyQuestionLinkValue, SurveyElementEmbeddedSurvey, QuestionEditorContentComponent, ItemValueAdornerComponent, ImageItemValueAdornerComponent, MatrixCellAdornerComponent, SurveyResults, SurveyResultsByRow, SurveyCreatorToolboxTool, SurveyCreatorToolboxItem, SurveyCreatorToolboxCategory, Toolbox, AdaptiveToolbox, TabbedMenuComponent, TabbedMenuItemComponent, SurveyNavigation, SidebarComponent, TranslationLineSkeleton, ActionButton, SurveyLocStringEditor, SurveyLogicOpertor, TabDesignerComponent, TabJsonEditorAceComponent, TabJsonEditorErrorsComponent, TabJsonEditorTextareaComponent, TabLogicAddButtonComponent, TabLogicComponent, TabPreviewTestSurveyAgainComponent, TabPreviewSurveyComponent, TabThemeSurveyComponent, TabTranslationComponent, SurveySimulator, ReactMouseEvent, ReactDragEvent, PropertyGridComponent, SurveyQuestionSpinEditor, SurveyQuestionColor, SurveyQuestionFileEditor, editorLocalization, localization, settings, svgBundle, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, ToolboxToolViewModel, PropertyGridEditorCollection, StylesManager */
3090
+ /*! exports provided: Version, SurveyCreatorComponent, SurveyCreator, RowWrapper, QuestionAdornerComponent, QuestionWrapperHeader, QuestionWrapperFooter, QuestionCarrayForwardBanner, QuestionDropdownAdornerComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, CreatorSurveyPageComponent, PanelAdornerComponent, LogoImageComponent, SurveyQuestionLinkValue, SurveyElementEmbeddedSurvey, QuestionEditorContentComponent, ItemValueAdornerComponent, ImageItemValueAdornerComponent, MatrixCellAdornerComponent, SurveyResults, SurveyResultsByRow, SurveyCreatorToolboxTool, SurveyCreatorToolboxItem, SurveyCreatorToolboxCategory, Toolbox, AdaptiveToolbox, TabbedMenuComponent, TabbedMenuItemComponent, SurveyNavigation, SidebarComponent, TranslationLineSkeleton, ActionButton, SurveyLocStringEditor, SurveyLogicOpertor, TabDesignerComponent, TabJsonEditorAceComponent, TabJsonEditorErrorsComponent, TabJsonEditorTextareaComponent, TabLogicAddButtonComponent, TabLogicComponent, TabPreviewTestSurveyAgainComponent, TabPreviewSurveyComponent, TabThemeSurveyComponent, TabTranslationComponent, SurveySimulator, ReactMouseEvent, ReactDragEvent, PropertyGridComponent, SurveyQuestionSpinEditor, SurveyQuestionColor, SurveyQuestionFileEditor, SurveyQuestionTextWithReset, editorLocalization, localization, settings, svgBundle, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, ToolboxToolViewModel, PropertyGridEditorCollection, StylesManager */
3020
3091
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3021
3092
 
3022
3093
  "use strict";
@@ -3179,32 +3250,35 @@ __webpack_require__.r(__webpack_exports__);
3179
3250
  /* harmony import */ var _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../custom-questions/FileEditQuestion */ "./src/custom-questions/FileEditQuestion.tsx");
3180
3251
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionFileEditor", function() { return _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_48__["SurveyQuestionFileEditor"]; });
3181
3252
 
3182
- /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
3183
- /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_49___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_49__);
3184
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "editorLocalization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_49__["editorLocalization"]; });
3253
+ /* harmony import */ var _custom_questions_TextWithResetQuestion__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../custom-questions/TextWithResetQuestion */ "./src/custom-questions/TextWithResetQuestion.tsx");
3254
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionTextWithReset", function() { return _custom_questions_TextWithResetQuestion__WEBPACK_IMPORTED_MODULE_49__["SurveyQuestionTextWithReset"]; });
3185
3255
 
3186
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "localization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_49__["localization"]; });
3256
+ /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
3257
+ /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_50__);
3258
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "editorLocalization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["editorLocalization"]; });
3187
3259
 
3188
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_49__["settings"]; });
3260
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "localization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["localization"]; });
3189
3261
 
3190
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_49__["svgBundle"]; });
3262
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["settings"]; });
3191
3263
 
3192
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_49__["SurveyLogic"]; });
3264
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["svgBundle"]; });
3193
3265
 
3194
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_49__["SurveyLogicUI"]; });
3266
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["SurveyLogic"]; });
3195
3267
 
3196
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_49__["SurveyQuestionEditorDefinition"]; });
3268
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["SurveyLogicUI"]; });
3197
3269
 
3198
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_49__["ToolboxToolViewModel"]; });
3270
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["SurveyQuestionEditorDefinition"]; });
3199
3271
 
3200
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorCollection"]; });
3272
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["ToolboxToolViewModel"]; });
3201
3273
 
3202
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_49__["StylesManager"]; });
3274
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["PropertyGridEditorCollection"]; });
3203
3275
 
3204
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! survey-core */ "survey-core");
3205
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_50__);
3276
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["StylesManager"]; });
3277
+
3278
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! survey-core */ "survey-core");
3279
+ /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_51___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_51__);
3206
3280
  var Version;
3207
- Version = "".concat("1.9.104");
3281
+ Version = "".concat("1.9.106");
3208
3282
  // import "@survey/creator/survey-creator-core.css";
3209
3283
 
3210
3284
 
@@ -3264,7 +3338,8 @@ Version = "".concat("1.9.104");
3264
3338
 
3265
3339
 
3266
3340
 
3267
- Object(survey_core__WEBPACK_IMPORTED_MODULE_50__["checkLibraryVersion"])("".concat("1.9.104"), "survey-creator-react");
3341
+
3342
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_51__["checkLibraryVersion"])("".concat("1.9.106"), "survey-creator-react");
3268
3343
 
3269
3344
 
3270
3345
  /***/ }),
@@ -3882,10 +3957,9 @@ var TabPreviewSurveyComponent = /** @class */ (function (_super) {
3882
3957
  return this.model;
3883
3958
  };
3884
3959
  TabPreviewSurveyComponent.prototype.renderElement = function () {
3885
- var _this = this;
3886
3960
  var tabContentClassName = "svc-creator-tab__content svc-test-tab__content" + (this.model.isPageToolbarVisible ? " svc-creator-tab__content--with-toolbar" : "");
3887
3961
  return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: tabContentClassName },
3888
- react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-plugin-tab__content", onScroll: function () { return _this.model.onScroll(); } },
3962
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-plugin-tab__content" },
3889
3963
  react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_SurveySimulator__WEBPACK_IMPORTED_MODULE_3__["SurveySimulator"], { model: this.model.simulator }),
3890
3964
  !this.model.isRunning ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(TabPreviewTestSurveyAgainComponent, { button: this.model.testAgainAction }) : null,
3891
3965
  !this.model.isRunning ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__["SurveyResults"], { survey: this.model.simulator.survey }) : null),
@@ -4442,10 +4516,10 @@ __webpack_require__.r(__webpack_exports__);
4442
4516
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyCreatorToolboxTool", function() { return SurveyCreatorToolboxTool; });
4443
4517
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyCreatorToolboxItem", function() { return SurveyCreatorToolboxItem; });
4444
4518
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
4445
- /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
4446
- /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_1__);
4447
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
4448
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
4519
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
4520
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
4521
+ /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
4522
+ /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_2__);
4449
4523
  /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
4450
4524
  /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
4451
4525
  /* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
@@ -4454,14 +4528,13 @@ __webpack_require__.r(__webpack_exports__);
4454
4528
 
4455
4529
 
4456
4530
 
4457
-
4458
4531
  var SurveyCreatorToolboxTool = /** @class */ (function (_super) {
4459
4532
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyCreatorToolboxTool, _super);
4460
4533
  function SurveyCreatorToolboxTool(props) {
4461
4534
  return _super.call(this, props) || this;
4462
4535
  }
4463
4536
  SurveyCreatorToolboxTool.prototype.createModel = function () {
4464
- this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__["ToolboxToolViewModel"](this.item, this.props.creator);
4537
+ this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__["ToolboxToolViewModel"](this.item, this.props.creator);
4465
4538
  };
4466
4539
  SurveyCreatorToolboxTool.prototype.getUpdatedModelProps = function () {
4467
4540
  return ["creator", "item"];
@@ -4499,12 +4572,12 @@ var SurveyCreatorToolboxTool = /** @class */ (function (_super) {
4499
4572
  creator: this.creator,
4500
4573
  isCompact: this.isCompact
4501
4574
  });
4502
- return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: className, key: item.id, onPointerDown: function (event) {
4575
+ return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: className, key: item.id, onPointerDown: function (event) {
4503
4576
  event.persist();
4504
4577
  _this.model.onPointerDown(event);
4505
4578
  } },
4506
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "sv-action__content" },
4507
- (item.needSeparator && !this.creator.toolbox.showCategoryTitles) ? (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-toolbox__category-separator" })) : null,
4579
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "sv-action__content" },
4580
+ (item.needSeparator && !this.creator.toolbox.showCategoryTitles) ? (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-toolbox__category-separator" })) : null,
4508
4581
  itemComponent)));
4509
4582
  };
4510
4583
  return SurveyCreatorToolboxTool;
@@ -4517,7 +4590,7 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
4517
4590
  }
4518
4591
  SurveyCreatorToolboxItem.prototype.createModel = function () {
4519
4592
  var toolboxItem = this.props.item;
4520
- this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__["ToolboxToolViewModel"](toolboxItem, this.props.creator);
4593
+ this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__["ToolboxToolViewModel"](toolboxItem, this.props.creator);
4521
4594
  };
4522
4595
  SurveyCreatorToolboxItem.prototype.getUpdatedModelProps = function () {
4523
4596
  return ["creator", "item"];
@@ -4541,26 +4614,24 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
4541
4614
  };
4542
4615
  SurveyCreatorToolboxItem.prototype.render = function () {
4543
4616
  var _this = this;
4544
- var className = "svc-toolbox__item svc-toolbox__item--" + this.item.iconName;
4545
- var ariaLabel = this.item.tooltip + " " + survey_creator_core__WEBPACK_IMPORTED_MODULE_1__["editorLocalization"].getString("toolbox") + " item";
4546
- return Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: className, tabIndex: 0, role: "button", "aria-label": ariaLabel, onClick: function (event) {
4617
+ return Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.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) {
4547
4618
  event.persist();
4548
4619
  _this.model.click(event);
4549
4620
  } },
4550
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-toolbox__item-container" },
4551
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: this.item.iconName, title: ariaLabel })),
4621
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-toolbox__item-container" },
4622
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: this.item.iconName, title: this.item.tooltip })),
4552
4623
  (this.props.isCompact ?
4553
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-toolbox__item-banner svc-item__banner" },
4554
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: this.item.iconName, className: "svc-toolbox__item-icon", title: ariaLabel }),
4555
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-toolbox__item-title" }, this.item.title))
4624
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-toolbox__item-banner svc-item__banner" },
4625
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: this.item.iconName, className: "svc-toolbox__item-icon", title: this.item.tooltip }),
4626
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-toolbox__item-title" }, this.item.title))
4556
4627
  :
4557
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-toolbox__item-title" }, this.item.title))));
4628
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-toolbox__item-title" }, this.item.title))));
4558
4629
  };
4559
4630
  return SurveyCreatorToolboxItem;
4560
4631
  }(_ModelElement__WEBPACK_IMPORTED_MODULE_4__["CreatorModelElement"]));
4561
4632
 
4562
4633
  survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("svc-toolbox-item", function (props) {
4563
- return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(SurveyCreatorToolboxItem, props);
4634
+ return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(SurveyCreatorToolboxItem, props);
4564
4635
  });
4565
4636
 
4566
4637