survey-react-ui 2.3.8 → 2.3.9
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-react-ui.mjs +1337 -1326
- package/fesm/survey-react-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-react-ui.js +57 -46
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +1 -1
- package/survey-react-ui.min.js.LICENSE.txt +1 -1
- package/typings/src/components/list/list-item.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.9",
|
|
4
4
|
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"survey-core": "2.3.
|
|
32
|
+
"survey-core": "2.3.9",
|
|
33
33
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
|
|
34
34
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0"
|
|
35
35
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.3.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.3.9
|
|
3
3
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28
28
|
/* harmony export */ icons: () => (/* binding */ iconsV1)
|
|
29
29
|
/* harmony export */ });
|
|
30
30
|
/*!
|
|
31
|
-
* surveyjs - Survey JavaScript library v2.3.
|
|
31
|
+
* surveyjs - Survey JavaScript library v2.3.9
|
|
32
32
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
33
33
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
34
34
|
*/
|
|
@@ -114,7 +114,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
114
114
|
/* harmony export */ icons: () => (/* binding */ iconsV2)
|
|
115
115
|
/* harmony export */ });
|
|
116
116
|
/*!
|
|
117
|
-
* surveyjs - Survey JavaScript library v2.3.
|
|
117
|
+
* surveyjs - Survey JavaScript library v2.3.9
|
|
118
118
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
119
119
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
120
120
|
*/
|
|
@@ -2064,11 +2064,12 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
2064
2064
|
|
|
2065
2065
|
var ListItem = /** @class */ (function (_super) {
|
|
2066
2066
|
__extends(ListItem, _super);
|
|
2067
|
-
function ListItem() {
|
|
2068
|
-
var _this = _super
|
|
2067
|
+
function ListItem(props) {
|
|
2068
|
+
var _this = _super.call(this, props) || this;
|
|
2069
2069
|
_this.handleKeydown = function (event) {
|
|
2070
2070
|
_this.model.onKeyDown(event);
|
|
2071
2071
|
};
|
|
2072
|
+
_this.elementRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
|
|
2072
2073
|
return _this;
|
|
2073
2074
|
}
|
|
2074
2075
|
Object.defineProperty(ListItem.prototype, "model", {
|
|
@@ -2095,7 +2096,7 @@ var ListItem = /** @class */ (function (_super) {
|
|
|
2095
2096
|
var className = this.model.getItemClass(this.item);
|
|
2096
2097
|
var itemContent = this.item.component || this.model.itemComponent;
|
|
2097
2098
|
var newElement = _element_factory__WEBPACK_IMPORTED_MODULE_1__.ReactElementFactory.Instance.createElement(itemContent, { item: this.item, key: this.item.id, model: this.model });
|
|
2098
|
-
var contentWrap = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { style: this.model.getItemStyle(this.item), className: this.model.cssClasses.itemBody, title: this.item.getTooltip(), onMouseOver: function (event) { _this.model.onItemHover(_this.item); }, onMouseLeave: function (event) { _this.model.onItemLeave(_this.item); } }, newElement);
|
|
2099
|
+
var contentWrap = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { ref: this.elementRef, style: this.model.getItemStyle(this.item), className: this.model.cssClasses.itemBody, title: this.item.getTooltip(), onMouseOver: function (event) { _this.model.onItemHover(_this.item); }, onMouseLeave: function (event) { _this.model.onItemLeave(_this.item); } }, newElement);
|
|
2099
2100
|
var separator = this.item.needSeparator ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.model.cssClasses.itemSeparator }) : null;
|
|
2100
2101
|
var isVisible = this.model.isItemVisible(this.item);
|
|
2101
2102
|
var style = {
|
|
@@ -2109,8 +2110,9 @@ var ListItem = /** @class */ (function (_super) {
|
|
|
2109
2110
|
contentWrap), this.item);
|
|
2110
2111
|
};
|
|
2111
2112
|
ListItem.prototype.componentDidMount = function () {
|
|
2113
|
+
var _a;
|
|
2112
2114
|
_super.prototype.componentDidMount.call(this);
|
|
2113
|
-
this.model.
|
|
2115
|
+
this.model.onItemRended(this.item, (_a = this.elementRef) === null || _a === void 0 ? void 0 : _a.current);
|
|
2114
2116
|
};
|
|
2115
2117
|
return ListItem;
|
|
2116
2118
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
@@ -5674,6 +5676,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5674
5676
|
/* harmony import */ var _panel_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./panel-base */ "./src/panel-base.tsx");
|
|
5675
5677
|
/* harmony import */ var _components_title_title_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/title/title-element */ "./src/components/title/title-element.tsx");
|
|
5676
5678
|
/* harmony import */ var _reactquestion__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion */ "./src/reactquestion.tsx");
|
|
5679
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
|
|
5677
5680
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
5678
5681
|
var extendStatics = function (d, b) {
|
|
5679
5682
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -5694,6 +5697,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
5694
5697
|
|
|
5695
5698
|
|
|
5696
5699
|
|
|
5700
|
+
|
|
5697
5701
|
var SurveyPage = /** @class */ (function (_super) {
|
|
5698
5702
|
__extends(SurveyPage, _super);
|
|
5699
5703
|
function SurveyPage(props) {
|
|
@@ -5732,6 +5736,9 @@ var SurveyPage = /** @class */ (function (_super) {
|
|
|
5732
5736
|
return SurveyPage;
|
|
5733
5737
|
}(_panel_base__WEBPACK_IMPORTED_MODULE_2__.SurveyPanelBase));
|
|
5734
5738
|
|
|
5739
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.registerElement("sv-page", function (props) {
|
|
5740
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyPage, props);
|
|
5741
|
+
});
|
|
5735
5742
|
|
|
5736
5743
|
|
|
5737
5744
|
/***/ }),
|
|
@@ -6540,19 +6547,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6540
6547
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
6541
6548
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
6542
6549
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
6543
|
-
/* harmony import */ var
|
|
6544
|
-
/* harmony import */ var
|
|
6545
|
-
/* harmony import */ var
|
|
6546
|
-
/* harmony import */ var
|
|
6547
|
-
/* harmony import */ var
|
|
6548
|
-
/* harmony import */ var
|
|
6549
|
-
/* harmony import */ var
|
|
6550
|
-
/* harmony import */ var
|
|
6551
|
-
/* harmony import */ var
|
|
6552
|
-
/* harmony import */ var
|
|
6553
|
-
/* harmony import */ var
|
|
6554
|
-
/* harmony import */ var
|
|
6555
|
-
/* harmony import */ var _components_scroll__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/scroll */ "./src/components/scroll.tsx");
|
|
6550
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_element */ "./src/reactquestion_element.tsx");
|
|
6551
|
+
/* harmony import */ var _components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/survey-header/survey-header */ "./src/components/survey-header/survey-header.tsx");
|
|
6552
|
+
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/reactquestion_factory.tsx");
|
|
6553
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
|
|
6554
|
+
/* harmony import */ var _components_brand_info__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/brand-info */ "./src/components/brand-info.tsx");
|
|
6555
|
+
/* harmony import */ var _components_notifier__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/notifier */ "./src/components/notifier.tsx");
|
|
6556
|
+
/* harmony import */ var _components_components_container__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/components-container */ "./src/components/components-container.tsx");
|
|
6557
|
+
/* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./svgbundle */ "./src/svgbundle.tsx");
|
|
6558
|
+
/* harmony import */ var _components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/popup/popup-modal */ "./src/components/popup/popup-modal.tsx");
|
|
6559
|
+
/* harmony import */ var survey_core_icons_iconsV1__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! survey-core/icons/iconsV1 */ "../survey-core/build/fesm/icons/iconsV1.mjs");
|
|
6560
|
+
/* harmony import */ var survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! survey-core/icons/iconsV2 */ "../survey-core/build/fesm/icons/iconsV2.mjs");
|
|
6561
|
+
/* harmony import */ var _components_scroll__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/scroll */ "./src/components/scroll.tsx");
|
|
6556
6562
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
6557
6563
|
var extendStatics = function (d, b) {
|
|
6558
6564
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -6593,10 +6599,9 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
6593
6599
|
|
|
6594
6600
|
|
|
6595
6601
|
|
|
6596
|
-
|
|
6597
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("
|
|
6598
|
-
|
|
6599
|
-
survey_core__WEBPACK_IMPORTED_MODULE_1__.SvgRegistry.registerIcons(survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_13__.icons);
|
|
6602
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("v1", survey_core_icons_iconsV1__WEBPACK_IMPORTED_MODULE_11__.icons);
|
|
6603
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("v2", survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_12__.icons);
|
|
6604
|
+
survey_core__WEBPACK_IMPORTED_MODULE_1__.SvgRegistry.registerIcons(survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_12__.icons);
|
|
6600
6605
|
var Survey = /** @class */ (function (_super) {
|
|
6601
6606
|
__extends(Survey, _super);
|
|
6602
6607
|
function Survey(props) {
|
|
@@ -6675,7 +6680,7 @@ var Survey = /** @class */ (function (_super) {
|
|
|
6675
6680
|
renderResult = this.renderSurvey();
|
|
6676
6681
|
}
|
|
6677
6682
|
var backgroundImage = !!this.survey.backgroundImage ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.rootBackgroundImage, style: this.survey.backgroundImageStyle }) : null;
|
|
6678
|
-
var header = this.survey.headerView === "basic" ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6683
|
+
var header = this.survey.headerView === "basic" ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_3__.SurveyHeader, { survey: this.survey }) : null;
|
|
6679
6684
|
var onSubmit = function (event) {
|
|
6680
6685
|
event.preventDefault();
|
|
6681
6686
|
};
|
|
@@ -6686,20 +6691,20 @@ var Survey = /** @class */ (function (_super) {
|
|
|
6686
6691
|
var rootCss = this.survey.getRootCss();
|
|
6687
6692
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
|
6688
6693
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables, lang: this.survey.locale || "en", dir: this.survey.localeDir },
|
|
6689
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6690
|
-
this.survey.needRenderIcons ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6691
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6694
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_scroll__WEBPACK_IMPORTED_MODULE_13__.Scroll, { disabled: this.survey.rootScrollDisabled },
|
|
6695
|
+
this.survey.needRenderIcons ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svgbundle__WEBPACK_IMPORTED_MODULE_9__.SvgBundleComponent, null) : null,
|
|
6696
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_10__.PopupModal, null),
|
|
6692
6697
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.survey.wrapperFormCss },
|
|
6693
6698
|
backgroundImage,
|
|
6694
6699
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("form", { onSubmit: onSubmit },
|
|
6695
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6700
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_scroll__WEBPACK_IMPORTED_MODULE_13__.Scroll, { disabled: this.survey.formScrollDisabled },
|
|
6696
6701
|
customHeader,
|
|
6697
6702
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.container },
|
|
6698
6703
|
header,
|
|
6699
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6704
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "header", needRenderWrapper: false }),
|
|
6700
6705
|
renderResult,
|
|
6701
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6702
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6706
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "footer", needRenderWrapper: false })))),
|
|
6707
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_notifier__WEBPACK_IMPORTED_MODULE_7__.NotifierComponent, { notifier: this.survey.notifier })))));
|
|
6703
6708
|
};
|
|
6704
6709
|
Survey.prototype.renderElement = function () {
|
|
6705
6710
|
return this.doRender();
|
|
@@ -6720,7 +6725,7 @@ var Survey = /** @class */ (function (_super) {
|
|
|
6720
6725
|
var htmlValue = { __html: this.survey.processedCompletedHtml };
|
|
6721
6726
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
|
|
6722
6727
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { dangerouslySetInnerHTML: htmlValue, className: this.survey.completedCss }),
|
|
6723
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6728
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "completePage", needRenderWrapper: false })));
|
|
6724
6729
|
};
|
|
6725
6730
|
Survey.prototype.renderCompletedBefore = function () {
|
|
6726
6731
|
var htmlValue = { __html: this.survey.processedCompletedBeforeHtml };
|
|
@@ -6742,18 +6747,23 @@ var Survey = /** @class */ (function (_super) {
|
|
|
6742
6747
|
style.maxWidth = this.survey.renderedWidth;
|
|
6743
6748
|
}
|
|
6744
6749
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.survey.bodyContainerCss },
|
|
6745
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6750
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "left" }),
|
|
6746
6751
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "sv-components-column sv-components-column--expandable" },
|
|
6747
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6752
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "center" }),
|
|
6748
6753
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: pageId, className: className, style: style },
|
|
6749
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6754
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "contentTop" }),
|
|
6750
6755
|
activePage,
|
|
6751
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6752
|
-
this.survey.showBrandInfo ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6753
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
6756
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "contentBottom" }),
|
|
6757
|
+
this.survey.showBrandInfo ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_brand_info__WEBPACK_IMPORTED_MODULE_6__.BrandInfo, null) : null)),
|
|
6758
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "right" })));
|
|
6754
6759
|
};
|
|
6755
6760
|
Survey.prototype.renderPage = function (page) {
|
|
6756
|
-
return
|
|
6761
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement(this.survey.pageComponent || "sv-page", {
|
|
6762
|
+
survey: this.survey,
|
|
6763
|
+
page: page,
|
|
6764
|
+
css: this.css,
|
|
6765
|
+
creator: this,
|
|
6766
|
+
});
|
|
6757
6767
|
};
|
|
6758
6768
|
Survey.prototype.renderEmptySurvey = function () {
|
|
6759
6769
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.bodyEmpty }, this.survey.emptySurveyText);
|
|
@@ -6830,14 +6840,14 @@ var Survey = /** @class */ (function (_super) {
|
|
|
6830
6840
|
};
|
|
6831
6841
|
//ISurveyCreator
|
|
6832
6842
|
Survey.prototype.createQuestionElement = function (question) {
|
|
6833
|
-
return
|
|
6843
|
+
return _reactquestion_factory__WEBPACK_IMPORTED_MODULE_4__.ReactQuestionFactory.Instance.createQuestion(question.isDefaultRendering() ? question.getTemplate() : question.getComponentName(), {
|
|
6834
6844
|
question: question,
|
|
6835
6845
|
isDisplayMode: question.isInputReadOnly,
|
|
6836
6846
|
creator: this,
|
|
6837
6847
|
});
|
|
6838
6848
|
};
|
|
6839
6849
|
Survey.prototype.renderError = function (key, error, cssClasses, element) {
|
|
6840
|
-
return
|
|
6850
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement(this.survey.questionErrorComponent, { key: key, error: error, cssClasses: cssClasses, element: element });
|
|
6841
6851
|
};
|
|
6842
6852
|
Survey.prototype.questionTitleLocation = function () {
|
|
6843
6853
|
return this.survey.questionTitleLocation;
|
|
@@ -6846,9 +6856,9 @@ var Survey = /** @class */ (function (_super) {
|
|
|
6846
6856
|
return this.survey.questionErrorLocation;
|
|
6847
6857
|
};
|
|
6848
6858
|
return Survey;
|
|
6849
|
-
}(
|
|
6859
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
6850
6860
|
|
|
6851
|
-
|
|
6861
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.registerElement("survey", function (props) {
|
|
6852
6862
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Survey, props);
|
|
6853
6863
|
});
|
|
6854
6864
|
function attachKey2click(element, viewModel, options) {
|
|
@@ -9667,7 +9677,8 @@ var SurveyQuestionMatrixDynamicAddButton = /** @class */ (function (_super) {
|
|
|
9667
9677
|
var addRowText = this.renderLocString(this.matrix.locAddRowText);
|
|
9668
9678
|
var addButton = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: this.matrix.getAddRowButtonCss(this.props.isEmptySection), type: "button", disabled: this.matrix.isInputReadOnly, onClick: this.matrix.isDesignMode ? undefined : this.handleOnRowAddClick },
|
|
9669
9679
|
addRowText,
|
|
9670
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.props.cssClasses.iconAdd }
|
|
9680
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.props.cssClasses.iconAdd }, this.cssClasses.iconAddId && react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", null,
|
|
9681
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("use", { xlinkHref: this.cssClasses.iconAddId })))));
|
|
9671
9682
|
return (this.props.isEmptySection ? addButton : react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.props.cssClasses.footer }, addButton));
|
|
9672
9683
|
};
|
|
9673
9684
|
return SurveyQuestionMatrixDynamicAddButton;
|
|
@@ -12144,7 +12155,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12144
12155
|
|
|
12145
12156
|
|
|
12146
12157
|
|
|
12147
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.3.
|
|
12158
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.3.9"), "survey-react-ui");
|
|
12148
12159
|
|
|
12149
12160
|
})();
|
|
12150
12161
|
|