survey-core 1.12.25 → 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 +26 -3
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +26 -3
- 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 +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 +63 -29
- 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/defaultCss/defaultV2Css.d.ts +2 -0
- 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/utils/utils.d.ts +1 -1
- package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +2 -0
- 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/utils/utils.d.ts +1 -1
package/i18n/romanian.min.js
CHANGED
package/i18n/russian.js
CHANGED
package/i18n/russian.min.js
CHANGED
package/i18n/serbian.js
CHANGED
package/i18n/serbian.min.js
CHANGED
package/i18n/slovak.js
CHANGED
package/i18n/slovak.min.js
CHANGED
package/i18n/slovenian.js
CHANGED
package/i18n/slovenian.min.js
CHANGED
package/i18n/spanish.js
CHANGED
package/i18n/spanish.min.js
CHANGED
package/i18n/swahili.js
CHANGED
package/i18n/swahili.min.js
CHANGED
package/i18n/swedish.js
CHANGED
package/i18n/swedish.min.js
CHANGED
package/i18n/tajik.js
CHANGED
package/i18n/tajik.min.js
CHANGED
package/i18n/telugu.js
CHANGED
package/i18n/telugu.min.js
CHANGED
package/i18n/thai.js
CHANGED
package/i18n/thai.min.js
CHANGED
package/i18n/turkish.js
CHANGED
package/i18n/turkish.min.js
CHANGED
package/i18n/ukrainian.js
CHANGED
package/i18n/ukrainian.min.js
CHANGED
package/i18n/urdu.js
CHANGED
package/i18n/urdu.min.js
CHANGED
package/i18n/vietnamese.js
CHANGED
package/i18n/vietnamese.min.js
CHANGED
package/i18n/welsh.js
CHANGED
package/i18n/welsh.min.js
CHANGED
package/icons/iconsV1.js
CHANGED
package/icons/iconsV1.min.js
CHANGED
package/icons/iconsV2.js
CHANGED
package/icons/iconsV2.min.js
CHANGED
package/modern.css
CHANGED
package/modern.fontless.css
CHANGED
package/modern.fontless.min.css
CHANGED
package/modern.min.css
CHANGED
package/package.json
CHANGED
package/survey.core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.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
|
*/
|
|
@@ -10579,7 +10579,9 @@ var popup_PopupModel = /** @class */ (function (_super) {
|
|
|
10579
10579
|
};
|
|
10580
10580
|
PopupModel.prototype.updateDisplayMode = function (menuType) {
|
|
10581
10581
|
if (this.displayMode !== menuType) {
|
|
10582
|
-
|
|
10582
|
+
var isDropdown = menuType === "dropdown";
|
|
10583
|
+
this.setWidthByTarget = isDropdown;
|
|
10584
|
+
this.isFocusedContent = !isDropdown;
|
|
10583
10585
|
}
|
|
10584
10586
|
switch (menuType) {
|
|
10585
10587
|
case "dropdown": {
|
|
@@ -14818,6 +14820,7 @@ var Logger = /** @class */ (function () {
|
|
|
14818
14820
|
}());
|
|
14819
14821
|
|
|
14820
14822
|
function showConfirmDialog(message, callback, options) {
|
|
14823
|
+
if (options === void 0) { options = {}; }
|
|
14821
14824
|
var locStr = new localizablestring_LocalizableString(undefined);
|
|
14822
14825
|
var popupViewModel = settings.showDialog({
|
|
14823
14826
|
componentName: "sv-string-viewer",
|
|
@@ -28838,11 +28841,14 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
|
|
|
28838
28841
|
this.runFuncForCellQuestions(function (q) { q.localeChanged(); });
|
|
28839
28842
|
};
|
|
28840
28843
|
QuestionMatrixDropdownModelBase.prototype.runFuncForCellQuestions = function (func) {
|
|
28841
|
-
|
|
28842
|
-
|
|
28843
|
-
|
|
28844
|
-
|
|
28845
|
-
|
|
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
|
+
}
|
|
28846
28852
|
}
|
|
28847
28853
|
}
|
|
28848
28854
|
}
|
|
@@ -29435,6 +29441,7 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
|
|
|
29435
29441
|
return [];
|
|
29436
29442
|
};
|
|
29437
29443
|
QuestionMatrixDropdownModelBase.prototype.getProgressInfo = function () {
|
|
29444
|
+
this.getIsRequireToGenerateRows() && this.generateVisibleRowsIfNeeded();
|
|
29438
29445
|
if (!!this.generatedVisibleRows)
|
|
29439
29446
|
return survey_element_SurveyElement.getProgressInfoByElements(this.getCellQuestions(), this.isRequired);
|
|
29440
29447
|
var res = base_Base.createProgressInfo();
|
|
@@ -29445,6 +29452,9 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
|
|
|
29445
29452
|
}
|
|
29446
29453
|
return res;
|
|
29447
29454
|
};
|
|
29455
|
+
QuestionMatrixDropdownModelBase.prototype.getIsRequireToGenerateRows = function () {
|
|
29456
|
+
return !!this.rowsVisibleIf;
|
|
29457
|
+
};
|
|
29448
29458
|
QuestionMatrixDropdownModelBase.prototype.updateProgressInfoByValues = function (res) { };
|
|
29449
29459
|
QuestionMatrixDropdownModelBase.prototype.updateProgressInfoByRow = function (res, rowValue) {
|
|
29450
29460
|
for (var i = 0; i < this.columns.length; i++) {
|
|
@@ -30423,6 +30433,15 @@ var question_matrixdropdown_QuestionMatrixDropdownModel = /** @class */ (functio
|
|
|
30423
30433
|
QuestionMatrixDropdownModel.prototype.getSearchableItemValueKeys = function (keys) {
|
|
30424
30434
|
keys.push("rows");
|
|
30425
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
|
+
};
|
|
30426
30445
|
QuestionMatrixDropdownModel.prototype.updateProgressInfoByValues = function (res) {
|
|
30427
30446
|
var val = this.value;
|
|
30428
30447
|
if (!val)
|
|
@@ -32915,6 +32934,8 @@ var defaultV2Css = {
|
|
|
32915
32934
|
imagepicker: {
|
|
32916
32935
|
mainRoot: "sd-element sd-question sd-row__question",
|
|
32917
32936
|
root: "sd-selectbase sd-imagepicker",
|
|
32937
|
+
rootResponsive: "sd-imagepicker--responsive",
|
|
32938
|
+
rootStatic: "sd-imagepicker--static",
|
|
32918
32939
|
rootColumn: "sd-imagepicker--column",
|
|
32919
32940
|
item: "sd-imagepicker__item",
|
|
32920
32941
|
itemOnError: "sd-imagepicker__item--error",
|
|
@@ -43969,6 +43990,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
43969
43990
|
this.startTimerFromUI();
|
|
43970
43991
|
this.onStarted.fire(this, {});
|
|
43971
43992
|
this.updateVisibleIndexes();
|
|
43993
|
+
this.currentPageNo = 0;
|
|
43972
43994
|
if (!!this.currentPage) {
|
|
43973
43995
|
this.currentPage.locStrsChanged();
|
|
43974
43996
|
}
|
|
@@ -45218,6 +45240,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
|
|
|
45218
45240
|
question.onSurveyValueChanged(newValue);
|
|
45219
45241
|
}
|
|
45220
45242
|
}
|
|
45243
|
+
this.updateProgressText(true);
|
|
45221
45244
|
this.fireOnValueChanged(valueName, newValue, !!questionName ? this.getQuestionByName(questionName) : undefined);
|
|
45222
45245
|
if (this.isDisposed)
|
|
45223
45246
|
return;
|
|
@@ -60857,7 +60880,7 @@ var question_file_QuestionFileModel = /** @class */ (function (_super) {
|
|
|
60857
60880
|
if (this.needConfirmRemoveFile) {
|
|
60858
60881
|
confirmActionAsync({
|
|
60859
60882
|
message: this.getConfirmRemoveMessage(data.name),
|
|
60860
|
-
funcOnYes: function () { _this.
|
|
60883
|
+
funcOnYes: function () { _this.removeFileCore(data); },
|
|
60861
60884
|
locale: this.getLocale(),
|
|
60862
60885
|
rootElement: this.survey.rootElement,
|
|
60863
60886
|
cssClass: this.cssClasses.confirmDialog
|
|
@@ -62035,21 +62058,13 @@ var question_rating_QuestionRatingModel = /** @class */ (function (_super) {
|
|
|
62035
62058
|
});
|
|
62036
62059
|
Object.defineProperty(QuestionRatingModel.prototype, "ratingRootCss", {
|
|
62037
62060
|
get: function () {
|
|
62038
|
-
var
|
|
62039
|
-
this.cssClasses.rootWrappable : "";
|
|
62040
|
-
var rootClassModifier = "";
|
|
62041
|
-
if (this.hasMaxLabel || this.hasMinLabel) {
|
|
62042
|
-
if (this.rateDescriptionLocation == "top")
|
|
62043
|
-
rootClassModifier = this.cssClasses.rootLabelsTop;
|
|
62044
|
-
if (this.rateDescriptionLocation == "bottom")
|
|
62045
|
-
rootClassModifier = this.cssClasses.rootLabelsBottom;
|
|
62046
|
-
if (this.rateDescriptionLocation == "topBottom")
|
|
62047
|
-
rootClassModifier = this.cssClasses.rootLabelsDiagonal;
|
|
62048
|
-
}
|
|
62061
|
+
var hasLabel = this.hasMaxLabel || this.hasMinLabel;
|
|
62049
62062
|
return new CssClassBuilder()
|
|
62050
62063
|
.append(this.cssClasses.root)
|
|
62051
|
-
.append(
|
|
62052
|
-
.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")
|
|
62053
62068
|
.append(this.cssClasses.itemSmall, this.itemSmallMode && this.rateType != "labels")
|
|
62054
62069
|
.toString();
|
|
62055
62070
|
},
|
|
@@ -62275,7 +62290,7 @@ var question_rating_QuestionRatingModel = /** @class */ (function (_super) {
|
|
|
62275
62290
|
};
|
|
62276
62291
|
// TODO: return responsiveness after design improvement
|
|
62277
62292
|
QuestionRatingModel.prototype.supportResponsiveness = function () {
|
|
62278
|
-
return
|
|
62293
|
+
return !this.inMatrixMode;
|
|
62279
62294
|
};
|
|
62280
62295
|
QuestionRatingModel.prototype.onBeforeSetCompactRenderer = function () {
|
|
62281
62296
|
if (!this.dropdownListModelValue) {
|
|
@@ -63109,6 +63124,7 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
63109
63124
|
}
|
|
63110
63125
|
_this._width && _this.processResponsiveness(0, _this._width);
|
|
63111
63126
|
};
|
|
63127
|
+
_this.gridColCount = undefined;
|
|
63112
63128
|
_this.colCount = 0;
|
|
63113
63129
|
_this.registerPropertyChangedHandlers(["minImageWidth", "maxImageWidth", "minImageHeight", "maxImageHeight", "visibleChoices", "colCount", "isResponsiveValue"], function () {
|
|
63114
63130
|
if (!!_this._width) {
|
|
@@ -63387,7 +63403,13 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
63387
63403
|
this.addNewItemToVisibleChoices(items, isAddAll);
|
|
63388
63404
|
};
|
|
63389
63405
|
QuestionImagePickerModel.prototype.getSelectBaseRootCss = function () {
|
|
63390
|
-
|
|
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();
|
|
63391
63413
|
};
|
|
63392
63414
|
Object.defineProperty(QuestionImagePickerModel.prototype, "isResponsive", {
|
|
63393
63415
|
get: function () {
|
|
@@ -63425,6 +63447,14 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
63425
63447
|
}
|
|
63426
63448
|
return this.responsiveColCount;
|
|
63427
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
|
+
};
|
|
63428
63458
|
QuestionImagePickerModel.prototype.processResponsiveness = function (_, availableWidth) {
|
|
63429
63459
|
this._width = availableWidth = Math.floor(availableWidth);
|
|
63430
63460
|
var calcAvailableColumnsCount = function (availableWidth, minWidth, gap) {
|
|
@@ -63442,24 +63472,25 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
63442
63472
|
var minHeight = this.minImageHeight * this.imageScale;
|
|
63443
63473
|
var colCount = this.colCount;
|
|
63444
63474
|
var width_1;
|
|
63475
|
+
var availableColumnsCount = calcAvailableColumnsCount(availableWidth, minWidth, gap);
|
|
63445
63476
|
if (colCount === 0) {
|
|
63446
63477
|
if ((gap + minWidth) * itemsCount - gap > availableWidth) {
|
|
63447
|
-
|
|
63448
|
-
width_1 = Math.floor((availableWidth - gap * (itemsInRow - 1)) / itemsInRow);
|
|
63478
|
+
width_1 = Math.floor((availableWidth - gap * (availableColumnsCount - 1)) / availableColumnsCount);
|
|
63449
63479
|
}
|
|
63450
63480
|
else {
|
|
63451
63481
|
width_1 = Math.floor(((availableWidth - gap * (itemsCount - 1)) / itemsCount));
|
|
63452
63482
|
}
|
|
63483
|
+
this.gridColCount = Math.max(Math.min(itemsCount, availableColumnsCount), 1);
|
|
63453
63484
|
}
|
|
63454
63485
|
else {
|
|
63455
|
-
var availableColumnsCount = calcAvailableColumnsCount(availableWidth, minWidth, gap);
|
|
63456
63486
|
if (availableColumnsCount < colCount) {
|
|
63457
|
-
this.responsiveColCount = availableColumnsCount
|
|
63487
|
+
this.responsiveColCount = Math.max(availableColumnsCount, 1);
|
|
63458
63488
|
colCount = this.responsiveColCount;
|
|
63459
63489
|
}
|
|
63460
63490
|
else {
|
|
63461
63491
|
this.responsiveColCount = colCount;
|
|
63462
63492
|
}
|
|
63493
|
+
this.gridColCount = this.responsiveColCount;
|
|
63463
63494
|
width_1 = Math.floor((availableWidth - gap * (colCount - 1)) / colCount);
|
|
63464
63495
|
}
|
|
63465
63496
|
width_1 = Math.max(minWidth, Math.min(width_1, maxWidth));
|
|
@@ -63525,6 +63556,9 @@ var question_imagepicker_QuestionImagePickerModel = /** @class */ (function (_su
|
|
|
63525
63556
|
question_imagepicker_decorate([
|
|
63526
63557
|
jsonobject_property({})
|
|
63527
63558
|
], QuestionImagePickerModel.prototype, "responsiveColCount", void 0);
|
|
63559
|
+
question_imagepicker_decorate([
|
|
63560
|
+
jsonobject_property()
|
|
63561
|
+
], QuestionImagePickerModel.prototype, "gridColCount", void 0);
|
|
63528
63562
|
return QuestionImagePickerModel;
|
|
63529
63563
|
}(QuestionCheckboxBase));
|
|
63530
63564
|
|
|
@@ -71051,9 +71085,9 @@ Serializer.addClass("currencymask", [
|
|
|
71051
71085
|
|
|
71052
71086
|
var Version;
|
|
71053
71087
|
var ReleaseDate;
|
|
71054
|
-
Version = "" + "1.12.
|
|
71088
|
+
Version = "" + "1.12.26";
|
|
71055
71089
|
settings.version = Version;
|
|
71056
|
-
ReleaseDate = "" + "2025-
|
|
71090
|
+
ReleaseDate = "" + "2025-03-03";
|
|
71057
71091
|
function checkLibraryVersion(ver, libraryName) {
|
|
71058
71092
|
if (Version != ver) {
|
|
71059
71093
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|