survey-react-ui 1.9.120 → 1.9.121
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.121",
|
|
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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"typings": "survey-react-ui.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"survey-core": "1.9.
|
|
24
|
+
"survey-core": "1.9.121",
|
|
25
25
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
26
26
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
27
27
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.121
|
|
3
3
|
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -1991,7 +1991,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1991
1991
|
/*!***************************************!*\
|
|
1992
1992
|
!*** ./src/entries/react-ui-model.ts ***!
|
|
1993
1993
|
\***************************************/
|
|
1994
|
-
/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, RatingDropdownItem, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent */
|
|
1994
|
+
/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, RatingDropdownItem, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SvgBundleComponent */
|
|
1995
1995
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1996
1996
|
|
|
1997
1997
|
"use strict";
|
|
@@ -2268,6 +2268,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2268
2268
|
/* harmony import */ var _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../react/components/loading-indicator */ "./src/react/components/loading-indicator.tsx");
|
|
2269
2269
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_79__["LoadingIndicatorComponent"]; });
|
|
2270
2270
|
|
|
2271
|
+
/* harmony import */ var _react_svgbundle__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../react/svgbundle */ "./src/react/svgbundle.tsx");
|
|
2272
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SvgBundleComponent", function() { return _react_svgbundle__WEBPACK_IMPORTED_MODULE_80__["SvgBundleComponent"]; });
|
|
2273
|
+
|
|
2271
2274
|
// react
|
|
2272
2275
|
|
|
2273
2276
|
|
|
@@ -2347,6 +2350,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2347
2350
|
|
|
2348
2351
|
|
|
2349
2352
|
|
|
2353
|
+
|
|
2350
2354
|
|
|
2351
2355
|
|
|
2352
2356
|
//Uncomment to include the "date" question type.
|
|
@@ -2359,7 +2363,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2359
2363
|
/*!*********************************!*\
|
|
2360
2364
|
!*** ./src/entries/react-ui.ts ***!
|
|
2361
2365
|
\*********************************/
|
|
2362
|
-
/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, RatingDropdownItem, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SurveyModel, SurveyWindowModel, settings, surveyLocalization, surveyStrings, Model, ResponsivityManager, VerticalResponsivityManager, unwrap */
|
|
2366
|
+
/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, RatingDropdownItem, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SvgBundleComponent, SurveyModel, SurveyWindowModel, settings, surveyLocalization, surveyStrings, Model, ResponsivityManager, VerticalResponsivityManager, unwrap */
|
|
2363
2367
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2364
2368
|
|
|
2365
2369
|
"use strict";
|
|
@@ -2557,6 +2561,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2557
2561
|
|
|
2558
2562
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_0__["LoadingIndicatorComponent"]; });
|
|
2559
2563
|
|
|
2564
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SvgBundleComponent", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_0__["SvgBundleComponent"]; });
|
|
2565
|
+
|
|
2560
2566
|
/* harmony import */ var _core_export__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./core-export */ "./src/entries/core-export.ts");
|
|
2561
2567
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyModel", function() { return _core_export__WEBPACK_IMPORTED_MODULE_1__["SurveyModel"]; });
|
|
2562
2568
|
|
|
@@ -2586,7 +2592,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2586
2592
|
|
|
2587
2593
|
|
|
2588
2594
|
|
|
2589
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.
|
|
2595
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.121", "survey-react-ui");
|
|
2590
2596
|
|
|
2591
2597
|
|
|
2592
2598
|
/***/ }),
|
|
@@ -10408,7 +10414,7 @@ var SurveyActionBar = /** @class */ (function (_super) {
|
|
|
10408
10414
|
return;
|
|
10409
10415
|
var container = this.rootRef.current;
|
|
10410
10416
|
if (!!container) {
|
|
10411
|
-
this.model.initResponsivityManager(container);
|
|
10417
|
+
this.model.initResponsivityManager(container, function (callback) { setTimeout(callback); });
|
|
10412
10418
|
}
|
|
10413
10419
|
};
|
|
10414
10420
|
SurveyActionBar.prototype.componentWillUnmount = function () {
|
|
@@ -10816,7 +10822,7 @@ var HeaderMobile = /** @class */ (function (_super) {
|
|
|
10816
10822
|
this.model.survey.hasTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__title", style: { maxWidth: this.model.textAreaWidth } },
|
|
10817
10823
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_title_title_element__WEBPACK_IMPORTED_MODULE_3__["TitleElement"], { element: this.model.survey }))) : null,
|
|
10818
10824
|
this.model.survey.renderedHasDescription ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__description", style: { maxWidth: this.model.textAreaWidth } },
|
|
10819
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("
|
|
10825
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.survey.css.description }, _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"].renderLocString(this.model.survey.locDescription)))) : null));
|
|
10820
10826
|
};
|
|
10821
10827
|
return HeaderMobile;
|
|
10822
10828
|
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
|
@@ -10847,7 +10853,7 @@ var HeaderCell = /** @class */ (function (_super) {
|
|
|
10847
10853
|
this.model.showTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__title", style: { maxWidth: this.model.textAreaWidth } },
|
|
10848
10854
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_title_title_element__WEBPACK_IMPORTED_MODULE_3__["TitleElement"], { element: this.model.survey }))) : null,
|
|
10849
10855
|
this.model.showDescription ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__description", style: { maxWidth: this.model.textAreaWidth } },
|
|
10850
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("
|
|
10856
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.survey.css.description }, _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"].renderLocString(this.model.survey.locDescription)))) : null)));
|
|
10851
10857
|
};
|
|
10852
10858
|
return HeaderCell;
|
|
10853
10859
|
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
|
@@ -12604,7 +12610,7 @@ var SurveyHeader = /** @class */ (function (_super) {
|
|
|
12604
12610
|
var description = _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"].renderLocString(this.survey.locDescription);
|
|
12605
12611
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.css.headerText, style: { maxWidth: this.survey.titleMaxWidth } },
|
|
12606
12612
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_title_title_element__WEBPACK_IMPORTED_MODULE_3__["TitleElement"], { element: this.survey }),
|
|
12607
|
-
this.survey.renderedHasDescription ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("
|
|
12613
|
+
this.survey.renderedHasDescription ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.css.description }, description) : null));
|
|
12608
12614
|
};
|
|
12609
12615
|
SurveyHeader.prototype.renderLogoImage = function (isRender) {
|
|
12610
12616
|
if (!isRender)
|
|
@@ -14619,6 +14625,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14619
14625
|
/* harmony import */ var _components_brand_info__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/brand-info */ "./src/react/components/brand-info.tsx");
|
|
14620
14626
|
/* harmony import */ var _components_notifier__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/notifier */ "./src/react/components/notifier.tsx");
|
|
14621
14627
|
/* harmony import */ var _components_components_container__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/components-container */ "./src/react/components/components-container.tsx");
|
|
14628
|
+
/* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./svgbundle */ "./src/react/svgbundle.tsx");
|
|
14622
14629
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
14623
14630
|
var extendStatics = function (d, b) {
|
|
14624
14631
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -14656,6 +14663,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
14656
14663
|
|
|
14657
14664
|
|
|
14658
14665
|
|
|
14666
|
+
|
|
14659
14667
|
var Survey = /** @class */ (function (_super) {
|
|
14660
14668
|
__extends(Survey, _super);
|
|
14661
14669
|
function Survey(props) {
|
|
@@ -14726,9 +14734,6 @@ var Survey = /** @class */ (function (_super) {
|
|
|
14726
14734
|
this.destroySurvey();
|
|
14727
14735
|
};
|
|
14728
14736
|
Survey.prototype.doRender = function () {
|
|
14729
|
-
if (this.survey["needRenderIcons"]) {
|
|
14730
|
-
survey_core__WEBPACK_IMPORTED_MODULE_1__["SvgRegistry"].renderIcons();
|
|
14731
|
-
}
|
|
14732
14737
|
var renderResult;
|
|
14733
14738
|
if (this.survey.state == "completed") {
|
|
14734
14739
|
renderResult = this.renderCompleted();
|
|
@@ -14757,6 +14762,7 @@ var Survey = /** @class */ (function (_super) {
|
|
|
14757
14762
|
var rootCss = this.survey.getRootCss();
|
|
14758
14763
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
|
14759
14764
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables },
|
|
14765
|
+
this.survey.needRenderIcons ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_svgbundle__WEBPACK_IMPORTED_MODULE_11__["SvgBundleComponent"], null) : null,
|
|
14760
14766
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.survey.wrapperFormCss },
|
|
14761
14767
|
backgroundImage,
|
|
14762
14768
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("form", { onSubmit: onSubmit },
|
|
@@ -17988,8 +17994,13 @@ var SurveyMultipleTextItem = /** @class */ (function (_super) {
|
|
|
17988
17994
|
SurveyMultipleTextItem.prototype.renderElement = function () {
|
|
17989
17995
|
var item = this.item;
|
|
17990
17996
|
var cssClasses = this.cssClasses;
|
|
17997
|
+
var titleStyle = {};
|
|
17998
|
+
if (!!this.question.itemTitleWidth) {
|
|
17999
|
+
titleStyle.minWidth = this.question.itemTitleWidth;
|
|
18000
|
+
titleStyle.width = this.question.itemTitleWidth;
|
|
18001
|
+
}
|
|
17991
18002
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: this.question.getItemLabelCss(item) },
|
|
17992
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.itemTitle },
|
|
18003
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.itemTitle, style: titleStyle },
|
|
17993
18004
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_title_title_content__WEBPACK_IMPORTED_MODULE_4__["TitleContent"], { element: item.editor, cssClasses: item.editor.cssClasses })),
|
|
17994
18005
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyMultipleTextItemEditor, { cssClasses: cssClasses, itemCss: this.question.getItemCss(), question: item.editor, creator: this.creator })));
|
|
17995
18006
|
};
|
|
@@ -19547,6 +19558,62 @@ _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.re
|
|
|
19547
19558
|
});
|
|
19548
19559
|
|
|
19549
19560
|
|
|
19561
|
+
/***/ }),
|
|
19562
|
+
|
|
19563
|
+
/***/ "./src/react/svgbundle.tsx":
|
|
19564
|
+
/*!*********************************!*\
|
|
19565
|
+
!*** ./src/react/svgbundle.tsx ***!
|
|
19566
|
+
\*********************************/
|
|
19567
|
+
/*! exports provided: SvgBundleComponent */
|
|
19568
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19569
|
+
|
|
19570
|
+
"use strict";
|
|
19571
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19572
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgBundleComponent", function() { return SvgBundleComponent; });
|
|
19573
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
19574
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
19575
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
19576
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
19577
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
19578
|
+
var extendStatics = function (d, b) {
|
|
19579
|
+
extendStatics = Object.setPrototypeOf ||
|
|
19580
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19581
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19582
|
+
return extendStatics(d, b);
|
|
19583
|
+
};
|
|
19584
|
+
return function (d, b) {
|
|
19585
|
+
if (typeof b !== "function" && b !== null)
|
|
19586
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
19587
|
+
extendStatics(d, b);
|
|
19588
|
+
function __() { this.constructor = d; }
|
|
19589
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19590
|
+
};
|
|
19591
|
+
})();
|
|
19592
|
+
|
|
19593
|
+
|
|
19594
|
+
var SvgBundleComponent = /** @class */ (function (_super) {
|
|
19595
|
+
__extends(SvgBundleComponent, _super);
|
|
19596
|
+
function SvgBundleComponent(props) {
|
|
19597
|
+
var _this = _super.call(this, props) || this;
|
|
19598
|
+
_this.containerRef = react__WEBPACK_IMPORTED_MODULE_0___default.a.createRef();
|
|
19599
|
+
return _this;
|
|
19600
|
+
}
|
|
19601
|
+
SvgBundleComponent.prototype.componentDidMount = function () {
|
|
19602
|
+
if (!!this.containerRef.current) {
|
|
19603
|
+
this.containerRef.current.innerHTML = survey_core__WEBPACK_IMPORTED_MODULE_1__["SvgRegistry"].iconsRenderedHtml();
|
|
19604
|
+
}
|
|
19605
|
+
};
|
|
19606
|
+
SvgBundleComponent.prototype.render = function () {
|
|
19607
|
+
var svgStyle = {
|
|
19608
|
+
display: "none"
|
|
19609
|
+
};
|
|
19610
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg", { style: svgStyle, id: "sv-icon-holder-global-container", ref: this.containerRef });
|
|
19611
|
+
};
|
|
19612
|
+
return SvgBundleComponent;
|
|
19613
|
+
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
|
19614
|
+
|
|
19615
|
+
|
|
19616
|
+
|
|
19550
19617
|
/***/ }),
|
|
19551
19618
|
|
|
19552
19619
|
/***/ "./src/react/tagbox-filter.tsx":
|
|
@@ -20611,13 +20678,14 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
20611
20678
|
})();
|
|
20612
20679
|
|
|
20613
20680
|
var ResponsivityManager = /** @class */ (function () {
|
|
20614
|
-
function ResponsivityManager(container, model, itemsSelector, dotsItemSize) {
|
|
20681
|
+
function ResponsivityManager(container, model, itemsSelector, dotsItemSize, delayedUpdateFunction) {
|
|
20615
20682
|
var _this = this;
|
|
20616
20683
|
if (dotsItemSize === void 0) { dotsItemSize = null; }
|
|
20617
20684
|
this.container = container;
|
|
20618
20685
|
this.model = model;
|
|
20619
20686
|
this.itemsSelector = itemsSelector;
|
|
20620
20687
|
this.dotsItemSize = dotsItemSize;
|
|
20688
|
+
this.delayedUpdateFunction = delayedUpdateFunction;
|
|
20621
20689
|
this.resizeObserver = undefined;
|
|
20622
20690
|
this.isInitialized = false;
|
|
20623
20691
|
this.minDimensionConst = 56;
|
|
@@ -20668,6 +20736,16 @@ var ResponsivityManager = /** @class */ (function () {
|
|
|
20668
20736
|
(currentAction.needSeparator ? this.separatorSize : 0)
|
|
20669
20737
|
: currentAction.maxDimension;
|
|
20670
20738
|
};
|
|
20739
|
+
ResponsivityManager.prototype.getRenderedVisibleActionsCount = function () {
|
|
20740
|
+
var _this = this;
|
|
20741
|
+
var count = 0;
|
|
20742
|
+
this.container.querySelectorAll(this.itemsSelector).forEach(function (item) {
|
|
20743
|
+
if (_this.calcItemSize(item) > 0) {
|
|
20744
|
+
count++;
|
|
20745
|
+
}
|
|
20746
|
+
});
|
|
20747
|
+
return count;
|
|
20748
|
+
};
|
|
20671
20749
|
ResponsivityManager.prototype.calcItemsSizes = function () {
|
|
20672
20750
|
var _this = this;
|
|
20673
20751
|
var actions = this.model.actions;
|
|
@@ -20693,18 +20771,8 @@ var ResponsivityManager = /** @class */ (function () {
|
|
|
20693
20771
|
if (this.isContainerVisible && !this.model.isResponsivenessDisabled) {
|
|
20694
20772
|
if (!this.isInitialized) {
|
|
20695
20773
|
this.model.setActionsMode("large");
|
|
20696
|
-
var recalcItemSizes = function () {
|
|
20697
|
-
_this.calcItemsSizes();
|
|
20698
|
-
_this.isInitialized = true;
|
|
20699
|
-
};
|
|
20700
|
-
if (queueMicrotask) {
|
|
20701
|
-
queueMicrotask(recalcItemSizes);
|
|
20702
|
-
}
|
|
20703
|
-
else {
|
|
20704
|
-
recalcItemSizes();
|
|
20705
|
-
}
|
|
20706
20774
|
}
|
|
20707
|
-
var
|
|
20775
|
+
var processResponsiveness_1 = function () {
|
|
20708
20776
|
var _a;
|
|
20709
20777
|
var dotsItemSize = _this.dotsItemSize;
|
|
20710
20778
|
if (!_this.dotsItemSize) {
|
|
@@ -20713,11 +20781,29 @@ var ResponsivityManager = /** @class */ (function () {
|
|
|
20713
20781
|
}
|
|
20714
20782
|
_this.model.fit(_this.getAvailableSpace(), dotsItemSize);
|
|
20715
20783
|
};
|
|
20716
|
-
if (
|
|
20717
|
-
|
|
20784
|
+
if (!this.isInitialized) {
|
|
20785
|
+
var callback = function () {
|
|
20786
|
+
_this.calcItemsSizes();
|
|
20787
|
+
_this.isInitialized = true;
|
|
20788
|
+
processResponsiveness_1();
|
|
20789
|
+
};
|
|
20790
|
+
if (this.getRenderedVisibleActionsCount() < this.model.visibleActions.length) {
|
|
20791
|
+
if (this.delayedUpdateFunction) {
|
|
20792
|
+
this.delayedUpdateFunction(callback);
|
|
20793
|
+
}
|
|
20794
|
+
else if (queueMicrotask) {
|
|
20795
|
+
queueMicrotask(callback);
|
|
20796
|
+
}
|
|
20797
|
+
else {
|
|
20798
|
+
callback();
|
|
20799
|
+
}
|
|
20800
|
+
}
|
|
20801
|
+
else {
|
|
20802
|
+
callback();
|
|
20803
|
+
}
|
|
20718
20804
|
}
|
|
20719
20805
|
else {
|
|
20720
|
-
|
|
20806
|
+
processResponsiveness_1();
|
|
20721
20807
|
}
|
|
20722
20808
|
}
|
|
20723
20809
|
};
|
|
@@ -20732,9 +20818,9 @@ var ResponsivityManager = /** @class */ (function () {
|
|
|
20732
20818
|
|
|
20733
20819
|
var VerticalResponsivityManager = /** @class */ (function (_super) {
|
|
20734
20820
|
__extends(VerticalResponsivityManager, _super);
|
|
20735
|
-
function VerticalResponsivityManager(container, model, itemsSelector, dotsItemSize, minDimension) {
|
|
20821
|
+
function VerticalResponsivityManager(container, model, itemsSelector, dotsItemSize, minDimension, delayedUpdateFunction) {
|
|
20736
20822
|
if (minDimension === void 0) { minDimension = 40; }
|
|
20737
|
-
var _this = _super.call(this, container, model, itemsSelector, dotsItemSize) || this;
|
|
20823
|
+
var _this = _super.call(this, container, model, itemsSelector, dotsItemSize, delayedUpdateFunction) || this;
|
|
20738
20824
|
_this.minDimensionConst = minDimension;
|
|
20739
20825
|
_this.recalcMinDimensionConst = false;
|
|
20740
20826
|
return _this;
|