survey-core 1.12.16 → 1.12.17
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.fontless.css +1 -1
- package/defaultV2.fontless.min.css +1 -1
- package/defaultV2.min.css +1 -1
- 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/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 +1 -1
- package/i18n/index.min.js +1 -1
- 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 +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.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 +157 -80
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- 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 +1 -0
- package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/panel.d.ts +3 -2
- package/ts3.4/typings/packages/survey-core/src/question.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_imagepicker.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/survey-events-api.d.ts +38 -10
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +47 -25
- package/ts3.4/typings/packages/survey-core/src/utils/utils.d.ts +1 -1
- package/typings/packages/survey-core/src/base-interfaces.d.ts +1 -0
- package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
- package/typings/packages/survey-core/src/panel.d.ts +3 -2
- package/typings/packages/survey-core/src/question.d.ts +1 -1
- package/typings/packages/survey-core/src/question_imagepicker.d.ts +1 -0
- package/typings/packages/survey-core/src/survey-events-api.d.ts +38 -10
- package/typings/packages/survey-core/src/survey.d.ts +47 -25
- package/typings/packages/survey-core/src/utils/utils.d.ts +1 -1
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.17
|
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -10185,13 +10185,13 @@ var list_ListModel = /** @class */ (function (_super) {
|
|
|
10185
10185
|
var _this = this;
|
|
10186
10186
|
this.isEmpty = this.renderedActions.filter(function (action) { return _this.isItemVisible(action); }).length === 0;
|
|
10187
10187
|
};
|
|
10188
|
-
ListModel.prototype.scrollToItem = function (
|
|
10188
|
+
ListModel.prototype.scrollToItem = function (classes, ms) {
|
|
10189
10189
|
var _this = this;
|
|
10190
10190
|
if (ms === void 0) { ms = 0; }
|
|
10191
10191
|
setTimeout(function () {
|
|
10192
10192
|
if (!_this.listContainerHtmlElement)
|
|
10193
10193
|
return;
|
|
10194
|
-
var item = _this.listContainerHtmlElement.querySelector(
|
|
10194
|
+
var item = _this.listContainerHtmlElement.querySelector(classesToSelector(classes));
|
|
10195
10195
|
if (item) {
|
|
10196
10196
|
setTimeout(function () {
|
|
10197
10197
|
item.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "start" });
|
|
@@ -10259,7 +10259,7 @@ var list_ListModel = /** @class */ (function (_super) {
|
|
|
10259
10259
|
});
|
|
10260
10260
|
Object.defineProperty(ListModel.prototype, "scrollableContainer", {
|
|
10261
10261
|
get: function () {
|
|
10262
|
-
return this.listContainerHtmlElement.querySelector(
|
|
10262
|
+
return this.listContainerHtmlElement.querySelector(classesToSelector(this.cssClasses.itemsContainer));
|
|
10263
10263
|
},
|
|
10264
10264
|
enumerable: false,
|
|
10265
10265
|
configurable: true
|
|
@@ -13265,11 +13265,11 @@ var survey_element_SurveyElement = /** @class */ (function (_super) {
|
|
|
13265
13265
|
var columns = this.parent.getColumsForElement(this);
|
|
13266
13266
|
_width = columns.reduce(function (sum, col) { return col.effectiveWidth + sum; }, 0);
|
|
13267
13267
|
if (!!_width && _width !== 100) {
|
|
13268
|
-
style["flexGrow"] =
|
|
13268
|
+
style["flexGrow"] = 1;
|
|
13269
13269
|
style["flexShrink"] = 0;
|
|
13270
13270
|
style["flexBasis"] = _width + "%";
|
|
13271
13271
|
style["minWidth"] = undefined;
|
|
13272
|
-
style["maxWidth"] =
|
|
13272
|
+
style["maxWidth"] = this.maxWidth;
|
|
13273
13273
|
}
|
|
13274
13274
|
}
|
|
13275
13275
|
if (Object.keys(style).length == 0) {
|
|
@@ -14992,8 +14992,8 @@ function cleanHtmlElementAfterAnimation(el) {
|
|
|
14992
14992
|
delete el["__sv_created_properties"];
|
|
14993
14993
|
}
|
|
14994
14994
|
}
|
|
14995
|
-
function
|
|
14996
|
-
return Math.
|
|
14995
|
+
function floorTo2Decimals(number) {
|
|
14996
|
+
return Math.floor(number * 100) / 100;
|
|
14997
14997
|
}
|
|
14998
14998
|
|
|
14999
14999
|
|
|
@@ -19520,7 +19520,7 @@ var question_Question = /** @class */ (function (_super) {
|
|
|
19520
19520
|
/**
|
|
19521
19521
|
* A correct answer to this question. Specify this property if you want to [create a quiz](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
|
|
19522
19522
|
* @see SurveyModel.getCorrectAnswerCount
|
|
19523
|
-
* @see SurveyModel.
|
|
19523
|
+
* @see SurveyModel.getIncorrectAnswerCount
|
|
19524
19524
|
*/
|
|
19525
19525
|
get: function () {
|
|
19526
19526
|
return this.getPropertyValue("correctAnswer");
|
|
@@ -19569,7 +19569,14 @@ var question_Question = /** @class */ (function (_super) {
|
|
|
19569
19569
|
Question.prototype.checkIfAnswerCorrect = function () {
|
|
19570
19570
|
var isEqual = helpers_Helpers.isTwoValueEquals(this.value, this.correctAnswer, this.getAnswerCorrectIgnoreOrder(), settings.comparator.caseSensitive, true);
|
|
19571
19571
|
var correct = isEqual ? 1 : 0;
|
|
19572
|
-
var
|
|
19572
|
+
var incorrect = this.quizQuestionCount - correct;
|
|
19573
|
+
var options = {
|
|
19574
|
+
result: isEqual,
|
|
19575
|
+
correctAnswers: correct,
|
|
19576
|
+
correctAnswerCount: correct,
|
|
19577
|
+
incorrectAnswers: incorrect,
|
|
19578
|
+
incorrectAnswerCount: incorrect,
|
|
19579
|
+
};
|
|
19573
19580
|
if (!!this.survey) {
|
|
19574
19581
|
this.survey.onCorrectQuestionAnswer(this, options);
|
|
19575
19582
|
}
|
|
@@ -33197,6 +33204,7 @@ var defaultV2Css = {
|
|
|
33197
33204
|
itemBody: "sv-list__item-body sd-list__item-body",
|
|
33198
33205
|
itemSelected: "sv-list__item--selected sd-list__item--selected",
|
|
33199
33206
|
itemFocused: "sv-list__item--focused sd-list__item--focused",
|
|
33207
|
+
itemHovered: "sv-list__item--hovered sd-list__item--hovered",
|
|
33200
33208
|
},
|
|
33201
33209
|
actionBar: {
|
|
33202
33210
|
root: "sd-action-bar",
|
|
@@ -34850,7 +34858,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
|
|
|
34850
34858
|
_this.isRandomizing = false;
|
|
34851
34859
|
_this.onColumnPropertyValueChangedCallback = function (name, oldValue, newValue, sender, arrayChanges) {
|
|
34852
34860
|
if (_this._columnsReady) {
|
|
34853
|
-
_this.updateColumnWidth(_this.
|
|
34861
|
+
_this.updateColumnWidth(_this.gridLayoutColumns);
|
|
34854
34862
|
_this.updateRootStyle();
|
|
34855
34863
|
}
|
|
34856
34864
|
};
|
|
@@ -34894,7 +34902,8 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
|
|
|
34894
34902
|
isAnimationEnabled: function () { return _this.animationAllowed; },
|
|
34895
34903
|
getAnimatedElement: function (row) { return row.getRootElement(); },
|
|
34896
34904
|
getLeaveOptions: function (row, info) {
|
|
34897
|
-
return {
|
|
34905
|
+
return {
|
|
34906
|
+
cssClass: _this.cssClasses.rowLeave,
|
|
34898
34907
|
onBeforeRunAnimation: prepareElementForVerticalAnimation,
|
|
34899
34908
|
onAfterRunAnimation: cleanHtmlElementAfterAnimation,
|
|
34900
34909
|
};
|
|
@@ -34947,7 +34956,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
|
|
|
34947
34956
|
this.updateDescriptionVisibility(this.description);
|
|
34948
34957
|
this.markQuestionListDirty();
|
|
34949
34958
|
this.onRowsChanged();
|
|
34950
|
-
this.
|
|
34959
|
+
this.gridLayoutColumns.forEach(function (col) {
|
|
34951
34960
|
col.onPropertyValueChangedCallback = _this.onColumnPropertyValueChangedCallback;
|
|
34952
34961
|
});
|
|
34953
34962
|
};
|
|
@@ -35775,7 +35784,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
|
|
|
35775
35784
|
}
|
|
35776
35785
|
});
|
|
35777
35786
|
if (!!remainingColCount) {
|
|
35778
|
-
var oneColumnWidth =
|
|
35787
|
+
var oneColumnWidth = floorTo2Decimals((100 - remainingSpace) / remainingColCount);
|
|
35779
35788
|
for (var index = 0; index < columns.length; index++) {
|
|
35780
35789
|
if (!columns[index].width) {
|
|
35781
35790
|
columns[index].setPropertyValue("effectiveWidth", oneColumnWidth);
|
|
@@ -35864,12 +35873,12 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
|
|
|
35864
35873
|
});
|
|
35865
35874
|
PanelModelBase.prototype.generateColumns = function () {
|
|
35866
35875
|
var maxRowColSpan = this.calcMaxRowColSpan();
|
|
35867
|
-
var columns = [].concat(this.
|
|
35868
|
-
if (maxRowColSpan <= this.
|
|
35869
|
-
columns = this.
|
|
35876
|
+
var columns = [].concat(this.gridLayoutColumns);
|
|
35877
|
+
if (maxRowColSpan <= this.gridLayoutColumns.length) {
|
|
35878
|
+
columns = this.gridLayoutColumns.slice(0, maxRowColSpan);
|
|
35870
35879
|
}
|
|
35871
35880
|
else {
|
|
35872
|
-
for (var index = this.
|
|
35881
|
+
for (var index = this.gridLayoutColumns.length; index < maxRowColSpan; index++) {
|
|
35873
35882
|
var newCol = new panel_layout_column_PanelLayoutColumnModel();
|
|
35874
35883
|
newCol.onPropertyValueChangedCallback = this.onColumnPropertyValueChangedCallback;
|
|
35875
35884
|
columns.push(newCol);
|
|
@@ -35883,7 +35892,13 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
|
|
|
35883
35892
|
finally {
|
|
35884
35893
|
this._columnsReady = true;
|
|
35885
35894
|
}
|
|
35886
|
-
this.
|
|
35895
|
+
this.gridLayoutColumns = columns;
|
|
35896
|
+
};
|
|
35897
|
+
PanelModelBase.prototype.updateGridColumns = function () {
|
|
35898
|
+
this.updateColumns();
|
|
35899
|
+
this.elements.forEach(function (el) {
|
|
35900
|
+
el.isPanel && el.updateGridColumns();
|
|
35901
|
+
});
|
|
35887
35902
|
};
|
|
35888
35903
|
PanelModelBase.prototype.getColumsForElement = function (el) {
|
|
35889
35904
|
var row = this.findRowByElement(el);
|
|
@@ -36739,13 +36754,13 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
|
|
|
36739
36754
|
};
|
|
36740
36755
|
PanelModelBase.prototype.getSerializableColumnsValue = function () {
|
|
36741
36756
|
var tailIndex = -1;
|
|
36742
|
-
for (var index = this.
|
|
36743
|
-
if (!this.
|
|
36757
|
+
for (var index = this.gridLayoutColumns.length - 1; index >= 0; index--) {
|
|
36758
|
+
if (!this.gridLayoutColumns[index].isEmpty()) {
|
|
36744
36759
|
tailIndex = index;
|
|
36745
36760
|
break;
|
|
36746
36761
|
}
|
|
36747
36762
|
}
|
|
36748
|
-
return this.
|
|
36763
|
+
return this.gridLayoutColumns.slice(0, tailIndex + 1);
|
|
36749
36764
|
};
|
|
36750
36765
|
PanelModelBase.prototype.afterRender = function (el) {
|
|
36751
36766
|
this.afterRenderCore(el);
|
|
@@ -36769,7 +36784,7 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
|
|
|
36769
36784
|
PanelModelBase.panelCounter = 100;
|
|
36770
36785
|
panel_decorate([
|
|
36771
36786
|
propertyArray()
|
|
36772
|
-
], PanelModelBase.prototype, "
|
|
36787
|
+
], PanelModelBase.prototype, "gridLayoutColumns", void 0);
|
|
36773
36788
|
panel_decorate([
|
|
36774
36789
|
jsonobject_property({ defaultValue: true })
|
|
36775
36790
|
], PanelModelBase.prototype, "showTitle", void 0);
|
|
@@ -36942,13 +36957,18 @@ var panel_PanelModel = /** @class */ (function (_super) {
|
|
|
36942
36957
|
* @see visibleIf
|
|
36943
36958
|
*/
|
|
36944
36959
|
get: function () {
|
|
36945
|
-
|
|
36960
|
+
var _this = this;
|
|
36961
|
+
return this.getPropertyValue("no", undefined, function () { return _this.calcNo(); });
|
|
36946
36962
|
},
|
|
36947
36963
|
enumerable: false,
|
|
36948
36964
|
configurable: true
|
|
36949
36965
|
});
|
|
36950
|
-
PanelModel.prototype.
|
|
36951
|
-
|
|
36966
|
+
PanelModel.prototype.calcNo = function () {
|
|
36967
|
+
var no = helpers_Helpers.getNumberByIndex(this.visibleIndex, this.getStartIndex());
|
|
36968
|
+
if (this.survey) {
|
|
36969
|
+
no = this.survey.getUpdatedPanelNo(this, no);
|
|
36970
|
+
}
|
|
36971
|
+
return no || "";
|
|
36952
36972
|
};
|
|
36953
36973
|
PanelModel.prototype.notifyStateChanged = function (prevState) {
|
|
36954
36974
|
if (!this.isLoadingFromJson) {
|
|
@@ -36975,7 +36995,7 @@ var panel_PanelModel = /** @class */ (function (_super) {
|
|
|
36975
36995
|
visibleIndex = index;
|
|
36976
36996
|
}
|
|
36977
36997
|
this.setPropertyValue("visibleIndex", visibleIndex);
|
|
36978
|
-
this.
|
|
36998
|
+
this.resetPropertyValue("no");
|
|
36979
36999
|
return visibleIndex < 0 ? 0 : 1;
|
|
36980
37000
|
};
|
|
36981
37001
|
PanelModel.prototype.getPanelStartIndex = function (index) {
|
|
@@ -37263,7 +37283,7 @@ Serializer.addClass("panelbase", [
|
|
|
37263
37283
|
choices: ["default", "top", "bottom", "left", "hidden"],
|
|
37264
37284
|
},
|
|
37265
37285
|
{
|
|
37266
|
-
name: "
|
|
37286
|
+
name: "gridLayoutColumns:panellayoutcolumns",
|
|
37267
37287
|
className: "panellayoutcolumn", isArray: true,
|
|
37268
37288
|
onSerializeValue: function (obj) { return obj.getSerializableColumnsValue(); },
|
|
37269
37289
|
visibleIf: function (obj) { return !!obj && !!obj.survey && obj.survey.gridLayoutEnabled; }
|
|
@@ -38794,9 +38814,16 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
38794
38814
|
*/
|
|
38795
38815
|
_this.onGetQuestionNumber = _this.addEvent();
|
|
38796
38816
|
/**
|
|
38797
|
-
*
|
|
38817
|
+
* Obsolete. Use the [`onGetQuestionNumber`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetQuestionNumber) event instead.
|
|
38818
|
+
* @deprecated
|
|
38798
38819
|
*/
|
|
38799
38820
|
_this.onGetQuestionNo = _this.onGetQuestionNumber;
|
|
38821
|
+
/**
|
|
38822
|
+
* An event that is raised before the survey calculates a panel number. Handle this event to modify panel numbers.
|
|
38823
|
+
*
|
|
38824
|
+
* This event is raised only for the panels with a [specified title](https://surveyjs.io/form-library/documentation/api-reference/panel-model#title) and [visible number](https://surveyjs.io/form-library/documentation/api-reference/panel-model#showNumber).
|
|
38825
|
+
*/
|
|
38826
|
+
_this.onGetPanelNumber = _this.addEvent();
|
|
38800
38827
|
/**
|
|
38801
38828
|
* An event that is raised before the survey calculates a page number. Handle this event to modify page numbers.
|
|
38802
38829
|
*
|
|
@@ -38812,7 +38839,12 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
38812
38839
|
* @see showProgressBar
|
|
38813
38840
|
* @see progressBarType
|
|
38814
38841
|
*/
|
|
38815
|
-
_this.
|
|
38842
|
+
_this.onGetProgressText = _this.addEvent();
|
|
38843
|
+
/**
|
|
38844
|
+
* Obsolete. Use the [`onGetProgressText`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetProgressText) event instead.
|
|
38845
|
+
* @deprecated
|
|
38846
|
+
*/
|
|
38847
|
+
_this.onProgressText = _this.onGetProgressText;
|
|
38816
38848
|
/**
|
|
38817
38849
|
* An event that is raised to convert Markdown content to HTML.
|
|
38818
38850
|
*
|
|
@@ -39014,7 +39046,8 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
39014
39046
|
*/
|
|
39015
39047
|
_this.onMatrixRowAdding = _this.addEvent();
|
|
39016
39048
|
/**
|
|
39017
|
-
*
|
|
39049
|
+
* Obsolete. Use the [`onMatrixRowAdding`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRowAdding) event instead.
|
|
39050
|
+
* @deprecated
|
|
39018
39051
|
*/
|
|
39019
39052
|
_this.onMatrixBeforeRowAdded = _this.onMatrixRowAdding;
|
|
39020
39053
|
/**
|
|
@@ -39034,7 +39067,8 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
39034
39067
|
*/
|
|
39035
39068
|
_this.onMatrixRenderRemoveButton = _this.addEvent();
|
|
39036
39069
|
/**
|
|
39037
|
-
*
|
|
39070
|
+
* Obsolete. Use the [`onMatrixRenderRemoveButton`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRenderRemoveButton) event instead.
|
|
39071
|
+
* @deprecated
|
|
39038
39072
|
*/
|
|
39039
39073
|
_this.onMatrixAllowRemoveRow = _this.onMatrixRenderRemoveButton;
|
|
39040
39074
|
/**
|
|
@@ -39057,7 +39091,8 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
39057
39091
|
*/
|
|
39058
39092
|
_this.onAfterRenderMatrixCell = _this.addEvent();
|
|
39059
39093
|
/**
|
|
39060
|
-
*
|
|
39094
|
+
* Obsolete. Use the [`onAfterRenderMatrixCell`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onAfterRenderMatrixCell) event instead.
|
|
39095
|
+
* @deprecated
|
|
39061
39096
|
*/
|
|
39062
39097
|
_this.onMatrixAfterCellRender = _this.onAfterRenderMatrixCell;
|
|
39063
39098
|
/**
|
|
@@ -39131,7 +39166,12 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
39131
39166
|
/**
|
|
39132
39167
|
* An event that is raised to define whether a question answer is correct. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
|
|
39133
39168
|
*/
|
|
39134
|
-
_this.
|
|
39169
|
+
_this.onCheckAnswerCorrect = _this.addEvent();
|
|
39170
|
+
/**
|
|
39171
|
+
* Obsolete. Use the [`onCheckAnswerCorrect`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onCheckAnswerCorrect) event instead.
|
|
39172
|
+
* @deprecated
|
|
39173
|
+
*/
|
|
39174
|
+
_this.onIsAnswerCorrect = _this.onCheckAnswerCorrect;
|
|
39135
39175
|
/**
|
|
39136
39176
|
* An event that is raised when users drag and drop survey elements while designing the survey in [Survey Creator](https://surveyjs.io/survey-creator/documentation/overview). Use this event to control drag and drop operations.
|
|
39137
39177
|
* @see isDesignMode
|
|
@@ -39140,7 +39180,12 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
39140
39180
|
/**
|
|
39141
39181
|
* An event this is raised before a survey element (usually page) is scrolled to the top. Use this event to cancel the scroll operation.
|
|
39142
39182
|
*/
|
|
39143
|
-
_this.
|
|
39183
|
+
_this.onScrollToTop = _this.addEvent();
|
|
39184
|
+
/**
|
|
39185
|
+
* Obsolete. Use the [`onScrollToTop`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onScrollToTop) event instead.
|
|
39186
|
+
* @deprecated
|
|
39187
|
+
*/
|
|
39188
|
+
_this.onScrollingElementToTop = _this.onScrollToTop;
|
|
39144
39189
|
_this.onLocaleChangedEvent = _this.addEvent();
|
|
39145
39190
|
/**
|
|
39146
39191
|
* An event that allows you to add, delete, or modify actions in a question title.
|
|
@@ -39179,9 +39224,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
39179
39224
|
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
39180
39225
|
*/
|
|
39181
39226
|
_this.onGetMatrixRowActions = _this.addEvent();
|
|
39182
|
-
/**
|
|
39183
|
-
* An event that is raised after a survey element is [expanded or collapsed](https://surveyjs.io/form-library/documentation/api-reference/question#state).
|
|
39184
|
-
*/
|
|
39185
39227
|
_this.onElementContentVisibilityChanged = _this.addEvent();
|
|
39186
39228
|
/**
|
|
39187
39229
|
* An event that is raised before an [Expression](https://surveyjs.io/form-library/documentation/api-reference/expression-model) question displays a value. Use this event to override the display value.
|
|
@@ -39355,7 +39397,10 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
39355
39397
|
_this.onGetQuestionNumber.onCallbacksChanged = function () {
|
|
39356
39398
|
_this.resetVisibleIndexes();
|
|
39357
39399
|
};
|
|
39358
|
-
_this.
|
|
39400
|
+
_this.onGetPanelNumber.onCallbacksChanged = function () {
|
|
39401
|
+
_this.resetVisibleIndexes();
|
|
39402
|
+
};
|
|
39403
|
+
_this.onGetProgressText.onCallbacksChanged = function () {
|
|
39359
39404
|
_this.updateProgressText();
|
|
39360
39405
|
};
|
|
39361
39406
|
_this.onTextMarkdown.onCallbacksChanged = function () {
|
|
@@ -41425,6 +41470,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
41425
41470
|
this.onGetQuestionNumber.fire(this, options);
|
|
41426
41471
|
return options.no === no ? options.number : options.no;
|
|
41427
41472
|
};
|
|
41473
|
+
SurveyModel.prototype.getUpdatedPanelNo = function (panel, no) {
|
|
41474
|
+
if (this.onGetPanelNumber.isEmpty)
|
|
41475
|
+
return no;
|
|
41476
|
+
var options = { panel: panel, number: no };
|
|
41477
|
+
this.onGetPanelNumber.fire(this, options);
|
|
41478
|
+
return options.number;
|
|
41479
|
+
};
|
|
41428
41480
|
SurveyModel.prototype.getUpdatedPageNo = function (page, no) {
|
|
41429
41481
|
if (this.onGetPageNumber.isEmpty)
|
|
41430
41482
|
return no;
|
|
@@ -42812,7 +42864,8 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
42812
42864
|
};
|
|
42813
42865
|
Object.defineProperty(SurveyModel.prototype, "ignoreValidation", {
|
|
42814
42866
|
/**
|
|
42815
|
-
*
|
|
42867
|
+
* Obsolete. Use the [`validationEnabled`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#validationEnabled) property instead.
|
|
42868
|
+
* @deprecated
|
|
42816
42869
|
*/
|
|
42817
42870
|
get: function () { return !this.validationEnabled; },
|
|
42818
42871
|
set: function (val) { this.validationEnabled = !val; },
|
|
@@ -43167,7 +43220,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43167
43220
|
* @see isCurrentPageValid
|
|
43168
43221
|
* @see nextPage
|
|
43169
43222
|
*/
|
|
43170
|
-
SurveyModel.prototype.
|
|
43223
|
+
SurveyModel.prototype.tryComplete = function () {
|
|
43171
43224
|
if (this.isValidateOnComplete) {
|
|
43172
43225
|
this.cancelPreview();
|
|
43173
43226
|
}
|
|
@@ -43177,6 +43230,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43177
43230
|
}
|
|
43178
43231
|
return res;
|
|
43179
43232
|
};
|
|
43233
|
+
/**
|
|
43234
|
+
* Obsolete. Use the [`tryComplete`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#tryComplete) method instead.
|
|
43235
|
+
* @deprecated
|
|
43236
|
+
*/
|
|
43237
|
+
SurveyModel.prototype.completeLastPage = function () {
|
|
43238
|
+
return this.tryComplete();
|
|
43239
|
+
};
|
|
43180
43240
|
SurveyModel.prototype.navigationMouseDown = function () {
|
|
43181
43241
|
this.isNavigationButtonPressed = true;
|
|
43182
43242
|
return true;
|
|
@@ -43948,7 +44008,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43948
44008
|
};
|
|
43949
44009
|
Object.defineProperty(SurveyModel.prototype, "progressText", {
|
|
43950
44010
|
/**
|
|
43951
|
-
* Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`
|
|
44011
|
+
* Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`onGetProgressText`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetProgressText) event to change this text.
|
|
43952
44012
|
* @see progressValue
|
|
43953
44013
|
* @see showProgressBar
|
|
43954
44014
|
* @see progressBarType
|
|
@@ -43970,7 +44030,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43970
44030
|
return;
|
|
43971
44031
|
if (onValueChanged &&
|
|
43972
44032
|
this.progressBarType == "pages" &&
|
|
43973
|
-
this.
|
|
44033
|
+
this.onGetProgressText.isEmpty)
|
|
43974
44034
|
return;
|
|
43975
44035
|
this.isCalculatingProgressText = true;
|
|
43976
44036
|
this.setPropertyValue("progressText", this.getProgressText());
|
|
@@ -43991,7 +44051,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43991
44051
|
if (type === "questions" ||
|
|
43992
44052
|
type === "requiredquestions" ||
|
|
43993
44053
|
type === "correctquestions" ||
|
|
43994
|
-
!this.
|
|
44054
|
+
!this.onGetProgressText.isEmpty) {
|
|
43995
44055
|
var info = this.getProgressInfo();
|
|
43996
44056
|
options.questionCount = info.questionCount;
|
|
43997
44057
|
options.answeredQuestionCount = info.answeredQuestionCount;
|
|
@@ -44000,7 +44060,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
44000
44060
|
info.requiredAnsweredQuestionCount;
|
|
44001
44061
|
}
|
|
44002
44062
|
options.text = this.getProgressTextCore(options);
|
|
44003
|
-
this.
|
|
44063
|
+
this.onGetProgressText.fire(this, options);
|
|
44004
44064
|
return options.text;
|
|
44005
44065
|
};
|
|
44006
44066
|
SurveyModel.prototype.getProgressTextCore = function (info) {
|
|
@@ -44385,29 +44445,39 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
44385
44445
|
return this.getUpdatedPanelTitleActions(element, titleActions);
|
|
44386
44446
|
return this.getUpdatedQuestionTitleActions(element, titleActions);
|
|
44387
44447
|
};
|
|
44448
|
+
SurveyModel.prototype.getTitleActionsResult = function (titleActions, options) {
|
|
44449
|
+
if (titleActions != options.actions)
|
|
44450
|
+
return options.actions;
|
|
44451
|
+
if (titleActions != options.titleActions)
|
|
44452
|
+
return options.titleActions;
|
|
44453
|
+
return titleActions;
|
|
44454
|
+
};
|
|
44388
44455
|
SurveyModel.prototype.getUpdatedQuestionTitleActions = function (question, titleActions) {
|
|
44389
44456
|
var options = {
|
|
44390
44457
|
question: question,
|
|
44458
|
+
actions: titleActions,
|
|
44391
44459
|
titleActions: titleActions,
|
|
44392
44460
|
};
|
|
44393
44461
|
this.onGetQuestionTitleActions.fire(this, options);
|
|
44394
|
-
return
|
|
44462
|
+
return this.getTitleActionsResult(titleActions, options);
|
|
44395
44463
|
};
|
|
44396
44464
|
SurveyModel.prototype.getUpdatedPanelTitleActions = function (panel, titleActions) {
|
|
44397
44465
|
var options = {
|
|
44398
44466
|
panel: panel,
|
|
44467
|
+
actions: titleActions,
|
|
44399
44468
|
titleActions: titleActions,
|
|
44400
44469
|
};
|
|
44401
44470
|
this.onGetPanelTitleActions.fire(this, options);
|
|
44402
|
-
return
|
|
44471
|
+
return this.getTitleActionsResult(titleActions, options);
|
|
44403
44472
|
};
|
|
44404
44473
|
SurveyModel.prototype.getUpdatedPageTitleActions = function (page, titleActions) {
|
|
44405
44474
|
var options = {
|
|
44406
44475
|
page: page,
|
|
44476
|
+
actions: titleActions,
|
|
44407
44477
|
titleActions: titleActions,
|
|
44408
44478
|
};
|
|
44409
44479
|
this.onGetPageTitleActions.fire(this, options);
|
|
44410
|
-
return
|
|
44480
|
+
return this.getTitleActionsResult(titleActions, options);
|
|
44411
44481
|
};
|
|
44412
44482
|
SurveyModel.prototype.getUpdatedMatrixRowActions = function (question, row, actions) {
|
|
44413
44483
|
var options = {
|
|
@@ -44426,9 +44496,10 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
44426
44496
|
page: page,
|
|
44427
44497
|
elementId: id,
|
|
44428
44498
|
cancel: false,
|
|
44499
|
+
allow: true,
|
|
44429
44500
|
};
|
|
44430
|
-
this.
|
|
44431
|
-
if (!options.cancel) {
|
|
44501
|
+
this.onScrollToTop.fire(this, options);
|
|
44502
|
+
if (!options.cancel && options.allow) {
|
|
44432
44503
|
var elementPage_1 = this.getPageByElement(element);
|
|
44433
44504
|
if (this.isLazyRendering && !!elementPage_1) {
|
|
44434
44505
|
var elementsToRenderBefore = 1;
|
|
@@ -44715,13 +44786,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
44715
44786
|
}
|
|
44716
44787
|
return null;
|
|
44717
44788
|
};
|
|
44718
|
-
/**
|
|
44719
|
-
* Returns an array of questions with specified [names](https://surveyjs.io/form-library/documentation/api-reference/question#name).
|
|
44720
|
-
* @param names An array of question names.
|
|
44721
|
-
* @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
44722
|
-
* @returns An array of questions with specified names
|
|
44723
|
-
* @see getAllQuestions
|
|
44724
|
-
*/
|
|
44725
44789
|
SurveyModel.prototype.getQuestionsByNames = function (names, caseInsensitive) {
|
|
44726
44790
|
if (caseInsensitive === void 0) { caseInsensitive = false; }
|
|
44727
44791
|
var result = [];
|
|
@@ -44766,10 +44830,6 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
44766
44830
|
}
|
|
44767
44831
|
return null;
|
|
44768
44832
|
};
|
|
44769
|
-
/**
|
|
44770
|
-
* Returns an array of pages with specified names.
|
|
44771
|
-
* @param names An array of page names.
|
|
44772
|
-
*/
|
|
44773
44833
|
SurveyModel.prototype.getPagesByNames = function (names) {
|
|
44774
44834
|
var result = [];
|
|
44775
44835
|
if (!names)
|
|
@@ -45463,7 +45523,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
45463
45523
|
mouseDown: function () { return _this.navigationMouseDown(); },
|
|
45464
45524
|
},
|
|
45465
45525
|
locTitle: this.locCompleteText,
|
|
45466
|
-
action: function () { return _this.taskManager.waitAndExecute(function () { return _this.
|
|
45526
|
+
action: function () { return _this.taskManager.waitAndExecute(function () { return _this.tryComplete(); }); },
|
|
45467
45527
|
component: defaultComponent
|
|
45468
45528
|
});
|
|
45469
45529
|
this.updateNavigationItemCssCallback = function () {
|
|
@@ -45834,7 +45894,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
45834
45894
|
_this.showPreview();
|
|
45835
45895
|
}
|
|
45836
45896
|
else {
|
|
45837
|
-
_this.
|
|
45897
|
+
_this.tryComplete();
|
|
45838
45898
|
}
|
|
45839
45899
|
}
|
|
45840
45900
|
};
|
|
@@ -46152,7 +46212,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
46152
46212
|
* For more information about quizzes, refer to the following tutorial: [Create a Quiz](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
|
|
46153
46213
|
* @returns The number of correct answers in a quiz.
|
|
46154
46214
|
* @see getQuizQuestionCount
|
|
46155
|
-
* @see
|
|
46215
|
+
* @see getIncorrectAnswerCount
|
|
46156
46216
|
*/
|
|
46157
46217
|
SurveyModel.prototype.getCorrectAnswerCount = function () {
|
|
46158
46218
|
return this.getCorrectedAnswerCountCore(true);
|
|
@@ -46175,7 +46235,10 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
46175
46235
|
return res;
|
|
46176
46236
|
};
|
|
46177
46237
|
SurveyModel.prototype.getInCorrectedAnswerCount = function () {
|
|
46178
|
-
return this.
|
|
46238
|
+
return this.getIncorrectAnswerCount();
|
|
46239
|
+
};
|
|
46240
|
+
SurveyModel.prototype.getInCorrectAnswerCount = function () {
|
|
46241
|
+
return this.getIncorrectAnswerCount();
|
|
46179
46242
|
};
|
|
46180
46243
|
/**
|
|
46181
46244
|
* Returns the number of incorrect answers in a quiz.
|
|
@@ -46184,7 +46247,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
46184
46247
|
* @returns The number of incorrect answers in a quiz.
|
|
46185
46248
|
* @see getCorrectAnswerCount
|
|
46186
46249
|
*/
|
|
46187
|
-
SurveyModel.prototype.
|
|
46250
|
+
SurveyModel.prototype.getIncorrectAnswerCount = function () {
|
|
46188
46251
|
return this.getCorrectedAnswerCountCore(false);
|
|
46189
46252
|
};
|
|
46190
46253
|
SurveyModel.prototype.onCorrectQuestionAnswer = function (question, options) {
|
|
@@ -46331,6 +46394,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
46331
46394
|
enumerable: false,
|
|
46332
46395
|
configurable: true
|
|
46333
46396
|
});
|
|
46397
|
+
SurveyModel.prototype.updateGridColumns = function () {
|
|
46398
|
+
this.pages.forEach(function (page) { return page.updateGridColumns(); });
|
|
46399
|
+
};
|
|
46334
46400
|
Object.defineProperty(SurveyModel.prototype, "widthMode", {
|
|
46335
46401
|
/**
|
|
46336
46402
|
* Specifies how to calculate the survey width.
|
|
@@ -46676,13 +46742,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
46676
46742
|
this.onTimerTick.fire(this, {});
|
|
46677
46743
|
if (this.timeLimit > 0 && this.timeLimit <= this.timeSpent) {
|
|
46678
46744
|
this.timeSpent = this.timeLimit;
|
|
46679
|
-
this.
|
|
46745
|
+
this.tryComplete();
|
|
46680
46746
|
}
|
|
46681
46747
|
if (page) {
|
|
46682
46748
|
var pageLimit = page.getMaxTimeToFinish();
|
|
46683
46749
|
if (pageLimit > 0 && pageLimit == page.timeSpent) {
|
|
46684
46750
|
if (this.isLastPage) {
|
|
46685
|
-
this.
|
|
46751
|
+
this.tryComplete();
|
|
46686
46752
|
}
|
|
46687
46753
|
else {
|
|
46688
46754
|
this.nextPage();
|
|
@@ -47240,7 +47306,11 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
47240
47306
|
jsonobject_property()
|
|
47241
47307
|
], SurveyModel.prototype, "rootCss", void 0);
|
|
47242
47308
|
survey_decorate([
|
|
47243
|
-
jsonobject_property(
|
|
47309
|
+
jsonobject_property({
|
|
47310
|
+
onSet: function (newValue, target) {
|
|
47311
|
+
target.updateGridColumns();
|
|
47312
|
+
}
|
|
47313
|
+
})
|
|
47244
47314
|
], SurveyModel.prototype, "gridLayoutEnabled", void 0);
|
|
47245
47315
|
survey_decorate([
|
|
47246
47316
|
jsonobject_property()
|
|
@@ -62929,10 +62999,17 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
62929
62999
|
enumerable: false,
|
|
62930
63000
|
configurable: true
|
|
62931
63001
|
});
|
|
63002
|
+
Object.defineProperty(QuestionImagePickerModel.prototype, "imageScale", {
|
|
63003
|
+
get: function () {
|
|
63004
|
+
return this.survey ? this.survey["widthScale"] / 100 : 1;
|
|
63005
|
+
},
|
|
63006
|
+
enumerable: false,
|
|
63007
|
+
configurable: true
|
|
63008
|
+
});
|
|
62932
63009
|
Object.defineProperty(QuestionImagePickerModel.prototype, "renderedImageHeight", {
|
|
62933
63010
|
get: function () {
|
|
62934
|
-
var height = this.isResponsive ? Math.floor(this.responsiveImageHeight) : this.imageHeight;
|
|
62935
|
-
return (height ? height : 150);
|
|
63011
|
+
var height = this.isResponsive ? Math.floor(this.responsiveImageHeight) : this.imageHeight * this.imageScale;
|
|
63012
|
+
return (height ? height : 150 * this.imageScale);
|
|
62936
63013
|
},
|
|
62937
63014
|
enumerable: false,
|
|
62938
63015
|
configurable: true
|
|
@@ -62959,8 +63036,8 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
62959
63036
|
});
|
|
62960
63037
|
Object.defineProperty(QuestionImagePickerModel.prototype, "renderedImageWidth", {
|
|
62961
63038
|
get: function () {
|
|
62962
|
-
var width = this.isResponsive ? Math.floor(this.responsiveImageWidth) : this.imageWidth;
|
|
62963
|
-
return (width ? width : 200);
|
|
63039
|
+
var width = this.isResponsive ? Math.floor(this.responsiveImageWidth) : this.imageWidth * this.imageScale;
|
|
63040
|
+
return (width ? width : 200 * this.imageScale);
|
|
62964
63041
|
},
|
|
62965
63042
|
enumerable: false,
|
|
62966
63043
|
configurable: true
|
|
@@ -63068,11 +63145,11 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
63068
63145
|
};
|
|
63069
63146
|
if (this.isResponsive) {
|
|
63070
63147
|
var itemsCount = this.choices.length + (this.isDesignMode ? 1 : 0);
|
|
63071
|
-
var gap = this.gapBetweenItems || 0;
|
|
63072
|
-
var minWidth = this.minImageWidth;
|
|
63073
|
-
var maxWidth = this.maxImageWidth;
|
|
63074
|
-
var maxHeight = this.maxImageHeight;
|
|
63075
|
-
var minHeight = this.minImageHeight;
|
|
63148
|
+
var gap = (this.gapBetweenItems || 0) * this.imageScale;
|
|
63149
|
+
var minWidth = this.minImageWidth * this.imageScale;
|
|
63150
|
+
var maxWidth = this.maxImageWidth * this.imageScale;
|
|
63151
|
+
var maxHeight = this.maxImageHeight * this.imageScale;
|
|
63152
|
+
var minHeight = this.minImageHeight * this.imageScale;
|
|
63076
63153
|
var colCount = this.colCount;
|
|
63077
63154
|
var width_1;
|
|
63078
63155
|
if (colCount === 0) {
|
|
@@ -70687,8 +70764,8 @@ Serializer.addClass("currencymask", [
|
|
|
70687
70764
|
|
|
70688
70765
|
var Version;
|
|
70689
70766
|
var ReleaseDate;
|
|
70690
|
-
Version = "" + "1.12.
|
|
70691
|
-
ReleaseDate = "" + "2024-12-
|
|
70767
|
+
Version = "" + "1.12.17";
|
|
70768
|
+
ReleaseDate = "" + "2024-12-30";
|
|
70692
70769
|
function checkLibraryVersion(ver, libraryName) {
|
|
70693
70770
|
if (Version != ver) {
|
|
70694
70771
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|