survey-react 1.9.106 → 1.9.107
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 +47 -18
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +22 -4
- package/survey.react.js +166 -59
- 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.107
|
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
|
*/
|
@@ -1901,12 +1901,13 @@ var Base = /** @class */ (function () {
|
|
1901
1901
|
return {};
|
1902
1902
|
};
|
1903
1903
|
Base.prototype.dispose = function () {
|
1904
|
+
var _this = this;
|
1904
1905
|
for (var i = 0; i < this.eventList.length; i++) {
|
1905
1906
|
this.eventList[i].clear();
|
1906
1907
|
}
|
1907
1908
|
this.onPropertyValueChangedCallback = undefined;
|
1908
1909
|
this.isDisposedValue = true;
|
1909
|
-
Object.
|
1910
|
+
Object.keys(this.dependencies).forEach(function (key) { return _this.dependencies[key].dispose(); });
|
1910
1911
|
};
|
1911
1912
|
Object.defineProperty(Base.prototype, "isDisposed", {
|
1912
1913
|
get: function () {
|
@@ -6958,9 +6959,12 @@ var DragDropDOMAdapter = /** @class */ (function () {
|
|
6958
6959
|
var _this = this;
|
6959
6960
|
cancelAnimationFrame(this.scrollIntervalId);
|
6960
6961
|
var startScrollBoundary = 100;
|
6961
|
-
this.draggedElementShortcut.
|
6962
|
+
var displayProp = this.draggedElementShortcut.style.display;
|
6963
|
+
//this.draggedElementShortcut.hidden = true;
|
6964
|
+
this.draggedElementShortcut.style.display = "none";
|
6962
6965
|
var dragOverNode = document.elementFromPoint(clientX, clientY);
|
6963
|
-
this.draggedElementShortcut.hidden = false;
|
6966
|
+
//this.draggedElementShortcut.hidden = false;
|
6967
|
+
this.draggedElementShortcut.style.display = displayProp || "block";
|
6964
6968
|
var scrollableParentNode = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_0__["findScrollableParent"])(dragOverNode);
|
6965
6969
|
var top;
|
6966
6970
|
var bottom;
|
@@ -9210,8 +9214,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
9210
9214
|
//import "../../modern.scss";
|
9211
9215
|
var Version;
|
9212
9216
|
var ReleaseDate;
|
9213
|
-
Version = "" + "1.9.
|
9214
|
-
ReleaseDate = "" + "2023-09-
|
9217
|
+
Version = "" + "1.9.107";
|
9218
|
+
ReleaseDate = "" + "2023-09-11";
|
9215
9219
|
function checkLibraryVersion(ver, libraryName) {
|
9216
9220
|
if (Version != ver) {
|
9217
9221
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -10295,7 +10299,7 @@ var defaultBootstrapMaterialCss = _plugins_themes_bootstrapmaterial_cssbootstrap
|
|
10295
10299
|
/*!***************************************!*\
|
10296
10300
|
!*** ./src/entries/react-ui-model.ts ***!
|
10297
10301
|
\***************************************/
|
10298
|
-
/*! 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, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, 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, SurveyLocStringViewer, SurveyLocStringEditor */
|
10302
|
+
/*! 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, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, 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, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent */
|
10299
10303
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10300
10304
|
|
10301
10305
|
"use strict";
|
@@ -10553,6 +10557,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
10553
10557
|
/* harmony import */ var _react_string_editor__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../react/string-editor */ "./src/react/string-editor.tsx");
|
10554
10558
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringEditor", function() { return _react_string_editor__WEBPACK_IMPORTED_MODULE_74__["SurveyLocStringEditor"]; });
|
10555
10559
|
|
10560
|
+
/* harmony import */ var _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../react/components/loading-indicator */ "./src/react/components/loading-indicator.tsx");
|
10561
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_75__["LoadingIndicatorComponent"]; });
|
10562
|
+
|
10556
10563
|
// react
|
10557
10564
|
|
10558
10565
|
|
@@ -10627,6 +10634,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10627
10634
|
|
10628
10635
|
|
10629
10636
|
|
10637
|
+
|
10630
10638
|
|
10631
10639
|
|
10632
10640
|
//Uncomment to include the "date" question type.
|
@@ -10639,7 +10647,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10639
10647
|
/*!******************************!*\
|
10640
10648
|
!*** ./src/entries/react.ts ***!
|
10641
10649
|
\******************************/
|
10642
|
-
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, 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, 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, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, 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, SurveyLocStringViewer, SurveyLocStringEditor */
|
10650
|
+
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, 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, 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, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, 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, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent */
|
10643
10651
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10644
10652
|
|
10645
10653
|
"use strict";
|
@@ -11264,6 +11272,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
11264
11272
|
|
11265
11273
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringEditor", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["SurveyLocStringEditor"]; });
|
11266
11274
|
|
11275
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["LoadingIndicatorComponent"]; });
|
11276
|
+
|
11267
11277
|
|
11268
11278
|
// themes settings
|
11269
11279
|
|
@@ -15083,7 +15093,7 @@ var Const = /** @class */ (function (_super) {
|
|
15083
15093
|
if (OperandMaker.isNumeric(value)) {
|
15084
15094
|
if (value.indexOf("0x") == 0)
|
15085
15095
|
return parseInt(value);
|
15086
|
-
if (value.length > 1 && value[0] == "0")
|
15096
|
+
if (value.length > 1 && value[0] == "0" && (value.length < 2 || (value[1] !== "." && value[1] !== ",")))
|
15087
15097
|
return value;
|
15088
15098
|
return parseFloat(value);
|
15089
15099
|
}
|
@@ -16424,6 +16434,8 @@ var Helpers = /** @class */ (function () {
|
|
16424
16434
|
}
|
16425
16435
|
return a + b;
|
16426
16436
|
}
|
16437
|
+
if (typeof a === "string" || typeof b === "string")
|
16438
|
+
return a + b;
|
16427
16439
|
return Helpers.correctAfterPlusMinis(a, b, a + b);
|
16428
16440
|
};
|
16429
16441
|
Helpers.correctAfterMultiple = function (a, b, res) {
|
@@ -16546,6 +16558,7 @@ var map = {
|
|
16546
16558
|
"./clear_16x16.svg": "./src/images/clear_16x16.svg",
|
16547
16559
|
"./collapseDetail.svg": "./src/images/collapseDetail.svg",
|
16548
16560
|
"./expandDetail.svg": "./src/images/expandDetail.svg",
|
16561
|
+
"./loading.svg": "./src/images/loading.svg",
|
16549
16562
|
"./no-image.svg": "./src/images/no-image.svg",
|
16550
16563
|
"./rating-star-2.svg": "./src/images/rating-star-2.svg",
|
16551
16564
|
"./rating-star-small-2.svg": "./src/images/rating-star-small-2.svg",
|
@@ -16906,6 +16919,17 @@ module.exports = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\
|
|
16906
16919
|
|
16907
16920
|
/***/ }),
|
16908
16921
|
|
16922
|
+
/***/ "./src/images/loading.svg":
|
16923
|
+
/*!********************************!*\
|
16924
|
+
!*** ./src/images/loading.svg ***!
|
16925
|
+
\********************************/
|
16926
|
+
/*! no static exports found */
|
16927
|
+
/***/ (function(module, exports) {
|
16928
|
+
|
16929
|
+
module.exports = "<svg viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_885_24957)\"><path opacity=\"0.1\" d=\"M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z\" fill=\"black\" fill-opacity=\"0.91\"></path><path d=\"M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z\" fill=\"#19B394\"></path></g><defs><clipPath id=\"clip0_885_24957\"><rect width=\"32\" height=\"32\" fill=\"white\" transform=\"translate(8 8)\"></rect></clipPath></defs></svg>"
|
16930
|
+
|
16931
|
+
/***/ }),
|
16932
|
+
|
16909
16933
|
/***/ "./src/images/no-image.svg":
|
16910
16934
|
/*!*********************************!*\
|
16911
16935
|
!*** ./src/images/no-image.svg ***!
|
@@ -28242,9 +28266,10 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
28242
28266
|
PanelModelBase.prototype.canShowTitle = function () { return true; };
|
28243
28267
|
Object.defineProperty(PanelModelBase.prototype, "_showDescription", {
|
28244
28268
|
get: function () {
|
28269
|
+
if (!this.hasTitle && this.isDesignMode)
|
28270
|
+
return false;
|
28245
28271
|
return this.survey && this.survey.showPageTitles && this.hasDescription ||
|
28246
28272
|
(this.showDescription && this.isDesignMode &&
|
28247
|
-
_settings__WEBPACK_IMPORTED_MODULE_7__["settings"].designMode.showEmptyTitles &&
|
28248
28273
|
_settings__WEBPACK_IMPORTED_MODULE_7__["settings"].designMode.showEmptyDescriptions);
|
28249
28274
|
},
|
28250
28275
|
enumerable: false,
|
@@ -31451,6 +31476,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
31451
31476
|
/* harmony import */ var _popup_view_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./popup-view-model */ "./src/popup-view-model.ts");
|
31452
31477
|
/* harmony import */ var _utils_devices__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/devices */ "./src/utils/devices.ts");
|
31453
31478
|
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./settings */ "./src/settings.ts");
|
31479
|
+
/* harmony import */ var _survey__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./survey */ "./src/survey.ts");
|
31454
31480
|
var __extends = (undefined && undefined.__extends) || (function () {
|
31455
31481
|
var extendStatics = function (d, b) {
|
31456
31482
|
extendStatics = Object.setPrototypeOf ||
|
@@ -31477,6 +31503,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
31477
31503
|
|
31478
31504
|
|
31479
31505
|
|
31506
|
+
|
31480
31507
|
var PopupDropdownViewModel = /** @class */ (function (_super) {
|
31481
31508
|
__extends(PopupDropdownViewModel, _super);
|
31482
31509
|
function PopupDropdownViewModel(model, targetElement) {
|
@@ -31496,7 +31523,7 @@ var PopupDropdownViewModel = /** @class */ (function (_super) {
|
|
31496
31523
|
};
|
31497
31524
|
_this.resizeWindowCallback = function () {
|
31498
31525
|
if (!_this.isOverlay) {
|
31499
|
-
_this.updatePosition(true,
|
31526
|
+
_this.updatePosition(true, _survey__WEBPACK_IMPORTED_MODULE_5__["SurveyModel"].platform === "vue" || _survey__WEBPACK_IMPORTED_MODULE_5__["SurveyModel"].platform === "vue3");
|
31500
31527
|
}
|
31501
31528
|
};
|
31502
31529
|
_this.clientY = 0;
|
@@ -31540,8 +31567,8 @@ var PopupDropdownViewModel = /** @class */ (function (_super) {
|
|
31540
31567
|
this.popupDirection = _utils_popup__WEBPACK_IMPORTED_MODULE_1__["PopupUtils"].calculatePopupDirection(verticalPosition, actualHorizontalPosition);
|
31541
31568
|
var pos = _utils_popup__WEBPACK_IMPORTED_MODULE_1__["PopupUtils"].calculatePosition(targetElementRect, height, width + marginLeft + marginRight, verticalPosition, actualHorizontalPosition, this.showHeader, this.model.positionMode);
|
31542
31569
|
if (!!window) {
|
31543
|
-
var newVerticalDimensions = _utils_popup__WEBPACK_IMPORTED_MODULE_1__["PopupUtils"].
|
31544
|
-
if (!!newVerticalDimensions) {
|
31570
|
+
var newVerticalDimensions = _utils_popup__WEBPACK_IMPORTED_MODULE_1__["PopupUtils"].getCorrectedVerticalDimensions(pos.top, height, window.innerHeight);
|
31571
|
+
if (!!newVerticalDimensions.height) {
|
31545
31572
|
this.height = newVerticalDimensions.height + "px";
|
31546
31573
|
pos.top = newVerticalDimensions.top;
|
31547
31574
|
}
|
@@ -34744,13 +34771,15 @@ var Question = /** @class */ (function (_super) {
|
|
34744
34771
|
return this.checkIfAnswerCorrect() ? 1 : 0;
|
34745
34772
|
};
|
34746
34773
|
Question.prototype.checkIfAnswerCorrect = function () {
|
34747
|
-
var isEqual =
|
34748
|
-
var
|
34774
|
+
var isEqual = _helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isTwoValueEquals(this.value, this.correctAnswer, this.getAnswerCorrectIgnoreOrder(), _settings__WEBPACK_IMPORTED_MODULE_8__["settings"].comparator.caseSensitive, true);
|
34775
|
+
var correct = isEqual ? 1 : 0;
|
34776
|
+
var options = { result: isEqual, correctAnswer: correct, correctAnswers: correct, incorrectAnswers: this.quizQuestionCount - correct };
|
34749
34777
|
if (!!this.survey) {
|
34750
34778
|
this.survey.onCorrectQuestionAnswer(this, options);
|
34751
34779
|
}
|
34752
34780
|
return options.result;
|
34753
34781
|
};
|
34782
|
+
Question.prototype.getAnswerCorrectIgnoreOrder = function () { return false; };
|
34754
34783
|
/**
|
34755
34784
|
* Returns `true` if a question answer matches the `correctAnswer` property value.
|
34756
34785
|
*
|
@@ -35261,7 +35290,9 @@ var Question = /** @class */ (function (_super) {
|
|
35261
35290
|
}
|
35262
35291
|
if (!this.checkIsValueCorrect(newValue))
|
35263
35292
|
return;
|
35293
|
+
this.isChangingViaDefaultValue = true;
|
35264
35294
|
this.setQuestionValue(this.valueFromData(newValue));
|
35295
|
+
this.isChangingViaDefaultValue = false;
|
35265
35296
|
this.updateDependedQuestions();
|
35266
35297
|
this.updateIsAnswered();
|
35267
35298
|
};
|
@@ -38953,6 +38984,7 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
38953
38984
|
return this.selectedChoices;
|
38954
38985
|
};
|
38955
38986
|
QuestionCheckboxModel.prototype.validateItemValues = function (itemValues) {
|
38987
|
+
var _this = this;
|
38956
38988
|
if (!!itemValues.length)
|
38957
38989
|
return itemValues;
|
38958
38990
|
var selectedItemValues = this.selectedItemValues;
|
@@ -38961,8 +38993,9 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
38961
38993
|
return selectedItemValues;
|
38962
38994
|
}
|
38963
38995
|
var val = this.renderedValue;
|
38964
|
-
return val.map(function (item) { return
|
38996
|
+
return val.map(function (item) { return _this.createItemValue(item); });
|
38965
38997
|
};
|
38998
|
+
QuestionCheckboxModel.prototype.getAnswerCorrectIgnoreOrder = function () { return true; };
|
38966
38999
|
QuestionCheckboxModel.prototype.onCheckForErrors = function (errors, isOnValueChanged) {
|
38967
39000
|
_super.prototype.onCheckForErrors.call(this, errors, isOnValueChanged);
|
38968
39001
|
if (isOnValueChanged)
|
@@ -40460,10 +40493,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
40460
40493
|
/* harmony import */ var _jsonobject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./jsonobject */ "./src/jsonobject.ts");
|
40461
40494
|
/* harmony import */ var _questionfactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./questionfactory */ "./src/questionfactory.ts");
|
40462
40495
|
/* harmony import */ var _question_baseselect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./question_baseselect */ "./src/question_baseselect.ts");
|
40463
|
-
/* harmony import */ var
|
40464
|
-
/* harmony import */ var
|
40465
|
-
/* harmony import */ var
|
40466
|
-
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./settings */ "./src/settings.ts");
|
40496
|
+
/* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
|
40497
|
+
/* harmony import */ var _dropdownListModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dropdownListModel */ "./src/dropdownListModel.ts");
|
40498
|
+
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./settings */ "./src/settings.ts");
|
40467
40499
|
var __extends = (undefined && undefined.__extends) || (function () {
|
40468
40500
|
var extendStatics = function (d, b) {
|
40469
40501
|
extendStatics = Object.setPrototypeOf ||
|
@@ -40491,7 +40523,6 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
40491
40523
|
|
40492
40524
|
|
40493
40525
|
|
40494
|
-
|
40495
40526
|
/**
|
40496
40527
|
* A class that describes the Dropdown question type.
|
40497
40528
|
*
|
@@ -40627,7 +40658,7 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
40627
40658
|
(this.choicesMax - this.choicesMin) / this.choicesStep + 1) {
|
40628
40659
|
this.minMaxChoices = [];
|
40629
40660
|
for (var i = this.choicesMin; i <= this.choicesMax; i += this.choicesStep) {
|
40630
|
-
this.minMaxChoices.push(
|
40661
|
+
this.minMaxChoices.push(this.createItemValue(i));
|
40631
40662
|
}
|
40632
40663
|
}
|
40633
40664
|
res = res.concat(this.minMaxChoices);
|
@@ -40711,7 +40742,7 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
40711
40742
|
configurable: true
|
40712
40743
|
});
|
40713
40744
|
QuestionDropdownModel.prototype.getControlClass = function () {
|
40714
|
-
return new
|
40745
|
+
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_3__["CssClassBuilder"]()
|
40715
40746
|
.append(this.cssClasses.control)
|
40716
40747
|
.append(this.cssClasses.controlEmpty, this.isEmpty())
|
40717
40748
|
.append(this.cssClasses.onError, this.errors.length > 0)
|
@@ -40759,7 +40790,7 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
40759
40790
|
Object.defineProperty(QuestionDropdownModel.prototype, "dropdownListModel", {
|
40760
40791
|
get: function () {
|
40761
40792
|
if (this.renderAs !== "select" && !this.dropdownListModelValue) {
|
40762
|
-
this.dropdownListModelValue = new
|
40793
|
+
this.dropdownListModelValue = new _dropdownListModel__WEBPACK_IMPORTED_MODULE_4__["DropdownListModel"](this);
|
40763
40794
|
}
|
40764
40795
|
return this.dropdownListModelValue;
|
40765
40796
|
},
|
@@ -40885,7 +40916,7 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("dropdown", [
|
|
40885
40916
|
{ name: "choicesMin:number", default: 0 },
|
40886
40917
|
{ name: "choicesMax:number", default: 0 },
|
40887
40918
|
{ name: "choicesStep:number", default: 1, minValue: 1 },
|
40888
|
-
{ name: "autocomplete", alternativeName: "autoComplete", choices:
|
40919
|
+
{ name: "autocomplete", alternativeName: "autoComplete", choices: _settings__WEBPACK_IMPORTED_MODULE_5__["settings"].questions.dataList, },
|
40889
40920
|
{ name: "renderAs", default: "default", visible: false },
|
40890
40921
|
{ name: "searchEnabled:boolean", default: true, visible: false },
|
40891
40922
|
{ name: "choicesLazyLoadEnabled:boolean", default: false, visible: false },
|
@@ -41890,16 +41921,47 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
41890
41921
|
enumerable: false,
|
41891
41922
|
configurable: true
|
41892
41923
|
});
|
41924
|
+
Object.defineProperty(QuestionFileModel.prototype, "showChooseButton", {
|
41925
|
+
get: function () {
|
41926
|
+
return !this.showLoadingIndicator;
|
41927
|
+
},
|
41928
|
+
enumerable: false,
|
41929
|
+
configurable: true
|
41930
|
+
});
|
41931
|
+
Object.defineProperty(QuestionFileModel.prototype, "showLoadingIndicator", {
|
41932
|
+
get: function () {
|
41933
|
+
return this.isUploading && this.isDefaultV2Theme;
|
41934
|
+
},
|
41935
|
+
enumerable: false,
|
41936
|
+
configurable: true
|
41937
|
+
});
|
41938
|
+
Object.defineProperty(QuestionFileModel.prototype, "allowShowPreview", {
|
41939
|
+
get: function () {
|
41940
|
+
return this.previewValue && this.previewValue.length > 0 && !this.showLoadingIndicator;
|
41941
|
+
},
|
41942
|
+
enumerable: false,
|
41943
|
+
configurable: true
|
41944
|
+
});
|
41945
|
+
Object.defineProperty(QuestionFileModel.prototype, "showRemoveButtonCore", {
|
41946
|
+
get: function () {
|
41947
|
+
var showLoadingIndicator = this.showLoadingIndicator;
|
41948
|
+
var isReadOnly = this.isReadOnly;
|
41949
|
+
var isEmpty = this.isEmpty();
|
41950
|
+
return !isReadOnly && !isEmpty && !showLoadingIndicator;
|
41951
|
+
},
|
41952
|
+
enumerable: false,
|
41953
|
+
configurable: true
|
41954
|
+
});
|
41893
41955
|
Object.defineProperty(QuestionFileModel.prototype, "showRemoveButton", {
|
41894
41956
|
get: function () {
|
41895
|
-
return
|
41957
|
+
return this.showRemoveButtonCore && this.cssClasses.removeButton;
|
41896
41958
|
},
|
41897
41959
|
enumerable: false,
|
41898
41960
|
configurable: true
|
41899
41961
|
});
|
41900
41962
|
Object.defineProperty(QuestionFileModel.prototype, "showRemoveButtonBottom", {
|
41901
41963
|
get: function () {
|
41902
|
-
return
|
41964
|
+
return this.showRemoveButtonCore && this.cssClasses.removeButtonBottom;
|
41903
41965
|
},
|
41904
41966
|
enumerable: false,
|
41905
41967
|
configurable: true
|
@@ -42175,6 +42237,9 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
42175
42237
|
var previewIndex = this.previewValue.indexOf(data);
|
42176
42238
|
this.removeFileByContent(previewIndex === -1 ? data : this.value[previewIndex]);
|
42177
42239
|
};
|
42240
|
+
__decorate([
|
42241
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
42242
|
+
], QuestionFileModel.prototype, "isUploading", void 0);
|
42178
42243
|
__decorate([
|
42179
42244
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
42180
42245
|
], QuestionFileModel.prototype, "isDragging", void 0);
|
@@ -58599,6 +58664,52 @@ _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.re
|
|
58599
58664
|
});
|
58600
58665
|
|
58601
58666
|
|
58667
|
+
/***/ }),
|
58668
|
+
|
58669
|
+
/***/ "./src/react/components/loading-indicator.tsx":
|
58670
|
+
/*!****************************************************!*\
|
58671
|
+
!*** ./src/react/components/loading-indicator.tsx ***!
|
58672
|
+
\****************************************************/
|
58673
|
+
/*! exports provided: LoadingIndicatorComponent */
|
58674
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
58675
|
+
|
58676
|
+
"use strict";
|
58677
|
+
__webpack_require__.r(__webpack_exports__);
|
58678
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return LoadingIndicatorComponent; });
|
58679
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
58680
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
58681
|
+
/* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
|
58682
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
58683
|
+
var extendStatics = function (d, b) {
|
58684
|
+
extendStatics = Object.setPrototypeOf ||
|
58685
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
58686
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
58687
|
+
return extendStatics(d, b);
|
58688
|
+
};
|
58689
|
+
return function (d, b) {
|
58690
|
+
if (typeof b !== "function" && b !== null)
|
58691
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
58692
|
+
extendStatics(d, b);
|
58693
|
+
function __() { this.constructor = d; }
|
58694
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
58695
|
+
};
|
58696
|
+
})();
|
58697
|
+
|
58698
|
+
|
58699
|
+
var LoadingIndicatorComponent = /** @class */ (function (_super) {
|
58700
|
+
__extends(LoadingIndicatorComponent, _super);
|
58701
|
+
function LoadingIndicatorComponent() {
|
58702
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
58703
|
+
}
|
58704
|
+
LoadingIndicatorComponent.prototype.render = function () {
|
58705
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "sd-loading-indicator" },
|
58706
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_1__["SvgIcon"], { iconName: "icon-loading", size: "auto" })));
|
58707
|
+
};
|
58708
|
+
return LoadingIndicatorComponent;
|
58709
|
+
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
|
58710
|
+
|
58711
|
+
|
58712
|
+
|
58602
58713
|
/***/ }),
|
58603
58714
|
|
58604
58715
|
/***/ "./src/react/components/matrix-actions/detail-button/detail-button.tsx":
|
@@ -64097,6 +64208,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
64097
64208
|
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
64098
64209
|
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/react/reactquestion_factory.tsx");
|
64099
64210
|
/* harmony import */ var _reactSurvey__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./reactSurvey */ "./src/react/reactSurvey.tsx");
|
64211
|
+
/* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/loading-indicator */ "./src/react/components/loading-indicator.tsx");
|
64100
64212
|
var __extends = (undefined && undefined.__extends) || (function () {
|
64101
64213
|
var extendStatics = function (d, b) {
|
64102
64214
|
extendStatics = Object.setPrototypeOf ||
|
@@ -64118,6 +64230,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
64118
64230
|
|
64119
64231
|
|
64120
64232
|
|
64233
|
+
|
64121
64234
|
var SurveyQuestionFile = /** @class */ (function (_super) {
|
64122
64235
|
__extends(SurveyQuestionFile, _super);
|
64123
64236
|
function SurveyQuestionFile(props) {
|
@@ -64130,13 +64243,16 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
64130
64243
|
enumerable: false,
|
64131
64244
|
configurable: true
|
64132
64245
|
});
|
64246
|
+
SurveyQuestionFile.prototype.renderLoadingIndicator = function () {
|
64247
|
+
return this.question.showLoadingIndicator ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_loading_indicator__WEBPACK_IMPORTED_MODULE_6__["LoadingIndicatorComponent"], null) : null;
|
64248
|
+
};
|
64133
64249
|
SurveyQuestionFile.prototype.renderElement = function () {
|
64134
64250
|
var _this = this;
|
64135
64251
|
var preview = this.renderPreview();
|
64136
64252
|
var fileInput = null;
|
64137
64253
|
var fileDecorator = this.renderFileDecorator();
|
64138
|
-
var clearButton = this.renderClearButton(this.question.
|
64139
|
-
var clearButtonBottom = this.renderClearButton(this.question.
|
64254
|
+
var clearButton = this.question.showRemoveButton ? this.renderClearButton(this.question.cssClasses.removeButton) : null;
|
64255
|
+
var clearButtonBottom = this.question.showRemoveButtonBottom ? this.renderClearButton(this.question.cssClasses.removeButtonBottom) : null;
|
64140
64256
|
var mobileFileNavigator = this.question.mobileFileNavigatorVisible ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__["SurveyActionBar"], { model: this.question.mobileFileNavigator })) : null;
|
64141
64257
|
fileInput = (this.isDisplayMode ?
|
64142
64258
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "file", disabled: this.isDisplayMode, className: !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss(), id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: !this.isDisplayMode ? {} : { color: "transparent" }, onChange: !this.isDisplayMode ? this.question.doChange : (function () { }), multiple: this.question.allowMultiple, placeholder: this.question.title, accept: this.question.acceptedTypes })
|
@@ -64152,23 +64268,31 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
64152
64268
|
mobileFileNavigator)));
|
64153
64269
|
};
|
64154
64270
|
SurveyQuestionFile.prototype.renderFileDecorator = function () {
|
64155
|
-
var
|
64271
|
+
var loadingIndicator = this.renderLoadingIndicator();
|
64272
|
+
var chooseButton = this.renderChooseButton();
|
64273
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.getFileDecoratorCss() },
|
64274
|
+
loadingIndicator,
|
64275
|
+
chooseButton));
|
64276
|
+
};
|
64277
|
+
SurveyQuestionFile.prototype.renderChooseButton = function () {
|
64156
64278
|
var noFileChosen = null;
|
64157
64279
|
var chooseFile = null;
|
64280
|
+
if (!this.question.showChooseButton)
|
64281
|
+
return null;
|
64158
64282
|
chooseFile = this.question.isReadOnly ? null : Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_5__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { role: "button", tabIndex: 0, className: this.question.getChooseFileCss(), htmlFor: this.question.inputId, "aria-label": this.question.chooseButtonText },
|
64159
64283
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, this.question.chooseButtonText),
|
64160
64284
|
(!!this.question.cssClasses.chooseFileIconId) ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { title: this.question.chooseButtonText, iconName: this.question.cssClasses.chooseFileIconId, size: "auto" }) : null));
|
64161
64285
|
if (this.question.isEmpty()) {
|
64162
64286
|
noFileChosen = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.cssClasses.noFileChosen }, this.question.noFileChosenCaption));
|
64163
64287
|
}
|
64164
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("
|
64288
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
|
64165
64289
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.question.renderedPlaceholder),
|
64166
64290
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.wrapper },
|
64167
64291
|
chooseFile,
|
64168
64292
|
noFileChosen)));
|
64169
64293
|
};
|
64170
64294
|
SurveyQuestionFile.prototype.renderClearButton = function (className) {
|
64171
|
-
return
|
64295
|
+
return !this.question.isUploading ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("button", { type: "button", onClick: this.question.doClean, className: className },
|
64172
64296
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, this.question.clearButtonCaption),
|
64173
64297
|
(!!this.question.cssClasses.removeButtonIconId) ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.removeButtonIconId, size: "auto", title: this.question.clearButtonCaption }) : null)) : null;
|
64174
64298
|
};
|
@@ -64183,7 +64307,7 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
64183
64307
|
};
|
64184
64308
|
SurveyQuestionFile.prototype.renderPreview = function () {
|
64185
64309
|
var _this = this;
|
64186
|
-
if (!this.question.
|
64310
|
+
if (!this.question.allowShowPreview)
|
64187
64311
|
return null;
|
64188
64312
|
var previews = this.question.previewValue.map(function (val, index) {
|
64189
64313
|
if (!val)
|
@@ -68108,7 +68232,7 @@ var SurveyElementCore = /** @class */ (function (_super) {
|
|
68108
68232
|
var property_1 = _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].findProperty(this.getType(), "description");
|
68109
68233
|
showPlaceholder = !!(property_1 === null || property_1 === void 0 ? void 0 : property_1.placeholder);
|
68110
68234
|
}
|
68111
|
-
this.hasDescription = !!newDescription || showPlaceholder;
|
68235
|
+
this.hasDescription = !!newDescription || (showPlaceholder && this.isDesignMode);
|
68112
68236
|
};
|
68113
68237
|
Object.defineProperty(SurveyElementCore.prototype, "locDescription", {
|
68114
68238
|
get: function () {
|
@@ -68577,6 +68701,7 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
68577
68701
|
this.onSetData();
|
68578
68702
|
}
|
68579
68703
|
if (!!this.survey) {
|
68704
|
+
this.updateDescriptionVisibility(this.description);
|
68580
68705
|
this.clearCssClasses();
|
68581
68706
|
}
|
68582
68707
|
};
|
@@ -76511,7 +76636,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
76511
76636
|
return options.html;
|
76512
76637
|
};
|
76513
76638
|
SurveyModel.prototype.getCorrectedAnswerCount = function () {
|
76514
|
-
return this.
|
76639
|
+
return this.getCorrectAnswerCount();
|
76515
76640
|
};
|
76516
76641
|
/**
|
76517
76642
|
* Returns the number of correct answers in a quiz.
|
@@ -76542,7 +76667,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
76542
76667
|
return res;
|
76543
76668
|
};
|
76544
76669
|
SurveyModel.prototype.getInCorrectedAnswerCount = function () {
|
76545
|
-
return this.
|
76670
|
+
return this.getInCorrectAnswerCount();
|
76546
76671
|
};
|
76547
76672
|
/**
|
76548
76673
|
* Returns the number of incorrect answers in a quiz.
|
@@ -76563,32 +76688,14 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
76563
76688
|
SurveyModel.prototype.getCorrectedAnswerCountCore = function (isCorrect) {
|
76564
76689
|
var questions = this.getQuizQuestions();
|
76565
76690
|
var counter = 0;
|
76566
|
-
var options = {
|
76567
|
-
question: null,
|
76568
|
-
result: false,
|
76569
|
-
correctAnswers: 0,
|
76570
|
-
incorrectAnswers: 0,
|
76571
|
-
};
|
76572
76691
|
for (var i = 0; i < questions.length; i++) {
|
76573
76692
|
var q = questions[i];
|
76574
|
-
var
|
76575
|
-
options.question = q;
|
76576
|
-
options.correctAnswers = q.correctAnswerCount;
|
76577
|
-
options.incorrectAnswers = quizQuestionCount - options.correctAnswers;
|
76578
|
-
options.result = options.question.isAnswerCorrect();
|
76579
|
-
this.onIsAnswerCorrect.fire(this, options);
|
76693
|
+
var correctCount = q.correctAnswerCount;
|
76580
76694
|
if (isCorrect) {
|
76581
|
-
|
76582
|
-
var addCount = options.correctAnswers;
|
76583
|
-
if (addCount == 0 && options.result)
|
76584
|
-
addCount = 1;
|
76585
|
-
counter += addCount;
|
76586
|
-
}
|
76695
|
+
counter += correctCount;
|
76587
76696
|
}
|
76588
76697
|
else {
|
76589
|
-
|
76590
|
-
counter += options.incorrectAnswers;
|
76591
|
-
}
|
76698
|
+
counter += q.quizQuestionCount - correctCount;
|
76592
76699
|
}
|
76593
76700
|
}
|
76594
76701
|
return counter;
|
@@ -79378,8 +79485,8 @@ var PopupUtils = /** @class */ (function () {
|
|
79378
79485
|
}
|
79379
79486
|
return { left: Math.round(currentLeft), top: Math.round(currentTop) };
|
79380
79487
|
};
|
79381
|
-
PopupUtils.
|
79382
|
-
var result;
|
79488
|
+
PopupUtils.getCorrectedVerticalDimensions = function (top, height, windowHeight) {
|
79489
|
+
var result = { height: height, top: top };
|
79383
79490
|
if (top < 0) {
|
79384
79491
|
result = { height: height + top, top: 0 };
|
79385
79492
|
}
|