survey-creator-react 1.9.105 → 1.9.107
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 +4 -4
- package/survey-creator-react.js +131 -38
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +2 -2
- package/typings/ImageItemValueWrapper.d.ts +1 -0
- package/typings/LogoImage.d.ts +1 -0
- package/typings/adorners/QuestionImage.d.ts +2 -0
- package/typings/custom-questions/TextWithResetQuestion.d.ts +9 -0
- package/typings/entries/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.107",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"survey-core": "1.9.
|
|
38
|
-
"survey-react-ui": "1.9.
|
|
39
|
-
"survey-creator-core": "1.9.
|
|
37
|
+
"survey-core": "1.9.107",
|
|
38
|
+
"survey-react-ui": "1.9.107",
|
|
39
|
+
"survey-creator-core": "1.9.107",
|
|
40
40
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
41
41
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
42
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.107
|
|
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
|
|
@@ -207,6 +207,10 @@ var ImageItemValueAdornerComponent = /** @class */ (function (_super) {
|
|
|
207
207
|
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
208
208
|
this.model.itemsRoot = this.rootRef.current;
|
|
209
209
|
};
|
|
210
|
+
ImageItemValueAdornerComponent.prototype.renderLoadingIndicator = function () {
|
|
211
|
+
return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-item-value__loading" },
|
|
212
|
+
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["LoadingIndicatorComponent"], null));
|
|
213
|
+
};
|
|
210
214
|
ImageItemValueAdornerComponent.prototype.render = function () {
|
|
211
215
|
var _this = this;
|
|
212
216
|
// if (this.model.question.isDragged) {
|
|
@@ -217,12 +221,12 @@ var ImageItemValueAdornerComponent = /** @class */ (function (_super) {
|
|
|
217
221
|
this.model.isNew = isNew;
|
|
218
222
|
var imageStyle = !this.model.getIsNewItemSingle() ? { width: this.question.renderedImageWidth, height: this.question.renderedImageHeight } : null;
|
|
219
223
|
var content = null;
|
|
220
|
-
if (isNew) {
|
|
224
|
+
if (isNew || this.model.isUploading) {
|
|
221
225
|
content = (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null,
|
|
222
226
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-item-value__item", onDrop: this.model.onDrop, onDragOver: this.model.onDragOver, onDragLeave: this.model.onDragLeave },
|
|
223
227
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "sd-imagepicker__item sd-imagepicker__item--inline" },
|
|
224
228
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("label", { className: "sd-imagepicker__label" },
|
|
225
|
-
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { style: imageStyle, className: "sd-imagepicker__image" })))),
|
|
229
|
+
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { style: imageStyle, className: "sd-imagepicker__image" }, this.model.isUploading ? this.renderLoadingIndicator() : null)))),
|
|
226
230
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-item-value-controls" }, this.model.allowAdd && !this.model.isUploading ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-context-button svc-image-item-value-controls__add", onClick: function () { return _this.model.chooseNewFile(_this.model); } },
|
|
227
231
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: "icon-add-lg" }))) : null)));
|
|
228
232
|
}
|
|
@@ -414,11 +418,18 @@ var LogoImageComponent = /** @class */ (function (_super) {
|
|
|
414
418
|
LogoImageComponent.prototype.renderInput = function () {
|
|
415
419
|
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", { "aria-hidden": "true", type: "file", tabIndex: -1, accept: this.model.acceptedTypes, className: "svc-choose-file-input" });
|
|
416
420
|
};
|
|
421
|
+
LogoImageComponent.prototype.renderLoadingIndicator = function () {
|
|
422
|
+
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-logo-image__loading" },
|
|
423
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["LoadingIndicatorComponent"], null));
|
|
424
|
+
};
|
|
417
425
|
LogoImageComponent.prototype.render = function () {
|
|
418
426
|
var content = null;
|
|
419
|
-
if (this.model.survey.locLogo.renderedHtml) {
|
|
427
|
+
if (this.model.survey.locLogo.renderedHtml && !this.model.isUploading) {
|
|
420
428
|
content = this.renderImage();
|
|
421
429
|
}
|
|
430
|
+
else if (this.model.isUploading) {
|
|
431
|
+
content = this.renderLoadingIndicator();
|
|
432
|
+
}
|
|
422
433
|
else {
|
|
423
434
|
content = this.renderPlaceHolder();
|
|
424
435
|
}
|
|
@@ -1355,16 +1366,13 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1355
1366
|
};
|
|
1356
1367
|
_this.state = { changed: 0 };
|
|
1357
1368
|
_this.svStringEditorRef = react__WEBPACK_IMPORTED_MODULE_1___default.a.createRef();
|
|
1358
|
-
_this.baseModel.getEditorElement = function () { return _this.svStringEditorRef.current; };
|
|
1359
1369
|
return _this;
|
|
1360
1370
|
}
|
|
1361
1371
|
SurveyLocStringEditor.prototype.createModel = function () {
|
|
1362
|
-
|
|
1372
|
+
if (this.baseModel) {
|
|
1373
|
+
this.baseModel.dispose();
|
|
1374
|
+
}
|
|
1363
1375
|
this.baseModel = new survey_creator_core__WEBPACK_IMPORTED_MODULE_3__["StringEditorViewModelBase"](this.locString, this.creator);
|
|
1364
|
-
this.baseModel.blurEditor = function () {
|
|
1365
|
-
_this.svStringEditorRef.current.blur();
|
|
1366
|
-
_this.svStringEditorRef.current.spellcheck = false;
|
|
1367
|
-
};
|
|
1368
1376
|
};
|
|
1369
1377
|
SurveyLocStringEditor.prototype.getUpdatedModelProps = function () {
|
|
1370
1378
|
return ["creator", "locString"];
|
|
@@ -1401,10 +1409,15 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1401
1409
|
configurable: true
|
|
1402
1410
|
});
|
|
1403
1411
|
SurveyLocStringEditor.prototype.componentDidMount = function () {
|
|
1412
|
+
var _this = this;
|
|
1404
1413
|
_super.prototype.componentDidMount.call(this);
|
|
1405
1414
|
if (!this.locString)
|
|
1406
1415
|
return;
|
|
1407
|
-
|
|
1416
|
+
this.baseModel.getEditorElement = function () { return _this.svStringEditorRef.current; };
|
|
1417
|
+
this.baseModel.blurEditor = function () {
|
|
1418
|
+
_this.svStringEditorRef.current.blur();
|
|
1419
|
+
_this.svStringEditorRef.current.spellcheck = false;
|
|
1420
|
+
};
|
|
1408
1421
|
this.baseModel.afterRender();
|
|
1409
1422
|
this.locString.onStringChanged.add(this.onChangedHandler);
|
|
1410
1423
|
if (this.locString["__isEditing"]) {
|
|
@@ -1414,10 +1427,14 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1414
1427
|
};
|
|
1415
1428
|
SurveyLocStringEditor.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
1416
1429
|
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
1430
|
+
this.baseModel.setLocString(this.locString);
|
|
1417
1431
|
this.baseModel.afterRender();
|
|
1418
1432
|
};
|
|
1419
1433
|
SurveyLocStringEditor.prototype.componentWillUnmount = function () {
|
|
1420
1434
|
_super.prototype.componentWillUnmount.call(this);
|
|
1435
|
+
this.baseModel.getEditorElement = undefined;
|
|
1436
|
+
this.baseModel.blurEditor = undefined;
|
|
1437
|
+
this.baseModel.dispose();
|
|
1421
1438
|
if (!this.locString)
|
|
1422
1439
|
return;
|
|
1423
1440
|
this.locString.onStringChanged.remove(this.onChangedHandler);
|
|
@@ -1447,9 +1464,6 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1447
1464
|
if (!this.locString) {
|
|
1448
1465
|
return null;
|
|
1449
1466
|
}
|
|
1450
|
-
else {
|
|
1451
|
-
this.baseModel.setLocString(this.locString);
|
|
1452
|
-
}
|
|
1453
1467
|
var control = null;
|
|
1454
1468
|
if (this.locString.hasHtml) {
|
|
1455
1469
|
var htmlValue = { __html: this.baseModel.focused && this.baseModel.editAsText && this.locString.text || this.locString.renderedHtml };
|
|
@@ -2013,6 +2027,7 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
|
|
|
2013
2027
|
};
|
|
2014
2028
|
CreatorSurveyPageComponent.prototype.componentWillUnmount = function () {
|
|
2015
2029
|
_super.prototype.componentWillUnmount.call(this);
|
|
2030
|
+
this.model.onPageSelectedCallback = undefined;
|
|
2016
2031
|
this.model.dispose();
|
|
2017
2032
|
};
|
|
2018
2033
|
CreatorSurveyPageComponent.prototype.canRender = function () {
|
|
@@ -2182,6 +2197,9 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
|
|
|
2182
2197
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2183
2198
|
}
|
|
2184
2199
|
QuestionAdornerComponent.prototype.createModel = function () {
|
|
2200
|
+
if (this.modelValue) {
|
|
2201
|
+
this.modelValue.dispose();
|
|
2202
|
+
}
|
|
2185
2203
|
this.modelValue = this.createQuestionViewModel();
|
|
2186
2204
|
};
|
|
2187
2205
|
QuestionAdornerComponent.prototype.createQuestionViewModel = function () {
|
|
@@ -2508,11 +2526,19 @@ var QuestionImageAdornerComponent = /** @class */ (function (_super) {
|
|
|
2508
2526
|
} }),
|
|
2509
2527
|
_super.prototype.renderHeader.call(this)));
|
|
2510
2528
|
};
|
|
2511
|
-
QuestionImageAdornerComponent.prototype.
|
|
2529
|
+
QuestionImageAdornerComponent.prototype.renderLoadingPlaceholder = function () {
|
|
2530
|
+
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-question__loading-placeholder" },
|
|
2531
|
+
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-question__loading" },
|
|
2532
|
+
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["LoadingIndicatorComponent"], null))));
|
|
2533
|
+
};
|
|
2534
|
+
QuestionImageAdornerComponent.prototype.renderChooseButton = function () {
|
|
2512
2535
|
var _this = this;
|
|
2513
|
-
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-question-controls" }, this.model.allowEdit
|
|
2536
|
+
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-question-controls" }, this.model.allowEdit ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-context-button", onClick: function () { return _this.imageModel.chooseFile(_this.imageModel); } },
|
|
2514
2537
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: "icon-file" }))) : null));
|
|
2515
2538
|
};
|
|
2539
|
+
QuestionImageAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
2540
|
+
return this.imageModel.isUploading ? this.renderLoadingPlaceholder() : this.renderChooseButton();
|
|
2541
|
+
};
|
|
2516
2542
|
QuestionImageAdornerComponent.prototype.getStateElements = function () {
|
|
2517
2543
|
return [this.model, this.imageModel.filePresentationModel];
|
|
2518
2544
|
};
|
|
@@ -2793,7 +2819,8 @@ var SurveyQuestionColor = /** @class */ (function (_super) {
|
|
|
2793
2819
|
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, placeholder: this.question.renderedPlaceholder, autoComplete: "off", onKeyUp: function (event) { return _this.question.onKeyUp(event.nativeEvent); }, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onChange: this.question.onChange, onBeforeInput: function (event) { return _this.question.onBeforeInput(event.nativeEvent); }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy })));
|
|
2794
2820
|
};
|
|
2795
2821
|
SurveyQuestionColor.prototype.renderElement = function () {
|
|
2796
|
-
|
|
2822
|
+
var _this = this;
|
|
2823
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.question.cssClasses.root, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
|
|
2797
2824
|
this.renderColorSwatch(),
|
|
2798
2825
|
this.renderInput(),
|
|
2799
2826
|
this.question.showDropdownAction ? this.renderDropdownAction() : null));
|
|
@@ -2875,7 +2902,8 @@ var SurveyQuestionFileEditor = /** @class */ (function (_super) {
|
|
|
2875
2902
|
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
2903
|
};
|
|
2877
2904
|
SurveyQuestionFileEditor.prototype.renderElement = function () {
|
|
2878
|
-
|
|
2905
|
+
var _this = this;
|
|
2906
|
+
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, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
|
|
2879
2907
|
this.renderInput(),
|
|
2880
2908
|
this.renderButtons()));
|
|
2881
2909
|
};
|
|
@@ -2949,6 +2977,68 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactQuestionFactory"].Instance.re
|
|
|
2949
2977
|
});
|
|
2950
2978
|
|
|
2951
2979
|
|
|
2980
|
+
/***/ }),
|
|
2981
|
+
|
|
2982
|
+
/***/ "./src/custom-questions/TextWithResetQuestion.tsx":
|
|
2983
|
+
/*!********************************************************!*\
|
|
2984
|
+
!*** ./src/custom-questions/TextWithResetQuestion.tsx ***!
|
|
2985
|
+
\********************************************************/
|
|
2986
|
+
/*! exports provided: SurveyQuestionTextWithReset */
|
|
2987
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2988
|
+
|
|
2989
|
+
"use strict";
|
|
2990
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2991
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionTextWithReset", function() { return SurveyQuestionTextWithReset; });
|
|
2992
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2993
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2994
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2995
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2996
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2997
|
+
|
|
2998
|
+
|
|
2999
|
+
|
|
3000
|
+
var SurveyQuestionTextWithReset = /** @class */ (function (_super) {
|
|
3001
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyQuestionTextWithReset, _super);
|
|
3002
|
+
function SurveyQuestionTextWithReset() {
|
|
3003
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3004
|
+
}
|
|
3005
|
+
Object.defineProperty(SurveyQuestionTextWithReset.prototype, "question", {
|
|
3006
|
+
get: function () {
|
|
3007
|
+
return this.questionBase;
|
|
3008
|
+
},
|
|
3009
|
+
enumerable: false,
|
|
3010
|
+
configurable: true
|
|
3011
|
+
});
|
|
3012
|
+
SurveyQuestionTextWithReset.prototype.renderElement = function () {
|
|
3013
|
+
var textElement = this.renderInput();
|
|
3014
|
+
var resetButton = this.renderResetButton();
|
|
3015
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.question.getRootClass() },
|
|
3016
|
+
textElement,
|
|
3017
|
+
resetButton));
|
|
3018
|
+
};
|
|
3019
|
+
SurveyQuestionTextWithReset.prototype.renderInput = function () {
|
|
3020
|
+
return survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactQuestionFactory"].Instance.createQuestion(this.question.wrappedQuestionTemplate, {
|
|
3021
|
+
question: this.question,
|
|
3022
|
+
isDisplayMode: this.question.isInputReadOnly,
|
|
3023
|
+
creator: this,
|
|
3024
|
+
});
|
|
3025
|
+
};
|
|
3026
|
+
SurveyQuestionTextWithReset.prototype.renderResetButton = function () {
|
|
3027
|
+
var _this = this;
|
|
3028
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.question.cssClasses.resetButton, disabled: this.question.resetValueAdorner.isDisabled, title: this.question.resetValueAdorner.caption, onClick: function () { return _this.question.resetValueAdorner.resetValue(); } },
|
|
3029
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.resetButtonIcon, size: "auto" })));
|
|
3030
|
+
};
|
|
3031
|
+
return SurveyQuestionTextWithReset;
|
|
3032
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SurveyQuestionElementBase"]));
|
|
3033
|
+
|
|
3034
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactQuestionFactory"].Instance.registerQuestion("textwithreset", function (props) {
|
|
3035
|
+
return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](SurveyQuestionTextWithReset, props);
|
|
3036
|
+
});
|
|
3037
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactQuestionFactory"].Instance.registerQuestion("commentwithreset", function (props) {
|
|
3038
|
+
return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](SurveyQuestionTextWithReset, props);
|
|
3039
|
+
});
|
|
3040
|
+
|
|
3041
|
+
|
|
2952
3042
|
/***/ }),
|
|
2953
3043
|
|
|
2954
3044
|
/***/ "./src/entries/helpers.ts":
|
|
@@ -3016,7 +3106,7 @@ var __spreadArrays = function () {
|
|
|
3016
3106
|
/*!******************************!*\
|
|
3017
3107
|
!*** ./src/entries/index.ts ***!
|
|
3018
3108
|
\******************************/
|
|
3019
|
-
/*! exports provided: Version, SurveyCreatorComponent, SurveyCreator, RowWrapper, QuestionAdornerComponent, QuestionWrapperHeader, QuestionWrapperFooter, QuestionCarrayForwardBanner, QuestionDropdownAdornerComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, CreatorSurveyPageComponent, PanelAdornerComponent, LogoImageComponent, SurveyQuestionLinkValue, SurveyElementEmbeddedSurvey, QuestionEditorContentComponent, ItemValueAdornerComponent, ImageItemValueAdornerComponent, MatrixCellAdornerComponent, SurveyResults, SurveyResultsByRow, SurveyCreatorToolboxTool, SurveyCreatorToolboxItem, SurveyCreatorToolboxCategory, Toolbox, AdaptiveToolbox, TabbedMenuComponent, TabbedMenuItemComponent, SurveyNavigation, SidebarComponent, TranslationLineSkeleton, ActionButton, SurveyLocStringEditor, SurveyLogicOpertor, TabDesignerComponent, TabJsonEditorAceComponent, TabJsonEditorErrorsComponent, TabJsonEditorTextareaComponent, TabLogicAddButtonComponent, TabLogicComponent, TabPreviewTestSurveyAgainComponent, TabPreviewSurveyComponent, TabThemeSurveyComponent, TabTranslationComponent, SurveySimulator, ReactMouseEvent, ReactDragEvent, PropertyGridComponent, SurveyQuestionSpinEditor, SurveyQuestionColor, SurveyQuestionFileEditor, editorLocalization, localization, settings, svgBundle, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, ToolboxToolViewModel, PropertyGridEditorCollection, StylesManager */
|
|
3109
|
+
/*! exports provided: Version, SurveyCreatorComponent, SurveyCreator, RowWrapper, QuestionAdornerComponent, QuestionWrapperHeader, QuestionWrapperFooter, QuestionCarrayForwardBanner, QuestionDropdownAdornerComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, CreatorSurveyPageComponent, PanelAdornerComponent, LogoImageComponent, SurveyQuestionLinkValue, SurveyElementEmbeddedSurvey, QuestionEditorContentComponent, ItemValueAdornerComponent, ImageItemValueAdornerComponent, MatrixCellAdornerComponent, SurveyResults, SurveyResultsByRow, SurveyCreatorToolboxTool, SurveyCreatorToolboxItem, SurveyCreatorToolboxCategory, Toolbox, AdaptiveToolbox, TabbedMenuComponent, TabbedMenuItemComponent, SurveyNavigation, SidebarComponent, TranslationLineSkeleton, ActionButton, SurveyLocStringEditor, SurveyLogicOpertor, TabDesignerComponent, TabJsonEditorAceComponent, TabJsonEditorErrorsComponent, TabJsonEditorTextareaComponent, TabLogicAddButtonComponent, TabLogicComponent, TabPreviewTestSurveyAgainComponent, TabPreviewSurveyComponent, TabThemeSurveyComponent, TabTranslationComponent, SurveySimulator, ReactMouseEvent, ReactDragEvent, PropertyGridComponent, SurveyQuestionSpinEditor, SurveyQuestionColor, SurveyQuestionFileEditor, SurveyQuestionTextWithReset, editorLocalization, localization, settings, svgBundle, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, ToolboxToolViewModel, PropertyGridEditorCollection, StylesManager */
|
|
3020
3110
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3021
3111
|
|
|
3022
3112
|
"use strict";
|
|
@@ -3179,32 +3269,35 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3179
3269
|
/* harmony import */ var _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../custom-questions/FileEditQuestion */ "./src/custom-questions/FileEditQuestion.tsx");
|
|
3180
3270
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionFileEditor", function() { return _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_48__["SurveyQuestionFileEditor"]; });
|
|
3181
3271
|
|
|
3182
|
-
/* harmony import */ var
|
|
3183
|
-
/* harmony
|
|
3184
|
-
|
|
3272
|
+
/* harmony import */ var _custom_questions_TextWithResetQuestion__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../custom-questions/TextWithResetQuestion */ "./src/custom-questions/TextWithResetQuestion.tsx");
|
|
3273
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionTextWithReset", function() { return _custom_questions_TextWithResetQuestion__WEBPACK_IMPORTED_MODULE_49__["SurveyQuestionTextWithReset"]; });
|
|
3274
|
+
|
|
3275
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
3276
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_50__);
|
|
3277
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "editorLocalization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["editorLocalization"]; });
|
|
3185
3278
|
|
|
3186
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "localization", function() { return
|
|
3279
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "localization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["localization"]; });
|
|
3187
3280
|
|
|
3188
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return
|
|
3281
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["settings"]; });
|
|
3189
3282
|
|
|
3190
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return
|
|
3283
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["svgBundle"]; });
|
|
3191
3284
|
|
|
3192
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return
|
|
3285
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["SurveyLogic"]; });
|
|
3193
3286
|
|
|
3194
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return
|
|
3287
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["SurveyLogicUI"]; });
|
|
3195
3288
|
|
|
3196
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return
|
|
3289
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["SurveyQuestionEditorDefinition"]; });
|
|
3197
3290
|
|
|
3198
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return
|
|
3291
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["ToolboxToolViewModel"]; });
|
|
3199
3292
|
|
|
3200
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return
|
|
3293
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["PropertyGridEditorCollection"]; });
|
|
3201
3294
|
|
|
3202
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return
|
|
3295
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_50__["StylesManager"]; });
|
|
3203
3296
|
|
|
3204
|
-
/* harmony import */ var
|
|
3205
|
-
/* harmony import */ var
|
|
3297
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3298
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_51___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_51__);
|
|
3206
3299
|
var Version;
|
|
3207
|
-
Version = "".concat("1.9.
|
|
3300
|
+
Version = "".concat("1.9.107");
|
|
3208
3301
|
// import "@survey/creator/survey-creator-core.css";
|
|
3209
3302
|
|
|
3210
3303
|
|
|
@@ -3264,7 +3357,8 @@ Version = "".concat("1.9.105");
|
|
|
3264
3357
|
|
|
3265
3358
|
|
|
3266
3359
|
|
|
3267
|
-
|
|
3360
|
+
|
|
3361
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_51__["checkLibraryVersion"])("".concat("1.9.107"), "survey-creator-react");
|
|
3268
3362
|
|
|
3269
3363
|
|
|
3270
3364
|
/***/ }),
|
|
@@ -3882,10 +3976,9 @@ var TabPreviewSurveyComponent = /** @class */ (function (_super) {
|
|
|
3882
3976
|
return this.model;
|
|
3883
3977
|
};
|
|
3884
3978
|
TabPreviewSurveyComponent.prototype.renderElement = function () {
|
|
3885
|
-
var _this = this;
|
|
3886
3979
|
var tabContentClassName = "svc-creator-tab__content svc-test-tab__content" + (this.model.isPageToolbarVisible ? " svc-creator-tab__content--with-toolbar" : "");
|
|
3887
3980
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: tabContentClassName },
|
|
3888
|
-
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-plugin-tab__content"
|
|
3981
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-plugin-tab__content" },
|
|
3889
3982
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_SurveySimulator__WEBPACK_IMPORTED_MODULE_3__["SurveySimulator"], { model: this.model.simulator }),
|
|
3890
3983
|
!this.model.isRunning ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(TabPreviewTestSurveyAgainComponent, { button: this.model.testAgainAction }) : null,
|
|
3891
3984
|
!this.model.isRunning ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__["SurveyResults"], { survey: this.model.simulator.survey }) : null),
|
|
@@ -4540,7 +4633,7 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
|
|
|
4540
4633
|
};
|
|
4541
4634
|
SurveyCreatorToolboxItem.prototype.render = function () {
|
|
4542
4635
|
var _this = this;
|
|
4543
|
-
return Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: this.item.className, tabIndex: 0, role: "button", "aria-label": this.item.tooltip, title: this.item.tooltip, onClick: function (event) {
|
|
4636
|
+
return Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-toolbox__item " + this.item.className, tabIndex: 0, role: "button", "aria-label": this.item.tooltip, title: this.item.tooltip, onClick: function (event) {
|
|
4544
4637
|
event.persist();
|
|
4545
4638
|
_this.model.click(event);
|
|
4546
4639
|
} },
|