survey-react-ui 1.9.120 → 1.9.122
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/README.md +5 -1
- package/package.json +5 -5
- package/survey-react-ui.js +120 -41
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -2
- package/typings/entries/react-ui-model.d.ts +1 -0
- package/typings/react/reactquestion_checkbox.d.ts +0 -1
- package/typings/react/svgbundle.d.ts +7 -0
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# SurveyJS React Form Library
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
https://github.com/surveyjs/survey-library/assets/22315929/ff5c0779-7e06-4241-a1db-2b28df78eba5
|
|
5
|
+
|
|
6
|
+
|
|
3
7
|
[](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_build/latest?definitionId=7&branchName=master)
|
|
4
8
|
[](LICENSE)
|
|
5
9
|
<a href="https://github.com/DevExpress/testcafe">
|
|
@@ -44,4 +48,4 @@ Refer to instructions in the root README file: [Build the SurveyJS Form Library
|
|
|
44
48
|
|
|
45
49
|
## Licensing
|
|
46
50
|
|
|
47
|
-
SurveyJS Form Library is distributed under the [MIT license](https://github.com/surveyjs/survey-library/blob/master/LICENSE).
|
|
51
|
+
SurveyJS Form Library is distributed under the [MIT license](https://github.com/surveyjs/survey-library/blob/master/LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.122",
|
|
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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"url": "https://github.com/surveyjs/surveyjs.git"
|
|
21
21
|
},
|
|
22
22
|
"typings": "survey-react-ui.d.ts",
|
|
23
|
-
"
|
|
24
|
-
"survey-core": "
|
|
25
|
-
"react": "^16.5.0 || ^17.0.1 || ^18.
|
|
26
|
-
"react-dom": "^16.5.0 || ^17.0.1 || ^18.
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"survey-core": "*",
|
|
25
|
+
"react": "^16.5.0 || ^17.0.1 || ^18.2.0",
|
|
26
|
+
"react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
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.122
|
|
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
|
*/
|
|
@@ -411,7 +411,7 @@ var Base = /** @class */ (function () {
|
|
|
411
411
|
* Returns `true` if a passed `value` is an empty string, array, or object or if it equals to `undefined` or `null`.
|
|
412
412
|
*
|
|
413
413
|
* @param value A value to be checked.
|
|
414
|
-
* @param trimString (Optional) When this parameter is `true`, the method ignores whitespace characters at the beginning and end of a string value. Pass `false` to disable this functionality.
|
|
414
|
+
* @param trimString *(Optional)* When this parameter is `true`, the method ignores whitespace characters at the beginning and end of a string value. Pass `false` to disable this functionality.
|
|
415
415
|
*/
|
|
416
416
|
Base.prototype.isValueEmpty = function (value, trimString) {
|
|
417
417
|
if (trimString === void 0) { trimString = true; }
|
|
@@ -618,7 +618,7 @@ var Base = /** @class */ (function () {
|
|
|
618
618
|
* If the property is not found or does not have a value, this method returns either `undefined`, `defaultValue` specified in the property configuration, or a value passed as the `defaultValue` parameter.
|
|
619
619
|
*
|
|
620
620
|
* @param name A property name.
|
|
621
|
-
* @param defaultValue (Optional) A value to return if the property is not found or does not have a value.
|
|
621
|
+
* @param defaultValue *(Optional)* A value to return if the property is not found or does not have a value.
|
|
622
622
|
*/
|
|
623
623
|
Base.prototype.getPropertyValue = function (name, defaultValue) {
|
|
624
624
|
if (defaultValue === void 0) { defaultValue = null; }
|
|
@@ -889,7 +889,7 @@ var Base = /** @class */ (function () {
|
|
|
889
889
|
* Registers a function to call when a property value changes.
|
|
890
890
|
* @param propertyNames An array of one or multiple property names.
|
|
891
891
|
* @param handler A function to call when one of the listed properties change.
|
|
892
|
-
* @param key (Optional) A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
|
|
892
|
+
* @param key *(Optional)* A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
|
|
893
893
|
* @see unregisterPropertyChangedHandlers
|
|
894
894
|
*/
|
|
895
895
|
Base.prototype.registerPropertyChangedHandlers = function (propertyNames, handler, key) {
|
|
@@ -901,7 +901,7 @@ var Base = /** @class */ (function () {
|
|
|
901
901
|
/**
|
|
902
902
|
* Unregisters value change event handlers for the specified properties.
|
|
903
903
|
* @param propertyNames An array of one or multiple property names.
|
|
904
|
-
* @param key (Optional) A key of the registration that you want to cancel.
|
|
904
|
+
* @param key *(Optional)* A key of the registration that you want to cancel.
|
|
905
905
|
* @see registerPropertyChangedHandlers
|
|
906
906
|
*/
|
|
907
907
|
Base.prototype.unregisterPropertyChangedHandlers = function (propertyNames, key) {
|
|
@@ -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.122", "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 },
|
|
@@ -15988,9 +15994,6 @@ var SurveyQuestionCheckboxItem = /** @class */ (function (_super) {
|
|
|
15988
15994
|
_this.handleOnChange = function (event) {
|
|
15989
15995
|
_this.question.clickItemHandler(_this.item, event.target.checked);
|
|
15990
15996
|
};
|
|
15991
|
-
_this.selectAllChanged = function (event) {
|
|
15992
|
-
_this.question.toggleSelectAll();
|
|
15993
|
-
};
|
|
15994
15997
|
return _this;
|
|
15995
15998
|
}
|
|
15996
15999
|
SurveyQuestionCheckboxItem.prototype.getStateElement = function () {
|
|
@@ -16064,16 +16067,12 @@ var SurveyQuestionCheckboxItem = /** @class */ (function (_super) {
|
|
|
16064
16067
|
});
|
|
16065
16068
|
SurveyQuestionCheckboxItem.prototype.renderCheckbox = function (isChecked, otherItem) {
|
|
16066
16069
|
var id = this.question.getItemId(this.item);
|
|
16067
|
-
var text = !this.hideCaption ? this.renderLocString(this.item.locText) : "";
|
|
16068
16070
|
var itemClass = this.question.getItemClass(this.item);
|
|
16069
16071
|
var labelClass = this.question.getLabelClass(this.item);
|
|
16070
|
-
var onItemChanged = this.item == this.question.selectAllItem
|
|
16071
|
-
? this.selectAllChanged
|
|
16072
|
-
: this.handleOnChange;
|
|
16073
16072
|
var itemLabel = !this.hideCaption ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.controlLabel }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
16074
16073
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: itemClass, role: "presentation" },
|
|
16075
16074
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: labelClass },
|
|
16076
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { className: this.cssClasses.itemControl, type: "checkbox", role: "option", name: this.question.name + this.item.
|
|
16075
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { className: this.cssClasses.itemControl, type: "checkbox", role: "option", name: this.question.name + this.item.id, value: this.item.value, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), checked: isChecked, onChange: this.handleOnChange }),
|
|
16077
16076
|
this.cssClasses.materialDecorator ?
|
|
16078
16077
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
16079
16078
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: this.cssClasses.itemDecorator },
|
|
@@ -17988,8 +17987,13 @@ var SurveyMultipleTextItem = /** @class */ (function (_super) {
|
|
|
17988
17987
|
SurveyMultipleTextItem.prototype.renderElement = function () {
|
|
17989
17988
|
var item = this.item;
|
|
17990
17989
|
var cssClasses = this.cssClasses;
|
|
17990
|
+
var titleStyle = {};
|
|
17991
|
+
if (!!this.question.itemTitleWidth) {
|
|
17992
|
+
titleStyle.minWidth = this.question.itemTitleWidth;
|
|
17993
|
+
titleStyle.width = this.question.itemTitleWidth;
|
|
17994
|
+
}
|
|
17991
17995
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: this.question.getItemLabelCss(item) },
|
|
17992
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.itemTitle },
|
|
17996
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.itemTitle, style: titleStyle },
|
|
17993
17997
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_title_title_content__WEBPACK_IMPORTED_MODULE_4__["TitleContent"], { element: item.editor, cssClasses: item.editor.cssClasses })),
|
|
17994
17998
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyMultipleTextItemEditor, { cssClasses: cssClasses, itemCss: this.question.getItemCss(), question: item.editor, creator: this.creator })));
|
|
17995
17999
|
};
|
|
@@ -19547,6 +19551,62 @@ _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.re
|
|
|
19547
19551
|
});
|
|
19548
19552
|
|
|
19549
19553
|
|
|
19554
|
+
/***/ }),
|
|
19555
|
+
|
|
19556
|
+
/***/ "./src/react/svgbundle.tsx":
|
|
19557
|
+
/*!*********************************!*\
|
|
19558
|
+
!*** ./src/react/svgbundle.tsx ***!
|
|
19559
|
+
\*********************************/
|
|
19560
|
+
/*! exports provided: SvgBundleComponent */
|
|
19561
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19562
|
+
|
|
19563
|
+
"use strict";
|
|
19564
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19565
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgBundleComponent", function() { return SvgBundleComponent; });
|
|
19566
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
19567
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
19568
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
19569
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
19570
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
19571
|
+
var extendStatics = function (d, b) {
|
|
19572
|
+
extendStatics = Object.setPrototypeOf ||
|
|
19573
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19574
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19575
|
+
return extendStatics(d, b);
|
|
19576
|
+
};
|
|
19577
|
+
return function (d, b) {
|
|
19578
|
+
if (typeof b !== "function" && b !== null)
|
|
19579
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
19580
|
+
extendStatics(d, b);
|
|
19581
|
+
function __() { this.constructor = d; }
|
|
19582
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19583
|
+
};
|
|
19584
|
+
})();
|
|
19585
|
+
|
|
19586
|
+
|
|
19587
|
+
var SvgBundleComponent = /** @class */ (function (_super) {
|
|
19588
|
+
__extends(SvgBundleComponent, _super);
|
|
19589
|
+
function SvgBundleComponent(props) {
|
|
19590
|
+
var _this = _super.call(this, props) || this;
|
|
19591
|
+
_this.containerRef = react__WEBPACK_IMPORTED_MODULE_0___default.a.createRef();
|
|
19592
|
+
return _this;
|
|
19593
|
+
}
|
|
19594
|
+
SvgBundleComponent.prototype.componentDidMount = function () {
|
|
19595
|
+
if (!!this.containerRef.current) {
|
|
19596
|
+
this.containerRef.current.innerHTML = survey_core__WEBPACK_IMPORTED_MODULE_1__["SvgRegistry"].iconsRenderedHtml();
|
|
19597
|
+
}
|
|
19598
|
+
};
|
|
19599
|
+
SvgBundleComponent.prototype.render = function () {
|
|
19600
|
+
var svgStyle = {
|
|
19601
|
+
display: "none"
|
|
19602
|
+
};
|
|
19603
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg", { style: svgStyle, id: "sv-icon-holder-global-container", ref: this.containerRef });
|
|
19604
|
+
};
|
|
19605
|
+
return SvgBundleComponent;
|
|
19606
|
+
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
|
19607
|
+
|
|
19608
|
+
|
|
19609
|
+
|
|
19550
19610
|
/***/ }),
|
|
19551
19611
|
|
|
19552
19612
|
/***/ "./src/react/tagbox-filter.tsx":
|
|
@@ -20611,13 +20671,14 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
20611
20671
|
})();
|
|
20612
20672
|
|
|
20613
20673
|
var ResponsivityManager = /** @class */ (function () {
|
|
20614
|
-
function ResponsivityManager(container, model, itemsSelector, dotsItemSize) {
|
|
20674
|
+
function ResponsivityManager(container, model, itemsSelector, dotsItemSize, delayedUpdateFunction) {
|
|
20615
20675
|
var _this = this;
|
|
20616
20676
|
if (dotsItemSize === void 0) { dotsItemSize = null; }
|
|
20617
20677
|
this.container = container;
|
|
20618
20678
|
this.model = model;
|
|
20619
20679
|
this.itemsSelector = itemsSelector;
|
|
20620
20680
|
this.dotsItemSize = dotsItemSize;
|
|
20681
|
+
this.delayedUpdateFunction = delayedUpdateFunction;
|
|
20621
20682
|
this.resizeObserver = undefined;
|
|
20622
20683
|
this.isInitialized = false;
|
|
20623
20684
|
this.minDimensionConst = 56;
|
|
@@ -20668,6 +20729,16 @@ var ResponsivityManager = /** @class */ (function () {
|
|
|
20668
20729
|
(currentAction.needSeparator ? this.separatorSize : 0)
|
|
20669
20730
|
: currentAction.maxDimension;
|
|
20670
20731
|
};
|
|
20732
|
+
ResponsivityManager.prototype.getRenderedVisibleActionsCount = function () {
|
|
20733
|
+
var _this = this;
|
|
20734
|
+
var count = 0;
|
|
20735
|
+
this.container.querySelectorAll(this.itemsSelector).forEach(function (item) {
|
|
20736
|
+
if (_this.calcItemSize(item) > 0) {
|
|
20737
|
+
count++;
|
|
20738
|
+
}
|
|
20739
|
+
});
|
|
20740
|
+
return count;
|
|
20741
|
+
};
|
|
20671
20742
|
ResponsivityManager.prototype.calcItemsSizes = function () {
|
|
20672
20743
|
var _this = this;
|
|
20673
20744
|
var actions = this.model.actions;
|
|
@@ -20693,18 +20764,8 @@ var ResponsivityManager = /** @class */ (function () {
|
|
|
20693
20764
|
if (this.isContainerVisible && !this.model.isResponsivenessDisabled) {
|
|
20694
20765
|
if (!this.isInitialized) {
|
|
20695
20766
|
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
20767
|
}
|
|
20707
|
-
var
|
|
20768
|
+
var processResponsiveness_1 = function () {
|
|
20708
20769
|
var _a;
|
|
20709
20770
|
var dotsItemSize = _this.dotsItemSize;
|
|
20710
20771
|
if (!_this.dotsItemSize) {
|
|
@@ -20713,11 +20774,29 @@ var ResponsivityManager = /** @class */ (function () {
|
|
|
20713
20774
|
}
|
|
20714
20775
|
_this.model.fit(_this.getAvailableSpace(), dotsItemSize);
|
|
20715
20776
|
};
|
|
20716
|
-
if (
|
|
20717
|
-
|
|
20777
|
+
if (!this.isInitialized) {
|
|
20778
|
+
var callback = function () {
|
|
20779
|
+
_this.calcItemsSizes();
|
|
20780
|
+
_this.isInitialized = true;
|
|
20781
|
+
processResponsiveness_1();
|
|
20782
|
+
};
|
|
20783
|
+
if (this.getRenderedVisibleActionsCount() < this.model.visibleActions.length) {
|
|
20784
|
+
if (this.delayedUpdateFunction) {
|
|
20785
|
+
this.delayedUpdateFunction(callback);
|
|
20786
|
+
}
|
|
20787
|
+
else if (queueMicrotask) {
|
|
20788
|
+
queueMicrotask(callback);
|
|
20789
|
+
}
|
|
20790
|
+
else {
|
|
20791
|
+
callback();
|
|
20792
|
+
}
|
|
20793
|
+
}
|
|
20794
|
+
else {
|
|
20795
|
+
callback();
|
|
20796
|
+
}
|
|
20718
20797
|
}
|
|
20719
20798
|
else {
|
|
20720
|
-
|
|
20799
|
+
processResponsiveness_1();
|
|
20721
20800
|
}
|
|
20722
20801
|
}
|
|
20723
20802
|
};
|
|
@@ -20732,9 +20811,9 @@ var ResponsivityManager = /** @class */ (function () {
|
|
|
20732
20811
|
|
|
20733
20812
|
var VerticalResponsivityManager = /** @class */ (function (_super) {
|
|
20734
20813
|
__extends(VerticalResponsivityManager, _super);
|
|
20735
|
-
function VerticalResponsivityManager(container, model, itemsSelector, dotsItemSize, minDimension) {
|
|
20814
|
+
function VerticalResponsivityManager(container, model, itemsSelector, dotsItemSize, minDimension, delayedUpdateFunction) {
|
|
20736
20815
|
if (minDimension === void 0) { minDimension = 40; }
|
|
20737
|
-
var _this = _super.call(this, container, model, itemsSelector, dotsItemSize) || this;
|
|
20816
|
+
var _this = _super.call(this, container, model, itemsSelector, dotsItemSize, delayedUpdateFunction) || this;
|
|
20738
20817
|
_this.minDimensionConst = minDimension;
|
|
20739
20818
|
_this.recalcMinDimensionConst = false;
|
|
20740
20819
|
return _this;
|