survey-react 1.12.56 → 1.12.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/defaultV2.css +1 -1
- package/defaultV2.min.css +1 -1
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +1 -2
- package/survey.react.js +15 -15
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/defaultV2.css
CHANGED
package/defaultV2.min.css
CHANGED
package/modern.css
CHANGED
package/modern.min.css
CHANGED
package/package.json
CHANGED
package/survey.css
CHANGED
package/survey.min.css
CHANGED
package/survey.react.d.ts
CHANGED
|
@@ -5094,8 +5094,7 @@ declare module "packages/survey-core/src/question_baseselect" {
|
|
|
5094
5094
|
get questionName(): string;
|
|
5095
5095
|
getItemEnabled(item: ItemValue): boolean;
|
|
5096
5096
|
private focusOtherComment;
|
|
5097
|
-
|
|
5098
|
-
protected onValueChanged(): void;
|
|
5097
|
+
onItemSelected(item: ItemValue): void;
|
|
5099
5098
|
protected getDefaultItemComponent(): string;
|
|
5100
5099
|
/**
|
|
5101
5100
|
* The name of a component used to render items.
|
package/survey.react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.58
|
|
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
|
*/
|
|
@@ -49974,7 +49974,6 @@ var question_baseselect_QuestionSelectBase = /** @class */ (function (_super) {
|
|
|
49974
49974
|
}, function () { return _this._renderedChoices; });
|
|
49975
49975
|
_this.headItemsCount = 0;
|
|
49976
49976
|
_this.footItemsCount = 0;
|
|
49977
|
-
_this.prevIsOtherSelected = false;
|
|
49978
49977
|
_this.noneItemValue = _this.createDefaultItem(settings.noneItemValue, "noneText", "noneItemText");
|
|
49979
49978
|
_this.refuseItemValue = _this.createDefaultItem(settings.refuseItemValue, "refuseText", "refuseItemText");
|
|
49980
49979
|
_this.dontKnowItemValue = _this.createDefaultItem(settings.dontKnowItemValue, "dontKnowText", "dontKnowItemText");
|
|
@@ -50609,9 +50608,6 @@ var question_baseselect_QuestionSelectBase = /** @class */ (function (_super) {
|
|
|
50609
50608
|
return this.otherValueCore;
|
|
50610
50609
|
};
|
|
50611
50610
|
QuestionSelectBase.prototype.selectOtherValueFromComment = function (val) {
|
|
50612
|
-
if (val) {
|
|
50613
|
-
this.prevIsOtherSelected = true;
|
|
50614
|
-
}
|
|
50615
50611
|
this.value = val ? this.otherItem.value : undefined;
|
|
50616
50612
|
};
|
|
50617
50613
|
QuestionSelectBase.prototype.setQuestionComment = function (newValue) {
|
|
@@ -52230,12 +52226,10 @@ var question_baseselect_QuestionSelectBase = /** @class */ (function (_super) {
|
|
|
52230
52226
|
var _a;
|
|
52231
52227
|
survey_element_SurveyElement.FocusElement(this.otherId, false, (_a = this.survey) === null || _a === void 0 ? void 0 : _a.rootElement);
|
|
52232
52228
|
};
|
|
52233
|
-
QuestionSelectBase.prototype.
|
|
52234
|
-
|
|
52235
|
-
if (!this.isDesignMode && !this.prevIsOtherSelected && this.isOtherSelected) {
|
|
52229
|
+
QuestionSelectBase.prototype.onItemSelected = function (item) {
|
|
52230
|
+
if (this.isOtherItem(item)) {
|
|
52236
52231
|
this.focusOtherComment();
|
|
52237
52232
|
}
|
|
52238
|
-
this.prevIsOtherSelected = this.isOtherSelected;
|
|
52239
52233
|
};
|
|
52240
52234
|
QuestionSelectBase.prototype.getDefaultItemComponent = function () {
|
|
52241
52235
|
return "";
|
|
@@ -53634,6 +53628,9 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
|
|
|
53634
53628
|
if (!_onSelectionChanged) {
|
|
53635
53629
|
_onSelectionChanged = function (item) {
|
|
53636
53630
|
_this.question.value = item.id;
|
|
53631
|
+
if (_this.question.onItemSelected) {
|
|
53632
|
+
_this.question.onItemSelected(item);
|
|
53633
|
+
}
|
|
53637
53634
|
if (_this.question.searchEnabled)
|
|
53638
53635
|
_this.applyInputString(item);
|
|
53639
53636
|
_this.popupModel.hide();
|
|
@@ -58677,6 +58674,9 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
|
58677
58674
|
this.renderedValue = newValue;
|
|
58678
58675
|
}
|
|
58679
58676
|
}
|
|
58677
|
+
if (checked) {
|
|
58678
|
+
this.onItemSelected(item);
|
|
58679
|
+
}
|
|
58680
58680
|
};
|
|
58681
58681
|
QuestionCheckboxModel.prototype.isItemSelectedCore = function (item) {
|
|
58682
58682
|
if (item === this.selectAllItem)
|
|
@@ -63431,6 +63431,7 @@ var question_radiogroup_QuestionRadiogroupModel = /** @class */ (function (_supe
|
|
|
63431
63431
|
if (this.isReadOnlyAttr)
|
|
63432
63432
|
return;
|
|
63433
63433
|
this.renderedValue = item.value;
|
|
63434
|
+
this.onItemSelected(item);
|
|
63434
63435
|
};
|
|
63435
63436
|
QuestionRadiogroupModel.prototype.getDefaultTitleActions = function () {
|
|
63436
63437
|
var _this = this;
|
|
@@ -69916,10 +69917,9 @@ var question_paneldynamic_QuestionPanelDynamicModel = /** @class */ (function (_
|
|
|
69916
69917
|
if (!qValue || !Array.isArray(qValue)) {
|
|
69917
69918
|
qValue = [];
|
|
69918
69919
|
}
|
|
69919
|
-
|
|
69920
|
-
|
|
69921
|
-
|
|
69922
|
-
}
|
|
69920
|
+
var lValue = Math.max(index + 1, items.length);
|
|
69921
|
+
for (var i = qValue.length; i < lValue; i++) {
|
|
69922
|
+
qValue.push({});
|
|
69923
69923
|
}
|
|
69924
69924
|
if (!qValue[index])
|
|
69925
69925
|
qValue[index] = {};
|
|
@@ -73360,9 +73360,9 @@ Serializer.addClass("currencymask", [
|
|
|
73360
73360
|
|
|
73361
73361
|
var Version;
|
|
73362
73362
|
var ReleaseDate;
|
|
73363
|
-
Version = "" + "1.12.
|
|
73363
|
+
Version = "" + "1.12.58";
|
|
73364
73364
|
settings.version = Version;
|
|
73365
|
-
ReleaseDate = "" + "2025-
|
|
73365
|
+
ReleaseDate = "" + "2025-12-07";
|
|
73366
73366
|
function checkLibraryVersion(ver, libraryName) {
|
|
73367
73367
|
if (Version != ver) {
|
|
73368
73368
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|