survey-creator-react 1.9.111 → 1.9.113
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.
|
|
3
|
+
"version": "1.9.113",
|
|
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.
|
|
38
|
-
"survey-react-ui": "1.9.
|
|
39
|
-
"survey-creator-core": "1.9.
|
|
37
|
+
"survey-core": "1.9.113",
|
|
38
|
+
"survey-react-ui": "1.9.113",
|
|
39
|
+
"survey-creator-core": "1.9.113",
|
|
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
|
},
|
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v1.9.
|
|
2
|
+
* SurveyJS Creator React v1.9.113
|
|
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
|
|
@@ -2878,10 +2878,17 @@ var SurveyQuestionFileEditor = /** @class */ (function (_super) {
|
|
|
2878
2878
|
enumerable: false,
|
|
2879
2879
|
configurable: true
|
|
2880
2880
|
});
|
|
2881
|
+
SurveyQuestionFileEditor.prototype.getValueCore = function () {
|
|
2882
|
+
return this.question.renderedValue;
|
|
2883
|
+
};
|
|
2881
2884
|
SurveyQuestionFileEditor.prototype.renderInput = function () {
|
|
2882
2885
|
var _this = this;
|
|
2883
2886
|
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
|
|
2884
|
-
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); } })));
|
|
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
|
+
};
|
|
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); } }));
|
|
2885
2892
|
};
|
|
2886
2893
|
SurveyQuestionFileEditor.prototype.renderButtons = function () {
|
|
2887
2894
|
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.questionFile.cssClasses.buttonsContainer },
|
|
@@ -2893,14 +2900,15 @@ var SurveyQuestionFileEditor = /** @class */ (function (_super) {
|
|
|
2893
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 })));
|
|
2894
2901
|
};
|
|
2895
2902
|
SurveyQuestionFileEditor.prototype.renderChooseButton = function () {
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("
|
|
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 }))));
|
|
2899
2906
|
};
|
|
2900
2907
|
SurveyQuestionFileEditor.prototype.renderElement = function () {
|
|
2901
2908
|
var _this = this;
|
|
2902
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); } },
|
|
2903
2910
|
this.renderInput(),
|
|
2911
|
+
this.renderFileInput(),
|
|
2904
2912
|
this.renderButtons()));
|
|
2905
2913
|
};
|
|
2906
2914
|
return SurveyQuestionFileEditor;
|
|
@@ -3293,7 +3301,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3293
3301
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3294
3302
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_51___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_51__);
|
|
3295
3303
|
var Version;
|
|
3296
|
-
Version = "".concat("1.9.
|
|
3304
|
+
Version = "".concat("1.9.113");
|
|
3297
3305
|
// import "@survey/creator/survey-creator-core.css";
|
|
3298
3306
|
|
|
3299
3307
|
|
|
@@ -3354,7 +3362,7 @@ Version = "".concat("1.9.111");
|
|
|
3354
3362
|
|
|
3355
3363
|
|
|
3356
3364
|
|
|
3357
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_51__["checkLibraryVersion"])("".concat("1.9.
|
|
3365
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_51__["checkLibraryVersion"])("".concat("1.9.113"), "survey-creator-react");
|
|
3358
3366
|
|
|
3359
3367
|
|
|
3360
3368
|
/***/ }),
|
|
@@ -3976,7 +3984,7 @@ var TabPreviewSurveyComponent = /** @class */ (function (_super) {
|
|
|
3976
3984
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: tabContentClassName },
|
|
3977
3985
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-plugin-tab__content" },
|
|
3978
3986
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_SurveySimulator__WEBPACK_IMPORTED_MODULE_3__["SurveySimulator"], { model: this.model.simulator }),
|
|
3979
|
-
|
|
3987
|
+
this.model.showResults ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__["SurveyResults"], { survey: this.model.simulator.survey }) : null),
|
|
3980
3988
|
this.getBottomToolbar()));
|
|
3981
3989
|
};
|
|
3982
3990
|
TabPreviewSurveyComponent.prototype.getBottomToolbar = function () {
|
|
@@ -4112,7 +4120,7 @@ var TabThemeSurveyComponent = /** @class */ (function (_super) {
|
|
|
4112
4120
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: tabContentClassName },
|
|
4113
4121
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-plugin-tab__content" },
|
|
4114
4122
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_SurveySimulator__WEBPACK_IMPORTED_MODULE_3__["SurveySimulator"], { model: this.model.simulator }),
|
|
4115
|
-
|
|
4123
|
+
this.model.showResults ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__["SurveyResults"], { survey: this.model.simulator.survey }) : null),
|
|
4116
4124
|
this.getBottomToolbar()));
|
|
4117
4125
|
};
|
|
4118
4126
|
TabThemeSurveyComponent.prototype.getBottomToolbar = function () {
|