survey-react 1.9.99 → 1.9.101
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 +13 -15
- 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 +34 -7
- package/survey.react.js +271 -63
- 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.101
|
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
|
*/
|
@@ -1966,6 +1966,7 @@ var Base = /** @class */ (function () {
|
|
1966
1966
|
};
|
1967
1967
|
Base.prototype.startLoadingFromJson = function (json) {
|
1968
1968
|
this.isLoadingFromJsonValue = true;
|
1969
|
+
this.jsonObj = json;
|
1969
1970
|
};
|
1970
1971
|
Base.prototype.endLoadingFromJson = function () {
|
1971
1972
|
this.isLoadingFromJsonValue = false;
|
@@ -7763,7 +7764,7 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
7763
7764
|
Object.defineProperty(DropdownListModel.prototype, "showHintString", {
|
7764
7765
|
get: function () {
|
7765
7766
|
return !!this.question.searchEnabled && this.hintStringLC && this.hintStringLC.indexOf(this.inputStringLC) >= 0 ||
|
7766
|
-
!this.question.searchEnabled && this.hintStringLC &&
|
7767
|
+
!this.question.searchEnabled && this.hintStringLC && this.question.isEmpty();
|
7767
7768
|
},
|
7768
7769
|
enumerable: false,
|
7769
7770
|
configurable: true
|
@@ -8588,13 +8589,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
8588
8589
|
/*!*************************************!*\
|
8589
8590
|
!*** ./src/entries/chunks/model.ts ***!
|
8590
8591
|
\*************************************/
|
8591
|
-
/*! exports provided: Version, checkLibraryVersion, 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, 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, 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, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank */
|
8592
|
+
/*! 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, 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, 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, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank */
|
8592
8593
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
8593
8594
|
|
8594
8595
|
"use strict";
|
8595
8596
|
__webpack_require__.r(__webpack_exports__);
|
8596
8597
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Version", function() { return Version; });
|
8598
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReleaseDate", function() { return ReleaseDate; });
|
8597
8599
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkLibraryVersion", function() { return checkLibraryVersion; });
|
8600
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLicenseKey", function() { return setLicenseKey; });
|
8601
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasLicense", function() { return hasLicense; });
|
8598
8602
|
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../settings */ "./src/settings.ts");
|
8599
8603
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return _settings__WEBPACK_IMPORTED_MODULE_0__["settings"]; });
|
8600
8604
|
|
@@ -9043,7 +9047,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
9043
9047
|
// import "../../main.scss";
|
9044
9048
|
//import "../../modern.scss";
|
9045
9049
|
var Version;
|
9046
|
-
|
9050
|
+
var ReleaseDate;
|
9051
|
+
Version = "" + "1.9.101";
|
9052
|
+
ReleaseDate = "" + "2023-08-01";
|
9047
9053
|
function checkLibraryVersion(ver, libraryName) {
|
9048
9054
|
if (Version != ver) {
|
9049
9055
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -9052,6 +9058,46 @@ function checkLibraryVersion(ver, libraryName) {
|
|
9052
9058
|
console.error(str);
|
9053
9059
|
}
|
9054
9060
|
}
|
9061
|
+
function setLicenseKey(key) {
|
9062
|
+
slk(key, lic, ReleaseDate);
|
9063
|
+
}
|
9064
|
+
function hasLicense(index) {
|
9065
|
+
return lic[index.toString()] === true;
|
9066
|
+
}
|
9067
|
+
var lic = {};
|
9068
|
+
function slk(k, lh, rd) {
|
9069
|
+
if (!k)
|
9070
|
+
return;
|
9071
|
+
var en = function (s) {
|
9072
|
+
var e = {}, i, b = 0, c, x, l = 0, a, r = "", w = String.fromCharCode, L = s.length;
|
9073
|
+
var A = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
9074
|
+
for (i = 0; i < 64; i++) {
|
9075
|
+
e[A.charAt(i)] = i;
|
9076
|
+
}
|
9077
|
+
for (x = 0; x < L; x++) {
|
9078
|
+
var c_1 = e[s.charAt(x)];
|
9079
|
+
b = (b << 6) + c_1;
|
9080
|
+
l += 6;
|
9081
|
+
while (l >= 8) {
|
9082
|
+
((a = (b >>> (l -= 8)) & 0xff) || (x < (L - 2))) && (r += w(a));
|
9083
|
+
}
|
9084
|
+
}
|
9085
|
+
return r;
|
9086
|
+
};
|
9087
|
+
var v = en(k);
|
9088
|
+
if (!v)
|
9089
|
+
return;
|
9090
|
+
var index = v.indexOf(";");
|
9091
|
+
if (index < 0)
|
9092
|
+
return;
|
9093
|
+
v = v.substring(index + 1);
|
9094
|
+
v.split(",").forEach(function (s) {
|
9095
|
+
var i = s.indexOf("=");
|
9096
|
+
if (i > 0) {
|
9097
|
+
lh[s.substring(0, i)] = new Date(rd) <= new Date(s.substring(i + 1));
|
9098
|
+
}
|
9099
|
+
});
|
9100
|
+
}
|
9055
9101
|
|
9056
9102
|
|
9057
9103
|
|
@@ -9151,7 +9197,7 @@ function checkLibraryVersion(ver, libraryName) {
|
|
9151
9197
|
/*!**************************************!*\
|
9152
9198
|
!*** ./src/entries/core-wo-model.ts ***!
|
9153
9199
|
\**************************************/
|
9154
|
-
/*! exports provided: Version, checkLibraryVersion, 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, 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, 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, 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, TooltipManager, DragOrClickHelper */
|
9200
|
+
/*! 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, 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, 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, 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, TooltipManager, DragOrClickHelper */
|
9155
9201
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9156
9202
|
|
9157
9203
|
"use strict";
|
@@ -9159,8 +9205,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
9159
9205
|
/* harmony import */ var _chunks_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunks/model */ "./src/entries/chunks/model.ts");
|
9160
9206
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Version", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["Version"]; });
|
9161
9207
|
|
9208
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReleaseDate", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["ReleaseDate"]; });
|
9209
|
+
|
9162
9210
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "checkLibraryVersion", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["checkLibraryVersion"]; });
|
9163
9211
|
|
9212
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setLicenseKey", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["setLicenseKey"]; });
|
9213
|
+
|
9214
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasLicense", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["hasLicense"]; });
|
9215
|
+
|
9164
9216
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["settings"]; });
|
9165
9217
|
|
9166
9218
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Helpers", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["Helpers"]; });
|
@@ -9596,7 +9648,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
9596
9648
|
/*!*****************************!*\
|
9597
9649
|
!*** ./src/entries/core.ts ***!
|
9598
9650
|
\*****************************/
|
9599
|
-
/*! exports provided: Version, checkLibraryVersion, 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, 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, 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, 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, TooltipManager, DragOrClickHelper, Model */
|
9651
|
+
/*! 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, 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, 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, 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, TooltipManager, DragOrClickHelper, Model */
|
9600
9652
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9601
9653
|
|
9602
9654
|
"use strict";
|
@@ -9604,8 +9656,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
9604
9656
|
/* harmony import */ var _core_wo_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core-wo-model */ "./src/entries/core-wo-model.ts");
|
9605
9657
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Version", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["Version"]; });
|
9606
9658
|
|
9659
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReleaseDate", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["ReleaseDate"]; });
|
9660
|
+
|
9607
9661
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "checkLibraryVersion", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["checkLibraryVersion"]; });
|
9608
9662
|
|
9663
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setLicenseKey", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["setLicenseKey"]; });
|
9664
|
+
|
9665
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasLicense", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["hasLicense"]; });
|
9666
|
+
|
9609
9667
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["settings"]; });
|
9610
9668
|
|
9611
9669
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Helpers", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["Helpers"]; });
|
@@ -10401,7 +10459,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10401
10459
|
/*!******************************!*\
|
10402
10460
|
!*** ./src/entries/react.ts ***!
|
10403
10461
|
\******************************/
|
10404
|
-
/*! exports provided: Version, checkLibraryVersion, 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, 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, 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, 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, TooltipManager, 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 */
|
10462
|
+
/*! 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, 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, 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, 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, TooltipManager, 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 */
|
10405
10463
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10406
10464
|
|
10407
10465
|
"use strict";
|
@@ -10409,8 +10467,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
10409
10467
|
/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core */ "./src/entries/core.ts");
|
10410
10468
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Version", function() { return _core__WEBPACK_IMPORTED_MODULE_0__["Version"]; });
|
10411
10469
|
|
10470
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReleaseDate", function() { return _core__WEBPACK_IMPORTED_MODULE_0__["ReleaseDate"]; });
|
10471
|
+
|
10412
10472
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "checkLibraryVersion", function() { return _core__WEBPACK_IMPORTED_MODULE_0__["checkLibraryVersion"]; });
|
10413
10473
|
|
10474
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setLicenseKey", function() { return _core__WEBPACK_IMPORTED_MODULE_0__["setLicenseKey"]; });
|
10475
|
+
|
10476
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasLicense", function() { return _core__WEBPACK_IMPORTED_MODULE_0__["hasLicense"]; });
|
10477
|
+
|
10414
10478
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return _core__WEBPACK_IMPORTED_MODULE_0__["settings"]; });
|
10415
10479
|
|
10416
10480
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Helpers", function() { return _core__WEBPACK_IMPORTED_MODULE_0__["Helpers"]; });
|
@@ -15745,6 +15809,33 @@ function diffDays(params) {
|
|
15745
15809
|
return Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
15746
15810
|
}
|
15747
15811
|
FunctionFactory.Instance.register("diffDays", diffDays);
|
15812
|
+
function dateFromFirstParameterOrToday(params) {
|
15813
|
+
var date = today(undefined);
|
15814
|
+
if (params && params[0]) {
|
15815
|
+
date = new Date(params[0]);
|
15816
|
+
}
|
15817
|
+
return date;
|
15818
|
+
}
|
15819
|
+
function year(params) {
|
15820
|
+
var date = dateFromFirstParameterOrToday(params);
|
15821
|
+
return date.getFullYear();
|
15822
|
+
}
|
15823
|
+
FunctionFactory.Instance.register("year", year);
|
15824
|
+
function month(params) {
|
15825
|
+
var date = dateFromFirstParameterOrToday(params);
|
15826
|
+
return date.getMonth() + 1;
|
15827
|
+
}
|
15828
|
+
FunctionFactory.Instance.register("month", month);
|
15829
|
+
function day(params) {
|
15830
|
+
var date = dateFromFirstParameterOrToday(params);
|
15831
|
+
return date.getDate();
|
15832
|
+
}
|
15833
|
+
FunctionFactory.Instance.register("day", day);
|
15834
|
+
function weekday(params) {
|
15835
|
+
var date = dateFromFirstParameterOrToday(params);
|
15836
|
+
return date.getDay();
|
15837
|
+
}
|
15838
|
+
FunctionFactory.Instance.register("weekday", weekday);
|
15748
15839
|
|
15749
15840
|
|
15750
15841
|
/***/ }),
|
@@ -26811,7 +26902,7 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
26811
26902
|
};
|
26812
26903
|
Object.defineProperty(PanelModelBase.prototype, "hasTitle", {
|
26813
26904
|
get: function () {
|
26814
|
-
return ((this.canShowTitle() && this.
|
26905
|
+
return ((this.canShowTitle() && this.locTitle.textOrHtml.length > 0) ||
|
26815
26906
|
(this.showTitle && this.isDesignMode && _settings__WEBPACK_IMPORTED_MODULE_7__["settings"].designMode.showEmptyTitles));
|
26816
26907
|
},
|
26817
26908
|
enumerable: false,
|
@@ -27081,6 +27172,17 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
27081
27172
|
enumerable: false,
|
27082
27173
|
configurable: true
|
27083
27174
|
});
|
27175
|
+
PanelModelBase.prototype.getQuestions = function (includeNested) {
|
27176
|
+
var res = this.questions;
|
27177
|
+
if (!includeNested)
|
27178
|
+
return res;
|
27179
|
+
var res2 = [];
|
27180
|
+
res.forEach(function (q) {
|
27181
|
+
res2.push(q);
|
27182
|
+
q.getNestedQuestions().forEach(function (nQ) { return res2.push(nQ); });
|
27183
|
+
});
|
27184
|
+
return res2;
|
27185
|
+
};
|
27084
27186
|
PanelModelBase.prototype.getValidName = function (name) {
|
27085
27187
|
if (!!name)
|
27086
27188
|
return name.trim();
|
@@ -28294,6 +28396,17 @@ var PanelModel = /** @class */ (function (_super) {
|
|
28294
28396
|
PanelModel.prototype.setNo = function (visibleIndex) {
|
28295
28397
|
this.setPropertyValue("no", _helpers__WEBPACK_IMPORTED_MODULE_1__["Helpers"].getNumberByIndex(this.visibleIndex, this.getStartIndex()));
|
28296
28398
|
};
|
28399
|
+
PanelModel.prototype.createLocTitleProperty = function () {
|
28400
|
+
var _this = this;
|
28401
|
+
var locTitleValue = _super.prototype.createLocTitleProperty.call(this);
|
28402
|
+
locTitleValue.onGetTextCallback = function (text) {
|
28403
|
+
if (!text && (_this.isExpanded || _this.isCollapsed)) {
|
28404
|
+
text = _this.name;
|
28405
|
+
}
|
28406
|
+
return text;
|
28407
|
+
};
|
28408
|
+
return locTitleValue;
|
28409
|
+
};
|
28297
28410
|
PanelModel.prototype.beforeSetVisibleIndex = function (index) {
|
28298
28411
|
var visibleIndex = -1;
|
28299
28412
|
if (this.showNumber && (this.isDesignMode || !this.locTitle.isEmpty)) {
|
@@ -30653,7 +30766,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
30653
30766
|
|
30654
30767
|
|
30655
30768
|
function createPopupModalViewModel(options, rootElement) {
|
30656
|
-
var popupModel = new _popup__WEBPACK_IMPORTED_MODULE_0__["PopupModel"](options.componentName, options.data, "top", "left", false, true, options.onCancel, options.onApply,
|
30769
|
+
var popupModel = new _popup__WEBPACK_IMPORTED_MODULE_0__["PopupModel"](options.componentName, options.data, "top", "left", false, true, options.onCancel, options.onApply, function () {
|
30770
|
+
options.onHide();
|
30771
|
+
if (!!container) {
|
30772
|
+
popupViewModel.resetComponentElement();
|
30773
|
+
}
|
30774
|
+
}, options.onShow, options.cssClass, options.title);
|
30657
30775
|
popupModel.displayMode = options.displayMode || "popup";
|
30658
30776
|
var popupViewModel = new _popup_modal_view_model__WEBPACK_IMPORTED_MODULE_2__["PopupModalViewModel"](popupModel);
|
30659
30777
|
if (!!rootElement && !!rootElement.appendChild) {
|
@@ -31001,6 +31119,9 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
|
|
31001
31119
|
this.containerElement = componentRoot;
|
31002
31120
|
}
|
31003
31121
|
};
|
31122
|
+
PopupBaseViewModel.prototype.resetComponentElement = function () {
|
31123
|
+
this.containerElement = undefined;
|
31124
|
+
};
|
31004
31125
|
PopupBaseViewModel.prototype.preventScrollOuside = function (event, deltaY) {
|
31005
31126
|
var currentElement = event.target;
|
31006
31127
|
while (currentElement !== this.container) {
|
@@ -31465,6 +31586,8 @@ var Question = /** @class */ (function (_super) {
|
|
31465
31586
|
* Returns a page to which the question belongs and allows you to move this question to a different page.
|
31466
31587
|
*/
|
31467
31588
|
get: function () {
|
31589
|
+
if (!!this.parentQuestion)
|
31590
|
+
return this.parentQuestion.page;
|
31468
31591
|
return this.getPage(this.parent);
|
31469
31592
|
},
|
31470
31593
|
set: function (val) {
|
@@ -32391,18 +32514,13 @@ var Question = /** @class */ (function (_super) {
|
|
32391
32514
|
* @param onError Pass `true` if you want to focus an input field with the first validation error. Default value: `false` (focuses the first input field). Applies to question types with multiple input fields.
|
32392
32515
|
*/
|
32393
32516
|
Question.prototype.focus = function (onError) {
|
32394
|
-
var _this = this;
|
32395
32517
|
if (onError === void 0) { onError = false; }
|
32396
32518
|
if (this.isDesignMode || !this.isVisible || !this.survey)
|
32397
32519
|
return;
|
32398
32520
|
var page = this.page;
|
32399
|
-
|
32400
|
-
page = this.parentQuestion.page;
|
32401
|
-
}
|
32402
|
-
var shouldChangePage = !!page && this.survey.currentPage !== page;
|
32521
|
+
var shouldChangePage = !!page && this.survey.activePage !== page;
|
32403
32522
|
if (shouldChangePage) {
|
32404
|
-
this.survey.
|
32405
|
-
setTimeout(function () { return _this.focuscore(onError); }, 0);
|
32523
|
+
this.survey.focusQuestionByInstance(this, onError);
|
32406
32524
|
}
|
32407
32525
|
else {
|
32408
32526
|
this.focuscore(onError);
|
@@ -36885,6 +37003,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
36885
37003
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helpers */ "./src/helpers.ts");
|
36886
37004
|
/* harmony import */ var _itemvalue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./itemvalue */ "./src/itemvalue.ts");
|
36887
37005
|
/* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
|
37006
|
+
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./error */ "./src/error.ts");
|
36888
37007
|
var __extends = (undefined && undefined.__extends) || (function () {
|
36889
37008
|
var extendStatics = function (d, b) {
|
36890
37009
|
extendStatics = Object.setPrototypeOf ||
|
@@ -36906,6 +37025,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
36906
37025
|
|
36907
37026
|
|
36908
37027
|
|
37028
|
+
|
36909
37029
|
/**
|
36910
37030
|
* A class that describes the Checkbox question type.
|
36911
37031
|
*
|
@@ -37102,11 +37222,12 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
37102
37222
|
};
|
37103
37223
|
Object.defineProperty(QuestionCheckboxModel.prototype, "maxSelectedChoices", {
|
37104
37224
|
/**
|
37105
|
-
*
|
37225
|
+
* Specifies the maximum number of selected choices.
|
37106
37226
|
*
|
37107
37227
|
* Default value: 0 (unlimited)
|
37108
37228
|
*
|
37109
37229
|
* > This property only limits the number of choice items that can be selected by users. You can select any number of choice items in code, regardless of the `maxSelectedChoices` value.
|
37230
|
+
* @see minSelectedChoices
|
37110
37231
|
*/
|
37111
37232
|
get: function () {
|
37112
37233
|
return this.getPropertyValue("maxSelectedChoices");
|
@@ -37120,6 +37241,26 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
37120
37241
|
enumerable: false,
|
37121
37242
|
configurable: true
|
37122
37243
|
});
|
37244
|
+
Object.defineProperty(QuestionCheckboxModel.prototype, "minSelectedChoices", {
|
37245
|
+
/**
|
37246
|
+
* Specifies the minimum number of selected choices.
|
37247
|
+
*
|
37248
|
+
* Default value: 0 (unlimited)
|
37249
|
+
*
|
37250
|
+
* > This property only limits the number of choice items that can be selected by users. You can select any number of choice items in code, regardless of the `minSelectedChoices` value.
|
37251
|
+
* @see maxSelectedChoices
|
37252
|
+
*/
|
37253
|
+
get: function () {
|
37254
|
+
return this.getPropertyValue("minSelectedChoices");
|
37255
|
+
},
|
37256
|
+
set: function (val) {
|
37257
|
+
if (val < 0)
|
37258
|
+
val = 0;
|
37259
|
+
this.setPropertyValue("minSelectedChoices", val);
|
37260
|
+
},
|
37261
|
+
enumerable: false,
|
37262
|
+
configurable: true
|
37263
|
+
});
|
37123
37264
|
Object.defineProperty(QuestionCheckboxModel.prototype, "selectedChoices", {
|
37124
37265
|
/**
|
37125
37266
|
* An array of selected choice items. Includes the "Other" and "None" choice items if they are selected, but not "Select All". Items are sorted in the order they were selected.
|
@@ -37159,6 +37300,15 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
37159
37300
|
var val = this.renderedValue;
|
37160
37301
|
return val.map(function (item) { return new _itemvalue__WEBPACK_IMPORTED_MODULE_4__["ItemValue"](item); });
|
37161
37302
|
};
|
37303
|
+
QuestionCheckboxModel.prototype.onCheckForErrors = function (errors, isOnValueChanged) {
|
37304
|
+
_super.prototype.onCheckForErrors.call(this, errors, isOnValueChanged);
|
37305
|
+
if (isOnValueChanged)
|
37306
|
+
return;
|
37307
|
+
if (this.minSelectedChoices > 0 && this.checkMinSelectedChoicesUnreached()) {
|
37308
|
+
var minError = new _error__WEBPACK_IMPORTED_MODULE_6__["CustomError"](this.getLocalizationFormatString("minSelectError", this.minSelectedChoices), this);
|
37309
|
+
errors.push(minError);
|
37310
|
+
}
|
37311
|
+
};
|
37162
37312
|
QuestionCheckboxModel.prototype.onEnableItemCallBack = function (item) {
|
37163
37313
|
if (!this.shouldCheckMaxSelectedChoices())
|
37164
37314
|
return true;
|
@@ -37184,6 +37334,13 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
37184
37334
|
var len = !Array.isArray(val) ? 0 : val.length;
|
37185
37335
|
return len >= this.maxSelectedChoices;
|
37186
37336
|
};
|
37337
|
+
QuestionCheckboxModel.prototype.checkMinSelectedChoicesUnreached = function () {
|
37338
|
+
if (this.minSelectedChoices < 1)
|
37339
|
+
return false;
|
37340
|
+
var val = this.value;
|
37341
|
+
var len = !Array.isArray(val) ? 0 : val.length;
|
37342
|
+
return len < this.minSelectedChoices;
|
37343
|
+
};
|
37187
37344
|
QuestionCheckboxModel.prototype.getItemClassCore = function (item, options) {
|
37188
37345
|
var __dummy_value = this.value; //trigger dependencies from koValue for knockout
|
37189
37346
|
options.isSelectAllItem = item === this.selectAllItem;
|
@@ -37390,6 +37547,7 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
37390
37547
|
json["type"] = "radiogroup";
|
37391
37548
|
}
|
37392
37549
|
json["maxSelectedChoices"] = 0;
|
37550
|
+
json["minSelectedChoices"] = 0;
|
37393
37551
|
return json;
|
37394
37552
|
};
|
37395
37553
|
QuestionCheckboxModel.prototype.isAnswerCorrect = function () {
|
@@ -37502,6 +37660,7 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("checkbox", [
|
|
37502
37660
|
{ name: "showSelectAllItem:boolean", alternativeName: "hasSelectAll" },
|
37503
37661
|
{ name: "separateSpecialChoices", visible: true },
|
37504
37662
|
{ name: "maxSelectedChoices:number", default: 0 },
|
37663
|
+
{ name: "minSelectedChoices:number", default: 0 },
|
37505
37664
|
{
|
37506
37665
|
name: "selectAllText",
|
37507
37666
|
serializationProperty: "locSelectAllText",
|
@@ -45603,6 +45762,11 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
45603
45762
|
delete json["choices"];
|
45604
45763
|
}
|
45605
45764
|
delete json["itemComponent"];
|
45765
|
+
if (this.jsonObj) {
|
45766
|
+
Object.keys(this.jsonObj).forEach(function (prop) {
|
45767
|
+
json[prop] = _this.jsonObj[prop];
|
45768
|
+
});
|
45769
|
+
}
|
45606
45770
|
new _jsonobject__WEBPACK_IMPORTED_MODULE_0__["JsonObject"]().toObject(json, question);
|
45607
45771
|
question.isContentElement = this.templateQuestion.isContentElement;
|
45608
45772
|
this.previousChoicesId = undefined;
|
@@ -52029,6 +52193,7 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_3__["Serializer"].addClass("ranking", [
|
|
52029
52193
|
{ name: "selectAllText", visible: false, isSerializable: false },
|
52030
52194
|
{ name: "colCount:number", visible: false, isSerializable: false },
|
52031
52195
|
{ name: "maxSelectedChoices", visible: false, isSerializable: false },
|
52196
|
+
{ name: "minSelectedChoices", visible: false, isSerializable: false },
|
52032
52197
|
{ name: "separateSpecialChoices", visible: false, isSerializable: false },
|
52033
52198
|
{
|
52034
52199
|
name: "longTap",
|
@@ -52201,10 +52366,6 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
52201
52366
|
this.rateValues.map(function (item) { return item.icon = _this.getItemSmiley(item); });
|
52202
52367
|
}
|
52203
52368
|
};
|
52204
|
-
QuestionRatingModel.prototype.startLoadingFromJson = function (jsonObj) {
|
52205
|
-
_super.prototype.startLoadingFromJson.call(this, jsonObj);
|
52206
|
-
this.jsonObj = jsonObj;
|
52207
|
-
};
|
52208
52369
|
QuestionRatingModel.prototype.endLoadingFromJson = function () {
|
52209
52370
|
_super.prototype.endLoadingFromJson.call(this);
|
52210
52371
|
this.initColors();
|
@@ -52279,6 +52440,22 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
52279
52440
|
_this.updateRateCount();
|
52280
52441
|
});
|
52281
52442
|
};
|
52443
|
+
Object.defineProperty(QuestionRatingModel.prototype, "showSelectedItemLocText", {
|
52444
|
+
get: function () {
|
52445
|
+
return !this.readOnly && !this.inputHasValue && !!this.selectedItemLocText;
|
52446
|
+
},
|
52447
|
+
enumerable: false,
|
52448
|
+
configurable: true
|
52449
|
+
});
|
52450
|
+
Object.defineProperty(QuestionRatingModel.prototype, "selectedItemLocText", {
|
52451
|
+
get: function () {
|
52452
|
+
var _this = this;
|
52453
|
+
var _a;
|
52454
|
+
return !this.readOnly && ((_a = this.visibleRateValues.filter(function (v) { return v.value == _this.value; })[0]) === null || _a === void 0 ? void 0 : _a.locText);
|
52455
|
+
},
|
52456
|
+
enumerable: false,
|
52457
|
+
configurable: true
|
52458
|
+
});
|
52282
52459
|
Object.defineProperty(QuestionRatingModel.prototype, "rateValues", {
|
52283
52460
|
/**
|
52284
52461
|
* A list of rate values.
|
@@ -52843,7 +53020,9 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
52843
53020
|
});
|
52844
53021
|
Object.defineProperty(QuestionRatingModel.prototype, "readOnlyText", {
|
52845
53022
|
get: function () {
|
52846
|
-
|
53023
|
+
if (this.readOnly)
|
53024
|
+
return (this.displayValue || this.placeholder);
|
53025
|
+
return this.isEmpty() ? this.placeholder : "";
|
52847
53026
|
},
|
52848
53027
|
enumerable: false,
|
52849
53028
|
configurable: true
|
@@ -52911,6 +53090,9 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
52911
53090
|
this.dropdownListModelValue.dispose();
|
52912
53091
|
}
|
52913
53092
|
};
|
53093
|
+
__decorate([
|
53094
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: false })
|
53095
|
+
], QuestionRatingModel.prototype, "inputHasValue", void 0);
|
52914
53096
|
__decorate([
|
52915
53097
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: true })
|
52916
53098
|
], QuestionRatingModel.prototype, "autoGenerate", void 0);
|
@@ -53164,6 +53346,14 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
53164
53346
|
var _survey = this.survey;
|
53165
53347
|
return !!_survey && !!_survey.themeVariables && _survey.themeVariables["--sjs-primary-backcolor"];
|
53166
53348
|
};
|
53349
|
+
QuestionSignaturePadModel.prototype.updateColors = function (signaturePad) {
|
53350
|
+
var penColorFromTheme = this.getPenColorFromTheme();
|
53351
|
+
var penColorProperty = this.getPropertyByName("penColor");
|
53352
|
+
signaturePad.penColor = this.penColor || penColorFromTheme || penColorProperty.defaultValue || "#1ab394";
|
53353
|
+
var backgroundColorProperty = this.getPropertyByName("backgroundColor");
|
53354
|
+
var backgroundColorFromTheme = penColorFromTheme ? "transparent" : undefined;
|
53355
|
+
signaturePad.backgroundColor = this.backgroundColor || backgroundColorFromTheme || backgroundColorProperty.defaultValue || "#ffffff";
|
53356
|
+
};
|
53167
53357
|
QuestionSignaturePadModel.prototype.getCssRoot = function (cssClasses) {
|
53168
53358
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_4__["CssClassBuilder"]()
|
53169
53359
|
.append(_super.prototype.getCssRoot.call(this, cssClasses))
|
@@ -53192,6 +53382,17 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
53192
53382
|
this.destroySignaturePad(el);
|
53193
53383
|
}
|
53194
53384
|
};
|
53385
|
+
QuestionSignaturePadModel.prototype.setSurveyImpl = function (value, isLight) {
|
53386
|
+
var _this = this;
|
53387
|
+
_super.prototype.setSurveyImpl.call(this, value, isLight);
|
53388
|
+
if (!this.survey)
|
53389
|
+
return;
|
53390
|
+
this.survey.onThemeApplied.add(function (survey, options) {
|
53391
|
+
if (!!_this.signaturePad) {
|
53392
|
+
_this.updateColors(_this.signaturePad);
|
53393
|
+
}
|
53394
|
+
});
|
53395
|
+
};
|
53195
53396
|
QuestionSignaturePadModel.prototype.initSignaturePad = function (el) {
|
53196
53397
|
var _this = this;
|
53197
53398
|
var canvas = el.getElementsByTagName("canvas")[0];
|
@@ -53207,8 +53408,7 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
53207
53408
|
signaturePad.on();
|
53208
53409
|
}
|
53209
53410
|
};
|
53210
|
-
|
53211
|
-
signaturePad.backgroundColor = this.backgroundColor;
|
53411
|
+
this.updateColors(signaturePad);
|
53212
53412
|
signaturePad.addEventListener("beginStroke", function () {
|
53213
53413
|
_this.isDrawingValue = true;
|
53214
53414
|
canvas.focus();
|
@@ -53332,7 +53532,7 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
53332
53532
|
* @see backgroundColor
|
53333
53533
|
*/
|
53334
53534
|
get: function () {
|
53335
|
-
return this.getPropertyValue("penColor"
|
53535
|
+
return this.getPropertyValue("penColor");
|
53336
53536
|
},
|
53337
53537
|
set: function (val) {
|
53338
53538
|
this.setPropertyValue("penColor", val);
|
@@ -53426,12 +53626,10 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("signaturepad",
|
|
53426
53626
|
{
|
53427
53627
|
name: "penColor:color",
|
53428
53628
|
category: "general",
|
53429
|
-
default: "#1ab394",
|
53430
53629
|
},
|
53431
53630
|
{
|
53432
53631
|
name: "backgroundColor:color",
|
53433
53632
|
category: "general",
|
53434
|
-
default: "#ffffff",
|
53435
53633
|
},
|
53436
53634
|
{
|
53437
53635
|
name: "dataFormat",
|
@@ -53887,14 +54085,6 @@ var QuestionTextModel = /** @class */ (function (_super) {
|
|
53887
54085
|
this.setRenderedMinMax(values, properties);
|
53888
54086
|
}
|
53889
54087
|
};
|
53890
|
-
QuestionTextModel.prototype.getValidators = function () {
|
53891
|
-
var validators = _super.prototype.getValidators.call(this);
|
53892
|
-
if (this.inputType === "email" &&
|
53893
|
-
!this.validators.some(function (v) { return v.getType() === "emailvalidator"; })) {
|
53894
|
-
validators.push(new _validator__WEBPACK_IMPORTED_MODULE_4__["EmailValidator"]());
|
53895
|
-
}
|
53896
|
-
return validators;
|
53897
|
-
};
|
53898
54088
|
QuestionTextModel.prototype.isLayoutTypeSupported = function (layoutType) {
|
53899
54089
|
return true;
|
53900
54090
|
};
|
@@ -54117,6 +54307,15 @@ var QuestionTextModel = /** @class */ (function (_super) {
|
|
54117
54307
|
};
|
54118
54308
|
errors.push(maxError);
|
54119
54309
|
}
|
54310
|
+
var valName = this.getValidatorTitle();
|
54311
|
+
var emailValidator = new _validator__WEBPACK_IMPORTED_MODULE_4__["EmailValidator"]();
|
54312
|
+
if (this.inputType === "email" &&
|
54313
|
+
!this.validators.some(function (v) { return v.getType() === "emailvalidator"; })) {
|
54314
|
+
var validateResult = emailValidator.validate(this.value, valName);
|
54315
|
+
if (!!validateResult && !!validateResult.error) {
|
54316
|
+
errors.push(validateResult.error);
|
54317
|
+
}
|
54318
|
+
}
|
54120
54319
|
};
|
54121
54320
|
QuestionTextModel.prototype.canSetValueToSurvey = function () {
|
54122
54321
|
if (!this.isMinMaxType)
|
@@ -61587,7 +61786,7 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
61587
61786
|
var questionCss = this.question.cssClasses;
|
61588
61787
|
var noFileChosen = null;
|
61589
61788
|
var chooseFile = null;
|
61590
|
-
chooseFile = 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.chooseButtonCaption },
|
61789
|
+
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.chooseButtonCaption },
|
61591
61790
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, this.question.chooseButtonCaption),
|
61592
61791
|
(!!this.question.cssClasses.chooseFileIconId) ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { title: this.question.chooseButtonCaption, iconName: this.question.cssClasses.chooseFileIconId, size: "auto" }) : null));
|
61593
61792
|
if (this.question.isEmpty()) {
|
@@ -65712,7 +65911,7 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
65712
65911
|
if (!root)
|
65713
65912
|
return false;
|
65714
65913
|
var el = root.getElementById(elementId);
|
65715
|
-
if (el && !el["disabled"]) {
|
65914
|
+
if (el && !el["disabled"] && el.style.display !== "none") {
|
65716
65915
|
el.focus();
|
65717
65916
|
return true;
|
65718
65917
|
}
|
@@ -67521,7 +67720,6 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67521
67720
|
valueNames: {},
|
67522
67721
|
valueNamesInsensitive: {},
|
67523
67722
|
};
|
67524
|
-
_this.afterRenderPageTasks = [];
|
67525
67723
|
_this.needRenderIcons = true;
|
67526
67724
|
_this.skippedPages = [];
|
67527
67725
|
_this.skeletonComponentName = "sv-skeleton";
|
@@ -69634,6 +69832,9 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
69634
69832
|
enumerable: false,
|
69635
69833
|
configurable: true
|
69636
69834
|
});
|
69835
|
+
SurveyModel.prototype.getProgressTypeComponent = function () {
|
69836
|
+
return "sv-progress-" + this.progressBarType.toLowerCase();
|
69837
|
+
};
|
69637
69838
|
SurveyModel.prototype.getProgressCssClasses = function () {
|
69638
69839
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_18__["CssClassBuilder"]()
|
69639
69840
|
.append(this.css.progress)
|
@@ -70336,7 +70537,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
70336
70537
|
* @see focusFirstQuestionAutomatic
|
70337
70538
|
*/
|
70338
70539
|
SurveyModel.prototype.focusFirstQuestion = function () {
|
70339
|
-
if (this.
|
70540
|
+
if (this.focusingQuestionInfo)
|
70340
70541
|
return;
|
70341
70542
|
var page = this.activePage;
|
70342
70543
|
if (page) {
|
@@ -70352,7 +70553,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
70352
70553
|
if (doScroll) {
|
70353
70554
|
page.scrollToTop();
|
70354
70555
|
}
|
70355
|
-
if (this.isCurrentPageRendering && this.focusFirstQuestionAutomatic && !this.
|
70556
|
+
if (this.isCurrentPageRendering && this.focusFirstQuestionAutomatic && !this.focusingQuestionInfo) {
|
70356
70557
|
page.focusFirstQuestion();
|
70357
70558
|
this.isCurrentPageRendering = false;
|
70358
70559
|
}
|
@@ -70961,11 +71162,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
70961
71162
|
}
|
70962
71163
|
}
|
70963
71164
|
if (focusOnFirstError && !!firstErrorPage) {
|
70964
|
-
|
70965
|
-
var
|
70966
|
-
|
70967
|
-
|
70968
|
-
questions[i].focus(true);
|
71165
|
+
var questions = firstErrorPage.getQuestions(true);
|
71166
|
+
for (var i_2 = 0; i_2 < questions.length; i_2++) {
|
71167
|
+
if (questions[i_2].errors.length > 0) {
|
71168
|
+
questions[i_2].focus(true);
|
70969
71169
|
break;
|
70970
71170
|
}
|
70971
71171
|
}
|
@@ -71615,6 +71815,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
71615
71815
|
SurveyModel.prototype.start = function () {
|
71616
71816
|
if (!this.firstPageIsStarted)
|
71617
71817
|
return false;
|
71818
|
+
this.isCurrentPageRendering = true;
|
71618
71819
|
if (this.checkIsPageHasErrors(this.startedPage, true))
|
71619
71820
|
return false;
|
71620
71821
|
this.isStartedState = false;
|
@@ -71975,12 +72176,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
71975
72176
|
};
|
71976
72177
|
SurveyModel.prototype.afterRenderPage = function (htmlElement) {
|
71977
72178
|
var _this = this;
|
71978
|
-
if (!this.isDesignMode && !this.
|
72179
|
+
if (!this.isDesignMode && !this.focusingQuestionInfo) {
|
71979
72180
|
setTimeout(function () { return _this.scrollToTopOnPageChange(!_this.isFirstPageRendering); }, 1);
|
71980
72181
|
}
|
71981
|
-
|
71982
|
-
this.afterRenderPageTasks.shift()();
|
71983
|
-
}
|
72182
|
+
this.focusQuestionInfo();
|
71984
72183
|
this.isFirstPageRendering = false;
|
71985
72184
|
if (this.onAfterRenderPage.isEmpty)
|
71986
72185
|
return;
|
@@ -74340,26 +74539,35 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
74340
74539
|
* @see focusFirstQuestionAutomatic
|
74341
74540
|
*/
|
74342
74541
|
SurveyModel.prototype.focusQuestion = function (name) {
|
74343
|
-
|
74344
|
-
|
74542
|
+
return this.focusQuestionByInstance(this.getQuestionByName(name, true));
|
74543
|
+
};
|
74544
|
+
SurveyModel.prototype.focusQuestionByInstance = function (question, onError) {
|
74545
|
+
var _a;
|
74546
|
+
if (onError === void 0) { onError = false; }
|
74345
74547
|
if (!question || !question.isVisible || !question.page)
|
74346
74548
|
return false;
|
74347
|
-
this.
|
74549
|
+
var oldQuestion = (_a = this.focusingQuestionInfo) === null || _a === void 0 ? void 0 : _a.question;
|
74550
|
+
if (oldQuestion === question)
|
74551
|
+
return false;
|
74552
|
+
this.focusingQuestionInfo = { question: question, onError: onError };
|
74348
74553
|
this.skippedPages.push({ from: this.currentPage, to: question.page });
|
74349
|
-
var isNeedWaitForPageRendered = this.
|
74350
|
-
|
74351
|
-
question.
|
74352
|
-
|
74353
|
-
_this.isCurrentPageRendering = false;
|
74354
|
-
};
|
74355
|
-
this.afterRenderPageTasks.push(focusQuestionFunc);
|
74356
|
-
this.currentPage = question.page;
|
74554
|
+
var isNeedWaitForPageRendered = this.activePage !== question.page && !question.page.isStartPage;
|
74555
|
+
if (isNeedWaitForPageRendered) {
|
74556
|
+
this.currentPage = question.page;
|
74557
|
+
}
|
74357
74558
|
if (!isNeedWaitForPageRendered) {
|
74358
|
-
|
74359
|
-
this.afterRenderPageTasks.splice(this.afterRenderPageTasks.indexOf(focusQuestionFunc), 1);
|
74559
|
+
this.focusQuestionInfo();
|
74360
74560
|
}
|
74361
74561
|
return true;
|
74362
74562
|
};
|
74563
|
+
SurveyModel.prototype.focusQuestionInfo = function () {
|
74564
|
+
var _a;
|
74565
|
+
var question = (_a = this.focusingQuestionInfo) === null || _a === void 0 ? void 0 : _a.question;
|
74566
|
+
if (!!question && !question.isDisposed) {
|
74567
|
+
question.focus(this.focusingQuestionInfo.onError);
|
74568
|
+
}
|
74569
|
+
this.focusingQuestionInfo = undefined;
|
74570
|
+
};
|
74363
74571
|
SurveyModel.prototype.questionEditFinishCallback = function (question, event) {
|
74364
74572
|
var enterKeyAction = this.enterKeyAction || _settings__WEBPACK_IMPORTED_MODULE_14__["settings"].enterKeyAction;
|
74365
74573
|
if (enterKeyAction == "loseFocus")
|
@@ -77553,7 +77761,7 @@ var NumericValidator = /** @class */ (function (_super) {
|
|
77553
77761
|
if (this.isValueEmpty(value))
|
77554
77762
|
return null;
|
77555
77763
|
if (!_helpers__WEBPACK_IMPORTED_MODULE_4__["Helpers"].isNumber(value)) {
|
77556
|
-
return new ValidatorResult(null, new _error__WEBPACK_IMPORTED_MODULE_1__["RequreNumericError"](
|
77764
|
+
return new ValidatorResult(null, new _error__WEBPACK_IMPORTED_MODULE_1__["RequreNumericError"](this.text, this.errorOwner));
|
77557
77765
|
}
|
77558
77766
|
var result = new ValidatorResult(_helpers__WEBPACK_IMPORTED_MODULE_4__["Helpers"].getNumber(value));
|
77559
77767
|
if (this.minValue !== null && this.minValue > result.value) {
|