survey-creator-react 2.1.0 → 2.2.0
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/fesm/survey-creator-react.mjs +18 -13
- package/fesm/survey-creator-react.mjs.map +1 -1
- package/index.html +1 -0
- package/package.json +4 -4
- package/survey-creator-react.js +18 -13
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +1 -1
- package/survey-creator-react.min.js.LICENSE.txt +1 -1
- package/typings/tabs/logic-operator.d.ts +1 -0
package/index.html
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
<script src="./node_modules/survey-react-ui/survey-react-ui.js"></script>
|
|
19
19
|
<script src="./node_modules/survey-creator-core/survey-creator-core.js"></script>
|
|
20
20
|
<script src="./node_modules/survey-creator-core/themes/index.js"></script>
|
|
21
|
+
<script src="./node_modules/survey-creator-core/survey-creator-core-presets.js"></script>
|
|
21
22
|
<script src="./node_modules/survey-creator-core/survey-creator-core.i18n.min.js"></script>
|
|
22
23
|
|
|
23
24
|
<!--<script src="./build/survey-creator-react.js"></script>-->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"ace-builds": "^1.4.12",
|
|
38
38
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
|
|
39
39
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
|
|
40
|
-
"survey-core": "2.
|
|
41
|
-
"survey-react-ui": "2.
|
|
42
|
-
"survey-creator-core": "2.
|
|
40
|
+
"survey-core": "2.2.0",
|
|
41
|
+
"survey-react-ui": "2.2.0",
|
|
42
|
+
"survey-creator-core": "2.2.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"ace-builds": {
|
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v2.
|
|
2
|
+
* SurveyJS Creator React v2.2.0
|
|
3
3
|
* (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -344,7 +344,7 @@ var ItemValueAdornerComponent = /** @class */ (function (_super) {
|
|
|
344
344
|
ItemValueAdornerComponent.prototype.render = function () {
|
|
345
345
|
var _this = this;
|
|
346
346
|
this.model.item = this.props.item;
|
|
347
|
-
var button = this.model.allowAdd ? ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-item-value-controls__button svc-item-value-controls__add", "aria-label": this.model.tooltip, onClick: function () {
|
|
347
|
+
var button = this.model.allowAdd ? ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { role: "button", className: "svc-item-value-controls__button svc-item-value-controls__add", "aria-label": this.model.tooltip, onClick: function () {
|
|
348
348
|
_this.model.add(_this.model);
|
|
349
349
|
_this.model.isNew = false;
|
|
350
350
|
} },
|
|
@@ -352,7 +352,7 @@ var ItemValueAdornerComponent = /** @class */ (function (_super) {
|
|
|
352
352
|
" ",
|
|
353
353
|
this.model.isDraggable ? (react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-item-value-controls__button svc-item-value-controls__drag" },
|
|
354
354
|
react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { className: "svc-item-value-controls__drag-icon", size: "auto", iconName: "icon-drag-24x24", title: this.model.dragTooltip }))) : null,
|
|
355
|
-
this.model.allowRemove ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-item-value-controls__button svc-item-value-controls__remove", "aria-label": this.model.tooltip, onClick: function () { return _this.model.remove(_this.model); } },
|
|
355
|
+
this.model.allowRemove ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { role: "button", className: "svc-item-value-controls__button svc-item-value-controls__remove", "aria-label": this.model.tooltip, onClick: function () { return _this.model.remove(_this.model); } },
|
|
356
356
|
react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: "icon-remove_16x16", title: this.model.tooltip }))) : null));
|
|
357
357
|
var itemkey = this.props.element.key + (this.model.allowAdd ? "_new" : "");
|
|
358
358
|
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { ref: this.rootRef, className: "svc-item-value-wrapper" +
|
|
@@ -766,9 +766,10 @@ var SurveyPageNavigator = /** @class */ (function (_super) {
|
|
|
766
766
|
if (this.model.isPopupOpened)
|
|
767
767
|
className += " svc-page-navigator__button--pressed";
|
|
768
768
|
return (react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: "svc-page-navigator", ref: this.containerRef, style: { display: this.model.visible ? "flex" : "none" } },
|
|
769
|
-
|
|
770
|
-
react__WEBPACK_IMPORTED_MODULE_4__.createElement(
|
|
771
|
-
|
|
769
|
+
react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", null,
|
|
770
|
+
(0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { role: "button", className: className, onClick: function () { return _this.model.togglePageSelector(); }, title: this.model.pageSelectorCaption },
|
|
771
|
+
react__WEBPACK_IMPORTED_MODULE_4__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-page-navigator__button-icon", iconName: this.model.icon, size: "auto", title: this.model.pageSelectorCaption }))),
|
|
772
|
+
react__WEBPACK_IMPORTED_MODULE_4__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.model.popupModel })),
|
|
772
773
|
react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", null, this.model.visibleItems.map(function (item) { return (react__WEBPACK_IMPORTED_MODULE_4__.createElement(SurveyPageNavigatorItem, { key: item.id, item: item })); }))));
|
|
773
774
|
};
|
|
774
775
|
return SurveyPageNavigator;
|
|
@@ -1292,6 +1293,7 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1292
1293
|
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
1293
1294
|
this.baseModel.setLocString(this.locString);
|
|
1294
1295
|
this.baseModel.afterRender();
|
|
1296
|
+
this.locString.onStringChanged.add(this.onChangedHandler);
|
|
1295
1297
|
};
|
|
1296
1298
|
SurveyLocStringEditor.prototype.componentWillUnmount = function () {
|
|
1297
1299
|
_super.prototype.componentWillUnmount.call(this);
|
|
@@ -2550,9 +2552,9 @@ var QuestionRatingAdornerComponent = /** @class */ (function (_super) {
|
|
|
2550
2552
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2551
2553
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-rating-question-content" },
|
|
2552
2554
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: model.controlsClassNames },
|
|
2553
|
-
model.allowRemove ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: model.removeClassNames, "aria-label": model.removeTooltip, onClick: function () { return model.removeItem(model); } },
|
|
2555
|
+
model.allowRemove ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "button", className: model.removeClassNames, "aria-label": model.removeTooltip, onClick: function () { return model.removeItem(model); } },
|
|
2554
2556
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: "icon-remove_16x16", title: model.removeTooltip }))) : null,
|
|
2555
|
-
model.allowAdd ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: model.addClassNames, "aria-label": model.addTooltip, onClick: function () { return model.addItem(model); } },
|
|
2557
|
+
model.allowAdd ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "button", className: model.addClassNames, "aria-label": model.addTooltip, onClick: function () { return model.addItem(model); } },
|
|
2556
2558
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: "icon-add_16x16", title: model.addTooltip }))) : null),
|
|
2557
2559
|
this.props.element)));
|
|
2558
2560
|
};
|
|
@@ -3352,7 +3354,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3352
3354
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3353
3355
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_63__);
|
|
3354
3356
|
var Version;
|
|
3355
|
-
Version = "".concat("2.
|
|
3357
|
+
Version = "".concat("2.2.0");
|
|
3356
3358
|
// import "@survey/creator/survey-creator-core.css";
|
|
3357
3359
|
|
|
3358
3360
|
|
|
@@ -3424,7 +3426,7 @@ Version = "".concat("2.1.0");
|
|
|
3424
3426
|
|
|
3425
3427
|
|
|
3426
3428
|
|
|
3427
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.
|
|
3429
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.2.0"), "survey-creator-react");
|
|
3428
3430
|
|
|
3429
3431
|
|
|
3430
3432
|
/***/ }),
|
|
@@ -4751,12 +4753,15 @@ var SurveyLogicOpertor = /** @class */ (function (_super) {
|
|
|
4751
4753
|
var q = this.question;
|
|
4752
4754
|
(0,survey_creator_core__WEBPACK_IMPORTED_MODULE_3__.initLogicOperator)(q);
|
|
4753
4755
|
var text = (q.locReadOnlyText) ? this.renderLocString(q.locReadOnlyText) : "";
|
|
4756
|
+
var dropdownListModel = this.question.dropdownListModel;
|
|
4754
4757
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { id: this.question.inputId, className: q.getControlClass(), tabIndex: this.question.isInputReadOnly ? undefined : 0,
|
|
4755
4758
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4756
4759
|
// @ts-ignore
|
|
4757
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onKeyUp: this.keyhandler, role:
|
|
4758
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.cssClasses.controlValue }, text)
|
|
4759
|
-
|
|
4760
|
+
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onKeyUp: this.keyhandler, role: dropdownListModel.ariaQuestionRole, "aria-required": dropdownListModel.ariaQuestionRequired, "aria-invalid": dropdownListModel.ariaQuestionInvalid, "aria-errormessage": dropdownListModel.ariaQuestionErrorMessage, "aria-expanded": dropdownListModel.ariaQuestionExpanded, "aria-label": dropdownListModel.ariaQuestionLabel, "aria-labelledby": dropdownListModel.ariaQuestionLabelledby, "aria-controls": dropdownListModel.ariaQuestionControls },
|
|
4761
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.cssClasses.controlValue }, text)));
|
|
4762
|
+
};
|
|
4763
|
+
SurveyLogicOpertor.prototype.renderEditorButtons = function () {
|
|
4764
|
+
return null;
|
|
4760
4765
|
};
|
|
4761
4766
|
return SurveyLogicOpertor;
|
|
4762
4767
|
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.SurveyQuestionDropdown));
|