survey-js-ui 2.5.25 → 2.5.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-js-ui",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.26",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A free MIT-licensed UI component that renders dynamic, interactive JSON-based forms and surveys in apps built with HTML, CSS, and JavaScript. You can use it to collect responses from users and send them to your own database.",
|
|
6
6
|
"homepage": "https://surveyjs.io/",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"survey-core": "2.5.
|
|
56
|
+
"survey-core": "2.5.26",
|
|
57
57
|
"@types/react-dom": "*",
|
|
58
58
|
"@types/react": "*"
|
|
59
59
|
}
|
package/survey-js-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.5.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.5.26
|
|
3
3
|
* Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -624,8 +624,8 @@
|
|
|
624
624
|
this.locStr.onStringChanged.remove(this.onChangedHandler);
|
|
625
625
|
};
|
|
626
626
|
SurveyLocStringViewer.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
627
|
-
if (!!prevProps.
|
|
628
|
-
prevProps.
|
|
627
|
+
if (!!prevProps.model) {
|
|
628
|
+
prevProps.model.onStringChanged.remove(this.onChangedHandler);
|
|
629
629
|
}
|
|
630
630
|
this.reactOnStrChanged();
|
|
631
631
|
};
|
|
@@ -5387,7 +5387,9 @@
|
|
|
5387
5387
|
var _this = this;
|
|
5388
5388
|
var cssClasses = this.question.cssClasses;
|
|
5389
5389
|
var handleOnChange = function () {
|
|
5390
|
-
_this.question.
|
|
5390
|
+
if (!_this.question.isInputReadOnly) {
|
|
5391
|
+
_this.question.value = value;
|
|
5392
|
+
}
|
|
5391
5393
|
};
|
|
5392
5394
|
return (_$1("div", { role: "presentation", className: this.question.getRadioItemClass(cssClasses, value) },
|
|
5393
5395
|
_$1("label", { className: cssClasses.radioLabel },
|
|
@@ -5400,7 +5402,7 @@
|
|
|
5400
5402
|
};
|
|
5401
5403
|
SurveyQuestionBooleanRadio.prototype.renderElement = function () {
|
|
5402
5404
|
var cssClasses = this.question.cssClasses;
|
|
5403
|
-
return (_$1("div", { className: cssClasses.rootRadio },
|
|
5405
|
+
return (_$1("div", { className: cssClasses.rootRadio, onKeyDown: this.handleOnKeyDown },
|
|
5404
5406
|
_$1("fieldset", { role: "presentation", className: cssClasses.radioFieldset }, !this.question.swapOrder ?
|
|
5405
5407
|
(_$1(k$2, null,
|
|
5406
5408
|
this.renderRadioItem(this.question.getValueFalse(), this.question.locLabelFalse),
|
|
@@ -7639,7 +7641,18 @@
|
|
|
7639
7641
|
var SurveyNavigationButton = /** @class */ (function (_super) {
|
|
7640
7642
|
__extends(SurveyNavigationButton, _super);
|
|
7641
7643
|
function SurveyNavigationButton() {
|
|
7642
|
-
|
|
7644
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
7645
|
+
_this.inputElement = null;
|
|
7646
|
+
_this.inputParent = null;
|
|
7647
|
+
_this.setInputRef = function (element) {
|
|
7648
|
+
var _a;
|
|
7649
|
+
if (!element && !!_this.inputElement && !!_this.inputParent && _this.inputElement.parentNode !== _this.inputParent) {
|
|
7650
|
+
_this.inputParent.appendChild(_this.inputElement);
|
|
7651
|
+
}
|
|
7652
|
+
_this.inputElement = element;
|
|
7653
|
+
_this.inputParent = (_a = element === null || element === void 0 ? void 0 : element.parentNode) !== null && _a !== void 0 ? _a : _this.inputParent;
|
|
7654
|
+
};
|
|
7655
|
+
return _this;
|
|
7643
7656
|
}
|
|
7644
7657
|
Object.defineProperty(SurveyNavigationButton.prototype, "item", {
|
|
7645
7658
|
get: function () {
|
|
@@ -7652,7 +7665,7 @@
|
|
|
7652
7665
|
return this.item.isVisible;
|
|
7653
7666
|
};
|
|
7654
7667
|
SurveyNavigationButton.prototype.renderElement = function () {
|
|
7655
|
-
return (_$1("input", { className: this.item.innerCss, type: "button", disabled: this.item.disabled, onMouseDown: this.item.data && this.item.data.mouseDown, onClick: this.item.action, title: this.item.getTooltip(), value: this.item.title }));
|
|
7668
|
+
return (_$1("input", { ref: this.setInputRef, className: this.item.innerCss, type: "button", disabled: this.item.disabled, onMouseDown: this.item.data && this.item.data.mouseDown, onClick: this.item.action, title: this.item.getTooltip(), value: this.item.title }));
|
|
7656
7669
|
};
|
|
7657
7670
|
return SurveyNavigationButton;
|
|
7658
7671
|
}(ReactSurveyElement));
|
|
@@ -7956,7 +7969,7 @@
|
|
|
7956
7969
|
}
|
|
7957
7970
|
};
|
|
7958
7971
|
var preact = React;
|
|
7959
|
-
surveyCore.checkLibraryVersion("".concat("2.5.
|
|
7972
|
+
surveyCore.checkLibraryVersion("".concat("2.5.26"), "survey-js-ui");
|
|
7960
7973
|
|
|
7961
7974
|
Object.defineProperty(exports, 'Model', {
|
|
7962
7975
|
enumerable: true,
|