survey-core 1.12.24 → 1.12.26
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 +35 -4
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +35 -4
- 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 +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/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 +19 -3
- package/modern.css.map +1 -1
- package/modern.fontless.css +19 -3
- 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/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 +137 -81
- 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.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +2 -0
- package/ts3.4/typings/packages/survey-core/src/dragdrop/choices.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/helpers.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/mask/mask_numeric.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_baseselect.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_imagepicker.d.ts +8 -0
- package/ts3.4/typings/packages/survey-core/src/question_matrixdropdown.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/trigger.d.ts +9 -1
- package/ts3.4/typings/packages/survey-core/src/utils/utils.d.ts +1 -1
- package/typings/packages/survey-core/src/base.d.ts +1 -1
- package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +2 -0
- package/typings/packages/survey-core/src/dragdrop/choices.d.ts +1 -1
- package/typings/packages/survey-core/src/helpers.d.ts +1 -0
- package/typings/packages/survey-core/src/mask/mask_numeric.d.ts +1 -1
- package/typings/packages/survey-core/src/question_baseselect.d.ts +1 -1
- package/typings/packages/survey-core/src/question_imagepicker.d.ts +8 -0
- package/typings/packages/survey-core/src/question_matrixdropdown.d.ts +1 -0
- package/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +1 -0
- package/typings/packages/survey-core/src/survey.d.ts +1 -0
- package/typings/packages/survey-core/src/trigger.d.ts +9 -1
- 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.26
|
|
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
|
*/
|
|
@@ -145,7 +145,7 @@ __webpack_require__.d(__webpack_exports__, "CustomError", function() { return /*
|
|
|
145
145
|
__webpack_require__.d(__webpack_exports__, "AnswerRequiredError", function() { return /* reexport */ AnswerRequiredError; });
|
|
146
146
|
__webpack_require__.d(__webpack_exports__, "OneAnswerRequiredError", function() { return /* reexport */ OneAnswerRequiredError; });
|
|
147
147
|
__webpack_require__.d(__webpack_exports__, "RequreNumericError", function() { return /* reexport */ RequreNumericError; });
|
|
148
|
-
__webpack_require__.d(__webpack_exports__, "ExceedSizeError", function() { return /* reexport */
|
|
148
|
+
__webpack_require__.d(__webpack_exports__, "ExceedSizeError", function() { return /* reexport */ ExceedSizeError; });
|
|
149
149
|
__webpack_require__.d(__webpack_exports__, "LocalizableString", function() { return /* reexport */ localizablestring_LocalizableString; });
|
|
150
150
|
__webpack_require__.d(__webpack_exports__, "LocalizableStrings", function() { return /* reexport */ localizablestring_LocalizableStrings; });
|
|
151
151
|
__webpack_require__.d(__webpack_exports__, "HtmlConditionItem", function() { return /* reexport */ HtmlConditionItem; });
|
|
@@ -526,6 +526,9 @@ var helpers_Helpers = /** @class */ (function () {
|
|
|
526
526
|
}
|
|
527
527
|
return !value && value !== 0 && value !== false;
|
|
528
528
|
};
|
|
529
|
+
Helpers.isValueUndefined = function (value) {
|
|
530
|
+
return (value === undefined || value === null) || (typeof value === "number" && isNaN(value));
|
|
531
|
+
};
|
|
529
532
|
Helpers.isArrayContainsEqual = function (x, y) {
|
|
530
533
|
if (!Array.isArray(x) || !Array.isArray(y))
|
|
531
534
|
return false;
|
|
@@ -8474,9 +8477,6 @@ var base_Base = /** @class */ (function () {
|
|
|
8474
8477
|
return value.trim();
|
|
8475
8478
|
return value;
|
|
8476
8479
|
};
|
|
8477
|
-
Base.prototype.isPropertyEmpty = function (value) {
|
|
8478
|
-
return value !== "" && this.isValueEmpty(value);
|
|
8479
|
-
};
|
|
8480
8480
|
Base.createPropertiesHash = function () {
|
|
8481
8481
|
return {};
|
|
8482
8482
|
};
|
|
@@ -8687,11 +8687,11 @@ var base_Base = /** @class */ (function () {
|
|
|
8687
8687
|
*/
|
|
8688
8688
|
Base.prototype.getPropertyValue = function (name, defaultValue, calcFunc) {
|
|
8689
8689
|
var res = this.getPropertyValueWithoutDefault(name);
|
|
8690
|
-
if (this.
|
|
8690
|
+
if (this.isValueUndefined(res)) {
|
|
8691
8691
|
var locStr = this.localizableStrings ? this.localizableStrings[name] : undefined;
|
|
8692
8692
|
if (locStr)
|
|
8693
8693
|
return locStr.text;
|
|
8694
|
-
if (defaultValue
|
|
8694
|
+
if (!this.isValueUndefined(defaultValue))
|
|
8695
8695
|
return defaultValue;
|
|
8696
8696
|
if (!!calcFunc) {
|
|
8697
8697
|
var newVal = calcFunc();
|
|
@@ -8713,6 +8713,9 @@ var base_Base = /** @class */ (function () {
|
|
|
8713
8713
|
}
|
|
8714
8714
|
return res;
|
|
8715
8715
|
};
|
|
8716
|
+
Base.prototype.isValueUndefined = function (value) {
|
|
8717
|
+
return helpers_Helpers.isValueUndefined(value);
|
|
8718
|
+
};
|
|
8716
8719
|
Base.prototype.getDefaultPropertyValue = function (name) {
|
|
8717
8720
|
var prop = this.getPropertyByName(name);
|
|
8718
8721
|
if (!prop || prop.isCustom && this.isCreating)
|
|
@@ -8720,7 +8723,7 @@ var base_Base = /** @class */ (function () {
|
|
|
8720
8723
|
if (!!prop.defaultValueFunc)
|
|
8721
8724
|
return prop.defaultValueFunc(this);
|
|
8722
8725
|
var dValue = prop.getDefaultValue(this);
|
|
8723
|
-
if (!this.
|
|
8726
|
+
if (!this.isValueUndefined(dValue) && !Array.isArray(dValue))
|
|
8724
8727
|
return dValue;
|
|
8725
8728
|
var locStr = this.localizableStrings ? this.localizableStrings[name] : undefined;
|
|
8726
8729
|
if (locStr && locStr.localizationName)
|
|
@@ -10576,7 +10579,9 @@ var popup_PopupModel = /** @class */ (function (_super) {
|
|
|
10576
10579
|
};
|
|
10577
10580
|
PopupModel.prototype.updateDisplayMode = function (menuType) {
|
|
10578
10581
|
if (this.displayMode !== menuType) {
|
|
10579
|
-
|
|
10582
|
+
var isDropdown = menuType === "dropdown";
|
|
10583
|
+
this.setWidthByTarget = isDropdown;
|
|
10584
|
+
this.isFocusedContent = !isDropdown;
|
|
10580
10585
|
}
|
|
10581
10586
|
switch (menuType) {
|
|
10582
10587
|
case "dropdown": {
|
|
@@ -14815,6 +14820,7 @@ var Logger = /** @class */ (function () {
|
|
|
14815
14820
|
}());
|
|
14816
14821
|
|
|
14817
14822
|
function showConfirmDialog(message, callback, options) {
|
|
14823
|
+
if (options === void 0) { options = {}; }
|
|
14818
14824
|
var locStr = new localizablestring_LocalizableString(undefined);
|
|
14819
14825
|
var popupViewModel = settings.showDialog({
|
|
14820
14826
|
componentName: "sv-string-viewer",
|
|
@@ -15866,7 +15872,6 @@ var error_extends = (undefined && undefined.__extends) || (function () {
|
|
|
15866
15872
|
};
|
|
15867
15873
|
})();
|
|
15868
15874
|
|
|
15869
|
-
|
|
15870
15875
|
var AnswerRequiredError = /** @class */ (function (_super) {
|
|
15871
15876
|
error_extends(AnswerRequiredError, _super);
|
|
15872
15877
|
function AnswerRequiredError(text, errorOwner) {
|
|
@@ -15921,7 +15926,7 @@ var RequreNumericError = /** @class */ (function (_super) {
|
|
|
15921
15926
|
return RequreNumericError;
|
|
15922
15927
|
}(survey_error_SurveyError));
|
|
15923
15928
|
|
|
15924
|
-
var
|
|
15929
|
+
var ExceedSizeError = /** @class */ (function (_super) {
|
|
15925
15930
|
error_extends(ExceedSizeError, _super);
|
|
15926
15931
|
function ExceedSizeError(maxSize, errorOwner) {
|
|
15927
15932
|
if (errorOwner === void 0) { errorOwner = null; }
|
|
@@ -15934,7 +15939,7 @@ var error_ExceedSizeError = /** @class */ (function (_super) {
|
|
|
15934
15939
|
return "exceedsize";
|
|
15935
15940
|
};
|
|
15936
15941
|
ExceedSizeError.prototype.getDefaultText = function () {
|
|
15937
|
-
return
|
|
15942
|
+
return this.getLocalizationString("exceedMaxSize")["format"](this.getTextSize());
|
|
15938
15943
|
};
|
|
15939
15944
|
ExceedSizeError.prototype.getTextSize = function () {
|
|
15940
15945
|
var sizes = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
@@ -16053,7 +16058,7 @@ var EachRowUniqueError = /** @class */ (function (_super) {
|
|
|
16053
16058
|
return EachRowUniqueError;
|
|
16054
16059
|
}(survey_error_SurveyError));
|
|
16055
16060
|
|
|
16056
|
-
var
|
|
16061
|
+
var MinRowCountError = /** @class */ (function (_super) {
|
|
16057
16062
|
error_extends(MinRowCountError, _super);
|
|
16058
16063
|
function MinRowCountError(minRowCount, errorOwner) {
|
|
16059
16064
|
if (errorOwner === void 0) { errorOwner = null; }
|
|
@@ -16065,7 +16070,7 @@ var error_MinRowCountError = /** @class */ (function (_super) {
|
|
|
16065
16070
|
return "minrowcounterror";
|
|
16066
16071
|
};
|
|
16067
16072
|
MinRowCountError.prototype.getDefaultText = function () {
|
|
16068
|
-
return
|
|
16073
|
+
return this.getLocalizationString("minRowCountError")["format"](this.minRowCount);
|
|
16069
16074
|
};
|
|
16070
16075
|
return MinRowCountError;
|
|
16071
16076
|
}(survey_error_SurveyError));
|
|
@@ -28836,11 +28841,14 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
|
|
|
28836
28841
|
this.runFuncForCellQuestions(function (q) { q.localeChanged(); });
|
|
28837
28842
|
};
|
|
28838
28843
|
QuestionMatrixDropdownModelBase.prototype.runFuncForCellQuestions = function (func) {
|
|
28839
|
-
|
|
28840
|
-
|
|
28841
|
-
|
|
28842
|
-
|
|
28843
|
-
|
|
28844
|
+
var rows = this.generatedVisibleRows;
|
|
28845
|
+
if (!!rows) {
|
|
28846
|
+
for (var i = 0; i < rows.length; i++) {
|
|
28847
|
+
var row = rows[i];
|
|
28848
|
+
if (row.isVisible) {
|
|
28849
|
+
for (var j = 0; j < row.cells.length; j++) {
|
|
28850
|
+
func(row.cells[j].question);
|
|
28851
|
+
}
|
|
28844
28852
|
}
|
|
28845
28853
|
}
|
|
28846
28854
|
}
|
|
@@ -29433,6 +29441,7 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
|
|
|
29433
29441
|
return [];
|
|
29434
29442
|
};
|
|
29435
29443
|
QuestionMatrixDropdownModelBase.prototype.getProgressInfo = function () {
|
|
29444
|
+
this.getIsRequireToGenerateRows() && this.generateVisibleRowsIfNeeded();
|
|
29436
29445
|
if (!!this.generatedVisibleRows)
|
|
29437
29446
|
return survey_element_SurveyElement.getProgressInfoByElements(this.getCellQuestions(), this.isRequired);
|
|
29438
29447
|
var res = base_Base.createProgressInfo();
|
|
@@ -29443,6 +29452,9 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
|
|
|
29443
29452
|
}
|
|
29444
29453
|
return res;
|
|
29445
29454
|
};
|
|
29455
|
+
QuestionMatrixDropdownModelBase.prototype.getIsRequireToGenerateRows = function () {
|
|
29456
|
+
return !!this.rowsVisibleIf;
|
|
29457
|
+
};
|
|
29446
29458
|
QuestionMatrixDropdownModelBase.prototype.updateProgressInfoByValues = function (res) { };
|
|
29447
29459
|
QuestionMatrixDropdownModelBase.prototype.updateProgressInfoByRow = function (res, rowValue) {
|
|
29448
29460
|
for (var i = 0; i < this.columns.length; i++) {
|
|
@@ -30421,6 +30433,15 @@ var question_matrixdropdown_QuestionMatrixDropdownModel = /** @class */ (functio
|
|
|
30421
30433
|
QuestionMatrixDropdownModel.prototype.getSearchableItemValueKeys = function (keys) {
|
|
30422
30434
|
keys.push("rows");
|
|
30423
30435
|
};
|
|
30436
|
+
QuestionMatrixDropdownModel.prototype.getIsRequireToGenerateRows = function () {
|
|
30437
|
+
if (_super.prototype.getIsRequireToGenerateRows.call(this))
|
|
30438
|
+
return true;
|
|
30439
|
+
for (var i = 0; i < this.rows.length; i++) {
|
|
30440
|
+
if (!!this.rows[i].visibleIf)
|
|
30441
|
+
return true;
|
|
30442
|
+
}
|
|
30443
|
+
return false;
|
|
30444
|
+
};
|
|
30424
30445
|
QuestionMatrixDropdownModel.prototype.updateProgressInfoByValues = function (res) {
|
|
30425
30446
|
var val = this.value;
|
|
30426
30447
|
if (!val)
|
|
@@ -32193,7 +32214,7 @@ var question_matrixdynamic_QuestionMatrixDynamicModel = /** @class */ (function
|
|
|
32193
32214
|
QuestionMatrixDynamicModel.prototype.onCheckForErrors = function (errors, isOnValueChanged, fireCallback) {
|
|
32194
32215
|
_super.prototype.onCheckForErrors.call(this, errors, isOnValueChanged, fireCallback);
|
|
32195
32216
|
if (!isOnValueChanged && this.hasErrorInMinRows()) {
|
|
32196
|
-
errors.push(new
|
|
32217
|
+
errors.push(new MinRowCountError(this.minRowCount, this));
|
|
32197
32218
|
}
|
|
32198
32219
|
};
|
|
32199
32220
|
QuestionMatrixDynamicModel.prototype.hasErrorInMinRows = function () {
|
|
@@ -32913,6 +32934,8 @@ var defaultV2Css = {
|
|
|
32913
32934
|
imagepicker: {
|
|
32914
32935
|
mainRoot: "sd-element sd-question sd-row__question",
|
|
32915
32936
|
root: "sd-selectbase sd-imagepicker",
|
|
32937
|
+
rootResponsive: "sd-imagepicker--responsive",
|
|
32938
|
+
rootStatic: "sd-imagepicker--static",
|
|
32916
32939
|
rootColumn: "sd-imagepicker--column",
|
|
32917
32940
|
item: "sd-imagepicker__item",
|
|
32918
32941
|
itemOnError: "sd-imagepicker__item--error",
|
|
@@ -37737,11 +37760,13 @@ var page_PageModel = /** @class */ (function (_super) {
|
|
|
37737
37760
|
});
|
|
37738
37761
|
PageModel.prototype.getElementsForRows = function () {
|
|
37739
37762
|
var _a;
|
|
37740
|
-
|
|
37741
|
-
|
|
37742
|
-
if (q
|
|
37743
|
-
|
|
37744
|
-
|
|
37763
|
+
if (!this.isStartPage) {
|
|
37764
|
+
var q = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleQuestion;
|
|
37765
|
+
if (!!q) {
|
|
37766
|
+
if (q.page === this)
|
|
37767
|
+
return [q];
|
|
37768
|
+
return [];
|
|
37769
|
+
}
|
|
37745
37770
|
}
|
|
37746
37771
|
return _super.prototype.getElementsForRows.call(this);
|
|
37747
37772
|
};
|
|
@@ -42729,7 +42754,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
42729
42754
|
if (goToFirstPage) {
|
|
42730
42755
|
this.currentPage = this.firstVisiblePage;
|
|
42731
42756
|
if (this.currentSingleQuestion) {
|
|
42732
|
-
var questions = this.
|
|
42757
|
+
var questions = this.getSingleQuestions();
|
|
42733
42758
|
this.currentSingleQuestion = questions.length > 0 ? questions[0] : undefined;
|
|
42734
42759
|
}
|
|
42735
42760
|
}
|
|
@@ -43038,10 +43063,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43038
43063
|
return this.nextPage();
|
|
43039
43064
|
if (!q.validate(true))
|
|
43040
43065
|
return false;
|
|
43041
|
-
var questions = this.
|
|
43066
|
+
var questions = this.getSingleQuestions();
|
|
43042
43067
|
var index = questions.indexOf(q);
|
|
43043
43068
|
if (index < 0 || index === questions.length - 1)
|
|
43044
43069
|
return false;
|
|
43070
|
+
var key = {};
|
|
43071
|
+
key[q.name] = q.value;
|
|
43072
|
+
this.checkTriggers(key, false, false, true, q.name);
|
|
43045
43073
|
this.currentSingleQuestion = questions[index + 1];
|
|
43046
43074
|
return true;
|
|
43047
43075
|
};
|
|
@@ -43049,7 +43077,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43049
43077
|
var q = this.currentSingleQuestion;
|
|
43050
43078
|
if (!q)
|
|
43051
43079
|
return this.prevPage();
|
|
43052
|
-
var questions = this.
|
|
43080
|
+
var questions = this.getSingleQuestions();
|
|
43053
43081
|
var index = questions.indexOf(q);
|
|
43054
43082
|
if (index === 0)
|
|
43055
43083
|
return false;
|
|
@@ -43631,11 +43659,22 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43631
43659
|
});
|
|
43632
43660
|
this.updateButtonsVisibility();
|
|
43633
43661
|
};
|
|
43662
|
+
SurveyModel.prototype.getSingleQuestions = function () {
|
|
43663
|
+
var res = new Array();
|
|
43664
|
+
var pages = this.pages;
|
|
43665
|
+
for (var i = 0; i < pages.length; i++) {
|
|
43666
|
+
var p = pages[i];
|
|
43667
|
+
if (!p.isStartPage && p.isVisible) {
|
|
43668
|
+
p.addQuestionsToList(res, true);
|
|
43669
|
+
}
|
|
43670
|
+
}
|
|
43671
|
+
return res;
|
|
43672
|
+
};
|
|
43634
43673
|
Object.defineProperty(SurveyModel.prototype, "currentSingleQuestion", {
|
|
43635
43674
|
get: function () { return this.currentSingleQuestionValue; },
|
|
43636
43675
|
set: function (val) {
|
|
43637
43676
|
var oldVal = this.currentSingleQuestion;
|
|
43638
|
-
if (val !== oldVal) {
|
|
43677
|
+
if (val !== oldVal && !this.isCompleted) {
|
|
43639
43678
|
var options = !!val && !!oldVal ? this.createPageChangeEventOptions(val.page, oldVal.page, val, oldVal) : undefined;
|
|
43640
43679
|
if (!!options && !this.currentPageChangingFromOptions(options))
|
|
43641
43680
|
return;
|
|
@@ -43675,7 +43714,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43675
43714
|
this.updatePagesContainer();
|
|
43676
43715
|
}
|
|
43677
43716
|
if (this.isSingleVisibleQuestion) {
|
|
43678
|
-
var questions = this.
|
|
43717
|
+
var questions = this.getSingleQuestions();
|
|
43679
43718
|
if (questions.length > 0) {
|
|
43680
43719
|
this.currentSingleQuestion = questions[0];
|
|
43681
43720
|
}
|
|
@@ -43771,7 +43810,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43771
43810
|
var lVal = undefined;
|
|
43772
43811
|
var q = this.currentSingleQuestion;
|
|
43773
43812
|
if (!!q) {
|
|
43774
|
-
var questions = this.
|
|
43813
|
+
var questions = this.getSingleQuestions();
|
|
43775
43814
|
var index = questions.indexOf(q);
|
|
43776
43815
|
if (index >= 0) {
|
|
43777
43816
|
fVal = index === 0;
|
|
@@ -43951,6 +43990,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43951
43990
|
this.startTimerFromUI();
|
|
43952
43991
|
this.onStarted.fire(this, {});
|
|
43953
43992
|
this.updateVisibleIndexes();
|
|
43993
|
+
this.currentPageNo = 0;
|
|
43954
43994
|
if (!!this.currentPage) {
|
|
43955
43995
|
this.currentPage.locStrsChanged();
|
|
43956
43996
|
}
|
|
@@ -45200,6 +45240,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
45200
45240
|
question.onSurveyValueChanged(newValue);
|
|
45201
45241
|
}
|
|
45202
45242
|
}
|
|
45243
|
+
this.updateProgressText(true);
|
|
45203
45244
|
this.fireOnValueChanged(valueName, newValue, !!questionName ? this.getQuestionByName(questionName) : undefined);
|
|
45204
45245
|
if (this.isDisposed)
|
|
45205
45246
|
return;
|
|
@@ -45273,8 +45314,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
45273
45314
|
}
|
|
45274
45315
|
return result;
|
|
45275
45316
|
};
|
|
45276
|
-
SurveyModel.prototype.checkTriggers = function (key, isOnNextPage, isOnComplete, name) {
|
|
45317
|
+
SurveyModel.prototype.checkTriggers = function (key, isOnNextPage, isOnComplete, isOnNavigation, name) {
|
|
45277
45318
|
if (isOnComplete === void 0) { isOnComplete = false; }
|
|
45319
|
+
if (isOnNavigation === void 0) { isOnNavigation = false; }
|
|
45278
45320
|
if (this.isCompleted || this.triggers.length == 0 || this.isDisplayMode)
|
|
45279
45321
|
return;
|
|
45280
45322
|
if (this.isTriggerIsRunning) {
|
|
@@ -45298,7 +45340,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
45298
45340
|
var trigger = this.triggers[i];
|
|
45299
45341
|
if (isQuestionInvalid && trigger.requireValidQuestion)
|
|
45300
45342
|
continue;
|
|
45301
|
-
|
|
45343
|
+
var options = { isOnNextPage: isOnNextPage, isOnComplete: isOnComplete, isOnNavigation: isOnNavigation,
|
|
45344
|
+
keys: this.triggerKeys, values: this.triggerValues, properties: properties };
|
|
45345
|
+
trigger.checkExpression(options);
|
|
45302
45346
|
}
|
|
45303
45347
|
if (prevCanBeCompleted !== this.canBeCompletedByTrigger) {
|
|
45304
45348
|
this.updateButtonsVisibility();
|
|
@@ -45309,7 +45353,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
45309
45353
|
var triggerKeys = {};
|
|
45310
45354
|
triggerKeys[name] = { newValue: newValue, oldValue: oldValue };
|
|
45311
45355
|
this.runConditionOnValueChanged(name, newValue);
|
|
45312
|
-
this.checkTriggers(triggerKeys, false, false, name);
|
|
45356
|
+
this.checkTriggers(triggerKeys, false, false, false, name);
|
|
45313
45357
|
};
|
|
45314
45358
|
Object.defineProperty(SurveyModel.prototype, "hasRequiredValidQuestionTrigger", {
|
|
45315
45359
|
get: function () {
|
|
@@ -50704,7 +50748,7 @@ var popup_view_model_PopupBaseViewModel = /** @class */ (function (_super) {
|
|
|
50704
50748
|
this.footerToolbarValue.setItems(footerActions);
|
|
50705
50749
|
};
|
|
50706
50750
|
PopupBaseViewModel.prototype.resetDimensionsAndPositionStyleProperties = function () {
|
|
50707
|
-
var nullableValue = "
|
|
50751
|
+
var nullableValue = "";
|
|
50708
50752
|
this.top = nullableValue;
|
|
50709
50753
|
this.left = nullableValue;
|
|
50710
50754
|
this.height = nullableValue;
|
|
@@ -51704,7 +51748,7 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
|
|
|
51704
51748
|
});
|
|
51705
51749
|
Object.defineProperty(DropdownListModel.prototype, "showHintString", {
|
|
51706
51750
|
get: function () {
|
|
51707
|
-
return !!this.question.searchEnabled && this.hintStringLC
|
|
51751
|
+
return !!this.question.searchEnabled && !!(this.hintStringLC || this.inputStringLC) ||
|
|
51708
51752
|
!this.question.searchEnabled && this.hintStringLC && this.question.isEmpty();
|
|
51709
51753
|
},
|
|
51710
51754
|
enumerable: false,
|
|
@@ -51918,8 +51962,7 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
|
|
|
51918
51962
|
};
|
|
51919
51963
|
DropdownListModel.prototype.onBlur = function (event) {
|
|
51920
51964
|
this.focused = false;
|
|
51921
|
-
if (this.popupModel.isVisible &&
|
|
51922
|
-
this._popupModel.show();
|
|
51965
|
+
if (this.popupModel.isVisible && this.popupModel.displayMode == "overlay") {
|
|
51923
51966
|
return;
|
|
51924
51967
|
}
|
|
51925
51968
|
doKey2ClickBlur(event);
|
|
@@ -56682,7 +56725,6 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
|
56682
56725
|
QuestionCheckboxModel.prototype.getSelectAllEnabled = function () {
|
|
56683
56726
|
if (!this.hasSelectAll)
|
|
56684
56727
|
return true;
|
|
56685
|
-
var items = this.activeChoices;
|
|
56686
56728
|
var visCount = this.getVisibleEnableItems().length;
|
|
56687
56729
|
var max = this.maxSelectedChoices;
|
|
56688
56730
|
if (max > 0 && max < visCount)
|
|
@@ -56691,10 +56733,10 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
|
56691
56733
|
};
|
|
56692
56734
|
QuestionCheckboxModel.prototype.getVisibleEnableItems = function () {
|
|
56693
56735
|
var res = new Array();
|
|
56694
|
-
var items = this.
|
|
56736
|
+
var items = this.visibleChoices;
|
|
56695
56737
|
for (var i = 0; i < items.length; i++) {
|
|
56696
56738
|
var item = items[i];
|
|
56697
|
-
if (item.isEnabled && item
|
|
56739
|
+
if (item.isEnabled && !this.isBuiltInChoice(item)) {
|
|
56698
56740
|
res.push(item);
|
|
56699
56741
|
}
|
|
56700
56742
|
}
|
|
@@ -56978,7 +57020,7 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
|
56978
57020
|
return [_super.prototype.valueFromData.call(this, val)];
|
|
56979
57021
|
var value = [];
|
|
56980
57022
|
for (var i = 0; i < val.length; i++) {
|
|
56981
|
-
var choiceitem = itemvalue_ItemValue.getItemByValue(this.
|
|
57023
|
+
var choiceitem = itemvalue_ItemValue.getItemByValue(this.visibleChoices, val[i]);
|
|
56982
57024
|
if (!!choiceitem) {
|
|
56983
57025
|
value.push(choiceitem.value);
|
|
56984
57026
|
}
|
|
@@ -57884,11 +57926,11 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
|
|
|
57884
57926
|
dragOverChoice = this.parentElement.choices.filter(function (choice) { return "" + choice.value == dataAttributeValue; })[0];
|
|
57885
57927
|
return dragOverChoice;
|
|
57886
57928
|
};
|
|
57887
|
-
DragDropChoices.prototype.
|
|
57929
|
+
DragDropChoices.prototype.getChoices = function () {
|
|
57888
57930
|
var parent = this.parentElement;
|
|
57889
57931
|
if (parent.getType() === "ranking") {
|
|
57890
57932
|
if (parent.selectToRankEnabled) {
|
|
57891
|
-
return parent.
|
|
57933
|
+
return parent.unRankingChoices;
|
|
57892
57934
|
}
|
|
57893
57935
|
else {
|
|
57894
57936
|
return parent.rankingChoices;
|
|
@@ -57897,7 +57939,7 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
|
|
|
57897
57939
|
return parent.visibleChoices;
|
|
57898
57940
|
};
|
|
57899
57941
|
DragDropChoices.prototype.isDropTargetValid = function (dropTarget, dropTargetNode) {
|
|
57900
|
-
var choices = this.
|
|
57942
|
+
var choices = this.getChoices();
|
|
57901
57943
|
if (this.parentElement.getType() !== "imagepicker") {
|
|
57902
57944
|
var dropTargetIndex = choices.indexOf(this.dropTarget);
|
|
57903
57945
|
var draggedElementIndex = choices.indexOf(this.draggedElement);
|
|
@@ -57924,7 +57966,7 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
|
|
|
57924
57966
|
};
|
|
57925
57967
|
DragDropChoices.prototype.afterDragOver = function (dropTargetNode) {
|
|
57926
57968
|
//if (this.isDropTargetDoesntChanged(this.isBottom)) return;
|
|
57927
|
-
var choices = this.
|
|
57969
|
+
var choices = this.getChoices();
|
|
57928
57970
|
var dropTargetIndex = choices.indexOf(this.dropTarget);
|
|
57929
57971
|
var draggedElementIndex = choices.indexOf(this.draggedElement);
|
|
57930
57972
|
if (draggedElementIndex < dropTargetIndex && this.isBottom === true) {
|
|
@@ -57958,7 +58000,7 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
|
|
|
57958
58000
|
};
|
|
57959
58001
|
DragDropChoices.prototype.doDrop = function () {
|
|
57960
58002
|
var choices = this.parentElement.choices;
|
|
57961
|
-
var filteredChoices = this.
|
|
58003
|
+
var filteredChoices = this.getChoices().filter(function (item) {
|
|
57962
58004
|
return choices.indexOf(item) !== -1;
|
|
57963
58005
|
});
|
|
57964
58006
|
var oldIndex = choices.indexOf(this.draggedElement);
|
|
@@ -58033,6 +58075,9 @@ var ranking_choices_DragDropRankingChoices = /** @class */ (function (_super) {
|
|
|
58033
58075
|
}
|
|
58034
58076
|
var node = _this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");
|
|
58035
58077
|
node.style.cursor = "not-allowed";
|
|
58078
|
+
if (IsTouch) {
|
|
58079
|
+
_this.parentElement.updateRankingChoices(true);
|
|
58080
|
+
}
|
|
58036
58081
|
};
|
|
58037
58082
|
return _this;
|
|
58038
58083
|
}
|
|
@@ -60608,7 +60653,7 @@ var question_file_QuestionFileModel = /** @class */ (function (_super) {
|
|
|
60608
60653
|
var errorLength = this.errors ? this.errors.length : 0;
|
|
60609
60654
|
(files || []).forEach(function (file) {
|
|
60610
60655
|
if (_this.maxSize > 0 && file.size > _this.maxSize) {
|
|
60611
|
-
_this.errors.push(new
|
|
60656
|
+
_this.errors.push(new ExceedSizeError(_this.maxSize, _this));
|
|
60612
60657
|
}
|
|
60613
60658
|
});
|
|
60614
60659
|
return errorLength === this.errors.length;
|
|
@@ -60835,7 +60880,7 @@ var question_file_QuestionFileModel = /** @class */ (function (_super) {
|
|
|
60835
60880
|
if (this.needConfirmRemoveFile) {
|
|
60836
60881
|
confirmActionAsync({
|
|
60837
60882
|
message: this.getConfirmRemoveMessage(data.name),
|
|
60838
|
-
funcOnYes: function () { _this.
|
|
60883
|
+
funcOnYes: function () { _this.removeFileCore(data); },
|
|
60839
60884
|
locale: this.getLocale(),
|
|
60840
60885
|
rootElement: this.survey.rootElement,
|
|
60841
60886
|
cssClass: this.cssClasses.confirmDialog
|
|
@@ -62013,21 +62058,13 @@ var question_rating_QuestionRatingModel = /** @class */ (function (_super) {
|
|
|
62013
62058
|
});
|
|
62014
62059
|
Object.defineProperty(QuestionRatingModel.prototype, "ratingRootCss", {
|
|
62015
62060
|
get: function () {
|
|
62016
|
-
var
|
|
62017
|
-
this.cssClasses.rootWrappable : "";
|
|
62018
|
-
var rootClassModifier = "";
|
|
62019
|
-
if (this.hasMaxLabel || this.hasMinLabel) {
|
|
62020
|
-
if (this.rateDescriptionLocation == "top")
|
|
62021
|
-
rootClassModifier = this.cssClasses.rootLabelsTop;
|
|
62022
|
-
if (this.rateDescriptionLocation == "bottom")
|
|
62023
|
-
rootClassModifier = this.cssClasses.rootLabelsBottom;
|
|
62024
|
-
if (this.rateDescriptionLocation == "topBottom")
|
|
62025
|
-
rootClassModifier = this.cssClasses.rootLabelsDiagonal;
|
|
62026
|
-
}
|
|
62061
|
+
var hasLabel = this.hasMaxLabel || this.hasMinLabel;
|
|
62027
62062
|
return new CssClassBuilder()
|
|
62028
62063
|
.append(this.cssClasses.root)
|
|
62029
|
-
.append(
|
|
62030
|
-
.append(
|
|
62064
|
+
.append(this.cssClasses.rootWrappable, this.displayMode == "buttons" || (!!this.survey && this.survey.isDesignMode) || (this.displayMode == "auto" && !this.supportResponsiveness()))
|
|
62065
|
+
.append(this.cssClasses.rootLabelsTop, hasLabel && this.rateDescriptionLocation == "top")
|
|
62066
|
+
.append(this.cssClasses.rootLabelsBottom, hasLabel && this.rateDescriptionLocation == "bottom")
|
|
62067
|
+
.append(this.cssClasses.rootLabelsDiagonal, hasLabel && this.rateDescriptionLocation == "topBottom")
|
|
62031
62068
|
.append(this.cssClasses.itemSmall, this.itemSmallMode && this.rateType != "labels")
|
|
62032
62069
|
.toString();
|
|
62033
62070
|
},
|
|
@@ -62253,7 +62290,7 @@ var question_rating_QuestionRatingModel = /** @class */ (function (_super) {
|
|
|
62253
62290
|
};
|
|
62254
62291
|
// TODO: return responsiveness after design improvement
|
|
62255
62292
|
QuestionRatingModel.prototype.supportResponsiveness = function () {
|
|
62256
|
-
return
|
|
62293
|
+
return !this.inMatrixMode;
|
|
62257
62294
|
};
|
|
62258
62295
|
QuestionRatingModel.prototype.onBeforeSetCompactRenderer = function () {
|
|
62259
62296
|
if (!this.dropdownListModelValue) {
|
|
@@ -63087,6 +63124,7 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
63087
63124
|
}
|
|
63088
63125
|
_this._width && _this.processResponsiveness(0, _this._width);
|
|
63089
63126
|
};
|
|
63127
|
+
_this.gridColCount = undefined;
|
|
63090
63128
|
_this.colCount = 0;
|
|
63091
63129
|
_this.registerPropertyChangedHandlers(["minImageWidth", "maxImageWidth", "minImageHeight", "maxImageHeight", "visibleChoices", "colCount", "isResponsiveValue"], function () {
|
|
63092
63130
|
if (!!_this._width) {
|
|
@@ -63365,7 +63403,13 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
63365
63403
|
this.addNewItemToVisibleChoices(items, isAddAll);
|
|
63366
63404
|
};
|
|
63367
63405
|
QuestionImagePickerModel.prototype.getSelectBaseRootCss = function () {
|
|
63368
|
-
|
|
63406
|
+
var isResponsive = this.isResponsive;
|
|
63407
|
+
return new CssClassBuilder()
|
|
63408
|
+
.append(_super.prototype.getSelectBaseRootCss.call(this))
|
|
63409
|
+
.append(this.cssClasses.rootResponsive, isResponsive)
|
|
63410
|
+
.append(this.cssClasses.rootStatic, !isResponsive)
|
|
63411
|
+
.append(this.cssClasses.rootColumn, this.getCurrentColCount() == 1)
|
|
63412
|
+
.toString();
|
|
63369
63413
|
};
|
|
63370
63414
|
Object.defineProperty(QuestionImagePickerModel.prototype, "isResponsive", {
|
|
63371
63415
|
get: function () {
|
|
@@ -63403,6 +63447,14 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
63403
63447
|
}
|
|
63404
63448
|
return this.responsiveColCount;
|
|
63405
63449
|
};
|
|
63450
|
+
QuestionImagePickerModel.prototype.getContainerStyle = function () {
|
|
63451
|
+
if (!this.isResponsive)
|
|
63452
|
+
return {};
|
|
63453
|
+
return {
|
|
63454
|
+
gridAutoFlow: !this.gridColCount ? "column" : null,
|
|
63455
|
+
gridTemplateColumns: this.gridColCount ? "repeat(" + this.gridColCount + ", 1fr)" : null
|
|
63456
|
+
};
|
|
63457
|
+
};
|
|
63406
63458
|
QuestionImagePickerModel.prototype.processResponsiveness = function (_, availableWidth) {
|
|
63407
63459
|
this._width = availableWidth = Math.floor(availableWidth);
|
|
63408
63460
|
var calcAvailableColumnsCount = function (availableWidth, minWidth, gap) {
|
|
@@ -63420,24 +63472,25 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
63420
63472
|
var minHeight = this.minImageHeight * this.imageScale;
|
|
63421
63473
|
var colCount = this.colCount;
|
|
63422
63474
|
var width_1;
|
|
63475
|
+
var availableColumnsCount = calcAvailableColumnsCount(availableWidth, minWidth, gap);
|
|
63423
63476
|
if (colCount === 0) {
|
|
63424
63477
|
if ((gap + minWidth) * itemsCount - gap > availableWidth) {
|
|
63425
|
-
|
|
63426
|
-
width_1 = Math.floor((availableWidth - gap * (itemsInRow - 1)) / itemsInRow);
|
|
63478
|
+
width_1 = Math.floor((availableWidth - gap * (availableColumnsCount - 1)) / availableColumnsCount);
|
|
63427
63479
|
}
|
|
63428
63480
|
else {
|
|
63429
63481
|
width_1 = Math.floor(((availableWidth - gap * (itemsCount - 1)) / itemsCount));
|
|
63430
63482
|
}
|
|
63483
|
+
this.gridColCount = Math.max(Math.min(itemsCount, availableColumnsCount), 1);
|
|
63431
63484
|
}
|
|
63432
63485
|
else {
|
|
63433
|
-
var availableColumnsCount = calcAvailableColumnsCount(availableWidth, minWidth, gap);
|
|
63434
63486
|
if (availableColumnsCount < colCount) {
|
|
63435
|
-
this.responsiveColCount = availableColumnsCount
|
|
63487
|
+
this.responsiveColCount = Math.max(availableColumnsCount, 1);
|
|
63436
63488
|
colCount = this.responsiveColCount;
|
|
63437
63489
|
}
|
|
63438
63490
|
else {
|
|
63439
63491
|
this.responsiveColCount = colCount;
|
|
63440
63492
|
}
|
|
63493
|
+
this.gridColCount = this.responsiveColCount;
|
|
63441
63494
|
width_1 = Math.floor((availableWidth - gap * (colCount - 1)) / colCount);
|
|
63442
63495
|
}
|
|
63443
63496
|
width_1 = Math.max(minWidth, Math.min(width_1, maxWidth));
|
|
@@ -63503,6 +63556,9 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
63503
63556
|
question_imagepicker_decorate([
|
|
63504
63557
|
jsonobject_property({})
|
|
63505
63558
|
], QuestionImagePickerModel.prototype, "responsiveColCount", void 0);
|
|
63559
|
+
question_imagepicker_decorate([
|
|
63560
|
+
jsonobject_property()
|
|
63561
|
+
], QuestionImagePickerModel.prototype, "gridColCount", void 0);
|
|
63506
63562
|
return QuestionImagePickerModel;
|
|
63507
63563
|
}(QuestionCheckboxBase));
|
|
63508
63564
|
|
|
@@ -68344,21 +68400,21 @@ var trigger_Trigger = /** @class */ (function (_super) {
|
|
|
68344
68400
|
Trigger.prototype.canBeExecutedOnComplete = function () {
|
|
68345
68401
|
return false;
|
|
68346
68402
|
};
|
|
68347
|
-
Trigger.prototype.checkExpression = function (
|
|
68348
|
-
|
|
68349
|
-
this.
|
|
68350
|
-
if (!this.canBeExecuted(isOnNextPage))
|
|
68403
|
+
Trigger.prototype.checkExpression = function (options) {
|
|
68404
|
+
this.isExecutingOnNextPage = options.isOnNextPage;
|
|
68405
|
+
this.isExecutingOnNavigation = options.isOnNavigation || options.isOnNextPage;
|
|
68406
|
+
if (!this.canBeExecuted(options.isOnNextPage))
|
|
68351
68407
|
return;
|
|
68352
|
-
if (isOnComplete && !this.canBeExecutedOnComplete())
|
|
68408
|
+
if (options.isOnComplete && !this.canBeExecutedOnComplete())
|
|
68353
68409
|
return;
|
|
68354
|
-
if (!this.isCheckRequired(keys))
|
|
68410
|
+
if (!this.isCheckRequired(options.keys))
|
|
68355
68411
|
return;
|
|
68356
68412
|
if (!!this.conditionRunner) {
|
|
68357
|
-
this.perform(values, properties);
|
|
68413
|
+
this.perform(options.values, options.properties || null);
|
|
68358
68414
|
}
|
|
68359
68415
|
else {
|
|
68360
68416
|
if (this.canSuccessOnEmptyExpression()) {
|
|
68361
|
-
this.triggerResult(true, values, properties);
|
|
68417
|
+
this.triggerResult(true, options.values, options.properties || null);
|
|
68362
68418
|
}
|
|
68363
68419
|
}
|
|
68364
68420
|
};
|
|
@@ -68556,7 +68612,7 @@ var trigger_SurveyTriggerComplete = /** @class */ (function (_super) {
|
|
|
68556
68612
|
configurable: true
|
|
68557
68613
|
});
|
|
68558
68614
|
SurveyTriggerComplete.prototype.isRealExecution = function () {
|
|
68559
|
-
return !settings.triggers.executeCompleteOnValueChanged === this.
|
|
68615
|
+
return !settings.triggers.executeCompleteOnValueChanged === this.isExecutingOnNavigation;
|
|
68560
68616
|
};
|
|
68561
68617
|
SurveyTriggerComplete.prototype.onSuccess = function (values, properties) {
|
|
68562
68618
|
if (!this.owner)
|
|
@@ -70167,8 +70223,8 @@ var mask_numeric_InputMaskNumeric = /** @class */ (function (_super) {
|
|
|
70167
70223
|
InputMaskNumeric.prototype.getType = function () {
|
|
70168
70224
|
return "numericmask";
|
|
70169
70225
|
};
|
|
70170
|
-
InputMaskNumeric.prototype.
|
|
70171
|
-
return value === "" ||
|
|
70226
|
+
InputMaskNumeric.prototype.isValueUndefined = function (value) {
|
|
70227
|
+
return value === "" || _super.prototype.isValueUndefined.call(this, value);
|
|
70172
70228
|
};
|
|
70173
70229
|
mask_numeric_decorate([
|
|
70174
70230
|
jsonobject_property()
|
|
@@ -71029,9 +71085,9 @@ Serializer.addClass("currencymask", [
|
|
|
71029
71085
|
|
|
71030
71086
|
var Version;
|
|
71031
71087
|
var ReleaseDate;
|
|
71032
|
-
Version = "" + "1.12.
|
|
71088
|
+
Version = "" + "1.12.26";
|
|
71033
71089
|
settings.version = Version;
|
|
71034
|
-
ReleaseDate = "" + "2025-
|
|
71090
|
+
ReleaseDate = "" + "2025-03-03";
|
|
71035
71091
|
function checkLibraryVersion(ver, libraryName) {
|
|
71036
71092
|
if (Version != ver) {
|
|
71037
71093
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|