survey-react-ui 1.9.139 → 1.10.2
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/package.json +1 -1
- package/survey-react-ui.js +340 -187
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -2
- package/typings/entries/react-ui-model.d.ts +1 -0
- package/typings/react/components/matrix/row.d.ts +4 -0
- package/typings/react/components/popup/popup.d.ts +0 -1
- package/typings/react/components/question-error.d.ts +10 -0
- package/typings/react/reactSurvey.d.ts +1 -1
- package/typings/react/reactquestion.d.ts +1 -1
- package/typings/react/reactquestion_ranking.d.ts +2 -1
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.10.2
|
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -161,8 +161,9 @@ function createDropdownActionModelAdvanced(actionOptions, listOptions, popupOpti
|
|
|
161
161
|
}
|
|
162
162
|
listOptions.onSelectionChanged(item);
|
|
163
163
|
innerPopupModel.toggleVisibility();
|
|
164
|
-
}, listOptions.allowSelection, listOptions.selectedItem
|
|
164
|
+
}, listOptions.allowSelection, listOptions.selectedItem);
|
|
165
165
|
listModel.locOwner = locOwner;
|
|
166
|
+
listModel.setOnFilterStringChangedCallback(listOptions.onFilterStringChangedCallback);
|
|
166
167
|
var innerPopupModel = new _popup__WEBPACK_IMPORTED_MODULE_4__["PopupModel"]("sv-list", { model: listModel }, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.verticalPosition, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.horizontalPosition, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.showPointer, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.isModal, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.onCancel, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.onApply, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.onHide, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.onShow, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.cssClass, popupOptions === null || popupOptions === void 0 ? void 0 : popupOptions.title, function () {
|
|
167
168
|
listModel.dispose();
|
|
168
169
|
});
|
|
@@ -413,9 +414,9 @@ var Action = /** @class */ (function (_super) {
|
|
|
413
414
|
//Object.assign(this, item) to support IE11
|
|
414
415
|
if (!!innerItem) {
|
|
415
416
|
for (var key in innerItem) {
|
|
416
|
-
if (key
|
|
417
|
-
|
|
418
|
-
|
|
417
|
+
if (key === "locTitle" || key === "title" && !!_this.locTitle && !!_this.title)
|
|
418
|
+
continue;
|
|
419
|
+
_this[key] = innerItem[key];
|
|
419
420
|
}
|
|
420
421
|
}
|
|
421
422
|
if (!!_this.locTitleName) {
|
|
@@ -1286,6 +1287,7 @@ var Base = /** @class */ (function () {
|
|
|
1286
1287
|
*/
|
|
1287
1288
|
this.onItemValuePropertyChanged = this.addEvent();
|
|
1288
1289
|
this.isCreating = true;
|
|
1290
|
+
this.animationAllowedLock = 0;
|
|
1289
1291
|
this.bindingsValue = new Bindings(this);
|
|
1290
1292
|
_jsonobject__WEBPACK_IMPORTED_MODULE_2__["CustomPropertiesCollection"].createProperties(this);
|
|
1291
1293
|
this.onBaseCreating();
|
|
@@ -1660,8 +1662,6 @@ var Base = /** @class */ (function () {
|
|
|
1660
1662
|
* @param val A new value for the property.
|
|
1661
1663
|
*/
|
|
1662
1664
|
Base.prototype.setPropertyValue = function (name, val) {
|
|
1663
|
-
if (name) {
|
|
1664
|
-
}
|
|
1665
1665
|
if (!this.isLoadingFromJson) {
|
|
1666
1666
|
var prop = this.getPropertyByName(name);
|
|
1667
1667
|
if (!!prop) {
|
|
@@ -2206,6 +2206,22 @@ var Base = /** @class */ (function () {
|
|
|
2206
2206
|
if (includeHidden === void 0) { includeHidden = false; }
|
|
2207
2207
|
return [];
|
|
2208
2208
|
};
|
|
2209
|
+
Object.defineProperty(Base.prototype, "animationAllowed", {
|
|
2210
|
+
get: function () {
|
|
2211
|
+
return this.getIsAnimationAllowed();
|
|
2212
|
+
},
|
|
2213
|
+
enumerable: false,
|
|
2214
|
+
configurable: true
|
|
2215
|
+
});
|
|
2216
|
+
Base.prototype.getIsAnimationAllowed = function () {
|
|
2217
|
+
return _settings__WEBPACK_IMPORTED_MODULE_3__["settings"].animationEnabled && this.animationAllowedLock >= 0 && !this.isLoadingFromJson && !this.isDisposed;
|
|
2218
|
+
};
|
|
2219
|
+
Base.prototype.blockAnimations = function () {
|
|
2220
|
+
this.animationAllowedLock--;
|
|
2221
|
+
};
|
|
2222
|
+
Base.prototype.releaseAnimations = function () {
|
|
2223
|
+
this.animationAllowedLock++;
|
|
2224
|
+
};
|
|
2209
2225
|
Base.currentDependencis = undefined;
|
|
2210
2226
|
return Base;
|
|
2211
2227
|
}());
|
|
@@ -3003,7 +3019,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3003
3019
|
/*!***************************************!*\
|
|
3004
3020
|
!*** ./src/entries/react-ui-model.ts ***!
|
|
3005
3021
|
\***************************************/
|
|
3006
|
-
/*! 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, SurveyQuestionMatrixCell, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SvgBundleComponent */
|
|
3022
|
+
/*! 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, SurveyQuestionMatrixCell, 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, QuestionErrorComponent, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SvgBundleComponent */
|
|
3007
3023
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3008
3024
|
|
|
3009
3025
|
"use strict";
|
|
@@ -3251,39 +3267,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3251
3267
|
/* 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");
|
|
3252
3268
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyNavigationButton", function() { return _react_components_survey_actions_survey_nav_button__WEBPACK_IMPORTED_MODULE_70__["SurveyNavigationButton"]; });
|
|
3253
3269
|
|
|
3254
|
-
/* harmony import */ var
|
|
3255
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3270
|
+
/* harmony import */ var _react_components_question_error__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ../react/components/question-error */ "./src/react/components/question-error.tsx");
|
|
3271
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionErrorComponent", function() { return _react_components_question_error__WEBPACK_IMPORTED_MODULE_71__["QuestionErrorComponent"]; });
|
|
3256
3272
|
|
|
3257
|
-
/* harmony import */ var
|
|
3258
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3273
|
+
/* harmony import */ var _react_components_matrix_row__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ../react/components/matrix/row */ "./src/react/components/matrix/row.tsx");
|
|
3274
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixRow", function() { return _react_components_matrix_row__WEBPACK_IMPORTED_MODULE_72__["MatrixRow"]; });
|
|
3259
3275
|
|
|
3260
|
-
/* harmony import */ var
|
|
3261
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3276
|
+
/* harmony import */ var _react_components_skeleton__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ../react/components/skeleton */ "./src/react/components/skeleton.tsx");
|
|
3277
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return _react_components_skeleton__WEBPACK_IMPORTED_MODULE_73__["Skeleton"]; });
|
|
3262
3278
|
|
|
3263
|
-
/* harmony import */ var
|
|
3264
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3279
|
+
/* harmony import */ var _react_components_notifier__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../react/components/notifier */ "./src/react/components/notifier.tsx");
|
|
3280
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotifierComponent", function() { return _react_components_notifier__WEBPACK_IMPORTED_MODULE_74__["NotifierComponent"]; });
|
|
3265
3281
|
|
|
3266
|
-
/* harmony import */ var
|
|
3267
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3282
|
+
/* harmony import */ var _react_components_components_container__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../react/components/components-container */ "./src/react/components/components-container.tsx");
|
|
3283
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentsContainer", function() { return _react_components_components_container__WEBPACK_IMPORTED_MODULE_75__["ComponentsContainer"]; });
|
|
3268
3284
|
|
|
3269
|
-
/* harmony import */ var
|
|
3270
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3285
|
+
/* harmony import */ var _react_components_character_counter__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../react/components/character-counter */ "./src/react/components/character-counter.tsx");
|
|
3286
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CharacterCounterComponent", function() { return _react_components_character_counter__WEBPACK_IMPORTED_MODULE_76__["CharacterCounterComponent"]; });
|
|
3271
3287
|
|
|
3272
|
-
/* harmony
|
|
3288
|
+
/* harmony import */ var _react_components_header__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../react/components/header */ "./src/react/components/header.tsx");
|
|
3289
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderMobile", function() { return _react_components_header__WEBPACK_IMPORTED_MODULE_77__["HeaderMobile"]; });
|
|
3273
3290
|
|
|
3274
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3291
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderCell", function() { return _react_components_header__WEBPACK_IMPORTED_MODULE_77__["HeaderCell"]; });
|
|
3275
3292
|
|
|
3276
|
-
/* harmony
|
|
3277
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringViewer", function() { return _react_string_viewer__WEBPACK_IMPORTED_MODULE_77__["SurveyLocStringViewer"]; });
|
|
3293
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Header", function() { return _react_components_header__WEBPACK_IMPORTED_MODULE_77__["Header"]; });
|
|
3278
3294
|
|
|
3279
|
-
/* harmony import */ var
|
|
3280
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3295
|
+
/* harmony import */ var _react_string_viewer__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../react/string-viewer */ "./src/react/string-viewer.tsx");
|
|
3296
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringViewer", function() { return _react_string_viewer__WEBPACK_IMPORTED_MODULE_78__["SurveyLocStringViewer"]; });
|
|
3281
3297
|
|
|
3282
|
-
/* harmony import */ var
|
|
3283
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3298
|
+
/* harmony import */ var _react_string_editor__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../react/string-editor */ "./src/react/string-editor.tsx");
|
|
3299
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringEditor", function() { return _react_string_editor__WEBPACK_IMPORTED_MODULE_79__["SurveyLocStringEditor"]; });
|
|
3284
3300
|
|
|
3285
|
-
/* harmony import */ var
|
|
3286
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3301
|
+
/* harmony import */ var _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../react/components/loading-indicator */ "./src/react/components/loading-indicator.tsx");
|
|
3302
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_80__["LoadingIndicatorComponent"]; });
|
|
3303
|
+
|
|
3304
|
+
/* harmony import */ var _react_svgbundle__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ../react/svgbundle */ "./src/react/svgbundle.tsx");
|
|
3305
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SvgBundleComponent", function() { return _react_svgbundle__WEBPACK_IMPORTED_MODULE_81__["SvgBundleComponent"]; });
|
|
3287
3306
|
|
|
3288
3307
|
// react
|
|
3289
3308
|
|
|
@@ -3365,6 +3384,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3365
3384
|
|
|
3366
3385
|
|
|
3367
3386
|
|
|
3387
|
+
|
|
3368
3388
|
|
|
3369
3389
|
|
|
3370
3390
|
//Uncomment to include the "date" question type.
|
|
@@ -3377,7 +3397,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3377
3397
|
/*!*********************************!*\
|
|
3378
3398
|
!*** ./src/entries/react-ui.ts ***!
|
|
3379
3399
|
\*********************************/
|
|
3380
|
-
/*! 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, SurveyQuestionMatrixCell, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SvgBundleComponent, SurveyModel, SurveyWindowModel, settings, surveyLocalization, surveyStrings, Model, ResponsivityManager, VerticalResponsivityManager, unwrap */
|
|
3400
|
+
/*! 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, SurveyQuestionMatrixCell, 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, QuestionErrorComponent, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, HeaderMobile, HeaderCell, Header, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent, SvgBundleComponent, SurveyModel, SurveyWindowModel, settings, surveyLocalization, surveyStrings, Model, ResponsivityManager, VerticalResponsivityManager, unwrap */
|
|
3381
3401
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3382
3402
|
|
|
3383
3403
|
"use strict";
|
|
@@ -3555,6 +3575,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3555
3575
|
|
|
3556
3576
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyNavigationButton", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_0__["SurveyNavigationButton"]; });
|
|
3557
3577
|
|
|
3578
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionErrorComponent", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_0__["QuestionErrorComponent"]; });
|
|
3579
|
+
|
|
3558
3580
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixRow", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_0__["MatrixRow"]; });
|
|
3559
3581
|
|
|
3560
3582
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_0__["Skeleton"]; });
|
|
@@ -3608,7 +3630,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3608
3630
|
|
|
3609
3631
|
|
|
3610
3632
|
|
|
3611
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.
|
|
3633
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.10.2", "survey-react-ui");
|
|
3612
3634
|
|
|
3613
3635
|
|
|
3614
3636
|
/***/ }),
|
|
@@ -10526,11 +10548,10 @@ var defaultListCss = {
|
|
|
10526
10548
|
};
|
|
10527
10549
|
var ListModel = /** @class */ (function (_super) {
|
|
10528
10550
|
__extends(ListModel, _super);
|
|
10529
|
-
function ListModel(items, onSelectionChanged, allowSelection, selectedItem,
|
|
10551
|
+
function ListModel(items, onSelectionChanged, allowSelection, selectedItem, elementId) {
|
|
10530
10552
|
var _this = _super.call(this) || this;
|
|
10531
10553
|
_this.onSelectionChanged = onSelectionChanged;
|
|
10532
10554
|
_this.allowSelection = allowSelection;
|
|
10533
|
-
_this.onFilterStringChangedCallback = onFilterStringChangedCallback;
|
|
10534
10555
|
_this.elementId = elementId;
|
|
10535
10556
|
_this.onItemClick = function (itemValue) {
|
|
10536
10557
|
if (_this.isItemDisabled(itemValue)) {
|
|
@@ -11580,6 +11601,7 @@ var englishStrings = {
|
|
|
11580
11601
|
savingData: "The results are being saved on the server...",
|
|
11581
11602
|
savingDataError: "An error occurred and we could not save the results.",
|
|
11582
11603
|
savingDataSuccess: "The results were saved successfully!",
|
|
11604
|
+
savingExceedSize: "Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact a survey owner.",
|
|
11583
11605
|
saveAgainButton: "Try again",
|
|
11584
11606
|
timerMin: "min",
|
|
11585
11607
|
timerSec: "sec",
|
|
@@ -13441,6 +13463,7 @@ var MatrixRow = /** @class */ (function (_super) {
|
|
|
13441
13463
|
__extends(MatrixRow, _super);
|
|
13442
13464
|
function MatrixRow(props) {
|
|
13443
13465
|
var _this = _super.call(this, props) || this;
|
|
13466
|
+
_this.root = react__WEBPACK_IMPORTED_MODULE_0___default.a.createRef();
|
|
13444
13467
|
_this.onPointerDownHandler = function (event) {
|
|
13445
13468
|
_this.parentMatrix.onPointerDown(event.nativeEvent, _this.model.row);
|
|
13446
13469
|
};
|
|
@@ -13463,12 +13486,35 @@ var MatrixRow = /** @class */ (function (_super) {
|
|
|
13463
13486
|
MatrixRow.prototype.getStateElement = function () {
|
|
13464
13487
|
return this.model;
|
|
13465
13488
|
};
|
|
13489
|
+
MatrixRow.prototype.componentDidMount = function () {
|
|
13490
|
+
_super.prototype.componentDidMount.call(this);
|
|
13491
|
+
if (this.root.current) {
|
|
13492
|
+
this.model.setRootElement(this.root.current);
|
|
13493
|
+
}
|
|
13494
|
+
};
|
|
13495
|
+
MatrixRow.prototype.componentWillUnmount = function () {
|
|
13496
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
13497
|
+
this.model.setRootElement(undefined);
|
|
13498
|
+
};
|
|
13499
|
+
MatrixRow.prototype.shouldComponentUpdate = function (nextProps, nextState) {
|
|
13500
|
+
if (!_super.prototype.shouldComponentUpdate.call(this, nextProps, nextState))
|
|
13501
|
+
return false;
|
|
13502
|
+
if (nextProps.model !== this.model) {
|
|
13503
|
+
if (nextProps.element) {
|
|
13504
|
+
nextProps.element.setRootElement(this.root.current);
|
|
13505
|
+
}
|
|
13506
|
+
if (this.model) {
|
|
13507
|
+
this.model.setRootElement(undefined);
|
|
13508
|
+
}
|
|
13509
|
+
}
|
|
13510
|
+
return true;
|
|
13511
|
+
};
|
|
13466
13512
|
MatrixRow.prototype.render = function () {
|
|
13467
13513
|
var _this = this;
|
|
13468
13514
|
var model = this.model;
|
|
13469
13515
|
if (!model.visible)
|
|
13470
13516
|
return null;
|
|
13471
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", { className: model.className, "data-sv-drop-target-matrix-row": model.row && model.row.id, onPointerDown: function (event) { return _this.onPointerDownHandler(event); } }, this.props.children));
|
|
13517
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", { ref: this.root, className: model.className, "data-sv-drop-target-matrix-row": model.row && model.row.id, onPointerDown: function (event) { return _this.onPointerDownHandler(event); } }, this.props.children));
|
|
13472
13518
|
};
|
|
13473
13519
|
return MatrixRow;
|
|
13474
13520
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__["SurveyElementBase"]));
|
|
@@ -13962,7 +14008,6 @@ var PopupContainer = /** @class */ (function (_super) {
|
|
|
13962
14008
|
__extends(PopupContainer, _super);
|
|
13963
14009
|
function PopupContainer(props) {
|
|
13964
14010
|
var _this = _super.call(this, props) || this;
|
|
13965
|
-
_this.prevIsVisible = false;
|
|
13966
14011
|
_this.handleKeydown = function (event) {
|
|
13967
14012
|
_this.model.onKeyDown(event);
|
|
13968
14013
|
};
|
|
@@ -13983,10 +14028,9 @@ var PopupContainer = /** @class */ (function (_super) {
|
|
|
13983
14028
|
};
|
|
13984
14029
|
PopupContainer.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
13985
14030
|
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
13986
|
-
if (!this.
|
|
14031
|
+
if (!this.model.isPositionSet && this.model.isVisible) {
|
|
13987
14032
|
this.model.updateOnShowing();
|
|
13988
14033
|
}
|
|
13989
|
-
this.prevIsVisible = this.model.isVisible;
|
|
13990
14034
|
};
|
|
13991
14035
|
PopupContainer.prototype.renderContainer = function (popupBaseViewModel) {
|
|
13992
14036
|
var _this = this;
|
|
@@ -14079,6 +14123,59 @@ survey_core__WEBPACK_IMPORTED_MODULE_2__["settings"].showModal = showModal;
|
|
|
14079
14123
|
survey_core__WEBPACK_IMPORTED_MODULE_2__["settings"].showDialog = showDialog;
|
|
14080
14124
|
|
|
14081
14125
|
|
|
14126
|
+
/***/ }),
|
|
14127
|
+
|
|
14128
|
+
/***/ "./src/react/components/question-error.tsx":
|
|
14129
|
+
/*!*************************************************!*\
|
|
14130
|
+
!*** ./src/react/components/question-error.tsx ***!
|
|
14131
|
+
\*************************************************/
|
|
14132
|
+
/*! exports provided: QuestionErrorComponent */
|
|
14133
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14134
|
+
|
|
14135
|
+
"use strict";
|
|
14136
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14137
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionErrorComponent", function() { return QuestionErrorComponent; });
|
|
14138
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14139
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14140
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../element-factory */ "./src/react/element-factory.tsx");
|
|
14141
|
+
/* harmony import */ var _string_viewer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../string-viewer */ "./src/react/string-viewer.tsx");
|
|
14142
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
14143
|
+
var extendStatics = function (d, b) {
|
|
14144
|
+
extendStatics = Object.setPrototypeOf ||
|
|
14145
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
14146
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
14147
|
+
return extendStatics(d, b);
|
|
14148
|
+
};
|
|
14149
|
+
return function (d, b) {
|
|
14150
|
+
if (typeof b !== "function" && b !== null)
|
|
14151
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
14152
|
+
extendStatics(d, b);
|
|
14153
|
+
function __() { this.constructor = d; }
|
|
14154
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14155
|
+
};
|
|
14156
|
+
})();
|
|
14157
|
+
|
|
14158
|
+
|
|
14159
|
+
|
|
14160
|
+
var QuestionErrorComponent = /** @class */ (function (_super) {
|
|
14161
|
+
__extends(QuestionErrorComponent, _super);
|
|
14162
|
+
function QuestionErrorComponent() {
|
|
14163
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14164
|
+
}
|
|
14165
|
+
QuestionErrorComponent.prototype.render = function () {
|
|
14166
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null,
|
|
14167
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: this.props.cssClasses.error.icon || undefined, "aria-hidden": "true" }),
|
|
14168
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: this.props.cssClasses.error.item || undefined },
|
|
14169
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_string_viewer__WEBPACK_IMPORTED_MODULE_2__["SurveyLocStringViewer"], { locStr: this.props.error.locText }))));
|
|
14170
|
+
};
|
|
14171
|
+
return QuestionErrorComponent;
|
|
14172
|
+
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
|
14173
|
+
|
|
14174
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_1__["ReactElementFactory"].Instance.registerElement("sv-question-error", function (props) {
|
|
14175
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(QuestionErrorComponent, props);
|
|
14176
|
+
});
|
|
14177
|
+
|
|
14178
|
+
|
|
14082
14179
|
/***/ }),
|
|
14083
14180
|
|
|
14084
14181
|
/***/ "./src/react/components/rating/rating-dropdown-item.tsx":
|
|
@@ -14194,7 +14291,7 @@ var RatingItemSmiley = /** @class */ (function (_super) {
|
|
|
14194
14291
|
RatingItemSmiley.prototype.render = function () {
|
|
14195
14292
|
var _this = this;
|
|
14196
14293
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { onMouseDown: this.handleOnMouseDown, style: this.question.getItemStyle(this.item.itemValue, this.item.highlight), className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); } },
|
|
14197
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.
|
|
14294
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.isDisplayMode, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
|
14198
14295
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { size: "auto", iconName: this.question.getItemSmileyIconName(this.item.itemValue), title: this.item.text })));
|
|
14199
14296
|
};
|
|
14200
14297
|
return RatingItemSmiley;
|
|
@@ -14249,7 +14346,7 @@ var RatingItemStar = /** @class */ (function (_super) {
|
|
|
14249
14346
|
RatingItemStar.prototype.render = function () {
|
|
14250
14347
|
var _this = this;
|
|
14251
14348
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { onMouseDown: this.handleOnMouseDown, className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); } },
|
|
14252
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.
|
|
14349
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.isDisplayMode, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
|
14253
14350
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { className: "sv-star", size: "auto", iconName: this.question.itemStarIcon, title: this.item.text }),
|
|
14254
14351
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { className: "sv-star-2", size: "auto", iconName: this.question.itemStarIconAlt, title: this.item.text })));
|
|
14255
14352
|
};
|
|
@@ -14341,7 +14438,7 @@ var RatingItem = /** @class */ (function (_super) {
|
|
|
14341
14438
|
RatingItem.prototype.render = function () {
|
|
14342
14439
|
var itemText = this.renderLocString(this.item.locText);
|
|
14343
14440
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { onMouseDown: this.handleOnMouseDown, className: this.question.getItemClassByText(this.item.itemValue, this.item.text) },
|
|
14344
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.
|
|
14441
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.isDisplayMode, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
|
14345
14442
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: this.question.cssClasses.itemText }, itemText)));
|
|
14346
14443
|
};
|
|
14347
14444
|
RatingItem.prototype.componentDidMount = function () {
|
|
@@ -15452,7 +15549,7 @@ var SurveyElementHeader = /** @class */ (function (_super) {
|
|
|
15452
15549
|
var description = element.hasDescriptionUnderTitle
|
|
15453
15550
|
? _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__["SurveyElementBase"].renderQuestionDescription(this.element)
|
|
15454
15551
|
: null;
|
|
15455
|
-
var additionalTitleToolbarElement =
|
|
15552
|
+
var additionalTitleToolbarElement = element.hasAdditionalTitleToolbar ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__["SurveyActionBar"], { model: element.additionalTitleToolbar }) : null;
|
|
15456
15553
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: element.cssHeader, onClick: function (e) { return element.clickTitleFunction && element.clickTitleFunction(e.nativeEvent); } },
|
|
15457
15554
|
title,
|
|
15458
15555
|
description,
|
|
@@ -16529,6 +16626,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16529
16626
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
16530
16627
|
/* harmony import */ var _reactSurveyNavigationBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactSurveyNavigationBase */ "./src/react/reactSurveyNavigationBase.tsx");
|
|
16531
16628
|
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
|
|
16629
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
|
16532
16630
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16533
16631
|
var extendStatics = function (d, b) {
|
|
16534
16632
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -16548,6 +16646,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
16548
16646
|
|
|
16549
16647
|
|
|
16550
16648
|
|
|
16649
|
+
|
|
16551
16650
|
var SurveyProgressButtons = /** @class */ (function (_super) {
|
|
16552
16651
|
__extends(SurveyProgressButtons, _super);
|
|
16553
16652
|
function SurveyProgressButtons(props) {
|
|
@@ -16607,12 +16706,13 @@ var SurveyProgressButtons = /** @class */ (function (_super) {
|
|
|
16607
16706
|
};
|
|
16608
16707
|
SurveyProgressButtons.prototype.renderListElement = function (page, index) {
|
|
16609
16708
|
var _this = this;
|
|
16709
|
+
var text = _reactquestion_element__WEBPACK_IMPORTED_MODULE_4__["SurveyElementBase"].renderLocString(page.locNavigationTitle);
|
|
16610
16710
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("li", { key: "listelement" + index, className: this.model.getListElementCss(index), onClick: this.model.isListElementClickable(index)
|
|
16611
16711
|
? function () { return _this.model.clickListElement(page); }
|
|
16612
16712
|
: undefined, "data-page-number": this.model.getItemNumber(page) },
|
|
16613
16713
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsConnector }),
|
|
16614
16714
|
this.state.canShowItemTitles ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
|
|
16615
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageTitle, title: page.renderedNavigationTitle },
|
|
16715
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageTitle, title: page.renderedNavigationTitle }, text),
|
|
16616
16716
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsPageDescription, title: page.navigationDescription }, page.navigationDescription)) : null,
|
|
16617
16717
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsButton },
|
|
16618
16718
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.progressButtonsButtonBackground }),
|
|
@@ -16944,14 +17044,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16944
17044
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
16945
17045
|
/* harmony import */ var _page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./page */ "./src/react/page.tsx");
|
|
16946
17046
|
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
|
16947
|
-
/* harmony import */ var
|
|
16948
|
-
/* harmony import */ var
|
|
16949
|
-
/* harmony import */ var
|
|
16950
|
-
/* harmony import */ var
|
|
16951
|
-
/* harmony import */ var
|
|
16952
|
-
/* harmony import */ var
|
|
16953
|
-
/* harmony import */ var
|
|
16954
|
-
/* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./svgbundle */ "./src/react/svgbundle.tsx");
|
|
17047
|
+
/* harmony import */ var _components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/survey-header/survey-header */ "./src/react/components/survey-header/survey-header.tsx");
|
|
17048
|
+
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/react/reactquestion_factory.tsx");
|
|
17049
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./element-factory */ "./src/react/element-factory.tsx");
|
|
17050
|
+
/* harmony import */ var _components_brand_info__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/brand-info */ "./src/react/components/brand-info.tsx");
|
|
17051
|
+
/* harmony import */ var _components_notifier__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/notifier */ "./src/react/components/notifier.tsx");
|
|
17052
|
+
/* harmony import */ var _components_components_container__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/components-container */ "./src/react/components/components-container.tsx");
|
|
17053
|
+
/* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./svgbundle */ "./src/react/svgbundle.tsx");
|
|
16955
17054
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16956
17055
|
var extendStatics = function (d, b) {
|
|
16957
17056
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -16989,7 +17088,6 @@ var __assign = (undefined && undefined.__assign) || function () {
|
|
|
16989
17088
|
|
|
16990
17089
|
|
|
16991
17090
|
|
|
16992
|
-
|
|
16993
17091
|
var Survey = /** @class */ (function (_super) {
|
|
16994
17092
|
__extends(Survey, _super);
|
|
16995
17093
|
function Survey(props) {
|
|
@@ -17077,7 +17175,7 @@ var Survey = /** @class */ (function (_super) {
|
|
|
17077
17175
|
renderResult = this.renderSurvey();
|
|
17078
17176
|
}
|
|
17079
17177
|
var backgroundImage = !!this.survey.backgroundImage ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.rootBackgroundImage, style: this.survey.backgroundImageStyle }) : null;
|
|
17080
|
-
var header = this.survey.headerView === "basic" ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17178
|
+
var header = this.survey.headerView === "basic" ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_4__["SurveyHeader"], { survey: this.survey }) : null;
|
|
17081
17179
|
var onSubmit = function (event) {
|
|
17082
17180
|
event.preventDefault();
|
|
17083
17181
|
};
|
|
@@ -17088,18 +17186,18 @@ var Survey = /** @class */ (function (_super) {
|
|
|
17088
17186
|
var rootCss = this.survey.getRootCss();
|
|
17089
17187
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
|
17090
17188
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables },
|
|
17091
|
-
this.survey.needRenderIcons ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17189
|
+
this.survey.needRenderIcons ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_svgbundle__WEBPACK_IMPORTED_MODULE_10__["SvgBundleComponent"], null) : null,
|
|
17092
17190
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.survey.wrapperFormCss },
|
|
17093
17191
|
backgroundImage,
|
|
17094
17192
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("form", { onSubmit: onSubmit },
|
|
17095
17193
|
customHeader,
|
|
17096
17194
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.container },
|
|
17097
17195
|
header,
|
|
17098
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17196
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_9__["ComponentsContainer"], { survey: this.survey, container: "header", needRenderWrapper: false }),
|
|
17099
17197
|
renderResult,
|
|
17100
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17101
|
-
this.survey.showBrandInfo ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17102
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17198
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_9__["ComponentsContainer"], { survey: this.survey, container: "footer", needRenderWrapper: false }))),
|
|
17199
|
+
this.survey.showBrandInfo ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_brand_info__WEBPACK_IMPORTED_MODULE_7__["BrandInfo"], null) : null,
|
|
17200
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_notifier__WEBPACK_IMPORTED_MODULE_8__["NotifierComponent"], { notifier: this.survey.notifier }))));
|
|
17103
17201
|
};
|
|
17104
17202
|
Survey.prototype.renderElement = function () {
|
|
17105
17203
|
return this.doRender();
|
|
@@ -17120,7 +17218,7 @@ var Survey = /** @class */ (function (_super) {
|
|
|
17120
17218
|
var htmlValue = { __html: this.survey.processedCompletedHtml };
|
|
17121
17219
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
|
|
17122
17220
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { dangerouslySetInnerHTML: htmlValue, className: this.survey.completedCss }),
|
|
17123
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17221
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_9__["ComponentsContainer"], { survey: this.survey, container: "completePage", needRenderWrapper: false })));
|
|
17124
17222
|
};
|
|
17125
17223
|
Survey.prototype.renderCompletedBefore = function () {
|
|
17126
17224
|
var htmlValue = { __html: this.survey.processedCompletedBeforeHtml };
|
|
@@ -17142,14 +17240,14 @@ var Survey = /** @class */ (function (_super) {
|
|
|
17142
17240
|
style.maxWidth = this.survey.renderedWidth;
|
|
17143
17241
|
}
|
|
17144
17242
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.survey.bodyContainerCss },
|
|
17145
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17243
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_9__["ComponentsContainer"], { survey: this.survey, container: "left" }),
|
|
17146
17244
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "sv-components-column sv-components-column--expandable" },
|
|
17147
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17245
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_9__["ComponentsContainer"], { survey: this.survey, container: "center" }),
|
|
17148
17246
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: pageId, className: className, style: style },
|
|
17149
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17247
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_9__["ComponentsContainer"], { survey: this.survey, container: "contentTop" }),
|
|
17150
17248
|
activePage,
|
|
17151
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17152
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](
|
|
17249
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_9__["ComponentsContainer"], { survey: this.survey, container: "contentBottom" }))),
|
|
17250
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_9__["ComponentsContainer"], { survey: this.survey, container: "right" })));
|
|
17153
17251
|
};
|
|
17154
17252
|
Survey.prototype.renderPage = function (page) {
|
|
17155
17253
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_page__WEBPACK_IMPORTED_MODULE_2__["SurveyPage"], { survey: this.survey, page: page, css: this.css, creator: this }));
|
|
@@ -17230,17 +17328,14 @@ var Survey = /** @class */ (function (_super) {
|
|
|
17230
17328
|
};
|
|
17231
17329
|
//ISurveyCreator
|
|
17232
17330
|
Survey.prototype.createQuestionElement = function (question) {
|
|
17233
|
-
return
|
|
17331
|
+
return _reactquestion_factory__WEBPACK_IMPORTED_MODULE_5__["ReactQuestionFactory"].Instance.createQuestion(question.isDefaultRendering() ? question.getTemplate() : question.getComponentName(), {
|
|
17234
17332
|
question: question,
|
|
17235
17333
|
isDisplayMode: question.isInputReadOnly,
|
|
17236
17334
|
creator: this,
|
|
17237
17335
|
});
|
|
17238
17336
|
};
|
|
17239
|
-
Survey.prototype.renderError = function (key, error, cssClasses) {
|
|
17240
|
-
return
|
|
17241
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.error.icon || undefined, "aria-hidden": "true" }),
|
|
17242
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.error.item || undefined },
|
|
17243
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_string_viewer__WEBPACK_IMPORTED_MODULE_4__["SurveyLocStringViewer"], { locStr: error.locText }))));
|
|
17337
|
+
Survey.prototype.renderError = function (key, error, cssClasses, element) {
|
|
17338
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_6__["ReactElementFactory"].Instance.createElement(this.survey.questionErrorComponent, { key: key, error: error, cssClasses: cssClasses, element: element });
|
|
17244
17339
|
};
|
|
17245
17340
|
Survey.prototype.questionTitleLocation = function () {
|
|
17246
17341
|
return this.survey.questionTitleLocation;
|
|
@@ -17251,7 +17346,7 @@ var Survey = /** @class */ (function (_super) {
|
|
|
17251
17346
|
return Survey;
|
|
17252
17347
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__["SurveyElementBase"]));
|
|
17253
17348
|
|
|
17254
|
-
|
|
17349
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_6__["ReactElementFactory"].Instance.registerElement("survey", function (props) {
|
|
17255
17350
|
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Survey, props);
|
|
17256
17351
|
});
|
|
17257
17352
|
function attachKey2click(element, viewModel, options) {
|
|
@@ -17603,7 +17698,7 @@ var SurveyElementErrors = /** @class */ (function (_super) {
|
|
|
17603
17698
|
var errors = [];
|
|
17604
17699
|
for (var i = 0; i < this.element.errors.length; i++) {
|
|
17605
17700
|
var key = "error" + i;
|
|
17606
|
-
errors.push(this.creator.renderError(key, this.element.errors[i], this.cssClasses));
|
|
17701
|
+
errors.push(this.creator.renderError(key, this.element.errors[i], this.cssClasses, this.element));
|
|
17607
17702
|
}
|
|
17608
17703
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { role: "alert", "aria-live": "polite", className: this.element.cssError, id: this.id }, errors));
|
|
17609
17704
|
};
|
|
@@ -19646,7 +19741,7 @@ var SurveyQuestionMatrixDropdownBase = /** @class */ (function (_super) {
|
|
|
19646
19741
|
SurveyQuestionMatrixDropdownBase.prototype.renderRows = function () {
|
|
19647
19742
|
var cssClasses = this.question.cssClasses;
|
|
19648
19743
|
var rows = [];
|
|
19649
|
-
var renderedRows = this.question.renderedTable.
|
|
19744
|
+
var renderedRows = this.question.renderedTable.renderedRows;
|
|
19650
19745
|
for (var i = 0; i < renderedRows.length; i++) {
|
|
19651
19746
|
rows.push(this.renderRow(renderedRows[i].id, renderedRows[i], cssClasses));
|
|
19652
19747
|
}
|
|
@@ -20231,19 +20326,11 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
|
|
|
20231
20326
|
});
|
|
20232
20327
|
};
|
|
20233
20328
|
SurveyQuestionPanelDynamic.prototype.renderElement = function () {
|
|
20329
|
+
var _this = this;
|
|
20234
20330
|
var panels = [];
|
|
20235
|
-
|
|
20236
|
-
|
|
20237
|
-
|
|
20238
|
-
panels.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionPanelDynamicItem, { key: panel.id, element: panel, question: this.question, index: i, cssClasses: this.question.cssClasses, isDisplayMode: this.isDisplayMode, creator: this.creator }));
|
|
20239
|
-
}
|
|
20240
|
-
}
|
|
20241
|
-
else {
|
|
20242
|
-
if (this.question.currentPanel != null) {
|
|
20243
|
-
var panel = this.question.currentPanel;
|
|
20244
|
-
panels.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionPanelDynamicItem, { key: this.question.currentIndex, element: panel, question: this.question, index: this.question.currentIndex, cssClasses: this.question.cssClasses, isDisplayMode: this.isDisplayMode, creator: this.creator }));
|
|
20245
|
-
}
|
|
20246
|
-
}
|
|
20331
|
+
this.question.renderedPanels.forEach(function (panel, index) {
|
|
20332
|
+
panels.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionPanelDynamicItem, { key: panel.id, element: panel, question: _this.question, index: index, cssClasses: _this.question.cssClasses, isDisplayMode: _this.isDisplayMode, creator: _this.creator }));
|
|
20333
|
+
});
|
|
20247
20334
|
var btnAdd = this.question.isRenderModeList && this.question["showLegacyNavigation"]
|
|
20248
20335
|
? this.renderAddRowButton()
|
|
20249
20336
|
: null;
|
|
@@ -20253,13 +20340,12 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
|
|
|
20253
20340
|
var navBottom = this.question.isProgressBottomShowing
|
|
20254
20341
|
? this.renderNavigator()
|
|
20255
20342
|
: null;
|
|
20256
|
-
var style = {};
|
|
20257
20343
|
var navV2 = this.renderNavigatorV2();
|
|
20258
20344
|
var noEntriesPlaceholder = this.renderPlaceholder();
|
|
20259
20345
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.root },
|
|
20260
20346
|
noEntriesPlaceholder,
|
|
20261
20347
|
navTop,
|
|
20262
|
-
panels,
|
|
20348
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.panelsContainer }, panels),
|
|
20263
20349
|
navBottom,
|
|
20264
20350
|
btnAdd,
|
|
20265
20351
|
navV2));
|
|
@@ -20708,6 +20794,10 @@ var SurveyQuestionRanking = /** @class */ (function (_super) {
|
|
|
20708
20794
|
event.persist();
|
|
20709
20795
|
//event.preventDefault();
|
|
20710
20796
|
_this.question.handlePointerDown.call(_this.question, event, item, event.currentTarget);
|
|
20797
|
+
}, function (event) {
|
|
20798
|
+
event.persist();
|
|
20799
|
+
//event.preventDefault();
|
|
20800
|
+
_this.question.handlePointerUp.call(_this.question, event, item, event.currentTarget);
|
|
20711
20801
|
}, this_1.question.cssClasses, this_1.question.getItemClass(item), this_1.question, unrankedItem));
|
|
20712
20802
|
};
|
|
20713
20803
|
var this_1 = this;
|
|
@@ -20716,13 +20806,13 @@ var SurveyQuestionRanking = /** @class */ (function (_super) {
|
|
|
20716
20806
|
}
|
|
20717
20807
|
return items;
|
|
20718
20808
|
};
|
|
20719
|
-
SurveyQuestionRanking.prototype.renderItem = function (item, i, handleKeydown, handlePointerDown, cssClasses, itemClass, question, unrankedItem) {
|
|
20809
|
+
SurveyQuestionRanking.prototype.renderItem = function (item, i, handleKeydown, handlePointerDown, handlePointerUp, cssClasses, itemClass, question, unrankedItem) {
|
|
20720
20810
|
var key = "id-" + item.renderedId;
|
|
20721
20811
|
var text = this.renderLocString(item.locText);
|
|
20722
20812
|
var index = i;
|
|
20723
20813
|
var indexText = this.question.getNumberByIndex(index);
|
|
20724
20814
|
var tabIndex = this.question.getItemTabIndex(item);
|
|
20725
|
-
var renderedItem = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionRankingItem, { key: item.value, text: text, index: index, indexText: indexText, itemTabIndex: tabIndex, handleKeydown: handleKeydown, handlePointerDown: handlePointerDown, cssClasses: cssClasses, itemClass: itemClass, question: question, unrankedItem: unrankedItem, item: item }));
|
|
20815
|
+
var renderedItem = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionRankingItem, { key: item.value, text: text, index: index, indexText: indexText, itemTabIndex: tabIndex, handleKeydown: handleKeydown, handlePointerDown: handlePointerDown, handlePointerUp: handlePointerUp, cssClasses: cssClasses, itemClass: itemClass, question: question, unrankedItem: unrankedItem, item: item }));
|
|
20726
20816
|
var survey = this.question.survey;
|
|
20727
20817
|
var wrappedItem = null;
|
|
20728
20818
|
if (!!survey) {
|
|
@@ -20773,6 +20863,13 @@ var SurveyQuestionRankingItem = /** @class */ (function (_super) {
|
|
|
20773
20863
|
enumerable: false,
|
|
20774
20864
|
configurable: true
|
|
20775
20865
|
});
|
|
20866
|
+
Object.defineProperty(SurveyQuestionRankingItem.prototype, "handlePointerUp", {
|
|
20867
|
+
get: function () {
|
|
20868
|
+
return this.props.handlePointerUp;
|
|
20869
|
+
},
|
|
20870
|
+
enumerable: false,
|
|
20871
|
+
configurable: true
|
|
20872
|
+
});
|
|
20776
20873
|
Object.defineProperty(SurveyQuestionRankingItem.prototype, "cssClasses", {
|
|
20777
20874
|
get: function () {
|
|
20778
20875
|
return this.props.cssClasses;
|
|
@@ -20820,7 +20917,7 @@ var SurveyQuestionRankingItem = /** @class */ (function (_super) {
|
|
|
20820
20917
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("use", { xlinkHref: this.question.dashSvgIcon })));
|
|
20821
20918
|
};
|
|
20822
20919
|
SurveyQuestionRankingItem.prototype.renderElement = function () {
|
|
20823
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { tabIndex: this.itemTabIndex, className: this.itemClass, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, "data-sv-drop-target-ranking-item": this.index },
|
|
20920
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { tabIndex: this.itemTabIndex, className: this.itemClass, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onPointerUp: this.handlePointerUp, "data-sv-drop-target-ranking-item": this.index },
|
|
20824
20921
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { tabIndex: -1, style: { outline: "none" } },
|
|
20825
20922
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.cssClasses.itemGhostNode }),
|
|
20826
20923
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.cssClasses.itemContent },
|
|
@@ -22922,7 +23019,6 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
|
22922
23019
|
}
|
|
22923
23020
|
}
|
|
22924
23021
|
}, function () { return _this.renderedIsExpanded; });
|
|
22925
|
-
_this.animationAllowedValue = true;
|
|
22926
23022
|
_this.name = name;
|
|
22927
23023
|
_this.createNewArray("errors");
|
|
22928
23024
|
_this.createNewArray("titleActions");
|
|
@@ -22958,7 +23054,7 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
|
22958
23054
|
var el = root.getElementById(elementId);
|
|
22959
23055
|
return SurveyElement.ScrollElementToViewCore(el, false, scrollIfVisible);
|
|
22960
23056
|
};
|
|
22961
|
-
SurveyElement.ScrollElementToViewCore = function (el, checkLeft, scrollIfVisible) {
|
|
23057
|
+
SurveyElement.ScrollElementToViewCore = function (el, checkLeft, scrollIfVisible, scrollIntoViewOptions) {
|
|
22962
23058
|
if (!el || !el.scrollIntoView)
|
|
22963
23059
|
return false;
|
|
22964
23060
|
var elTop = scrollIfVisible ? -1 : el.getBoundingClientRect().top;
|
|
@@ -22977,7 +23073,7 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
|
22977
23073
|
}
|
|
22978
23074
|
}
|
|
22979
23075
|
if (needScroll) {
|
|
22980
|
-
el.scrollIntoView();
|
|
23076
|
+
el.scrollIntoView(scrollIntoViewOptions);
|
|
22981
23077
|
}
|
|
22982
23078
|
return needScroll;
|
|
22983
23079
|
};
|
|
@@ -23961,6 +24057,13 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
|
23961
24057
|
this.toggleState();
|
|
23962
24058
|
}
|
|
23963
24059
|
};
|
|
24060
|
+
Object.defineProperty(SurveyElement.prototype, "hasAdditionalTitleToolbar", {
|
|
24061
|
+
get: function () {
|
|
24062
|
+
return false;
|
|
24063
|
+
},
|
|
24064
|
+
enumerable: false,
|
|
24065
|
+
configurable: true
|
|
24066
|
+
});
|
|
23964
24067
|
Object.defineProperty(SurveyElement.prototype, "additionalTitleToolbar", {
|
|
23965
24068
|
get: function () {
|
|
23966
24069
|
return this.getAdditionalTitleToolbar();
|
|
@@ -23986,18 +24089,25 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
|
23986
24089
|
};
|
|
23987
24090
|
Object.defineProperty(SurveyElement.prototype, "isDisabledStyle", {
|
|
23988
24091
|
get: function () {
|
|
23989
|
-
return
|
|
24092
|
+
return this.getIsDisableAndReadOnlyStyles(false)[1];
|
|
23990
24093
|
},
|
|
23991
24094
|
enumerable: false,
|
|
23992
24095
|
configurable: true
|
|
23993
24096
|
});
|
|
23994
24097
|
Object.defineProperty(SurveyElement.prototype, "isReadOnlyStyle", {
|
|
23995
24098
|
get: function () {
|
|
23996
|
-
return this.
|
|
24099
|
+
return this.getIsDisableAndReadOnlyStyles(false)[0];
|
|
23997
24100
|
},
|
|
23998
24101
|
enumerable: false,
|
|
23999
24102
|
configurable: true
|
|
24000
24103
|
});
|
|
24104
|
+
SurveyElement.prototype.getIsDisableAndReadOnlyStyles = function (itemReadOnly) {
|
|
24105
|
+
var isPreview = this.isPreviewStyle;
|
|
24106
|
+
var isReadOnly = itemReadOnly || this.isReadOnly;
|
|
24107
|
+
var isReadOnlyStyle = isReadOnly && !isPreview;
|
|
24108
|
+
var isDisableStyle = !this.isDefaultV2Theme && (isReadOnly || isPreview);
|
|
24109
|
+
return [isReadOnlyStyle, isDisableStyle];
|
|
24110
|
+
};
|
|
24001
24111
|
Object.defineProperty(SurveyElement.prototype, "isPreviewStyle", {
|
|
24002
24112
|
get: function () {
|
|
24003
24113
|
return !!this.survey && this.survey.state === "preview";
|
|
@@ -24064,12 +24174,12 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
|
24064
24174
|
if (cssClasses.content) {
|
|
24065
24175
|
var selector = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_8__["classesToSelector"])(cssClasses.content);
|
|
24066
24176
|
if (selector) {
|
|
24067
|
-
return (_a = _this.getWrapperElement()) === null || _a === void 0 ? void 0 : _a.querySelector(selector);
|
|
24177
|
+
return (_a = _this.getWrapperElement()) === null || _a === void 0 ? void 0 : _a.querySelector(":scope " + selector);
|
|
24068
24178
|
}
|
|
24069
24179
|
}
|
|
24070
24180
|
return undefined;
|
|
24071
24181
|
},
|
|
24072
|
-
isAnimationEnabled: function () { return
|
|
24182
|
+
isAnimationEnabled: function () { return _this.animationAllowed && !_this.isDesignMode; }
|
|
24073
24183
|
};
|
|
24074
24184
|
};
|
|
24075
24185
|
Object.defineProperty(SurveyElement.prototype, "renderedIsExpanded", {
|
|
@@ -24082,16 +24192,9 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
|
24082
24192
|
enumerable: false,
|
|
24083
24193
|
configurable: true
|
|
24084
24194
|
});
|
|
24085
|
-
|
|
24086
|
-
|
|
24087
|
-
|
|
24088
|
-
},
|
|
24089
|
-
set: function (val) {
|
|
24090
|
-
this.animationAllowedValue = val;
|
|
24091
|
-
},
|
|
24092
|
-
enumerable: false,
|
|
24093
|
-
configurable: true
|
|
24094
|
-
});
|
|
24195
|
+
SurveyElement.prototype.getIsAnimationAllowed = function () {
|
|
24196
|
+
return _super.prototype.getIsAnimationAllowed.call(this) && !!this.survey;
|
|
24197
|
+
};
|
|
24095
24198
|
SurveyElement.prototype.dispose = function () {
|
|
24096
24199
|
_super.prototype.dispose.call(this);
|
|
24097
24200
|
if (this.titleToolbarValue) {
|
|
@@ -24240,7 +24343,7 @@ surveyLocalization.localeNames["en"] = "english";
|
|
|
24240
24343
|
/*!********************************!*\
|
|
24241
24344
|
!*** ./src/utils/animation.ts ***!
|
|
24242
24345
|
\********************************/
|
|
24243
|
-
/*! exports provided: AnimationUtils, AnimationPropertyUtils, AnimationGroupUtils, AnimationBoolean, AnimationGroup */
|
|
24346
|
+
/*! exports provided: AnimationUtils, AnimationPropertyUtils, AnimationGroupUtils, AnimationProperty, AnimationBoolean, AnimationGroup, AnimationTab */
|
|
24244
24347
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
24245
24348
|
|
|
24246
24349
|
"use strict";
|
|
@@ -24248,8 +24351,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24248
24351
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationUtils", function() { return AnimationUtils; });
|
|
24249
24352
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationPropertyUtils", function() { return AnimationPropertyUtils; });
|
|
24250
24353
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationGroupUtils", function() { return AnimationGroupUtils; });
|
|
24354
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationProperty", function() { return AnimationProperty; });
|
|
24251
24355
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationBoolean", function() { return AnimationBoolean; });
|
|
24252
24356
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationGroup", function() { return AnimationGroup; });
|
|
24357
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationTab", function() { return AnimationTab; });
|
|
24253
24358
|
/* harmony import */ var _global_variables_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../global_variables_utils */ "./src/global_variables_utils.ts");
|
|
24254
24359
|
/* harmony import */ var _taskmanager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./taskmanager */ "./src/utils/taskmanager.ts");
|
|
24255
24360
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -24278,6 +24383,9 @@ var AnimationUtils = /** @class */ (function () {
|
|
|
24278
24383
|
return 0;
|
|
24279
24384
|
return Number(value.slice(0, -1).replace(",", ".")) * 1000;
|
|
24280
24385
|
};
|
|
24386
|
+
AnimationUtils.prototype.reflow = function (element) {
|
|
24387
|
+
return element.offsetHeight;
|
|
24388
|
+
};
|
|
24281
24389
|
AnimationUtils.prototype.getAnimationsCount = function (element) {
|
|
24282
24390
|
var animationName = "";
|
|
24283
24391
|
if (getComputedStyle) {
|
|
@@ -24295,6 +24403,14 @@ var AnimationUtils = /** @class */ (function () {
|
|
|
24295
24403
|
}
|
|
24296
24404
|
return duration;
|
|
24297
24405
|
};
|
|
24406
|
+
AnimationUtils.prototype.addCancelCallback = function (callback) {
|
|
24407
|
+
this.cancelQueue.push(callback);
|
|
24408
|
+
};
|
|
24409
|
+
AnimationUtils.prototype.removeCancelCallback = function (callback) {
|
|
24410
|
+
if (this.cancelQueue.indexOf(callback) >= 0) {
|
|
24411
|
+
this.cancelQueue.splice(this.cancelQueue.indexOf(callback), 1);
|
|
24412
|
+
}
|
|
24413
|
+
};
|
|
24298
24414
|
AnimationUtils.prototype.onAnimationEnd = function (element, callback, options) {
|
|
24299
24415
|
var _this = this;
|
|
24300
24416
|
var cancelTimeout;
|
|
@@ -24304,7 +24420,7 @@ var AnimationUtils = /** @class */ (function () {
|
|
|
24304
24420
|
options.onAfterRunAnimation && options.onAfterRunAnimation(element);
|
|
24305
24421
|
callback(isCancel);
|
|
24306
24422
|
clearTimeout(cancelTimeout);
|
|
24307
|
-
_this.
|
|
24423
|
+
_this.removeCancelCallback(onEndCallback);
|
|
24308
24424
|
element.removeEventListener("animationend", onAnimationEndCallback);
|
|
24309
24425
|
};
|
|
24310
24426
|
var onAnimationEndCallback = function (event) {
|
|
@@ -24314,7 +24430,7 @@ var AnimationUtils = /** @class */ (function () {
|
|
|
24314
24430
|
};
|
|
24315
24431
|
if (animationsCount > 0) {
|
|
24316
24432
|
element.addEventListener("animationend", onAnimationEndCallback);
|
|
24317
|
-
this.
|
|
24433
|
+
this.addCancelCallback(onEndCallback);
|
|
24318
24434
|
cancelTimeout = setTimeout(function () {
|
|
24319
24435
|
onEndCallback(false);
|
|
24320
24436
|
}, this.getAnimationDuration(element) + 10);
|
|
@@ -24324,40 +24440,51 @@ var AnimationUtils = /** @class */ (function () {
|
|
|
24324
24440
|
}
|
|
24325
24441
|
};
|
|
24326
24442
|
AnimationUtils.prototype.beforeAnimationRun = function (element, options) {
|
|
24327
|
-
if (element) {
|
|
24443
|
+
if (element && options) {
|
|
24328
24444
|
options.onBeforeRunAnimation && options.onBeforeRunAnimation(element);
|
|
24329
24445
|
}
|
|
24330
24446
|
};
|
|
24331
|
-
AnimationUtils.prototype.
|
|
24447
|
+
AnimationUtils.prototype.runAnimation = function (element, options, callback) {
|
|
24332
24448
|
if (element && options.cssClass) {
|
|
24449
|
+
this.reflow(element);
|
|
24333
24450
|
element.classList.add(options.cssClass);
|
|
24334
|
-
|
|
24451
|
+
this.onAnimationEnd(element, callback, options);
|
|
24452
|
+
}
|
|
24453
|
+
else {
|
|
24454
|
+
callback(true);
|
|
24455
|
+
}
|
|
24456
|
+
};
|
|
24457
|
+
AnimationUtils.prototype.clearHtmlElement = function (element, options) {
|
|
24458
|
+
if (element && options.cssClass) {
|
|
24459
|
+
element.classList.remove(options.cssClass);
|
|
24460
|
+
}
|
|
24461
|
+
};
|
|
24462
|
+
AnimationUtils.prototype.onNextRender = function (callback, runEarly, isCancel) {
|
|
24463
|
+
var _this = this;
|
|
24464
|
+
if (isCancel === void 0) { isCancel = false; }
|
|
24465
|
+
if (!isCancel && _global_variables_utils__WEBPACK_IMPORTED_MODULE_0__["DomWindowHelper"].isAvailable()) {
|
|
24466
|
+
var cancelCallback_1 = function () {
|
|
24335
24467
|
callback();
|
|
24336
|
-
|
|
24337
|
-
|
|
24468
|
+
cancelAnimationFrame(latestRAF_1);
|
|
24469
|
+
};
|
|
24470
|
+
var latestRAF_1 = _global_variables_utils__WEBPACK_IMPORTED_MODULE_0__["DomWindowHelper"].requestAnimationFrame(function () {
|
|
24471
|
+
if (runEarly && runEarly()) {
|
|
24472
|
+
callback();
|
|
24473
|
+
_this.removeCancelCallback(cancelCallback_1);
|
|
24338
24474
|
}
|
|
24339
24475
|
else {
|
|
24340
|
-
_global_variables_utils__WEBPACK_IMPORTED_MODULE_0__["DomWindowHelper"].requestAnimationFrame(function () {
|
|
24341
|
-
|
|
24342
|
-
|
|
24343
|
-
});
|
|
24476
|
+
latestRAF_1 = _global_variables_utils__WEBPACK_IMPORTED_MODULE_0__["DomWindowHelper"].requestAnimationFrame(function () {
|
|
24477
|
+
callback();
|
|
24478
|
+
_this.removeCancelCallback(cancelCallback_1);
|
|
24344
24479
|
});
|
|
24345
24480
|
}
|
|
24346
|
-
};
|
|
24347
|
-
this.
|
|
24481
|
+
});
|
|
24482
|
+
this.addCancelCallback(cancelCallback_1);
|
|
24348
24483
|
}
|
|
24349
24484
|
else {
|
|
24350
24485
|
callback();
|
|
24351
24486
|
}
|
|
24352
24487
|
};
|
|
24353
|
-
AnimationUtils.prototype.runEnterAnimation = function (element, options) {
|
|
24354
|
-
if (element && options.cssClass) {
|
|
24355
|
-
element.classList.add(options.cssClass);
|
|
24356
|
-
this.onAnimationEnd(element, function () {
|
|
24357
|
-
element.classList.remove(options.cssClass);
|
|
24358
|
-
}, options);
|
|
24359
|
-
}
|
|
24360
|
-
};
|
|
24361
24488
|
AnimationUtils.prototype.cancel = function () {
|
|
24362
24489
|
var cancelQueue = [].concat(this.cancelQueue);
|
|
24363
24490
|
cancelQueue.forEach(function (callback) { return callback(); });
|
|
@@ -24371,26 +24498,28 @@ var AnimationPropertyUtils = /** @class */ (function (_super) {
|
|
|
24371
24498
|
function AnimationPropertyUtils() {
|
|
24372
24499
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
24373
24500
|
}
|
|
24374
|
-
AnimationPropertyUtils.prototype.onEnter = function (
|
|
24501
|
+
AnimationPropertyUtils.prototype.onEnter = function (options) {
|
|
24375
24502
|
var _this = this;
|
|
24376
|
-
|
|
24377
|
-
var
|
|
24378
|
-
|
|
24379
|
-
_this.
|
|
24380
|
-
|
|
24381
|
-
|
|
24382
|
-
|
|
24383
|
-
|
|
24384
|
-
}
|
|
24385
|
-
else {
|
|
24386
|
-
_global_variables_utils__WEBPACK_IMPORTED_MODULE_0__["DomWindowHelper"].requestAnimationFrame(callback);
|
|
24387
|
-
}
|
|
24388
|
-
});
|
|
24503
|
+
this.onNextRender(function () {
|
|
24504
|
+
var htmlElement = options.getAnimatedElement();
|
|
24505
|
+
var enterOptions = options.getEnterOptions();
|
|
24506
|
+
_this.beforeAnimationRun(htmlElement, enterOptions);
|
|
24507
|
+
_this.runAnimation(htmlElement, enterOptions, function () {
|
|
24508
|
+
_this.clearHtmlElement(htmlElement, enterOptions);
|
|
24509
|
+
});
|
|
24510
|
+
}, function () { return !!options.getAnimatedElement(); });
|
|
24389
24511
|
};
|
|
24390
|
-
AnimationPropertyUtils.prototype.onLeave = function (
|
|
24391
|
-
var
|
|
24392
|
-
|
|
24393
|
-
|
|
24512
|
+
AnimationPropertyUtils.prototype.onLeave = function (options, callback) {
|
|
24513
|
+
var _this = this;
|
|
24514
|
+
var htmlElement = options.getAnimatedElement();
|
|
24515
|
+
var leaveOptions = options.getLeaveOptions();
|
|
24516
|
+
this.beforeAnimationRun(htmlElement, leaveOptions);
|
|
24517
|
+
this.runAnimation(htmlElement, leaveOptions, function (isCancel) {
|
|
24518
|
+
callback();
|
|
24519
|
+
_this.onNextRender(function () {
|
|
24520
|
+
_this.clearHtmlElement(htmlElement, leaveOptions);
|
|
24521
|
+
}, undefined, isCancel);
|
|
24522
|
+
});
|
|
24394
24523
|
};
|
|
24395
24524
|
return AnimationPropertyUtils;
|
|
24396
24525
|
}(AnimationUtils));
|
|
@@ -24400,41 +24529,40 @@ var AnimationGroupUtils = /** @class */ (function (_super) {
|
|
|
24400
24529
|
function AnimationGroupUtils() {
|
|
24401
24530
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
24402
24531
|
}
|
|
24403
|
-
AnimationGroupUtils.prototype.
|
|
24532
|
+
AnimationGroupUtils.prototype.runGroupAnimation = function (options, addedElements, removedElements, callback) {
|
|
24404
24533
|
var _this = this;
|
|
24405
|
-
|
|
24406
|
-
return;
|
|
24407
|
-
|
|
24408
|
-
var
|
|
24409
|
-
|
|
24410
|
-
|
|
24411
|
-
|
|
24412
|
-
|
|
24413
|
-
|
|
24414
|
-
|
|
24534
|
+
this.onNextRender(function () {
|
|
24535
|
+
var addedHtmlElements = addedElements.map(function (el) { return options.getAnimatedElement(el); });
|
|
24536
|
+
var enterOptions = addedElements.map(function (el) { return options.getEnterOptions(el); });
|
|
24537
|
+
var removedHtmlElements = removedElements.map(function (el) { return options.getAnimatedElement(el); });
|
|
24538
|
+
var leaveOptions = removedElements.map(function (el) { return options.getLeaveOptions(el); });
|
|
24539
|
+
addedElements.forEach(function (_, i) {
|
|
24540
|
+
_this.beforeAnimationRun(addedHtmlElements[i], enterOptions[i]);
|
|
24541
|
+
});
|
|
24542
|
+
removedElements.forEach(function (_, i) {
|
|
24543
|
+
_this.beforeAnimationRun(removedHtmlElements[i], leaveOptions[i]);
|
|
24544
|
+
});
|
|
24545
|
+
var counter = addedElements.length + removedElements.length;
|
|
24546
|
+
var onAnimationEndCallback = function (isCancel) {
|
|
24547
|
+
if (--counter <= 0) {
|
|
24548
|
+
callback && callback();
|
|
24549
|
+
_this.onNextRender(function () {
|
|
24550
|
+
addedElements.forEach(function (_, i) {
|
|
24551
|
+
_this.clearHtmlElement(addedHtmlElements[i], enterOptions[i]);
|
|
24552
|
+
});
|
|
24553
|
+
removedElements.forEach(function (_, i) {
|
|
24554
|
+
_this.clearHtmlElement(removedHtmlElements[i], leaveOptions[i]);
|
|
24555
|
+
});
|
|
24556
|
+
}, undefined, isCancel);
|
|
24557
|
+
}
|
|
24415
24558
|
};
|
|
24416
|
-
|
|
24417
|
-
|
|
24418
|
-
}
|
|
24419
|
-
|
|
24420
|
-
|
|
24421
|
-
}
|
|
24422
|
-
});
|
|
24423
|
-
};
|
|
24424
|
-
AnimationGroupUtils.prototype.onLeave = function (getElement, callback, getOptions, elements) {
|
|
24425
|
-
var _this = this;
|
|
24426
|
-
elements.forEach(function (el) {
|
|
24427
|
-
_this.beforeAnimationRun(getElement(el), getOptions(el));
|
|
24428
|
-
});
|
|
24429
|
-
var counter = elements.length;
|
|
24430
|
-
var onEndCallback = function () {
|
|
24431
|
-
if (--counter <= 0) {
|
|
24432
|
-
callback();
|
|
24433
|
-
}
|
|
24434
|
-
};
|
|
24435
|
-
elements.forEach(function (el) {
|
|
24436
|
-
_this.runLeaveAnimation(getElement(el), getOptions(el), onEndCallback);
|
|
24437
|
-
});
|
|
24559
|
+
addedElements.forEach(function (_, i) {
|
|
24560
|
+
_this.runAnimation(addedHtmlElements[i], enterOptions[i], onAnimationEndCallback);
|
|
24561
|
+
});
|
|
24562
|
+
removedElements.forEach(function (_, i) {
|
|
24563
|
+
_this.runAnimation(removedHtmlElements[i], leaveOptions[i], onAnimationEndCallback);
|
|
24564
|
+
});
|
|
24565
|
+
}, function () { return addedElements.length == 0 || addedElements.some(function (el) { return !!options.getAnimatedElement(el); }); });
|
|
24438
24566
|
};
|
|
24439
24567
|
return AnimationGroupUtils;
|
|
24440
24568
|
}(AnimationUtils));
|
|
@@ -24455,6 +24583,7 @@ var AnimationProperty = /** @class */ (function () {
|
|
|
24455
24583
|
this._debouncedSync.run(newValue);
|
|
24456
24584
|
}
|
|
24457
24585
|
else {
|
|
24586
|
+
this.cancel();
|
|
24458
24587
|
this.update(newValue);
|
|
24459
24588
|
}
|
|
24460
24589
|
};
|
|
@@ -24464,6 +24593,7 @@ var AnimationProperty = /** @class */ (function () {
|
|
|
24464
24593
|
};
|
|
24465
24594
|
return AnimationProperty;
|
|
24466
24595
|
}());
|
|
24596
|
+
|
|
24467
24597
|
var AnimationBoolean = /** @class */ (function (_super) {
|
|
24468
24598
|
__extends(AnimationBoolean, _super);
|
|
24469
24599
|
function AnimationBoolean() {
|
|
@@ -24476,12 +24606,12 @@ var AnimationBoolean = /** @class */ (function (_super) {
|
|
|
24476
24606
|
if (newValue !== this.getCurrentValue()) {
|
|
24477
24607
|
if (newValue) {
|
|
24478
24608
|
this.update(newValue);
|
|
24479
|
-
this.animation.onEnter(
|
|
24609
|
+
this.animation.onEnter(this.animationOptions);
|
|
24480
24610
|
}
|
|
24481
24611
|
else {
|
|
24482
|
-
this.animation.onLeave(
|
|
24612
|
+
this.animation.onLeave(this.animationOptions, function () {
|
|
24483
24613
|
_this.update(newValue);
|
|
24484
|
-
}
|
|
24614
|
+
});
|
|
24485
24615
|
}
|
|
24486
24616
|
}
|
|
24487
24617
|
else {
|
|
@@ -24503,19 +24633,42 @@ var AnimationGroup = /** @class */ (function (_super) {
|
|
|
24503
24633
|
var oldValue = this.getCurrentValue();
|
|
24504
24634
|
var itemsToAdd = newValue.filter(function (el) { return oldValue.indexOf(el) < 0; });
|
|
24505
24635
|
var deletedItems = oldValue.filter(function (el) { return newValue.indexOf(el) < 0; });
|
|
24506
|
-
this.animation.onEnter(function (el) { return _this.animationOptions.getAnimatedElement(el); }, function (el) { return _this.animationOptions.getEnterOptions(el); }, itemsToAdd);
|
|
24507
24636
|
if (itemsToAdd.length == 0 && (deletedItems === null || deletedItems === void 0 ? void 0 : deletedItems.length) > 0) {
|
|
24508
|
-
this.animation.
|
|
24509
|
-
_this.update(newValue);
|
|
24510
|
-
}, function (el) { return _this.animationOptions.getLeaveOptions(el); }, deletedItems);
|
|
24637
|
+
this.animation.runGroupAnimation(this.animationOptions, [], deletedItems, function () { return _this.update(newValue); });
|
|
24511
24638
|
}
|
|
24512
24639
|
else {
|
|
24513
24640
|
this.update(newValue);
|
|
24641
|
+
this.animation.runGroupAnimation(this.animationOptions, itemsToAdd, []);
|
|
24514
24642
|
}
|
|
24515
24643
|
};
|
|
24516
24644
|
return AnimationGroup;
|
|
24517
24645
|
}(AnimationProperty));
|
|
24518
24646
|
|
|
24647
|
+
var AnimationTab = /** @class */ (function (_super) {
|
|
24648
|
+
__extends(AnimationTab, _super);
|
|
24649
|
+
function AnimationTab(animationOptions, update, getCurrentValue, mergeValues) {
|
|
24650
|
+
var _this = _super.call(this, animationOptions, update, getCurrentValue) || this;
|
|
24651
|
+
_this.mergeValues = mergeValues;
|
|
24652
|
+
_this.animation = new AnimationGroupUtils();
|
|
24653
|
+
return _this;
|
|
24654
|
+
}
|
|
24655
|
+
AnimationTab.prototype._sync = function (newValue) {
|
|
24656
|
+
var _this = this;
|
|
24657
|
+
var oldValue = [].concat(this.getCurrentValue());
|
|
24658
|
+
if (oldValue[0] !== newValue[0]) {
|
|
24659
|
+
var tempValue = !!this.mergeValues ? this.mergeValues(newValue, oldValue) : [].concat(oldValue, newValue);
|
|
24660
|
+
this.update(tempValue, true);
|
|
24661
|
+
this.animation.runGroupAnimation(this.animationOptions, newValue, oldValue, function () {
|
|
24662
|
+
_this.update(newValue);
|
|
24663
|
+
});
|
|
24664
|
+
}
|
|
24665
|
+
else {
|
|
24666
|
+
this.update(newValue);
|
|
24667
|
+
}
|
|
24668
|
+
};
|
|
24669
|
+
return AnimationTab;
|
|
24670
|
+
}(AnimationProperty));
|
|
24671
|
+
|
|
24519
24672
|
|
|
24520
24673
|
|
|
24521
24674
|
/***/ }),
|