survey-core 1.12.27 → 1.12.28
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 +7 -1
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +7 -1
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/burmese.js +1 -1
- package/i18n/burmese.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +10 -5
- package/i18n/index.js.map +1 -1
- package/i18n/index.min.js +2 -2
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/philippines.js +1 -1
- package/i18n/philippines.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/simplified-chinese.js +10 -5
- package/i18n/simplified-chinese.js.map +1 -1
- package/i18n/simplified-chinese.min.js +2 -2
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/slovenian.js +1 -1
- package/i18n/slovenian.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/icons/iconsV1.js +1 -1
- package/icons/iconsV1.min.js +1 -1
- package/icons/iconsV2.js +1 -1
- package/icons/iconsV2.min.js +1 -1
- package/modern.css +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/plugins/bootstrap-integration/index.js +1 -1
- package/plugins/bootstrap-integration/index.min.js +1 -1
- package/plugins/bootstrap-material-integration/index.js +1 -1
- package/plugins/bootstrap-material-integration/index.min.js +1 -1
- package/survey.core.js +90 -56
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +10 -5
- package/survey.i18n.js.map +1 -1
- package/survey.i18n.min.js +2 -2
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/packages/survey-core/src/base-interfaces.d.ts +2 -1
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +2 -1
- package/typings/packages/survey-core/src/base-interfaces.d.ts +2 -1
- package/typings/packages/survey-core/src/survey.d.ts +3 -1
package/i18n/thai.js
CHANGED
package/i18n/thai.min.js
CHANGED
package/i18n/turkish.js
CHANGED
package/i18n/turkish.min.js
CHANGED
package/i18n/ukrainian.js
CHANGED
package/i18n/ukrainian.min.js
CHANGED
package/i18n/urdu.js
CHANGED
package/i18n/urdu.min.js
CHANGED
package/i18n/vietnamese.js
CHANGED
package/i18n/vietnamese.min.js
CHANGED
package/i18n/welsh.js
CHANGED
package/i18n/welsh.min.js
CHANGED
package/icons/iconsV1.js
CHANGED
package/icons/iconsV1.min.js
CHANGED
package/icons/iconsV2.js
CHANGED
package/icons/iconsV2.min.js
CHANGED
package/modern.css
CHANGED
package/modern.fontless.css
CHANGED
package/modern.fontless.min.css
CHANGED
package/modern.min.css
CHANGED
package/package.json
CHANGED
package/survey.core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.28
|
|
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
|
*/
|
|
@@ -8250,24 +8250,31 @@ var base_Bindings = /** @class */ (function () {
|
|
|
8250
8250
|
return res;
|
|
8251
8251
|
};
|
|
8252
8252
|
Bindings.prototype.getJson = function () {
|
|
8253
|
+
var _this = this;
|
|
8253
8254
|
if (this.isEmpty())
|
|
8254
8255
|
return undefined;
|
|
8255
8256
|
var res = {};
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8257
|
+
this.getNames().forEach(function (key) {
|
|
8258
|
+
if (_this.values[key] !== undefined) {
|
|
8259
|
+
res[key] = _this.values[key];
|
|
8260
|
+
}
|
|
8261
|
+
});
|
|
8259
8262
|
return res;
|
|
8260
8263
|
};
|
|
8261
8264
|
Bindings.prototype.setJson = function (value, isLoading) {
|
|
8265
|
+
var _this = this;
|
|
8262
8266
|
var oldValue = this.getJson();
|
|
8263
8267
|
this.values = null;
|
|
8264
8268
|
if (!!value) {
|
|
8265
|
-
this.
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
+
this.getNames().forEach(function (key) {
|
|
8270
|
+
if (value[key] !== undefined) {
|
|
8271
|
+
if (!_this.values)
|
|
8272
|
+
_this.values = {};
|
|
8273
|
+
_this.values[key] = value[key];
|
|
8274
|
+
}
|
|
8275
|
+
});
|
|
8269
8276
|
}
|
|
8270
|
-
if (!isLoading) {
|
|
8277
|
+
if (!isLoading && !helpers_Helpers.isTwoValueEquals(oldValue, this.values)) {
|
|
8271
8278
|
this.onChangedJSON(oldValue);
|
|
8272
8279
|
}
|
|
8273
8280
|
};
|
|
@@ -13121,7 +13128,7 @@ var survey_element_SurveyElement = /** @class */ (function (_super) {
|
|
|
13121
13128
|
});
|
|
13122
13129
|
SurveyElement.prototype.canHaveFrameStyles = function () {
|
|
13123
13130
|
var _a;
|
|
13124
|
-
if (((_a = this.survey) === null || _a === void 0 ? void 0 : _a.
|
|
13131
|
+
if (((_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleElement) === this)
|
|
13125
13132
|
return true;
|
|
13126
13133
|
return (this.parent !== undefined && (!this.hasParent || this.parent && this.parent.showPanelAsPage));
|
|
13127
13134
|
};
|
|
@@ -37783,7 +37790,7 @@ var page_PageModel = /** @class */ (function (_super) {
|
|
|
37783
37790
|
PageModel.prototype.getElementsForRows = function () {
|
|
37784
37791
|
var _a;
|
|
37785
37792
|
if (!this.isStartPage) {
|
|
37786
|
-
var q = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.
|
|
37793
|
+
var q = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleElement;
|
|
37787
37794
|
if (!!q) {
|
|
37788
37795
|
if (q.page === this)
|
|
37789
37796
|
return [q];
|
|
@@ -37821,7 +37828,7 @@ var page_PageModel = /** @class */ (function (_super) {
|
|
|
37821
37828
|
});
|
|
37822
37829
|
Object.defineProperty(PageModel.prototype, "cssTitleNumber", {
|
|
37823
37830
|
get: function () {
|
|
37824
|
-
return this.cssClasses.page.number;
|
|
37831
|
+
return this.isPanel ? this.cssClasses.panel.number : this.cssClasses.page.number;
|
|
37825
37832
|
},
|
|
37826
37833
|
enumerable: false,
|
|
37827
37834
|
configurable: true
|
|
@@ -38071,9 +38078,9 @@ var page_PageModel = /** @class */ (function (_super) {
|
|
|
38071
38078
|
}
|
|
38072
38079
|
}
|
|
38073
38080
|
if (this.randomizeElements(this.areQuestionsRandomized)) {
|
|
38074
|
-
var singleQuestion = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.
|
|
38081
|
+
var singleQuestion = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleElement;
|
|
38075
38082
|
if ((singleQuestion === null || singleQuestion === void 0 ? void 0 : singleQuestion.page) === this) {
|
|
38076
|
-
this.survey.
|
|
38083
|
+
this.survey.currentSingleElement = this.elements[0];
|
|
38077
38084
|
}
|
|
38078
38085
|
}
|
|
38079
38086
|
};
|
|
@@ -42408,7 +42415,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
42408
42415
|
if (newPage == this.currentPage)
|
|
42409
42416
|
return;
|
|
42410
42417
|
var oldValue = this.currentPage;
|
|
42411
|
-
if (!this.isShowingPreview && !this.
|
|
42418
|
+
if (!this.isShowingPreview && !this.currentSingleElement && !this.currentPageChanging(newPage, oldValue))
|
|
42412
42419
|
return;
|
|
42413
42420
|
this.setPropertyValue("currentPage", newPage);
|
|
42414
42421
|
if (!!newPage) {
|
|
@@ -42775,9 +42782,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
42775
42782
|
this.onFirstPageIsStartedChanged();
|
|
42776
42783
|
if (goToFirstPage) {
|
|
42777
42784
|
this.currentPage = this.firstVisiblePage;
|
|
42778
|
-
if (this.
|
|
42785
|
+
if (this.currentSingleElement) {
|
|
42779
42786
|
var questions = this.getSingleQuestions();
|
|
42780
|
-
this.
|
|
42787
|
+
this.currentSingleElement = questions.length > 0 ? questions[0] : undefined;
|
|
42781
42788
|
}
|
|
42782
42789
|
}
|
|
42783
42790
|
if (clearData) {
|
|
@@ -42826,7 +42833,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
42826
42833
|
if (this.isCurrentPageRendered === true) {
|
|
42827
42834
|
this.isCurrentPageRendered = false;
|
|
42828
42835
|
}
|
|
42829
|
-
if (!this.
|
|
42836
|
+
if (!this.currentSingleElement) {
|
|
42830
42837
|
var options = this.createPageChangeEventOptions(newValue, oldValue);
|
|
42831
42838
|
this.onCurrentPageChanged.fire(this, options);
|
|
42832
42839
|
}
|
|
@@ -43073,14 +43080,14 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43073
43080
|
* @see completeLastPage
|
|
43074
43081
|
*/
|
|
43075
43082
|
SurveyModel.prototype.nextPage = function () {
|
|
43076
|
-
if (this.
|
|
43083
|
+
if (this.currentSingleElement)
|
|
43077
43084
|
return this.performNext();
|
|
43078
43085
|
if (this.isLastPage)
|
|
43079
43086
|
return false;
|
|
43080
43087
|
return this.doCurrentPageComplete(false);
|
|
43081
43088
|
};
|
|
43082
43089
|
SurveyModel.prototype.performNext = function () {
|
|
43083
|
-
var q = this.
|
|
43090
|
+
var q = this.currentSingleElement;
|
|
43084
43091
|
if (!q)
|
|
43085
43092
|
return this.nextPage();
|
|
43086
43093
|
if (this.validationEnabled && !q.validate(true))
|
|
@@ -43089,21 +43096,28 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43089
43096
|
var index = questions.indexOf(q);
|
|
43090
43097
|
if (index < 0 || index === questions.length - 1)
|
|
43091
43098
|
return false;
|
|
43092
|
-
var
|
|
43093
|
-
|
|
43094
|
-
|
|
43095
|
-
|
|
43099
|
+
var keys = {};
|
|
43100
|
+
if (q.isQuestion) {
|
|
43101
|
+
keys[q.name] = q.value;
|
|
43102
|
+
}
|
|
43103
|
+
else {
|
|
43104
|
+
if (q.isPanel) {
|
|
43105
|
+
keys = q.getValue();
|
|
43106
|
+
}
|
|
43107
|
+
}
|
|
43108
|
+
this.checkTriggers(keys, false, false, true, q.name);
|
|
43109
|
+
this.currentSingleElement = questions[index + 1];
|
|
43096
43110
|
return true;
|
|
43097
43111
|
};
|
|
43098
43112
|
SurveyModel.prototype.performPrevious = function () {
|
|
43099
|
-
var q = this.
|
|
43113
|
+
var q = this.currentSingleElement;
|
|
43100
43114
|
if (!q)
|
|
43101
43115
|
return this.prevPage();
|
|
43102
43116
|
var questions = this.getSingleQuestions();
|
|
43103
43117
|
var index = questions.indexOf(q);
|
|
43104
43118
|
if (index === 0)
|
|
43105
43119
|
return false;
|
|
43106
|
-
this.
|
|
43120
|
+
this.currentSingleElement = questions[index - 1];
|
|
43107
43121
|
return true;
|
|
43108
43122
|
};
|
|
43109
43123
|
SurveyModel.prototype.hasErrorsOnNavigate = function (doComplete) {
|
|
@@ -43361,8 +43375,8 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43361
43375
|
if (!page)
|
|
43362
43376
|
return true;
|
|
43363
43377
|
var res = false;
|
|
43364
|
-
if (this.
|
|
43365
|
-
res = !this.
|
|
43378
|
+
if (this.currentSingleElement) {
|
|
43379
|
+
res = !this.currentSingleElement.validate(true);
|
|
43366
43380
|
}
|
|
43367
43381
|
else {
|
|
43368
43382
|
res = !page.validate(true, isFocuseOnFirstError);
|
|
@@ -43401,7 +43415,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43401
43415
|
*/
|
|
43402
43416
|
SurveyModel.prototype.prevPage = function () {
|
|
43403
43417
|
var _this = this;
|
|
43404
|
-
if (this.
|
|
43418
|
+
if (this.currentSingleElement)
|
|
43405
43419
|
return this.performPrevious();
|
|
43406
43420
|
if (this.isFirstPage || this.state === "starting")
|
|
43407
43421
|
return false;
|
|
@@ -43490,15 +43504,16 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43490
43504
|
* @see state
|
|
43491
43505
|
*/
|
|
43492
43506
|
SurveyModel.prototype.cancelPreview = function (currentPage) {
|
|
43507
|
+
var _a;
|
|
43493
43508
|
if (currentPage === void 0) { currentPage = null; }
|
|
43494
43509
|
if (!this.isShowingPreview)
|
|
43495
43510
|
return;
|
|
43496
43511
|
this.gotoPageFromPreview = currentPage;
|
|
43497
43512
|
this.isShowingPreview = false;
|
|
43498
|
-
var
|
|
43499
|
-
if (!!
|
|
43500
|
-
|
|
43501
|
-
this.currentPage =
|
|
43513
|
+
var page = (_a = this.currentSingleElement) === null || _a === void 0 ? void 0 : _a.page;
|
|
43514
|
+
if (!!page) {
|
|
43515
|
+
page.updateRows();
|
|
43516
|
+
this.currentPage = page;
|
|
43502
43517
|
}
|
|
43503
43518
|
};
|
|
43504
43519
|
SurveyModel.prototype.cancelPreviewByPage = function (panel) {
|
|
@@ -43662,7 +43677,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43662
43677
|
rootPage.setSurveyImpl(this);
|
|
43663
43678
|
this.pageContainerValue = rootPage;
|
|
43664
43679
|
this.currentPage = rootPage;
|
|
43665
|
-
if (!!this.
|
|
43680
|
+
if (!!this.currentSingleElementValue) {
|
|
43666
43681
|
this.visiblePages.forEach(function (page) { return page.updateRows(); });
|
|
43667
43682
|
}
|
|
43668
43683
|
}
|
|
@@ -43692,37 +43707,44 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43692
43707
|
SurveyModel.prototype.getSingleQuestions = function () {
|
|
43693
43708
|
var res = new Array();
|
|
43694
43709
|
var pages = this.pages;
|
|
43695
|
-
|
|
43710
|
+
var _loop_3 = function () {
|
|
43696
43711
|
var p = pages[i];
|
|
43697
43712
|
if (!p.isStartPage && p.isVisible) {
|
|
43698
|
-
var
|
|
43699
|
-
p.addQuestionsToList(qs, true);
|
|
43700
|
-
|
|
43713
|
+
var qs_1 = [];
|
|
43714
|
+
//p.addQuestionsToList(qs, true);
|
|
43715
|
+
p.elements.forEach(function (el) { return qs_1.push(el); });
|
|
43716
|
+
qs_1.forEach(function (q) { if (q.isVisible)
|
|
43701
43717
|
res.push(q); });
|
|
43702
43718
|
}
|
|
43719
|
+
};
|
|
43720
|
+
for (var i = 0; i < pages.length; i++) {
|
|
43721
|
+
_loop_3();
|
|
43703
43722
|
}
|
|
43704
43723
|
return res;
|
|
43705
43724
|
};
|
|
43706
|
-
Object.defineProperty(SurveyModel.prototype, "
|
|
43725
|
+
Object.defineProperty(SurveyModel.prototype, "currentSingleElement", {
|
|
43707
43726
|
get: function () {
|
|
43708
|
-
return !this.isShowingPreview ? this.
|
|
43727
|
+
return !this.isShowingPreview ? this.currentSingleElementValue : undefined;
|
|
43709
43728
|
},
|
|
43710
43729
|
set: function (val) {
|
|
43711
|
-
var
|
|
43730
|
+
var _a;
|
|
43731
|
+
var oldVal = this.currentSingleElement;
|
|
43712
43732
|
if (val !== oldVal && !this.isCompleted) {
|
|
43713
|
-
var
|
|
43733
|
+
var valQuestion = (val === null || val === void 0 ? void 0 : val.isQuestion) ? val : undefined;
|
|
43734
|
+
var oldValQuestion = (oldVal === null || oldVal === void 0 ? void 0 : oldVal.isQuestion) ? oldVal : undefined;
|
|
43735
|
+
var page = (_a = val) === null || _a === void 0 ? void 0 : _a.page;
|
|
43736
|
+
var options = !!page && !!oldVal ? this.createPageChangeEventOptions(page, oldVal.page, valQuestion, oldValQuestion) : undefined;
|
|
43714
43737
|
if (!!options && !this.currentPageChangingFromOptions(options))
|
|
43715
43738
|
return;
|
|
43716
|
-
this.
|
|
43739
|
+
this.currentSingleElementValue = val;
|
|
43717
43740
|
if (!!val) {
|
|
43718
|
-
var page = val.page;
|
|
43719
43741
|
page.updateRows();
|
|
43720
43742
|
if (page !== this.currentPage) {
|
|
43721
43743
|
this.currentPage = page;
|
|
43722
43744
|
}
|
|
43723
43745
|
else {
|
|
43724
|
-
if (this.focusFirstQuestionAutomatic) {
|
|
43725
|
-
|
|
43746
|
+
if (!!valQuestion && this.focusFirstQuestionAutomatic) {
|
|
43747
|
+
valQuestion.focus();
|
|
43726
43748
|
}
|
|
43727
43749
|
}
|
|
43728
43750
|
this.updateButtonsVisibility();
|
|
@@ -43738,10 +43760,21 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43738
43760
|
enumerable: false,
|
|
43739
43761
|
configurable: true
|
|
43740
43762
|
});
|
|
43763
|
+
Object.defineProperty(SurveyModel.prototype, "currentSingleQuestion", {
|
|
43764
|
+
get: function () {
|
|
43765
|
+
var res = this.currentSingleElement;
|
|
43766
|
+
return !!res && res.isQuestion ? res : undefined;
|
|
43767
|
+
},
|
|
43768
|
+
set: function (val) {
|
|
43769
|
+
this.currentSingleElement = val;
|
|
43770
|
+
},
|
|
43771
|
+
enumerable: false,
|
|
43772
|
+
configurable: true
|
|
43773
|
+
});
|
|
43741
43774
|
SurveyModel.prototype.onQuestionsOnPageModeChanged = function (oldValue) {
|
|
43742
43775
|
if (this.isShowingPreview || this.isDesignMode)
|
|
43743
43776
|
return;
|
|
43744
|
-
this.
|
|
43777
|
+
this.currentSingleElement = undefined;
|
|
43745
43778
|
if (oldValue === "singlePage") {
|
|
43746
43779
|
this.updatePagesContainer();
|
|
43747
43780
|
}
|
|
@@ -43751,7 +43784,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43751
43784
|
if (this.isSingleVisibleQuestion) {
|
|
43752
43785
|
var questions = this.getSingleQuestions();
|
|
43753
43786
|
if (questions.length > 0) {
|
|
43754
|
-
this.
|
|
43787
|
+
this.currentSingleElement = questions[0];
|
|
43755
43788
|
}
|
|
43756
43789
|
}
|
|
43757
43790
|
};
|
|
@@ -43843,7 +43876,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43843
43876
|
this.setPropertyValue("isLastPage", !!curPage && curPage === this.lastVisiblePage);
|
|
43844
43877
|
var fVal = undefined;
|
|
43845
43878
|
var lVal = undefined;
|
|
43846
|
-
var q = this.
|
|
43879
|
+
var q = this.currentSingleElement;
|
|
43847
43880
|
if (!!q) {
|
|
43848
43881
|
var questions = this.getSingleQuestions();
|
|
43849
43882
|
var index = questions.indexOf(q);
|
|
@@ -46127,10 +46160,10 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
46127
46160
|
return;
|
|
46128
46161
|
if (!question.validate(false) && !question.supportGoNextPageError())
|
|
46129
46162
|
return;
|
|
46130
|
-
if (!!this.
|
|
46131
|
-
var curQuestion_1 = this.
|
|
46163
|
+
if (!!this.currentSingleElement) {
|
|
46164
|
+
var curQuestion_1 = this.currentSingleElement;
|
|
46132
46165
|
var goNextQuestion = function () {
|
|
46133
|
-
if (curQuestion_1 !== _this.
|
|
46166
|
+
if (curQuestion_1 !== _this.currentSingleElement)
|
|
46134
46167
|
return;
|
|
46135
46168
|
if (!_this.isLastElement) {
|
|
46136
46169
|
_this.performNext();
|
|
@@ -47146,7 +47179,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
47146
47179
|
if (isNeedWaitForPageRendered) {
|
|
47147
47180
|
this.currentPage = question.page;
|
|
47148
47181
|
if (this.isSingleVisibleQuestion && !this.isDesignMode) {
|
|
47149
|
-
this.
|
|
47182
|
+
this.currentSingleElement = question;
|
|
47150
47183
|
}
|
|
47151
47184
|
}
|
|
47152
47185
|
if (!isNeedWaitForPageRendered) {
|
|
@@ -52855,7 +52888,8 @@ var question_matrix_MatrixCells = /** @class */ (function (_super) {
|
|
|
52855
52888
|
var rowValues = this.values[row];
|
|
52856
52889
|
for (var col in rowValues) {
|
|
52857
52890
|
if (row === this.defaultRowValue || !defaultRow || defaultRow[col] !== rowValues[col]) {
|
|
52858
|
-
|
|
52891
|
+
var loc = this.getCellLocCore(row, col);
|
|
52892
|
+
resRow[col] = loc ? loc.getJson() : rowValues[col];
|
|
52859
52893
|
}
|
|
52860
52894
|
}
|
|
52861
52895
|
res[row] = resRow;
|
|
@@ -71129,9 +71163,9 @@ Serializer.addClass("currencymask", [
|
|
|
71129
71163
|
|
|
71130
71164
|
var Version;
|
|
71131
71165
|
var ReleaseDate;
|
|
71132
|
-
Version = "" + "1.12.
|
|
71166
|
+
Version = "" + "1.12.28";
|
|
71133
71167
|
settings.version = Version;
|
|
71134
|
-
ReleaseDate = "" + "2025-03-
|
|
71168
|
+
ReleaseDate = "" + "2025-03-18";
|
|
71135
71169
|
function checkLibraryVersion(ver, libraryName) {
|
|
71136
71170
|
if (Version != ver) {
|
|
71137
71171
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|