survey-creator-react 2.0.2 → 2.0.4
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.js → survey-creator-react.mjs} +25 -56
- package/fesm/survey-creator-react.mjs.map +1 -0
- package/package.json +6 -6
- package/survey-creator-react.js +24 -92
- 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/fesm/survey-creator-react.js.map +0 -1
- package/typings/components/Scroll.d.ts +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"**/*"
|
|
18
18
|
],
|
|
19
|
-
"module": "fesm/survey-creator-react.
|
|
19
|
+
"module": "fesm/survey-creator-react.mjs",
|
|
20
20
|
"main": "survey-creator-react.js",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
31
|
"types": "./typings/entries/index.d.ts",
|
|
32
|
-
"import": "./fesm/survey-creator-react.
|
|
32
|
+
"import": "./fesm/survey-creator-react.mjs",
|
|
33
33
|
"require": "./survey-creator-react.js"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
@@ -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.0.
|
|
41
|
-
"survey-react-ui": "2.0.
|
|
42
|
-
"survey-creator-core": "2.0.
|
|
40
|
+
"survey-core": "2.0.4",
|
|
41
|
+
"survey-react-ui": "2.0.4",
|
|
42
|
+
"survey-creator-core": "2.0.4"
|
|
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.0.
|
|
2
|
+
* SurveyJS Creator React v2.0.4
|
|
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
|
|
@@ -1643,7 +1643,7 @@ var TabbedMenuComponent = /** @class */ (function (_super) {
|
|
|
1643
1643
|
};
|
|
1644
1644
|
TabbedMenuComponent.prototype.renderElement = function () {
|
|
1645
1645
|
var items = this.model.renderedActions.map(function (item) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement(TabbedMenuItemWrapper, { item: item, key: item.renderedId }); });
|
|
1646
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.rootRef, className: "svc-tabbed-menu" }, items));
|
|
1646
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.rootRef, className: "svc-tabbed-menu", role: "tablist" }, items));
|
|
1647
1647
|
};
|
|
1648
1648
|
TabbedMenuComponent.prototype.componentDidMount = function () {
|
|
1649
1649
|
_super.prototype.componentDidMount.call(this);
|
|
@@ -2664,63 +2664,6 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.regist
|
|
|
2664
2664
|
});
|
|
2665
2665
|
|
|
2666
2666
|
|
|
2667
|
-
/***/ }),
|
|
2668
|
-
|
|
2669
|
-
/***/ "./src/components/Scroll.tsx":
|
|
2670
|
-
/*!***********************************!*\
|
|
2671
|
-
!*** ./src/components/Scroll.tsx ***!
|
|
2672
|
-
\***********************************/
|
|
2673
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2674
|
-
|
|
2675
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2676
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2677
|
-
/* harmony export */ ScrollComponent: () => (/* binding */ ScrollComponent)
|
|
2678
|
-
/* harmony export */ });
|
|
2679
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2680
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2681
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2682
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2683
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
2684
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2685
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
var ScrollComponent = /** @class */ (function (_super) {
|
|
2691
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(ScrollComponent, _super);
|
|
2692
|
-
function ScrollComponent(props) {
|
|
2693
|
-
var _this = _super.call(this, props) || this;
|
|
2694
|
-
_this.rootRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
2695
|
-
_this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.ScrollViewModel();
|
|
2696
|
-
return _this;
|
|
2697
|
-
}
|
|
2698
|
-
ScrollComponent.prototype.componentDidMount = function () {
|
|
2699
|
-
var container = this.rootRef.current;
|
|
2700
|
-
if (!container)
|
|
2701
|
-
return;
|
|
2702
|
-
this.model.setRootElement(container);
|
|
2703
|
-
};
|
|
2704
|
-
ScrollComponent.prototype.componentWillUnmount = function () {
|
|
2705
|
-
this.model.unsubscribeRootElement();
|
|
2706
|
-
this.model.setRootElement(undefined);
|
|
2707
|
-
};
|
|
2708
|
-
ScrollComponent.prototype.render = function () {
|
|
2709
|
-
var _this = this;
|
|
2710
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.rootRef, className: "svc-scroll__wrapper" },
|
|
2711
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-scroll__scroller sv-drag-target-skipped", onScroll: function () { return _this.model.onScrollContainer(); } },
|
|
2712
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-scroll__container" }, this.props.children)),
|
|
2713
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-scroll__scrollbar", onScroll: function () { return _this.model.onScrollScrollbar(); } },
|
|
2714
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-scroll__scrollbar-sizer" })));
|
|
2715
|
-
};
|
|
2716
|
-
return ScrollComponent;
|
|
2717
|
-
}(react__WEBPACK_IMPORTED_MODULE_1__.Component));
|
|
2718
|
-
|
|
2719
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-scroll", function (props) {
|
|
2720
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(ScrollComponent, props);
|
|
2721
|
-
});
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
2667
|
/***/ }),
|
|
2725
2668
|
|
|
2726
2669
|
/***/ "./src/components/Search.tsx":
|
|
@@ -2859,7 +2802,7 @@ var SurveyQuestionBooleanSwitch = /** @class */ (function (_super) {
|
|
|
2859
2802
|
}
|
|
2860
2803
|
SurveyQuestionBooleanSwitch.prototype.renderElement = function () {
|
|
2861
2804
|
var _this = this;
|
|
2862
|
-
var button = (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__button" + (this.questionBase.value ? " spg-boolean-switch__button--checked" : ""), tabIndex: 0, role: "checkbox", "aria-required": this.questionBase.
|
|
2805
|
+
var button = (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__button" + (this.questionBase.value ? " spg-boolean-switch__button--checked" : ""), tabIndex: 0, role: "checkbox", "aria-checked": this.questionBase.booleanValue || false, "aria-required": this.questionBase.a11y_input_ariaRequired, "aria-label": this.questionBase.a11y_input_ariaLabel, "aria-labelledby": this.questionBase.a11y_input_ariaLabelledBy, "aria-invalid": this.questionBase.a11y_input_ariaInvalid, "aria-errormessage": this.questionBase.a11y_input_ariaErrormessage },
|
|
2863
2806
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb" },
|
|
2864
2807
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })),
|
|
2865
2808
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb" },
|
|
@@ -2867,7 +2810,7 @@ var SurveyQuestionBooleanSwitch = /** @class */ (function (_super) {
|
|
|
2867
2810
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch", onClick: function () { return _this.questionBase.value = !_this.questionBase.value; } },
|
|
2868
2811
|
button,
|
|
2869
2812
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__caption" },
|
|
2870
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__title" }, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase.renderLocString(this.questionBase.locTitle)))));
|
|
2813
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__title", id: this.questionBase.labelRenderedAriaID }, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase.renderLocString(this.questionBase.locTitle)))));
|
|
2871
2814
|
};
|
|
2872
2815
|
return SurveyQuestionBooleanSwitch;
|
|
2873
2816
|
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyQuestionElementBase));
|
|
@@ -2948,7 +2891,7 @@ var SurveyQuestionColor = /** @class */ (function (_super) {
|
|
|
2948
2891
|
SurveyQuestionColor.prototype.renderInput = function () {
|
|
2949
2892
|
var _this = this;
|
|
2950
2893
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2951
|
-
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.
|
|
2894
|
+
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.a11y_input_ariaRequired, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-label": this.question.a11y_input_ariaLabel, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-describedby": this.question.a11y_input_ariaDescribedBy })));
|
|
2952
2895
|
};
|
|
2953
2896
|
SurveyQuestionColor.prototype.renderElement = function () {
|
|
2954
2897
|
var _this = this;
|
|
@@ -2964,11 +2907,11 @@ var SurveyQuestionColor = /** @class */ (function (_super) {
|
|
|
2964
2907
|
var _this = this;
|
|
2965
2908
|
return react__WEBPACK_IMPORTED_MODULE_1__.createElement("label", { className: this.question.getSwatchCss(), style: this.question.getSwatchStyle() },
|
|
2966
2909
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.swatchIcon, size: "auto" }),
|
|
2967
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { type: "color", disabled: this.isDisplayMode, value: this.question.renderedColorValue, className: this.question.cssClasses.colorInput, onChange: function (event) { return _this.question.onColorInputChange(event.nativeEvent); }, tabIndex: -1 }));
|
|
2910
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { type: "color", disabled: this.isDisplayMode, value: this.question.renderedColorValue, className: this.question.cssClasses.colorInput, onChange: function (event) { return _this.question.onColorInputChange(event.nativeEvent); }, tabIndex: -1, "aria-required": this.question.a11y_input_ariaRequired, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-label": this.question.a11y_input_ariaLabel, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-describedby": this.question.a11y_input_ariaDescribedBy }));
|
|
2968
2911
|
};
|
|
2969
2912
|
SurveyQuestionColor.prototype.renderDropdownAction = function () {
|
|
2970
2913
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2971
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement("sv-action-bar-item", { item: this.question.dropdownAction }),
|
|
2914
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { "aria-hidden": "true", className: this.question.cssClasses.choicesButtonWrapper }, survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement("sv-action-bar-item", { item: this.question.dropdownAction })),
|
|
2972
2915
|
this.renderPopup()));
|
|
2973
2916
|
};
|
|
2974
2917
|
SurveyQuestionColor.prototype.renderPopup = function () {
|
|
@@ -3032,12 +2975,12 @@ var SurveyQuestionFileEditor = /** @class */ (function (_super) {
|
|
|
3032
2975
|
this.renderChooseButton()));
|
|
3033
2976
|
};
|
|
3034
2977
|
SurveyQuestionFileEditor.prototype.renderClearButton = function () {
|
|
3035
|
-
return (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)((react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", {
|
|
3036
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.questionFile.cssClasses.clearButtonIcon, size: "auto"
|
|
2978
|
+
return (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)((react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { className: this.questionFile.cssClasses.clearButton, title: this.questionFile.clearButtonCaption, disabled: this.questionFile.getIsClearButtonDisabled(), onClick: this.questionFile.doClean },
|
|
2979
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.questionFile.cssClasses.clearButtonIcon, size: "auto" }))));
|
|
3037
2980
|
};
|
|
3038
2981
|
SurveyQuestionFileEditor.prototype.renderChooseButton = function () {
|
|
3039
2982
|
var _this = this;
|
|
3040
|
-
return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("label", {
|
|
2983
|
+
return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("label", { onClick: function (event) { return _this.questionFile.chooseFiles(event.nativeEvent); }, className: this.questionFile.getChooseButtonCss(), htmlFor: this.questionFile.inputId, "aria-label": this.questionFile.chooseButtonCaption },
|
|
3041
2984
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.questionFile.cssClasses.chooseButtonIcon, size: "auto", title: this.questionFile.chooseButtonCaption }))));
|
|
3042
2985
|
};
|
|
3043
2986
|
SurveyQuestionFileEditor.prototype.renderElement = function () {
|
|
@@ -3090,7 +3033,7 @@ var SurveyQuestionSpinEditor = /** @class */ (function (_super) {
|
|
|
3090
3033
|
SurveyQuestionSpinEditor.prototype.renderInput = function () {
|
|
3091
3034
|
var _this = this;
|
|
3092
3035
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
3093
|
-
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); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); }, onChange: this.question.onChange, onBeforeInput: function (event) { return _this.question.onBeforeInput(event.nativeEvent); }, onKeyUp: function (event) { return _this.question.onKeyUp(event.nativeEvent); }, onKeyDown: function (event) { return _this.question.onInputKeyDown(event.nativeEvent); }, "aria-required": this.question.
|
|
3036
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { role: "spinbutton", 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); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); }, onChange: this.question.onChange, onBeforeInput: function (event) { return _this.question.onBeforeInput(event.nativeEvent); }, onKeyUp: function (event) { return _this.question.onKeyUp(event.nativeEvent); }, onKeyDown: function (event) { return _this.question.onInputKeyDown(event.nativeEvent); }, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage })));
|
|
3094
3037
|
};
|
|
3095
3038
|
SurveyQuestionSpinEditor.prototype.renderElement = function () {
|
|
3096
3039
|
var _this = this;
|
|
@@ -3104,9 +3047,9 @@ var SurveyQuestionSpinEditor = /** @class */ (function (_super) {
|
|
|
3104
3047
|
SurveyQuestionSpinEditor.prototype.renderButtons = function () {
|
|
3105
3048
|
var _this = this;
|
|
3106
3049
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: this.question.cssClasses.buttonsContainer },
|
|
3107
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { tabIndex: -1, className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onClick: this.question.onDownButtonClick, onMouseDown: this.question.onDownButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
3050
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { tabIndex: -1, "aria-hidden": "true", className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onClick: this.question.onDownButtonClick, onMouseDown: this.question.onDownButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
3108
3051
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.decreaseButtonIcon, size: "auto" })),
|
|
3109
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { tabIndex: -1, className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onClick: this.question.onUpButtonClick, onMouseDown: this.question.onUpButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
3052
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { tabIndex: -1, "aria-hidden": "true", className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onClick: this.question.onUpButtonClick, onMouseDown: this.question.onUpButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
3110
3053
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.increaseButtonIcon, size: "auto" }))));
|
|
3111
3054
|
};
|
|
3112
3055
|
return SurveyQuestionSpinEditor;
|
|
@@ -3406,8 +3349,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3406
3349
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3407
3350
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3408
3351
|
/* harmony import */ var _components_Search__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/Search */ "./src/components/Search.tsx");
|
|
3409
|
-
/* harmony import */ var _components_Scroll__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/Scroll */ "./src/components/Scroll.tsx");
|
|
3410
|
-
|
|
3411
3352
|
|
|
3412
3353
|
|
|
3413
3354
|
|
|
@@ -3435,8 +3376,7 @@ var PropertyGridComponent = /** @class */ (function (_super) {
|
|
|
3435
3376
|
PropertyGridComponent.prototype.renderElement = function () {
|
|
3436
3377
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.model.rootCss },
|
|
3437
3378
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_Search__WEBPACK_IMPORTED_MODULE_3__.SearchComponent, { model: this.model.searchManager }),
|
|
3438
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3439
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Survey, { model: this.model.survey }))));
|
|
3379
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Survey, { model: this.model.survey })));
|
|
3440
3380
|
};
|
|
3441
3381
|
return PropertyGridComponent;
|
|
3442
3382
|
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
@@ -3805,8 +3745,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3805
3745
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3806
3746
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3807
3747
|
/* harmony import */ var _TabButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabButton */ "./src/side-bar/TabButton.tsx");
|
|
3808
|
-
/* harmony import */ var _components_Scroll__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/Scroll */ "./src/components/Scroll.tsx");
|
|
3809
|
-
|
|
3810
3748
|
|
|
3811
3749
|
|
|
3812
3750
|
|
|
@@ -3831,7 +3769,7 @@ var TabControl = /** @class */ (function (_super) {
|
|
|
3831
3769
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_TabButton__WEBPACK_IMPORTED_MODULE_3__.TabButtonComponent, { model: this.props.model.expandCollapseAction })),
|
|
3832
3770
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar-tabs__separator" },
|
|
3833
3771
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null)),
|
|
3834
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3772
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Scroll, null,
|
|
3835
3773
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar-tabs__items" },
|
|
3836
3774
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(TabsComponent, { model: this.props.model.topToolbar })))),
|
|
3837
3775
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar-tabs__bottom-container" },
|
|
@@ -3877,8 +3815,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3877
3815
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3878
3816
|
/* harmony import */ var _PageNavigator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../PageNavigator */ "./src/PageNavigator.tsx");
|
|
3879
3817
|
/* harmony import */ var _components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/SurfacePlaceholder */ "./src/components/SurfacePlaceholder.tsx");
|
|
3880
|
-
/* harmony import */ var _components_Scroll__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/Scroll */ "./src/components/Scroll.tsx");
|
|
3881
|
-
|
|
3882
3818
|
|
|
3883
3819
|
|
|
3884
3820
|
|
|
@@ -3964,7 +3900,7 @@ var TabDesignerComponent = /** @class */ (function (_super) {
|
|
|
3964
3900
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
3965
3901
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-flex-column" }, this.model.isToolboxVisible ? survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement("svc-toolbox", { model: this.creator }) : null),
|
|
3966
3902
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: designerTabClassName, onClick: function () { return _this.model.clickDesigner(); } },
|
|
3967
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3903
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Scroll, null,
|
|
3968
3904
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-tab-designer_content" }, this.model.showPlaceholder ? this.renderPlaceHolder() : this.renderTabContent())))));
|
|
3969
3905
|
};
|
|
3970
3906
|
TabDesignerComponent.prototype.renderHeader = function (condition) {
|
|
@@ -4577,7 +4513,7 @@ var SurveyLogicOpertor = /** @class */ (function (_super) {
|
|
|
4577
4513
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { id: this.question.inputId, className: q.getControlClass(), tabIndex: this.question.isInputReadOnly ? undefined : 0,
|
|
4578
4514
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4579
4515
|
// @ts-ignore
|
|
4580
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onKeyUp: this.keyhandler, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-
|
|
4516
|
+
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onKeyUp: this.keyhandler, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-labelledby": this.question.ariaLabelledBy, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded },
|
|
4581
4517
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.cssClasses.controlValue },
|
|
4582
4518
|
text,
|
|
4583
4519
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, q.readOnlyText)),
|
|
@@ -4761,9 +4697,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4761
4697
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
4762
4698
|
/* harmony import */ var _ToolboxItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ToolboxItem */ "./src/toolbox/ToolboxItem.tsx");
|
|
4763
4699
|
/* harmony import */ var _components_Search__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/Search */ "./src/components/Search.tsx");
|
|
4764
|
-
/* harmony import */ var
|
|
4765
|
-
/* harmony import */ var _ToolboxCategory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ToolboxCategory */ "./src/toolbox/ToolboxCategory.tsx");
|
|
4766
|
-
|
|
4700
|
+
/* harmony import */ var _ToolboxCategory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ToolboxCategory */ "./src/toolbox/ToolboxCategory.tsx");
|
|
4767
4701
|
|
|
4768
4702
|
|
|
4769
4703
|
|
|
@@ -4818,7 +4752,7 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
|
|
|
4818
4752
|
AdaptiveToolbox.prototype.renderCategories = function () {
|
|
4819
4753
|
var _this = this;
|
|
4820
4754
|
return this.toolbox.categories.map(function (category, index) {
|
|
4821
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
4755
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ToolboxCategory__WEBPACK_IMPORTED_MODULE_6__.SurveyCreatorToolboxCategory, { category: category, toolbox: _this.toolbox, key: "category" + index });
|
|
4822
4756
|
});
|
|
4823
4757
|
};
|
|
4824
4758
|
AdaptiveToolbox.prototype.renderSearch = function () {
|
|
@@ -4841,7 +4775,7 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
|
|
|
4841
4775
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { onBlur: function (e) { return _this.toolbox.focusOut(e); }, className: "svc-toolbox__panel" },
|
|
4842
4776
|
search,
|
|
4843
4777
|
placeholder,
|
|
4844
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
4778
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.Scroll, null, (this.toolbox.showInSingleCategory) ?
|
|
4845
4779
|
(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__category" }, this.renderItems(this.toolbox.renderedActions, this.toolbox.isCompactRendered)))
|
|
4846
4780
|
: this.renderCategories()))));
|
|
4847
4781
|
};
|
|
@@ -4926,11 +4860,9 @@ var SurveyCreatorToolboxCategory = /** @class */ (function (_super) {
|
|
|
4926
4860
|
SurveyCreatorToolboxCategory.prototype.renderButton = function () {
|
|
4927
4861
|
if (!this.toolbox.canCollapseCategories)
|
|
4928
4862
|
return null;
|
|
4929
|
-
var iconName = this.category.
|
|
4930
|
-
var suffixName = this.category.collapsed ? "expand" : "collapse";
|
|
4931
|
-
var svgIconClassName = "svc-toolbox__category-header__button svc-string-editor__button--" + suffixName;
|
|
4863
|
+
var iconName = this.category.iconName;
|
|
4932
4864
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__category-header__controls" },
|
|
4933
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className:
|
|
4865
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: this.category.iconClassName, iconName: iconName, size: "auto" })));
|
|
4934
4866
|
};
|
|
4935
4867
|
SurveyCreatorToolboxCategory.prototype.renderCategoryContent = function () {
|
|
4936
4868
|
return this.renderItems(this.category.items);
|
|
@@ -5546,7 +5478,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5546
5478
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
5547
5479
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_63__);
|
|
5548
5480
|
var Version;
|
|
5549
|
-
Version = "".concat("2.0.
|
|
5481
|
+
Version = "".concat("2.0.4");
|
|
5550
5482
|
// import "@survey/creator/survey-creator-core.css";
|
|
5551
5483
|
|
|
5552
5484
|
|
|
@@ -5618,7 +5550,7 @@ Version = "".concat("2.0.2");
|
|
|
5618
5550
|
|
|
5619
5551
|
|
|
5620
5552
|
|
|
5621
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.0.
|
|
5553
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.0.4"), "survey-creator-react");
|
|
5622
5554
|
|
|
5623
5555
|
})();
|
|
5624
5556
|
|