survey-creator-react 1.9.121 → 1.9.122
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/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Survey Creator / Form Builder for React
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
https://github.com/surveyjs/survey-creator/assets/22315929/5830b296-8b61-4142-8fcd-aac6e53166f8
|
|
5
|
+
|
|
6
|
+
|
|
3
7
|
[](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_build/latest?definitionId=8&branchName=master)
|
|
4
8
|
<a href="https://www.npmjs.com/package/survey-creator"><img alt="NPM Version" src="https://img.shields.io/npm/v/survey-creator.svg" data-canonical-src="https://img.shields.io/npm/v/survey-creator.svg" style="max-width:100%;"></a>
|
|
5
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.122",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"typings": "survey-creator-react.d.ts",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"ace-builds": "^1.4.12"
|
|
29
|
+
"ace-builds": "^1.4.12",
|
|
30
|
+
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
31
|
+
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
30
32
|
},
|
|
31
33
|
"peerDependenciesMeta": {
|
|
32
34
|
"ace-builds": {
|
|
@@ -34,11 +36,9 @@
|
|
|
34
36
|
}
|
|
35
37
|
},
|
|
36
38
|
"dependencies": {
|
|
37
|
-
"survey-core": "1.9.
|
|
38
|
-
"survey-react-ui": "1.9.
|
|
39
|
-
"survey-creator-core": "1.9.
|
|
40
|
-
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
41
|
-
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
39
|
+
"survey-core": "1.9.122",
|
|
40
|
+
"survey-react-ui": "1.9.122",
|
|
41
|
+
"survey-creator-core": "1.9.122"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {}
|
|
44
44
|
}
|
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v1.9.
|
|
2
|
+
* SurveyJS Creator React v1.9.122
|
|
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
|
|
@@ -2158,6 +2158,9 @@ var PanelAdornerComponent = /** @class */ (function (_super) {
|
|
|
2158
2158
|
} },
|
|
2159
2159
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-text svc-text--normal svc-text--bold" }, this.model.addNewQuestionText))) : null));
|
|
2160
2160
|
};
|
|
2161
|
+
PanelAdornerComponent.prototype.disableTabStop = function () {
|
|
2162
|
+
return !this.model.element.isInteractiveDesignElement;
|
|
2163
|
+
};
|
|
2161
2164
|
PanelAdornerComponent.prototype.renderFooter = function () {
|
|
2162
2165
|
var _this = this;
|
|
2163
2166
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment, null,
|
|
@@ -2248,6 +2251,9 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
|
|
|
2248
2251
|
var content = this.renderContent(allowInteractions);
|
|
2249
2252
|
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { ref: this.rootRef, "data-sv-drop-target-survey-element": this.model.element.name || null, className: "svc-question__adorner" + this.model.rootCss(), onMouseOut: function (e) { return allowInteractions && _this.model.hover(e.nativeEvent, e.currentTarget); }, onMouseOver: function (e) { return allowInteractions && _this.model.hover(e.nativeEvent, e.currentTarget); } }, content));
|
|
2250
2253
|
};
|
|
2254
|
+
QuestionAdornerComponent.prototype.disableTabStop = function () {
|
|
2255
|
+
return true;
|
|
2256
|
+
};
|
|
2251
2257
|
QuestionAdornerComponent.prototype.renderContent = function (allowInteractions) {
|
|
2252
2258
|
var _this = this;
|
|
2253
2259
|
var content = this.renderElementContent();
|
|
@@ -2258,7 +2264,7 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
|
|
|
2258
2264
|
return Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_4__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-question__content " + this.model.css(), onClick: function (e) { return _this.model.select(_this.model, new _events__WEBPACK_IMPORTED_MODULE_3__["ReactMouseEvent"](e)); } },
|
|
2259
2265
|
this.renderHeader(),
|
|
2260
2266
|
content,
|
|
2261
|
-
this.renderFooter()), undefined, { disableTabStop:
|
|
2267
|
+
this.renderFooter()), undefined, { disableTabStop: this.disableTabStop() });
|
|
2262
2268
|
};
|
|
2263
2269
|
QuestionAdornerComponent.prototype.renderHeader = function () {
|
|
2264
2270
|
return survey_react_ui__WEBPACK_IMPORTED_MODULE_4__["ReactElementFactory"].Instance.createElement("svc-question-header", { model: this.model });
|
|
@@ -2646,7 +2652,7 @@ var QuestionRatingAdornerComponent = /** @class */ (function (_super) {
|
|
|
2646
2652
|
var model = this.ratingModel;
|
|
2647
2653
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment, null,
|
|
2648
2654
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-rating-question-content" },
|
|
2649
|
-
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className:
|
|
2655
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: model.controlsClassNames },
|
|
2650
2656
|
model.allowRemove ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: model.removeClassNames, "aria-label": model.removeTooltip, onClick: function () { return model.removeItem(model); } },
|
|
2651
2657
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 16, iconName: "icon-remove_16x16", title: model.removeTooltip }))) : null,
|
|
2652
2658
|
model.allowAdd ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: model.addClassNames, "aria-label": model.addTooltip, onClick: function () { return model.addItem(model); } },
|
|
@@ -3329,7 +3335,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3329
3335
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3330
3336
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_52___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_52__);
|
|
3331
3337
|
var Version;
|
|
3332
|
-
Version = "".concat("1.9.
|
|
3338
|
+
Version = "".concat("1.9.122");
|
|
3333
3339
|
// import "@survey/creator/survey-creator-core.css";
|
|
3334
3340
|
|
|
3335
3341
|
|
|
@@ -3391,7 +3397,7 @@ Version = "".concat("1.9.121");
|
|
|
3391
3397
|
|
|
3392
3398
|
|
|
3393
3399
|
|
|
3394
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_52__["checkLibraryVersion"])("".concat("1.9.
|
|
3400
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_52__["checkLibraryVersion"])("".concat("1.9.122"), "survey-creator-react");
|
|
3395
3401
|
|
|
3396
3402
|
|
|
3397
3403
|
/***/ }),
|
|
@@ -4614,7 +4620,7 @@ var SurveyCreatorToolboxTool = /** @class */ (function (_super) {
|
|
|
4614
4620
|
SurveyCreatorToolboxTool.prototype.render = function () {
|
|
4615
4621
|
var _this = this;
|
|
4616
4622
|
var item = this.item;
|
|
4617
|
-
var className = "svc-toolbox__tool " + item.css + (item.isVisible ? "" : " sv-action--hidden");
|
|
4623
|
+
var className = "svc-toolbox__tool " + (item.css || "") + (item.isVisible ? "" : " sv-action--hidden");
|
|
4618
4624
|
var itemComponent = survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.createElement(this.item.component || "svc-toolbox-item", {
|
|
4619
4625
|
item: this.item,
|
|
4620
4626
|
creator: this.creator,
|