survey-react 1.12.18 → 1.12.19
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.d.ts +1 -0
- package/survey.react.js +34 -10
- 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.d.ts
CHANGED
@@ -12410,6 +12410,7 @@ declare module "packages/survey-core/src/survey" {
|
|
12410
12410
|
protected doOnPageRemoved(page: PageModel): void;
|
12411
12411
|
private generateNewName;
|
12412
12412
|
protected tryGoNextPageAutomatic(name: string): void;
|
12413
|
+
private tryCompleteOrShowPreview;
|
12413
12414
|
/**
|
12414
12415
|
* Returns a comment value from a question with a specified `name`.
|
12415
12416
|
* @param name A question name.
|
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.19
|
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
|
*/
|
@@ -28801,6 +28801,7 @@ var question_matrixdropdownrendered_QuestionMatrixDropdownRenderedTable = /** @c
|
|
28801
28801
|
var res = new question_matrixdropdownrendered_QuestionMatrixDropdownRenderedCell();
|
28802
28802
|
res.cell = cell;
|
28803
28803
|
res.row = cell.row;
|
28804
|
+
res.column = cell.column;
|
28804
28805
|
res.question = cell.question;
|
28805
28806
|
res.matrix = this.matrix;
|
28806
28807
|
res.item = choiceItem;
|
@@ -37896,8 +37897,10 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
|
|
37896
37897
|
PanelModelBase.prototype.onElementStartWithNewLineChanged = function (element) {
|
37897
37898
|
if (this.locCountRowUpdates > 0)
|
37898
37899
|
return;
|
37900
|
+
this.blockAnimations();
|
37899
37901
|
this.updateRowsBeforeElementRemoved(element);
|
37900
37902
|
this.updateRowsOnElementAdded(element);
|
37903
|
+
this.releaseAnimations();
|
37901
37904
|
};
|
37902
37905
|
PanelModelBase.prototype.updateRowsVisibility = function (element) {
|
37903
37906
|
var rows = this.rows;
|
@@ -47620,6 +47623,22 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
47620
47623
|
return;
|
47621
47624
|
if (!question.validate(false) && !question.supportGoNextPageError())
|
47622
47625
|
return;
|
47626
|
+
if (!!this.currentSingleQuestion) {
|
47627
|
+
var curQuestion_1 = this.currentSingleQuestion;
|
47628
|
+
var goNextQuestion = function () {
|
47629
|
+
if (curQuestion_1 !== _this.currentSingleQuestion)
|
47630
|
+
return;
|
47631
|
+
if (!_this.isLastElement) {
|
47632
|
+
_this.performNext();
|
47633
|
+
}
|
47634
|
+
else {
|
47635
|
+
if (_this.allowCompleteSurveyAutomatic) {
|
47636
|
+
_this.tryCompleteOrShowPreview();
|
47637
|
+
}
|
47638
|
+
}
|
47639
|
+
};
|
47640
|
+
surveyTimerFunctions.safeTimeOut(goNextQuestion, settings.autoAdvanceDelay);
|
47641
|
+
}
|
47623
47642
|
var questions = this.getCurrentPageQuestions();
|
47624
47643
|
if (questions.indexOf(question) < 0)
|
47625
47644
|
return;
|
@@ -47639,16 +47658,19 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
47639
47658
|
_this.nextPage();
|
47640
47659
|
}
|
47641
47660
|
else {
|
47642
|
-
|
47643
|
-
_this.showPreview();
|
47644
|
-
}
|
47645
|
-
else {
|
47646
|
-
_this.tryComplete();
|
47647
|
-
}
|
47661
|
+
_this.tryCompleteOrShowPreview();
|
47648
47662
|
}
|
47649
47663
|
};
|
47650
47664
|
surveyTimerFunctions.safeTimeOut(goNextPage, settings.autoAdvanceDelay);
|
47651
47665
|
};
|
47666
|
+
SurveyModel.prototype.tryCompleteOrShowPreview = function () {
|
47667
|
+
if (this.isShowPreviewBeforeComplete) {
|
47668
|
+
this.showPreview();
|
47669
|
+
}
|
47670
|
+
else {
|
47671
|
+
this.tryComplete();
|
47672
|
+
}
|
47673
|
+
};
|
47652
47674
|
/**
|
47653
47675
|
* Returns a comment value from a question with a specified `name`.
|
47654
47676
|
* @param name A question name.
|
@@ -72518,9 +72540,9 @@ Serializer.addClass("currencymask", [
|
|
72518
72540
|
|
72519
72541
|
var Version;
|
72520
72542
|
var ReleaseDate;
|
72521
|
-
Version = "" + "1.12.
|
72543
|
+
Version = "" + "1.12.19";
|
72522
72544
|
settings.version = Version;
|
72523
|
-
ReleaseDate = "" + "2025-01-
|
72545
|
+
ReleaseDate = "" + "2025-01-15";
|
72524
72546
|
function checkLibraryVersion(ver, libraryName) {
|
72525
72547
|
if (Version != ver) {
|
72526
72548
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -89125,7 +89147,9 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell = /** @cla
|
|
89125
89147
|
};
|
89126
89148
|
SurveyQuestionMatrixDropdownCell.prototype.renderCellContent = function () {
|
89127
89149
|
var content = _super.prototype.renderCellContent.call(this);
|
89128
|
-
var responsiveTitle = this.cell.showResponsiveTitle ? (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.cell.responsiveTitleCss },
|
89150
|
+
var responsiveTitle = this.cell.showResponsiveTitle ? (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.cell.responsiveTitleCss },
|
89151
|
+
this.renderLocString(this.cell.responsiveLocTitle),
|
89152
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](reactquestion_matrixdropdownbase_SurveyQuestionMatrixHeaderRequired, { column: this.cell.column, question: this.cell.matrix }))) : null;
|
89129
89153
|
return external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](external_root_React_commonjs2_react_commonjs_react_amd_react_["Fragment"], null,
|
89130
89154
|
responsiveTitle,
|
89131
89155
|
content);
|