survey-js-ui 2.3.7 → 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-js-ui.mjs +1338 -1325
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +65 -52
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +1 -1
- package/survey-js-ui.min.js.LICENSE.txt +1 -1
- package/typings/survey-react-ui/src/components/list/list-item.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-js-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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"survey-core": "2.3.
|
|
34
|
+
"survey-core": "2.3.9",
|
|
35
35
|
"@types/react-dom": "*",
|
|
36
36
|
"@types/react": "*"
|
|
37
37
|
}
|
package/survey-js-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
|
*/
|
|
@@ -23,7 +23,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
23
23
|
/***/ (function(module) {
|
|
24
24
|
|
|
25
25
|
/*!
|
|
26
|
-
* surveyjs - Survey JavaScript library v2.3.
|
|
26
|
+
* surveyjs - Survey JavaScript library v2.3.9
|
|
27
27
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
28
28
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
29
29
|
*/
|
|
@@ -830,7 +830,7 @@ path.keys().forEach(function (key) {
|
|
|
830
830
|
/***/ (function(module) {
|
|
831
831
|
|
|
832
832
|
/*!
|
|
833
|
-
* surveyjs - Survey JavaScript library v2.3.
|
|
833
|
+
* surveyjs - Survey JavaScript library v2.3.9
|
|
834
834
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
835
835
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
836
836
|
*/
|
|
@@ -3504,11 +3504,12 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
3504
3504
|
|
|
3505
3505
|
var ListItem = /** @class */ (function (_super) {
|
|
3506
3506
|
__extends(ListItem, _super);
|
|
3507
|
-
function ListItem() {
|
|
3508
|
-
var _this = _super
|
|
3507
|
+
function ListItem(props) {
|
|
3508
|
+
var _this = _super.call(this, props) || this;
|
|
3509
3509
|
_this.handleKeydown = function (event) {
|
|
3510
3510
|
_this.model.onKeyDown(event);
|
|
3511
3511
|
};
|
|
3512
|
+
_this.elementRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
|
|
3512
3513
|
return _this;
|
|
3513
3514
|
}
|
|
3514
3515
|
Object.defineProperty(ListItem.prototype, "model", {
|
|
@@ -3535,7 +3536,7 @@ var ListItem = /** @class */ (function (_super) {
|
|
|
3535
3536
|
var className = this.model.getItemClass(this.item);
|
|
3536
3537
|
var itemContent = this.item.component || this.model.itemComponent;
|
|
3537
3538
|
var newElement = _element_factory__WEBPACK_IMPORTED_MODULE_1__.ReactElementFactory.Instance.createElement(itemContent, { item: this.item, key: this.item.id, model: this.model });
|
|
3538
|
-
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);
|
|
3539
|
+
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);
|
|
3539
3540
|
var separator = this.item.needSeparator ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.model.cssClasses.itemSeparator }) : null;
|
|
3540
3541
|
var isVisible = this.model.isItemVisible(this.item);
|
|
3541
3542
|
var style = {
|
|
@@ -3549,8 +3550,9 @@ var ListItem = /** @class */ (function (_super) {
|
|
|
3549
3550
|
contentWrap), this.item);
|
|
3550
3551
|
};
|
|
3551
3552
|
ListItem.prototype.componentDidMount = function () {
|
|
3553
|
+
var _a;
|
|
3552
3554
|
_super.prototype.componentDidMount.call(this);
|
|
3553
|
-
this.model.
|
|
3555
|
+
this.model.onItemRended(this.item, (_a = this.elementRef) === null || _a === void 0 ? void 0 : _a.current);
|
|
3554
3556
|
};
|
|
3555
3557
|
return ListItem;
|
|
3556
3558
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
@@ -4816,10 +4818,12 @@ var QuestionErrorComponent = /** @class */ (function (_super) {
|
|
|
4816
4818
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4817
4819
|
}
|
|
4818
4820
|
QuestionErrorComponent.prototype.render = function () {
|
|
4821
|
+
var error = this.props.error;
|
|
4822
|
+
var classes = this.props.cssClasses;
|
|
4819
4823
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null,
|
|
4820
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className:
|
|
4824
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: error.getCssIcon(classes), "aria-hidden": "true" }),
|
|
4821
4825
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.props.cssClasses.error.item || undefined },
|
|
4822
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_string_viewer__WEBPACK_IMPORTED_MODULE_2__.SurveyLocStringViewer, { locStr:
|
|
4826
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_string_viewer__WEBPACK_IMPORTED_MODULE_2__.SurveyLocStringViewer, { locStr: error.locText }))));
|
|
4823
4827
|
};
|
|
4824
4828
|
return QuestionErrorComponent;
|
|
4825
4829
|
}(react__WEBPACK_IMPORTED_MODULE_0__.Component));
|
|
@@ -7111,6 +7115,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7111
7115
|
/* harmony import */ var _panel_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./panel-base */ "../survey-react-ui/src/panel-base.tsx");
|
|
7112
7116
|
/* harmony import */ var _components_title_title_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/title/title-element */ "../survey-react-ui/src/components/title/title-element.tsx");
|
|
7113
7117
|
/* harmony import */ var _reactquestion__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion */ "../survey-react-ui/src/reactquestion.tsx");
|
|
7118
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
7114
7119
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
7115
7120
|
var extendStatics = function (d, b) {
|
|
7116
7121
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -7131,6 +7136,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
7131
7136
|
|
|
7132
7137
|
|
|
7133
7138
|
|
|
7139
|
+
|
|
7134
7140
|
var SurveyPage = /** @class */ (function (_super) {
|
|
7135
7141
|
__extends(SurveyPage, _super);
|
|
7136
7142
|
function SurveyPage(props) {
|
|
@@ -7169,6 +7175,9 @@ var SurveyPage = /** @class */ (function (_super) {
|
|
|
7169
7175
|
return SurveyPage;
|
|
7170
7176
|
}(_panel_base__WEBPACK_IMPORTED_MODULE_2__.SurveyPanelBase));
|
|
7171
7177
|
|
|
7178
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.registerElement("sv-page", function (props) {
|
|
7179
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyPage, props);
|
|
7180
|
+
});
|
|
7172
7181
|
|
|
7173
7182
|
|
|
7174
7183
|
/***/ }),
|
|
@@ -7977,21 +7986,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7977
7986
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
|
|
7978
7987
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
7979
7988
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
7980
|
-
/* harmony import */ var
|
|
7981
|
-
/* harmony import */ var
|
|
7982
|
-
/* harmony import */ var
|
|
7983
|
-
/* harmony import */ var
|
|
7984
|
-
/* harmony import */ var
|
|
7985
|
-
/* harmony import */ var
|
|
7986
|
-
/* harmony import */ var
|
|
7987
|
-
/* harmony import */ var
|
|
7988
|
-
/* harmony import */ var
|
|
7989
|
-
/* harmony import */ var
|
|
7990
|
-
/* harmony import */ var
|
|
7991
|
-
/* harmony import */ var
|
|
7992
|
-
/* harmony import */ var
|
|
7993
|
-
/* harmony import */ var
|
|
7994
|
-
/* harmony import */ var _components_scroll__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/scroll */ "../survey-react-ui/src/components/scroll.tsx");
|
|
7989
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
|
|
7990
|
+
/* harmony import */ var _components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/survey-header/survey-header */ "../survey-react-ui/src/components/survey-header/survey-header.tsx");
|
|
7991
|
+
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_factory */ "../survey-react-ui/src/reactquestion_factory.tsx");
|
|
7992
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
7993
|
+
/* harmony import */ var _components_brand_info__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/brand-info */ "../survey-react-ui/src/components/brand-info.tsx");
|
|
7994
|
+
/* harmony import */ var _components_notifier__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/notifier */ "../survey-react-ui/src/components/notifier.tsx");
|
|
7995
|
+
/* harmony import */ var _components_components_container__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/components-container */ "../survey-react-ui/src/components/components-container.tsx");
|
|
7996
|
+
/* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./svgbundle */ "../survey-react-ui/src/svgbundle.tsx");
|
|
7997
|
+
/* harmony import */ var _components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/popup/popup-modal */ "../survey-react-ui/src/components/popup/popup-modal.tsx");
|
|
7998
|
+
/* harmony import */ var survey_core_icons_iconsV1__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! survey-core/icons/iconsV1 */ "../survey-core/build/icons/iconsV1.js");
|
|
7999
|
+
/* harmony import */ var survey_core_icons_iconsV1__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(survey_core_icons_iconsV1__WEBPACK_IMPORTED_MODULE_11__);
|
|
8000
|
+
/* harmony import */ var survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! survey-core/icons/iconsV2 */ "../survey-core/build/icons/iconsV2.js");
|
|
8001
|
+
/* harmony import */ var survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_12__);
|
|
8002
|
+
/* harmony import */ var _components_scroll__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/scroll */ "../survey-react-ui/src/components/scroll.tsx");
|
|
7995
8003
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
7996
8004
|
var extendStatics = function (d, b) {
|
|
7997
8005
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -8032,10 +8040,9 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
8032
8040
|
|
|
8033
8041
|
|
|
8034
8042
|
|
|
8035
|
-
|
|
8036
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("
|
|
8037
|
-
|
|
8038
|
-
survey_core__WEBPACK_IMPORTED_MODULE_1__.SvgRegistry.registerIcons(survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_13__.icons);
|
|
8043
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("v1", survey_core_icons_iconsV1__WEBPACK_IMPORTED_MODULE_11__.icons);
|
|
8044
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("v2", survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_12__.icons);
|
|
8045
|
+
survey_core__WEBPACK_IMPORTED_MODULE_1__.SvgRegistry.registerIcons(survey_core_icons_iconsV2__WEBPACK_IMPORTED_MODULE_12__.icons);
|
|
8039
8046
|
var Survey = /** @class */ (function (_super) {
|
|
8040
8047
|
__extends(Survey, _super);
|
|
8041
8048
|
function Survey(props) {
|
|
@@ -8114,7 +8121,7 @@ var Survey = /** @class */ (function (_super) {
|
|
|
8114
8121
|
renderResult = this.renderSurvey();
|
|
8115
8122
|
}
|
|
8116
8123
|
var backgroundImage = !!this.survey.backgroundImage ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.rootBackgroundImage, style: this.survey.backgroundImageStyle }) : null;
|
|
8117
|
-
var header = this.survey.headerView === "basic" ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8124
|
+
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;
|
|
8118
8125
|
var onSubmit = function (event) {
|
|
8119
8126
|
event.preventDefault();
|
|
8120
8127
|
};
|
|
@@ -8125,20 +8132,20 @@ var Survey = /** @class */ (function (_super) {
|
|
|
8125
8132
|
var rootCss = this.survey.getRootCss();
|
|
8126
8133
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
|
8127
8134
|
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 },
|
|
8128
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8129
|
-
this.survey.needRenderIcons ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8130
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8135
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_scroll__WEBPACK_IMPORTED_MODULE_13__.Scroll, { disabled: this.survey.rootScrollDisabled },
|
|
8136
|
+
this.survey.needRenderIcons ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svgbundle__WEBPACK_IMPORTED_MODULE_9__.SvgBundleComponent, null) : null,
|
|
8137
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_popup_popup_modal__WEBPACK_IMPORTED_MODULE_10__.PopupModal, null),
|
|
8131
8138
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.survey.wrapperFormCss },
|
|
8132
8139
|
backgroundImage,
|
|
8133
8140
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("form", { onSubmit: onSubmit },
|
|
8134
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8141
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_scroll__WEBPACK_IMPORTED_MODULE_13__.Scroll, { disabled: this.survey.formScrollDisabled },
|
|
8135
8142
|
customHeader,
|
|
8136
8143
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.container },
|
|
8137
8144
|
header,
|
|
8138
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8145
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "header", needRenderWrapper: false }),
|
|
8139
8146
|
renderResult,
|
|
8140
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8141
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8147
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "footer", needRenderWrapper: false })))),
|
|
8148
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_notifier__WEBPACK_IMPORTED_MODULE_7__.NotifierComponent, { notifier: this.survey.notifier })))));
|
|
8142
8149
|
};
|
|
8143
8150
|
Survey.prototype.renderElement = function () {
|
|
8144
8151
|
return this.doRender();
|
|
@@ -8159,7 +8166,7 @@ var Survey = /** @class */ (function (_super) {
|
|
|
8159
8166
|
var htmlValue = { __html: this.survey.processedCompletedHtml };
|
|
8160
8167
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
|
|
8161
8168
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { dangerouslySetInnerHTML: htmlValue, className: this.survey.completedCss }),
|
|
8162
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8169
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "completePage", needRenderWrapper: false })));
|
|
8163
8170
|
};
|
|
8164
8171
|
Survey.prototype.renderCompletedBefore = function () {
|
|
8165
8172
|
var htmlValue = { __html: this.survey.processedCompletedBeforeHtml };
|
|
@@ -8181,18 +8188,23 @@ var Survey = /** @class */ (function (_super) {
|
|
|
8181
8188
|
style.maxWidth = this.survey.renderedWidth;
|
|
8182
8189
|
}
|
|
8183
8190
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.survey.bodyContainerCss },
|
|
8184
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8191
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "left" }),
|
|
8185
8192
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "sv-components-column sv-components-column--expandable" },
|
|
8186
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8193
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "center" }),
|
|
8187
8194
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: pageId, className: className, style: style },
|
|
8188
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8195
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "contentTop" }),
|
|
8189
8196
|
activePage,
|
|
8190
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8191
|
-
this.survey.showBrandInfo ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8192
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8197
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "contentBottom" }),
|
|
8198
|
+
this.survey.showBrandInfo ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_brand_info__WEBPACK_IMPORTED_MODULE_6__.BrandInfo, null) : null)),
|
|
8199
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_components_container__WEBPACK_IMPORTED_MODULE_8__.ComponentsContainer, { survey: this.survey, container: "right" })));
|
|
8193
8200
|
};
|
|
8194
8201
|
Survey.prototype.renderPage = function (page) {
|
|
8195
|
-
return
|
|
8202
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement(this.survey.pageComponent || "sv-page", {
|
|
8203
|
+
survey: this.survey,
|
|
8204
|
+
page: page,
|
|
8205
|
+
css: this.css,
|
|
8206
|
+
creator: this,
|
|
8207
|
+
});
|
|
8196
8208
|
};
|
|
8197
8209
|
Survey.prototype.renderEmptySurvey = function () {
|
|
8198
8210
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.bodyEmpty }, this.survey.emptySurveyText);
|
|
@@ -8269,14 +8281,14 @@ var Survey = /** @class */ (function (_super) {
|
|
|
8269
8281
|
};
|
|
8270
8282
|
//ISurveyCreator
|
|
8271
8283
|
Survey.prototype.createQuestionElement = function (question) {
|
|
8272
|
-
return
|
|
8284
|
+
return _reactquestion_factory__WEBPACK_IMPORTED_MODULE_4__.ReactQuestionFactory.Instance.createQuestion(question.isDefaultRendering() ? question.getTemplate() : question.getComponentName(), {
|
|
8273
8285
|
question: question,
|
|
8274
8286
|
isDisplayMode: question.isInputReadOnly,
|
|
8275
8287
|
creator: this,
|
|
8276
8288
|
});
|
|
8277
8289
|
};
|
|
8278
8290
|
Survey.prototype.renderError = function (key, error, cssClasses, element) {
|
|
8279
|
-
return
|
|
8291
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement(this.survey.questionErrorComponent, { key: key, error: error, cssClasses: cssClasses, element: element });
|
|
8280
8292
|
};
|
|
8281
8293
|
Survey.prototype.questionTitleLocation = function () {
|
|
8282
8294
|
return this.survey.questionTitleLocation;
|
|
@@ -8285,9 +8297,9 @@ var Survey = /** @class */ (function (_super) {
|
|
|
8285
8297
|
return this.survey.questionErrorLocation;
|
|
8286
8298
|
};
|
|
8287
8299
|
return Survey;
|
|
8288
|
-
}(
|
|
8300
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
8289
8301
|
|
|
8290
|
-
|
|
8302
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.registerElement("survey", function (props) {
|
|
8291
8303
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Survey, props);
|
|
8292
8304
|
});
|
|
8293
8305
|
function attachKey2click(element, viewModel, options) {
|
|
@@ -8642,9 +8654,9 @@ var SurveyElementErrors = /** @class */ (function (_super) {
|
|
|
8642
8654
|
};
|
|
8643
8655
|
SurveyElementErrors.prototype.renderElement = function () {
|
|
8644
8656
|
var errors = [];
|
|
8645
|
-
for (var i = 0; i < this.element.
|
|
8657
|
+
for (var i = 0; i < this.element.renderedErrors.length; i++) {
|
|
8646
8658
|
var key = "error" + i;
|
|
8647
|
-
errors.push(this.creator.renderError(key, this.element.
|
|
8659
|
+
errors.push(this.creator.renderError(key, this.element.renderedErrors[i], this.cssClasses, this.element));
|
|
8648
8660
|
}
|
|
8649
8661
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.element.cssError, id: this.id }, errors));
|
|
8650
8662
|
};
|
|
@@ -11107,7 +11119,8 @@ var SurveyQuestionMatrixDynamicAddButton = /** @class */ (function (_super) {
|
|
|
11107
11119
|
var addRowText = this.renderLocString(this.matrix.locAddRowText);
|
|
11108
11120
|
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 },
|
|
11109
11121
|
addRowText,
|
|
11110
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.props.cssClasses.iconAdd }
|
|
11122
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.props.cssClasses.iconAdd }, this.cssClasses.iconAddId && react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", null,
|
|
11123
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("use", { xlinkHref: this.cssClasses.iconAddId })))));
|
|
11111
11124
|
return (this.props.isEmptySection ? addButton : react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.props.cssClasses.footer }, addButton));
|
|
11112
11125
|
};
|
|
11113
11126
|
return SurveyQuestionMatrixDynamicAddButton;
|
|
@@ -13816,7 +13829,7 @@ var preact = react__WEBPACK_IMPORTED_MODULE_0__;
|
|
|
13816
13829
|
|
|
13817
13830
|
|
|
13818
13831
|
|
|
13819
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.3.
|
|
13832
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.3.9"), "survey-js-ui");
|
|
13820
13833
|
|
|
13821
13834
|
})();
|
|
13822
13835
|
|