survey-creator-react 1.9.89 → 1.9.91
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 +112 -43
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +2 -2
- package/typings/StringEditor.d.ts +1 -0
- package/typings/custom-questions/ColorItem.d.ts +1 -0
- package/typings/custom-questions/ColorQuestion.d.ts +2 -1
- 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.91",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"ace-builds": "^1.4.12"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"survey-core": "1.9.
|
|
33
|
-
"survey-react-ui": "1.9.
|
|
34
|
-
"survey-creator-core": "1.9.
|
|
32
|
+
"survey-core": "1.9.91",
|
|
33
|
+
"survey-react-ui": "1.9.91",
|
|
34
|
+
"survey-creator-core": "1.9.91",
|
|
35
35
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
36
36
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
37
37
|
},
|
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v1.9.
|
|
2
|
+
* SurveyJS Creator React v1.9.91
|
|
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
|
|
@@ -367,7 +367,11 @@ var LogoImageComponent = /** @class */ (function (_super) {
|
|
|
367
367
|
return _this;
|
|
368
368
|
}
|
|
369
369
|
LogoImageComponent.prototype.createModel = function () {
|
|
370
|
-
|
|
370
|
+
var prevRoot = null;
|
|
371
|
+
if (!!this.model) {
|
|
372
|
+
prevRoot = this.model.root;
|
|
373
|
+
}
|
|
374
|
+
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_3__["LogoImageViewModel"](this.props.data, prevRoot);
|
|
371
375
|
};
|
|
372
376
|
LogoImageComponent.prototype.getUpdatedModelProps = function () {
|
|
373
377
|
return ["data"];
|
|
@@ -1320,6 +1324,9 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1320
1324
|
_this.onInput = function (event) {
|
|
1321
1325
|
_this.baseModel.onInput(event.nativeEvent);
|
|
1322
1326
|
};
|
|
1327
|
+
_this.onPaste = function (event) {
|
|
1328
|
+
_this.baseModel.onPaste(event.nativeEvent);
|
|
1329
|
+
};
|
|
1323
1330
|
_this.justFocused = false;
|
|
1324
1331
|
_this.onFocus = function (event) {
|
|
1325
1332
|
_this.baseModel.onFocus(event.nativeEvent);
|
|
@@ -1451,7 +1458,7 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1451
1458
|
else {
|
|
1452
1459
|
control = (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
|
|
1453
1460
|
// style={this.style}
|
|
1454
|
-
onBlur: this.onBlur, onInput: this.onInput, onCompositionStart: this.onCompositionStart, onCompositionEnd: this.onCompositionEnd, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp, onMouseUp: this.onMouseUp, onClick: this.edit }, this.locString.renderedHtml));
|
|
1461
|
+
onBlur: this.onBlur, onInput: this.onInput, onPaste: this.onPaste, onCompositionStart: this.onCompositionStart, onCompositionEnd: this.onCompositionEnd, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp, onMouseUp: this.onMouseUp, onClick: this.edit }, this.locString.renderedHtml));
|
|
1455
1462
|
}
|
|
1456
1463
|
var counter = this.baseModel.showCharacterCounter ? (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["CharacterCounterComponent"], { counter: this.baseModel.characterCounter, remainingCharacterCounter: this.baseModel.getCharacterCounterClass })) : null;
|
|
1457
1464
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: this.className },
|
|
@@ -1873,7 +1880,7 @@ var CellQuestionAdornerComponent = /** @class */ (function (_super) {
|
|
|
1873
1880
|
}
|
|
1874
1881
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment, null,
|
|
1875
1882
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { "data-sv-drop-target-survey-element": this.model.element.name, className: "svc-question__adorner" },
|
|
1876
|
-
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: " svc-question__content--
|
|
1883
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: " svc-question__content--in-popup svc-question__content" }, this.props.element))));
|
|
1877
1884
|
};
|
|
1878
1885
|
return CellQuestionAdornerComponent;
|
|
1879
1886
|
}(_ModelElement__WEBPACK_IMPORTED_MODULE_3__["CreatorModelElement"]));
|
|
@@ -1930,7 +1937,7 @@ var CellQuestionDropdownAdornerComponent = /** @class */ (function (_super) {
|
|
|
1930
1937
|
var textStyle = this.props.question.textStyle;
|
|
1931
1938
|
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null,
|
|
1932
1939
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { "data-sv-drop-target-survey-element": this.model.element.name, className: "svc-question__adorner" },
|
|
1933
|
-
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: " svc-question__content--
|
|
1940
|
+
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: " svc-question__content--in-popup svc-question__content" },
|
|
1934
1941
|
this.props.element,
|
|
1935
1942
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-question__dropdown-choices" }, question.visibleChoices.map(function (item, index) { return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-question__dropdown-choice", key: "editable_choice_".concat(index) }, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactSurveyElementsWrapper"].wrapItemValue(question.survey, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.createElement("survey-radiogroup-item", {
|
|
1936
1943
|
question: question,
|
|
@@ -2031,9 +2038,28 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
|
|
|
2031
2038
|
react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_1__["SurveyActionBar"], { model: this.model.actionContainer })));
|
|
2032
2039
|
};
|
|
2033
2040
|
CreatorSurveyPageComponent.prototype.renderFooter = function () {
|
|
2041
|
+
return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_1__["SurveyActionBar"], { model: this.model.footerActionsBar });
|
|
2042
|
+
};
|
|
2043
|
+
return CreatorSurveyPageComponent;
|
|
2044
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_2__["CreatorModelElement"]));
|
|
2045
|
+
|
|
2046
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_1__["ReactElementFactory"].Instance.registerElement("svc-page", function (props) {
|
|
2047
|
+
return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(CreatorSurveyPageComponent, props);
|
|
2048
|
+
});
|
|
2049
|
+
var AddQuestionButtonComponent = /** @class */ (function (_super) {
|
|
2050
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AddQuestionButtonComponent, _super);
|
|
2051
|
+
function AddQuestionButtonComponent() {
|
|
2052
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2053
|
+
}
|
|
2054
|
+
Object.defineProperty(AddQuestionButtonComponent.prototype, "model", {
|
|
2055
|
+
get: function () {
|
|
2056
|
+
return this.props.item.data;
|
|
2057
|
+
},
|
|
2058
|
+
enumerable: false,
|
|
2059
|
+
configurable: true
|
|
2060
|
+
});
|
|
2061
|
+
AddQuestionButtonComponent.prototype.renderElement = function () {
|
|
2034
2062
|
var _this = this;
|
|
2035
|
-
if (!this.model.showAddQuestionButton)
|
|
2036
|
-
return null;
|
|
2037
2063
|
var questionTypeSelectorModel = this.model.questionTypeSelectorModel;
|
|
2038
2064
|
return Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_1__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", { className: "svc-page__add-new-question svc-btn", onClick: function (e) {
|
|
2039
2065
|
e.stopPropagation();
|
|
@@ -2048,11 +2074,10 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
|
|
|
2048
2074
|
react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_1__["SvgIcon"], { iconName: questionTypeSelectorModel.iconName, size: 24, title: this.model.addNewQuestionText })),
|
|
2049
2075
|
react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_1__["Popup"], { model: questionTypeSelectorModel.popupModel })))));
|
|
2050
2076
|
};
|
|
2051
|
-
return
|
|
2052
|
-
}(
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(CreatorSurveyPageComponent, props);
|
|
2077
|
+
return AddQuestionButtonComponent;
|
|
2078
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"]));
|
|
2079
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_1__["ReactElementFactory"].Instance.registerElement("svc-add-new-question-btn", function (props) {
|
|
2080
|
+
return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(AddQuestionButtonComponent, props);
|
|
2056
2081
|
});
|
|
2057
2082
|
|
|
2058
2083
|
|
|
@@ -2641,6 +2666,43 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.reg
|
|
|
2641
2666
|
});
|
|
2642
2667
|
|
|
2643
2668
|
|
|
2669
|
+
/***/ }),
|
|
2670
|
+
|
|
2671
|
+
/***/ "./src/custom-questions/ColorItem.tsx":
|
|
2672
|
+
/*!********************************************!*\
|
|
2673
|
+
!*** ./src/custom-questions/ColorItem.tsx ***!
|
|
2674
|
+
\********************************************/
|
|
2675
|
+
/*! no exports provided */
|
|
2676
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2677
|
+
|
|
2678
|
+
"use strict";
|
|
2679
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2680
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2681
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2682
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2683
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2684
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
var ItemTemplateComponent = /** @class */ (function (_super) {
|
|
2689
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ItemTemplateComponent, _super);
|
|
2690
|
+
function ItemTemplateComponent() {
|
|
2691
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2692
|
+
}
|
|
2693
|
+
ItemTemplateComponent.prototype.render = function () {
|
|
2694
|
+
var item = this.props.item;
|
|
2695
|
+
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment, null,
|
|
2696
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "spg-color-editor__color-swatch", style: { backgroundColor: item.value } }),
|
|
2697
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { key: 2 }, this.renderLocString(item.locTitle, undefined, "locString"))));
|
|
2698
|
+
};
|
|
2699
|
+
return ItemTemplateComponent;
|
|
2700
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SurveyElementBase"]));
|
|
2701
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.registerElement("color-item", function (props) {
|
|
2702
|
+
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ItemTemplateComponent, props);
|
|
2703
|
+
});
|
|
2704
|
+
|
|
2705
|
+
|
|
2644
2706
|
/***/ }),
|
|
2645
2707
|
|
|
2646
2708
|
/***/ "./src/custom-questions/ColorQuestion.tsx":
|
|
@@ -2676,25 +2738,30 @@ var SurveyQuestionColor = /** @class */ (function (_super) {
|
|
|
2676
2738
|
SurveyQuestionColor.prototype.renderInput = function () {
|
|
2677
2739
|
var _this = this;
|
|
2678
2740
|
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
|
|
2679
|
-
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", 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 })));
|
|
2741
|
+
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 })));
|
|
2680
2742
|
};
|
|
2681
2743
|
SurveyQuestionColor.prototype.renderElement = function () {
|
|
2682
2744
|
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.question.cssClasses.root },
|
|
2683
2745
|
this.renderColorSwatch(),
|
|
2684
2746
|
this.renderInput(),
|
|
2685
|
-
this.
|
|
2747
|
+
this.question.showDropdownAction ? this.renderDropdownAction() : null));
|
|
2686
2748
|
};
|
|
2687
2749
|
SurveyQuestionColor.prototype.getValueCore = function () {
|
|
2688
2750
|
return this.question.renderedValue;
|
|
2689
2751
|
};
|
|
2690
2752
|
SurveyQuestionColor.prototype.renderColorSwatch = function () {
|
|
2691
|
-
return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: this.question.cssClasses.swatch, style: this.question.getSwatchStyle() });
|
|
2692
|
-
};
|
|
2693
|
-
SurveyQuestionColor.prototype.renderColorInput = function () {
|
|
2694
2753
|
var _this = this;
|
|
2695
|
-
return
|
|
2696
|
-
react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.
|
|
2697
|
-
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: this.question.renderedValue, className: this.question.cssClasses.colorInput, onChange: function (event) { return _this.question.onColorInputChange(event.nativeEvent); } }))
|
|
2754
|
+
return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { className: this.question.cssClasses.swatch, style: this.question.getSwatchStyle() },
|
|
2755
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.swatchIcon, size: "auto" }),
|
|
2756
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: this.question.renderedValue, className: this.question.cssClasses.colorInput, onChange: function (event) { return _this.question.onColorInputChange(event.nativeEvent); } }));
|
|
2757
|
+
};
|
|
2758
|
+
SurveyQuestionColor.prototype.renderDropdownAction = function () {
|
|
2759
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
|
|
2760
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.createElement("sv-action-bar-item", { item: this.question.dropdownAction }),
|
|
2761
|
+
this.renderPopup()));
|
|
2762
|
+
};
|
|
2763
|
+
SurveyQuestionColor.prototype.renderPopup = function () {
|
|
2764
|
+
return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["Popup"], { model: this.question.dropdownAction.popupModel });
|
|
2698
2765
|
};
|
|
2699
2766
|
return SurveyQuestionColor;
|
|
2700
2767
|
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SurveyQuestionText"]));
|
|
@@ -3050,38 +3117,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3050
3117
|
/* harmony import */ var _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../custom-questions/SpinEditor */ "./src/custom-questions/SpinEditor.tsx");
|
|
3051
3118
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionSpinEditor", function() { return _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_44__["SurveyQuestionSpinEditor"]; });
|
|
3052
3119
|
|
|
3053
|
-
/* harmony import */ var
|
|
3054
|
-
/* harmony reexport
|
|
3120
|
+
/* harmony import */ var _custom_questions_ColorItem__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../custom-questions/ColorItem */ "./src/custom-questions/ColorItem.tsx");
|
|
3121
|
+
/* empty/unused harmony star reexport *//* harmony import */ var _custom_questions_ColorQuestion__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../custom-questions/ColorQuestion */ "./src/custom-questions/ColorQuestion.tsx");
|
|
3122
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionColor", function() { return _custom_questions_ColorQuestion__WEBPACK_IMPORTED_MODULE_46__["SurveyQuestionColor"]; });
|
|
3055
3123
|
|
|
3056
|
-
/* harmony import */ var
|
|
3057
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionFileEditor", function() { return
|
|
3124
|
+
/* harmony import */ var _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../custom-questions/FileEditQuestion */ "./src/custom-questions/FileEditQuestion.tsx");
|
|
3125
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionFileEditor", function() { return _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_47__["SurveyQuestionFileEditor"]; });
|
|
3058
3126
|
|
|
3059
|
-
/* harmony import */ var
|
|
3060
|
-
/* harmony import */ var
|
|
3061
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "editorLocalization", function() { return
|
|
3127
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
3128
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_48___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_48__);
|
|
3129
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "editorLocalization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_48__["editorLocalization"]; });
|
|
3062
3130
|
|
|
3063
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "localization", function() { return
|
|
3131
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "localization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_48__["localization"]; });
|
|
3064
3132
|
|
|
3065
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return
|
|
3133
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_48__["settings"]; });
|
|
3066
3134
|
|
|
3067
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return
|
|
3135
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_48__["svgBundle"]; });
|
|
3068
3136
|
|
|
3069
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return
|
|
3137
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_48__["SurveyLogic"]; });
|
|
3070
3138
|
|
|
3071
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return
|
|
3139
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_48__["SurveyLogicUI"]; });
|
|
3072
3140
|
|
|
3073
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return
|
|
3141
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_48__["SurveyQuestionEditorDefinition"]; });
|
|
3074
3142
|
|
|
3075
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return
|
|
3143
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_48__["ToolboxToolViewModel"]; });
|
|
3076
3144
|
|
|
3077
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return
|
|
3145
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_48__["PropertyGridEditorCollection"]; });
|
|
3078
3146
|
|
|
3079
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return
|
|
3147
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_48__["StylesManager"]; });
|
|
3080
3148
|
|
|
3081
|
-
/* harmony import */ var
|
|
3082
|
-
/* harmony import */ var
|
|
3149
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3150
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_49___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_49__);
|
|
3083
3151
|
var Version;
|
|
3084
|
-
Version = "".concat("1.9.
|
|
3152
|
+
Version = "".concat("1.9.91");
|
|
3085
3153
|
// import "@survey/creator/survey-creator-core.css";
|
|
3086
3154
|
|
|
3087
3155
|
|
|
@@ -3139,7 +3207,8 @@ Version = "".concat("1.9.89");
|
|
|
3139
3207
|
|
|
3140
3208
|
|
|
3141
3209
|
|
|
3142
|
-
|
|
3210
|
+
|
|
3211
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_49__["checkLibraryVersion"])("".concat("1.9.91"), "survey-creator-react");
|
|
3143
3212
|
|
|
3144
3213
|
|
|
3145
3214
|
/***/ }),
|
|
@@ -3803,10 +3872,10 @@ var SurveySimulator = /** @class */ (function (_super) {
|
|
|
3803
3872
|
var _this = this;
|
|
3804
3873
|
var mainSimulatorClass = this.model.getRootCss();
|
|
3805
3874
|
if (!this.model.survey) {
|
|
3806
|
-
return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: mainSimulatorClass
|
|
3875
|
+
return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: mainSimulatorClass });
|
|
3807
3876
|
}
|
|
3808
3877
|
if (this.model.hasFrame) {
|
|
3809
|
-
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", {
|
|
3878
|
+
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: mainSimulatorClass, onKeyDown: function (e) { return _this.model.tryToZoom(e, e); }, onMouseEnter: this.model.device === "desktop" ? null : this.model.activateZoom, onMouseLeave: this.model.device === "desktop" ? null : this.model.deactivateZoom },
|
|
3810
3879
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svd-simulator-wrapper", id: "svd-simulator-wrapper", style: {
|
|
3811
3880
|
width: this.model.simulatorFrame.frameWidth + "px",
|
|
3812
3881
|
height: this.model.simulatorFrame.frameHeight + "px"
|
|
@@ -3826,7 +3895,7 @@ var SurveySimulator = /** @class */ (function (_super) {
|
|
|
3826
3895
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_1__["Survey"], { model: this.model.survey }))))));
|
|
3827
3896
|
}
|
|
3828
3897
|
else {
|
|
3829
|
-
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", {
|
|
3898
|
+
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: mainSimulatorClass },
|
|
3830
3899
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svd-simulator-content" },
|
|
3831
3900
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_1__["Survey"], { model: this.model.survey }))));
|
|
3832
3901
|
}
|