survey-core 1.9.131 → 1.9.133
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 +41 -12
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +41 -12
- 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/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/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/modern.css +13 -1
- package/modern.css.map +1 -1
- package/modern.fontless.css +13 -1
- package/modern.fontless.css.map +1 -1
- package/modern.fontless.min.css +2 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/plugins/bootstrap-integration.js +1 -1
- package/plugins/bootstrap-integration.min.js +1 -1
- package/plugins/bootstrap-material-integration.js +1 -1
- package/plugins/bootstrap-material-integration.min.js +1 -1
- package/survey.core.js +139 -24
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +13 -1
- package/survey.css.map +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +2 -2
- 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/base.d.ts +1 -1
- package/ts3.4/typings/defaultCss/cssmodern.d.ts +1 -0
- package/ts3.4/typings/defaultCss/cssstandard.d.ts +1 -0
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +1 -0
- package/ts3.4/typings/progress-buttons.d.ts +2 -0
- package/ts3.4/typings/question.d.ts +4 -1
- package/ts3.4/typings/question_custom.d.ts +2 -0
- package/ts3.4/typings/question_multipletext.d.ts +1 -0
- package/ts3.4/typings/settings.d.ts +1 -1
- package/ts3.4/typings/survey-element.d.ts +1 -0
- package/ts3.4/typings/survey.d.ts +16 -1
- package/ts3.4/typings/utils/utils.d.ts +2 -0
- package/typings/base.d.ts +1 -1
- package/typings/defaultCss/cssmodern.d.ts +1 -0
- package/typings/defaultCss/cssstandard.d.ts +1 -0
- package/typings/defaultCss/defaultV2Css.d.ts +1 -0
- package/typings/progress-buttons.d.ts +2 -0
- package/typings/question.d.ts +4 -1
- package/typings/question_custom.d.ts +2 -0
- package/typings/question_multipletext.d.ts +1 -0
- package/typings/settings.d.ts +1 -1
- package/typings/survey-element.d.ts +1 -0
- package/typings/survey.d.ts +17 -2
- package/typings/utils/utils.d.ts +2 -0
package/survey.core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.133
|
|
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
|
*/
|
|
@@ -4791,6 +4791,7 @@ var modernCss = {
|
|
|
4791
4791
|
cell: "sv-table__cell",
|
|
4792
4792
|
headerCell: "sv-table__cell sv-table__cell--header",
|
|
4793
4793
|
row: "sv-table__row",
|
|
4794
|
+
rowTextCell: "sv-table__cell--row-text",
|
|
4794
4795
|
rowAdditional: "sv-table__row--additional",
|
|
4795
4796
|
detailRow: "sv-table__row--detail",
|
|
4796
4797
|
detailRowText: "sv-table__cell--detail-rowtext",
|
|
@@ -5137,6 +5138,7 @@ var defaultStandardCss = {
|
|
|
5137
5138
|
headerCell: "sv_matrix_cell_header",
|
|
5138
5139
|
row: "sv_matrix_row",
|
|
5139
5140
|
rowAdditional: "sv-matrix__row--additional",
|
|
5141
|
+
rowTextCell: "sv-table__cell--row-text",
|
|
5140
5142
|
detailRow: "sv_matrix_detail_row",
|
|
5141
5143
|
detailRowText: "sv_matrix_cell_detail_rowtext",
|
|
5142
5144
|
detailCell: "sv_matrix_cell_detail",
|
|
@@ -5495,6 +5497,7 @@ var defaultV2Css = {
|
|
|
5495
5497
|
progressText: "sd-progress__text",
|
|
5496
5498
|
progressButtonsRoot: "sd-progress-buttons",
|
|
5497
5499
|
progressButtonsNumbered: "sd-progress-buttons--numbered",
|
|
5500
|
+
progressButtonsFitSurveyWidth: "sd-progress-buttons--fit-survey-width",
|
|
5498
5501
|
progressButtonsContainerCenter: "sd-progress-buttons__container-center",
|
|
5499
5502
|
progressButtonsContainer: "sd-progress-buttons__container",
|
|
5500
5503
|
progressButtonsConnector: "sd-progress-buttons__connector",
|
|
@@ -5570,7 +5573,7 @@ var defaultV2Css = {
|
|
|
5570
5573
|
expanded: "sd-element--expanded",
|
|
5571
5574
|
nested: "sd-element--nested",
|
|
5572
5575
|
invisible: "sd-element--invisible",
|
|
5573
|
-
composite: "sd-element--complex",
|
|
5576
|
+
composite: "sd-element--complex sd-composite",
|
|
5574
5577
|
disabled: "sd-question--disabled",
|
|
5575
5578
|
errorsContainer: "sd-element__erbox sd-question__erbox",
|
|
5576
5579
|
errorsContainerTop: "sd-element__erbox--above-element sd-question__erbox--above-question",
|
|
@@ -7682,14 +7685,14 @@ var DragDropRankingSelectToRank = /** @class */ (function (_super) {
|
|
|
7682
7685
|
if (dragOverNode.dataset.ranking === "from-container" || dragOverNode.dataset.ranking === "to-container") {
|
|
7683
7686
|
return dragOverNode;
|
|
7684
7687
|
}
|
|
7685
|
-
if (this.parentElement.
|
|
7688
|
+
if (this.parentElement.rankingChoices.length === 0 ||
|
|
7689
|
+
this.parentElement.unRankingChoices.length === 0) {
|
|
7686
7690
|
var toContainer = dragOverNode.closest("[data-ranking='to-container']");
|
|
7687
7691
|
var fromContainer = dragOverNode.closest("[data-ranking='from-container']");
|
|
7688
7692
|
if (!!toContainer)
|
|
7689
7693
|
return toContainer;
|
|
7690
7694
|
if (!!fromContainer)
|
|
7691
7695
|
return fromContainer;
|
|
7692
|
-
return null;
|
|
7693
7696
|
}
|
|
7694
7697
|
return _super.prototype.findDropTargetNodeByDragOverNode.call(this, dragOverNode);
|
|
7695
7698
|
};
|
|
@@ -7739,8 +7742,10 @@ var DragDropRankingSelectToRank = /** @class */ (function (_super) {
|
|
|
7739
7742
|
DragDropRankingSelectToRank.prototype.getIndixies = function (model, fromChoicesArray, toChoicesArray) {
|
|
7740
7743
|
var fromIndex = fromChoicesArray.indexOf(this.draggedElement);
|
|
7741
7744
|
var toIndex = toChoicesArray.indexOf(this.dropTarget);
|
|
7742
|
-
if (toIndex === -1)
|
|
7743
|
-
|
|
7745
|
+
if (toIndex === -1) {
|
|
7746
|
+
var length_1 = model.value.length;
|
|
7747
|
+
toIndex = fromChoicesArray === toChoicesArray ? length_1 - 1 : length_1;
|
|
7748
|
+
}
|
|
7744
7749
|
return { fromIndex: fromIndex, toIndex: toIndex };
|
|
7745
7750
|
};
|
|
7746
7751
|
DragDropRankingSelectToRank.prototype.doUIEffects = function (dropTargetNode, fromIndex, toIndex) {
|
|
@@ -9436,8 +9441,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9436
9441
|
//import "../../modern.scss";
|
|
9437
9442
|
var Version;
|
|
9438
9443
|
var ReleaseDate;
|
|
9439
|
-
Version = "" + "1.9.
|
|
9440
|
-
ReleaseDate = "" + "2024-
|
|
9444
|
+
Version = "" + "1.9.133";
|
|
9445
|
+
ReleaseDate = "" + "2024-03-05";
|
|
9441
9446
|
function checkLibraryVersion(ver, libraryName) {
|
|
9442
9447
|
if (Version != ver) {
|
|
9443
9448
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
|
@@ -15216,9 +15221,11 @@ function age(params) {
|
|
|
15216
15221
|
var birthDate = new Date(params[0]);
|
|
15217
15222
|
var today = new Date();
|
|
15218
15223
|
var age = today.getFullYear() - birthDate.getFullYear();
|
|
15219
|
-
|
|
15220
|
-
|
|
15221
|
-
|
|
15224
|
+
if (age > 0) {
|
|
15225
|
+
var m = today.getMonth() - birthDate.getMonth();
|
|
15226
|
+
if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
|
|
15227
|
+
age -= 1;
|
|
15228
|
+
}
|
|
15222
15229
|
}
|
|
15223
15230
|
return age;
|
|
15224
15231
|
}
|
|
@@ -25697,6 +25704,9 @@ var ProgressButtons = /** @class */ (function (_super) {
|
|
|
25697
25704
|
if (this.showItemNumbers && this.survey.css.progressButtonsNumbered) {
|
|
25698
25705
|
result += " " + this.survey.css.progressButtonsNumbered;
|
|
25699
25706
|
}
|
|
25707
|
+
if (this.isFitToSurveyWidth) {
|
|
25708
|
+
result += " " + this.survey.css.progressButtonsFitSurveyWidth;
|
|
25709
|
+
}
|
|
25700
25710
|
return result;
|
|
25701
25711
|
};
|
|
25702
25712
|
ProgressButtons.prototype.getListElementCss = function (index) {
|
|
@@ -25754,11 +25764,32 @@ var ProgressButtons = /** @class */ (function (_super) {
|
|
|
25754
25764
|
if (!listContainerElement)
|
|
25755
25765
|
return;
|
|
25756
25766
|
var listContainerElements = element.querySelectorAll(".sd-progress-buttons__connector");
|
|
25757
|
-
var
|
|
25767
|
+
var circleWidth = this.showItemNumbers ? 17 : 7;
|
|
25768
|
+
var connectorWidth = listContainerElement.clientWidth / (listContainerElement.children.length - 1) - circleWidth;
|
|
25758
25769
|
for (var i = 0; i < listContainerElements.length; i++) {
|
|
25759
25770
|
listContainerElements[i].style.width = connectorWidth + "px";
|
|
25760
25771
|
}
|
|
25761
25772
|
};
|
|
25773
|
+
Object.defineProperty(ProgressButtons.prototype, "isFitToSurveyWidth", {
|
|
25774
|
+
get: function () {
|
|
25775
|
+
if (_defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_1__["surveyCss"].currentType !== "defaultV2") {
|
|
25776
|
+
return false;
|
|
25777
|
+
}
|
|
25778
|
+
return this.survey.progressBarInheritWidthFrom === "survey" && this.survey.widthMode == "static";
|
|
25779
|
+
},
|
|
25780
|
+
enumerable: false,
|
|
25781
|
+
configurable: true
|
|
25782
|
+
});
|
|
25783
|
+
Object.defineProperty(ProgressButtons.prototype, "progressWidth", {
|
|
25784
|
+
get: function () {
|
|
25785
|
+
if (this.isFitToSurveyWidth) {
|
|
25786
|
+
return this.survey.width;
|
|
25787
|
+
}
|
|
25788
|
+
return "";
|
|
25789
|
+
},
|
|
25790
|
+
enumerable: false,
|
|
25791
|
+
configurable: true
|
|
25792
|
+
});
|
|
25762
25793
|
Object.defineProperty(ProgressButtons.prototype, "showItemNumbers", {
|
|
25763
25794
|
get: function () {
|
|
25764
25795
|
if (_defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_1__["surveyCss"].currentType !== "defaultV2") {
|
|
@@ -27418,6 +27449,13 @@ var Question = /** @class */ (function (_super) {
|
|
|
27418
27449
|
enumerable: false,
|
|
27419
27450
|
configurable: true
|
|
27420
27451
|
});
|
|
27452
|
+
Object.defineProperty(Question.prototype, "ariaDescriptionId", {
|
|
27453
|
+
get: function () {
|
|
27454
|
+
return this.id + "_ariaDescription";
|
|
27455
|
+
},
|
|
27456
|
+
enumerable: false,
|
|
27457
|
+
configurable: true
|
|
27458
|
+
});
|
|
27421
27459
|
Object.defineProperty(Question.prototype, "commentId", {
|
|
27422
27460
|
get: function () {
|
|
27423
27461
|
return this.id + "_comment";
|
|
@@ -28943,6 +28981,20 @@ var Question = /** @class */ (function (_super) {
|
|
|
28943
28981
|
enumerable: false,
|
|
28944
28982
|
configurable: true
|
|
28945
28983
|
});
|
|
28984
|
+
Object.defineProperty(Question.prototype, "ariaDescribedBy", {
|
|
28985
|
+
get: function () {
|
|
28986
|
+
if (this.isNewA11yStructure)
|
|
28987
|
+
return null;
|
|
28988
|
+
if (this.hasTitle) {
|
|
28989
|
+
return this.ariaDescriptionId;
|
|
28990
|
+
}
|
|
28991
|
+
else {
|
|
28992
|
+
return null;
|
|
28993
|
+
}
|
|
28994
|
+
},
|
|
28995
|
+
enumerable: false,
|
|
28996
|
+
configurable: true
|
|
28997
|
+
});
|
|
28946
28998
|
Object.defineProperty(Question.prototype, "ariaExpanded", {
|
|
28947
28999
|
get: function () {
|
|
28948
29000
|
return null;
|
|
@@ -28950,7 +29002,7 @@ var Question = /** @class */ (function (_super) {
|
|
|
28950
29002
|
enumerable: false,
|
|
28951
29003
|
configurable: true
|
|
28952
29004
|
});
|
|
28953
|
-
Object.defineProperty(Question.prototype, "
|
|
29005
|
+
Object.defineProperty(Question.prototype, "ariaErrormessage", {
|
|
28954
29006
|
get: function () {
|
|
28955
29007
|
if (this.isNewA11yStructure)
|
|
28956
29008
|
return null;
|
|
@@ -29007,6 +29059,18 @@ var Question = /** @class */ (function (_super) {
|
|
|
29007
29059
|
configurable: true
|
|
29008
29060
|
});
|
|
29009
29061
|
Object.defineProperty(Question.prototype, "a11y_input_ariaDescribedBy", {
|
|
29062
|
+
get: function () {
|
|
29063
|
+
if (this.hasTitle && !this.parentQuestion) {
|
|
29064
|
+
return this.ariaDescriptionId;
|
|
29065
|
+
}
|
|
29066
|
+
else {
|
|
29067
|
+
return null;
|
|
29068
|
+
}
|
|
29069
|
+
},
|
|
29070
|
+
enumerable: false,
|
|
29071
|
+
configurable: true
|
|
29072
|
+
});
|
|
29073
|
+
Object.defineProperty(Question.prototype, "a11y_input_ariaErrormessage", {
|
|
29010
29074
|
get: function () {
|
|
29011
29075
|
return this.hasCssError() ? this.id + "_errors" : null;
|
|
29012
29076
|
},
|
|
@@ -34380,6 +34444,15 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
|
|
|
34380
34444
|
}
|
|
34381
34445
|
}
|
|
34382
34446
|
};
|
|
34447
|
+
QuestionCompositeModel.prototype.onSurveyValueChanged = function (newValue) {
|
|
34448
|
+
_super.prototype.onSurveyValueChanged.call(this, newValue);
|
|
34449
|
+
var val = !!newValue ? newValue : {};
|
|
34450
|
+
if (!!this.contentPanel) {
|
|
34451
|
+
this.contentPanel.questions.forEach(function (q) {
|
|
34452
|
+
q.onSurveyValueChanged(val[q.getValueName()]);
|
|
34453
|
+
});
|
|
34454
|
+
}
|
|
34455
|
+
};
|
|
34383
34456
|
QuestionCompositeModel.prototype.getValue = function (name) {
|
|
34384
34457
|
var val = this.value;
|
|
34385
34458
|
return !!val ? val[name] : null;
|
|
@@ -34404,6 +34477,14 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
|
|
|
34404
34477
|
this.setNewValueIntoQuestion(name, newValue);
|
|
34405
34478
|
_super.prototype.setValue.call(this, name, newValue, locNotification, allowNotifyValueChanged);
|
|
34406
34479
|
this.settingNewValue = false;
|
|
34480
|
+
this.runPanelTriggers(QuestionCompositeModel.ItemVariableName + "." + name, newValue);
|
|
34481
|
+
};
|
|
34482
|
+
QuestionCompositeModel.prototype.runPanelTriggers = function (name, value) {
|
|
34483
|
+
if (!!this.contentPanel) {
|
|
34484
|
+
this.contentPanel.questions.forEach(function (q) {
|
|
34485
|
+
q.runTriggers(name, value);
|
|
34486
|
+
});
|
|
34487
|
+
}
|
|
34407
34488
|
};
|
|
34408
34489
|
QuestionCompositeModel.prototype.getFilteredValues = function () {
|
|
34409
34490
|
var values = !!this.data ? this.data.getFilteredValues() : {};
|
|
@@ -38541,7 +38622,7 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
|
38541
38622
|
return loc ? loc : this.emptyLocalizableString;
|
|
38542
38623
|
};
|
|
38543
38624
|
QuestionMatrixModel.prototype.supportGoNextPageAutomatic = function () {
|
|
38544
|
-
return this.isMouseDown === true && this.hasValuesInAllRows();
|
|
38625
|
+
return this.isMouseDown === true && this.hasValuesInAllRows(false);
|
|
38545
38626
|
};
|
|
38546
38627
|
QuestionMatrixModel.prototype.onCheckForErrors = function (errors, isOnValueChanged) {
|
|
38547
38628
|
_super.prototype.onCheckForErrors.call(this, errors, isOnValueChanged);
|
|
@@ -38556,12 +38637,12 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
|
38556
38637
|
}
|
|
38557
38638
|
};
|
|
38558
38639
|
QuestionMatrixModel.prototype.hasErrorAllRowsRequired = function () {
|
|
38559
|
-
return this.isAllRowRequired && !this.hasValuesInAllRows();
|
|
38640
|
+
return this.isAllRowRequired && !this.hasValuesInAllRows(true);
|
|
38560
38641
|
};
|
|
38561
38642
|
QuestionMatrixModel.prototype.hasErrorEachRowUnique = function () {
|
|
38562
38643
|
return this.eachRowUnique && this.hasNonUniqueValueInRow();
|
|
38563
38644
|
};
|
|
38564
|
-
QuestionMatrixModel.prototype.hasValuesInAllRows = function () {
|
|
38645
|
+
QuestionMatrixModel.prototype.hasValuesInAllRows = function (addError) {
|
|
38565
38646
|
var rows = this.generatedVisibleRows;
|
|
38566
38647
|
if (!rows)
|
|
38567
38648
|
rows = this.visibleRows;
|
|
@@ -38571,7 +38652,7 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
|
38571
38652
|
for (var i = 0; i < rows.length; i++) {
|
|
38572
38653
|
var row = rows[i];
|
|
38573
38654
|
var hasValue = !this.isValueEmpty(row.value);
|
|
38574
|
-
if (!hasValue) {
|
|
38655
|
+
if (addError && !hasValue) {
|
|
38575
38656
|
this.addErrorIntoRow(row);
|
|
38576
38657
|
}
|
|
38577
38658
|
res = res && hasValue;
|
|
@@ -38606,7 +38687,7 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
|
38606
38687
|
this.errorsInRow[row.name] = true;
|
|
38607
38688
|
};
|
|
38608
38689
|
QuestionMatrixModel.prototype.getIsAnswered = function () {
|
|
38609
|
-
return _super.prototype.getIsAnswered.call(this) && this.hasValuesInAllRows();
|
|
38690
|
+
return _super.prototype.getIsAnswered.call(this) && this.hasValuesInAllRows(false);
|
|
38610
38691
|
};
|
|
38611
38692
|
QuestionMatrixModel.prototype.createMatrixRow = function (item, fullName, value) {
|
|
38612
38693
|
var row = new MatrixRowModel(item, fullName, this, value);
|
|
@@ -43933,6 +44014,7 @@ var QuestionMatrixDropdownRenderedTable = /** @class */ (function (_super) {
|
|
|
43933
44014
|
};
|
|
43934
44015
|
QuestionMatrixDropdownRenderedTable.prototype.setItemCellCssClasses = function (cell) {
|
|
43935
44016
|
cell.className = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_5__["CssClassBuilder"]()
|
|
44017
|
+
.append(this.cssClasses.cell)
|
|
43936
44018
|
.append(this.cssClasses.itemCell)
|
|
43937
44019
|
.append(this.cssClasses.radioCell, cell.isRadio)
|
|
43938
44020
|
.append(this.cssClasses.checkboxCell, cell.isCheckbox)
|
|
@@ -45255,6 +45337,13 @@ var MultipleTextEditorModel = /** @class */ (function (_super) {
|
|
|
45255
45337
|
enumerable: false,
|
|
45256
45338
|
configurable: true
|
|
45257
45339
|
});
|
|
45340
|
+
Object.defineProperty(MultipleTextEditorModel.prototype, "a11y_input_ariaDescribedBy", {
|
|
45341
|
+
get: function () {
|
|
45342
|
+
return null;
|
|
45343
|
+
},
|
|
45344
|
+
enumerable: false,
|
|
45345
|
+
configurable: true
|
|
45346
|
+
});
|
|
45258
45347
|
return MultipleTextEditorModel;
|
|
45259
45348
|
}(_question_text__WEBPACK_IMPORTED_MODULE_3__["QuestionTextModel"]));
|
|
45260
45349
|
|
|
@@ -46266,7 +46355,7 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_4__["Serializer"].addClass("multipletextite
|
|
|
46266
46355
|
});
|
|
46267
46356
|
_jsonobject__WEBPACK_IMPORTED_MODULE_4__["Serializer"].addClass("multipletext", [
|
|
46268
46357
|
{ name: "!items:textitems", className: "multipletextitem", isArray: true },
|
|
46269
|
-
{ name: "itemSize:number", minValue: 0 },
|
|
46358
|
+
{ name: "itemSize:number", minValue: 0, visible: false },
|
|
46270
46359
|
{ name: "colCount:number", default: 1, choices: [1, 2, 3, 4, 5] },
|
|
46271
46360
|
{ name: "itemErrorLocation", default: "default", choices: ["default", "top", "bottom"], visible: false },
|
|
46272
46361
|
{ name: "itemTitleWidth", category: "layout" }
|
|
@@ -50328,6 +50417,9 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
|
50328
50417
|
else {
|
|
50329
50418
|
rateValues = this.createRateValues();
|
|
50330
50419
|
}
|
|
50420
|
+
if (this.autoGenerate) {
|
|
50421
|
+
this.rateMax = rateValues[rateValues.length - 1].value;
|
|
50422
|
+
}
|
|
50331
50423
|
if (this.rateType == "smileys" && rateValues.length > 10)
|
|
50332
50424
|
rateValues = rateValues.slice(0, 10);
|
|
50333
50425
|
this.renderedRateItems = rateValues.map(function (v, i) {
|
|
@@ -53822,7 +53914,7 @@ var settings = {
|
|
|
53822
53914
|
*/
|
|
53823
53915
|
showMaxLengthIndicator: true,
|
|
53824
53916
|
/**
|
|
53825
|
-
*
|
|
53917
|
+
* Specifies whether to animate survey elements.
|
|
53826
53918
|
*
|
|
53827
53919
|
* Default value: `true`
|
|
53828
53920
|
*/
|
|
@@ -54469,6 +54561,11 @@ var SurveyElementCore = /** @class */ (function (_super) {
|
|
|
54469
54561
|
enumerable: false,
|
|
54470
54562
|
configurable: true
|
|
54471
54563
|
});
|
|
54564
|
+
Object.defineProperty(SurveyElementCore.prototype, "ariaDescriptionId", {
|
|
54565
|
+
get: function () { return undefined; },
|
|
54566
|
+
enumerable: false,
|
|
54567
|
+
configurable: true
|
|
54568
|
+
});
|
|
54472
54569
|
Object.defineProperty(SurveyElementCore.prototype, "titleTabIndex", {
|
|
54473
54570
|
get: function () { return undefined; },
|
|
54474
54571
|
enumerable: false,
|
|
@@ -56568,7 +56665,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
56568
56665
|
_this.registerPropertyChangedHandlers(["questionStartIndex", "requiredText", "questionTitlePattern"], function () {
|
|
56569
56666
|
_this.resetVisibleIndexes();
|
|
56570
56667
|
});
|
|
56571
|
-
_this.registerPropertyChangedHandlers(["isLoading", "isCompleted", "isCompletedBefore", "mode", "isStartedState", "currentPage"], function () { _this.updateState(); });
|
|
56668
|
+
_this.registerPropertyChangedHandlers(["isLoading", "isCompleted", "isCompletedBefore", "mode", "isStartedState", "currentPage", "isShowingPreview"], function () { _this.updateState(); });
|
|
56572
56669
|
_this.registerPropertyChangedHandlers(["state", "currentPage", "showPreviewBeforeComplete"], function () { _this.onStateAndCurrentPageChanged(); });
|
|
56573
56670
|
_this.registerPropertyChangedHandlers(["logo", "logoPosition"], function () { _this.updateHasLogo(); });
|
|
56574
56671
|
_this.registerPropertyChangedHandlers(["backgroundImage"], function () { _this.updateRenderBackgroundImage(); });
|
|
@@ -57484,7 +57581,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
57484
57581
|
* @see [`settings.autoAdvanceDelay`](https://surveyjs.io/form-library/documentation/api-reference/settings#autoAdvanceDelay)
|
|
57485
57582
|
*/
|
|
57486
57583
|
get: function () {
|
|
57487
|
-
return this.getPropertyValue("allowCompleteSurveyAutomatic"
|
|
57584
|
+
return this.getPropertyValue("allowCompleteSurveyAutomatic");
|
|
57488
57585
|
},
|
|
57489
57586
|
set: function (val) {
|
|
57490
57587
|
this.setPropertyValue("allowCompleteSurveyAutomatic", val);
|
|
@@ -64032,6 +64129,9 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
64032
64129
|
__decorate([
|
|
64033
64130
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
64034
64131
|
], SurveyModel.prototype, "progressBarShowPageNumbers", void 0);
|
|
64132
|
+
__decorate([
|
|
64133
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
64134
|
+
], SurveyModel.prototype, "progressBarInheritWidthFrom", void 0);
|
|
64035
64135
|
__decorate([
|
|
64036
64136
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
64037
64137
|
], SurveyModel.prototype, "rootCss", void 0);
|
|
@@ -64195,6 +64295,13 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("survey", [
|
|
|
64195
64295
|
category: "navigation",
|
|
64196
64296
|
visibleIf: function (obj) { return obj.showProgressBar !== "off" && obj.progressBarType === "pages"; }
|
|
64197
64297
|
},
|
|
64298
|
+
{
|
|
64299
|
+
name: "progressBarInheritWidthFrom",
|
|
64300
|
+
default: "container",
|
|
64301
|
+
choices: ["container", "survey"],
|
|
64302
|
+
category: "navigation",
|
|
64303
|
+
visibleIf: function (obj) { return obj.showProgressBar !== "off" && obj.progressBarType === "pages"; }
|
|
64304
|
+
},
|
|
64198
64305
|
{
|
|
64199
64306
|
name: "showTOC:switch",
|
|
64200
64307
|
default: false
|
|
@@ -64217,6 +64324,10 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("survey", [
|
|
|
64217
64324
|
obj.setPropertyValue("goNextPageAutomatic", value);
|
|
64218
64325
|
}
|
|
64219
64326
|
},
|
|
64327
|
+
{
|
|
64328
|
+
name: "allowCompleteSurveyAutomatic:boolean", default: true,
|
|
64329
|
+
visibleIf: function (obj) { return obj.goNextPageAutomatic === true; }
|
|
64330
|
+
},
|
|
64220
64331
|
{
|
|
64221
64332
|
name: "clearInvisibleValues",
|
|
64222
64333
|
default: "onComplete",
|
|
@@ -66693,7 +66804,7 @@ var VerticalResponsivityManager = /** @class */ (function (_super) {
|
|
|
66693
66804
|
/*!****************************!*\
|
|
66694
66805
|
!*** ./src/utils/utils.ts ***!
|
|
66695
66806
|
\****************************/
|
|
66696
|
-
/*! exports provided: unwrap, getRenderedSize, getRenderedStyleSize, doKey2ClickBlur, doKey2ClickUp, doKey2ClickDown, sanitizeEditableContent, Logger, showConfirmDialog, mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles */
|
|
66807
|
+
/*! exports provided: unwrap, getRenderedSize, getRenderedStyleSize, doKey2ClickBlur, doKey2ClickUp, doKey2ClickDown, sanitizeEditableContent, Logger, showConfirmDialog, configConfirmDialog, mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles */
|
|
66697
66808
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
66698
66809
|
|
|
66699
66810
|
"use strict";
|
|
@@ -66707,6 +66818,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66707
66818
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sanitizeEditableContent", function() { return sanitizeEditableContent; });
|
|
66708
66819
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Logger", function() { return Logger; });
|
|
66709
66820
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "showConfirmDialog", function() { return showConfirmDialog; });
|
|
66821
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "configConfirmDialog", function() { return configConfirmDialog; });
|
|
66710
66822
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeValues", function() { return mergeValues; });
|
|
66711
66823
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getElementWidth", function() { return getElementWidth; });
|
|
66712
66824
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isContainerVisible", function() { return isContainerVisible; });
|
|
@@ -67150,9 +67262,12 @@ function showConfirmDialog(message, callback, applyTitle, locale, rootElement) {
|
|
|
67150
67262
|
cancelBtn.innerCss = "sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small";
|
|
67151
67263
|
applyBtn.title = applyTitle || _surveyStrings__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].getString("ok", locale);
|
|
67152
67264
|
applyBtn.innerCss = "sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger";
|
|
67153
|
-
|
|
67265
|
+
configConfirmDialog(popupViewModel);
|
|
67154
67266
|
return true;
|
|
67155
67267
|
}
|
|
67268
|
+
function configConfirmDialog(popupViewModel) {
|
|
67269
|
+
popupViewModel.width = "min-content";
|
|
67270
|
+
}
|
|
67156
67271
|
function chooseFiles(input, callback) {
|
|
67157
67272
|
if (!window || !window["FileReader"])
|
|
67158
67273
|
return;
|