survey-core 1.9.124 → 1.9.125
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 +4 -3
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +4 -3
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +14 -3
- package/i18n/arabic.js.map +1 -1
- package/i18n/arabic.min.js +2 -2
- package/i18n/basque.js +14 -3
- package/i18n/basque.js.map +1 -1
- package/i18n/basque.min.js +2 -2
- package/i18n/bulgarian.js +14 -3
- package/i18n/bulgarian.js.map +1 -1
- package/i18n/bulgarian.min.js +2 -2
- package/i18n/catalan.js +14 -3
- package/i18n/catalan.js.map +1 -1
- package/i18n/catalan.min.js +2 -2
- package/i18n/croatian.js +14 -3
- package/i18n/croatian.js.map +1 -1
- package/i18n/croatian.min.js +2 -2
- package/i18n/czech.js +14 -3
- package/i18n/czech.js.map +1 -1
- package/i18n/czech.min.js +2 -2
- package/i18n/danish.js +14 -3
- package/i18n/danish.js.map +1 -1
- package/i18n/danish.min.js +2 -2
- package/i18n/dutch.js +14 -3
- package/i18n/dutch.js.map +1 -1
- package/i18n/dutch.min.js +2 -2
- package/i18n/english.js +2 -1
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +2 -2
- package/i18n/estonian.js +14 -3
- package/i18n/estonian.js.map +1 -1
- package/i18n/estonian.min.js +2 -2
- package/i18n/finnish.js +14 -3
- package/i18n/finnish.js.map +1 -1
- package/i18n/finnish.min.js +2 -2
- package/i18n/french.js +14 -3
- package/i18n/french.js.map +1 -1
- package/i18n/french.min.js +2 -2
- package/i18n/georgian.js +14 -3
- package/i18n/georgian.js.map +1 -1
- package/i18n/georgian.min.js +2 -2
- package/i18n/german.js +14 -3
- package/i18n/german.js.map +1 -1
- package/i18n/german.min.js +2 -2
- package/i18n/greek.js +14 -3
- package/i18n/greek.js.map +1 -1
- package/i18n/greek.min.js +2 -2
- package/i18n/hebrew.js +14 -3
- package/i18n/hebrew.js.map +1 -1
- package/i18n/hebrew.min.js +2 -2
- package/i18n/hindi.js +14 -3
- package/i18n/hindi.js.map +1 -1
- package/i18n/hindi.min.js +2 -2
- package/i18n/hungarian.js +14 -3
- package/i18n/hungarian.js.map +1 -1
- package/i18n/hungarian.min.js +2 -2
- package/i18n/icelandic.js +14 -3
- package/i18n/icelandic.js.map +1 -1
- package/i18n/icelandic.min.js +2 -2
- package/i18n/index.js +612 -95
- package/i18n/index.js.map +1 -1
- package/i18n/index.min.js +2 -2
- package/i18n/indonesian.js +14 -3
- package/i18n/indonesian.js.map +1 -1
- package/i18n/indonesian.min.js +2 -2
- package/i18n/italian.js +14 -3
- package/i18n/italian.js.map +1 -1
- package/i18n/italian.min.js +2 -2
- package/i18n/japanese.js +14 -3
- package/i18n/japanese.js.map +1 -1
- package/i18n/japanese.min.js +2 -2
- package/i18n/kazakh.js +14 -3
- package/i18n/kazakh.js.map +1 -1
- package/i18n/kazakh.min.js +2 -2
- package/i18n/korean.js +14 -3
- package/i18n/korean.js.map +1 -1
- package/i18n/korean.min.js +2 -2
- package/i18n/latvian.js +14 -3
- package/i18n/latvian.js.map +1 -1
- package/i18n/latvian.min.js +2 -2
- package/i18n/lithuanian.js +14 -3
- package/i18n/lithuanian.js.map +1 -1
- package/i18n/lithuanian.min.js +2 -2
- package/i18n/macedonian.js +14 -3
- package/i18n/macedonian.js.map +1 -1
- package/i18n/macedonian.min.js +2 -2
- package/i18n/malay.js +14 -3
- package/i18n/malay.js.map +1 -1
- package/i18n/malay.min.js +2 -2
- package/i18n/nl-BE.js +14 -3
- package/i18n/nl-BE.js.map +1 -1
- package/i18n/nl-BE.min.js +2 -2
- package/i18n/norwegian.js +14 -3
- package/i18n/norwegian.js.map +1 -1
- package/i18n/norwegian.min.js +2 -2
- package/i18n/persian.js +14 -3
- package/i18n/persian.js.map +1 -1
- package/i18n/persian.min.js +2 -2
- package/i18n/polish.js +14 -3
- package/i18n/polish.js.map +1 -1
- package/i18n/polish.min.js +2 -2
- package/i18n/portuguese-br.js +14 -3
- package/i18n/portuguese-br.js.map +1 -1
- package/i18n/portuguese-br.min.js +2 -2
- package/i18n/portuguese.js +14 -3
- package/i18n/portuguese.js.map +1 -1
- package/i18n/portuguese.min.js +2 -2
- package/i18n/romanian.js +14 -3
- package/i18n/romanian.js.map +1 -1
- package/i18n/romanian.min.js +2 -2
- package/i18n/russian.js +14 -3
- package/i18n/russian.js.map +1 -1
- package/i18n/russian.min.js +2 -2
- package/i18n/serbian.js +14 -3
- package/i18n/serbian.js.map +1 -1
- package/i18n/serbian.min.js +2 -2
- package/i18n/simplified-chinese.js +14 -3
- package/i18n/simplified-chinese.js.map +1 -1
- package/i18n/simplified-chinese.min.js +2 -2
- package/i18n/slovak.js +14 -3
- package/i18n/slovak.js.map +1 -1
- package/i18n/slovak.min.js +2 -2
- package/i18n/spanish.js +14 -3
- package/i18n/spanish.js.map +1 -1
- package/i18n/spanish.min.js +2 -2
- package/i18n/swahili.js +14 -3
- package/i18n/swahili.js.map +1 -1
- package/i18n/swahili.min.js +2 -2
- package/i18n/swedish.js +14 -3
- package/i18n/swedish.js.map +1 -1
- package/i18n/swedish.min.js +2 -2
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +14 -3
- package/i18n/telugu.js.map +1 -1
- package/i18n/telugu.min.js +2 -2
- package/i18n/thai.js +14 -3
- package/i18n/thai.js.map +1 -1
- package/i18n/thai.min.js +2 -2
- package/i18n/traditional-chinese.js +14 -3
- package/i18n/traditional-chinese.js.map +1 -1
- package/i18n/traditional-chinese.min.js +2 -2
- package/i18n/turkish.js +14 -3
- package/i18n/turkish.js.map +1 -1
- package/i18n/turkish.min.js +2 -2
- package/i18n/ukrainian.js +14 -3
- package/i18n/ukrainian.js.map +1 -1
- package/i18n/ukrainian.min.js +2 -2
- package/i18n/urdu.js +14 -3
- package/i18n/urdu.js.map +1 -1
- package/i18n/urdu.min.js +2 -2
- package/i18n/vietnamese.js +14 -3
- package/i18n/vietnamese.js.map +1 -1
- package/i18n/vietnamese.min.js +2 -2
- package/i18n/welsh.js +14 -3
- package/i18n/welsh.js.map +1 -1
- package/i18n/welsh.min.js +2 -2
- package/modern.css +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/plugins/bootstrap-integration.js +1 -1
- package/plugins/bootstrap-integration.min.js +1 -1
- package/plugins/bootstrap-material-integration.js +1 -1
- package/plugins/bootstrap-material-integration.min.js +1 -1
- package/survey.core.js +419 -108
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +612 -95
- package/survey.i18n.js.map +1 -1
- package/survey.i18n.min.js +2 -2
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/actions/action.d.ts +3 -3
- package/ts3.4/typings/base-interfaces.d.ts +1 -0
- package/ts3.4/typings/base.d.ts +1 -1
- package/ts3.4/typings/error.d.ts +6 -0
- package/ts3.4/typings/jsonobject.d.ts +4 -0
- package/ts3.4/typings/localizablestring.d.ts +1 -0
- package/ts3.4/typings/localization/english.d.ts +1 -0
- package/ts3.4/typings/martixBase.d.ts +6 -2
- package/ts3.4/typings/panel.d.ts +3 -3
- package/ts3.4/typings/question.d.ts +3 -3
- package/ts3.4/typings/question_baseselect.d.ts +2 -2
- package/ts3.4/typings/question_custom.d.ts +28 -1
- package/ts3.4/typings/question_matrix.d.ts +15 -1
- package/ts3.4/typings/question_matrixdropdownbase.d.ts +9 -8
- package/ts3.4/typings/question_matrixdropdowncolumn.d.ts +179 -0
- package/ts3.4/typings/settings.d.ts +2 -2
- package/ts3.4/typings/survey-events-api.d.ts +3 -3
- package/ts3.4/typings/survey.d.ts +3 -0
- package/ts3.4/typings/surveyStrings.d.ts +1 -0
- package/ts3.4/typings/surveyToc.d.ts +0 -2
- package/typings/actions/action.d.ts +3 -3
- package/typings/base-interfaces.d.ts +1 -0
- package/typings/base.d.ts +1 -1
- package/typings/error.d.ts +6 -0
- package/typings/jsonobject.d.ts +4 -0
- package/typings/localizablestring.d.ts +1 -0
- package/typings/localization/english.d.ts +1 -0
- package/typings/martixBase.d.ts +6 -2
- package/typings/panel.d.ts +3 -3
- package/typings/question.d.ts +3 -3
- package/typings/question_baseselect.d.ts +2 -2
- package/typings/question_custom.d.ts +28 -1
- package/typings/question_matrix.d.ts +17 -2
- package/typings/question_matrixdropdownbase.d.ts +9 -8
- package/typings/question_matrixdropdowncolumn.d.ts +179 -0
- package/typings/settings.d.ts +2 -2
- package/typings/survey-events-api.d.ts +3 -3
- package/typings/survey.d.ts +4 -0
- package/typings/surveyStrings.d.ts +1 -0
- package/typings/surveyToc.d.ts +0 -2
package/survey.core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.125
|
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -2439,8 +2439,8 @@ var Base = /** @class */ (function () {
|
|
|
2439
2439
|
Base.prototype.createCustomLocalizableObj = function (name) {
|
|
2440
2440
|
var locStr = this.getLocalizableString(name);
|
|
2441
2441
|
if (locStr)
|
|
2442
|
-
return;
|
|
2443
|
-
this.createLocalizableString(name, this, false, true);
|
|
2442
|
+
return locStr;
|
|
2443
|
+
return this.createLocalizableString(name, this, false, true);
|
|
2444
2444
|
};
|
|
2445
2445
|
Base.prototype.getLocale = function () {
|
|
2446
2446
|
var locOwner = this.getSurvey();
|
|
@@ -8862,7 +8862,7 @@ var ElementHelper = /** @class */ (function () {
|
|
|
8862
8862
|
/*!*************************************!*\
|
|
8863
8863
|
!*** ./src/entries/chunks/model.ts ***!
|
|
8864
8864
|
\*************************************/
|
|
8865
|
-
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel,
|
|
8865
|
+
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank */
|
|
8866
8866
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8867
8867
|
|
|
8868
8868
|
"use strict";
|
|
@@ -9167,8 +9167,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9167
9167
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTimerModel", function() { return _surveyTimerModel__WEBPACK_IMPORTED_MODULE_54__["SurveyTimerModel"]; });
|
|
9168
9168
|
|
|
9169
9169
|
/* harmony import */ var _surveyToc__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../../surveyToc */ "./src/surveyToc.ts");
|
|
9170
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tryNavigateToPage", function() { return _surveyToc__WEBPACK_IMPORTED_MODULE_55__["tryNavigateToPage"]; });
|
|
9171
|
-
|
|
9172
9170
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tryFocusPage", function() { return _surveyToc__WEBPACK_IMPORTED_MODULE_55__["tryFocusPage"]; });
|
|
9173
9171
|
|
|
9174
9172
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createTOCListModel", function() { return _surveyToc__WEBPACK_IMPORTED_MODULE_55__["createTOCListModel"]; });
|
|
@@ -9339,8 +9337,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9339
9337
|
//import "../../modern.scss";
|
|
9340
9338
|
var Version;
|
|
9341
9339
|
var ReleaseDate;
|
|
9342
|
-
Version = "" + "1.9.
|
|
9343
|
-
ReleaseDate = "" + "2024-01-
|
|
9340
|
+
Version = "" + "1.9.125";
|
|
9341
|
+
ReleaseDate = "" + "2024-01-11";
|
|
9344
9342
|
function checkLibraryVersion(ver, libraryName) {
|
|
9345
9343
|
if (Version != ver) {
|
|
9346
9344
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
|
@@ -9515,7 +9513,7 @@ function checkPrefix(prefix) {
|
|
|
9515
9513
|
/*!**************************************!*\
|
|
9516
9514
|
!*** ./src/entries/core-wo-model.ts ***!
|
|
9517
9515
|
\**************************************/
|
|
9518
|
-
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel,
|
|
9516
|
+
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper */
|
|
9519
9517
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9520
9518
|
|
|
9521
9519
|
"use strict";
|
|
@@ -9771,8 +9769,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9771
9769
|
|
|
9772
9770
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTimerModel", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["SurveyTimerModel"]; });
|
|
9773
9771
|
|
|
9774
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tryNavigateToPage", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["tryNavigateToPage"]; });
|
|
9775
|
-
|
|
9776
9772
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tryFocusPage", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["tryFocusPage"]; });
|
|
9777
9773
|
|
|
9778
9774
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createTOCListModel", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["createTOCListModel"]; });
|
|
@@ -9980,7 +9976,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9980
9976
|
/*!*****************************!*\
|
|
9981
9977
|
!*** ./src/entries/core.ts ***!
|
|
9982
9978
|
\*****************************/
|
|
9983
|
-
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel,
|
|
9979
|
+
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model */
|
|
9984
9980
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9985
9981
|
|
|
9986
9982
|
"use strict";
|
|
@@ -10236,8 +10232,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10236
10232
|
|
|
10237
10233
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTimerModel", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["SurveyTimerModel"]; });
|
|
10238
10234
|
|
|
10239
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tryNavigateToPage", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["tryNavigateToPage"]; });
|
|
10240
|
-
|
|
10241
10235
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tryFocusPage", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["tryFocusPage"]; });
|
|
10242
10236
|
|
|
10243
10237
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createTOCListModel", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["createTOCListModel"]; });
|
|
@@ -10426,7 +10420,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10426
10420
|
/*!**********************!*\
|
|
10427
10421
|
!*** ./src/error.ts ***!
|
|
10428
10422
|
\**********************/
|
|
10429
|
-
/*! exports provided: AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, WebRequestError, WebRequestEmptyError, OtherEmptyError, UploadingFileError, RequiredInAllRowsError, MinRowCountError, KeyDuplicationError, CustomError */
|
|
10423
|
+
/*! exports provided: AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, WebRequestError, WebRequestEmptyError, OtherEmptyError, UploadingFileError, RequiredInAllRowsError, EachRowUniqueError, MinRowCountError, KeyDuplicationError, CustomError */
|
|
10430
10424
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10431
10425
|
|
|
10432
10426
|
"use strict";
|
|
@@ -10440,6 +10434,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10440
10434
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OtherEmptyError", function() { return OtherEmptyError; });
|
|
10441
10435
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadingFileError", function() { return UploadingFileError; });
|
|
10442
10436
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequiredInAllRowsError", function() { return RequiredInAllRowsError; });
|
|
10437
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EachRowUniqueError", function() { return EachRowUniqueError; });
|
|
10443
10438
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MinRowCountError", function() { return MinRowCountError; });
|
|
10444
10439
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyDuplicationError", function() { return KeyDuplicationError; });
|
|
10445
10440
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomError", function() { return CustomError; });
|
|
@@ -10632,6 +10627,23 @@ var RequiredInAllRowsError = /** @class */ (function (_super) {
|
|
|
10632
10627
|
return RequiredInAllRowsError;
|
|
10633
10628
|
}(_survey_error__WEBPACK_IMPORTED_MODULE_1__["SurveyError"]));
|
|
10634
10629
|
|
|
10630
|
+
var EachRowUniqueError = /** @class */ (function (_super) {
|
|
10631
|
+
__extends(EachRowUniqueError, _super);
|
|
10632
|
+
function EachRowUniqueError(text, errorOwner) {
|
|
10633
|
+
if (errorOwner === void 0) { errorOwner = null; }
|
|
10634
|
+
var _this = _super.call(this, text, errorOwner) || this;
|
|
10635
|
+
_this.text = text;
|
|
10636
|
+
return _this;
|
|
10637
|
+
}
|
|
10638
|
+
EachRowUniqueError.prototype.getErrorType = function () {
|
|
10639
|
+
return "eachrowuniqueeerror";
|
|
10640
|
+
};
|
|
10641
|
+
EachRowUniqueError.prototype.getDefaultText = function () {
|
|
10642
|
+
return this.getLocalizationString("eachRowUniqueError");
|
|
10643
|
+
};
|
|
10644
|
+
return EachRowUniqueError;
|
|
10645
|
+
}(_survey_error__WEBPACK_IMPORTED_MODULE_1__["SurveyError"]));
|
|
10646
|
+
|
|
10635
10647
|
var MinRowCountError = /** @class */ (function (_super) {
|
|
10636
10648
|
__extends(MinRowCountError, _super);
|
|
10637
10649
|
function MinRowCountError(minRowCount, errorOwner) {
|
|
@@ -17605,7 +17617,12 @@ var JsonObjectProperty = /** @class */ (function () {
|
|
|
17605
17617
|
return this.isRequiredValue;
|
|
17606
17618
|
},
|
|
17607
17619
|
set: function (val) {
|
|
17608
|
-
this.
|
|
17620
|
+
if (val !== this.isRequired) {
|
|
17621
|
+
this.isRequiredValue = val;
|
|
17622
|
+
if (!!this.classInfo) {
|
|
17623
|
+
this.classInfo.resetAllProperties();
|
|
17624
|
+
}
|
|
17625
|
+
}
|
|
17609
17626
|
},
|
|
17610
17627
|
enumerable: false,
|
|
17611
17628
|
configurable: true
|
|
@@ -17640,7 +17657,7 @@ var JsonObjectProperty = /** @class */ (function () {
|
|
|
17640
17657
|
JsonObjectProperty.prototype.getDefaultValue = function (obj) {
|
|
17641
17658
|
var result = !!this.defaultValueFunc ? this.defaultValueFunc(obj) : this.defaultValueValue;
|
|
17642
17659
|
if (!!JsonObjectProperty.getItemValuesDefaultValue &&
|
|
17643
|
-
|
|
17660
|
+
Serializer.isDescendantOf(this.className, "itemvalue")) {
|
|
17644
17661
|
result = JsonObjectProperty.getItemValuesDefaultValue(this.defaultValueValue || [], this.className);
|
|
17645
17662
|
}
|
|
17646
17663
|
return result;
|
|
@@ -17985,7 +18002,8 @@ var CustomPropertiesCollection = /** @class */ (function () {
|
|
|
17985
18002
|
if (prop.isLocalizable &&
|
|
17986
18003
|
prop.serializationProperty &&
|
|
17987
18004
|
obj.createCustomLocalizableObj) {
|
|
17988
|
-
obj.createCustomLocalizableObj(prop.name);
|
|
18005
|
+
var locStr = obj.createCustomLocalizableObj(prop.name);
|
|
18006
|
+
locStr.defaultValue = prop.defaultValue;
|
|
17989
18007
|
var locDesc = {
|
|
17990
18008
|
get: function () {
|
|
17991
18009
|
return obj.getLocalizableString(prop.name);
|
|
@@ -17994,7 +18012,7 @@ var CustomPropertiesCollection = /** @class */ (function () {
|
|
|
17994
18012
|
Object.defineProperty(obj, prop.serializationProperty, locDesc);
|
|
17995
18013
|
var desc = {
|
|
17996
18014
|
get: function () {
|
|
17997
|
-
return obj.getLocalizableStringText(prop.name
|
|
18015
|
+
return obj.getLocalizableStringText(prop.name);
|
|
17998
18016
|
},
|
|
17999
18017
|
set: function (v) {
|
|
18000
18018
|
obj.setLocalizableStringText(prop.name, v);
|
|
@@ -18006,7 +18024,7 @@ var CustomPropertiesCollection = /** @class */ (function () {
|
|
|
18006
18024
|
var defaultValue = prop.defaultValue;
|
|
18007
18025
|
var isArrayProp = prop.isArray || prop.type === "multiplevalues";
|
|
18008
18026
|
if (typeof obj.createNewArray === "function") {
|
|
18009
|
-
if (
|
|
18027
|
+
if (Serializer.isDescendantOf(prop.className, "itemvalue")) {
|
|
18010
18028
|
obj.createNewArray(prop.name, function (item) {
|
|
18011
18029
|
item.locOwner = obj;
|
|
18012
18030
|
item.ownerPropertyName = prop.name;
|
|
@@ -18097,8 +18115,20 @@ var JsonMetadataClass = /** @class */ (function () {
|
|
|
18097
18115
|
this.fillAllProperties();
|
|
18098
18116
|
return this.allProperties;
|
|
18099
18117
|
};
|
|
18118
|
+
JsonMetadataClass.prototype.getRequiredProperties = function () {
|
|
18119
|
+
if (!!this.requiredProperties)
|
|
18120
|
+
return this.requiredProperties;
|
|
18121
|
+
this.requiredProperties = [];
|
|
18122
|
+
var props = this.getAllProperties();
|
|
18123
|
+
for (var i = 0; i < props.length; i++) {
|
|
18124
|
+
if (props[i].isRequired)
|
|
18125
|
+
this.requiredProperties.push(props[i]);
|
|
18126
|
+
}
|
|
18127
|
+
return this.requiredProperties;
|
|
18128
|
+
};
|
|
18100
18129
|
JsonMetadataClass.prototype.resetAllProperties = function () {
|
|
18101
18130
|
this.allProperties = undefined;
|
|
18131
|
+
this.requiredProperties = undefined;
|
|
18102
18132
|
this.hashProperties = undefined;
|
|
18103
18133
|
var childClasses = Serializer.getChildrenClasses(this.name);
|
|
18104
18134
|
for (var i = 0; i < childClasses.length; i++) {
|
|
@@ -18368,6 +18398,7 @@ var JsonMetadata = /** @class */ (function () {
|
|
|
18368
18398
|
this.classes = {};
|
|
18369
18399
|
this.alternativeNames = {};
|
|
18370
18400
|
this.childrenClasses = {};
|
|
18401
|
+
this.dynamicPropsCache = {};
|
|
18371
18402
|
}
|
|
18372
18403
|
JsonMetadata.prototype.getObjPropertyValue = function (obj, name) {
|
|
18373
18404
|
if (this.isObjWrapper(obj)) {
|
|
@@ -18480,14 +18511,18 @@ var JsonMetadata = /** @class */ (function () {
|
|
|
18480
18511
|
if (dynamicType === void 0) { dynamicType = null; }
|
|
18481
18512
|
if (!obj || !obj.getType || (!obj.getDynamicType && !dynamicType))
|
|
18482
18513
|
return [];
|
|
18514
|
+
var objType = obj.getType();
|
|
18483
18515
|
var dType = !!dynamicType ? dynamicType : obj.getDynamicType();
|
|
18484
18516
|
if (!dType)
|
|
18485
18517
|
return [];
|
|
18518
|
+
var cacheType = dType + "-" + objType;
|
|
18519
|
+
if (this.dynamicPropsCache[cacheType])
|
|
18520
|
+
return this.dynamicPropsCache[cacheType];
|
|
18486
18521
|
var dynamicProps = this.getProperties(dType);
|
|
18487
18522
|
if (!dynamicProps || dynamicProps.length == 0)
|
|
18488
18523
|
return [];
|
|
18489
18524
|
var hash = {};
|
|
18490
|
-
var props = this.getProperties(
|
|
18525
|
+
var props = this.getProperties(objType);
|
|
18491
18526
|
for (var i = 0; i < props.length; i++) {
|
|
18492
18527
|
hash[props[i].name] = props[i];
|
|
18493
18528
|
}
|
|
@@ -18498,6 +18533,7 @@ var JsonMetadata = /** @class */ (function () {
|
|
|
18498
18533
|
res.push(dProp);
|
|
18499
18534
|
}
|
|
18500
18535
|
}
|
|
18536
|
+
this.dynamicPropsCache[cacheType] = res;
|
|
18501
18537
|
return res;
|
|
18502
18538
|
};
|
|
18503
18539
|
JsonMetadata.prototype.hasOriginalProperty = function (obj, propName) {
|
|
@@ -18607,12 +18643,13 @@ var JsonMetadata = /** @class */ (function () {
|
|
|
18607
18643
|
return result;
|
|
18608
18644
|
};
|
|
18609
18645
|
JsonMetadata.prototype.getRequiredProperties = function (name) {
|
|
18610
|
-
var
|
|
18646
|
+
var metaClass = this.findClass(name);
|
|
18647
|
+
if (!metaClass)
|
|
18648
|
+
return [];
|
|
18649
|
+
var props = metaClass.getRequiredProperties();
|
|
18611
18650
|
var res = [];
|
|
18612
|
-
for (var i = 0; i <
|
|
18613
|
-
|
|
18614
|
-
res.push(properties[i].name);
|
|
18615
|
-
}
|
|
18651
|
+
for (var i = 0; i < props.length; i++) {
|
|
18652
|
+
res.push(props[i].name);
|
|
18616
18653
|
}
|
|
18617
18654
|
return res;
|
|
18618
18655
|
};
|
|
@@ -18631,6 +18668,7 @@ var JsonMetadata = /** @class */ (function () {
|
|
|
18631
18668
|
return null;
|
|
18632
18669
|
var property = metaDataClass.createProperty(propertyInfo, true);
|
|
18633
18670
|
if (property) {
|
|
18671
|
+
this.clearDynamicPropsCache(metaDataClass);
|
|
18634
18672
|
metaDataClass.resetAllProperties();
|
|
18635
18673
|
}
|
|
18636
18674
|
return property;
|
|
@@ -18641,11 +18679,15 @@ var JsonMetadata = /** @class */ (function () {
|
|
|
18641
18679
|
return false;
|
|
18642
18680
|
var property = metaDataClass.find(propertyName);
|
|
18643
18681
|
if (property) {
|
|
18682
|
+
this.clearDynamicPropsCache(metaDataClass);
|
|
18644
18683
|
this.removePropertyFromClass(metaDataClass, property);
|
|
18645
18684
|
metaDataClass.resetAllProperties();
|
|
18646
18685
|
CustomPropertiesCollection.removeProperty(metaDataClass.name, propertyName);
|
|
18647
18686
|
}
|
|
18648
18687
|
};
|
|
18688
|
+
JsonMetadata.prototype.clearDynamicPropsCache = function (metaDataClass) {
|
|
18689
|
+
this.dynamicPropsCache = {};
|
|
18690
|
+
};
|
|
18649
18691
|
JsonMetadata.prototype.removePropertyFromClass = function (metaDataClass, property) {
|
|
18650
18692
|
var index = metaDataClass.properties.indexOf(property);
|
|
18651
18693
|
if (index < 0)
|
|
@@ -18872,7 +18914,7 @@ var JsonUnknownPropertyError = /** @class */ (function (_super) {
|
|
|
18872
18914
|
"' is unknown.") || this;
|
|
18873
18915
|
_this.propertyName = propertyName;
|
|
18874
18916
|
_this.className = className;
|
|
18875
|
-
var properties =
|
|
18917
|
+
var properties = Serializer.getProperties(className);
|
|
18876
18918
|
if (properties) {
|
|
18877
18919
|
_this.description = "The list of available properties are: ";
|
|
18878
18920
|
for (var i = 0; i < properties.length; i++) {
|
|
@@ -18895,7 +18937,7 @@ var JsonMissingTypeErrorBase = /** @class */ (function (_super) {
|
|
|
18895
18937
|
_this.type = type;
|
|
18896
18938
|
_this.message = message;
|
|
18897
18939
|
_this.description = "The following types are available: ";
|
|
18898
|
-
var types =
|
|
18940
|
+
var types = Serializer.getChildrenClasses(baseClassName, true);
|
|
18899
18941
|
for (var i = 0; i < types.length; i++) {
|
|
18900
18942
|
if (i > 0)
|
|
18901
18943
|
_this.description += ", ";
|
|
@@ -19001,9 +19043,9 @@ var JsonObject = /** @class */ (function () {
|
|
|
19001
19043
|
var needAddErrors = true;
|
|
19002
19044
|
if (obj.getType) {
|
|
19003
19045
|
objType = obj.getType();
|
|
19004
|
-
properties =
|
|
19046
|
+
properties = Serializer.getProperties(objType);
|
|
19005
19047
|
needAddErrors =
|
|
19006
|
-
!!objType && !
|
|
19048
|
+
!!objType && !Serializer.isDescendantOf(objType, "itemvalue");
|
|
19007
19049
|
}
|
|
19008
19050
|
if (!properties)
|
|
19009
19051
|
return;
|
|
@@ -19043,7 +19085,7 @@ var JsonObject = /** @class */ (function () {
|
|
|
19043
19085
|
if (property != null && !property.className) {
|
|
19044
19086
|
result[JsonObject.typePropertyName] = property.getObjType(obj.getType());
|
|
19045
19087
|
}
|
|
19046
|
-
this.propertiesToJson(obj,
|
|
19088
|
+
this.propertiesToJson(obj, Serializer.getProperties(obj.getType()), result, storeDefaults);
|
|
19047
19089
|
this.propertiesToJson(obj, this.getDynamicProperties(obj), result, storeDefaults);
|
|
19048
19090
|
return result;
|
|
19049
19091
|
};
|
|
@@ -19161,7 +19203,7 @@ var JsonObject = /** @class */ (function () {
|
|
|
19161
19203
|
var result = { newObj: null, error: null };
|
|
19162
19204
|
var className = this.getClassNameForNewObj(value, property);
|
|
19163
19205
|
result.newObj = className
|
|
19164
|
-
?
|
|
19206
|
+
? Serializer.createClass(className, value)
|
|
19165
19207
|
: null;
|
|
19166
19208
|
result.error = this.checkNewObjectOnErrors(result.newObj, value, property, className);
|
|
19167
19209
|
return result;
|
|
@@ -19203,16 +19245,18 @@ var JsonObject = /** @class */ (function () {
|
|
|
19203
19245
|
JsonObject.prototype.getRequiredError = function (obj, jsonValue) {
|
|
19204
19246
|
if (!obj.getType || typeof obj.getData === "function")
|
|
19205
19247
|
return null;
|
|
19206
|
-
var
|
|
19207
|
-
|
|
19208
|
-
|
|
19248
|
+
var metaClass = Serializer.findClass(obj.getType());
|
|
19249
|
+
if (!metaClass)
|
|
19250
|
+
return null;
|
|
19251
|
+
var props = metaClass.getRequiredProperties();
|
|
19252
|
+
if (!Array.isArray(props))
|
|
19209
19253
|
return null;
|
|
19210
|
-
for (var i = 0; i <
|
|
19211
|
-
var prop =
|
|
19212
|
-
if (!
|
|
19254
|
+
for (var i = 0; i < props.length; i++) {
|
|
19255
|
+
var prop = props[i];
|
|
19256
|
+
if (!_helpers__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isValueEmpty(prop.defaultValue))
|
|
19213
19257
|
continue;
|
|
19214
19258
|
if (!jsonValue[prop.name]) {
|
|
19215
|
-
return new JsonRequiredPropertyError(prop.name,
|
|
19259
|
+
return new JsonRequiredPropertyError(prop.name, obj.getType());
|
|
19216
19260
|
}
|
|
19217
19261
|
}
|
|
19218
19262
|
return null;
|
|
@@ -19834,7 +19878,7 @@ var LocalizableString = /** @class */ (function () {
|
|
|
19834
19878
|
}
|
|
19835
19879
|
}
|
|
19836
19880
|
if (!res)
|
|
19837
|
-
res = "";
|
|
19881
|
+
res = this.defaultValue || "";
|
|
19838
19882
|
return res;
|
|
19839
19883
|
},
|
|
19840
19884
|
enumerable: false,
|
|
@@ -20332,6 +20376,7 @@ var englishStrings = {
|
|
|
20332
20376
|
requiredError: "Response required.",
|
|
20333
20377
|
requiredErrorInPanel: "Response required: answer at least one question.",
|
|
20334
20378
|
requiredInAllRowsError: "Response required: answer questions in all rows.",
|
|
20379
|
+
eachRowUniqueError: "Each row must have a unique value.",
|
|
20335
20380
|
numericError: "The value should be numeric.",
|
|
20336
20381
|
minError: "The value should not be less than {0}",
|
|
20337
20382
|
maxError: "The value should not be greater than {0}",
|
|
@@ -20511,9 +20556,13 @@ var QuestionMatrixBaseModel = /** @class */ (function (_super) {
|
|
|
20511
20556
|
/**
|
|
20512
20557
|
* An array of matrix columns.
|
|
20513
20558
|
*
|
|
20514
|
-
*
|
|
20559
|
+
* For a Single-Select Matrix, the `columns` array can contain configuration objects with the `text` (display value) and `value` (value to be saved in survey results) properties. Alternatively, the array can contain primitive values that will be used as both the display values and values to be saved in survey results.
|
|
20515
20560
|
*
|
|
20516
|
-
* [View Demo](https://surveyjs.io/form-library/examples/single-selection-matrix-table-question/ (linkStyle))
|
|
20561
|
+
* [View "Single-Select Matrix" Demo](https://surveyjs.io/form-library/examples/single-selection-matrix-table-question/ (linkStyle))
|
|
20562
|
+
*
|
|
20563
|
+
* For a Multi-Select Matrix or Dynamic Matrix, the `columns` array should contain configuration objects with properties described in the [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) API Reference section.
|
|
20564
|
+
*
|
|
20565
|
+
* [View "Multi-Select Matrix" Demo](https://surveyjs.io/form-library/examples/questiontype-matrixdropdown/ (linkStyle))
|
|
20517
20566
|
*/
|
|
20518
20567
|
get: function () {
|
|
20519
20568
|
return this.getPropertyValue("columns");
|
|
@@ -21979,7 +22028,7 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
|
21979
22028
|
*
|
|
21980
22029
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
21981
22030
|
*
|
|
21982
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
22031
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
21983
22032
|
* @see visible
|
|
21984
22033
|
* @see isVisible
|
|
21985
22034
|
*/
|
|
@@ -22285,7 +22334,7 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
|
22285
22334
|
*
|
|
22286
22335
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
22287
22336
|
*
|
|
22288
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
22337
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
22289
22338
|
* @see isRequired
|
|
22290
22339
|
*/
|
|
22291
22340
|
get: function () {
|
|
@@ -22721,7 +22770,7 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
|
22721
22770
|
PanelModelBase.prototype.isLazyRenderInRow = function (rowIndex) {
|
|
22722
22771
|
if (!this.survey || !this.survey.isLazyRendering)
|
|
22723
22772
|
return false;
|
|
22724
|
-
return (rowIndex >=
|
|
22773
|
+
return (rowIndex >= this.survey.lazyRenderingFirstBatchSize ||
|
|
22725
22774
|
!this.canRenderFirstRows());
|
|
22726
22775
|
};
|
|
22727
22776
|
PanelModelBase.prototype.canRenderFirstRows = function () {
|
|
@@ -22935,7 +22984,7 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
|
22935
22984
|
*
|
|
22936
22985
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
22937
22986
|
*
|
|
22938
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
22987
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
22939
22988
|
* @see readOnly
|
|
22940
22989
|
* @see isReadOnly
|
|
22941
22990
|
*/
|
|
@@ -25436,7 +25485,7 @@ var Question = /** @class */ (function (_super) {
|
|
|
25436
25485
|
*
|
|
25437
25486
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
25438
25487
|
*
|
|
25439
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
25488
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
25440
25489
|
* @see visible
|
|
25441
25490
|
* @see isVisible
|
|
25442
25491
|
*/
|
|
@@ -26497,7 +26546,7 @@ var Question = /** @class */ (function (_super) {
|
|
|
26497
26546
|
*
|
|
26498
26547
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
26499
26548
|
*
|
|
26500
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
26549
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
26501
26550
|
* @see isRequired
|
|
26502
26551
|
*/
|
|
26503
26552
|
get: function () {
|
|
@@ -26653,7 +26702,7 @@ var Question = /** @class */ (function (_super) {
|
|
|
26653
26702
|
*
|
|
26654
26703
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
26655
26704
|
*
|
|
26656
|
-
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
|
26705
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
26657
26706
|
* @see readOnly
|
|
26658
26707
|
* @see isReadOnly
|
|
26659
26708
|
*/
|
|
@@ -29479,7 +29528,7 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
|
29479
29528
|
});
|
|
29480
29529
|
Object.defineProperty(QuestionSelectBase.prototype, "otherErrorText", {
|
|
29481
29530
|
/**
|
|
29482
|
-
*
|
|
29531
|
+
* Gets or sets an error message displayed when users select the "Other" choice item but leave the comment area empty.
|
|
29483
29532
|
* @see showOtherItem
|
|
29484
29533
|
*/
|
|
29485
29534
|
get: function () {
|
|
@@ -30532,7 +30581,7 @@ var QuestionCheckboxBase = /** @class */ (function (_super) {
|
|
|
30532
30581
|
}
|
|
30533
30582
|
Object.defineProperty(QuestionCheckboxBase.prototype, "colCount", {
|
|
30534
30583
|
/**
|
|
30535
|
-
*
|
|
30584
|
+
* Gets or sets the number of columns used to arrange choice items.
|
|
30536
30585
|
*
|
|
30537
30586
|
* Set this property to 0 if you want to display all items in one line. The default value depends on the available width.
|
|
30538
30587
|
* @see separateSpecialChoices
|
|
@@ -32451,6 +32500,13 @@ var ComponentQuestionJSON = /** @class */ (function () {
|
|
|
32451
32500
|
return question.getDisplayValue(keyAsText, value);
|
|
32452
32501
|
return this.json.getDisplayValue(question);
|
|
32453
32502
|
};
|
|
32503
|
+
Object.defineProperty(ComponentQuestionJSON.prototype, "defaultQuestionTitle", {
|
|
32504
|
+
get: function () {
|
|
32505
|
+
return this.json.defaultQuestionTitle;
|
|
32506
|
+
},
|
|
32507
|
+
enumerable: false,
|
|
32508
|
+
configurable: true
|
|
32509
|
+
});
|
|
32454
32510
|
ComponentQuestionJSON.prototype.setValueToQuestion = function (val) {
|
|
32455
32511
|
var converter = this.json.valueToQuestion || this.json.setValue;
|
|
32456
32512
|
return !!converter ? converter(val) : val;
|
|
@@ -32558,6 +32614,8 @@ var QuestionCustomModelBase = /** @class */ (function (_super) {
|
|
|
32558
32614
|
_this.customQuestion = customQuestion;
|
|
32559
32615
|
_jsonobject__WEBPACK_IMPORTED_MODULE_1__["CustomPropertiesCollection"].createProperties(_this);
|
|
32560
32616
|
_survey_element__WEBPACK_IMPORTED_MODULE_2__["SurveyElement"].CreateDisabledDesignElements = true;
|
|
32617
|
+
_this.locQuestionTitle = _this.createLocalizableString("questionTitle", _this);
|
|
32618
|
+
_this.locQuestionTitle.setJson(_this.customQuestion.defaultQuestionTitle);
|
|
32561
32619
|
_this.createWrapper();
|
|
32562
32620
|
_survey_element__WEBPACK_IMPORTED_MODULE_2__["SurveyElement"].CreateDisabledDesignElements = false;
|
|
32563
32621
|
if (!!_this.customQuestion) {
|
|
@@ -32580,6 +32638,12 @@ var QuestionCustomModelBase = /** @class */ (function (_super) {
|
|
|
32580
32638
|
this.getElement().localeChanged();
|
|
32581
32639
|
}
|
|
32582
32640
|
};
|
|
32641
|
+
QuestionCustomModelBase.prototype.getDefaultTitle = function () {
|
|
32642
|
+
if (!this.locQuestionTitle.isEmpty) {
|
|
32643
|
+
return this.getProcessedText(this.locQuestionTitle.textOrHtml);
|
|
32644
|
+
}
|
|
32645
|
+
return _super.prototype.getDefaultTitle.call(this);
|
|
32646
|
+
};
|
|
32583
32647
|
QuestionCustomModelBase.prototype.addUsedLocales = function (locales) {
|
|
32584
32648
|
_super.prototype.addUsedLocales.call(this, locales);
|
|
32585
32649
|
if (!!this.getElement()) {
|
|
@@ -32815,8 +32879,9 @@ var QuestionCustomModel = /** @class */ (function (_super) {
|
|
|
32815
32879
|
return this.contentQuestion;
|
|
32816
32880
|
};
|
|
32817
32881
|
QuestionCustomModel.prototype.getDefaultTitle = function () {
|
|
32818
|
-
if (this.hasJSONTitle && this.contentQuestion)
|
|
32819
|
-
return this.contentQuestion.title;
|
|
32882
|
+
if (this.hasJSONTitle && this.contentQuestion) {
|
|
32883
|
+
return this.getProcessedText(this.contentQuestion.title);
|
|
32884
|
+
}
|
|
32820
32885
|
return _super.prototype.getDefaultTitle.call(this);
|
|
32821
32886
|
};
|
|
32822
32887
|
QuestionCustomModel.prototype.setValue = function (name, newValue, locNotification, allowNotifyValueChanged) {
|
|
@@ -36827,9 +36892,9 @@ var MatrixRowModel = /** @class */ (function (_super) {
|
|
|
36827
36892
|
get: function () {
|
|
36828
36893
|
return this.getPropertyValue("value");
|
|
36829
36894
|
},
|
|
36830
|
-
set: function (
|
|
36831
|
-
|
|
36832
|
-
this.setPropertyValue("value",
|
|
36895
|
+
set: function (val) {
|
|
36896
|
+
val = this.data.getCorrectedRowValue(val);
|
|
36897
|
+
this.setPropertyValue("value", val);
|
|
36833
36898
|
},
|
|
36834
36899
|
enumerable: false,
|
|
36835
36900
|
configurable: true
|
|
@@ -36837,9 +36902,8 @@ var MatrixRowModel = /** @class */ (function (_super) {
|
|
|
36837
36902
|
Object.defineProperty(MatrixRowModel.prototype, "rowClasses", {
|
|
36838
36903
|
get: function () {
|
|
36839
36904
|
var cssClasses = this.data.cssClasses;
|
|
36840
|
-
var hasError = !!this.data.getErrorByType("requiredinallrowserror");
|
|
36841
36905
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_11__["CssClassBuilder"]().append(cssClasses.row)
|
|
36842
|
-
.append(cssClasses.rowError,
|
|
36906
|
+
.append(cssClasses.rowError, this.data.hasErrorInRow(this))
|
|
36843
36907
|
.toString();
|
|
36844
36908
|
},
|
|
36845
36909
|
enumerable: false,
|
|
@@ -37072,6 +37136,8 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
|
37072
37136
|
/**
|
|
37073
37137
|
* Specifies whether each row requires an answer. If a respondent skips a row, the question displays a validation error.
|
|
37074
37138
|
* @see isRequired
|
|
37139
|
+
* @see eachRowUnique
|
|
37140
|
+
* @see validators
|
|
37075
37141
|
*/
|
|
37076
37142
|
get: function () {
|
|
37077
37143
|
return this.getPropertyValue("isAllRowRequired");
|
|
@@ -37082,6 +37148,21 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
|
37082
37148
|
enumerable: false,
|
|
37083
37149
|
configurable: true
|
|
37084
37150
|
});
|
|
37151
|
+
Object.defineProperty(QuestionMatrixModel.prototype, "eachRowUnique", {
|
|
37152
|
+
/**
|
|
37153
|
+
* Specifies whether answers in all rows should be unique. If any answers duplicate, the question displays a validation error.
|
|
37154
|
+
* @see isAllRowRequired
|
|
37155
|
+
* @see validators
|
|
37156
|
+
*/
|
|
37157
|
+
get: function () {
|
|
37158
|
+
return this.getPropertyValue("eachRowUnique");
|
|
37159
|
+
},
|
|
37160
|
+
set: function (val) {
|
|
37161
|
+
this.setPropertyValue("eachRowUnique", val);
|
|
37162
|
+
},
|
|
37163
|
+
enumerable: false,
|
|
37164
|
+
configurable: true
|
|
37165
|
+
});
|
|
37085
37166
|
Object.defineProperty(QuestionMatrixModel.prototype, "hasRows", {
|
|
37086
37167
|
get: function () {
|
|
37087
37168
|
return this.rows.length > 0;
|
|
@@ -37266,15 +37347,21 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
|
37266
37347
|
};
|
|
37267
37348
|
QuestionMatrixModel.prototype.onCheckForErrors = function (errors, isOnValueChanged) {
|
|
37268
37349
|
_super.prototype.onCheckForErrors.call(this, errors, isOnValueChanged);
|
|
37269
|
-
|
|
37270
|
-
|
|
37271
|
-
|
|
37350
|
+
this.errorsInRow = undefined;
|
|
37351
|
+
if (!isOnValueChanged || this.hasCssError()) {
|
|
37352
|
+
if (this.hasErrorAllRowsRequired()) {
|
|
37353
|
+
errors.push(new _error__WEBPACK_IMPORTED_MODULE_6__["RequiredInAllRowsError"](null, this));
|
|
37354
|
+
}
|
|
37355
|
+
if (this.hasErrorEachRowUnique()) {
|
|
37356
|
+
errors.push(new _error__WEBPACK_IMPORTED_MODULE_6__["EachRowUniqueError"](null, this));
|
|
37357
|
+
}
|
|
37272
37358
|
}
|
|
37273
37359
|
};
|
|
37274
|
-
QuestionMatrixModel.prototype.
|
|
37275
|
-
|
|
37276
|
-
|
|
37277
|
-
|
|
37360
|
+
QuestionMatrixModel.prototype.hasErrorAllRowsRequired = function () {
|
|
37361
|
+
return this.isAllRowRequired && !this.hasValuesInAllRows();
|
|
37362
|
+
};
|
|
37363
|
+
QuestionMatrixModel.prototype.hasErrorEachRowUnique = function () {
|
|
37364
|
+
return this.eachRowUnique && this.hasNonUniqueValueInRow();
|
|
37278
37365
|
};
|
|
37279
37366
|
QuestionMatrixModel.prototype.hasValuesInAllRows = function () {
|
|
37280
37367
|
var rows = this.generatedVisibleRows;
|
|
@@ -37282,11 +37369,43 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
|
37282
37369
|
rows = this.visibleRows;
|
|
37283
37370
|
if (!rows)
|
|
37284
37371
|
return true;
|
|
37372
|
+
var res = true;
|
|
37285
37373
|
for (var i = 0; i < rows.length; i++) {
|
|
37286
|
-
|
|
37287
|
-
|
|
37374
|
+
var row = rows[i];
|
|
37375
|
+
var hasValue = !this.isValueEmpty(row.value);
|
|
37376
|
+
if (!hasValue) {
|
|
37377
|
+
this.addErrorIntoRow(row);
|
|
37378
|
+
}
|
|
37379
|
+
res = res && hasValue;
|
|
37288
37380
|
}
|
|
37289
|
-
return
|
|
37381
|
+
return res;
|
|
37382
|
+
};
|
|
37383
|
+
QuestionMatrixModel.prototype.hasNonUniqueValueInRow = function () {
|
|
37384
|
+
var rows = this.generatedVisibleRows;
|
|
37385
|
+
if (!rows)
|
|
37386
|
+
rows = this.visibleRows;
|
|
37387
|
+
if (!rows)
|
|
37388
|
+
return false;
|
|
37389
|
+
var hash = {};
|
|
37390
|
+
var res = true;
|
|
37391
|
+
for (var i = 0; i < rows.length; i++) {
|
|
37392
|
+
var val = rows[i].value;
|
|
37393
|
+
var isEmpty = this.isValueEmpty(val);
|
|
37394
|
+
var isUnique = isEmpty || hash[val] !== true;
|
|
37395
|
+
if (!isUnique) {
|
|
37396
|
+
this.addErrorIntoRow(rows[i]);
|
|
37397
|
+
}
|
|
37398
|
+
res = res && isUnique;
|
|
37399
|
+
if (!isEmpty) {
|
|
37400
|
+
hash[val] = true;
|
|
37401
|
+
}
|
|
37402
|
+
}
|
|
37403
|
+
return !res;
|
|
37404
|
+
};
|
|
37405
|
+
QuestionMatrixModel.prototype.addErrorIntoRow = function (row) {
|
|
37406
|
+
if (!this.errorsInRow)
|
|
37407
|
+
this.errorsInRow = {};
|
|
37408
|
+
this.errorsInRow[row.name] = true;
|
|
37290
37409
|
};
|
|
37291
37410
|
QuestionMatrixModel.prototype.getIsAnswered = function () {
|
|
37292
37411
|
return _super.prototype.getIsAnswered.call(this) && this.hasValuesInAllRows();
|
|
@@ -37436,6 +37555,9 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
|
37436
37555
|
}
|
|
37437
37556
|
return value;
|
|
37438
37557
|
};
|
|
37558
|
+
QuestionMatrixModel.prototype.hasErrorInRow = function (row) {
|
|
37559
|
+
return !!this.errorsInRow && !!this.errorsInRow[row.name];
|
|
37560
|
+
};
|
|
37439
37561
|
QuestionMatrixModel.prototype.getSearchableItemValueKeys = function (keys) {
|
|
37440
37562
|
keys.push("columns");
|
|
37441
37563
|
keys.push("rows");
|
|
@@ -37483,6 +37605,7 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_3__["Serializer"].addClass("matrix", [
|
|
|
37483
37605
|
choices: ["initial", "random"],
|
|
37484
37606
|
},
|
|
37485
37607
|
"isAllRowRequired:boolean",
|
|
37608
|
+
{ name: "eachRowUnique:boolean", category: "validation" },
|
|
37486
37609
|
"hideIfRowsEmpty:boolean",
|
|
37487
37610
|
{ name: "cellComponent", visible: false, default: "survey-matrix-cell" }
|
|
37488
37611
|
], function () {
|
|
@@ -39020,14 +39143,15 @@ var QuestionMatrixDropdownModelBase = /** @class */ (function (_super) {
|
|
|
39020
39143
|
*
|
|
39021
39144
|
* Possible values:
|
|
39022
39145
|
*
|
|
39023
|
-
* - `"dropdown"`
|
|
39024
|
-
* - `"checkbox"`
|
|
39025
|
-
* - `"radiogroup"`
|
|
39026
|
-
* - `"
|
|
39027
|
-
* - `"
|
|
39028
|
-
* - `"
|
|
39029
|
-
* - `"
|
|
39030
|
-
* - `"
|
|
39146
|
+
* - [`"dropdown"`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-menu-model)
|
|
39147
|
+
* - [`"checkbox"`](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model)
|
|
39148
|
+
* - [`"radiogroup"`](https://surveyjs.io/form-library/documentation/api-reference/radio-button-question-model)
|
|
39149
|
+
* - [`"tagbox"`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model)
|
|
39150
|
+
* - [`"text"`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model)
|
|
39151
|
+
* - [`"comment"`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model)
|
|
39152
|
+
* - [`"boolean"`](https://surveyjs.io/form-library/documentation/api-reference/boolean-question-model)
|
|
39153
|
+
* - [`"expression"`](https://surveyjs.io/form-library/documentation/api-reference/expression-model)
|
|
39154
|
+
* - [`"rating"`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model)
|
|
39031
39155
|
*
|
|
39032
39156
|
* Default value: `"dropdown"` (inherited from [`settings.matrix.defaultCellType`](https://surveyjs.io/form-library/documentation/settings#matrixDefaultCellType))
|
|
39033
39157
|
*/
|
|
@@ -40460,6 +40584,11 @@ var matrixDropdownColumnTypes = {
|
|
|
40460
40584
|
expression: {},
|
|
40461
40585
|
rating: {},
|
|
40462
40586
|
};
|
|
40587
|
+
/**
|
|
40588
|
+
* An auxiliary class that describes a column in a [Multi-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list) or [Dynamic Matrix](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model).
|
|
40589
|
+
*
|
|
40590
|
+
* You can get an object of this class from the [`columns`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#columns) array or by calling the [`getColumnByName()`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#getColumnByName) method on a matrix instance.
|
|
40591
|
+
*/
|
|
40463
40592
|
var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
40464
40593
|
__extends(MatrixDropdownColumn, _super);
|
|
40465
40594
|
function MatrixDropdownColumn(name, title) {
|
|
@@ -40553,6 +40682,26 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40553
40682
|
return "matrixdropdowncolumn";
|
|
40554
40683
|
};
|
|
40555
40684
|
Object.defineProperty(MatrixDropdownColumn.prototype, "cellType", {
|
|
40685
|
+
/**
|
|
40686
|
+
* Specifies the type of column cells.
|
|
40687
|
+
*
|
|
40688
|
+
* Possible values:
|
|
40689
|
+
*
|
|
40690
|
+
* - [`"dropdown"`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-menu-model)
|
|
40691
|
+
* - [`"checkbox"`](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model)
|
|
40692
|
+
* - [`"radiogroup"`](https://surveyjs.io/form-library/documentation/api-reference/radio-button-question-model)
|
|
40693
|
+
* - [`"tagbox"`](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model)
|
|
40694
|
+
* - [`"text"`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model)
|
|
40695
|
+
* - [`"comment"`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model)
|
|
40696
|
+
* - [`"boolean"`](https://surveyjs.io/form-library/documentation/api-reference/boolean-question-model)
|
|
40697
|
+
* - [`"expression"`](https://surveyjs.io/form-library/documentation/api-reference/expression-model)
|
|
40698
|
+
* - [`"rating"`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model)
|
|
40699
|
+
* - `"default"` (default) - Inherits the input type from the [`cellType`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#cellType) property specified for the parent matrix.
|
|
40700
|
+
*
|
|
40701
|
+
* The input types are based upon standalone question types. Depending on the selected input type, the matrix column can have additional configuration properties inherited from the corresponding question type. For instance, Dropdown, Checkboxes, Radio Button Group, and Tag Box columns can specify the [`choices`](https://surveyjs.io/form-library/documentation/api-reference/radio-button-question-model#choices) array, similar to the question types upon which they are based. Refer to the API Reference of these question types for a full list of available properties.
|
|
40702
|
+
*
|
|
40703
|
+
* [View Demo](https://surveyjs.io/form-library/examples/aggregate-data-within-form/ (linkStyle))
|
|
40704
|
+
*/
|
|
40556
40705
|
get: function () {
|
|
40557
40706
|
return this.getPropertyValue("cellType");
|
|
40558
40707
|
},
|
|
@@ -40599,6 +40748,13 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40599
40748
|
configurable: true
|
|
40600
40749
|
});
|
|
40601
40750
|
Object.defineProperty(MatrixDropdownColumn.prototype, "visible", {
|
|
40751
|
+
/**
|
|
40752
|
+
* Gets or sets column visibility.
|
|
40753
|
+
*
|
|
40754
|
+
* If you want to display or hide a column based on a condition, specify the [`visibleIf`](#visibleIf) property.
|
|
40755
|
+
* @see isRequired
|
|
40756
|
+
* @see readOnly
|
|
40757
|
+
*/
|
|
40602
40758
|
get: function () { return this.getPropertyValue("visible"); },
|
|
40603
40759
|
set: function (val) {
|
|
40604
40760
|
this.setPropertyValue("visible", val);
|
|
@@ -40660,6 +40816,12 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40660
40816
|
configurable: true
|
|
40661
40817
|
});
|
|
40662
40818
|
Object.defineProperty(MatrixDropdownColumn.prototype, "name", {
|
|
40819
|
+
/**
|
|
40820
|
+
* A column ID that is not visible to respondents.
|
|
40821
|
+
*
|
|
40822
|
+
* > Column IDs must be unique.
|
|
40823
|
+
* @see title
|
|
40824
|
+
*/
|
|
40663
40825
|
get: function () {
|
|
40664
40826
|
return this.templateQuestion.name;
|
|
40665
40827
|
},
|
|
@@ -40670,6 +40832,9 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40670
40832
|
configurable: true
|
|
40671
40833
|
});
|
|
40672
40834
|
Object.defineProperty(MatrixDropdownColumn.prototype, "title", {
|
|
40835
|
+
/**
|
|
40836
|
+
* A user-friendly column caption to display. If `title` is undefined, [`name`](#name) is displayed instead.
|
|
40837
|
+
*/
|
|
40673
40838
|
get: function () {
|
|
40674
40839
|
return this.templateQuestion.title;
|
|
40675
40840
|
},
|
|
@@ -40694,6 +40859,14 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40694
40859
|
configurable: true
|
|
40695
40860
|
});
|
|
40696
40861
|
Object.defineProperty(MatrixDropdownColumn.prototype, "isRequired", {
|
|
40862
|
+
/**
|
|
40863
|
+
* Marks the column as required. If a respondent skips any cell in a required column, the matrix displays a validation error.
|
|
40864
|
+
*
|
|
40865
|
+
* If you want to mark the column as required based on a condition, specify the [`requiredIf`](#requiredIf) property.
|
|
40866
|
+
* @see requiredErrorText
|
|
40867
|
+
* @see visible
|
|
40868
|
+
* @see readOnly
|
|
40869
|
+
*/
|
|
40697
40870
|
get: function () {
|
|
40698
40871
|
return this.templateQuestion.isRequired;
|
|
40699
40872
|
},
|
|
@@ -40724,6 +40897,10 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40724
40897
|
configurable: true
|
|
40725
40898
|
});
|
|
40726
40899
|
Object.defineProperty(MatrixDropdownColumn.prototype, "requiredErrorText", {
|
|
40900
|
+
/**
|
|
40901
|
+
* Specifies a custom error message for a required column.
|
|
40902
|
+
* @see isRequired
|
|
40903
|
+
*/
|
|
40727
40904
|
get: function () {
|
|
40728
40905
|
return this.templateQuestion.requiredErrorText;
|
|
40729
40906
|
},
|
|
@@ -40741,6 +40918,13 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40741
40918
|
configurable: true
|
|
40742
40919
|
});
|
|
40743
40920
|
Object.defineProperty(MatrixDropdownColumn.prototype, "readOnly", {
|
|
40921
|
+
/**
|
|
40922
|
+
* Makes the column read-only.
|
|
40923
|
+
*
|
|
40924
|
+
* If you want to switch the column to the read-only state based on a condition, specify the [`enableIf`](#enableIf) property.
|
|
40925
|
+
* @see visible
|
|
40926
|
+
* @see isRequired
|
|
40927
|
+
*/
|
|
40744
40928
|
get: function () {
|
|
40745
40929
|
return this.templateQuestion.readOnly;
|
|
40746
40930
|
},
|
|
@@ -40761,6 +40945,12 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40761
40945
|
configurable: true
|
|
40762
40946
|
});
|
|
40763
40947
|
Object.defineProperty(MatrixDropdownColumn.prototype, "visibleIf", {
|
|
40948
|
+
/**
|
|
40949
|
+
* A Boolean expression. If it evaluates to `false`, this column becomes hidden.
|
|
40950
|
+
*
|
|
40951
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
40952
|
+
* @see visible
|
|
40953
|
+
*/
|
|
40764
40954
|
get: function () {
|
|
40765
40955
|
return this.templateQuestion.visibleIf;
|
|
40766
40956
|
},
|
|
@@ -40771,6 +40961,12 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40771
40961
|
configurable: true
|
|
40772
40962
|
});
|
|
40773
40963
|
Object.defineProperty(MatrixDropdownColumn.prototype, "enableIf", {
|
|
40964
|
+
/**
|
|
40965
|
+
* A Boolean expression. If it evaluates to `false`, this column becomes read-only.
|
|
40966
|
+
*
|
|
40967
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
40968
|
+
* @see readOnly
|
|
40969
|
+
*/
|
|
40774
40970
|
get: function () {
|
|
40775
40971
|
return this.templateQuestion.enableIf;
|
|
40776
40972
|
},
|
|
@@ -40781,6 +40977,12 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40781
40977
|
configurable: true
|
|
40782
40978
|
});
|
|
40783
40979
|
Object.defineProperty(MatrixDropdownColumn.prototype, "requiredIf", {
|
|
40980
|
+
/**
|
|
40981
|
+
* A Boolean expression. If it evaluates to `true`, this column becomes required.
|
|
40982
|
+
*
|
|
40983
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
|
40984
|
+
* @see isRequired
|
|
40985
|
+
*/
|
|
40784
40986
|
get: function () {
|
|
40785
40987
|
return this.templateQuestion.requiredIf;
|
|
40786
40988
|
},
|
|
@@ -40791,6 +40993,12 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40791
40993
|
configurable: true
|
|
40792
40994
|
});
|
|
40793
40995
|
Object.defineProperty(MatrixDropdownColumn.prototype, "resetValueIf", {
|
|
40996
|
+
/**
|
|
40997
|
+
* A Boolean expression. If it evaluates to `true`, all cells in this column are set to a value calculated using the [`defaultValueExpression`](#defaultValueExpression).
|
|
40998
|
+
*
|
|
40999
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
41000
|
+
* @see setValueIf
|
|
41001
|
+
*/
|
|
40794
41002
|
get: function () {
|
|
40795
41003
|
return this.templateQuestion.resetValueIf;
|
|
40796
41004
|
},
|
|
@@ -40801,6 +41009,12 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40801
41009
|
configurable: true
|
|
40802
41010
|
});
|
|
40803
41011
|
Object.defineProperty(MatrixDropdownColumn.prototype, "defaultValueExpression", {
|
|
41012
|
+
/**
|
|
41013
|
+
* An expression used to calculate the column's default value. This expression applies to all cells of this column until the cell value is specified by an end user or programmatically.
|
|
41014
|
+
*
|
|
41015
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
41016
|
+
* @see setValueExpression
|
|
41017
|
+
*/
|
|
40804
41018
|
get: function () {
|
|
40805
41019
|
return this.templateQuestion.defaultValueExpression;
|
|
40806
41020
|
},
|
|
@@ -40811,6 +41025,12 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40811
41025
|
configurable: true
|
|
40812
41026
|
});
|
|
40813
41027
|
Object.defineProperty(MatrixDropdownColumn.prototype, "setValueIf", {
|
|
41028
|
+
/**
|
|
41029
|
+
* A Boolean expression. If it evaluates to `true`, all cells in this column are set to a value calculated using the [`setValueExpression`](#setValueExpression).
|
|
41030
|
+
*
|
|
41031
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
41032
|
+
* @see resetValueIf
|
|
41033
|
+
*/
|
|
40814
41034
|
get: function () {
|
|
40815
41035
|
return this.templateQuestion.setValueIf;
|
|
40816
41036
|
},
|
|
@@ -40821,6 +41041,15 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40821
41041
|
configurable: true
|
|
40822
41042
|
});
|
|
40823
41043
|
Object.defineProperty(MatrixDropdownColumn.prototype, "setValueExpession", {
|
|
41044
|
+
/**
|
|
41045
|
+
* An expression used to calculate a value for all column cells.
|
|
41046
|
+
*
|
|
41047
|
+
* You can use `setValueExpression` as a standalone property or in conjunction with the [`setValueIf`](#setValueIf) expression, in which case the calculated cell value applies only when `setValueIf` evaluates to `true`.
|
|
41048
|
+
*
|
|
41049
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
41050
|
+
* @see defaultValueExpression
|
|
41051
|
+
* @see resetValueIf
|
|
41052
|
+
*/
|
|
40824
41053
|
get: function () {
|
|
40825
41054
|
return this.templateQuestion.setValueExpession;
|
|
40826
41055
|
},
|
|
@@ -40831,6 +41060,11 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40831
41060
|
configurable: true
|
|
40832
41061
|
});
|
|
40833
41062
|
Object.defineProperty(MatrixDropdownColumn.prototype, "isUnique", {
|
|
41063
|
+
/**
|
|
41064
|
+
* Specifies whether a respondent is required to provide a unique response for each question within this column.
|
|
41065
|
+
*
|
|
41066
|
+
* Default value: `false`
|
|
41067
|
+
*/
|
|
40834
41068
|
get: function () {
|
|
40835
41069
|
return this.getPropertyValue("isUnique");
|
|
40836
41070
|
},
|
|
@@ -40841,6 +41075,9 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40841
41075
|
configurable: true
|
|
40842
41076
|
});
|
|
40843
41077
|
Object.defineProperty(MatrixDropdownColumn.prototype, "showInMultipleColumns", {
|
|
41078
|
+
/**
|
|
41079
|
+
* Specifies whether to create an individual column for each choice option. Applies only to columns of `"checkbox"` or `"radiogroup"` [`cellType`](#cellType).
|
|
41080
|
+
*/
|
|
40844
41081
|
get: function () {
|
|
40845
41082
|
return this.getPropertyValue("showInMultipleColumns");
|
|
40846
41083
|
},
|
|
@@ -40865,6 +41102,12 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40865
41102
|
configurable: true
|
|
40866
41103
|
});
|
|
40867
41104
|
Object.defineProperty(MatrixDropdownColumn.prototype, "validators", {
|
|
41105
|
+
/**
|
|
41106
|
+
* Column validators.
|
|
41107
|
+
*
|
|
41108
|
+
* [Data Validation](https://surveyjs.io/form-library/documentation/data-validation (linkStyle))
|
|
41109
|
+
* @see isRequired
|
|
41110
|
+
*/
|
|
40868
41111
|
get: function () {
|
|
40869
41112
|
return this.templateQuestion.validators;
|
|
40870
41113
|
},
|
|
@@ -40875,6 +41118,22 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40875
41118
|
configurable: true
|
|
40876
41119
|
});
|
|
40877
41120
|
Object.defineProperty(MatrixDropdownColumn.prototype, "totalType", {
|
|
41121
|
+
/**
|
|
41122
|
+
* An aggregation method used to calculate the column total.
|
|
41123
|
+
*
|
|
41124
|
+
* Possible values:
|
|
41125
|
+
*
|
|
41126
|
+
* - `"none"` (default) - Disables total calculations.
|
|
41127
|
+
* - `"sum"`
|
|
41128
|
+
* - `"count"`
|
|
41129
|
+
* - `"min"`
|
|
41130
|
+
* - `"max"`
|
|
41131
|
+
* - `"avg"`
|
|
41132
|
+
*
|
|
41133
|
+
* [View Demo](https://surveyjs.io/form-library/examples/aggregate-data-within-form/ (linkStyle))
|
|
41134
|
+
* @see totalFormat
|
|
41135
|
+
* @see totalDisplayStyle
|
|
41136
|
+
*/
|
|
40878
41137
|
get: function () {
|
|
40879
41138
|
return this.getPropertyValue("totalType");
|
|
40880
41139
|
},
|
|
@@ -40885,6 +41144,11 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40885
41144
|
configurable: true
|
|
40886
41145
|
});
|
|
40887
41146
|
Object.defineProperty(MatrixDropdownColumn.prototype, "totalExpression", {
|
|
41147
|
+
/**
|
|
41148
|
+
* An expression used to calculate total values. Overrides the [`totalType`](#totalType) property.
|
|
41149
|
+
*
|
|
41150
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
41151
|
+
*/
|
|
40888
41152
|
get: function () {
|
|
40889
41153
|
return this.getPropertyValue("totalExpression");
|
|
40890
41154
|
},
|
|
@@ -40902,6 +41166,13 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40902
41166
|
configurable: true
|
|
40903
41167
|
});
|
|
40904
41168
|
Object.defineProperty(MatrixDropdownColumn.prototype, "totalFormat", {
|
|
41169
|
+
/**
|
|
41170
|
+
* A string pattern used to display column totals. To reference a total value within this pattern, use the `{0}` placeholder.
|
|
41171
|
+
*
|
|
41172
|
+
* [View Demo](https://surveyjs.io/form-library/examples/aggregate-data-within-form/ (linkStyle))
|
|
41173
|
+
* @see totalType
|
|
41174
|
+
* @see totalDisplayStyle
|
|
41175
|
+
*/
|
|
40905
41176
|
get: function () {
|
|
40906
41177
|
return this.getLocalizableStringText("totalFormat", "");
|
|
40907
41178
|
},
|
|
@@ -40973,6 +41244,21 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40973
41244
|
configurable: true
|
|
40974
41245
|
});
|
|
40975
41246
|
Object.defineProperty(MatrixDropdownColumn.prototype, "totalDisplayStyle", {
|
|
41247
|
+
/**
|
|
41248
|
+
* A format for calculated total values.
|
|
41249
|
+
*
|
|
41250
|
+
* Possible values:
|
|
41251
|
+
*
|
|
41252
|
+
* - `"none"` (default)
|
|
41253
|
+
* - `"decimal"`
|
|
41254
|
+
* - `"currency"`
|
|
41255
|
+
* - `"percent"`
|
|
41256
|
+
*
|
|
41257
|
+
* [View Demo](https://surveyjs.io/form-library/examples/aggregate-data-within-form/ (linkStyle))
|
|
41258
|
+
* @see totalType
|
|
41259
|
+
* @see totalFormat
|
|
41260
|
+
* @see totalCurrency
|
|
41261
|
+
*/
|
|
40976
41262
|
get: function () {
|
|
40977
41263
|
return this.getPropertyValue("totalDisplayStyle");
|
|
40978
41264
|
},
|
|
@@ -40983,6 +41269,10 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40983
41269
|
configurable: true
|
|
40984
41270
|
});
|
|
40985
41271
|
Object.defineProperty(MatrixDropdownColumn.prototype, "totalCurrency", {
|
|
41272
|
+
/**
|
|
41273
|
+
* Specifies a currency used to display calculated total values. Applies only if [`totalDisplayStyle`](#totalDisplayStyle) is set to `"currency"`.
|
|
41274
|
+
* @see totalType
|
|
41275
|
+
*/
|
|
40986
41276
|
get: function () {
|
|
40987
41277
|
return this.getPropertyValue("totalCurrency");
|
|
40988
41278
|
},
|
|
@@ -40995,6 +41285,10 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
40995
41285
|
configurable: true
|
|
40996
41286
|
});
|
|
40997
41287
|
Object.defineProperty(MatrixDropdownColumn.prototype, "minWidth", {
|
|
41288
|
+
/**
|
|
41289
|
+
* Gets or sets minimum column width in CSS values. By default, the matrix calculates column widths to optimally fit the content of all columns.
|
|
41290
|
+
* @see width
|
|
41291
|
+
*/
|
|
40998
41292
|
get: function () {
|
|
40999
41293
|
return this.getPropertyValue("minWidth", "");
|
|
41000
41294
|
},
|
|
@@ -41005,6 +41299,10 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
41005
41299
|
configurable: true
|
|
41006
41300
|
});
|
|
41007
41301
|
Object.defineProperty(MatrixDropdownColumn.prototype, "width", {
|
|
41302
|
+
/**
|
|
41303
|
+
* Gets or sets column width in CSS values. By default, the matrix calculates column widths to optimally fit the content of all columns.
|
|
41304
|
+
* @see minWidth
|
|
41305
|
+
*/
|
|
41008
41306
|
get: function () {
|
|
41009
41307
|
return this.templateQuestion.width;
|
|
41010
41308
|
},
|
|
@@ -41015,6 +41313,11 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
|
41015
41313
|
configurable: true
|
|
41016
41314
|
});
|
|
41017
41315
|
Object.defineProperty(MatrixDropdownColumn.prototype, "colCount", {
|
|
41316
|
+
/**
|
|
41317
|
+
* Gets or sets the number of columns used to arrange choice options. Applies only to columns of `"checkbox"` or `"radiogroup"` [`cellType`](#cellType).
|
|
41318
|
+
*
|
|
41319
|
+
* Default value: -1 (inherits the actual value from the parent matrix's [`columnColCount`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#columnColCount) property)
|
|
41320
|
+
*/
|
|
41018
41321
|
get: function () {
|
|
41019
41322
|
return this.getPropertyValue("colCount");
|
|
41020
41323
|
},
|
|
@@ -51596,7 +51899,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51596
51899
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
|
|
51597
51900
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils/utils */ "./src/utils/utils.ts");
|
|
51598
51901
|
|
|
51599
|
-
var document = globalThis.document;
|
|
51902
|
+
var document = typeof globalThis !== "undefined" ? globalThis.document : undefined.document;
|
|
51600
51903
|
var defaultEnvironment = (!!document ? {
|
|
51601
51904
|
root: document,
|
|
51602
51905
|
_rootElement: document.body,
|
|
@@ -51774,12 +52077,12 @@ var settings = {
|
|
|
51774
52077
|
* import { ItemValue, settings } from "survey-core";
|
|
51775
52078
|
*
|
|
51776
52079
|
* // `itemValueSerializeAsObject` example
|
|
51777
|
-
* settings.
|
|
52080
|
+
* settings.serialization.itemValueSerializeAsObject = true;
|
|
51778
52081
|
* const item = new ItemValue(5);
|
|
51779
52082
|
* const itemString = item.toJSON(); // Produces { value: 5 } instead of 5
|
|
51780
52083
|
*
|
|
51781
52084
|
* // `itemValueSerializeDisplayText` example
|
|
51782
|
-
* settings.
|
|
52085
|
+
* settings.serialization.itemValueSerializeDisplayText = true;
|
|
51783
52086
|
* const item = new ItemValue("item1");
|
|
51784
52087
|
* const itemString = item.toJSON(); // Produces { value: "item1", text: "item1" } instead of "item1"
|
|
51785
52088
|
* ```
|
|
@@ -55284,6 +55587,16 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
55284
55587
|
enumerable: false,
|
|
55285
55588
|
configurable: true
|
|
55286
55589
|
});
|
|
55590
|
+
Object.defineProperty(SurveyModel.prototype, "lazyRenderingFirstBatchSize", {
|
|
55591
|
+
get: function () {
|
|
55592
|
+
return this.lazyRenderingFirstBatchSizeValue || _settings__WEBPACK_IMPORTED_MODULE_14__["settings"].lazyRender.firstBatchSize;
|
|
55593
|
+
},
|
|
55594
|
+
set: function (val) {
|
|
55595
|
+
this.lazyRenderingFirstBatchSizeValue = val;
|
|
55596
|
+
},
|
|
55597
|
+
enumerable: false,
|
|
55598
|
+
configurable: true
|
|
55599
|
+
});
|
|
55287
55600
|
SurveyModel.prototype.updateLazyRenderingRowsOnRemovingElements = function () {
|
|
55288
55601
|
if (!this.isLazyRendering)
|
|
55289
55602
|
return;
|
|
@@ -57562,6 +57875,27 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
57562
57875
|
enumerable: false,
|
|
57563
57876
|
configurable: true
|
|
57564
57877
|
});
|
|
57878
|
+
SurveyModel.prototype.tryNavigateToPage = function (page) {
|
|
57879
|
+
if (this.isDesignMode)
|
|
57880
|
+
return false;
|
|
57881
|
+
var index = this.visiblePages.indexOf(page);
|
|
57882
|
+
if (index < 0)
|
|
57883
|
+
return false;
|
|
57884
|
+
if (index === this.currentPageNo)
|
|
57885
|
+
return false;
|
|
57886
|
+
if (index < this.currentPageNo) {
|
|
57887
|
+
this.currentPageNo = index;
|
|
57888
|
+
return true;
|
|
57889
|
+
}
|
|
57890
|
+
for (var i = this.currentPageNo; i < index; i++) {
|
|
57891
|
+
var page_1 = this.visiblePages[i];
|
|
57892
|
+
if (!page_1.validate(true, true))
|
|
57893
|
+
return false;
|
|
57894
|
+
page_1.passed = true;
|
|
57895
|
+
}
|
|
57896
|
+
this.currentPage = page;
|
|
57897
|
+
return true;
|
|
57898
|
+
};
|
|
57565
57899
|
SurveyModel.prototype.updateCurrentPage = function () {
|
|
57566
57900
|
if (this.isCurrentPageAvailable)
|
|
57567
57901
|
return;
|
|
@@ -62170,6 +62504,9 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
62170
62504
|
__decorate([
|
|
62171
62505
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
62172
62506
|
], SurveyModel.prototype, "enterKeyAction", void 0);
|
|
62507
|
+
__decorate([
|
|
62508
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
62509
|
+
], SurveyModel.prototype, "lazyRenderingFirstBatchSizeValue", void 0);
|
|
62173
62510
|
__decorate([
|
|
62174
62511
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: {} })
|
|
62175
62512
|
], SurveyModel.prototype, "cssVariables", void 0);
|
|
@@ -62538,17 +62875,7 @@ var SurveyProgressButtonsModel = /** @class */ (function () {
|
|
|
62538
62875
|
.toString();
|
|
62539
62876
|
};
|
|
62540
62877
|
SurveyProgressButtonsModel.prototype.clickListElement = function (index) {
|
|
62541
|
-
|
|
62542
|
-
return;
|
|
62543
|
-
if (index < this.survey.currentPageNo) {
|
|
62544
|
-
this.survey.currentPageNo = index;
|
|
62545
|
-
}
|
|
62546
|
-
else if (index > this.survey.currentPageNo) {
|
|
62547
|
-
for (var i = this.survey.currentPageNo; i < index; i++) {
|
|
62548
|
-
if (!this.survey.nextPage())
|
|
62549
|
-
break;
|
|
62550
|
-
}
|
|
62551
|
-
}
|
|
62878
|
+
this.survey.tryNavigateToPage(this.survey.visiblePages[index]);
|
|
62552
62879
|
};
|
|
62553
62880
|
return SurveyProgressButtonsModel;
|
|
62554
62881
|
}());
|
|
@@ -62958,12 +63285,11 @@ var SurveyTimerModel = /** @class */ (function (_super) {
|
|
|
62958
63285
|
/*!**************************!*\
|
|
62959
63286
|
!*** ./src/surveyToc.ts ***!
|
|
62960
63287
|
\**************************/
|
|
62961
|
-
/*! exports provided:
|
|
63288
|
+
/*! exports provided: tryFocusPage, createTOCListModel, getTocRootCss, TOCModel */
|
|
62962
63289
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
62963
63290
|
|
|
62964
63291
|
"use strict";
|
|
62965
63292
|
__webpack_require__.r(__webpack_exports__);
|
|
62966
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tryNavigateToPage", function() { return tryNavigateToPage; });
|
|
62967
63293
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tryFocusPage", function() { return tryFocusPage; });
|
|
62968
63294
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createTOCListModel", function() { return createTOCListModel; });
|
|
62969
63295
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTocRootCss", function() { return getTocRootCss; });
|
|
@@ -62978,21 +63304,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
62978
63304
|
|
|
62979
63305
|
|
|
62980
63306
|
|
|
62981
|
-
function tryNavigateToPage(survey, page) {
|
|
62982
|
-
if (survey.isDesignMode)
|
|
62983
|
-
return;
|
|
62984
|
-
var index = survey.visiblePages.indexOf(page);
|
|
62985
|
-
if (index < survey.currentPageNo) {
|
|
62986
|
-
survey.currentPageNo = index;
|
|
62987
|
-
}
|
|
62988
|
-
else if (index > survey.currentPageNo) {
|
|
62989
|
-
for (var i = survey.currentPageNo; i < index; i++) {
|
|
62990
|
-
if (!survey.nextPageUIClick())
|
|
62991
|
-
return false;
|
|
62992
|
-
}
|
|
62993
|
-
}
|
|
62994
|
-
return true;
|
|
62995
|
-
}
|
|
62996
63307
|
function tryFocusPage(survey, panel) {
|
|
62997
63308
|
if (survey.isDesignMode)
|
|
62998
63309
|
return true;
|
|
@@ -63014,7 +63325,7 @@ function createTOCListModel(survey, onAction) {
|
|
|
63014
63325
|
}
|
|
63015
63326
|
!!onAction && onAction();
|
|
63016
63327
|
if (page instanceof _page__WEBPACK_IMPORTED_MODULE_3__["PageModel"]) {
|
|
63017
|
-
return tryNavigateToPage(
|
|
63328
|
+
return survey.tryNavigateToPage(page);
|
|
63018
63329
|
}
|
|
63019
63330
|
return tryFocusPage(survey, page);
|
|
63020
63331
|
},
|