survey-react 1.9.118 → 1.9.120
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 +223 -100
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +9 -6
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.css.map +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +294 -192
- package/survey.react.js +830 -397
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.120
|
3
3
|
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -2137,7 +2137,7 @@ var Base = /** @class */ (function () {
|
|
2137
2137
|
Base.prototype.resetPropertyValue = function (name) {
|
2138
2138
|
var locStr = this.localizableStrings ? this.localizableStrings[name] : undefined;
|
2139
2139
|
if (locStr) {
|
2140
|
-
locStr.
|
2140
|
+
locStr.clear();
|
2141
2141
|
}
|
2142
2142
|
else {
|
2143
2143
|
this.setPropertyValue(name, undefined);
|
@@ -3969,7 +3969,20 @@ var ProcessValue = /** @class */ (function () {
|
|
3969
3969
|
return res;
|
3970
3970
|
};
|
3971
3971
|
ProcessValue.prototype.getNonNestedObject = function (obj, text, createPath) {
|
3972
|
-
var
|
3972
|
+
var checkedKeys = new Array();
|
3973
|
+
var len = 0;
|
3974
|
+
var res = this.getNonNestedObjectCore(obj, text, createPath, checkedKeys);
|
3975
|
+
while (!res && len < checkedKeys.length) {
|
3976
|
+
len = checkedKeys.length;
|
3977
|
+
res = this.getNonNestedObjectCore(obj, text, createPath, checkedKeys);
|
3978
|
+
}
|
3979
|
+
return res;
|
3980
|
+
};
|
3981
|
+
ProcessValue.prototype.getNonNestedObjectCore = function (obj, text, createPath, checkedKeys) {
|
3982
|
+
var curName = this.getFirstPropertyName(text, obj, createPath, checkedKeys);
|
3983
|
+
if (!!curName) {
|
3984
|
+
checkedKeys.push(curName);
|
3985
|
+
}
|
3973
3986
|
var path = !!curName ? [curName] : null;
|
3974
3987
|
while (text != curName && !!obj) {
|
3975
3988
|
var isArray = text[0] == "[";
|
@@ -3992,7 +4005,7 @@ var ProcessValue = /** @class */ (function () {
|
|
3992
4005
|
if (!!text && text[0] == ".") {
|
3993
4006
|
text = text.substring(1);
|
3994
4007
|
}
|
3995
|
-
curName = this.getFirstPropertyName(text, obj, createPath);
|
4008
|
+
curName = this.getFirstPropertyName(text, obj, createPath, checkedKeys);
|
3996
4009
|
if (!!curName) {
|
3997
4010
|
path.push(curName);
|
3998
4011
|
}
|
@@ -4014,8 +4027,9 @@ var ProcessValue = /** @class */ (function () {
|
|
4014
4027
|
return null;
|
4015
4028
|
return { value: curValue[index], text: text, index: index };
|
4016
4029
|
};
|
4017
|
-
ProcessValue.prototype.getFirstPropertyName = function (name, obj, createProp) {
|
4030
|
+
ProcessValue.prototype.getFirstPropertyName = function (name, obj, createProp, checkedKeys) {
|
4018
4031
|
if (createProp === void 0) { createProp = false; }
|
4032
|
+
if (checkedKeys === void 0) { checkedKeys = undefined; }
|
4019
4033
|
if (!name)
|
4020
4034
|
return name;
|
4021
4035
|
if (!obj)
|
@@ -4026,6 +4040,8 @@ var ProcessValue = /** @class */ (function () {
|
|
4026
4040
|
var A = nameInLow[0];
|
4027
4041
|
var a = A.toUpperCase();
|
4028
4042
|
for (var key in obj) {
|
4043
|
+
if (Array.isArray(checkedKeys) && checkedKeys.indexOf(key) > -1)
|
4044
|
+
continue;
|
4029
4045
|
var first = key[0];
|
4030
4046
|
if (first === a || first === A) {
|
4031
4047
|
var keyName = key.toLowerCase();
|
@@ -4412,7 +4428,7 @@ var modernCss = {
|
|
4412
4428
|
header: "sv-title sv-container-modern__title",
|
4413
4429
|
headerClose: "sv-container-modern__close",
|
4414
4430
|
bodyContainer: "sv-components-row",
|
4415
|
-
body: "sv-
|
4431
|
+
body: "sv-body",
|
4416
4432
|
bodyEmpty: "sv-body sv-body--empty",
|
4417
4433
|
footer: "sv-footer sv-body__footer sv-clearfix",
|
4418
4434
|
title: "",
|
@@ -4867,7 +4883,7 @@ var defaultStandardCss = {
|
|
4867
4883
|
container: "sv_container",
|
4868
4884
|
header: "sv_header",
|
4869
4885
|
bodyContainer: "sv-components-row",
|
4870
|
-
body: "
|
4886
|
+
body: "sv_body",
|
4871
4887
|
bodyEmpty: "sv_body sv_body_empty",
|
4872
4888
|
footer: "sv_nav",
|
4873
4889
|
title: "",
|
@@ -5307,7 +5323,7 @@ var defaultV2Css = {
|
|
5307
5323
|
container: "sd-container-modern",
|
5308
5324
|
header: "sd-title sd-container-modern__title",
|
5309
5325
|
bodyContainer: "sv-components-row",
|
5310
|
-
body: "
|
5326
|
+
body: "sd-body",
|
5311
5327
|
bodyWithTimer: "sd-body--with-timer",
|
5312
5328
|
clockTimerRoot: "sd-timer",
|
5313
5329
|
clockTimerRootTop: "sd-timer--top",
|
@@ -5365,7 +5381,8 @@ var defaultV2Css = {
|
|
5365
5381
|
nested: "sd-element--nested sd-element--nested-with-borders",
|
5366
5382
|
invisible: "sd-element--invisible",
|
5367
5383
|
navigationButton: "",
|
5368
|
-
compact: "sd-element--with-frame sd-element--compact"
|
5384
|
+
compact: "sd-element--with-frame sd-element--compact",
|
5385
|
+
errorsContainer: "sd-panel__errbox sd-element__erbox sd-element__erbox--above-element"
|
5369
5386
|
},
|
5370
5387
|
paneldynamic: {
|
5371
5388
|
mainRoot: "sd-element sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",
|
@@ -5431,7 +5448,8 @@ var defaultV2Css = {
|
|
5431
5448
|
root: "sd-page sd-body__page",
|
5432
5449
|
emptyHeaderRoot: "sd-page__empty-header",
|
5433
5450
|
title: "sd-title sd-page__title",
|
5434
|
-
description: "sd-description sd-page__description"
|
5451
|
+
description: "sd-description sd-page__description",
|
5452
|
+
errorsContainer: "sd-page__errbox"
|
5435
5453
|
},
|
5436
5454
|
pageTitle: "sd-title sd-page__title",
|
5437
5455
|
pageDescription: "sd-description sd-page__description",
|
@@ -5486,6 +5504,9 @@ var defaultV2Css = {
|
|
5486
5504
|
invisible: "sd-element--invisible",
|
5487
5505
|
composite: "sd-element--complex",
|
5488
5506
|
disabled: "sd-question--disabled",
|
5507
|
+
errorsContainer: "sd-element__erbox sd-question__erbox",
|
5508
|
+
errorsContainerTop: "sd-element__erbox--above-element sd-question__erbox--above-question",
|
5509
|
+
errorsContainerBottom: "sd-question__erbox--below-question"
|
5489
5510
|
},
|
5490
5511
|
image: {
|
5491
5512
|
mainRoot: "sd-question sd-question--image",
|
@@ -5502,14 +5523,11 @@ var defaultV2Css = {
|
|
5502
5523
|
withFrame: ""
|
5503
5524
|
},
|
5504
5525
|
error: {
|
5505
|
-
root: "sd-
|
5526
|
+
root: "sd-error",
|
5506
5527
|
icon: "",
|
5507
5528
|
item: "",
|
5508
|
-
|
5509
|
-
|
5510
|
-
belowQuestion: "sd-question__erbox--below-question",
|
5511
|
-
locationTop: "sd-question__erbox--location--top",
|
5512
|
-
locationBottom: "sd-question__erbox--location--bottom"
|
5529
|
+
locationTop: "",
|
5530
|
+
locationBottom: ""
|
5513
5531
|
},
|
5514
5532
|
checkbox: {
|
5515
5533
|
root: "sd-selectbase",
|
@@ -5728,6 +5746,8 @@ var defaultV2Css = {
|
|
5728
5746
|
rowHasEndActions: "sd-table__row--has-end-actions",
|
5729
5747
|
headerCell: "sd-table__cell sd-table__cell--header",
|
5730
5748
|
rowTextCell: "sd-table__cell sd-table__cell--row-text",
|
5749
|
+
footerCell: "sd-table__cell sd-table__cell--footer",
|
5750
|
+
footerTotalCell: "sd-table__cell sd-table__cell--footer-total",
|
5731
5751
|
columnTitleCell: "sd-table__cell--column-title",
|
5732
5752
|
cellRequiredText: "sd-question__required-text",
|
5733
5753
|
detailButton: "sd-table__cell--detail-button",
|
@@ -5763,6 +5783,7 @@ var defaultV2Css = {
|
|
5763
5783
|
itemCell: "sd-table__cell--item",
|
5764
5784
|
headerCell: "sd-table__cell sd-table__cell--header",
|
5765
5785
|
rowTextCell: "sd-table__cell sd-table__cell--row-text",
|
5786
|
+
footerCell: "sd-table__cell sd-table__cell--footer",
|
5766
5787
|
columnTitleCell: "sd-table__cell--column-title",
|
5767
5788
|
cellRequiredText: "sd-question__required-text",
|
5768
5789
|
button: "sd-action sd-matrixdynamic__btn",
|
@@ -5909,7 +5930,8 @@ var defaultV2Css = {
|
|
5909
5930
|
canvas: "sjs_sp_canvas sd-signaturepad__canvas",
|
5910
5931
|
backgroundImage: "sjs_sp__background-image sd-signaturepad__background-image",
|
5911
5932
|
clearButton: "sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",
|
5912
|
-
clearButtonIconId: "icon-clear"
|
5933
|
+
clearButtonIconId: "icon-clear",
|
5934
|
+
loadingIndicator: "sd-signaturepad__loading-indicator"
|
5913
5935
|
},
|
5914
5936
|
saveData: {
|
5915
5937
|
root: "sv-save-data_root",
|
@@ -8233,8 +8255,13 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
8233
8255
|
this.popupModel.isVisible = false;
|
8234
8256
|
}
|
8235
8257
|
else if (!this.popupModel.isVisible && (event.keyCode === 13 || event.keyCode === 32)) {
|
8236
|
-
|
8237
|
-
|
8258
|
+
if (event.keyCode === 32) {
|
8259
|
+
this.popupModel.toggleVisibility();
|
8260
|
+
this.changeSelectionWithKeyboard(false);
|
8261
|
+
}
|
8262
|
+
if (event.keyCode === 13) {
|
8263
|
+
this.question.survey.questionEditFinishCallback(this.question, event);
|
8264
|
+
}
|
8238
8265
|
event.preventDefault();
|
8239
8266
|
event.stopPropagation();
|
8240
8267
|
}
|
@@ -8242,12 +8269,10 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
8242
8269
|
if (event.keyCode === 13 && this.question.searchEnabled && !this.inputString && this.question instanceof _question_dropdown__WEBPACK_IMPORTED_MODULE_5__["QuestionDropdownModel"] && !this._markdownMode && this.question.value) {
|
8243
8270
|
this._popupModel.isVisible = false;
|
8244
8271
|
this.onClear(event);
|
8245
|
-
this.question.survey.questionEditFinishCallback(this.question, event);
|
8246
8272
|
}
|
8247
8273
|
else {
|
8248
8274
|
this.listModel.selectFocusedItem();
|
8249
8275
|
this.onFocus(event);
|
8250
|
-
this.question.survey.questionEditFinishCallback(this.question, event);
|
8251
8276
|
}
|
8252
8277
|
event.preventDefault();
|
8253
8278
|
event.stopPropagation();
|
@@ -9398,8 +9423,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
9398
9423
|
//import "../../modern.scss";
|
9399
9424
|
var Version;
|
9400
9425
|
var ReleaseDate;
|
9401
|
-
Version = "" + "1.9.
|
9402
|
-
ReleaseDate = "" + "2023-
|
9426
|
+
Version = "" + "1.9.120";
|
9427
|
+
ReleaseDate = "" + "2023-12-04";
|
9403
9428
|
function checkLibraryVersion(ver, libraryName) {
|
9404
9429
|
if (Version != ver) {
|
9405
9430
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -10522,7 +10547,7 @@ var defaultBootstrapMaterialCss = _plugins_themes_bootstrapmaterial_cssbootstrap
|
|
10522
10547
|
/*!***************************************!*\
|
10523
10548
|
!*** ./src/entries/react-ui-model.ts ***!
|
10524
10549
|
\***************************************/
|
10525
|
-
/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent */
|
10550
|
+
/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, RatingDropdownItem, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent */
|
10526
10551
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10527
10552
|
|
10528
10553
|
"use strict";
|
@@ -10591,210 +10616,213 @@ __webpack_require__.r(__webpack_exports__);
|
|
10591
10616
|
/* harmony import */ var _react_components_rating_rating_item_smiley__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../react/components/rating/rating-item-smiley */ "./src/react/components/rating/rating-item-smiley.tsx");
|
10592
10617
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingItemSmiley", function() { return _react_components_rating_rating_item_smiley__WEBPACK_IMPORTED_MODULE_15__["RatingItemSmiley"]; });
|
10593
10618
|
|
10594
|
-
/* harmony import */ var
|
10595
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10619
|
+
/* harmony import */ var _react_components_rating_rating_dropdown_item__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../react/components/rating/rating-dropdown-item */ "./src/react/components/rating/rating-dropdown-item.tsx");
|
10620
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingDropdownItem", function() { return _react_components_rating_rating_dropdown_item__WEBPACK_IMPORTED_MODULE_16__["RatingDropdownItem"]; });
|
10596
10621
|
|
10597
|
-
/* harmony import */ var
|
10598
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10622
|
+
/* harmony import */ var _react_tagbox_filter__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../react/tagbox-filter */ "./src/react/tagbox-filter.tsx");
|
10623
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagboxFilterString", function() { return _react_tagbox_filter__WEBPACK_IMPORTED_MODULE_17__["TagboxFilterString"]; });
|
10599
10624
|
|
10600
|
-
/* harmony import */ var
|
10601
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10625
|
+
/* harmony import */ var _react_dropdown_item__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../react/dropdown-item */ "./src/react/dropdown-item.tsx");
|
10626
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionOptionItem", function() { return _react_dropdown_item__WEBPACK_IMPORTED_MODULE_18__["SurveyQuestionOptionItem"]; });
|
10602
10627
|
|
10603
|
-
/* harmony import */ var
|
10604
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10628
|
+
/* harmony import */ var _react_dropdown_base__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../react/dropdown-base */ "./src/react/dropdown-base.tsx");
|
10629
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionDropdownBase", function() { return _react_dropdown_base__WEBPACK_IMPORTED_MODULE_19__["SurveyQuestionDropdownBase"]; });
|
10605
10630
|
|
10606
|
-
/* harmony import */ var
|
10607
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10631
|
+
/* harmony import */ var _react_reactquestion_dropdown__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../react/reactquestion_dropdown */ "./src/react/reactquestion_dropdown.tsx");
|
10632
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionDropdown", function() { return _react_reactquestion_dropdown__WEBPACK_IMPORTED_MODULE_20__["SurveyQuestionDropdown"]; });
|
10608
10633
|
|
10609
|
-
/* harmony import */ var
|
10610
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10634
|
+
/* harmony import */ var _react_tagbox_item__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../react/tagbox-item */ "./src/react/tagbox-item.tsx");
|
10635
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionTagboxItem", function() { return _react_tagbox_item__WEBPACK_IMPORTED_MODULE_21__["SurveyQuestionTagboxItem"]; });
|
10611
10636
|
|
10612
|
-
/* harmony import */ var
|
10613
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10637
|
+
/* harmony import */ var _react_reactquestion_tagbox__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../react/reactquestion_tagbox */ "./src/react/reactquestion_tagbox.tsx");
|
10638
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionTagbox", function() { return _react_reactquestion_tagbox__WEBPACK_IMPORTED_MODULE_22__["SurveyQuestionTagbox"]; });
|
10614
10639
|
|
10615
|
-
/* harmony import */ var
|
10616
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10640
|
+
/* harmony import */ var _react_dropdown_select__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../react/dropdown-select */ "./src/react/dropdown-select.tsx");
|
10641
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionDropdownSelect", function() { return _react_dropdown_select__WEBPACK_IMPORTED_MODULE_23__["SurveyQuestionDropdownSelect"]; });
|
10617
10642
|
|
10618
|
-
/* harmony
|
10643
|
+
/* harmony import */ var _react_reactquestion_matrix__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../react/reactquestion_matrix */ "./src/react/reactquestion_matrix.tsx");
|
10644
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrix", function() { return _react_reactquestion_matrix__WEBPACK_IMPORTED_MODULE_24__["SurveyQuestionMatrix"]; });
|
10619
10645
|
|
10620
|
-
/* harmony
|
10621
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionHtml", function() { return _react_reactquestion_html__WEBPACK_IMPORTED_MODULE_24__["SurveyQuestionHtml"]; });
|
10646
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixRow", function() { return _react_reactquestion_matrix__WEBPACK_IMPORTED_MODULE_24__["SurveyQuestionMatrixRow"]; });
|
10622
10647
|
|
10623
|
-
/* harmony import */ var
|
10624
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10648
|
+
/* harmony import */ var _react_reactquestion_html__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../react/reactquestion_html */ "./src/react/reactquestion_html.tsx");
|
10649
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionHtml", function() { return _react_reactquestion_html__WEBPACK_IMPORTED_MODULE_25__["SurveyQuestionHtml"]; });
|
10625
10650
|
|
10626
|
-
/* harmony import */ var
|
10627
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10651
|
+
/* harmony import */ var _react_reactquestion_file__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../react/reactquestion_file */ "./src/react/reactquestion_file.tsx");
|
10652
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionFile", function() { return _react_reactquestion_file__WEBPACK_IMPORTED_MODULE_26__["SurveyQuestionFile"]; });
|
10628
10653
|
|
10629
|
-
/* harmony import */ var
|
10630
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10654
|
+
/* harmony import */ var _react_components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../react/components/file/file-choose-button */ "./src/react/components/file/file-choose-button.tsx");
|
10655
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyFileChooseButton", function() { return _react_components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_27__["SurveyFileChooseButton"]; });
|
10631
10656
|
|
10632
|
-
/* harmony import */ var
|
10633
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10657
|
+
/* harmony import */ var _react_components_file_file_preview__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../react/components/file/file-preview */ "./src/react/components/file/file-preview.tsx");
|
10658
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyFilePreview", function() { return _react_components_file_file_preview__WEBPACK_IMPORTED_MODULE_28__["SurveyFilePreview"]; });
|
10634
10659
|
|
10635
|
-
/* harmony import */ var
|
10636
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10660
|
+
/* harmony import */ var _react_reactquestion_multipletext__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../react/reactquestion_multipletext */ "./src/react/reactquestion_multipletext.tsx");
|
10661
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMultipleText", function() { return _react_reactquestion_multipletext__WEBPACK_IMPORTED_MODULE_29__["SurveyQuestionMultipleText"]; });
|
10637
10662
|
|
10638
|
-
/* harmony
|
10663
|
+
/* harmony import */ var _react_reactquestion_radiogroup__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../react/reactquestion_radiogroup */ "./src/react/reactquestion_radiogroup.tsx");
|
10664
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRadiogroup", function() { return _react_reactquestion_radiogroup__WEBPACK_IMPORTED_MODULE_30__["SurveyQuestionRadiogroup"]; });
|
10639
10665
|
|
10640
|
-
/* harmony
|
10641
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionText", function() { return _react_reactquestion_text__WEBPACK_IMPORTED_MODULE_30__["SurveyQuestionText"]; });
|
10666
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRadioItem", function() { return _react_reactquestion_radiogroup__WEBPACK_IMPORTED_MODULE_30__["SurveyQuestionRadioItem"]; });
|
10642
10667
|
|
10643
|
-
/* harmony import */ var
|
10644
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10668
|
+
/* harmony import */ var _react_reactquestion_text__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../react/reactquestion_text */ "./src/react/reactquestion_text.tsx");
|
10669
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionText", function() { return _react_reactquestion_text__WEBPACK_IMPORTED_MODULE_31__["SurveyQuestionText"]; });
|
10645
10670
|
|
10646
|
-
/* harmony import */ var
|
10647
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10671
|
+
/* harmony import */ var _react_boolean__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../react/boolean */ "./src/react/boolean.tsx");
|
10672
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBoolean", function() { return _react_boolean__WEBPACK_IMPORTED_MODULE_32__["SurveyQuestionBoolean"]; });
|
10648
10673
|
|
10649
|
-
/* harmony import */ var
|
10650
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10674
|
+
/* harmony import */ var _react_boolean_checkbox__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../react/boolean-checkbox */ "./src/react/boolean-checkbox.tsx");
|
10675
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBooleanCheckbox", function() { return _react_boolean_checkbox__WEBPACK_IMPORTED_MODULE_33__["SurveyQuestionBooleanCheckbox"]; });
|
10651
10676
|
|
10652
|
-
/* harmony import */ var
|
10653
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10677
|
+
/* harmony import */ var _react_boolean_radio__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../react/boolean-radio */ "./src/react/boolean-radio.tsx");
|
10678
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBooleanRadio", function() { return _react_boolean_radio__WEBPACK_IMPORTED_MODULE_34__["SurveyQuestionBooleanRadio"]; });
|
10654
10679
|
|
10655
|
-
/* harmony import */ var
|
10656
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10680
|
+
/* harmony import */ var _react_reactquestion_empty__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../react/reactquestion_empty */ "./src/react/reactquestion_empty.tsx");
|
10681
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEmpty", function() { return _react_reactquestion_empty__WEBPACK_IMPORTED_MODULE_35__["SurveyQuestionEmpty"]; });
|
10657
10682
|
|
10658
|
-
/* harmony
|
10683
|
+
/* harmony import */ var _react_reactquestion_matrixdropdownbase__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../react/reactquestion_matrixdropdownbase */ "./src/react/reactquestion_matrixdropdownbase.tsx");
|
10684
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdownCell", function() { return _react_reactquestion_matrixdropdownbase__WEBPACK_IMPORTED_MODULE_36__["SurveyQuestionMatrixDropdownCell"]; });
|
10659
10685
|
|
10660
|
-
/* harmony
|
10661
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdown", function() { return _react_reactquestion_matrixdropdown__WEBPACK_IMPORTED_MODULE_36__["SurveyQuestionMatrixDropdown"]; });
|
10686
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdownBase", function() { return _react_reactquestion_matrixdropdownbase__WEBPACK_IMPORTED_MODULE_36__["SurveyQuestionMatrixDropdownBase"]; });
|
10662
10687
|
|
10663
|
-
/* harmony import */ var
|
10664
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10688
|
+
/* harmony import */ var _react_reactquestion_matrixdropdown__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../react/reactquestion_matrixdropdown */ "./src/react/reactquestion_matrixdropdown.tsx");
|
10689
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdown", function() { return _react_reactquestion_matrixdropdown__WEBPACK_IMPORTED_MODULE_37__["SurveyQuestionMatrixDropdown"]; });
|
10665
10690
|
|
10666
|
-
/* harmony
|
10691
|
+
/* harmony import */ var _react_reactquestion_matrixdynamic__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../react/reactquestion_matrixdynamic */ "./src/react/reactquestion_matrixdynamic.tsx");
|
10692
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamic", function() { return _react_reactquestion_matrixdynamic__WEBPACK_IMPORTED_MODULE_38__["SurveyQuestionMatrixDynamic"]; });
|
10667
10693
|
|
10668
|
-
/* harmony
|
10669
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamic", function() { return _react_reactquestion_paneldynamic__WEBPACK_IMPORTED_MODULE_38__["SurveyQuestionPanelDynamic"]; });
|
10694
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicAddButton", function() { return _react_reactquestion_matrixdynamic__WEBPACK_IMPORTED_MODULE_38__["SurveyQuestionMatrixDynamicAddButton"]; });
|
10670
10695
|
|
10671
|
-
/* harmony import */ var
|
10672
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10696
|
+
/* harmony import */ var _react_reactquestion_paneldynamic__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../react/reactquestion_paneldynamic */ "./src/react/reactquestion_paneldynamic.tsx");
|
10697
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamic", function() { return _react_reactquestion_paneldynamic__WEBPACK_IMPORTED_MODULE_39__["SurveyQuestionPanelDynamic"]; });
|
10673
10698
|
|
10674
|
-
/* harmony import */ var
|
10675
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10699
|
+
/* harmony import */ var _react_reactSurveyProgress__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../react/reactSurveyProgress */ "./src/react/reactSurveyProgress.tsx");
|
10700
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgress", function() { return _react_reactSurveyProgress__WEBPACK_IMPORTED_MODULE_40__["SurveyProgress"]; });
|
10676
10701
|
|
10677
|
-
/* harmony import */ var
|
10678
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10702
|
+
/* harmony import */ var _react_reactSurveyProgressButtons__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../react/reactSurveyProgressButtons */ "./src/react/reactSurveyProgressButtons.tsx");
|
10703
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtons", function() { return _react_reactSurveyProgressButtons__WEBPACK_IMPORTED_MODULE_41__["SurveyProgressButtons"]; });
|
10679
10704
|
|
10680
|
-
/* harmony import */ var
|
10681
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10705
|
+
/* harmony import */ var _react_reactSurveyProgressToc__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../react/reactSurveyProgressToc */ "./src/react/reactSurveyProgressToc.tsx");
|
10706
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressToc", function() { return _react_reactSurveyProgressToc__WEBPACK_IMPORTED_MODULE_42__["SurveyProgressToc"]; });
|
10682
10707
|
|
10683
|
-
/* harmony import */ var
|
10684
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10708
|
+
/* harmony import */ var _react_reactquestion_rating__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../react/reactquestion_rating */ "./src/react/reactquestion_rating.tsx");
|
10709
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRating", function() { return _react_reactquestion_rating__WEBPACK_IMPORTED_MODULE_43__["SurveyQuestionRating"]; });
|
10685
10710
|
|
10686
|
-
/* harmony import */ var
|
10687
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10711
|
+
/* harmony import */ var _react_rating_dropdown__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../react/rating-dropdown */ "./src/react/rating-dropdown.tsx");
|
10712
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRatingDropdown", function() { return _react_rating_dropdown__WEBPACK_IMPORTED_MODULE_44__["SurveyQuestionRatingDropdown"]; });
|
10688
10713
|
|
10689
|
-
/* harmony import */ var
|
10690
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10714
|
+
/* harmony import */ var _react_reactquestion_expression__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../react/reactquestion_expression */ "./src/react/reactquestion_expression.tsx");
|
10715
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionExpression", function() { return _react_reactquestion_expression__WEBPACK_IMPORTED_MODULE_45__["SurveyQuestionExpression"]; });
|
10691
10716
|
|
10692
|
-
/* harmony
|
10717
|
+
/* harmony import */ var _react_react_popup_survey__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../react/react-popup-survey */ "./src/react/react-popup-survey.tsx");
|
10718
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupSurvey", function() { return _react_react_popup_survey__WEBPACK_IMPORTED_MODULE_46__["PopupSurvey"]; });
|
10693
10719
|
|
10694
|
-
/* harmony
|
10695
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactQuestionFactory", function() { return _react_reactquestion_factory__WEBPACK_IMPORTED_MODULE_46__["ReactQuestionFactory"]; });
|
10720
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyWindow", function() { return _react_react_popup_survey__WEBPACK_IMPORTED_MODULE_46__["SurveyWindow"]; });
|
10696
10721
|
|
10697
|
-
/* harmony import */ var
|
10698
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10722
|
+
/* harmony import */ var _react_reactquestion_factory__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../react/reactquestion_factory */ "./src/react/reactquestion_factory.tsx");
|
10723
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactQuestionFactory", function() { return _react_reactquestion_factory__WEBPACK_IMPORTED_MODULE_47__["ReactQuestionFactory"]; });
|
10699
10724
|
|
10700
|
-
/* harmony import */ var
|
10701
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10725
|
+
/* harmony import */ var _react_element_factory__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../react/element-factory */ "./src/react/element-factory.tsx");
|
10726
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactElementFactory", function() { return _react_element_factory__WEBPACK_IMPORTED_MODULE_48__["ReactElementFactory"]; });
|
10702
10727
|
|
10703
|
-
/* harmony import */ var
|
10704
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10728
|
+
/* harmony import */ var _react_imagepicker__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../react/imagepicker */ "./src/react/imagepicker.tsx");
|
10729
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionImagePicker", function() { return _react_imagepicker__WEBPACK_IMPORTED_MODULE_49__["SurveyQuestionImagePicker"]; });
|
10705
10730
|
|
10706
|
-
/* harmony import */ var
|
10707
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10731
|
+
/* harmony import */ var _react_image__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../react/image */ "./src/react/image.tsx");
|
10732
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionImage", function() { return _react_image__WEBPACK_IMPORTED_MODULE_50__["SurveyQuestionImage"]; });
|
10708
10733
|
|
10709
|
-
/* harmony import */ var
|
10710
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10734
|
+
/* harmony import */ var _react_signaturepad__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../react/signaturepad */ "./src/react/signaturepad.tsx");
|
10735
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionSignaturePad", function() { return _react_signaturepad__WEBPACK_IMPORTED_MODULE_51__["SurveyQuestionSignaturePad"]; });
|
10711
10736
|
|
10712
|
-
/* harmony import */ var
|
10713
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10737
|
+
/* harmony import */ var _react_reactquestion_buttongroup__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../react/reactquestion_buttongroup */ "./src/react/reactquestion_buttongroup.tsx");
|
10738
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionButtonGroup", function() { return _react_reactquestion_buttongroup__WEBPACK_IMPORTED_MODULE_52__["SurveyQuestionButtonGroup"]; });
|
10714
10739
|
|
10715
|
-
/* harmony
|
10740
|
+
/* harmony import */ var _react_reactquestion_custom__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../react/reactquestion_custom */ "./src/react/reactquestion_custom.tsx");
|
10741
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionCustom", function() { return _react_reactquestion_custom__WEBPACK_IMPORTED_MODULE_53__["SurveyQuestionCustom"]; });
|
10716
10742
|
|
10717
|
-
/* harmony
|
10718
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return _react_components_popup_popup__WEBPACK_IMPORTED_MODULE_53__["Popup"]; });
|
10743
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionComposite", function() { return _react_reactquestion_custom__WEBPACK_IMPORTED_MODULE_53__["SurveyQuestionComposite"]; });
|
10719
10744
|
|
10720
|
-
/* harmony import */ var
|
10721
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10745
|
+
/* harmony import */ var _react_components_popup_popup__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../react/components/popup/popup */ "./src/react/components/popup/popup.tsx");
|
10746
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return _react_components_popup_popup__WEBPACK_IMPORTED_MODULE_54__["Popup"]; });
|
10722
10747
|
|
10723
|
-
/* harmony import */ var
|
10724
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10748
|
+
/* harmony import */ var _react_components_list_list__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../react/components/list/list */ "./src/react/components/list/list.tsx");
|
10749
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return _react_components_list_list__WEBPACK_IMPORTED_MODULE_55__["List"]; });
|
10725
10750
|
|
10726
|
-
/* harmony import */ var
|
10727
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10751
|
+
/* harmony import */ var _react_components_title_title_actions__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../react/components/title/title-actions */ "./src/react/components/title/title-actions.tsx");
|
10752
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TitleActions", function() { return _react_components_title_title_actions__WEBPACK_IMPORTED_MODULE_56__["TitleActions"]; });
|
10728
10753
|
|
10729
|
-
/* harmony import */ var
|
10730
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10754
|
+
/* harmony import */ var _react_components_title_title_element__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../react/components/title/title-element */ "./src/react/components/title/title-element.tsx");
|
10755
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TitleElement", function() { return _react_components_title_title_element__WEBPACK_IMPORTED_MODULE_57__["TitleElement"]; });
|
10731
10756
|
|
10732
|
-
/* harmony import */ var
|
10733
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10757
|
+
/* harmony import */ var _react_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../react/components/action-bar/action-bar */ "./src/react/components/action-bar/action-bar.tsx");
|
10758
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyActionBar", function() { return _react_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_58__["SurveyActionBar"]; });
|
10734
10759
|
|
10735
|
-
/* harmony import */ var
|
10736
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10760
|
+
/* harmony import */ var _react_components_survey_header_logo_image__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../react/components/survey-header/logo-image */ "./src/react/components/survey-header/logo-image.tsx");
|
10761
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImage", function() { return _react_components_survey_header_logo_image__WEBPACK_IMPORTED_MODULE_59__["LogoImage"]; });
|
10737
10762
|
|
10738
|
-
/* harmony import */ var
|
10739
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10763
|
+
/* harmony import */ var _react_components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../react/components/survey-header/survey-header */ "./src/react/components/survey-header/survey-header.tsx");
|
10764
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHeader", function() { return _react_components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_60__["SurveyHeader"]; });
|
10740
10765
|
|
10741
|
-
/* harmony import */ var
|
10742
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10766
|
+
/* harmony import */ var _react_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../react/components/svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
|
10767
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SvgIcon", function() { return _react_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_61__["SvgIcon"]; });
|
10743
10768
|
|
10744
|
-
/* harmony import */ var
|
10745
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10769
|
+
/* harmony import */ var _react_components_matrix_actions_remove_button_remove_button__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../react/components/matrix-actions/remove-button/remove-button */ "./src/react/components/matrix-actions/remove-button/remove-button.tsx");
|
10770
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicRemoveButton", function() { return _react_components_matrix_actions_remove_button_remove_button__WEBPACK_IMPORTED_MODULE_62__["SurveyQuestionMatrixDynamicRemoveButton"]; });
|
10746
10771
|
|
10747
|
-
/* harmony import */ var
|
10748
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10772
|
+
/* harmony import */ var _react_components_matrix_actions_detail_button_detail_button__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../react/components/matrix-actions/detail-button/detail-button */ "./src/react/components/matrix-actions/detail-button/detail-button.tsx");
|
10773
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDetailButton", function() { return _react_components_matrix_actions_detail_button_detail_button__WEBPACK_IMPORTED_MODULE_63__["SurveyQuestionMatrixDetailButton"]; });
|
10749
10774
|
|
10750
|
-
/* harmony import */ var
|
10751
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10775
|
+
/* harmony import */ var _react_components_matrix_actions_drag_drop_icon_drag_drop_icon__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../react/components/matrix-actions/drag-drop-icon/drag-drop-icon */ "./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx");
|
10776
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicDragDropIcon", function() { return _react_components_matrix_actions_drag_drop_icon_drag_drop_icon__WEBPACK_IMPORTED_MODULE_64__["SurveyQuestionMatrixDynamicDragDropIcon"]; });
|
10752
10777
|
|
10753
|
-
/* harmony import */ var
|
10754
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10778
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_add_btn__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-add-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx");
|
10779
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicAddButton", function() { return _react_components_paneldynamic_actions_paneldynamic_add_btn__WEBPACK_IMPORTED_MODULE_65__["SurveyQuestionPanelDynamicAddButton"]; });
|
10755
10780
|
|
10756
|
-
/* harmony import */ var
|
10757
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10781
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_remove_btn__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-remove-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx");
|
10782
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicRemoveButton", function() { return _react_components_paneldynamic_actions_paneldynamic_remove_btn__WEBPACK_IMPORTED_MODULE_66__["SurveyQuestionPanelDynamicRemoveButton"]; });
|
10758
10783
|
|
10759
|
-
/* harmony import */ var
|
10760
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10784
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-prev-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");
|
10785
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicPrevButton", function() { return _react_components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_67__["SurveyQuestionPanelDynamicPrevButton"]; });
|
10761
10786
|
|
10762
|
-
/* harmony import */ var
|
10763
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10787
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-next-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx");
|
10788
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicNextButton", function() { return _react_components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_68__["SurveyQuestionPanelDynamicNextButton"]; });
|
10764
10789
|
|
10765
|
-
/* harmony import */ var
|
10766
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10790
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-progress-text */ "./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx");
|
10791
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicProgressText", function() { return _react_components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_69__["SurveyQuestionPanelDynamicProgressText"]; });
|
10767
10792
|
|
10768
|
-
/* harmony import */ var
|
10769
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10793
|
+
/* harmony import */ var _react_components_survey_actions_survey_nav_button__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ../react/components/survey-actions/survey-nav-button */ "./src/react/components/survey-actions/survey-nav-button.tsx");
|
10794
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyNavigationButton", function() { return _react_components_survey_actions_survey_nav_button__WEBPACK_IMPORTED_MODULE_70__["SurveyNavigationButton"]; });
|
10770
10795
|
|
10771
|
-
/* harmony import */ var
|
10772
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10796
|
+
/* harmony import */ var _react_components_matrix_row__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ../react/components/matrix/row */ "./src/react/components/matrix/row.tsx");
|
10797
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixRow", function() { return _react_components_matrix_row__WEBPACK_IMPORTED_MODULE_71__["MatrixRow"]; });
|
10773
10798
|
|
10774
|
-
/* harmony import */ var
|
10775
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10799
|
+
/* harmony import */ var _react_components_skeleton__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ../react/components/skeleton */ "./src/react/components/skeleton.tsx");
|
10800
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return _react_components_skeleton__WEBPACK_IMPORTED_MODULE_72__["Skeleton"]; });
|
10776
10801
|
|
10777
|
-
/* harmony import */ var
|
10778
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10802
|
+
/* harmony import */ var _react_components_notifier__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ../react/components/notifier */ "./src/react/components/notifier.tsx");
|
10803
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotifierComponent", function() { return _react_components_notifier__WEBPACK_IMPORTED_MODULE_73__["NotifierComponent"]; });
|
10779
10804
|
|
10780
|
-
/* harmony import */ var
|
10781
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10805
|
+
/* harmony import */ var _react_components_components_container__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../react/components/components-container */ "./src/react/components/components-container.tsx");
|
10806
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentsContainer", function() { return _react_components_components_container__WEBPACK_IMPORTED_MODULE_74__["ComponentsContainer"]; });
|
10782
10807
|
|
10783
|
-
/* harmony import */ var
|
10784
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10808
|
+
/* harmony import */ var _react_components_character_counter__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../react/components/character-counter */ "./src/react/components/character-counter.tsx");
|
10809
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CharacterCounterComponent", function() { return _react_components_character_counter__WEBPACK_IMPORTED_MODULE_75__["CharacterCounterComponent"]; });
|
10785
10810
|
|
10786
|
-
/* harmony
|
10811
|
+
/* harmony import */ var _react_components_header__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../react/components/header */ "./src/react/components/header.tsx");
|
10812
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderMobile", function() { return _react_components_header__WEBPACK_IMPORTED_MODULE_76__["HeaderMobile"]; });
|
10787
10813
|
|
10788
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10814
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderCell", function() { return _react_components_header__WEBPACK_IMPORTED_MODULE_76__["HeaderCell"]; });
|
10789
10815
|
|
10790
|
-
/* harmony
|
10791
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringViewer", function() { return _react_string_viewer__WEBPACK_IMPORTED_MODULE_76__["SurveyLocStringViewer"]; });
|
10816
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Header", function() { return _react_components_header__WEBPACK_IMPORTED_MODULE_76__["Header"]; });
|
10792
10817
|
|
10793
|
-
/* harmony import */ var
|
10794
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10818
|
+
/* harmony import */ var _react_string_viewer__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../react/string-viewer */ "./src/react/string-viewer.tsx");
|
10819
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringViewer", function() { return _react_string_viewer__WEBPACK_IMPORTED_MODULE_77__["SurveyLocStringViewer"]; });
|
10795
10820
|
|
10796
|
-
/* harmony import */ var
|
10797
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10821
|
+
/* harmony import */ var _react_string_editor__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../react/string-editor */ "./src/react/string-editor.tsx");
|
10822
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringEditor", function() { return _react_string_editor__WEBPACK_IMPORTED_MODULE_78__["SurveyLocStringEditor"]; });
|
10823
|
+
|
10824
|
+
/* harmony import */ var _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../react/components/loading-indicator */ "./src/react/components/loading-indicator.tsx");
|
10825
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_79__["LoadingIndicatorComponent"]; });
|
10798
10826
|
|
10799
10827
|
// react
|
10800
10828
|
|
@@ -10874,6 +10902,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10874
10902
|
|
10875
10903
|
|
10876
10904
|
|
10905
|
+
|
10877
10906
|
|
10878
10907
|
|
10879
10908
|
//Uncomment to include the "date" question type.
|
@@ -10886,7 +10915,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10886
10915
|
/*!******************************!*\
|
10887
10916
|
!*** ./src/entries/react.ts ***!
|
10888
10917
|
\******************************/
|
10889
|
-
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model, bootstrapThemeName, bootstrapThemeColors, bootstrapThemeCssRules, bootstrapMaterialThemeName, bootstrapMaterialThemeColors, bootstrapMaterialThemeCssRules, defaultBootstrapCss, defaultBootstrapMaterialCss, Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent */
|
10918
|
+
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model, bootstrapThemeName, bootstrapThemeColors, bootstrapThemeCssRules, bootstrapMaterialThemeName, bootstrapMaterialThemeColors, bootstrapMaterialThemeCssRules, defaultBootstrapCss, defaultBootstrapMaterialCss, Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, RatingDropdownItem, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent */
|
10890
10919
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10891
10920
|
|
10892
10921
|
"use strict";
|
@@ -11387,6 +11416,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
11387
11416
|
|
11388
11417
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingItemSmiley", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["RatingItemSmiley"]; });
|
11389
11418
|
|
11419
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingDropdownItem", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["RatingDropdownItem"]; });
|
11420
|
+
|
11390
11421
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagboxFilterString", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["TagboxFilterString"]; });
|
11391
11422
|
|
11392
11423
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionOptionItem", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["SurveyQuestionOptionItem"]; });
|
@@ -16714,7 +16745,7 @@ var Cover = /** @class */ (function (_super) {
|
|
16714
16745
|
|
16715
16746
|
_jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("cover", [
|
16716
16747
|
{ name: "height:number", minValue: 0, default: 256 },
|
16717
|
-
{ name: "inheritWidthFrom", default: "
|
16748
|
+
{ name: "inheritWidthFrom", default: "container" },
|
16718
16749
|
{ name: "textAreaWidth:number", minValue: 0, default: 512 },
|
16719
16750
|
{ name: "textGlowEnabled:boolean" },
|
16720
16751
|
{ name: "overlapEnabled:boolean" },
|
@@ -22531,7 +22562,7 @@ var englishStrings = {
|
|
22531
22562
|
panelDynamicProgressText: "{0} of {1}",
|
22532
22563
|
panelDynamicTabTextFormat: "Panel {panelIndex}",
|
22533
22564
|
questionsProgressText: "Answered {0}/{1} questions",
|
22534
|
-
emptySurvey: "The survey doesn't contain visible
|
22565
|
+
emptySurvey: "The survey doesn't contain any visible elements.",
|
22535
22566
|
completingSurvey: "Thank you for completing the survey",
|
22536
22567
|
completingSurveyBefore: "Our records show that you have already completed this survey.",
|
22537
22568
|
loadingSurvey: "Loading Survey...",
|
@@ -22558,6 +22589,7 @@ var englishStrings = {
|
|
22558
22589
|
urlRequestError: "The request returned error '{0}'. {1}",
|
22559
22590
|
urlGetChoicesError: "The request returned empty data or the 'path' property is incorrect",
|
22560
22591
|
exceedMaxSize: "The file size should not exceed {0}.",
|
22592
|
+
noUploadFilesHandler: "Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",
|
22561
22593
|
otherRequiredError: "Response required: enter another value.",
|
22562
22594
|
uploadingFile: "Your file is uploading. Please wait several seconds and try again.",
|
22563
22595
|
loadingFile: "Loading...",
|
@@ -23757,7 +23789,7 @@ var hungarianSurveyStrings = {
|
|
23757
23789
|
panelDynamicProgressText: "{0} / {1} rekord",
|
23758
23790
|
panelDynamicTabTextFormat: "Panel {panelIndex}",
|
23759
23791
|
questionsProgressText: "Válaszolt kérdések: {0} / {1}",
|
23760
|
-
emptySurvey: "The survey doesn't contain visible
|
23792
|
+
emptySurvey: "The survey doesn't contain any visible elements.",
|
23761
23793
|
completingSurvey: "Köszönjük, hogy kitöltötte felmérésünket!",
|
23762
23794
|
completingSurveyBefore: "Már kitöltötte a felmérést.",
|
23763
23795
|
loadingSurvey: "Felmérés betöltése...",
|
@@ -28890,8 +28922,9 @@ var PageModel = /** @class */ (function (_super) {
|
|
28890
28922
|
configurable: true
|
28891
28923
|
});
|
28892
28924
|
PageModel.prototype.calcCssClasses = function (css) {
|
28893
|
-
var classes = { page: {}, pageTitle: "", pageDescription: "", row: "", rowMultiple: "", pageRow: "", rowCompact: "" };
|
28925
|
+
var classes = { page: {}, error: {}, pageTitle: "", pageDescription: "", row: "", rowMultiple: "", pageRow: "", rowCompact: "" };
|
28894
28926
|
this.copyCssClasses(classes.page, css.page);
|
28927
|
+
this.copyCssClasses(classes.error, css.error);
|
28895
28928
|
if (!!css.pageTitle) {
|
28896
28929
|
classes.pageTitle = css.pageTitle;
|
28897
28930
|
}
|
@@ -28939,6 +28972,11 @@ var PageModel = /** @class */ (function (_super) {
|
|
28939
28972
|
enumerable: false,
|
28940
28973
|
configurable: true
|
28941
28974
|
});
|
28975
|
+
PageModel.prototype.getCssError = function (cssClasses) {
|
28976
|
+
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_2__["CssClassBuilder"]()
|
28977
|
+
.append(_super.prototype.getCssError.call(this, cssClasses))
|
28978
|
+
.append(cssClasses.page.errorsContainer).toString();
|
28979
|
+
};
|
28942
28980
|
Object.defineProperty(PageModel.prototype, "navigationButtonsVisibility", {
|
28943
28981
|
/**
|
28944
28982
|
* Set this property to "hide" to make "Prev", "Next" and "Complete" buttons are invisible for this page. Set this property to "show" to make these buttons visible, even if survey showNavigationButtons property is false.
|
@@ -29435,7 +29473,7 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
29435
29473
|
Object.defineProperty(PanelModelBase.prototype, "hasTitle", {
|
29436
29474
|
get: function () {
|
29437
29475
|
return ((this.canShowTitle() && this.locTitle.textOrHtml.length > 0) ||
|
29438
|
-
(this.
|
29476
|
+
(this.isDesignMode && (this.showTitle && _settings__WEBPACK_IMPORTED_MODULE_7__["settings"].designMode.showEmptyTitles)));
|
29439
29477
|
},
|
29440
29478
|
enumerable: false,
|
29441
29479
|
configurable: true
|
@@ -30783,6 +30821,16 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
30783
30821
|
enumerable: false,
|
30784
30822
|
configurable: true
|
30785
30823
|
});
|
30824
|
+
Object.defineProperty(PanelModelBase.prototype, "cssError", {
|
30825
|
+
get: function () {
|
30826
|
+
return this.getCssError(this.cssClasses);
|
30827
|
+
},
|
30828
|
+
enumerable: false,
|
30829
|
+
configurable: true
|
30830
|
+
});
|
30831
|
+
PanelModelBase.prototype.getCssError = function (cssClasses) {
|
30832
|
+
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__["CssClassBuilder"]().append(cssClasses.error.root).toString();
|
30833
|
+
};
|
30786
30834
|
PanelModelBase.prototype.dispose = function () {
|
30787
30835
|
_super.prototype.dispose.call(this);
|
30788
30836
|
if (this.rows) {
|
@@ -30981,11 +31029,17 @@ var PanelModel = /** @class */ (function (_super) {
|
|
30981
31029
|
PanelModel.prototype.setNo = function (visibleIndex) {
|
30982
31030
|
this.setPropertyValue("no", _helpers__WEBPACK_IMPORTED_MODULE_1__["Helpers"].getNumberByIndex(this.visibleIndex, this.getStartIndex()));
|
30983
31031
|
};
|
31032
|
+
PanelModel.prototype.notifyStateChanged = function () {
|
31033
|
+
if (!this.isLoadingFromJson) {
|
31034
|
+
this.locTitle.strChanged();
|
31035
|
+
}
|
31036
|
+
_super.prototype.notifyStateChanged.call(this);
|
31037
|
+
};
|
30984
31038
|
PanelModel.prototype.createLocTitleProperty = function () {
|
30985
31039
|
var _this = this;
|
30986
31040
|
var locTitleValue = _super.prototype.createLocTitleProperty.call(this);
|
30987
31041
|
locTitleValue.onGetTextCallback = function (text) {
|
30988
|
-
if (!text && (_this.
|
31042
|
+
if (!text && (_this.state !== "default")) {
|
30989
31043
|
text = _this.name;
|
30990
31044
|
}
|
30991
31045
|
return text;
|
@@ -31158,26 +31212,17 @@ var PanelModel = /** @class */ (function (_super) {
|
|
31158
31212
|
enumerable: false,
|
31159
31213
|
configurable: true
|
31160
31214
|
});
|
31161
|
-
Object.defineProperty(PanelModel.prototype, "cssError", {
|
31162
|
-
get: function () {
|
31163
|
-
return this.getCssError(this.cssClasses);
|
31164
|
-
},
|
31165
|
-
enumerable: false,
|
31166
|
-
configurable: true
|
31167
|
-
});
|
31168
31215
|
Object.defineProperty(PanelModel.prototype, "showErrorsAbovePanel", {
|
31169
31216
|
get: function () {
|
31170
|
-
return this.isDefaultV2Theme;
|
31217
|
+
return this.isDefaultV2Theme && !this.showPanelAsPage;
|
31171
31218
|
},
|
31172
31219
|
enumerable: false,
|
31173
31220
|
configurable: true
|
31174
31221
|
});
|
31175
31222
|
PanelModel.prototype.getCssError = function (cssClasses) {
|
31176
|
-
var isDefaultV2Theme = this.isDefaultV2Theme;
|
31177
31223
|
var builder = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__["CssClassBuilder"]()
|
31178
|
-
.append(
|
31179
|
-
.append(
|
31180
|
-
.append(this.cssClasses.error.aboveQuestion, isDefaultV2Theme);
|
31224
|
+
.append(_super.prototype.getCssError.call(this, cssClasses))
|
31225
|
+
.append(cssClasses.panel.errorsContainer);
|
31181
31226
|
return builder.append("panel-error-root", builder.isEmpty()).toString();
|
31182
31227
|
};
|
31183
31228
|
PanelModel.prototype.onVisibleChanged = function () {
|
@@ -31198,16 +31243,23 @@ var PanelModel = /** @class */ (function (_super) {
|
|
31198
31243
|
this.survey.whenPanelFocusIn(this);
|
31199
31244
|
};
|
31200
31245
|
PanelModel.prototype.getHasFrameV2 = function () {
|
31201
|
-
return _super.prototype.getHasFrameV2.call(this) &&
|
31246
|
+
return _super.prototype.getHasFrameV2.call(this) && !this.showPanelAsPage;
|
31202
31247
|
};
|
31203
31248
|
PanelModel.prototype.getIsNested = function () {
|
31204
31249
|
return _super.prototype.getIsNested.call(this) && this.parent !== undefined;
|
31205
31250
|
};
|
31251
|
+
Object.defineProperty(PanelModel.prototype, "showPanelAsPage", {
|
31252
|
+
get: function () {
|
31253
|
+
return !!this.originalPage && !this.survey.isShowingPreview;
|
31254
|
+
},
|
31255
|
+
enumerable: false,
|
31256
|
+
configurable: true
|
31257
|
+
});
|
31206
31258
|
PanelModel.prototype.getCssRoot = function (cssClasses) {
|
31207
31259
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__["CssClassBuilder"]()
|
31208
31260
|
.append(_super.prototype.getCssRoot.call(this, cssClasses))
|
31209
31261
|
.append(cssClasses.container)
|
31210
|
-
.append(cssClasses.asPage,
|
31262
|
+
.append(cssClasses.asPage, this.showPanelAsPage)
|
31211
31263
|
.append(cssClasses.invisible, !this.isDesignMode && this.areInvisibleElementsShowing && !this.visible)
|
31212
31264
|
.toString();
|
31213
31265
|
};
|
@@ -35288,9 +35340,9 @@ var Question = /** @class */ (function (_super) {
|
|
35288
35340
|
Question.prototype.getCssError = function (cssClasses) {
|
35289
35341
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_10__["CssClassBuilder"]()
|
35290
35342
|
.append(cssClasses.error.root)
|
35291
|
-
.append(cssClasses.
|
35292
|
-
.append(cssClasses.
|
35293
|
-
.append(cssClasses.
|
35343
|
+
.append(cssClasses.errorsContainer, this.showErrorsBelowQuestion || this.showErrorsAboveQuestion)
|
35344
|
+
.append(cssClasses.errorsContainerTop, this.showErrorsAboveQuestion)
|
35345
|
+
.append(cssClasses.errorsContainerBottom, this.showErrorsBelowQuestion)
|
35294
35346
|
.append(cssClasses.error.locationTop, this.showErrorOnTop)
|
35295
35347
|
.append(cssClasses.error.locationBottom, this.showErrorOnBottom)
|
35296
35348
|
.toString();
|
@@ -36017,6 +36069,8 @@ var Question = /** @class */ (function (_super) {
|
|
36017
36069
|
* - `{row.other_question_name}` (to access questions inside the same dynamic matrix or multi-column dropdown)
|
36018
36070
|
*
|
36019
36071
|
* An expression can also include built-in and custom functions for advanced calculations. For example, if the `defaultValue` should be today's date, set the `defaultValueExpression` to `"today()"`, and the corresponding built-in function will be executed each time the survey is loaded. Refer to the following help topic for more information: [Built-In Functions](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#built-in-functions).
|
36072
|
+
*
|
36073
|
+
* [View Demo](https://surveyjs.io/form-library/examples/specify-default-question-value-dynamically (linkStyle))
|
36020
36074
|
* @see defaultValue
|
36021
36075
|
* @see setValueExpression
|
36022
36076
|
*/
|
@@ -36707,8 +36761,9 @@ var Question = /** @class */ (function (_super) {
|
|
36707
36761
|
return makeNameValid(name);
|
36708
36762
|
};
|
36709
36763
|
//IQuestion
|
36710
|
-
Question.prototype.updateValueFromSurvey = function (newValue) {
|
36764
|
+
Question.prototype.updateValueFromSurvey = function (newValue, clearData) {
|
36711
36765
|
var _this = this;
|
36766
|
+
if (clearData === void 0) { clearData = false; }
|
36712
36767
|
newValue = this.getUnbindValue(newValue);
|
36713
36768
|
if (!!this.valueFromDataCallback) {
|
36714
36769
|
newValue = this.valueFromDataCallback(newValue);
|
@@ -36722,7 +36777,10 @@ var Question = /** @class */ (function (_super) {
|
|
36722
36777
|
});
|
36723
36778
|
}
|
36724
36779
|
else {
|
36725
|
-
this.updateValueFromSurveyCore(newValue,
|
36780
|
+
this.updateValueFromSurveyCore(newValue, this.data !== this.getSurvey());
|
36781
|
+
if (clearData && isEmpty) {
|
36782
|
+
this.isValueChangedDirectly = false;
|
36783
|
+
}
|
36726
36784
|
}
|
36727
36785
|
this.updateDependedQuestions();
|
36728
36786
|
this.updateIsAnswered();
|
@@ -38869,7 +38927,7 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
38869
38927
|
this.onVisibleChoicesChanged();
|
38870
38928
|
}
|
38871
38929
|
};
|
38872
|
-
QuestionSelectBase.prototype.updateValueFromSurvey = function (newValue) {
|
38930
|
+
QuestionSelectBase.prototype.updateValueFromSurvey = function (newValue, clearData) {
|
38873
38931
|
var newComment = "";
|
38874
38932
|
if (this.hasOther &&
|
38875
38933
|
!this.isRunningChoices &&
|
@@ -38883,7 +38941,7 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
38883
38941
|
newComment = this.data.getComment(this.getValueName());
|
38884
38942
|
}
|
38885
38943
|
}
|
38886
|
-
_super.prototype.updateValueFromSurvey.call(this, newValue);
|
38944
|
+
_super.prototype.updateValueFromSurvey.call(this, newValue, clearData);
|
38887
38945
|
if ((this.isRunningChoices || this.choicesByUrl.isRunning) && !this.isEmpty()) {
|
38888
38946
|
this.cachedValueForUrlRequests = this.value;
|
38889
38947
|
}
|
@@ -40665,8 +40723,8 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
40665
40723
|
.append(this.cssClasses.itemSelectAll, options.isSelectAllItem)
|
40666
40724
|
.toString();
|
40667
40725
|
};
|
40668
|
-
QuestionCheckboxModel.prototype.updateValueFromSurvey = function (newValue) {
|
40669
|
-
_super.prototype.updateValueFromSurvey.call(this, newValue);
|
40726
|
+
QuestionCheckboxModel.prototype.updateValueFromSurvey = function (newValue, clearData) {
|
40727
|
+
_super.prototype.updateValueFromSurvey.call(this, newValue, clearData);
|
40670
40728
|
this.invisibleOldValues = {};
|
40671
40729
|
};
|
40672
40730
|
QuestionCheckboxModel.prototype.setDefaultValue = function () {
|
@@ -42884,8 +42942,8 @@ var QuestionExpressionModel = /** @class */ (function (_super) {
|
|
42884
42942
|
QuestionExpressionModel.prototype.onValueChanged = function () {
|
42885
42943
|
this.updateFormatedValue();
|
42886
42944
|
};
|
42887
|
-
QuestionExpressionModel.prototype.updateValueFromSurvey = function (newValue) {
|
42888
|
-
_super.prototype.updateValueFromSurvey.call(this, newValue);
|
42945
|
+
QuestionExpressionModel.prototype.updateValueFromSurvey = function (newValue, clearData) {
|
42946
|
+
_super.prototype.updateValueFromSurvey.call(this, newValue, clearData);
|
42889
42947
|
this.updateFormatedValue();
|
42890
42948
|
};
|
42891
42949
|
QuestionExpressionModel.prototype.getDisplayValueCore = function (keysAsText, value) {
|
@@ -43239,11 +43297,13 @@ _questionfactory__WEBPACK_IMPORTED_MODULE_3__["QuestionFactory"].Instance.regist
|
|
43239
43297
|
/*!******************************!*\
|
43240
43298
|
!*** ./src/question_file.ts ***!
|
43241
43299
|
\******************************/
|
43242
|
-
/*! exports provided: QuestionFileModel, FileLoader */
|
43300
|
+
/*! exports provided: dataUrl2File, QuestionFileModelBase, QuestionFileModel, FileLoader */
|
43243
43301
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
43244
43302
|
|
43245
43303
|
"use strict";
|
43246
43304
|
__webpack_require__.r(__webpack_exports__);
|
43305
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataUrl2File", function() { return dataUrl2File; });
|
43306
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionFileModelBase", function() { return QuestionFileModelBase; });
|
43247
43307
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionFileModel", function() { return QuestionFileModel; });
|
43248
43308
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileLoader", function() { return FileLoader; });
|
43249
43309
|
/* harmony import */ var _question__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./question */ "./src/question.ts");
|
@@ -43292,17 +43352,16 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
43292
43352
|
|
43293
43353
|
|
43294
43354
|
|
43295
|
-
|
43296
|
-
|
43297
|
-
|
43298
|
-
|
43299
|
-
|
43300
|
-
var
|
43301
|
-
__extends(
|
43302
|
-
function
|
43303
|
-
var _this = _super.
|
43355
|
+
function dataUrl2File(dataUrl, fileName, type) {
|
43356
|
+
var str = atob(dataUrl.split(",")[1]);
|
43357
|
+
var buffer = new Uint8Array(str.split("").map(function (c) { return c.charCodeAt(0); })).buffer;
|
43358
|
+
return new File([buffer], fileName, { type: type });
|
43359
|
+
}
|
43360
|
+
var QuestionFileModelBase = /** @class */ (function (_super) {
|
43361
|
+
__extends(QuestionFileModelBase, _super);
|
43362
|
+
function QuestionFileModelBase() {
|
43363
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
43304
43364
|
_this.isUploading = false;
|
43305
|
-
_this.isDragging = false;
|
43306
43365
|
/**
|
43307
43366
|
* An event that is raised after the upload state has changed.
|
43308
43367
|
*
|
@@ -43315,6 +43374,124 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
43315
43374
|
*/
|
43316
43375
|
_this.onUploadStateChanged = _this.addEvent();
|
43317
43376
|
_this.onStateChanged = _this.addEvent();
|
43377
|
+
return _this;
|
43378
|
+
}
|
43379
|
+
QuestionFileModelBase.prototype.stateChanged = function (state) {
|
43380
|
+
if (this.currentState == state) {
|
43381
|
+
return;
|
43382
|
+
}
|
43383
|
+
if (state === "loading") {
|
43384
|
+
this.isUploading = true;
|
43385
|
+
}
|
43386
|
+
if (state === "loaded") {
|
43387
|
+
this.isUploading = false;
|
43388
|
+
}
|
43389
|
+
if (state === "error") {
|
43390
|
+
this.isUploading = false;
|
43391
|
+
}
|
43392
|
+
this.currentState = state;
|
43393
|
+
this.onStateChanged.fire(this, { state: state });
|
43394
|
+
this.onUploadStateChanged.fire(this, { state: state });
|
43395
|
+
};
|
43396
|
+
Object.defineProperty(QuestionFileModelBase.prototype, "showLoadingIndicator", {
|
43397
|
+
get: function () {
|
43398
|
+
return this.isUploading && this.isDefaultV2Theme;
|
43399
|
+
},
|
43400
|
+
enumerable: false,
|
43401
|
+
configurable: true
|
43402
|
+
});
|
43403
|
+
Object.defineProperty(QuestionFileModelBase.prototype, "storeDataAsText", {
|
43404
|
+
/**
|
43405
|
+
* Specifies whether to store file or signature content as text in `SurveyModel`'s [`data`](https://surveyjs.io/form-library/documentation/surveymodel#data) property.
|
43406
|
+
*
|
43407
|
+
* If you disable this property, implement `SurveyModel`'s [`onUploadFiles`](https://surveyjs.io/form-library/documentation/surveymodel#onUploadFiles) event handler to specify how to store file content.
|
43408
|
+
*/
|
43409
|
+
get: function () {
|
43410
|
+
return this.getPropertyValue("storeDataAsText");
|
43411
|
+
},
|
43412
|
+
set: function (val) {
|
43413
|
+
this.setPropertyValue("storeDataAsText", val);
|
43414
|
+
},
|
43415
|
+
enumerable: false,
|
43416
|
+
configurable: true
|
43417
|
+
});
|
43418
|
+
Object.defineProperty(QuestionFileModelBase.prototype, "waitForUpload", {
|
43419
|
+
/**
|
43420
|
+
* Enable this property if you want to wait until files are uploaded to complete the survey.
|
43421
|
+
*
|
43422
|
+
* Default value: `false`
|
43423
|
+
*/
|
43424
|
+
get: function () {
|
43425
|
+
return this.getPropertyValue("waitForUpload");
|
43426
|
+
},
|
43427
|
+
set: function (val) {
|
43428
|
+
this.setPropertyValue("waitForUpload", val);
|
43429
|
+
},
|
43430
|
+
enumerable: false,
|
43431
|
+
configurable: true
|
43432
|
+
});
|
43433
|
+
QuestionFileModelBase.prototype.clearValue = function () {
|
43434
|
+
this.clearOnDeletingContainer();
|
43435
|
+
_super.prototype.clearValue.call(this);
|
43436
|
+
};
|
43437
|
+
QuestionFileModelBase.prototype.clearOnDeletingContainer = function () {
|
43438
|
+
if (!this.survey)
|
43439
|
+
return;
|
43440
|
+
this.survey.clearFiles(this, this.name, this.value, null, function () { });
|
43441
|
+
};
|
43442
|
+
QuestionFileModelBase.prototype.onCheckForErrors = function (errors, isOnValueChanged) {
|
43443
|
+
_super.prototype.onCheckForErrors.call(this, errors, isOnValueChanged);
|
43444
|
+
if (this.isUploading && this.waitForUpload) {
|
43445
|
+
errors.push(new _error__WEBPACK_IMPORTED_MODULE_4__["UploadingFileError"](this.getLocalizationString("uploadingFile"), this));
|
43446
|
+
}
|
43447
|
+
};
|
43448
|
+
QuestionFileModelBase.prototype.uploadFiles = function (files) {
|
43449
|
+
var _this = this;
|
43450
|
+
if (this.survey) {
|
43451
|
+
this.stateChanged("loading");
|
43452
|
+
this.survey.uploadFiles(this, this.name, files, function (arg1, arg2) {
|
43453
|
+
if (Array.isArray(arg1)) {
|
43454
|
+
_this.setValueFromResult(arg1);
|
43455
|
+
if (Array.isArray(arg2)) {
|
43456
|
+
arg2.forEach(function (error) { return _this.errors.push(new _error__WEBPACK_IMPORTED_MODULE_4__["UploadingFileError"](error, _this)); });
|
43457
|
+
_this.stateChanged("error");
|
43458
|
+
}
|
43459
|
+
}
|
43460
|
+
if (arg1 === "success" && Array.isArray(arg2)) {
|
43461
|
+
_this.setValueFromResult(arg2);
|
43462
|
+
}
|
43463
|
+
if (arg1 === "error") {
|
43464
|
+
if (typeof (arg2) === "string") {
|
43465
|
+
_this.errors.push(new _error__WEBPACK_IMPORTED_MODULE_4__["UploadingFileError"](arg2, _this));
|
43466
|
+
}
|
43467
|
+
if (Array.isArray(arg2) && arg2.length > 0) {
|
43468
|
+
arg2.forEach(function (error) { return _this.errors.push(new _error__WEBPACK_IMPORTED_MODULE_4__["UploadingFileError"](error, _this)); });
|
43469
|
+
}
|
43470
|
+
_this.stateChanged("error");
|
43471
|
+
}
|
43472
|
+
_this.stateChanged("loaded");
|
43473
|
+
});
|
43474
|
+
}
|
43475
|
+
};
|
43476
|
+
__decorate([
|
43477
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
43478
|
+
], QuestionFileModelBase.prototype, "isUploading", void 0);
|
43479
|
+
__decorate([
|
43480
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "empty" })
|
43481
|
+
], QuestionFileModelBase.prototype, "currentState", void 0);
|
43482
|
+
return QuestionFileModelBase;
|
43483
|
+
}(_question__WEBPACK_IMPORTED_MODULE_0__["Question"]));
|
43484
|
+
|
43485
|
+
/**
|
43486
|
+
* A class that describes the File Upload question type.
|
43487
|
+
*
|
43488
|
+
* [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
|
43489
|
+
*/
|
43490
|
+
var QuestionFileModel = /** @class */ (function (_super) {
|
43491
|
+
__extends(QuestionFileModel, _super);
|
43492
|
+
function QuestionFileModel(name) {
|
43493
|
+
var _this = _super.call(this, name) || this;
|
43494
|
+
_this.isDragging = false;
|
43318
43495
|
_this.fileNavigator = new _actions_container__WEBPACK_IMPORTED_MODULE_7__["ActionContainer"]();
|
43319
43496
|
_this.canFlipCameraValue = undefined;
|
43320
43497
|
_this.prevPreviewLength = 0;
|
@@ -43619,15 +43796,6 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
43619
43796
|
QuestionFileModel.prototype.getType = function () {
|
43620
43797
|
return "file";
|
43621
43798
|
};
|
43622
|
-
QuestionFileModel.prototype.clearValue = function () {
|
43623
|
-
this.clearOnDeletingContainer();
|
43624
|
-
_super.prototype.clearValue.call(this);
|
43625
|
-
};
|
43626
|
-
QuestionFileModel.prototype.clearOnDeletingContainer = function () {
|
43627
|
-
if (!this.survey)
|
43628
|
-
return;
|
43629
|
-
this.survey.clearFiles(this, this.name, this.value, null, function () { });
|
43630
|
-
};
|
43631
43799
|
Object.defineProperty(QuestionFileModel.prototype, "showPreview", {
|
43632
43800
|
/**
|
43633
43801
|
* Disable this property only to implement a custom preview.
|
@@ -43698,36 +43866,6 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
43698
43866
|
enumerable: false,
|
43699
43867
|
configurable: true
|
43700
43868
|
});
|
43701
|
-
Object.defineProperty(QuestionFileModel.prototype, "storeDataAsText", {
|
43702
|
-
/**
|
43703
|
-
* Specifies whether to store file content as text in `SurveyModel`'s [`data`](https://surveyjs.io/form-library/documentation/surveymodel#data) property.
|
43704
|
-
*
|
43705
|
-
* If you disable this property, implement `SurveyModel`'s [`onUploadFiles`](https://surveyjs.io/form-library/documentation/surveymodel#onUploadFiles) event handler to specify how to store file content.
|
43706
|
-
*/
|
43707
|
-
get: function () {
|
43708
|
-
return this.getPropertyValue("storeDataAsText");
|
43709
|
-
},
|
43710
|
-
set: function (val) {
|
43711
|
-
this.setPropertyValue("storeDataAsText", val);
|
43712
|
-
},
|
43713
|
-
enumerable: false,
|
43714
|
-
configurable: true
|
43715
|
-
});
|
43716
|
-
Object.defineProperty(QuestionFileModel.prototype, "waitForUpload", {
|
43717
|
-
/**
|
43718
|
-
* Enable this property if you want to wait until files are uploaded to complete the survey.
|
43719
|
-
*
|
43720
|
-
* Default value: `false`
|
43721
|
-
*/
|
43722
|
-
get: function () {
|
43723
|
-
return this.getPropertyValue("waitForUpload");
|
43724
|
-
},
|
43725
|
-
set: function (val) {
|
43726
|
-
this.setPropertyValue("waitForUpload", val);
|
43727
|
-
},
|
43728
|
-
enumerable: false,
|
43729
|
-
configurable: true
|
43730
|
-
});
|
43731
43869
|
Object.defineProperty(QuestionFileModel.prototype, "allowImagesPreview", {
|
43732
43870
|
/**
|
43733
43871
|
* Specifies whether to show a preview of image files.
|
@@ -43915,13 +44053,6 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
43915
44053
|
enumerable: false,
|
43916
44054
|
configurable: true
|
43917
44055
|
});
|
43918
|
-
Object.defineProperty(QuestionFileModel.prototype, "showLoadingIndicator", {
|
43919
|
-
get: function () {
|
43920
|
-
return this.isUploading && this.isDefaultV2Theme;
|
43921
|
-
},
|
43922
|
-
enumerable: false,
|
43923
|
-
configurable: true
|
43924
|
-
});
|
43925
44056
|
Object.defineProperty(QuestionFileModel.prototype, "allowShowPreview", {
|
43926
44057
|
get: function () {
|
43927
44058
|
var isShowLoadingIndicator = this.showLoadingIndicator;
|
@@ -43990,6 +44121,15 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
43990
44121
|
}
|
43991
44122
|
});
|
43992
44123
|
};
|
44124
|
+
QuestionFileModel.prototype.setValueFromResult = function (arg) {
|
44125
|
+
this.value = (this.value || []).concat(arg.map(function (r) {
|
44126
|
+
return {
|
44127
|
+
name: r.file.name,
|
44128
|
+
type: r.file.type,
|
44129
|
+
content: r.content,
|
44130
|
+
};
|
44131
|
+
}));
|
44132
|
+
};
|
43993
44133
|
/**
|
43994
44134
|
* Loads multiple files into the question.
|
43995
44135
|
* @param files An array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects.
|
@@ -44021,24 +44161,7 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
44021
44161
|
});
|
44022
44162
|
}
|
44023
44163
|
else {
|
44024
|
-
|
44025
|
-
_this.survey.uploadFiles(_this, _this.name, files, function (status, data) {
|
44026
|
-
if (status === "error") {
|
44027
|
-
_this.errors.push(new _error__WEBPACK_IMPORTED_MODULE_4__["UploadingFileError"](data, _this));
|
44028
|
-
_this.stateChanged("error");
|
44029
|
-
_this.stateChanged("loaded");
|
44030
|
-
}
|
44031
|
-
if (status === "success") {
|
44032
|
-
_this.value = (_this.value || []).concat(data.map(function (r) {
|
44033
|
-
return {
|
44034
|
-
name: r.file.name,
|
44035
|
-
type: r.file.type,
|
44036
|
-
content: r.content,
|
44037
|
-
};
|
44038
|
-
}));
|
44039
|
-
}
|
44040
|
-
});
|
44041
|
-
}
|
44164
|
+
_this.uploadFiles(files);
|
44042
44165
|
}
|
44043
44166
|
};
|
44044
44167
|
if (this.allowMultiple) {
|
@@ -44113,29 +44236,6 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
44113
44236
|
QuestionFileModel.prototype.getIsQuestionReady = function () {
|
44114
44237
|
return _super.prototype.getIsQuestionReady.call(this) && !this.isFileLoading;
|
44115
44238
|
};
|
44116
|
-
QuestionFileModel.prototype.onCheckForErrors = function (errors, isOnValueChanged) {
|
44117
|
-
_super.prototype.onCheckForErrors.call(this, errors, isOnValueChanged);
|
44118
|
-
if (this.isUploading && this.waitForUpload) {
|
44119
|
-
errors.push(new _error__WEBPACK_IMPORTED_MODULE_4__["UploadingFileError"](this.getLocalizationString("uploadingFile"), this));
|
44120
|
-
}
|
44121
|
-
};
|
44122
|
-
QuestionFileModel.prototype.stateChanged = function (state) {
|
44123
|
-
if (this.currentState == state) {
|
44124
|
-
return;
|
44125
|
-
}
|
44126
|
-
if (state === "loading") {
|
44127
|
-
this.isUploading = true;
|
44128
|
-
}
|
44129
|
-
if (state === "loaded") {
|
44130
|
-
this.isUploading = false;
|
44131
|
-
}
|
44132
|
-
if (state === "error") {
|
44133
|
-
this.isUploading = false;
|
44134
|
-
}
|
44135
|
-
this.currentState = state;
|
44136
|
-
this.onStateChanged.fire(this, { state: state });
|
44137
|
-
this.onUploadStateChanged.fire(this, { state: state });
|
44138
|
-
};
|
44139
44239
|
QuestionFileModel.prototype.allFilesOk = function (files) {
|
44140
44240
|
var _this = this;
|
44141
44241
|
var errorLength = this.errors ? this.errors.length : 0;
|
@@ -44345,18 +44445,12 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
44345
44445
|
this.closeVideoStream();
|
44346
44446
|
_super.prototype.dispose.call(this);
|
44347
44447
|
};
|
44348
|
-
__decorate([
|
44349
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
44350
|
-
], QuestionFileModel.prototype, "isUploading", void 0);
|
44351
44448
|
__decorate([
|
44352
44449
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
44353
44450
|
], QuestionFileModel.prototype, "isDragging", void 0);
|
44354
44451
|
__decorate([
|
44355
44452
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["propertyArray"])({})
|
44356
44453
|
], QuestionFileModel.prototype, "previewValue", void 0);
|
44357
|
-
__decorate([
|
44358
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "empty" })
|
44359
|
-
], QuestionFileModel.prototype, "currentState", void 0);
|
44360
44454
|
__decorate([
|
44361
44455
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: 0 })
|
44362
44456
|
], QuestionFileModel.prototype, "indexToShow", void 0);
|
@@ -44421,7 +44515,7 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
44421
44515
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
44422
44516
|
], QuestionFileModel.prototype, "locRenderedPlaceholderValue", void 0);
|
44423
44517
|
return QuestionFileModel;
|
44424
|
-
}(
|
44518
|
+
}(QuestionFileModelBase));
|
44425
44519
|
|
44426
44520
|
_jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("file", [
|
44427
44521
|
{ name: "showCommentArea:switch", layout: "row", visible: true, category: "general" },
|
@@ -46948,8 +47042,9 @@ var MatrixDropdownRowModelBase = /** @class */ (function () {
|
|
46948
47042
|
if (!_helpers__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isValueEmpty(value)) {
|
46949
47043
|
for (var i = 0; i < questions.length; i++) {
|
46950
47044
|
var key = questions[i].getValueName();
|
46951
|
-
|
46952
|
-
|
47045
|
+
var val = !!this.editingObj ? _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].getObjPropertyValue(this.editingObj, key) : value[key];
|
47046
|
+
if (!_helpers__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isValueEmpty(val)) {
|
47047
|
+
questions[i].value = val;
|
46953
47048
|
}
|
46954
47049
|
}
|
46955
47050
|
}
|
@@ -48480,6 +48575,7 @@ var QuestionMatrixDropdownModelBase = /** @class */ (function (_super) {
|
|
48480
48575
|
var questionPlainData = _super.prototype.getPlainData.call(this, options);
|
48481
48576
|
if (!!questionPlainData) {
|
48482
48577
|
questionPlainData.isNode = true;
|
48578
|
+
var prevData = Array.isArray(questionPlainData.data) ? [].concat(questionPlainData.data) : [];
|
48483
48579
|
questionPlainData.data = this.visibleRows.map(function (row) {
|
48484
48580
|
var rowDataItem = {
|
48485
48581
|
name: row.dataName,
|
@@ -48501,6 +48597,7 @@ var QuestionMatrixDropdownModelBase = /** @class */ (function (_super) {
|
|
48501
48597
|
});
|
48502
48598
|
return rowDataItem;
|
48503
48599
|
});
|
48600
|
+
questionPlainData.data = questionPlainData.data.concat(prevData);
|
48504
48601
|
}
|
48505
48602
|
return questionPlainData;
|
48506
48603
|
};
|
@@ -48912,7 +49009,7 @@ var QuestionMatrixDropdownModelBase = /** @class */ (function (_super) {
|
|
48912
49009
|
columnValue = newRowValue[columnName];
|
48913
49010
|
}
|
48914
49011
|
this.isRowChanging = true;
|
48915
|
-
|
49012
|
+
_jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].setObjPropertyValue(rowObj, columnName, columnValue);
|
48916
49013
|
this.isRowChanging = false;
|
48917
49014
|
this.onCellValueChanged(row, columnName, rowObj);
|
48918
49015
|
}
|
@@ -49043,6 +49140,7 @@ var QuestionMatrixDropdownModelBase = /** @class */ (function (_super) {
|
|
49043
49140
|
this.onCreateDetailPanelCallback(row, panel);
|
49044
49141
|
}
|
49045
49142
|
panel.questions.forEach(function (q) { return q.setParentQuestion(_this); });
|
49143
|
+
panel.onSurveyLoad();
|
49046
49144
|
return panel;
|
49047
49145
|
};
|
49048
49146
|
QuestionMatrixDropdownModelBase.prototype.getSharedQuestionByName = function (columnName, row) {
|
@@ -50738,7 +50836,10 @@ var QuestionMatrixDropdownRenderedTable = /** @class */ (function (_super) {
|
|
50738
50836
|
this.footerRow.cells.push(this.createHeaderCell(null, "action"));
|
50739
50837
|
}
|
50740
50838
|
if (this.matrix.hasRowText) {
|
50741
|
-
this.
|
50839
|
+
var cell_1 = this.createTextCell(this.matrix.getFooterText());
|
50840
|
+
cell_1.className = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_5__["CssClassBuilder"]().append(cell_1.className)
|
50841
|
+
.append(this.cssClasses.footerTotalCell).toString();
|
50842
|
+
this.footerRow.cells.push(cell_1);
|
50742
50843
|
}
|
50743
50844
|
var cells = this.matrix.visibleTotalRow.cells;
|
50744
50845
|
for (var i = 0; i < cells.length; i++) {
|
@@ -50753,6 +50854,8 @@ var QuestionMatrixDropdownRenderedTable = /** @class */ (function (_super) {
|
|
50753
50854
|
if (cell.column) {
|
50754
50855
|
this.setHeaderCellWidth(cell.column, editCell);
|
50755
50856
|
}
|
50857
|
+
editCell.className = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_5__["CssClassBuilder"]().append(editCell.className)
|
50858
|
+
.append(this.cssClasses.footerCell).toString();
|
50756
50859
|
this.footerRow.cells.push(editCell);
|
50757
50860
|
}
|
50758
50861
|
}
|
@@ -55796,6 +55899,7 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
55796
55899
|
var questionPlainData = _super.prototype.getPlainData.call(this, options);
|
55797
55900
|
if (!!questionPlainData) {
|
55798
55901
|
questionPlainData.isNode = true;
|
55902
|
+
var prevData = Array.isArray(questionPlainData.data) ? [].concat(questionPlainData.data) : [];
|
55799
55903
|
questionPlainData.data = this.panels.map(function (panel, index) {
|
55800
55904
|
var panelDataItem = {
|
55801
55905
|
name: panel.name || index,
|
@@ -55815,6 +55919,7 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
55815
55919
|
});
|
55816
55920
|
return panelDataItem;
|
55817
55921
|
});
|
55922
|
+
questionPlainData.data = questionPlainData.data.concat(prevData);
|
55818
55923
|
}
|
55819
55924
|
return questionPlainData;
|
55820
55925
|
};
|
@@ -56985,6 +57090,24 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_3__["Serializer"].addClass("ranking", [
|
|
56985
57090
|
visible: true,
|
56986
57091
|
isSerializable: true,
|
56987
57092
|
},
|
57093
|
+
{
|
57094
|
+
name: "selectToRankEmptyRankedAreaText:text",
|
57095
|
+
serializationProperty: "locSelectToRankEmptyRankedAreaText",
|
57096
|
+
category: "general",
|
57097
|
+
dependsOn: "selectToRankEnabled",
|
57098
|
+
visibleIf: function (obj) {
|
57099
|
+
return !!obj.selectToRankEnabled;
|
57100
|
+
},
|
57101
|
+
},
|
57102
|
+
{
|
57103
|
+
name: "selectToRankEmptyUnrankedAreaText:text",
|
57104
|
+
serializationProperty: "locSelectToRankEmptyUnrankedAreaText",
|
57105
|
+
category: "general",
|
57106
|
+
dependsOn: "selectToRankEnabled",
|
57107
|
+
visibleIf: function (obj) {
|
57108
|
+
return !!obj.selectToRankEnabled;
|
57109
|
+
},
|
57110
|
+
},
|
56988
57111
|
{
|
56989
57112
|
name: "maxSelectedChoices:number",
|
56990
57113
|
visible: true,
|
@@ -57106,6 +57229,15 @@ var RenderedRatingItem = /** @class */ (function (_super) {
|
|
57106
57229
|
return RenderedRatingItem;
|
57107
57230
|
}(_base__WEBPACK_IMPORTED_MODULE_7__["Base"]));
|
57108
57231
|
|
57232
|
+
var RatingItemValue = /** @class */ (function (_super) {
|
57233
|
+
__extends(RatingItemValue, _super);
|
57234
|
+
function RatingItemValue(value, description) {
|
57235
|
+
var _this = _super.call(this, value) || this;
|
57236
|
+
_this.description = description;
|
57237
|
+
return _this;
|
57238
|
+
}
|
57239
|
+
return RatingItemValue;
|
57240
|
+
}(_itemvalue__WEBPACK_IMPORTED_MODULE_0__["ItemValue"]));
|
57109
57241
|
/**
|
57110
57242
|
* A class that describes the Rating Scale question type.
|
57111
57243
|
*
|
@@ -57400,18 +57532,7 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
57400
57532
|
rateValues = this.rateValues;
|
57401
57533
|
}
|
57402
57534
|
else {
|
57403
|
-
|
57404
|
-
var value = this.rateMin;
|
57405
|
-
var step = this.rateStep;
|
57406
|
-
while (value <= this.rateMax &&
|
57407
|
-
res.length < _settings__WEBPACK_IMPORTED_MODULE_4__["settings"].ratingMaximumRateValueCount) {
|
57408
|
-
var item = new _itemvalue__WEBPACK_IMPORTED_MODULE_0__["ItemValue"](value);
|
57409
|
-
item.locOwner = this;
|
57410
|
-
item.ownerPropertyName = "rateValues";
|
57411
|
-
res.push(item);
|
57412
|
-
value = this.correctValue(value + step, step);
|
57413
|
-
}
|
57414
|
-
rateValues = res;
|
57535
|
+
rateValues = this.createRateValues();
|
57415
57536
|
}
|
57416
57537
|
if (this.rateType == "smileys" && rateValues.length > 10)
|
57417
57538
|
rateValues = rateValues.slice(0, 10);
|
@@ -57428,6 +57549,27 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
57428
57549
|
return renderedItem;
|
57429
57550
|
});
|
57430
57551
|
};
|
57552
|
+
QuestionRatingModel.prototype.createRateValues = function () {
|
57553
|
+
var res = [];
|
57554
|
+
var value = this.rateMin;
|
57555
|
+
var step = this.rateStep;
|
57556
|
+
while (value <= this.rateMax &&
|
57557
|
+
res.length < _settings__WEBPACK_IMPORTED_MODULE_4__["settings"].ratingMaximumRateValueCount) {
|
57558
|
+
var description = void 0;
|
57559
|
+
if (value === this.rateMin) {
|
57560
|
+
description = this.minRateDescription && this.locMinRateDescription;
|
57561
|
+
}
|
57562
|
+
if (value === this.rateMax || res.length === _settings__WEBPACK_IMPORTED_MODULE_4__["settings"].ratingMaximumRateValueCount) {
|
57563
|
+
description = this.maxRateDescription && this.locMaxRateDescription;
|
57564
|
+
}
|
57565
|
+
var item = new RatingItemValue(value, description);
|
57566
|
+
item.locOwner = this;
|
57567
|
+
item.ownerPropertyName = "rateValues";
|
57568
|
+
res.push(item);
|
57569
|
+
value = this.correctValue(value + step, step);
|
57570
|
+
}
|
57571
|
+
return res;
|
57572
|
+
};
|
57431
57573
|
QuestionRatingModel.prototype.correctValue = function (value, step) {
|
57432
57574
|
if (!value)
|
57433
57575
|
return value;
|
@@ -57550,7 +57692,7 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
57550
57692
|
});
|
57551
57693
|
QuestionRatingModel.prototype.getDefaultItemComponent = function () {
|
57552
57694
|
if (this.renderAs == "dropdown")
|
57553
|
-
return "";
|
57695
|
+
return "sv-rating-dropdown-item";
|
57554
57696
|
if (this.isStar)
|
57555
57697
|
return "sv-rating-item-star";
|
57556
57698
|
if (this.isSmiley)
|
@@ -58117,10 +58259,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
58117
58259
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionSignaturePadModel", function() { return QuestionSignaturePadModel; });
|
58118
58260
|
/* harmony import */ var _jsonobject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./jsonobject */ "./src/jsonobject.ts");
|
58119
58261
|
/* harmony import */ var _questionfactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./questionfactory */ "./src/questionfactory.ts");
|
58120
|
-
/* harmony import */ var
|
58121
|
-
/* harmony import */ var
|
58122
|
-
/* harmony import */ var
|
58123
|
-
/* harmony import */ var
|
58262
|
+
/* harmony import */ var signature_pad__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! signature_pad */ "./node_modules/signature_pad/dist/signature_pad.js");
|
58263
|
+
/* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
|
58264
|
+
/* harmony import */ var _console_warnings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./console-warnings */ "./src/console-warnings.ts");
|
58265
|
+
/* harmony import */ var _question_file__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./question_file */ "./src/question_file.ts");
|
58124
58266
|
var __extends = (undefined && undefined.__extends) || (function () {
|
58125
58267
|
var extendStatics = function (d, b) {
|
58126
58268
|
extendStatics = Object.setPrototypeOf ||
|
@@ -58164,6 +58306,16 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
58164
58306
|
_this.scaleCanvas(false, true);
|
58165
58307
|
_this.refreshCanvas();
|
58166
58308
|
};
|
58309
|
+
_this.onBlur = function (event) {
|
58310
|
+
if (!_this.storeDataAsText) {
|
58311
|
+
if (!_this.element.contains(event.relatedTarget)) {
|
58312
|
+
if (!_this.valueWasChangedFromLastUpload)
|
58313
|
+
return;
|
58314
|
+
_this.uploadFiles([Object(_question_file__WEBPACK_IMPORTED_MODULE_5__["dataUrl2File"])(_this.signaturePad.toDataURL(_this.getFormat()), _this.name + "." + correctFormatData(_this.dataFormat), _this.getFormat())]);
|
58315
|
+
_this.valueWasChangedFromLastUpload = false;
|
58316
|
+
}
|
58317
|
+
}
|
58318
|
+
};
|
58167
58319
|
return _this;
|
58168
58320
|
}
|
58169
58321
|
QuestionSignaturePadModel.prototype.getPenColorFromTheme = function () {
|
@@ -58180,16 +58332,18 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
58180
58332
|
signaturePad.backgroundColor = background || backgroundColorFromTheme || backgroundColorProperty.defaultValue || "#ffffff";
|
58181
58333
|
};
|
58182
58334
|
QuestionSignaturePadModel.prototype.getCssRoot = function (cssClasses) {
|
58183
|
-
return new
|
58335
|
+
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_3__["CssClassBuilder"]()
|
58184
58336
|
.append(_super.prototype.getCssRoot.call(this, cssClasses))
|
58185
58337
|
.append(cssClasses.small, this.signatureWidth.toString() === "300")
|
58186
58338
|
.toString();
|
58187
58339
|
};
|
58340
|
+
QuestionSignaturePadModel.prototype.getFormat = function () {
|
58341
|
+
return this.dataFormat === "jpeg" ? "image/jpeg" :
|
58342
|
+
(this.dataFormat === "svg" ? "image/svg+xml" : "");
|
58343
|
+
};
|
58188
58344
|
QuestionSignaturePadModel.prototype.updateValue = function () {
|
58189
58345
|
if (this.signaturePad) {
|
58190
|
-
var
|
58191
|
-
(this.dataFormat === "svg" ? "image/svg+xml" : "");
|
58192
|
-
var data = this.signaturePad.toDataURL(format);
|
58346
|
+
var data = this.signaturePad.toDataURL(this.getFormat());
|
58193
58347
|
this.valueIsUpdatingInternally = true;
|
58194
58348
|
this.value = data;
|
58195
58349
|
this.valueIsUpdatingInternally = false;
|
@@ -58201,6 +58355,7 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
58201
58355
|
QuestionSignaturePadModel.prototype.afterRenderQuestionElement = function (el) {
|
58202
58356
|
if (!!el) {
|
58203
58357
|
this.initSignaturePad(el);
|
58358
|
+
this.element = el;
|
58204
58359
|
}
|
58205
58360
|
_super.prototype.afterRenderQuestionElement.call(this, el);
|
58206
58361
|
};
|
@@ -58234,15 +58389,34 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
58234
58389
|
this.refreshCanvas();
|
58235
58390
|
}
|
58236
58391
|
};
|
58392
|
+
QuestionSignaturePadModel.prototype.fromDataUrl = function (data) {
|
58393
|
+
this.signaturePad.fromDataURL(data, { width: this.canvas.width * this.scale, height: this.canvas.height * this.scale });
|
58394
|
+
};
|
58395
|
+
QuestionSignaturePadModel.prototype.fromUrl = function (url) {
|
58396
|
+
var _this = this;
|
58397
|
+
var img = document.createElement("img");
|
58398
|
+
img.crossOrigin = "anonymous";
|
58399
|
+
img.src = url;
|
58400
|
+
img.onload = function () {
|
58401
|
+
var ctx = _this.canvas.getContext("2d");
|
58402
|
+
ctx.drawImage(img, 0, 0);
|
58403
|
+
var dataURL = _this.canvas.toDataURL(_this.getFormat());
|
58404
|
+
_this.fromDataUrl(dataURL);
|
58405
|
+
};
|
58406
|
+
};
|
58237
58407
|
QuestionSignaturePadModel.prototype.refreshCanvas = function () {
|
58238
|
-
|
58239
|
-
|
58240
|
-
if (!data) {
|
58241
|
-
canvas.getContext("2d").clearRect(0, 0, canvas.width * this.scale, canvas.height * this.scale);
|
58408
|
+
if (!this.value) {
|
58409
|
+
this.canvas.getContext("2d").clearRect(0, 0, this.canvas.width * this.scale, this.canvas.height * this.scale);
|
58242
58410
|
this.signaturePad.clear();
|
58411
|
+
this.valueWasChangedFromLastUpload = false;
|
58243
58412
|
}
|
58244
58413
|
else {
|
58245
|
-
this.
|
58414
|
+
if (this.storeDataAsText) {
|
58415
|
+
this.fromDataUrl(this.value);
|
58416
|
+
}
|
58417
|
+
else {
|
58418
|
+
this.fromUrl(this.value);
|
58419
|
+
}
|
58246
58420
|
}
|
58247
58421
|
};
|
58248
58422
|
QuestionSignaturePadModel.prototype.initSignaturePad = function (el) {
|
@@ -58250,7 +58424,7 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
58250
58424
|
var canvas = el.getElementsByTagName("canvas")[0];
|
58251
58425
|
this.canvas = canvas;
|
58252
58426
|
this.resizeCanvas();
|
58253
|
-
var signaturePad = new
|
58427
|
+
var signaturePad = new signature_pad__WEBPACK_IMPORTED_MODULE_2__["default"](canvas, { backgroundColor: "#ffffff" });
|
58254
58428
|
this.signaturePad = signaturePad;
|
58255
58429
|
if (this.isInputReadOnly) {
|
58256
58430
|
signaturePad.off();
|
@@ -58271,7 +58445,12 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
58271
58445
|
}, { once: false });
|
58272
58446
|
signaturePad.addEventListener("endStroke", function () {
|
58273
58447
|
_this.isDrawingValue = false;
|
58274
|
-
_this.
|
58448
|
+
if (_this.storeDataAsText) {
|
58449
|
+
_this.updateValue();
|
58450
|
+
}
|
58451
|
+
else {
|
58452
|
+
_this.valueWasChangedFromLastUpload = true;
|
58453
|
+
}
|
58275
58454
|
}, { once: false });
|
58276
58455
|
this.updateValueHandler();
|
58277
58456
|
this.readOnlyChangedCallback();
|
@@ -58386,7 +58565,9 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
58386
58565
|
});
|
58387
58566
|
Object.defineProperty(QuestionSignaturePadModel.prototype, "canShowClearButton", {
|
58388
58567
|
get: function () {
|
58389
|
-
|
58568
|
+
var hasSignature = !this.nothingIsDrawn();
|
58569
|
+
var isUploading = this.isUploading;
|
58570
|
+
return !this.isInputReadOnly && this.allowClear && hasSignature && !isUploading;
|
58390
58571
|
},
|
58391
58572
|
enumerable: false,
|
58392
58573
|
configurable: true
|
@@ -58455,22 +58636,39 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
58455
58636
|
enumerable: false,
|
58456
58637
|
configurable: true
|
58457
58638
|
});
|
58458
|
-
QuestionSignaturePadModel.prototype.
|
58459
|
-
var showPlaceholder = this.showPlaceholder;
|
58639
|
+
QuestionSignaturePadModel.prototype.nothingIsDrawn = function () {
|
58460
58640
|
var isDrawing = this.isDrawingValue;
|
58461
58641
|
var isEmpty = this.isEmpty();
|
58462
|
-
|
58642
|
+
var isUploading = this.isUploading;
|
58643
|
+
var valueWasChangedFromLastUpload = this.valueWasChangedFromLastUpload;
|
58644
|
+
return !isDrawing && isEmpty && !isUploading && !valueWasChangedFromLastUpload;
|
58645
|
+
};
|
58646
|
+
QuestionSignaturePadModel.prototype.needShowPlaceholder = function () {
|
58647
|
+
return this.showPlaceholder && this.nothingIsDrawn();
|
58648
|
+
};
|
58649
|
+
QuestionSignaturePadModel.prototype.uploadResultItemToValue = function (r) {
|
58650
|
+
return r.content;
|
58651
|
+
};
|
58652
|
+
QuestionSignaturePadModel.prototype.setValueFromResult = function (arg) {
|
58653
|
+
this.valueIsUpdatingInternally = true;
|
58654
|
+
this.value = (arg === null || arg === void 0 ? void 0 : arg.length) ? arg.map(function (r) { return r.content; })[0] : undefined;
|
58655
|
+
this.valueIsUpdatingInternally = false;
|
58656
|
+
};
|
58657
|
+
QuestionSignaturePadModel.prototype.clearValue = function () {
|
58658
|
+
this.valueWasChangedFromLastUpload = false;
|
58659
|
+
_super.prototype.clearValue.call(this);
|
58660
|
+
this.refreshCanvas();
|
58463
58661
|
};
|
58464
58662
|
QuestionSignaturePadModel.prototype.endLoadingFromJson = function () {
|
58465
58663
|
_super.prototype.endLoadingFromJson.call(this);
|
58466
58664
|
//todo: need to remove this code
|
58467
58665
|
if (this.signatureWidth === 300 && !!this.width && typeof this.width === "number" && this.width) {
|
58468
|
-
|
58666
|
+
_console_warnings__WEBPACK_IMPORTED_MODULE_4__["ConsoleWarnings"].warn("Use signatureWidth property to set width for the signature pad");
|
58469
58667
|
this.signatureWidth = this.width;
|
58470
58668
|
this.width = undefined;
|
58471
58669
|
}
|
58472
58670
|
if (this.signatureHeight === 200 && !!this.height) {
|
58473
|
-
|
58671
|
+
_console_warnings__WEBPACK_IMPORTED_MODULE_4__["ConsoleWarnings"].warn("Use signatureHeight property to set width for the signature pad");
|
58474
58672
|
this.signatureHeight = this.height;
|
58475
58673
|
this.height = undefined;
|
58476
58674
|
}
|
@@ -58478,6 +58676,12 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
58478
58676
|
__decorate([
|
58479
58677
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ defaultValue: false })
|
58480
58678
|
], QuestionSignaturePadModel.prototype, "isDrawingValue", void 0);
|
58679
|
+
__decorate([
|
58680
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ defaultValue: false })
|
58681
|
+
], QuestionSignaturePadModel.prototype, "isReadyForUpload", void 0);
|
58682
|
+
__decorate([
|
58683
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ defaultValue: false })
|
58684
|
+
], QuestionSignaturePadModel.prototype, "valueWasChangedFromLastUpload", void 0);
|
58481
58685
|
__decorate([
|
58482
58686
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])()
|
58483
58687
|
], QuestionSignaturePadModel.prototype, "signatureAutoScaleEnabled", void 0);
|
@@ -58494,7 +58698,7 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
58494
58698
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ localizable: { defaultStr: "signaturePlaceHolder" } })
|
58495
58699
|
], QuestionSignaturePadModel.prototype, "placeholder", void 0);
|
58496
58700
|
return QuestionSignaturePadModel;
|
58497
|
-
}(
|
58701
|
+
}(_question_file__WEBPACK_IMPORTED_MODULE_5__["QuestionFileModelBase"]));
|
58498
58702
|
|
58499
58703
|
function correctFormatData(val) {
|
58500
58704
|
if (!val)
|
@@ -58576,6 +58780,8 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("signaturepad",
|
|
58576
58780
|
},
|
58577
58781
|
{ name: "defaultValue", visible: false },
|
58578
58782
|
{ name: "correctAnswer", visible: false },
|
58783
|
+
{ name: "storeDataAsText:boolean", default: true },
|
58784
|
+
{ name: "waitForUpload:boolean", default: false },
|
58579
58785
|
], function () {
|
58580
58786
|
return new QuestionSignaturePadModel("");
|
58581
58787
|
}, "question");
|
@@ -62367,6 +62573,77 @@ survey_core__WEBPACK_IMPORTED_MODULE_2__["settings"].showModal = showModal;
|
|
62367
62573
|
survey_core__WEBPACK_IMPORTED_MODULE_2__["settings"].showDialog = showDialog;
|
62368
62574
|
|
62369
62575
|
|
62576
|
+
/***/ }),
|
62577
|
+
|
62578
|
+
/***/ "./src/react/components/rating/rating-dropdown-item.tsx":
|
62579
|
+
/*!**************************************************************!*\
|
62580
|
+
!*** ./src/react/components/rating/rating-dropdown-item.tsx ***!
|
62581
|
+
\**************************************************************/
|
62582
|
+
/*! exports provided: RatingDropdownItem */
|
62583
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
62584
|
+
|
62585
|
+
"use strict";
|
62586
|
+
__webpack_require__.r(__webpack_exports__);
|
62587
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RatingDropdownItem", function() { return RatingDropdownItem; });
|
62588
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
62589
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
62590
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../element-factory */ "./src/react/element-factory.tsx");
|
62591
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
62592
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
62593
|
+
var extendStatics = function (d, b) {
|
62594
|
+
extendStatics = Object.setPrototypeOf ||
|
62595
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
62596
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
62597
|
+
return extendStatics(d, b);
|
62598
|
+
};
|
62599
|
+
return function (d, b) {
|
62600
|
+
if (typeof b !== "function" && b !== null)
|
62601
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
62602
|
+
extendStatics(d, b);
|
62603
|
+
function __() { this.constructor = d; }
|
62604
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
62605
|
+
};
|
62606
|
+
})();
|
62607
|
+
|
62608
|
+
|
62609
|
+
|
62610
|
+
var RatingDropdownItem = /** @class */ (function (_super) {
|
62611
|
+
__extends(RatingDropdownItem, _super);
|
62612
|
+
function RatingDropdownItem() {
|
62613
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
62614
|
+
}
|
62615
|
+
Object.defineProperty(RatingDropdownItem.prototype, "item", {
|
62616
|
+
get: function () {
|
62617
|
+
return this.props.item;
|
62618
|
+
},
|
62619
|
+
enumerable: false,
|
62620
|
+
configurable: true
|
62621
|
+
});
|
62622
|
+
RatingDropdownItem.prototype.getStateElement = function () {
|
62623
|
+
return this.item;
|
62624
|
+
};
|
62625
|
+
RatingDropdownItem.prototype.render = function () {
|
62626
|
+
if (!this.item)
|
62627
|
+
return null;
|
62628
|
+
var item = this.props.item;
|
62629
|
+
var description = this.renderDescription(item);
|
62630
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sd-rating-dropdown-item" },
|
62631
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: "sd-rating-dropdown-item_text" }, item.title),
|
62632
|
+
description));
|
62633
|
+
};
|
62634
|
+
RatingDropdownItem.prototype.renderDescription = function (item) {
|
62635
|
+
if (!item.description)
|
62636
|
+
return null;
|
62637
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sd-rating-dropdown-item_description" }, this.renderLocString(item.description, undefined, "locString")));
|
62638
|
+
};
|
62639
|
+
return RatingDropdownItem;
|
62640
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__["SurveyElementBase"]));
|
62641
|
+
|
62642
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_1__["ReactElementFactory"].Instance.registerElement("sv-rating-dropdown-item", function (props) {
|
62643
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(RatingDropdownItem, props);
|
62644
|
+
});
|
62645
|
+
|
62646
|
+
|
62370
62647
|
/***/ }),
|
62371
62648
|
|
62372
62649
|
/***/ "./src/react/components/rating/rating-item-smiley.tsx":
|
@@ -63381,7 +63658,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
63381
63658
|
if (!this.question.allowClear || !this.question.cssClasses.cleanButtonIconId)
|
63382
63659
|
return null;
|
63383
63660
|
var style = { display: !this.question.showClearButton ? "none" : "" };
|
63384
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.cleanButton, style: style, onClick: this.clear,
|
63661
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.cleanButton, style: style, onClick: this.clear, "aria-hidden": "true" },
|
63385
63662
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { className: this.question.cssClasses.cleanButtonSvg, iconName: this.question.cssClasses.cleanButtonIconId, title: this.question.clearCaption, size: "auto" })));
|
63386
63663
|
};
|
63387
63664
|
SurveyQuestionDropdownBase.prototype.createChevronButton = function () {
|
@@ -64281,6 +64558,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
64281
64558
|
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
64282
64559
|
/* harmony import */ var _panel_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./panel-base */ "./src/react/panel-base.tsx");
|
64283
64560
|
/* harmony import */ var _components_title_title_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/title/title-element */ "./src/react/components/title/title-element.tsx");
|
64561
|
+
/* harmony import */ var _reactquestion__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion */ "./src/react/reactquestion.tsx");
|
64284
64562
|
var __extends = (undefined && undefined.__extends) || (function () {
|
64285
64563
|
var extendStatics = function (d, b) {
|
64286
64564
|
extendStatics = Object.setPrototypeOf ||
|
@@ -64300,6 +64578,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
64300
64578
|
|
64301
64579
|
|
64302
64580
|
|
64581
|
+
|
64303
64582
|
var SurveyPage = /** @class */ (function (_super) {
|
64304
64583
|
__extends(SurveyPage, _super);
|
64305
64584
|
function SurveyPage(props) {
|
@@ -64319,9 +64598,11 @@ var SurveyPage = /** @class */ (function (_super) {
|
|
64319
64598
|
var title = this.renderTitle();
|
64320
64599
|
var description = this.renderDescription();
|
64321
64600
|
var rows = this.renderRows(this.panelBase.cssClasses);
|
64601
|
+
var errors = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_reactquestion__WEBPACK_IMPORTED_MODULE_4__["SurveyElementErrors"], { element: this.panelBase, cssClasses: this.panelBase.cssClasses, creator: this.creator }));
|
64322
64602
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { ref: this.rootRef, className: this.page.cssRoot },
|
64323
64603
|
title,
|
64324
64604
|
description,
|
64605
|
+
errors,
|
64325
64606
|
rows));
|
64326
64607
|
};
|
64327
64608
|
SurveyPage.prototype.renderTitle = function () {
|
@@ -64618,7 +64899,7 @@ _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.re
|
|
64618
64899
|
/*!***************************************!*\
|
64619
64900
|
!*** ./src/react/rating-dropdown.tsx ***!
|
64620
64901
|
\***************************************/
|
64621
|
-
/*! exports provided: SurveyQuestionRatingDropdown */
|
64902
|
+
/*! exports provided: RatingDropdownItem, SurveyQuestionRatingDropdown */
|
64622
64903
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
64623
64904
|
|
64624
64905
|
"use strict";
|
@@ -64629,6 +64910,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
64629
64910
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "./src/entries/core.ts");
|
64630
64911
|
/* harmony import */ var _dropdown_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dropdown-base */ "./src/react/dropdown-base.tsx");
|
64631
64912
|
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/react/reactquestion_factory.tsx");
|
64913
|
+
/* harmony import */ var _components_rating_rating_dropdown_item__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/rating/rating-dropdown-item */ "./src/react/components/rating/rating-dropdown-item.tsx");
|
64914
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingDropdownItem", function() { return _components_rating_rating_dropdown_item__WEBPACK_IMPORTED_MODULE_4__["RatingDropdownItem"]; });
|
64915
|
+
|
64632
64916
|
var __extends = (undefined && undefined.__extends) || (function () {
|
64633
64917
|
var extendStatics = function (d, b) {
|
64634
64918
|
extendStatics = Object.setPrototypeOf ||
|
@@ -64648,6 +64932,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
64648
64932
|
|
64649
64933
|
|
64650
64934
|
|
64935
|
+
|
64651
64936
|
var SurveyQuestionRatingDropdown = /** @class */ (function (_super) {
|
64652
64937
|
__extends(SurveyQuestionRatingDropdown, _super);
|
64653
64938
|
function SurveyQuestionRatingDropdown(props) {
|
@@ -65004,10 +65289,12 @@ var Survey = /** @class */ (function (_super) {
|
|
65004
65289
|
}
|
65005
65290
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.survey.bodyContainerCss },
|
65006
65291
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "left" }),
|
65007
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", {
|
65008
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "
|
65009
|
-
|
65010
|
-
|
65292
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "sv-components-column sv-components-column--expandable" },
|
65293
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "center" }),
|
65294
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: pageId, className: className, style: style },
|
65295
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "contentTop" }),
|
65296
|
+
activePage,
|
65297
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "contentBottom" }))),
|
65011
65298
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "right" })));
|
65012
65299
|
};
|
65013
65300
|
Survey.prototype.renderPage = function (page) {
|
@@ -68736,12 +69023,15 @@ var SurveyQuestionRanking = /** @class */ (function (_super) {
|
|
68736
69023
|
this.getItems(this.question.unRankingChoices, unrankedItem),
|
68737
69024
|
this.question.unRankingChoices.length === 0 ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.containerPlaceholder },
|
68738
69025
|
" ",
|
68739
|
-
this.question.
|
69026
|
+
this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText),
|
68740
69027
|
" ") : null),
|
68741
69028
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.containersDivider }),
|
68742
69029
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.getContainerClasses("to"), "data-ranking": "to-container" },
|
68743
69030
|
this.getItems(),
|
68744
|
-
this.question.rankingChoices.length === 0 ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.containerPlaceholder },
|
69031
|
+
this.question.rankingChoices.length === 0 ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.containerPlaceholder },
|
69032
|
+
" ",
|
69033
|
+
this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText),
|
69034
|
+
" ") : null)));
|
68745
69035
|
}
|
68746
69036
|
};
|
68747
69037
|
SurveyQuestionRanking.prototype.getItems = function (choices, unrankedItem) {
|
@@ -69458,6 +69748,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
69458
69748
|
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
69459
69749
|
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/react/reactquestion_factory.tsx");
|
69460
69750
|
/* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
|
69751
|
+
/* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/loading-indicator */ "./src/react/components/loading-indicator.tsx");
|
69461
69752
|
var __extends = (undefined && undefined.__extends) || (function () {
|
69462
69753
|
var extendStatics = function (d, b) {
|
69463
69754
|
extendStatics = Object.setPrototypeOf ||
|
@@ -69477,6 +69768,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
69477
69768
|
|
69478
69769
|
|
69479
69770
|
|
69771
|
+
|
69480
69772
|
var SurveyQuestionSignaturePad = /** @class */ (function (_super) {
|
69481
69773
|
__extends(SurveyQuestionSignaturePad, _super);
|
69482
69774
|
function SurveyQuestionSignaturePad(props) {
|
@@ -69494,19 +69786,25 @@ var SurveyQuestionSignaturePad = /** @class */ (function (_super) {
|
|
69494
69786
|
SurveyQuestionSignaturePad.prototype.renderElement = function () {
|
69495
69787
|
var _this = this;
|
69496
69788
|
var cssClasses = this.question.cssClasses;
|
69789
|
+
var loadingIndicator = this.question.showLoadingIndicator ? this.renderLoadingIndicator() : null;
|
69497
69790
|
var clearButton = this.renderCleanButton();
|
69498
69791
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.root, ref: function (root) { return (_this.setControl(root)); }, style: { width: this.question.renderedCanvasWidth } },
|
69499
69792
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.placeholder, style: { display: this.question.needShowPlaceholder() ? "" : "none" } }, this.renderLocString(this.question.locPlaceholder)),
|
69500
69793
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null,
|
69501
69794
|
this.renderBackgroundImage(),
|
69502
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("canvas", { tabIndex: 0, className: this.question.cssClasses.canvas })),
|
69503
|
-
clearButton
|
69795
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("canvas", { tabIndex: 0, className: this.question.cssClasses.canvas, onBlur: this.question.onBlur })),
|
69796
|
+
clearButton,
|
69797
|
+
loadingIndicator));
|
69504
69798
|
};
|
69505
69799
|
SurveyQuestionSignaturePad.prototype.renderBackgroundImage = function () {
|
69506
69800
|
if (!this.question.backgroundImage)
|
69507
69801
|
return null;
|
69508
69802
|
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { className: this.question.cssClasses.backgroundImage, src: this.question.backgroundImage, style: { width: this.question.renderedCanvasWidth } });
|
69509
69803
|
};
|
69804
|
+
SurveyQuestionSignaturePad.prototype.renderLoadingIndicator = function () {
|
69805
|
+
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.loadingIndicator },
|
69806
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__["LoadingIndicatorComponent"], null));
|
69807
|
+
};
|
69510
69808
|
SurveyQuestionSignaturePad.prototype.renderCleanButton = function () {
|
69511
69809
|
var _this = this;
|
69512
69810
|
if (!this.question.canShowClearButton)
|
@@ -72481,6 +72779,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
72481
72779
|
/* harmony import */ var _notifier__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./notifier */ "./src/notifier.ts");
|
72482
72780
|
/* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./header */ "./src/header.ts");
|
72483
72781
|
/* harmony import */ var _surveytimer__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./surveytimer */ "./src/surveytimer.ts");
|
72782
|
+
/* harmony import */ var _surveyTaskManager__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./surveyTaskManager */ "./src/surveyTaskManager.ts");
|
72484
72783
|
var __extends = (undefined && undefined.__extends) || (function () {
|
72485
72784
|
var extendStatics = function (d, b) {
|
72486
72785
|
extendStatics = Object.setPrototypeOf ||
|
@@ -72522,6 +72821,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
72522
72821
|
|
72523
72822
|
|
72524
72823
|
|
72824
|
+
|
72525
72825
|
|
72526
72826
|
|
72527
72827
|
/**
|
@@ -72798,6 +73098,8 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
72798
73098
|
* For information on event handler parameters, refer to descriptions within the interface.
|
72799
73099
|
*
|
72800
73100
|
* If you want to specify heading levels for all titles, use the [`titleTags`](https://surveyjs.io/form-library/documentation/api-reference/settings#titleTags) object in [global settings](https://surveyjs.io/form-library/documentation/api-reference/settings).
|
73101
|
+
*
|
73102
|
+
* [View Demo](https://surveyjs.io/form-library/examples/survey-titletagnames/ (linkStyle))
|
72801
73103
|
* @see onGetQuestionTitle
|
72802
73104
|
* @see onGetQuestionNo
|
72803
73105
|
*/
|
@@ -72837,7 +73139,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
72837
73139
|
*/
|
72838
73140
|
_this.onGetResult = _this.addEvent();
|
72839
73141
|
/**
|
72840
|
-
* An event that is raised when a File Upload question starts to upload a file. Applies only if [`storeDataAsText`](https://surveyjs.io/form-library/documentation/api-reference/file-model#storeDataAsText) is `false`. Use this event to upload files to your server.
|
73142
|
+
* An event that is raised when a File Upload or Signature Pad question starts to upload a file. Applies only if [`storeDataAsText`](https://surveyjs.io/form-library/documentation/api-reference/file-model#storeDataAsText) is `false`. Use this event to upload files to your server.
|
72841
73143
|
*
|
72842
73144
|
* For information on event handler parameters, refer to descriptions within the interface.
|
72843
73145
|
*
|
@@ -72859,7 +73161,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
72859
73161
|
*/
|
72860
73162
|
_this.onDownloadFile = _this.addEvent();
|
72861
73163
|
/**
|
72862
|
-
* An event that is raised when users clear files in a [File Upload](https://surveyjs.io/form-library/documentation/api-reference/file-model) question. Use this event to delete files from your server.
|
73164
|
+
* An event that is raised when users clear files in a [File Upload](https://surveyjs.io/form-library/documentation/api-reference/file-model) question or clear signature in a [Signature Pad](https://surveyjs.io/form-library/documentation/api-reference/signature-pad-model) question. Use this event to delete files from your server.
|
72863
73165
|
*
|
72864
73166
|
* For information on event handler parameters, refer to descriptions within the interface.
|
72865
73167
|
*
|
@@ -73181,7 +73483,8 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
73181
73483
|
* Specifies whether to hide validation errors thrown by the Required validation in the UI.
|
73182
73484
|
*
|
73183
73485
|
* [Built-In Client-Side Validators](https://surveyjs.io/form-library/documentation/data-validation#built-in-client-side-validators (linkStyle))
|
73184
|
-
* @see
|
73486
|
+
* @see validationEnabled
|
73487
|
+
* @see validationAllowSwitchPages
|
73185
73488
|
*/
|
73186
73489
|
_this.hideRequiredErrors = false;
|
73187
73490
|
//#endregion
|
@@ -73190,15 +73493,27 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
73190
73493
|
_this._isCompact = false;
|
73191
73494
|
_this._isDesignMode = false;
|
73192
73495
|
/**
|
73193
|
-
* Specifies whether
|
73496
|
+
* Specifies whether data validation is enabled.
|
73194
73497
|
*
|
73195
|
-
* Default value: `
|
73498
|
+
* Default value: `true`
|
73499
|
+
* @see checkErrorsMode
|
73196
73500
|
* @see hideRequiredErrors
|
73197
|
-
* @see nextPage
|
73198
|
-
* @see isPrevPage
|
73199
|
-
* @see completeLastPage
|
73200
73501
|
*/
|
73201
|
-
_this.
|
73502
|
+
_this.validationEnabled = true;
|
73503
|
+
/**
|
73504
|
+
* Specifies whether respondents can switch the current page even if it contains validation errors.
|
73505
|
+
*
|
73506
|
+
* Default value: `false`
|
73507
|
+
* @see checkErrorsMode
|
73508
|
+
*/
|
73509
|
+
_this.validationAllowSwitchPages = false;
|
73510
|
+
/**
|
73511
|
+
* Specifies whether respondents can end a survey with validation errors.
|
73512
|
+
*
|
73513
|
+
* Default value: `false`
|
73514
|
+
* @see checkErrorsMode
|
73515
|
+
*/
|
73516
|
+
_this.validationAllowComplete = false;
|
73202
73517
|
_this.isNavigationButtonPressed = false;
|
73203
73518
|
_this.mouseDownPage = null;
|
73204
73519
|
_this.isCalculatingProgressText = false;
|
@@ -73222,6 +73537,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
73222
73537
|
_this.needRenderIcons = true;
|
73223
73538
|
_this.skippedPages = [];
|
73224
73539
|
_this.skeletonComponentName = "sv-skeleton";
|
73540
|
+
_this.taskManager = new _surveyTaskManager__WEBPACK_IMPORTED_MODULE_22__["SurveyTaskManagerModel"]();
|
73225
73541
|
if (typeof document !== "undefined") {
|
73226
73542
|
SurveyModel.stylesManager = new _stylesmanager__WEBPACK_IMPORTED_MODULE_11__["StylesManager"]();
|
73227
73543
|
}
|
@@ -73229,6 +73545,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
73229
73545
|
_this.createHtmlLocString("completedHtml", "completingSurvey", htmlCallBack);
|
73230
73546
|
_this.createHtmlLocString("completedBeforeHtml", "completingSurveyBefore", htmlCallBack, "completed-before");
|
73231
73547
|
_this.createHtmlLocString("loadingHtml", "loadingSurvey", htmlCallBack, "loading");
|
73548
|
+
_this.createLocalizableString("emptySurveyText", _this, true, "emptySurvey");
|
73232
73549
|
_this.createLocalizableString("logo", _this, false);
|
73233
73550
|
_this.createLocalizableString("startSurveyText", _this, false, true);
|
73234
73551
|
_this.createLocalizableString("pagePrevText", _this, false, true);
|
@@ -73632,6 +73949,17 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
73632
73949
|
enumerable: false,
|
73633
73950
|
configurable: true
|
73634
73951
|
});
|
73952
|
+
SurveyModel.prototype.insertAdvancedHeader = function (advHeader) {
|
73953
|
+
advHeader.survey = this;
|
73954
|
+
this.layoutElements.push({
|
73955
|
+
id: "advanced-header",
|
73956
|
+
container: "header",
|
73957
|
+
component: "sv-header",
|
73958
|
+
index: -100,
|
73959
|
+
data: advHeader,
|
73960
|
+
processResponsiveness: function (width) { return advHeader.processResponsiveness(width); }
|
73961
|
+
});
|
73962
|
+
};
|
73635
73963
|
SurveyModel.prototype.getNavigationCss = function (main, btn) {
|
73636
73964
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_18__["CssClassBuilder"]().append(main)
|
73637
73965
|
.append(btn).toString();
|
@@ -74166,6 +74494,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
74166
74494
|
* - `"onComplete"` - Triggers validation when a user clicks the Complete button. If previous pages contain errors, the survey switches to the page with the first error.
|
74167
74495
|
*
|
74168
74496
|
* Refer to the following help topic for more information: [Data Validation](https://surveyjs.io/form-library/documentation/data-validation).
|
74497
|
+
* @see validationEnabled
|
74498
|
+
* @see validationAllowSwitchPages
|
74499
|
+
* @see validationAllowComplete
|
74500
|
+
* @see validate
|
74169
74501
|
*/
|
74170
74502
|
get: function () {
|
74171
74503
|
return this.getPropertyValue("checkErrorsMode");
|
@@ -74457,11 +74789,14 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
74457
74789
|
};
|
74458
74790
|
Object.defineProperty(SurveyModel.prototype, "emptySurveyText", {
|
74459
74791
|
/**
|
74460
|
-
*
|
74792
|
+
* A message that is displayed when a survey does not contain visible pages or questions.
|
74461
74793
|
* @see [Localization & Globalization](https://surveyjs.io/form-library/documentation/survey-localization)
|
74462
74794
|
*/
|
74463
74795
|
get: function () {
|
74464
|
-
return this.
|
74796
|
+
return this.getLocalizableStringText("emptySurveyText");
|
74797
|
+
},
|
74798
|
+
set: function (val) {
|
74799
|
+
this.setLocalizableStringText("emptySurveyText", val);
|
74465
74800
|
},
|
74466
74801
|
enumerable: false,
|
74467
74802
|
configurable: true
|
@@ -75500,7 +75835,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
75500
75835
|
},
|
75501
75836
|
set: function (data) {
|
75502
75837
|
this.valuesHash = {};
|
75503
|
-
this.setDataCore(data);
|
75838
|
+
this.setDataCore(data, !data);
|
75504
75839
|
},
|
75505
75840
|
enumerable: false,
|
75506
75841
|
configurable: true
|
@@ -75520,17 +75855,21 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
75520
75855
|
this.mergeValues(data, newData);
|
75521
75856
|
this.setDataCore(newData);
|
75522
75857
|
};
|
75523
|
-
SurveyModel.prototype.setDataCore = function (data) {
|
75858
|
+
SurveyModel.prototype.setDataCore = function (data, clearData) {
|
75859
|
+
if (clearData === void 0) { clearData = false; }
|
75860
|
+
if (clearData) {
|
75861
|
+
this.valuesHash = {};
|
75862
|
+
}
|
75524
75863
|
if (data) {
|
75525
75864
|
for (var key in data) {
|
75526
75865
|
this.setDataValueCore(this.valuesHash, key, data[key]);
|
75527
75866
|
}
|
75528
75867
|
}
|
75529
|
-
this.updateAllQuestionsValue();
|
75868
|
+
this.updateAllQuestionsValue(clearData);
|
75530
75869
|
this.notifyAllQuestionsOnValueChanged();
|
75531
75870
|
this.notifyElementsOnAnyValueOrVariableChanged("");
|
75532
75871
|
this.runConditions();
|
75533
|
-
this.updateAllQuestionsValue();
|
75872
|
+
this.updateAllQuestionsValue(clearData);
|
75534
75873
|
};
|
75535
75874
|
SurveyModel.prototype.getStructuredData = function (includePages, level) {
|
75536
75875
|
if (includePages === void 0) { includePages = true; }
|
@@ -76225,8 +76564,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
76225
76564
|
this.isLoading = false;
|
76226
76565
|
this.completedByTriggers = undefined;
|
76227
76566
|
if (clearData) {
|
76228
|
-
this.
|
76229
|
-
this.variablesHash = {};
|
76567
|
+
this.setDataCore(null, true);
|
76230
76568
|
}
|
76231
76569
|
this.timerModel.spent = 0;
|
76232
76570
|
for (var i = 0; i < this.pages.length; i++) {
|
@@ -76496,6 +76834,15 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
76496
76834
|
return;
|
76497
76835
|
document.cookie = this.cookieName + "=;";
|
76498
76836
|
};
|
76837
|
+
Object.defineProperty(SurveyModel.prototype, "ignoreValidation", {
|
76838
|
+
/**
|
76839
|
+
* This property is obsolete. Use the [`validationEnabled`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#validationEnabled) property instead.
|
76840
|
+
*/
|
76841
|
+
get: function () { return !this.validationEnabled; },
|
76842
|
+
set: function (val) { this.validationEnabled = !val; },
|
76843
|
+
enumerable: false,
|
76844
|
+
configurable: true
|
76845
|
+
});
|
76499
76846
|
/**
|
76500
76847
|
* Switches the survey to the next page.
|
76501
76848
|
*
|
@@ -76512,19 +76859,20 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
76512
76859
|
};
|
76513
76860
|
SurveyModel.prototype.hasErrorsOnNavigate = function (doComplete) {
|
76514
76861
|
var _this = this;
|
76515
|
-
if (this.
|
76862
|
+
if (!this.isEditMode || this.ignoreValidation)
|
76516
76863
|
return false;
|
76864
|
+
var skipValidation = doComplete && this.validationAllowComplete || !doComplete && this.validationAllowSwitchPages;
|
76517
76865
|
var func = function (hasErrors) {
|
76518
|
-
if (!hasErrors) {
|
76866
|
+
if (!hasErrors || skipValidation) {
|
76519
76867
|
_this.doCurrentPageCompleteCore(doComplete);
|
76520
76868
|
}
|
76521
76869
|
};
|
76522
76870
|
if (this.isValidateOnComplete) {
|
76523
76871
|
if (!this.isLastPage)
|
76524
76872
|
return false;
|
76525
|
-
return this.validate(true, true, func) !== true;
|
76873
|
+
return this.validate(true, true, func) !== true && !skipValidation;
|
76526
76874
|
}
|
76527
|
-
return this.validateCurrentPage(func) !== true;
|
76875
|
+
return this.validateCurrentPage(func) !== true && !skipValidation;
|
76528
76876
|
};
|
76529
76877
|
SurveyModel.prototype.checkForAsyncQuestionValidation = function (questions, func) {
|
76530
76878
|
var _this = this;
|
@@ -77884,7 +78232,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
77884
78232
|
});
|
77885
78233
|
Object.defineProperty(SurveyModel.prototype, "isValidateOnComplete", {
|
77886
78234
|
get: function () {
|
77887
|
-
return this.checkErrorsMode === "onComplete";
|
78235
|
+
return this.checkErrorsMode === "onComplete" || this.validationAllowSwitchPages && !this.validationAllowComplete;
|
77888
78236
|
},
|
77889
78237
|
enumerable: false,
|
77890
78238
|
configurable: true
|
@@ -78032,23 +78380,29 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
78032
78380
|
* }
|
78033
78381
|
* );
|
78034
78382
|
* ```
|
78035
|
-
* @param question A [File Upload question instance](https://surveyjs.io/form-library/documentation/api-reference/file-model).
|
78036
|
-
* @param name The File Upload question's [`name`](https://surveyjs.io/form-library/documentation/api-reference/file-model#name).
|
78383
|
+
* @param question A [File Upload question instance](https://surveyjs.io/form-library/documentation/api-reference/file-model) or [Signature Pad question instance](https://surveyjs.io/form-library/documentation/api-reference/signature-pad-model).
|
78384
|
+
* @param name The File Upload question's [`name`](https://surveyjs.io/form-library/documentation/api-reference/file-model#name) or Signature Pad question's [`name`](https://surveyjs.io/form-library/documentation/api-reference/signature-pad-model#name).
|
78037
78385
|
* @param files An array of JavaScript <a href="https://developer.mozilla.org/en-US/docs/Web/API/File" target="_blank">File</a> objects that represent files to upload.
|
78038
|
-
* @param callback A callback function that allows you to
|
78386
|
+
* @param callback A callback function that allows you to access successfully uploaded files as the first argument. If any files fail to upload, the second argument contains an array of error messages.
|
78039
78387
|
* @see onUploadFiles
|
78040
78388
|
* @see downloadFile
|
78041
78389
|
*/
|
78042
78390
|
SurveyModel.prototype.uploadFiles = function (question, name, files, callback) {
|
78391
|
+
var _this = this;
|
78043
78392
|
if (this.onUploadFiles.isEmpty) {
|
78044
|
-
callback("error",
|
78393
|
+
callback("error", this.getLocString("noUploadFilesHandler"));
|
78045
78394
|
}
|
78046
78395
|
else {
|
78047
|
-
this.
|
78048
|
-
|
78049
|
-
|
78050
|
-
|
78051
|
-
|
78396
|
+
this.taskManager.runTask("file", function (done) {
|
78397
|
+
_this.onUploadFiles.fire(_this, {
|
78398
|
+
question: question,
|
78399
|
+
name: name,
|
78400
|
+
files: files || [],
|
78401
|
+
callback: function (status, data) {
|
78402
|
+
callback(status, data);
|
78403
|
+
done();
|
78404
|
+
},
|
78405
|
+
});
|
78052
78406
|
});
|
78053
78407
|
}
|
78054
78408
|
if (this.surveyPostId) {
|
@@ -78467,7 +78821,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
78467
78821
|
var qValue = questions[i].value;
|
78468
78822
|
if ((qValue === newValue && Array.isArray(qValue) && !!this.editingObj) ||
|
78469
78823
|
!this.isTwoValueEquals(qValue, newValue)) {
|
78470
|
-
questions[i].updateValueFromSurvey(newValue);
|
78824
|
+
questions[i].updateValueFromSurvey(newValue, false);
|
78471
78825
|
}
|
78472
78826
|
}
|
78473
78827
|
}
|
@@ -78562,12 +78916,12 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
78562
78916
|
this.locStrsChanged();
|
78563
78917
|
}
|
78564
78918
|
};
|
78565
|
-
SurveyModel.prototype.updateAllQuestionsValue = function () {
|
78919
|
+
SurveyModel.prototype.updateAllQuestionsValue = function (clearData) {
|
78566
78920
|
var questions = this.getAllQuestions();
|
78567
78921
|
for (var i = 0; i < questions.length; i++) {
|
78568
78922
|
var q = questions[i];
|
78569
78923
|
var valName = q.getValueName();
|
78570
|
-
q.updateValueFromSurvey(this.getValue(valName));
|
78924
|
+
q.updateValueFromSurvey(this.getValue(valName), clearData);
|
78571
78925
|
if (q.requireUpdateCommentValue) {
|
78572
78926
|
q.updateCommentFromSurvey(this.getComment(valName));
|
78573
78927
|
}
|
@@ -78986,7 +79340,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
78986
79340
|
mouseDown: function () { return _this.navigationMouseDown(); },
|
78987
79341
|
},
|
78988
79342
|
locTitle: this.locCompleteText,
|
78989
|
-
action: function () { return _this.completeLastPage(); },
|
79343
|
+
action: function () { return _this.taskManager.waitAndExecute(function () { return _this.completeLastPage(); }); },
|
78990
79344
|
component: defaultComponent
|
78991
79345
|
});
|
78992
79346
|
this.updateNavigationItemCssCallback = function () {
|
@@ -80167,6 +80521,11 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
80167
80521
|
SurveyModel.prototype.stopMovingQuestion = function () {
|
80168
80522
|
this.isMovingQuestion = false;
|
80169
80523
|
};
|
80524
|
+
Object.defineProperty(SurveyModel.prototype, "isQuestionDragging", {
|
80525
|
+
get: function () { return this.isMovingQuestion; },
|
80526
|
+
enumerable: false,
|
80527
|
+
configurable: true
|
80528
|
+
});
|
80170
80529
|
/**
|
80171
80530
|
* Focuses a question with a specified name. Switches the current page if needed.
|
80172
80531
|
* @param name A question name.
|
@@ -80309,7 +80668,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
80309
80668
|
}
|
80310
80669
|
}
|
80311
80670
|
else if (this.state === "running" && isStrCiEqual(layoutElement.id, "progress-" + this.progressBarType)) {
|
80312
|
-
if (container === "
|
80671
|
+
if (container === "center") {
|
80313
80672
|
if (this.isShowProgressBarOnTop && !this.isShowStartingPage) {
|
80314
80673
|
containerLayoutElements.push(layoutElement);
|
80315
80674
|
}
|
@@ -80355,6 +80714,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
80355
80714
|
}
|
80356
80715
|
}
|
80357
80716
|
}
|
80717
|
+
containerLayoutElements.sort(function (a, b) { return (a.index || 0) - (b.index || 0); });
|
80358
80718
|
return containerLayoutElements;
|
80359
80719
|
};
|
80360
80720
|
SurveyModel.prototype.processPopupVisiblityChanged = function (question, popup, visible) {
|
@@ -80373,15 +80733,9 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
80373
80733
|
Object.keys(theme).forEach(function (key) {
|
80374
80734
|
if (key === "header") {
|
80375
80735
|
_this.removeLayoutElement("advanced-header");
|
80376
|
-
var
|
80377
|
-
|
80378
|
-
_this.
|
80379
|
-
id: "advanced-header",
|
80380
|
-
container: "header",
|
80381
|
-
component: "sv-header",
|
80382
|
-
data: advHeader_1,
|
80383
|
-
processResponsiveness: function (width) { return advHeader_1.processResponsiveness(width); }
|
80384
|
-
});
|
80736
|
+
var advHeader = new _header__WEBPACK_IMPORTED_MODULE_20__["Cover"]();
|
80737
|
+
advHeader.fromTheme(theme);
|
80738
|
+
_this.insertAdvancedHeader(advHeader);
|
80385
80739
|
}
|
80386
80740
|
if (key === "isPanelless") {
|
80387
80741
|
_this.isCompact = theme[key];
|
@@ -80478,14 +80832,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
80478
80832
|
advHeader.titlePositionY = "middle";
|
80479
80833
|
advHeader.descriptionPositionX = target.logoPosition === "right" ? "left" : "right";
|
80480
80834
|
advHeader.descriptionPositionY = "middle";
|
80481
|
-
advHeader
|
80482
|
-
target.layoutElements.unshift({
|
80483
|
-
id: "advanced-header",
|
80484
|
-
container: "header",
|
80485
|
-
component: "sv-header",
|
80486
|
-
data: advHeader,
|
80487
|
-
processResponsiveness: function (width) { return advHeader.processResponsiveness(width); }
|
80488
|
-
});
|
80835
|
+
target.insertAdvancedHeader(advHeader);
|
80489
80836
|
}
|
80490
80837
|
}
|
80491
80838
|
else {
|
@@ -80997,6 +81344,91 @@ surveyLocalization.locales["en"] = _localization_english__WEBPACK_IMPORTED_MODUL
|
|
80997
81344
|
surveyLocalization.localeNames["en"] = "english";
|
80998
81345
|
|
80999
81346
|
|
81347
|
+
/***/ }),
|
81348
|
+
|
81349
|
+
/***/ "./src/surveyTaskManager.ts":
|
81350
|
+
/*!**********************************!*\
|
81351
|
+
!*** ./src/surveyTaskManager.ts ***!
|
81352
|
+
\**********************************/
|
81353
|
+
/*! exports provided: SurveyTaskManagerModel */
|
81354
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
81355
|
+
|
81356
|
+
"use strict";
|
81357
|
+
__webpack_require__.r(__webpack_exports__);
|
81358
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyTaskManagerModel", function() { return SurveyTaskManagerModel; });
|
81359
|
+
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base */ "./src/base.ts");
|
81360
|
+
/* harmony import */ var _jsonobject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./jsonobject */ "./src/jsonobject.ts");
|
81361
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
81362
|
+
var extendStatics = function (d, b) {
|
81363
|
+
extendStatics = Object.setPrototypeOf ||
|
81364
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
81365
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
81366
|
+
return extendStatics(d, b);
|
81367
|
+
};
|
81368
|
+
return function (d, b) {
|
81369
|
+
if (typeof b !== "function" && b !== null)
|
81370
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
81371
|
+
extendStatics(d, b);
|
81372
|
+
function __() { this.constructor = d; }
|
81373
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
81374
|
+
};
|
81375
|
+
})();
|
81376
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
81377
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
81378
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
81379
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
81380
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
81381
|
+
};
|
81382
|
+
|
81383
|
+
|
81384
|
+
var SurveyTaskModel = /** @class */ (function () {
|
81385
|
+
function SurveyTaskModel(type) {
|
81386
|
+
this.type = type;
|
81387
|
+
this.timestamp = new Date();
|
81388
|
+
}
|
81389
|
+
return SurveyTaskModel;
|
81390
|
+
}());
|
81391
|
+
var SurveyTaskManagerModel = /** @class */ (function (_super) {
|
81392
|
+
__extends(SurveyTaskManagerModel, _super);
|
81393
|
+
function SurveyTaskManagerModel() {
|
81394
|
+
var _this = _super.call(this) || this;
|
81395
|
+
_this.taskList = [];
|
81396
|
+
_this.onAllTasksCompleted = _this.addEvent();
|
81397
|
+
return _this;
|
81398
|
+
}
|
81399
|
+
SurveyTaskManagerModel.prototype.runTask = function (type, func) {
|
81400
|
+
var _this = this;
|
81401
|
+
var task = new SurveyTaskModel(type);
|
81402
|
+
this.taskList.push(task);
|
81403
|
+
this.hasActiveTasks = true;
|
81404
|
+
func(function () { return _this.taskFinished(task); });
|
81405
|
+
return task;
|
81406
|
+
};
|
81407
|
+
SurveyTaskManagerModel.prototype.waitAndExecute = function (action) {
|
81408
|
+
if (!this.hasActiveTasks) {
|
81409
|
+
action();
|
81410
|
+
return;
|
81411
|
+
}
|
81412
|
+
this.onAllTasksCompleted.add(function () { action(); });
|
81413
|
+
};
|
81414
|
+
SurveyTaskManagerModel.prototype.taskFinished = function (task) {
|
81415
|
+
var index = this.taskList.indexOf(task);
|
81416
|
+
if (index > -1) {
|
81417
|
+
this.taskList.splice(index, 1);
|
81418
|
+
}
|
81419
|
+
if (this.hasActiveTasks && this.taskList.length == 0) {
|
81420
|
+
this.hasActiveTasks = false;
|
81421
|
+
this.onAllTasksCompleted.fire(this, {});
|
81422
|
+
}
|
81423
|
+
};
|
81424
|
+
__decorate([
|
81425
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
81426
|
+
], SurveyTaskManagerModel.prototype, "hasActiveTasks", void 0);
|
81427
|
+
return SurveyTaskManagerModel;
|
81428
|
+
}(_base__WEBPACK_IMPORTED_MODULE_0__["Base"]));
|
81429
|
+
|
81430
|
+
|
81431
|
+
|
81000
81432
|
/***/ }),
|
81001
81433
|
|
81002
81434
|
/***/ "./src/surveyTimerModel.ts":
|
@@ -81270,6 +81702,7 @@ function createTOCListModel(survey, onAction) {
|
|
81270
81702
|
}, true, items.filter(function (i) { return i.id === survey.currentPage.name; })[0] || items.filter(function (i) { return i.id === pagesSource[0].name; })[0]);
|
81271
81703
|
listModel.allowSelection = false;
|
81272
81704
|
listModel.locOwner = survey;
|
81705
|
+
listModel.searchEnabled = false;
|
81273
81706
|
survey.onCurrentPageChanged.add(function (s, o) {
|
81274
81707
|
listModel.selectedItem = items.filter(function (i) { return i.id === survey.currentPage.name; })[0];
|
81275
81708
|
});
|