survey-creator-react 1.9.112 → 1.9.114

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.112",
3
+ "version": "1.9.114",
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.112",
38
- "survey-react-ui": "1.9.112",
39
- "survey-creator-core": "1.9.112",
37
+ "survey-core": "1.9.114",
38
+ "survey-react-ui": "1.9.114",
39
+ "survey-creator-core": "1.9.114",
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.112
2
+ * SurveyJS Creator React v1.9.114
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
@@ -2886,6 +2886,10 @@ var SurveyQuestionFileEditor = /** @class */ (function (_super) {
2886
2886
  return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
2887
2887
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { disabled: this.isDisplayMode, className: this.questionFile.cssClasses.control, placeholder: this.questionFile.placeholder, 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); } })));
2888
2888
  };
2889
+ SurveyQuestionFileEditor.prototype.renderFileInput = function () {
2890
+ var _this = this;
2891
+ return (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: function (event) { return _this.questionFile.onFileInputChange(event.nativeEvent); } }));
2892
+ };
2889
2893
  SurveyQuestionFileEditor.prototype.renderButtons = function () {
2890
2894
  return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.questionFile.cssClasses.buttonsContainer },
2891
2895
  this.renderClearButton(),
@@ -2896,14 +2900,15 @@ var SurveyQuestionFileEditor = /** @class */ (function (_super) {
2896
2900
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.questionFile.cssClasses.clearButtonIcon, size: "auto", title: this.questionFile.clearButtonCaption })));
2897
2901
  };
2898
2902
  SurveyQuestionFileEditor.prototype.renderChooseButton = function () {
2899
- return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { role: "button", className: this.questionFile.getChooseButtonCss(), htmlFor: this.questionFile.inputId, "aria-label": this.questionFile.chooseButtonCaption },
2900
- react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.questionFile.cssClasses.chooseButtonIcon, size: "auto", title: this.questionFile.chooseButtonCaption }),
2901
- 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 })));
2903
+ var _this = this;
2904
+ return (Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { role: "button", onClick: function (event) { return _this.questionFile.chooseFiles(event.nativeEvent); }, className: this.questionFile.getChooseButtonCss(), htmlFor: this.questionFile.inputId, "aria-label": this.questionFile.chooseButtonCaption },
2905
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.questionFile.cssClasses.chooseButtonIcon, size: "auto", title: this.questionFile.chooseButtonCaption }))));
2902
2906
  };
2903
2907
  SurveyQuestionFileEditor.prototype.renderElement = function () {
2904
2908
  var _this = this;
2905
2909
  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); } },
2906
2910
  this.renderInput(),
2911
+ this.renderFileInput(),
2907
2912
  this.renderButtons()));
2908
2913
  };
2909
2914
  return SurveyQuestionFileEditor;
@@ -3296,7 +3301,7 @@ __webpack_require__.r(__webpack_exports__);
3296
3301
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! survey-core */ "survey-core");
3297
3302
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_51___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_51__);
3298
3303
  var Version;
3299
- Version = "".concat("1.9.112");
3304
+ Version = "".concat("1.9.114");
3300
3305
  // import "@survey/creator/survey-creator-core.css";
3301
3306
 
3302
3307
 
@@ -3357,7 +3362,7 @@ Version = "".concat("1.9.112");
3357
3362
 
3358
3363
 
3359
3364
 
3360
- Object(survey_core__WEBPACK_IMPORTED_MODULE_51__["checkLibraryVersion"])("".concat("1.9.112"), "survey-creator-react");
3365
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_51__["checkLibraryVersion"])("".concat("1.9.114"), "survey-creator-react");
3361
3366
 
3362
3367
 
3363
3368
  /***/ }),
@@ -3979,7 +3984,7 @@ var TabPreviewSurveyComponent = /** @class */ (function (_super) {
3979
3984
  return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: tabContentClassName },
3980
3985
  react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-plugin-tab__content" },
3981
3986
  react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_SurveySimulator__WEBPACK_IMPORTED_MODULE_3__["SurveySimulator"], { model: this.model.simulator }),
3982
- !this.model.isRunning ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__["SurveyResults"], { survey: this.model.simulator.survey }) : null),
3987
+ this.model.showResults ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__["SurveyResults"], { survey: this.model.simulator.survey }) : null),
3983
3988
  this.getBottomToolbar()));
3984
3989
  };
3985
3990
  TabPreviewSurveyComponent.prototype.getBottomToolbar = function () {
@@ -4115,7 +4120,7 @@ var TabThemeSurveyComponent = /** @class */ (function (_super) {
4115
4120
  return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: tabContentClassName },
4116
4121
  react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-plugin-tab__content" },
4117
4122
  react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_SurveySimulator__WEBPACK_IMPORTED_MODULE_3__["SurveySimulator"], { model: this.model.simulator }),
4118
- !this.model.isRunning ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__["SurveyResults"], { survey: this.model.simulator.survey }) : null),
4123
+ this.model.showResults ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__["SurveyResults"], { survey: this.model.simulator.survey }) : null),
4119
4124
  this.getBottomToolbar()));
4120
4125
  };
4121
4126
  TabThemeSurveyComponent.prototype.getBottomToolbar = function () {