survey-creator-react 1.9.121 → 1.9.123
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
|
+
<video src="https://github.com/surveyjs/survey-creator/assets/22315929/884eeb5b-68e6-4d38-a8f9-d2483e6ce386"></video>
|
|
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.123",
|
|
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.123",
|
|
40
|
+
"survey-react-ui": "1.9.123",
|
|
41
|
+
"survey-creator-core": "1.9.123"
|
|
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.123
|
|
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,15 +2158,18 @@ 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 true;
|
|
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,
|
|
2164
|
-
!this.model.isEmptyElement && this.model.element.isPanel && this.model.showAddQuestionButton ?
|
|
2165
|
-
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-panel__add-new-question svc-action-button", onClick: function (e) {
|
|
2167
|
+
!this.model.isEmptyElement && this.model.element.isPanel && this.model.showAddQuestionButton ? (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-panel__add-new-question-container" },
|
|
2168
|
+
Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-panel__add-new-question svc-action-button", onClick: function (e) {
|
|
2166
2169
|
e.stopPropagation();
|
|
2167
2170
|
_this.model.addNewQuestion();
|
|
2168
2171
|
} },
|
|
2169
|
-
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-text svc-text--normal svc-text--bold" }, this.model.addNewQuestionText)),
|
|
2172
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-text svc-text--normal svc-text--bold" }, this.model.addNewQuestionText)), undefined),
|
|
2170
2173
|
Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", { type: "button", onClick: function (e) {
|
|
2171
2174
|
e.stopPropagation();
|
|
2172
2175
|
_this.model.questionTypeSelectorModel.action();
|
|
@@ -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,13 +2264,15 @@ 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 });
|
|
2265
2271
|
};
|
|
2266
2272
|
QuestionAdornerComponent.prototype.renderFooter = function () {
|
|
2267
|
-
|
|
2273
|
+
var allowInteractions = this.model.element
|
|
2274
|
+
.isInteractiveDesignElement;
|
|
2275
|
+
return allowInteractions ? survey_react_ui__WEBPACK_IMPORTED_MODULE_4__["ReactElementFactory"].Instance.createElement("svc-question-footer", { className: "svc-question__content-actions", model: this.model }) : null;
|
|
2268
2276
|
};
|
|
2269
2277
|
QuestionAdornerComponent.prototype.renderCarryForwardBanner = function () {
|
|
2270
2278
|
if (!this.model.isUsingCarryForward)
|
|
@@ -2426,8 +2434,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2426
2434
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2427
2435
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2428
2436
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2429
|
-
/* harmony import */ var
|
|
2430
|
-
/* harmony import */ var
|
|
2437
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../events */ "./src/events.ts");
|
|
2438
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2439
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2440
|
+
|
|
2431
2441
|
|
|
2432
2442
|
|
|
2433
2443
|
|
|
@@ -2437,13 +2447,14 @@ var QuestionWrapperFooter = /** @class */ (function (_super) {
|
|
|
2437
2447
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2438
2448
|
}
|
|
2439
2449
|
QuestionWrapperFooter.prototype.render = function () {
|
|
2440
|
-
|
|
2441
|
-
|
|
2450
|
+
var _this = this;
|
|
2451
|
+
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: this.props.className, onFocus: function (e) { return _this.props.model.select(_this.props.model, new _events__WEBPACK_IMPORTED_MODULE_2__["ReactMouseEvent"](e)); } },
|
|
2452
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SurveyActionBar"], { model: this.props.model.actionContainer, handleClick: false })));
|
|
2442
2453
|
};
|
|
2443
2454
|
return QuestionWrapperFooter;
|
|
2444
2455
|
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component));
|
|
2445
2456
|
|
|
2446
|
-
|
|
2457
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("svc-question-footer", function (props) {
|
|
2447
2458
|
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(QuestionWrapperFooter, props);
|
|
2448
2459
|
});
|
|
2449
2460
|
|
|
@@ -2646,7 +2657,7 @@ var QuestionRatingAdornerComponent = /** @class */ (function (_super) {
|
|
|
2646
2657
|
var model = this.ratingModel;
|
|
2647
2658
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment, null,
|
|
2648
2659
|
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:
|
|
2660
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: model.controlsClassNames },
|
|
2650
2661
|
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
2662
|
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
2663
|
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 +3340,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3329
3340
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3330
3341
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_52___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_52__);
|
|
3331
3342
|
var Version;
|
|
3332
|
-
Version = "".concat("1.9.
|
|
3343
|
+
Version = "".concat("1.9.123");
|
|
3333
3344
|
// import "@survey/creator/survey-creator-core.css";
|
|
3334
3345
|
|
|
3335
3346
|
|
|
@@ -3391,7 +3402,7 @@ Version = "".concat("1.9.121");
|
|
|
3391
3402
|
|
|
3392
3403
|
|
|
3393
3404
|
|
|
3394
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_52__["checkLibraryVersion"])("".concat("1.9.
|
|
3405
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_52__["checkLibraryVersion"])("".concat("1.9.123"), "survey-creator-react");
|
|
3395
3406
|
|
|
3396
3407
|
|
|
3397
3408
|
/***/ }),
|
|
@@ -4614,7 +4625,7 @@ var SurveyCreatorToolboxTool = /** @class */ (function (_super) {
|
|
|
4614
4625
|
SurveyCreatorToolboxTool.prototype.render = function () {
|
|
4615
4626
|
var _this = this;
|
|
4616
4627
|
var item = this.item;
|
|
4617
|
-
var className = "svc-toolbox__tool " + item.css + (item.isVisible ? "" : " sv-action--hidden");
|
|
4628
|
+
var className = "svc-toolbox__tool " + (item.css || "") + (item.isVisible ? "" : " sv-action--hidden");
|
|
4618
4629
|
var itemComponent = survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.createElement(this.item.component || "svc-toolbox-item", {
|
|
4619
4630
|
item: this.item,
|
|
4620
4631
|
creator: this.creator,
|