survey-react-ui 1.9.113 → 1.9.114
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 +2 -2
- package/survey-react-ui.js +190 -129
- 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 -1
- package/typings/react/components/cover.d.ts +17 -17
- package/typings/react/components/header.d.ts +22 -0
- package/typings/react/reactquestion_ranking.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.114",
|
|
4
4
|
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"typings": "survey-react-ui.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"survey-core": "1.9.
|
|
24
|
+
"survey-core": "1.9.114",
|
|
25
25
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
26
26
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
27
27
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.114
|
|
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
|
*/
|
|
@@ -727,9 +727,9 @@ var Base = /** @class */ (function () {
|
|
|
727
727
|
Array.isArray(oldValue) &&
|
|
728
728
|
!!this.arraysInfo &&
|
|
729
729
|
(!val || Array.isArray(val))) {
|
|
730
|
-
if (this.isTwoValueEquals(oldValue, val))
|
|
731
|
-
|
|
732
|
-
|
|
730
|
+
if (!this.isTwoValueEquals(oldValue, val)) {
|
|
731
|
+
this.setArrayPropertyDirectly(name, val);
|
|
732
|
+
}
|
|
733
733
|
}
|
|
734
734
|
else {
|
|
735
735
|
this.setPropertyValueDirectly(name, val);
|
|
@@ -1971,7 +1971,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1971
1971
|
/*!***************************************!*\
|
|
1972
1972
|
!*** ./src/entries/react-ui-model.ts ***!
|
|
1973
1973
|
\***************************************/
|
|
1974
|
-
/*! 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,
|
|
1974
|
+
/*! 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 */
|
|
1975
1975
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1976
1976
|
|
|
1977
1977
|
"use strict";
|
|
@@ -2229,10 +2229,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2229
2229
|
/* harmony import */ var _react_components_character_counter__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../react/components/character-counter */ "./src/react/components/character-counter.tsx");
|
|
2230
2230
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CharacterCounterComponent", function() { return _react_components_character_counter__WEBPACK_IMPORTED_MODULE_74__["CharacterCounterComponent"]; });
|
|
2231
2231
|
|
|
2232
|
-
/* harmony import */ var
|
|
2233
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
2232
|
+
/* harmony import */ var _react_components_header__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../react/components/header */ "./src/react/components/header.tsx");
|
|
2233
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderMobile", function() { return _react_components_header__WEBPACK_IMPORTED_MODULE_75__["HeaderMobile"]; });
|
|
2234
|
+
|
|
2235
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderCell", function() { return _react_components_header__WEBPACK_IMPORTED_MODULE_75__["HeaderCell"]; });
|
|
2234
2236
|
|
|
2235
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
2237
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Header", function() { return _react_components_header__WEBPACK_IMPORTED_MODULE_75__["Header"]; });
|
|
2236
2238
|
|
|
2237
2239
|
/* harmony import */ var _react_string_viewer__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../react/string-viewer */ "./src/react/string-viewer.tsx");
|
|
2238
2240
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringViewer", function() { return _react_string_viewer__WEBPACK_IMPORTED_MODULE_76__["SurveyLocStringViewer"]; });
|
|
@@ -2333,7 +2335,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2333
2335
|
/*!*********************************!*\
|
|
2334
2336
|
!*** ./src/entries/react-ui.ts ***!
|
|
2335
2337
|
\*********************************/
|
|
2336
|
-
/*! 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,
|
|
2338
|
+
/*! 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, SurveyModel, SurveyWindowModel, settings, surveyLocalization, surveyStrings, Model, ResponsivityManager, VerticalResponsivityManager, unwrap */
|
|
2337
2339
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2338
2340
|
|
|
2339
2341
|
"use strict";
|
|
@@ -2517,9 +2519,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2517
2519
|
|
|
2518
2520
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CharacterCounterComponent", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_0__["CharacterCounterComponent"]; });
|
|
2519
2521
|
|
|
2520
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
2522
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderMobile", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_0__["HeaderMobile"]; });
|
|
2521
2523
|
|
|
2522
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
2524
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderCell", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_0__["HeaderCell"]; });
|
|
2525
|
+
|
|
2526
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Header", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_0__["Header"]; });
|
|
2523
2527
|
|
|
2524
2528
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringViewer", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_0__["SurveyLocStringViewer"]; });
|
|
2525
2529
|
|
|
@@ -2556,7 +2560,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2556
2560
|
|
|
2557
2561
|
|
|
2558
2562
|
|
|
2559
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.
|
|
2563
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.114", "survey-react-ui");
|
|
2560
2564
|
|
|
2561
2565
|
|
|
2562
2566
|
/***/ }),
|
|
@@ -7239,7 +7243,11 @@ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from
|
|
|
7239
7243
|
function ensureLocString(target, options, key) {
|
|
7240
7244
|
var locString = target.getLocalizableString(key);
|
|
7241
7245
|
if (!locString) {
|
|
7242
|
-
|
|
7246
|
+
var defaultStr = void 0;
|
|
7247
|
+
if (typeof options.localizable === "object" && options.localizable.defaultStr) {
|
|
7248
|
+
defaultStr = options.localizable.defaultStr;
|
|
7249
|
+
}
|
|
7250
|
+
locString = target.createLocalizableString(key, target, true, defaultStr);
|
|
7243
7251
|
if (typeof options.localizable === "object" &&
|
|
7244
7252
|
typeof options.localizable.onGetTextCallback === "function") {
|
|
7245
7253
|
locString.onGetTextCallback = options.localizable.onGetTextCallback;
|
|
@@ -8568,7 +8576,7 @@ var JsonMetadata = /** @class */ (function () {
|
|
|
8568
8576
|
if (prop.hasChoices) {
|
|
8569
8577
|
var enumRes = prop.getChoices(null);
|
|
8570
8578
|
if (Array.isArray(enumRes) && enumRes.length > 0) {
|
|
8571
|
-
res.enum = enumRes;
|
|
8579
|
+
res.enum = this.getChoicesValues(enumRes);
|
|
8572
8580
|
}
|
|
8573
8581
|
}
|
|
8574
8582
|
if (!!refType) {
|
|
@@ -8631,6 +8639,18 @@ var JsonMetadata = /** @class */ (function () {
|
|
|
8631
8639
|
res.required = chemaProps.required;
|
|
8632
8640
|
}
|
|
8633
8641
|
};
|
|
8642
|
+
JsonMetadata.prototype.getChoicesValues = function (enumRes) {
|
|
8643
|
+
var res = new Array();
|
|
8644
|
+
enumRes.forEach(function (item) {
|
|
8645
|
+
if (typeof item === "object" && item.value !== undefined) {
|
|
8646
|
+
res.push(item.value);
|
|
8647
|
+
}
|
|
8648
|
+
else {
|
|
8649
|
+
res.push(item);
|
|
8650
|
+
}
|
|
8651
|
+
});
|
|
8652
|
+
return res;
|
|
8653
|
+
};
|
|
8634
8654
|
return JsonMetadata;
|
|
8635
8655
|
}());
|
|
8636
8656
|
|
|
@@ -9696,7 +9716,7 @@ var englishStrings = {
|
|
|
9696
9716
|
loadingFile: "Loading...",
|
|
9697
9717
|
chooseFile: "Choose file(s)...",
|
|
9698
9718
|
noFileChosen: "No file chosen",
|
|
9699
|
-
|
|
9719
|
+
filePlaceholder: "Drag and drop a file here or click the button below to select a file to upload.",
|
|
9700
9720
|
confirmDelete: "Do you want to delete the record?",
|
|
9701
9721
|
keyDuplicationError: "This value should be unique.",
|
|
9702
9722
|
addColumn: "Add Column",
|
|
@@ -9725,8 +9745,8 @@ var englishStrings = {
|
|
|
9725
9745
|
signaturePlaceHolder: "Sign here",
|
|
9726
9746
|
chooseFileCaption: "Select File",
|
|
9727
9747
|
takePhotoCaption: "Take Photo",
|
|
9728
|
-
|
|
9729
|
-
|
|
9748
|
+
photoPlaceholder: "Click the button below to take a photo using the camera.",
|
|
9749
|
+
fileOrPhotoPlaceholder: "Drag and drop or select a file to upload or take a photo using the camera.",
|
|
9730
9750
|
replaceFileCaption: "Replace file",
|
|
9731
9751
|
removeFileCaption: "Remove this file",
|
|
9732
9752
|
booleanCheckedLabel: "Yes",
|
|
@@ -10517,106 +10537,6 @@ _element_factory__WEBPACK_IMPORTED_MODULE_1__["ReactElementFactory"].Instance.re
|
|
|
10517
10537
|
});
|
|
10518
10538
|
|
|
10519
10539
|
|
|
10520
|
-
/***/ }),
|
|
10521
|
-
|
|
10522
|
-
/***/ "./src/react/components/cover.tsx":
|
|
10523
|
-
/*!****************************************!*\
|
|
10524
|
-
!*** ./src/react/components/cover.tsx ***!
|
|
10525
|
-
\****************************************/
|
|
10526
|
-
/*! exports provided: CoverCellComponent, CoverComponent */
|
|
10527
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10528
|
-
|
|
10529
|
-
"use strict";
|
|
10530
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10531
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoverCellComponent", function() { return CoverCellComponent; });
|
|
10532
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoverComponent", function() { return CoverComponent; });
|
|
10533
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
10534
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
10535
|
-
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
|
10536
|
-
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../element-factory */ "./src/react/element-factory.tsx");
|
|
10537
|
-
/* harmony import */ var _title_title_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./title/title-element */ "./src/react/components/title/title-element.tsx");
|
|
10538
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
10539
|
-
var extendStatics = function (d, b) {
|
|
10540
|
-
extendStatics = Object.setPrototypeOf ||
|
|
10541
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10542
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10543
|
-
return extendStatics(d, b);
|
|
10544
|
-
};
|
|
10545
|
-
return function (d, b) {
|
|
10546
|
-
if (typeof b !== "function" && b !== null)
|
|
10547
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10548
|
-
extendStatics(d, b);
|
|
10549
|
-
function __() { this.constructor = d; }
|
|
10550
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10551
|
-
};
|
|
10552
|
-
})();
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
var CoverCellComponent = /** @class */ (function (_super) {
|
|
10558
|
-
__extends(CoverCellComponent, _super);
|
|
10559
|
-
function CoverCellComponent() {
|
|
10560
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
10561
|
-
}
|
|
10562
|
-
Object.defineProperty(CoverCellComponent.prototype, "model", {
|
|
10563
|
-
get: function () {
|
|
10564
|
-
return this.props.model;
|
|
10565
|
-
},
|
|
10566
|
-
enumerable: false,
|
|
10567
|
-
configurable: true
|
|
10568
|
-
});
|
|
10569
|
-
CoverCellComponent.prototype.renderLogoImage = function () {
|
|
10570
|
-
var componentName = this.model.survey.getElementWrapperComponentName(this.model.survey, "logo-image");
|
|
10571
|
-
var componentData = this.model.survey.getElementWrapperComponentData(this.model.survey, "logo-image");
|
|
10572
|
-
return _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.createElement(componentName, {
|
|
10573
|
-
data: componentData,
|
|
10574
|
-
});
|
|
10575
|
-
};
|
|
10576
|
-
CoverCellComponent.prototype.render = function () {
|
|
10577
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.css, style: this.model.style },
|
|
10578
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-cover__cell-content", style: this.model.contentStyle },
|
|
10579
|
-
this.model.showLogo ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-cover__logo" }, this.renderLogoImage())) : null,
|
|
10580
|
-
this.model.showTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-cover__title", style: { maxWidth: this.model.textAreaWidth } },
|
|
10581
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_title_title_element__WEBPACK_IMPORTED_MODULE_3__["TitleElement"], { element: this.model.survey }))) : null,
|
|
10582
|
-
this.model.showDescription ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-cover__description", style: { maxWidth: this.model.textAreaWidth } },
|
|
10583
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h5", { className: this.model.survey.css.description }, _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"].renderLocString(this.model.survey.locDescription)))) : null)));
|
|
10584
|
-
};
|
|
10585
|
-
return CoverCellComponent;
|
|
10586
|
-
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
|
10587
|
-
|
|
10588
|
-
var CoverComponent = /** @class */ (function (_super) {
|
|
10589
|
-
__extends(CoverComponent, _super);
|
|
10590
|
-
function CoverComponent() {
|
|
10591
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
10592
|
-
}
|
|
10593
|
-
Object.defineProperty(CoverComponent.prototype, "model", {
|
|
10594
|
-
get: function () {
|
|
10595
|
-
return this.props.model;
|
|
10596
|
-
},
|
|
10597
|
-
enumerable: false,
|
|
10598
|
-
configurable: true
|
|
10599
|
-
});
|
|
10600
|
-
CoverComponent.prototype.getStateElement = function () {
|
|
10601
|
-
return this.model;
|
|
10602
|
-
};
|
|
10603
|
-
CoverComponent.prototype.renderElement = function () {
|
|
10604
|
-
this.model.survey = this.props.survey;
|
|
10605
|
-
if (!(this.props.survey.headerView === "advanced" && this.props.survey.renderedHasHeader)) {
|
|
10606
|
-
return null;
|
|
10607
|
-
}
|
|
10608
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.coverClasses, style: { height: this.model.renderedHeight } },
|
|
10609
|
-
this.model.backgroundImage ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { style: this.model.backgroundImageStyle, className: this.model.backgroundImageClasses }) : null,
|
|
10610
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.contentClasses, style: { maxWidth: this.model.maxWidth } }, this.model.cells.map(function (cell, index) { return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(CoverCellComponent, { key: index, model: cell }); }))));
|
|
10611
|
-
};
|
|
10612
|
-
return CoverComponent;
|
|
10613
|
-
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"]));
|
|
10614
|
-
|
|
10615
|
-
_element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.registerElement("sv-cover", function (props) {
|
|
10616
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(CoverComponent, props);
|
|
10617
|
-
});
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
10540
|
/***/ }),
|
|
10621
10541
|
|
|
10622
10542
|
/***/ "./src/react/components/file/file-choose-button.tsx":
|
|
@@ -10765,6 +10685,144 @@ _element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.re
|
|
|
10765
10685
|
});
|
|
10766
10686
|
|
|
10767
10687
|
|
|
10688
|
+
/***/ }),
|
|
10689
|
+
|
|
10690
|
+
/***/ "./src/react/components/header.tsx":
|
|
10691
|
+
/*!*****************************************!*\
|
|
10692
|
+
!*** ./src/react/components/header.tsx ***!
|
|
10693
|
+
\*****************************************/
|
|
10694
|
+
/*! exports provided: HeaderMobile, HeaderCell, Header */
|
|
10695
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10696
|
+
|
|
10697
|
+
"use strict";
|
|
10698
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10699
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderMobile", function() { return HeaderMobile; });
|
|
10700
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderCell", function() { return HeaderCell; });
|
|
10701
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Header", function() { return Header; });
|
|
10702
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
10703
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
10704
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
|
10705
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../element-factory */ "./src/react/element-factory.tsx");
|
|
10706
|
+
/* harmony import */ var _title_title_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./title/title-element */ "./src/react/components/title/title-element.tsx");
|
|
10707
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
10708
|
+
var extendStatics = function (d, b) {
|
|
10709
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10710
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10711
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10712
|
+
return extendStatics(d, b);
|
|
10713
|
+
};
|
|
10714
|
+
return function (d, b) {
|
|
10715
|
+
if (typeof b !== "function" && b !== null)
|
|
10716
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10717
|
+
extendStatics(d, b);
|
|
10718
|
+
function __() { this.constructor = d; }
|
|
10719
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10720
|
+
};
|
|
10721
|
+
})();
|
|
10722
|
+
|
|
10723
|
+
|
|
10724
|
+
|
|
10725
|
+
|
|
10726
|
+
var HeaderMobile = /** @class */ (function (_super) {
|
|
10727
|
+
__extends(HeaderMobile, _super);
|
|
10728
|
+
function HeaderMobile() {
|
|
10729
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10730
|
+
}
|
|
10731
|
+
Object.defineProperty(HeaderMobile.prototype, "model", {
|
|
10732
|
+
get: function () {
|
|
10733
|
+
return this.props.model;
|
|
10734
|
+
},
|
|
10735
|
+
enumerable: false,
|
|
10736
|
+
configurable: true
|
|
10737
|
+
});
|
|
10738
|
+
HeaderMobile.prototype.renderLogoImage = function () {
|
|
10739
|
+
var componentName = this.model.survey.getElementWrapperComponentName(this.model.survey, "logo-image");
|
|
10740
|
+
var componentData = this.model.survey.getElementWrapperComponentData(this.model.survey, "logo-image");
|
|
10741
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.createElement(componentName, {
|
|
10742
|
+
data: componentData,
|
|
10743
|
+
});
|
|
10744
|
+
};
|
|
10745
|
+
HeaderMobile.prototype.render = function () {
|
|
10746
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header--mobile" },
|
|
10747
|
+
this.model.survey.hasLogo ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__logo" }, this.renderLogoImage())) : null,
|
|
10748
|
+
this.model.survey.hasTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__title", style: { maxWidth: this.model.textAreaWidth } },
|
|
10749
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_title_title_element__WEBPACK_IMPORTED_MODULE_3__["TitleElement"], { element: this.model.survey }))) : null,
|
|
10750
|
+
this.model.survey.renderedHasDescription ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__description", style: { maxWidth: this.model.textAreaWidth } },
|
|
10751
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h5", { className: this.model.survey.css.description }, _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"].renderLocString(this.model.survey.locDescription)))) : null));
|
|
10752
|
+
};
|
|
10753
|
+
return HeaderMobile;
|
|
10754
|
+
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
|
10755
|
+
|
|
10756
|
+
var HeaderCell = /** @class */ (function (_super) {
|
|
10757
|
+
__extends(HeaderCell, _super);
|
|
10758
|
+
function HeaderCell() {
|
|
10759
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10760
|
+
}
|
|
10761
|
+
Object.defineProperty(HeaderCell.prototype, "model", {
|
|
10762
|
+
get: function () {
|
|
10763
|
+
return this.props.model;
|
|
10764
|
+
},
|
|
10765
|
+
enumerable: false,
|
|
10766
|
+
configurable: true
|
|
10767
|
+
});
|
|
10768
|
+
HeaderCell.prototype.renderLogoImage = function () {
|
|
10769
|
+
var componentName = this.model.survey.getElementWrapperComponentName(this.model.survey, "logo-image");
|
|
10770
|
+
var componentData = this.model.survey.getElementWrapperComponentData(this.model.survey, "logo-image");
|
|
10771
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.createElement(componentName, {
|
|
10772
|
+
data: componentData,
|
|
10773
|
+
});
|
|
10774
|
+
};
|
|
10775
|
+
HeaderCell.prototype.render = function () {
|
|
10776
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.css, style: this.model.style },
|
|
10777
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__cell-content", style: this.model.contentStyle },
|
|
10778
|
+
this.model.showLogo ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__logo" }, this.renderLogoImage())) : null,
|
|
10779
|
+
this.model.showTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__title", style: { maxWidth: this.model.textAreaWidth } },
|
|
10780
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_title_title_element__WEBPACK_IMPORTED_MODULE_3__["TitleElement"], { element: this.model.survey }))) : null,
|
|
10781
|
+
this.model.showDescription ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-header__description", style: { maxWidth: this.model.textAreaWidth } },
|
|
10782
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h5", { className: this.model.survey.css.description }, _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"].renderLocString(this.model.survey.locDescription)))) : null)));
|
|
10783
|
+
};
|
|
10784
|
+
return HeaderCell;
|
|
10785
|
+
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
|
10786
|
+
|
|
10787
|
+
var Header = /** @class */ (function (_super) {
|
|
10788
|
+
__extends(Header, _super);
|
|
10789
|
+
function Header() {
|
|
10790
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10791
|
+
}
|
|
10792
|
+
Object.defineProperty(Header.prototype, "model", {
|
|
10793
|
+
get: function () {
|
|
10794
|
+
return this.props.model;
|
|
10795
|
+
},
|
|
10796
|
+
enumerable: false,
|
|
10797
|
+
configurable: true
|
|
10798
|
+
});
|
|
10799
|
+
Header.prototype.getStateElement = function () {
|
|
10800
|
+
return this.model;
|
|
10801
|
+
};
|
|
10802
|
+
Header.prototype.renderElement = function () {
|
|
10803
|
+
this.model.survey = this.props.survey;
|
|
10804
|
+
if (!(this.props.survey.headerView === "advanced" && this.props.survey.renderedHasHeader)) {
|
|
10805
|
+
return null;
|
|
10806
|
+
}
|
|
10807
|
+
var headerContent = null;
|
|
10808
|
+
if (this.props.survey.isMobile) {
|
|
10809
|
+
headerContent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(HeaderMobile, { model: this.model });
|
|
10810
|
+
}
|
|
10811
|
+
else {
|
|
10812
|
+
headerContent = (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.contentClasses, style: { maxWidth: this.model.maxWidth } }, this.model.cells.map(function (cell, index) { return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(HeaderCell, { key: index, model: cell }); })));
|
|
10813
|
+
}
|
|
10814
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.headerClasses, style: { height: this.model.renderedHeight } },
|
|
10815
|
+
this.model.backgroundImage ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { style: this.model.backgroundImageStyle, className: this.model.backgroundImageClasses }) : null,
|
|
10816
|
+
headerContent));
|
|
10817
|
+
};
|
|
10818
|
+
return Header;
|
|
10819
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"]));
|
|
10820
|
+
|
|
10821
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.registerElement("sv-header", function (props) {
|
|
10822
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Header, props);
|
|
10823
|
+
});
|
|
10824
|
+
|
|
10825
|
+
|
|
10768
10826
|
/***/ }),
|
|
10769
10827
|
|
|
10770
10828
|
/***/ "./src/react/components/list/list-item.tsx":
|
|
@@ -16776,7 +16834,7 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
16776
16834
|
var actionsContainer = this.question.actionsContainerVisible ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__["SurveyActionBar"], { model: this.question.actionsContainer }) : null;
|
|
16777
16835
|
var noFileChosen = this.question.isEmpty() ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.cssClasses.noFileChosen }, this.question.noFileChosenCaption)) : null;
|
|
16778
16836
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.getFileDecoratorCss() },
|
|
16779
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.question.
|
|
16837
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)),
|
|
16780
16838
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.wrapper },
|
|
16781
16839
|
chooseButton,
|
|
16782
16840
|
actionsContainer,
|
|
@@ -18455,18 +18513,21 @@ var SurveyQuestionRankingItem = /** @class */ (function (_super) {
|
|
|
18455
18513
|
enumerable: false,
|
|
18456
18514
|
configurable: true
|
|
18457
18515
|
});
|
|
18516
|
+
SurveyQuestionRankingItem.prototype.renderEmptyIcon = function () {
|
|
18517
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", null,
|
|
18518
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("use", { xlinkHref: this.question.dashSvgIcon })));
|
|
18519
|
+
};
|
|
18458
18520
|
SurveyQuestionRankingItem.prototype.renderElement = function () {
|
|
18459
18521
|
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 },
|
|
18460
18522
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { tabIndex: -1, style: { outline: "none" } },
|
|
18461
18523
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.cssClasses.itemGhostNode }),
|
|
18462
18524
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.cssClasses.itemContent },
|
|
18463
18525
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.cssClasses.itemIconContainer },
|
|
18464
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", {
|
|
18465
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("
|
|
18466
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", {
|
|
18467
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("
|
|
18468
|
-
|
|
18469
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.getItemIndexClasses(this.item) }, this.unrankedItem ? "" : this.indexText),
|
|
18526
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: this.question.getIconHoverCss() },
|
|
18527
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("use", { xlinkHref: this.question.dragDropSvgIcon })),
|
|
18528
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: this.question.getIconFocusCss() },
|
|
18529
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("use", { xlinkHref: this.question.arrowsSvgIcon }))),
|
|
18530
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.getItemIndexClasses(this.item) }, (!this.unrankedItem && this.indexText) ? this.indexText : this.renderEmptyIcon()),
|
|
18470
18531
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.cssClasses.controlLabel }, this.text)))));
|
|
18471
18532
|
};
|
|
18472
18533
|
return SurveyQuestionRankingItem;
|
|
@@ -19086,7 +19147,7 @@ var SurveyQuestionSignaturePad = /** @class */ (function (_super) {
|
|
|
19086
19147
|
var cssClasses = this.question.cssClasses;
|
|
19087
19148
|
var clearButton = this.renderCleanButton();
|
|
19088
19149
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.root, ref: function (root) { return (_this.setControl(root)); }, style: { height: this.question.signatureHeight, width: this.question.signatureWidth } },
|
|
19089
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.placeholder, style: { display: this.question.needShowPlaceholder() ? "" : "none" } }, this.question.
|
|
19150
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.placeholder, style: { display: this.question.needShowPlaceholder() ? "" : "none" } }, this.renderLocString(this.question.locPlaceholder)),
|
|
19090
19151
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null,
|
|
19091
19152
|
this.renderBackgroundImage(),
|
|
19092
19153
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("canvas", { tabIndex: 0, className: this.question.cssClasses.canvas })),
|
|
@@ -20007,8 +20068,8 @@ var settings = {
|
|
|
20007
20068
|
* @param message A message to be displayed in the confirm dialog window.
|
|
20008
20069
|
* @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
|
|
20009
20070
|
*/
|
|
20010
|
-
confirmActionAsync: function (message, callback) {
|
|
20011
|
-
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_0__["showConfirmDialog"])(message, callback);
|
|
20071
|
+
confirmActionAsync: function (message, callback, applyTitle) {
|
|
20072
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_0__["showConfirmDialog"])(message, callback, applyTitle);
|
|
20012
20073
|
},
|
|
20013
20074
|
/**
|
|
20014
20075
|
* A minimum width value for all survey elements.
|
|
@@ -20906,7 +20967,7 @@ var Logger = /** @class */ (function () {
|
|
|
20906
20967
|
return Logger;
|
|
20907
20968
|
}());
|
|
20908
20969
|
|
|
20909
|
-
function showConfirmDialog(message, callback) {
|
|
20970
|
+
function showConfirmDialog(message, callback, applyTitle) {
|
|
20910
20971
|
var locStr = new _localizablestring__WEBPACK_IMPORTED_MODULE_0__["LocalizableString"](undefined);
|
|
20911
20972
|
var popupViewModel = _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].showDialog({
|
|
20912
20973
|
componentName: "sv-string-viewer",
|
|
@@ -20929,7 +20990,7 @@ function showConfirmDialog(message, callback) {
|
|
|
20929
20990
|
var cancelBtn = toolbar.getActionById("cancel");
|
|
20930
20991
|
cancelBtn.title = _surveyStrings__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].getString("cancel");
|
|
20931
20992
|
cancelBtn.innerCss = "sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small";
|
|
20932
|
-
applyBtn.title = _surveyStrings__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].getString("ok");
|
|
20993
|
+
applyBtn.title = applyTitle || _surveyStrings__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].getString("ok");
|
|
20933
20994
|
applyBtn.innerCss = "sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger";
|
|
20934
20995
|
popupViewModel.width = "452px";
|
|
20935
20996
|
return true;
|