survey-react-ui 1.9.103 → 1.9.104
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 +31 -5
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.104",
|
|
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.104",
|
|
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.104
|
|
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
|
*/
|
|
@@ -690,7 +690,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
690
690
|
|
|
691
691
|
|
|
692
692
|
|
|
693
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.
|
|
693
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.104", "survey-react-ui");
|
|
694
694
|
|
|
695
695
|
|
|
696
696
|
/***/ }),
|
|
@@ -3617,7 +3617,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
3617
3617
|
if (!this.question.cssClasses.chevronButtonIconId)
|
|
3618
3618
|
return null;
|
|
3619
3619
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.chevronButton },
|
|
3620
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { className: this.question.cssClasses.chevronButtonSvg, iconName: this.question.cssClasses.chevronButtonIconId, size:
|
|
3620
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { className: this.question.cssClasses.chevronButtonSvg, iconName: this.question.cssClasses.chevronButtonIconId, size: "auto" })));
|
|
3621
3621
|
};
|
|
3622
3622
|
SurveyQuestionDropdownBase.prototype.renderOther = function (cssClasses) {
|
|
3623
3623
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.getCommentAreaCss(true) },
|
|
@@ -10521,12 +10521,24 @@ var settings = {
|
|
|
10521
10521
|
*/
|
|
10522
10522
|
tagboxCloseOnSelect: false,
|
|
10523
10523
|
/**
|
|
10524
|
-
* A property that allows you to display a custom confirm dialog instead of the standard browser dialog.
|
|
10524
|
+
* A property that allows you to display a custom confirm dialog instead of the standard browser dialog.
|
|
10525
|
+
*
|
|
10526
|
+
* Set this property to a function that renders your custom dialog window. This function should return `true` if a user confirms an action or `false` otherwise.
|
|
10525
10527
|
* @param message A message to be displayed in the confirm dialog window.
|
|
10526
10528
|
*/
|
|
10527
10529
|
confirmActionFunc: function (message) {
|
|
10528
10530
|
return confirm(message);
|
|
10529
10531
|
},
|
|
10532
|
+
/**
|
|
10533
|
+
* A property that allows you to display a custom confirm dialog instead of the standard browser dialog in async mode.
|
|
10534
|
+
*
|
|
10535
|
+
* Set this property to a function that renders your custom dialog window. This function should return `true` to be enabled; otherwise, a survey executes the [`confirmActionFunc`](#confirmActionFunc) function. Pass the dialog result as the `callback` parameter: `true` if a user confirms an action, `false` otherwise.
|
|
10536
|
+
* @param message A message to be displayed in the confirm dialog window.
|
|
10537
|
+
* @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
|
|
10538
|
+
*/
|
|
10539
|
+
confirmActionAsync: function (message, callback) {
|
|
10540
|
+
return false;
|
|
10541
|
+
},
|
|
10530
10542
|
/**
|
|
10531
10543
|
* A minimum width value for all survey elements.
|
|
10532
10544
|
*
|
|
@@ -10886,7 +10898,7 @@ var VerticalResponsivityManager = /** @class */ (function (_super) {
|
|
|
10886
10898
|
/*!****************************!*\
|
|
10887
10899
|
!*** ./src/utils/utils.ts ***!
|
|
10888
10900
|
\****************************/
|
|
10889
|
-
/*! exports provided: unwrap, getRenderedSize, getRenderedStyleSize, doKey2ClickBlur, doKey2ClickUp, doKey2ClickDown, sanitizeEditableContent, Logger, mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild */
|
|
10901
|
+
/*! exports provided: unwrap, getRenderedSize, getRenderedStyleSize, doKey2ClickBlur, doKey2ClickUp, doKey2ClickDown, sanitizeEditableContent, Logger, mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild */
|
|
10890
10902
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10891
10903
|
|
|
10892
10904
|
"use strict";
|
|
@@ -10905,6 +10917,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10905
10917
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "classesToSelector", function() { return classesToSelector; });
|
|
10906
10918
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compareVersions", function() { return compareVersions; });
|
|
10907
10919
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "confirmAction", function() { return confirmAction; });
|
|
10920
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "confirmActionAsync", function() { return confirmActionAsync; });
|
|
10908
10921
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "detectIEOrEdge", function() { return detectIEOrEdge; });
|
|
10909
10922
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "detectIEBrowser", function() { return detectIEBrowser; });
|
|
10910
10923
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadFileFromBase64", function() { return loadFileFromBase64; });
|
|
@@ -10942,6 +10955,19 @@ function confirmAction(message) {
|
|
|
10942
10955
|
return _settings__WEBPACK_IMPORTED_MODULE_0__["settings"].confirmActionFunc(message);
|
|
10943
10956
|
return confirm(message);
|
|
10944
10957
|
}
|
|
10958
|
+
function confirmActionAsync(message, funcOnYes, funcOnNo) {
|
|
10959
|
+
var callbackFunc = function (res) {
|
|
10960
|
+
if (res)
|
|
10961
|
+
funcOnYes();
|
|
10962
|
+
else if (!!funcOnNo)
|
|
10963
|
+
funcOnNo();
|
|
10964
|
+
};
|
|
10965
|
+
if (!!_settings__WEBPACK_IMPORTED_MODULE_0__["settings"] && !!_settings__WEBPACK_IMPORTED_MODULE_0__["settings"].confirmActionAsync) {
|
|
10966
|
+
if (_settings__WEBPACK_IMPORTED_MODULE_0__["settings"].confirmActionAsync(message, callbackFunc))
|
|
10967
|
+
return;
|
|
10968
|
+
}
|
|
10969
|
+
callbackFunc(confirmAction(message));
|
|
10970
|
+
}
|
|
10945
10971
|
function detectIEBrowser() {
|
|
10946
10972
|
if (typeof window === "undefined")
|
|
10947
10973
|
return false;
|