survey-creator-react 1.9.98 → 1.9.100
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.100",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -28,10 +28,15 @@
|
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"ace-builds": "^1.4.12"
|
|
30
30
|
},
|
|
31
|
+
"peerDependenciesMeta": {
|
|
32
|
+
"ace-builds": {
|
|
33
|
+
"optional": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
31
36
|
"dependencies": {
|
|
32
|
-
"survey-core": "1.9.
|
|
33
|
-
"survey-react-ui": "1.9.
|
|
34
|
-
"survey-creator-core": "1.9.
|
|
37
|
+
"survey-core": "1.9.100",
|
|
38
|
+
"survey-react-ui": "1.9.100",
|
|
39
|
+
"survey-creator-core": "1.9.100",
|
|
35
40
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
36
41
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
37
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.100
|
|
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
|
|
@@ -1631,9 +1631,11 @@ var SurveyCreator = /** @class */ (function (_super) {
|
|
|
1631
1631
|
if (typeof target === "string") {
|
|
1632
1632
|
node = document.getElementById(target);
|
|
1633
1633
|
}
|
|
1634
|
+
/* eslint-disable react/no-deprecated */
|
|
1634
1635
|
react_dom__WEBPACK_IMPORTED_MODULE_2___default.a.unmountComponentAtNode(node);
|
|
1635
1636
|
react_dom__WEBPACK_IMPORTED_MODULE_2___default.a.render(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.StrictMode, null,
|
|
1636
1637
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(SurveyCreatorComponent, { creator: this })), node);
|
|
1638
|
+
/* eslint-enable react/no-deprecated */
|
|
1637
1639
|
};
|
|
1638
1640
|
//ISurveyCreator
|
|
1639
1641
|
SurveyCreator.prototype.createQuestionElement = function (question) {
|
|
@@ -2803,9 +2805,9 @@ var SurveyQuestionColor = /** @class */ (function (_super) {
|
|
|
2803
2805
|
};
|
|
2804
2806
|
SurveyQuestionColor.prototype.renderColorSwatch = function () {
|
|
2805
2807
|
var _this = this;
|
|
2806
|
-
return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { className: this.question.
|
|
2808
|
+
return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { className: this.question.getSwatchCss(), style: this.question.getSwatchStyle() },
|
|
2807
2809
|
react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.swatchIcon, size: "auto" }),
|
|
2808
|
-
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: this.question.renderedValue, className: this.question.cssClasses.colorInput, onChange: function (event) { return _this.question.onColorInputChange(event.nativeEvent); } }));
|
|
2810
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", disabled: this.isDisplayMode, value: this.question.renderedValue, className: this.question.cssClasses.colorInput, onChange: function (event) { return _this.question.onColorInputChange(event.nativeEvent); } }));
|
|
2809
2811
|
};
|
|
2810
2812
|
SurveyQuestionColor.prototype.renderDropdownAction = function () {
|
|
2811
2813
|
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
|
|
@@ -2870,9 +2872,9 @@ var SurveyQuestionFileEditor = /** @class */ (function (_super) {
|
|
|
2870
2872
|
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 })));
|
|
2871
2873
|
};
|
|
2872
2874
|
SurveyQuestionFileEditor.prototype.renderChooseButton = function () {
|
|
2873
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", {
|
|
2875
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { role: "button", className: this.questionFile.getChooseButtonCss(), htmlFor: this.questionFile.inputId, "aria-label": this.questionFile.chooseButtonCaption },
|
|
2874
2876
|
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 }),
|
|
2875
|
-
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "file",
|
|
2877
|
+
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
2878
|
};
|
|
2877
2879
|
SurveyQuestionFileEditor.prototype.renderElement = function () {
|
|
2878
2880
|
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 },
|
|
@@ -2936,9 +2938,9 @@ var SurveyQuestionSpinEditor = /** @class */ (function (_super) {
|
|
|
2936
2938
|
SurveyQuestionSpinEditor.prototype.renderButtons = function () {
|
|
2937
2939
|
var _this = this;
|
|
2938
2940
|
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: this.question.cssClasses.buttonsContainer },
|
|
2939
|
-
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.question.cssClasses.arrowButton, onMouseDown: this.question.onDownButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
2941
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onMouseDown: this.question.onDownButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
2940
2942
|
react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.decreaseButtonIcon, size: "auto" })),
|
|
2941
|
-
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.question.cssClasses.arrowButton, onMouseDown: this.question.onUpButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
2943
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onMouseDown: this.question.onUpButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
2942
2944
|
react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.increaseButtonIcon, size: "auto" }))));
|
|
2943
2945
|
};
|
|
2944
2946
|
return SurveyQuestionSpinEditor;
|
|
@@ -3204,7 +3206,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3204
3206
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3205
3207
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_50__);
|
|
3206
3208
|
var Version;
|
|
3207
|
-
Version = "".concat("1.9.
|
|
3209
|
+
Version = "".concat("1.9.100");
|
|
3208
3210
|
// import "@survey/creator/survey-creator-core.css";
|
|
3209
3211
|
|
|
3210
3212
|
|
|
@@ -3264,7 +3266,7 @@ Version = "".concat("1.9.98");
|
|
|
3264
3266
|
|
|
3265
3267
|
|
|
3266
3268
|
|
|
3267
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_50__["checkLibraryVersion"])("".concat("1.9.
|
|
3269
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_50__["checkLibraryVersion"])("".concat("1.9.100"), "survey-creator-react");
|
|
3268
3270
|
|
|
3269
3271
|
|
|
3270
3272
|
/***/ }),
|