survey-creator-react 2.0.10 → 2.1.1
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 +21 -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 +21 -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.1.1",
|
|
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.1.1",
|
|
41
|
+
"survey-react-ui": "2.1.1",
|
|
42
|
+
"survey-creator-core": "2.1.1"
|
|
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.1.1
|
|
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;
|
|
@@ -1958,6 +1959,10 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
|
|
|
1958
1959
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText))));
|
|
1959
1960
|
};
|
|
1960
1961
|
CreatorSurveyPageComponent.prototype.renderContent = function () {
|
|
1962
|
+
if (!this.model.needRenderContent) {
|
|
1963
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-page__loading-content" },
|
|
1964
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.LoadingIndicatorComponent, null));
|
|
1965
|
+
}
|
|
1961
1966
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(PageElementContent, { page: this.props.page, survey: this.props.survey, creator: this.props.creator }));
|
|
1962
1967
|
};
|
|
1963
1968
|
CreatorSurveyPageComponent.prototype.renderHeader = function () {
|
|
@@ -2546,9 +2551,9 @@ var QuestionRatingAdornerComponent = /** @class */ (function (_super) {
|
|
|
2546
2551
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2547
2552
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-rating-question-content" },
|
|
2548
2553
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: model.controlsClassNames },
|
|
2549
|
-
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); } },
|
|
2554
|
+
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); } },
|
|
2550
2555
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: "icon-remove_16x16", title: model.removeTooltip }))) : null,
|
|
2551
|
-
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); } },
|
|
2556
|
+
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); } },
|
|
2552
2557
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: "auto", iconName: "icon-add_16x16", title: model.addTooltip }))) : null),
|
|
2553
2558
|
this.props.element)));
|
|
2554
2559
|
};
|
|
@@ -3348,7 +3353,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3348
3353
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3349
3354
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_63__);
|
|
3350
3355
|
var Version;
|
|
3351
|
-
Version = "".concat("2.
|
|
3356
|
+
Version = "".concat("2.1.1");
|
|
3352
3357
|
// import "@survey/creator/survey-creator-core.css";
|
|
3353
3358
|
|
|
3354
3359
|
|
|
@@ -3420,7 +3425,7 @@ Version = "".concat("2.0.10");
|
|
|
3420
3425
|
|
|
3421
3426
|
|
|
3422
3427
|
|
|
3423
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.
|
|
3428
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.1.1"), "survey-creator-react");
|
|
3424
3429
|
|
|
3425
3430
|
|
|
3426
3431
|
/***/ }),
|
|
@@ -4747,12 +4752,15 @@ var SurveyLogicOpertor = /** @class */ (function (_super) {
|
|
|
4747
4752
|
var q = this.question;
|
|
4748
4753
|
(0,survey_creator_core__WEBPACK_IMPORTED_MODULE_3__.initLogicOperator)(q);
|
|
4749
4754
|
var text = (q.locReadOnlyText) ? this.renderLocString(q.locReadOnlyText) : "";
|
|
4755
|
+
var dropdownListModel = this.question.dropdownListModel;
|
|
4750
4756
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { id: this.question.inputId, className: q.getControlClass(), tabIndex: this.question.isInputReadOnly ? undefined : 0,
|
|
4751
4757
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4752
4758
|
// @ts-ignore
|
|
4753
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onKeyUp: this.keyhandler, role:
|
|
4754
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.cssClasses.controlValue }, text)
|
|
4755
|
-
|
|
4759
|
+
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 },
|
|
4760
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.cssClasses.controlValue }, text)));
|
|
4761
|
+
};
|
|
4762
|
+
SurveyLogicOpertor.prototype.renderEditorButtons = function () {
|
|
4763
|
+
return null;
|
|
4756
4764
|
};
|
|
4757
4765
|
return SurveyLogicOpertor;
|
|
4758
4766
|
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.SurveyQuestionDropdown));
|