survey-react 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/defaultV2.css +2 -1
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +3 -1
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +66 -37
- package/survey.react.js +228 -88
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.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
|
*/
|
@@ -1326,8 +1326,8 @@ var AdaptiveActionContainer = /** @class */ (function (_super) {
|
|
1326
1326
|
this.updateItemMode(dimension, maxSize);
|
1327
1327
|
}
|
1328
1328
|
};
|
1329
|
-
AdaptiveActionContainer.prototype.initResponsivityManager = function (container) {
|
1330
|
-
this.responsivityManager = new _utils_responsivity_manager__WEBPACK_IMPORTED_MODULE_0__["ResponsivityManager"](container, this, ":scope > .sv-action:not(.sv-dots) > .sv-action__content");
|
1329
|
+
AdaptiveActionContainer.prototype.initResponsivityManager = function (container, delayedUpdateFunction) {
|
1330
|
+
this.responsivityManager = new _utils_responsivity_manager__WEBPACK_IMPORTED_MODULE_0__["ResponsivityManager"](container, this, ":scope > .sv-action:not(.sv-dots) > .sv-action__content", null, delayedUpdateFunction);
|
1331
1331
|
};
|
1332
1332
|
AdaptiveActionContainer.prototype.resetResponsivityManager = function () {
|
1333
1333
|
if (!!this.responsivityManager) {
|
@@ -1539,7 +1539,7 @@ var ActionContainer = /** @class */ (function (_super) {
|
|
1539
1539
|
this.sortItems();
|
1540
1540
|
}
|
1541
1541
|
};
|
1542
|
-
ActionContainer.prototype.initResponsivityManager = function (container) {
|
1542
|
+
ActionContainer.prototype.initResponsivityManager = function (container, delayedUpdateFunction) {
|
1543
1543
|
return;
|
1544
1544
|
};
|
1545
1545
|
ActionContainer.prototype.resetResponsivityManager = function () { };
|
@@ -9423,8 +9423,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
9423
9423
|
//import "../../modern.scss";
|
9424
9424
|
var Version;
|
9425
9425
|
var ReleaseDate;
|
9426
|
-
Version = "" + "1.9.
|
9427
|
-
ReleaseDate = "" + "2023-12-
|
9426
|
+
Version = "" + "1.9.121";
|
9427
|
+
ReleaseDate = "" + "2023-12-12";
|
9428
9428
|
function checkLibraryVersion(ver, libraryName) {
|
9429
9429
|
if (Version != ver) {
|
9430
9430
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -10547,7 +10547,7 @@ var defaultBootstrapMaterialCss = _plugins_themes_bootstrapmaterial_cssbootstrap
|
|
10547
10547
|
/*!***************************************!*\
|
10548
10548
|
!*** ./src/entries/react-ui-model.ts ***!
|
10549
10549
|
\***************************************/
|
10550
|
-
/*! 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 */
|
10550
|
+
/*! 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 */
|
10551
10551
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10552
10552
|
|
10553
10553
|
"use strict";
|
@@ -10824,6 +10824,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
10824
10824
|
/* harmony import */ var _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../react/components/loading-indicator */ "./src/react/components/loading-indicator.tsx");
|
10825
10825
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_79__["LoadingIndicatorComponent"]; });
|
10826
10826
|
|
10827
|
+
/* harmony import */ var _react_svgbundle__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../react/svgbundle */ "./src/react/svgbundle.tsx");
|
10828
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SvgBundleComponent", function() { return _react_svgbundle__WEBPACK_IMPORTED_MODULE_80__["SvgBundleComponent"]; });
|
10829
|
+
|
10827
10830
|
// react
|
10828
10831
|
|
10829
10832
|
|
@@ -10903,6 +10906,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10903
10906
|
|
10904
10907
|
|
10905
10908
|
|
10909
|
+
|
10906
10910
|
|
10907
10911
|
|
10908
10912
|
//Uncomment to include the "date" question type.
|
@@ -10915,7 +10919,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10915
10919
|
/*!******************************!*\
|
10916
10920
|
!*** ./src/entries/react.ts ***!
|
10917
10921
|
\******************************/
|
10918
|
-
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model, bootstrapThemeName, bootstrapThemeColors, bootstrapThemeCssRules, bootstrapMaterialThemeName, bootstrapMaterialThemeColors, bootstrapMaterialThemeCssRules, defaultBootstrapCss, defaultBootstrapMaterialCss, 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 */
|
10922
|
+
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model, bootstrapThemeName, bootstrapThemeColors, bootstrapThemeCssRules, bootstrapMaterialThemeName, bootstrapMaterialThemeColors, bootstrapMaterialThemeCssRules, defaultBootstrapCss, defaultBootstrapMaterialCss, 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 */
|
10919
10923
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10920
10924
|
|
10921
10925
|
"use strict";
|
@@ -11560,6 +11564,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
11560
11564
|
|
11561
11565
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["LoadingIndicatorComponent"]; });
|
11562
11566
|
|
11567
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SvgBundleComponent", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["SvgBundleComponent"]; });
|
11568
|
+
|
11563
11569
|
|
11564
11570
|
// themes settings
|
11565
11571
|
|
@@ -30511,11 +30517,22 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
30511
30517
|
}
|
30512
30518
|
}
|
30513
30519
|
};
|
30514
|
-
PanelModelBase.prototype.notifyStateChanged = function () {
|
30515
|
-
|
30520
|
+
PanelModelBase.prototype.notifyStateChanged = function (prevState) {
|
30521
|
+
var _this = this;
|
30522
|
+
_super.prototype.notifyStateChanged.call(this, prevState);
|
30516
30523
|
if (this.isCollapsed) {
|
30517
30524
|
this.questions.forEach(function (q) { return q.onHidingContent(); });
|
30518
30525
|
}
|
30526
|
+
if (this.survey != null && !this.isLoadingFromJson && this.isExpanded && prevState === "collapsed") {
|
30527
|
+
var q_1 = this.getFirstQuestionToFocus(false);
|
30528
|
+
if (!!q_1) {
|
30529
|
+
setTimeout(function () {
|
30530
|
+
if (!_this.isDisposed && !!_this.survey) {
|
30531
|
+
_this.survey.scrollElementToTop(q_1, q_1, null, q_1.inputId, false);
|
30532
|
+
}
|
30533
|
+
}, 15);
|
30534
|
+
}
|
30535
|
+
}
|
30519
30536
|
};
|
30520
30537
|
Object.defineProperty(PanelModelBase.prototype, "isVisible", {
|
30521
30538
|
/**
|
@@ -31029,11 +31046,11 @@ var PanelModel = /** @class */ (function (_super) {
|
|
31029
31046
|
PanelModel.prototype.setNo = function (visibleIndex) {
|
31030
31047
|
this.setPropertyValue("no", _helpers__WEBPACK_IMPORTED_MODULE_1__["Helpers"].getNumberByIndex(this.visibleIndex, this.getStartIndex()));
|
31031
31048
|
};
|
31032
|
-
PanelModel.prototype.notifyStateChanged = function () {
|
31049
|
+
PanelModel.prototype.notifyStateChanged = function (prevState) {
|
31033
31050
|
if (!this.isLoadingFromJson) {
|
31034
31051
|
this.locTitle.strChanged();
|
31035
31052
|
}
|
31036
|
-
_super.prototype.notifyStateChanged.call(this);
|
31053
|
+
_super.prototype.notifyStateChanged.call(this, prevState);
|
31037
31054
|
};
|
31038
31055
|
PanelModel.prototype.createLocTitleProperty = function () {
|
31039
31056
|
var _this = this;
|
@@ -32770,7 +32787,7 @@ var PopupDropdownViewModel = /** @class */ (function (_super) {
|
|
32770
32787
|
};
|
32771
32788
|
_this.resizeWindowCallback = function () {
|
32772
32789
|
if (!_this.isOverlay) {
|
32773
|
-
_this.updatePosition(true, _survey__WEBPACK_IMPORTED_MODULE_5__["SurveyModel"].platform === "vue" || _survey__WEBPACK_IMPORTED_MODULE_5__["SurveyModel"].platform === "vue3");
|
32790
|
+
_this.updatePosition(true, _survey__WEBPACK_IMPORTED_MODULE_5__["SurveyModel"].platform === "vue" || _survey__WEBPACK_IMPORTED_MODULE_5__["SurveyModel"].platform === "vue3" || _survey__WEBPACK_IMPORTED_MODULE_5__["SurveyModel"].platform == "react");
|
32774
32791
|
}
|
32775
32792
|
};
|
32776
32793
|
_this.clientY = 0;
|
@@ -34421,8 +34438,8 @@ var Question = /** @class */ (function (_super) {
|
|
34421
34438
|
this.errors = [];
|
34422
34439
|
}
|
34423
34440
|
};
|
34424
|
-
Question.prototype.notifyStateChanged = function () {
|
34425
|
-
_super.prototype.notifyStateChanged.call(this);
|
34441
|
+
Question.prototype.notifyStateChanged = function (prevState) {
|
34442
|
+
_super.prototype.notifyStateChanged.call(this, prevState);
|
34426
34443
|
if (this.isCollapsed) {
|
34427
34444
|
this.onHidingContent();
|
34428
34445
|
}
|
@@ -40508,23 +40525,25 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
40508
40525
|
* @see showSelectAllItem
|
40509
40526
|
*/
|
40510
40527
|
get: function () {
|
40528
|
+
if (this.isItemSelected(this.noneItem))
|
40529
|
+
return false;
|
40530
|
+
var items = this.getVisibleEnableItems();
|
40531
|
+
if (items.length === 0)
|
40532
|
+
return false;
|
40511
40533
|
var val = this.value;
|
40512
|
-
if (!val || !Array.isArray(val))
|
40534
|
+
if (!val || !Array.isArray(val) || val.length === 0)
|
40513
40535
|
return false;
|
40514
|
-
if (
|
40536
|
+
if (val.length < items.length)
|
40515
40537
|
return false;
|
40516
|
-
var
|
40517
|
-
var
|
40518
|
-
|
40519
|
-
|
40520
|
-
|
40521
|
-
|
40522
|
-
|
40523
|
-
|
40524
|
-
|
40525
|
-
if (this.isOtherSelected)
|
40526
|
-
selectedCount--;
|
40527
|
-
return selectedCount === allItemCount;
|
40538
|
+
var rVal = [];
|
40539
|
+
for (var i = 0; i < val.length; i++) {
|
40540
|
+
rVal.push(this.getRealValue(val[i]));
|
40541
|
+
}
|
40542
|
+
for (var i = 0; i < items.length; i++) {
|
40543
|
+
if (rVal.indexOf(items[i].value) < 0)
|
40544
|
+
return false;
|
40545
|
+
}
|
40546
|
+
return true;
|
40528
40547
|
},
|
40529
40548
|
set: function (val) {
|
40530
40549
|
if (val) {
|
@@ -40548,13 +40567,9 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
40548
40567
|
*/
|
40549
40568
|
QuestionCheckboxModel.prototype.selectAll = function () {
|
40550
40569
|
var val = [];
|
40551
|
-
|
40552
|
-
|
40553
|
-
|
40554
|
-
item === this.otherItem ||
|
40555
|
-
item === this.selectAllItem)
|
40556
|
-
continue;
|
40557
|
-
val.push(item.value);
|
40570
|
+
var items = this.getVisibleEnableItems();
|
40571
|
+
for (var i = 0; i < items.length; i++) {
|
40572
|
+
val.push(items[i].value);
|
40558
40573
|
}
|
40559
40574
|
this.renderedValue = val;
|
40560
40575
|
};
|
@@ -40683,24 +40698,51 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
40683
40698
|
errors.push(minError);
|
40684
40699
|
}
|
40685
40700
|
};
|
40701
|
+
QuestionCheckboxModel.prototype.onVisibleChoicesChanged = function () {
|
40702
|
+
_super.prototype.onVisibleChoicesChanged.call(this);
|
40703
|
+
this.updateSelectAllItemProps();
|
40704
|
+
};
|
40686
40705
|
QuestionCheckboxModel.prototype.onEnableItemCallBack = function (item) {
|
40687
40706
|
if (!this.shouldCheckMaxSelectedChoices())
|
40688
40707
|
return true;
|
40689
40708
|
return this.isItemSelected(item);
|
40690
40709
|
};
|
40691
40710
|
QuestionCheckboxModel.prototype.onAfterRunItemsEnableCondition = function () {
|
40711
|
+
this.updateSelectAllItemProps();
|
40692
40712
|
if (this.maxSelectedChoices < 1) {
|
40693
|
-
this.selectAllItem.setIsEnabled(true);
|
40694
40713
|
this.otherItem.setIsEnabled(true);
|
40695
40714
|
return;
|
40696
40715
|
}
|
40697
|
-
if (this.hasSelectAll) {
|
40698
|
-
this.selectAllItem.setIsEnabled(this.maxSelectedChoices >= this.activeChoices.length);
|
40699
|
-
}
|
40700
40716
|
if (this.hasOther) {
|
40701
40717
|
this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices() || this.isOtherSelected);
|
40702
40718
|
}
|
40703
40719
|
};
|
40720
|
+
QuestionCheckboxModel.prototype.updateSelectAllItemProps = function () {
|
40721
|
+
if (!this.hasSelectAll)
|
40722
|
+
return;
|
40723
|
+
this.selectAllItem.setIsEnabled(this.getSelectAllEnabled());
|
40724
|
+
};
|
40725
|
+
QuestionCheckboxModel.prototype.getSelectAllEnabled = function () {
|
40726
|
+
if (!this.hasSelectAll)
|
40727
|
+
return true;
|
40728
|
+
var items = this.activeChoices;
|
40729
|
+
var visCount = this.getVisibleEnableItems().length;
|
40730
|
+
var max = this.maxSelectedChoices;
|
40731
|
+
if (max > 0 && max < visCount)
|
40732
|
+
return false;
|
40733
|
+
return visCount > 0;
|
40734
|
+
};
|
40735
|
+
QuestionCheckboxModel.prototype.getVisibleEnableItems = function () {
|
40736
|
+
var res = new Array();
|
40737
|
+
var items = this.activeChoices;
|
40738
|
+
for (var i = 0; i < items.length; i++) {
|
40739
|
+
var item = items[i];
|
40740
|
+
if (item.isEnabled && item.isVisible) {
|
40741
|
+
res.push(item);
|
40742
|
+
}
|
40743
|
+
}
|
40744
|
+
return res;
|
40745
|
+
};
|
40704
40746
|
QuestionCheckboxModel.prototype.shouldCheckMaxSelectedChoices = function () {
|
40705
40747
|
if (this.maxSelectedChoices < 1)
|
40706
40748
|
return false;
|
@@ -41525,6 +41567,12 @@ var QuestionCustomModelBase = /** @class */ (function (_super) {
|
|
41525
41567
|
this.getElement().locStrsChanged();
|
41526
41568
|
}
|
41527
41569
|
};
|
41570
|
+
QuestionCustomModelBase.prototype.localeChanged = function () {
|
41571
|
+
_super.prototype.locStrsChanged.call(this);
|
41572
|
+
if (!!this.getElement()) {
|
41573
|
+
this.getElement().localeChanged();
|
41574
|
+
}
|
41575
|
+
};
|
41528
41576
|
QuestionCustomModelBase.prototype.createWrapper = function () { };
|
41529
41577
|
QuestionCustomModelBase.prototype.onPropertyValueChanged = function (name, oldValue, newValue) {
|
41530
41578
|
_super.prototype.onPropertyValueChanged.call(this, name, oldValue, newValue);
|
@@ -42609,7 +42657,7 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
42609
42657
|
};
|
42610
42658
|
QuestionDropdownModel.prototype.onVisibleChoicesChanged = function () {
|
42611
42659
|
_super.prototype.onVisibleChoicesChanged.call(this);
|
42612
|
-
if (this.popupModel) {
|
42660
|
+
if (!this.isLoadingFromJson && this.popupModel) {
|
42613
42661
|
this.dropdownListModel.updateItems();
|
42614
42662
|
}
|
42615
42663
|
};
|
@@ -53104,7 +53152,8 @@ var QuestionMultipleTextModel = /** @class */ (function (_super) {
|
|
53104
53152
|
* }
|
53105
53153
|
* ```
|
53106
53154
|
*
|
53107
|
-
* To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
53155
|
+
* To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [`onTextMarkdown`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
53156
|
+
* @see itemTitleWidth
|
53108
53157
|
* @see addItem
|
53109
53158
|
*/
|
53110
53159
|
get: function () {
|
@@ -53118,8 +53167,8 @@ var QuestionMultipleTextModel = /** @class */ (function (_super) {
|
|
53118
53167
|
});
|
53119
53168
|
/**
|
53120
53169
|
* Adds a new input item.
|
53121
|
-
* @param name An item name
|
53122
|
-
* @param title (Optional) An item title
|
53170
|
+
* @param name An item name.
|
53171
|
+
* @param title (Optional) An item title.
|
53123
53172
|
* @see items
|
53124
53173
|
*/
|
53125
53174
|
QuestionMultipleTextModel.prototype.addItem = function (name, title) {
|
@@ -53253,6 +53302,23 @@ var QuestionMultipleTextModel = /** @class */ (function (_super) {
|
|
53253
53302
|
enumerable: false,
|
53254
53303
|
configurable: true
|
53255
53304
|
});
|
53305
|
+
Object.defineProperty(QuestionMultipleTextModel.prototype, "itemTitleWidth", {
|
53306
|
+
/**
|
53307
|
+
* Specifies a uniform width for all text box titles. Accepts CSS values.
|
53308
|
+
*
|
53309
|
+
* Default value: `""` (the width of each title depends on the title length)
|
53310
|
+
* @see items
|
53311
|
+
* @see itemErrorLocation
|
53312
|
+
*/
|
53313
|
+
get: function () {
|
53314
|
+
return this.getPropertyValue("itemTitleWidth") || "";
|
53315
|
+
},
|
53316
|
+
set: function (val) {
|
53317
|
+
this.setPropertyValue("itemTitleWidth", val);
|
53318
|
+
},
|
53319
|
+
enumerable: false,
|
53320
|
+
configurable: true
|
53321
|
+
});
|
53256
53322
|
QuestionMultipleTextModel.prototype.onRowCreated = function (row) {
|
53257
53323
|
return row;
|
53258
53324
|
};
|
@@ -53607,7 +53673,8 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_4__["Serializer"].addClass("multipletext",
|
|
53607
53673
|
{ name: "!items:textitems", className: "multipletextitem", isArray: true },
|
53608
53674
|
{ name: "itemSize:number", minValue: 0 },
|
53609
53675
|
{ name: "colCount:number", default: 1, choices: [1, 2, 3, 4, 5] },
|
53610
|
-
{ name: "itemErrorLocation", default: "default", choices: ["default", "top", "bottom"], visible: false }
|
53676
|
+
{ name: "itemErrorLocation", default: "default", choices: ["default", "top", "bottom"], visible: false },
|
53677
|
+
{ name: "itemTitleWidth", category: "layout" }
|
53611
53678
|
], function () {
|
53612
53679
|
return new QuestionMultipleTextModel("");
|
53613
53680
|
}, "question");
|
@@ -58405,6 +58472,8 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
58405
58472
|
};
|
58406
58473
|
};
|
58407
58474
|
QuestionSignaturePadModel.prototype.refreshCanvas = function () {
|
58475
|
+
if (!this.canvas)
|
58476
|
+
return;
|
58408
58477
|
if (!this.value) {
|
58409
58478
|
this.canvas.getContext("2d").clearRect(0, 0, this.canvas.width * this.scale, this.canvas.height * this.scale);
|
58410
58479
|
this.signaturePad.clear();
|
@@ -60896,7 +60965,7 @@ var SurveyActionBar = /** @class */ (function (_super) {
|
|
60896
60965
|
return;
|
60897
60966
|
var container = this.rootRef.current;
|
60898
60967
|
if (!!container) {
|
60899
|
-
this.model.initResponsivityManager(container);
|
60968
|
+
this.model.initResponsivityManager(container, function (callback) { setTimeout(callback); });
|
60900
60969
|
}
|
60901
60970
|
};
|
60902
60971
|
SurveyActionBar.prototype.componentWillUnmount = function () {
|
@@ -61304,7 +61373,7 @@ var HeaderMobile = /** @class */ (function (_super) {
|
|
61304
61373
|
this.model.survey.hasTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__title", style: { maxWidth: this.model.textAreaWidth } },
|
61305
61374
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_title_title_element__WEBPACK_IMPORTED_MODULE_3__["TitleElement"], { element: this.model.survey }))) : null,
|
61306
61375
|
this.model.survey.renderedHasDescription ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__description", style: { maxWidth: this.model.textAreaWidth } },
|
61307
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("
|
61376
|
+
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));
|
61308
61377
|
};
|
61309
61378
|
return HeaderMobile;
|
61310
61379
|
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
@@ -61335,7 +61404,7 @@ var HeaderCell = /** @class */ (function (_super) {
|
|
61335
61404
|
this.model.showTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__title", style: { maxWidth: this.model.textAreaWidth } },
|
61336
61405
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_title_title_element__WEBPACK_IMPORTED_MODULE_3__["TitleElement"], { element: this.model.survey }))) : null,
|
61337
61406
|
this.model.showDescription ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__description", style: { maxWidth: this.model.textAreaWidth } },
|
61338
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("
|
61407
|
+
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)));
|
61339
61408
|
};
|
61340
61409
|
return HeaderCell;
|
61341
61410
|
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
@@ -63090,7 +63159,7 @@ var SurveyHeader = /** @class */ (function (_super) {
|
|
63090
63159
|
var description = _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"].renderLocString(this.survey.locDescription);
|
63091
63160
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.css.headerText, style: { maxWidth: this.survey.titleMaxWidth } },
|
63092
63161
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_title_title_element__WEBPACK_IMPORTED_MODULE_3__["TitleElement"], { element: this.survey }),
|
63093
|
-
this.survey.renderedHasDescription ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("
|
63162
|
+
this.survey.renderedHasDescription ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.css.description }, description) : null));
|
63094
63163
|
};
|
63095
63164
|
SurveyHeader.prototype.renderLogoImage = function (isRender) {
|
63096
63165
|
if (!isRender)
|
@@ -65097,6 +65166,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
65097
65166
|
/* harmony import */ var _components_brand_info__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/brand-info */ "./src/react/components/brand-info.tsx");
|
65098
65167
|
/* harmony import */ var _components_notifier__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/notifier */ "./src/react/components/notifier.tsx");
|
65099
65168
|
/* harmony import */ var _components_components_container__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/components-container */ "./src/react/components/components-container.tsx");
|
65169
|
+
/* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./svgbundle */ "./src/react/svgbundle.tsx");
|
65100
65170
|
var __extends = (undefined && undefined.__extends) || (function () {
|
65101
65171
|
var extendStatics = function (d, b) {
|
65102
65172
|
extendStatics = Object.setPrototypeOf ||
|
@@ -65134,6 +65204,7 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
65134
65204
|
|
65135
65205
|
|
65136
65206
|
|
65207
|
+
|
65137
65208
|
var Survey = /** @class */ (function (_super) {
|
65138
65209
|
__extends(Survey, _super);
|
65139
65210
|
function Survey(props) {
|
@@ -65204,9 +65275,6 @@ var Survey = /** @class */ (function (_super) {
|
|
65204
65275
|
this.destroySurvey();
|
65205
65276
|
};
|
65206
65277
|
Survey.prototype.doRender = function () {
|
65207
|
-
if (this.survey["needRenderIcons"]) {
|
65208
|
-
survey_core__WEBPACK_IMPORTED_MODULE_1__["SvgRegistry"].renderIcons();
|
65209
|
-
}
|
65210
65278
|
var renderResult;
|
65211
65279
|
if (this.survey.state == "completed") {
|
65212
65280
|
renderResult = this.renderCompleted();
|
@@ -65235,6 +65303,7 @@ var Survey = /** @class */ (function (_super) {
|
|
65235
65303
|
var rootCss = this.survey.getRootCss();
|
65236
65304
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
65237
65305
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables },
|
65306
|
+
this.survey.needRenderIcons ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_svgbundle__WEBPACK_IMPORTED_MODULE_11__["SvgBundleComponent"], null) : null,
|
65238
65307
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.survey.wrapperFormCss },
|
65239
65308
|
backgroundImage,
|
65240
65309
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("form", { onSubmit: onSubmit },
|
@@ -68460,8 +68529,13 @@ var SurveyMultipleTextItem = /** @class */ (function (_super) {
|
|
68460
68529
|
SurveyMultipleTextItem.prototype.renderElement = function () {
|
68461
68530
|
var item = this.item;
|
68462
68531
|
var cssClasses = this.cssClasses;
|
68532
|
+
var titleStyle = {};
|
68533
|
+
if (!!this.question.itemTitleWidth) {
|
68534
|
+
titleStyle.minWidth = this.question.itemTitleWidth;
|
68535
|
+
titleStyle.width = this.question.itemTitleWidth;
|
68536
|
+
}
|
68463
68537
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: this.question.getItemLabelCss(item) },
|
68464
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.itemTitle },
|
68538
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.itemTitle, style: titleStyle },
|
68465
68539
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_title_title_content__WEBPACK_IMPORTED_MODULE_4__["TitleContent"], { element: item.editor, cssClasses: item.editor.cssClasses })),
|
68466
68540
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyMultipleTextItemEditor, { cssClasses: cssClasses, itemCss: this.question.getItemCss(), question: item.editor, creator: this.creator })));
|
68467
68541
|
};
|
@@ -70016,6 +70090,61 @@ _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.re
|
|
70016
70090
|
});
|
70017
70091
|
|
70018
70092
|
|
70093
|
+
/***/ }),
|
70094
|
+
|
70095
|
+
/***/ "./src/react/svgbundle.tsx":
|
70096
|
+
/*!*********************************!*\
|
70097
|
+
!*** ./src/react/svgbundle.tsx ***!
|
70098
|
+
\*********************************/
|
70099
|
+
/*! exports provided: SvgBundleComponent */
|
70100
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
70101
|
+
|
70102
|
+
"use strict";
|
70103
|
+
__webpack_require__.r(__webpack_exports__);
|
70104
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgBundleComponent", function() { return SvgBundleComponent; });
|
70105
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
70106
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
70107
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "./src/entries/core.ts");
|
70108
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
70109
|
+
var extendStatics = function (d, b) {
|
70110
|
+
extendStatics = Object.setPrototypeOf ||
|
70111
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
70112
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
70113
|
+
return extendStatics(d, b);
|
70114
|
+
};
|
70115
|
+
return function (d, b) {
|
70116
|
+
if (typeof b !== "function" && b !== null)
|
70117
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
70118
|
+
extendStatics(d, b);
|
70119
|
+
function __() { this.constructor = d; }
|
70120
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
70121
|
+
};
|
70122
|
+
})();
|
70123
|
+
|
70124
|
+
|
70125
|
+
var SvgBundleComponent = /** @class */ (function (_super) {
|
70126
|
+
__extends(SvgBundleComponent, _super);
|
70127
|
+
function SvgBundleComponent(props) {
|
70128
|
+
var _this = _super.call(this, props) || this;
|
70129
|
+
_this.containerRef = react__WEBPACK_IMPORTED_MODULE_0___default.a.createRef();
|
70130
|
+
return _this;
|
70131
|
+
}
|
70132
|
+
SvgBundleComponent.prototype.componentDidMount = function () {
|
70133
|
+
if (!!this.containerRef.current) {
|
70134
|
+
this.containerRef.current.innerHTML = survey_core__WEBPACK_IMPORTED_MODULE_1__["SvgRegistry"].iconsRenderedHtml();
|
70135
|
+
}
|
70136
|
+
};
|
70137
|
+
SvgBundleComponent.prototype.render = function () {
|
70138
|
+
var svgStyle = {
|
70139
|
+
display: "none"
|
70140
|
+
};
|
70141
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg", { style: svgStyle, id: "sv-icon-holder-global-container", ref: this.containerRef });
|
70142
|
+
};
|
70143
|
+
return SvgBundleComponent;
|
70144
|
+
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
70145
|
+
|
70146
|
+
|
70147
|
+
|
70019
70148
|
/***/ }),
|
70020
70149
|
|
70021
70150
|
/***/ "./src/react/tagbox-filter.tsx":
|
@@ -71635,9 +71764,15 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
71635
71764
|
if (!el || !el.scrollIntoView)
|
71636
71765
|
return false;
|
71637
71766
|
var elemTop = scrollIfVisible ? -1 : el.getBoundingClientRect().top;
|
71638
|
-
|
71767
|
+
var needScroll = elemTop < 0;
|
71768
|
+
if (!needScroll && !!window) {
|
71769
|
+
var height = window.innerHeight;
|
71770
|
+
needScroll = height > 0 && height < elemTop;
|
71771
|
+
}
|
71772
|
+
if (needScroll) {
|
71639
71773
|
el.scrollIntoView();
|
71640
|
-
|
71774
|
+
}
|
71775
|
+
return needScroll;
|
71641
71776
|
};
|
71642
71777
|
SurveyElement.GetFirstNonTextElement = function (elements, removeSpaces) {
|
71643
71778
|
if (removeSpaces === void 0) { removeSpaces = false; }
|
@@ -71684,6 +71819,7 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
71684
71819
|
_super.prototype.onPropertyValueChanged.call(this, name, oldValue, newValue);
|
71685
71820
|
if (name === "state") {
|
71686
71821
|
this.updateElementCss(false);
|
71822
|
+
this.notifyStateChanged(oldValue);
|
71687
71823
|
if (this.stateChangedCallback)
|
71688
71824
|
this.stateChangedCallback();
|
71689
71825
|
}
|
@@ -71739,12 +71875,11 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
71739
71875
|
},
|
71740
71876
|
set: function (val) {
|
71741
71877
|
this.setPropertyValue("state", val);
|
71742
|
-
this.notifyStateChanged();
|
71743
71878
|
},
|
71744
71879
|
enumerable: false,
|
71745
71880
|
configurable: true
|
71746
71881
|
});
|
71747
|
-
SurveyElement.prototype.notifyStateChanged = function () {
|
71882
|
+
SurveyElement.prototype.notifyStateChanged = function (prevState) {
|
71748
71883
|
if (this.survey) {
|
71749
71884
|
this.survey.elementContentVisibilityChanged(this);
|
71750
71885
|
}
|
@@ -81862,10 +81997,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
81862
81997
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgIconRegistry", function() { return SvgIconRegistry; });
|
81863
81998
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgRegistry", function() { return SvgRegistry; });
|
81864
81999
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgBundleViewModel", function() { return SvgBundleViewModel; });
|
81865
|
-
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./settings */ "./src/settings.ts");
|
81866
|
-
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/utils */ "./src/utils/utils.ts");
|
81867
|
-
|
81868
|
-
|
81869
82000
|
var SvgIconData = /** @class */ (function () {
|
81870
82001
|
function SvgIconData() {
|
81871
82002
|
}
|
@@ -81927,16 +82058,6 @@ var SvgIconRegistry = /** @class */ (function () {
|
|
81927
82058
|
var _this = this;
|
81928
82059
|
return Object.keys(this.icons).map(function (icon) { return _this.icons[icon]; }).join("");
|
81929
82060
|
};
|
81930
|
-
SvgIconRegistry.prototype.renderIcons = function () {
|
81931
|
-
var containerId = "sv-icon-holder-global-container";
|
81932
|
-
if (!!_settings__WEBPACK_IMPORTED_MODULE_0__["settings"].environment && !_settings__WEBPACK_IMPORTED_MODULE_0__["settings"].environment.root.getElementById(containerId)) {
|
81933
|
-
var iconsDiv = document.createElement("div");
|
81934
|
-
iconsDiv.id = containerId;
|
81935
|
-
iconsDiv.innerHTML = "<svg>" + this.iconsRenderedHtml() + "</svg>";
|
81936
|
-
iconsDiv.style.display = "none";
|
81937
|
-
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_1__["getElement"])(_settings__WEBPACK_IMPORTED_MODULE_0__["settings"].environment.svgMountContainer).appendChild(iconsDiv);
|
81938
|
-
}
|
81939
|
-
};
|
81940
82061
|
return SvgIconRegistry;
|
81941
82062
|
}());
|
81942
82063
|
|
@@ -83389,13 +83510,14 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
83389
83510
|
})();
|
83390
83511
|
|
83391
83512
|
var ResponsivityManager = /** @class */ (function () {
|
83392
|
-
function ResponsivityManager(container, model, itemsSelector, dotsItemSize) {
|
83513
|
+
function ResponsivityManager(container, model, itemsSelector, dotsItemSize, delayedUpdateFunction) {
|
83393
83514
|
var _this = this;
|
83394
83515
|
if (dotsItemSize === void 0) { dotsItemSize = null; }
|
83395
83516
|
this.container = container;
|
83396
83517
|
this.model = model;
|
83397
83518
|
this.itemsSelector = itemsSelector;
|
83398
83519
|
this.dotsItemSize = dotsItemSize;
|
83520
|
+
this.delayedUpdateFunction = delayedUpdateFunction;
|
83399
83521
|
this.resizeObserver = undefined;
|
83400
83522
|
this.isInitialized = false;
|
83401
83523
|
this.minDimensionConst = 56;
|
@@ -83446,6 +83568,16 @@ var ResponsivityManager = /** @class */ (function () {
|
|
83446
83568
|
(currentAction.needSeparator ? this.separatorSize : 0)
|
83447
83569
|
: currentAction.maxDimension;
|
83448
83570
|
};
|
83571
|
+
ResponsivityManager.prototype.getRenderedVisibleActionsCount = function () {
|
83572
|
+
var _this = this;
|
83573
|
+
var count = 0;
|
83574
|
+
this.container.querySelectorAll(this.itemsSelector).forEach(function (item) {
|
83575
|
+
if (_this.calcItemSize(item) > 0) {
|
83576
|
+
count++;
|
83577
|
+
}
|
83578
|
+
});
|
83579
|
+
return count;
|
83580
|
+
};
|
83449
83581
|
ResponsivityManager.prototype.calcItemsSizes = function () {
|
83450
83582
|
var _this = this;
|
83451
83583
|
var actions = this.model.actions;
|
@@ -83471,18 +83603,8 @@ var ResponsivityManager = /** @class */ (function () {
|
|
83471
83603
|
if (this.isContainerVisible && !this.model.isResponsivenessDisabled) {
|
83472
83604
|
if (!this.isInitialized) {
|
83473
83605
|
this.model.setActionsMode("large");
|
83474
|
-
var recalcItemSizes = function () {
|
83475
|
-
_this.calcItemsSizes();
|
83476
|
-
_this.isInitialized = true;
|
83477
|
-
};
|
83478
|
-
if (queueMicrotask) {
|
83479
|
-
queueMicrotask(recalcItemSizes);
|
83480
|
-
}
|
83481
|
-
else {
|
83482
|
-
recalcItemSizes();
|
83483
|
-
}
|
83484
83606
|
}
|
83485
|
-
var
|
83607
|
+
var processResponsiveness_1 = function () {
|
83486
83608
|
var _a;
|
83487
83609
|
var dotsItemSize = _this.dotsItemSize;
|
83488
83610
|
if (!_this.dotsItemSize) {
|
@@ -83491,11 +83613,29 @@ var ResponsivityManager = /** @class */ (function () {
|
|
83491
83613
|
}
|
83492
83614
|
_this.model.fit(_this.getAvailableSpace(), dotsItemSize);
|
83493
83615
|
};
|
83494
|
-
if (
|
83495
|
-
|
83616
|
+
if (!this.isInitialized) {
|
83617
|
+
var callback = function () {
|
83618
|
+
_this.calcItemsSizes();
|
83619
|
+
_this.isInitialized = true;
|
83620
|
+
processResponsiveness_1();
|
83621
|
+
};
|
83622
|
+
if (this.getRenderedVisibleActionsCount() < this.model.visibleActions.length) {
|
83623
|
+
if (this.delayedUpdateFunction) {
|
83624
|
+
this.delayedUpdateFunction(callback);
|
83625
|
+
}
|
83626
|
+
else if (queueMicrotask) {
|
83627
|
+
queueMicrotask(callback);
|
83628
|
+
}
|
83629
|
+
else {
|
83630
|
+
callback();
|
83631
|
+
}
|
83632
|
+
}
|
83633
|
+
else {
|
83634
|
+
callback();
|
83635
|
+
}
|
83496
83636
|
}
|
83497
83637
|
else {
|
83498
|
-
|
83638
|
+
processResponsiveness_1();
|
83499
83639
|
}
|
83500
83640
|
}
|
83501
83641
|
};
|
@@ -83510,9 +83650,9 @@ var ResponsivityManager = /** @class */ (function () {
|
|
83510
83650
|
|
83511
83651
|
var VerticalResponsivityManager = /** @class */ (function (_super) {
|
83512
83652
|
__extends(VerticalResponsivityManager, _super);
|
83513
|
-
function VerticalResponsivityManager(container, model, itemsSelector, dotsItemSize, minDimension) {
|
83653
|
+
function VerticalResponsivityManager(container, model, itemsSelector, dotsItemSize, minDimension, delayedUpdateFunction) {
|
83514
83654
|
if (minDimension === void 0) { minDimension = 40; }
|
83515
|
-
var _this = _super.call(this, container, model, itemsSelector, dotsItemSize) || this;
|
83655
|
+
var _this = _super.call(this, container, model, itemsSelector, dotsItemSize, delayedUpdateFunction) || this;
|
83516
83656
|
_this.minDimensionConst = minDimension;
|
83517
83657
|
_this.recalcMinDimensionConst = false;
|
83518
83658
|
return _this;
|