survey-react 1.12.34 → 1.12.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/defaultV2.css +1 -1
- package/defaultV2.min.css +1 -1
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.js +20 -13
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/defaultV2.css
CHANGED
package/defaultV2.min.css
CHANGED
package/modern.css
CHANGED
package/modern.min.css
CHANGED
package/package.json
CHANGED
package/survey.css
CHANGED
package/survey.min.css
CHANGED
package/survey.react.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.35
|
3
3
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -16071,7 +16071,7 @@ var getElement = function (element) {
|
|
16071
16071
|
};
|
16072
16072
|
function isElementVisible(element, threshold) {
|
16073
16073
|
if (threshold === void 0) { threshold = 0; }
|
16074
|
-
if (typeof settings.environment === "undefined") {
|
16074
|
+
if (typeof settings.environment === "undefined" || !element.offsetHeight) {
|
16075
16075
|
return false;
|
16076
16076
|
}
|
16077
16077
|
var root = settings.environment.root;
|
@@ -39834,7 +39834,7 @@ var page_PageModel = /** @class */ (function (_super) {
|
|
39834
39834
|
if (this.randomizeElements(this.areQuestionsRandomized)) {
|
39835
39835
|
var singleQuestion = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleElement;
|
39836
39836
|
if ((singleQuestion === null || singleQuestion === void 0 ? void 0 : singleQuestion.page) === this) {
|
39837
|
-
this.survey.currentSingleElement = this.
|
39837
|
+
this.survey.currentSingleElement = this.getFirstVisibleElement();
|
39838
39838
|
}
|
39839
39839
|
}
|
39840
39840
|
};
|
@@ -48938,9 +48938,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
48938
48938
|
var isNeedWaitForPageRendered = this.activePage !== question.page && !question.page.isStartPage;
|
48939
48939
|
if (isNeedWaitForPageRendered) {
|
48940
48940
|
this.currentPage = question.page;
|
48941
|
-
|
48942
|
-
|
48943
|
-
|
48941
|
+
}
|
48942
|
+
if (this.isSingleVisibleQuestion && !this.isDesignMode) {
|
48943
|
+
this.currentSingleElement = question;
|
48944
48944
|
}
|
48945
48945
|
if (!isNeedWaitForPageRendered) {
|
48946
48946
|
this.focusQuestionInfo();
|
@@ -56102,7 +56102,7 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
|
|
56102
56102
|
value = this.maskInstance.getUnmaskedValue(val);
|
56103
56103
|
this._inputValue = this.maskInstance.getMaskedValue(value);
|
56104
56104
|
if (!!value && this.maskSettings.saveMaskedValue) {
|
56105
|
-
value = this.
|
56105
|
+
value = this._inputValue;
|
56106
56106
|
}
|
56107
56107
|
}
|
56108
56108
|
this.value = value;
|
@@ -56115,14 +56115,20 @@ var question_text_QuestionTextModel = /** @class */ (function (_super) {
|
|
56115
56115
|
this.updateInputValue();
|
56116
56116
|
};
|
56117
56117
|
QuestionTextModel.prototype.updateInputValue = function () {
|
56118
|
+
var _value = this.value;
|
56118
56119
|
if (this.maskTypeIsEmpty) {
|
56119
|
-
this._inputValue =
|
56120
|
+
this._inputValue = _value;
|
56120
56121
|
}
|
56121
56122
|
else if (this.maskSettings.saveMaskedValue) {
|
56122
|
-
|
56123
|
+
if (!_value) {
|
56124
|
+
this._inputValue = this.maskInstance.getMaskedValue("");
|
56125
|
+
}
|
56126
|
+
else {
|
56127
|
+
this.inputValue = _value;
|
56128
|
+
}
|
56123
56129
|
}
|
56124
56130
|
else {
|
56125
|
-
this._inputValue = this.maskInstance.getMaskedValue(
|
56131
|
+
this._inputValue = this.maskInstance.getMaskedValue(_value);
|
56126
56132
|
}
|
56127
56133
|
};
|
56128
56134
|
QuestionTextModel.prototype.hasToConvertToUTC = function (val) {
|
@@ -73069,9 +73075,9 @@ Serializer.addClass("currencymask", [
|
|
73069
73075
|
|
73070
73076
|
var Version;
|
73071
73077
|
var ReleaseDate;
|
73072
|
-
Version = "" + "1.12.
|
73078
|
+
Version = "" + "1.12.35";
|
73073
73079
|
settings.version = Version;
|
73074
|
-
ReleaseDate = "" + "2025-
|
73080
|
+
ReleaseDate = "" + "2025-05-06";
|
73075
73081
|
function checkLibraryVersion(ver, libraryName) {
|
73076
73082
|
if (Version != ver) {
|
73077
73083
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -83923,8 +83929,9 @@ var row_SurveyRow = /** @class */ (function (_super) {
|
|
83923
83929
|
this.row.isNeedRender = !this.row.isLazyRendering();
|
83924
83930
|
};
|
83925
83931
|
SurveyRow.prototype.componentWillUnmount = function () {
|
83932
|
+
var isCurrentStateElement = this.isCurrentStateElement(this.getStateElement());
|
83926
83933
|
_super.prototype.componentWillUnmount.call(this);
|
83927
|
-
if (
|
83934
|
+
if (isCurrentStateElement) {
|
83928
83935
|
this.row.setRootElement(undefined);
|
83929
83936
|
this.stopLazyRendering();
|
83930
83937
|
}
|