survey-js-ui 2.3.12 → 2.3.14
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/fesm/survey-js-ui.mjs +20 -45
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +20 -51
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +1 -1
- package/survey-js-ui.min.js.LICENSE.txt +1 -1
- package/typings/survey-react-ui/src/reactquestion_element.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-js-ui",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.14",
|
|
4
4
|
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"survey-core": "2.3.
|
|
34
|
+
"survey-core": "2.3.14",
|
|
35
35
|
"@types/react-dom": "*",
|
|
36
36
|
"@types/react": "*"
|
|
37
37
|
}
|
package/survey-js-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.3.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.3.14
|
|
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
|
*/
|
|
@@ -23,7 +23,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
23
23
|
/***/ (function(module) {
|
|
24
24
|
|
|
25
25
|
/*!
|
|
26
|
-
* surveyjs - Survey JavaScript library v2.3.
|
|
26
|
+
* surveyjs - Survey JavaScript library v2.3.14
|
|
27
27
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
28
28
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
29
29
|
*/
|
|
@@ -830,7 +830,7 @@ path.keys().forEach(function (key) {
|
|
|
830
830
|
/***/ (function(module) {
|
|
831
831
|
|
|
832
832
|
/*!
|
|
833
|
-
* surveyjs - Survey JavaScript library v2.3.
|
|
833
|
+
* surveyjs - Survey JavaScript library v2.3.14
|
|
834
834
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
835
835
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
836
836
|
*/
|
|
@@ -3004,7 +3004,7 @@ var SurveyFileItem = /** @class */ (function (_super) {
|
|
|
3004
3004
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: className },
|
|
3005
3005
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", { href: val.content, onClick: function (event) {
|
|
3006
3006
|
_this.question.doDownloadFile(event, val);
|
|
3007
|
-
}, title: val.name, download: val.name, style: { width: this.question.imageWidth } }, val.name)));
|
|
3007
|
+
}, title: val.name, download: val.name, target: "_blank", rel: "noreferrer", style: { width: this.question.imageWidth } }, val.name)));
|
|
3008
3008
|
};
|
|
3009
3009
|
SurveyFileItem.prototype.renderElement = function () {
|
|
3010
3010
|
var _this = this;
|
|
@@ -8619,8 +8619,6 @@ var SurveyQuestion = /** @class */ (function (_super) {
|
|
|
8619
8619
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_comment__WEBPACK_IMPORTED_MODULE_4__.SurveyQuestionCommentItem, { question: this.question, cssClasses: cssClasses, isDisplayMode: this.question.isInputReadOnly })));
|
|
8620
8620
|
};
|
|
8621
8621
|
SurveyQuestion.prototype.renderHeader = function (question) {
|
|
8622
|
-
if (question.singleInputHideHeader)
|
|
8623
|
-
return null;
|
|
8624
8622
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_element_header__WEBPACK_IMPORTED_MODULE_6__.SurveyElementHeader, { element: question });
|
|
8625
8623
|
};
|
|
8626
8624
|
SurveyQuestion.prototype.renderErrors = function (cssClasses, location) {
|
|
@@ -9374,20 +9372,16 @@ var SurveyElementBase = /** @class */ (function (_super) {
|
|
|
9374
9372
|
var _this = _super.call(this, props) || this;
|
|
9375
9373
|
_this._allowComponentUpdate = true;
|
|
9376
9374
|
_this.prevStateElements = [];
|
|
9377
|
-
_this.propertyValueChangedHandler = function (
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
newState[key] = val;
|
|
9388
|
-
return newState;
|
|
9389
|
-
});
|
|
9390
|
-
}
|
|
9375
|
+
_this.propertyValueChangedHandler = function (stateElement, options) {
|
|
9376
|
+
var key = options.name;
|
|
9377
|
+
if (!_this.canUsePropInState(key) || _this.isRendering)
|
|
9378
|
+
return;
|
|
9379
|
+
_this.changedStatePropNameValue = key;
|
|
9380
|
+
_this.setState(function (state) {
|
|
9381
|
+
var newState = {};
|
|
9382
|
+
newState[key] = options.newValue;
|
|
9383
|
+
return newState;
|
|
9384
|
+
});
|
|
9391
9385
|
};
|
|
9392
9386
|
_this.onArrayChangedCallback = function (stateElement, options) {
|
|
9393
9387
|
if (_this.isRendering)
|
|
@@ -9541,44 +9535,20 @@ var SurveyElementBase = /** @class */ (function (_super) {
|
|
|
9541
9535
|
SurveyElementBase.prototype.canMakeReact = function (stateElement) {
|
|
9542
9536
|
return !!stateElement && !!stateElement.iteratePropertiesHash;
|
|
9543
9537
|
};
|
|
9544
|
-
SurveyElementBase.prototype.isCurrentStateElement = function (stateElement) {
|
|
9545
|
-
return !!stateElement && !!stateElement.setPropertyValueCoreHandler && stateElement.setPropertyValueCoreHandler === this.propertyValueChangedHandler;
|
|
9546
|
-
};
|
|
9547
9538
|
SurveyElementBase.prototype.makeBaseElementReact = function (stateElement) {
|
|
9548
|
-
var _this = this;
|
|
9549
9539
|
if (!this.canMakeReact(stateElement))
|
|
9550
9540
|
return;
|
|
9551
|
-
stateElement.
|
|
9552
|
-
|
|
9553
|
-
return;
|
|
9554
|
-
var val = hash[key];
|
|
9555
|
-
if (Array.isArray(val)) {
|
|
9556
|
-
var val = val;
|
|
9557
|
-
stateElement.addOnArrayChangedCallback(val, _this.onArrayChangedCallback);
|
|
9558
|
-
}
|
|
9559
|
-
});
|
|
9560
|
-
stateElement.setPropertyValueCoreHandler = this.propertyValueChangedHandler;
|
|
9541
|
+
stateElement.addOnArrayChangedCallback(this.onArrayChangedCallback);
|
|
9542
|
+
stateElement.addOnPropertyValueChangedCallback(this.propertyValueChangedHandler);
|
|
9561
9543
|
};
|
|
9562
9544
|
SurveyElementBase.prototype.canUsePropInState = function (key) {
|
|
9563
9545
|
return true;
|
|
9564
9546
|
};
|
|
9565
9547
|
SurveyElementBase.prototype.unMakeBaseElementReact = function (stateElement) {
|
|
9566
|
-
var _this = this;
|
|
9567
9548
|
if (!this.canMakeReact(stateElement))
|
|
9568
9549
|
return;
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
// console.warn("Looks like the component is bound to another survey element. It is not supported and can lead to issues.");
|
|
9572
|
-
// return;
|
|
9573
|
-
}
|
|
9574
|
-
stateElement.setPropertyValueCoreHandler = undefined;
|
|
9575
|
-
stateElement.iteratePropertiesHash(function (hash, key) {
|
|
9576
|
-
var val = hash[key];
|
|
9577
|
-
if (Array.isArray(val)) {
|
|
9578
|
-
var val = val;
|
|
9579
|
-
stateElement.removeOnArrayChangedCallback(val, _this.onArrayChangedCallback);
|
|
9580
|
-
}
|
|
9581
|
-
});
|
|
9550
|
+
stateElement.removeOnPropertyValueChangedCallback(this.propertyValueChangedHandler);
|
|
9551
|
+
stateElement.removeOnArrayChangedCallback(this.onArrayChangedCallback);
|
|
9582
9552
|
};
|
|
9583
9553
|
return SurveyElementBase;
|
|
9584
9554
|
}(react__WEBPACK_IMPORTED_MODULE_0__.Component));
|
|
@@ -12770,9 +12740,8 @@ var SurveyRow = /** @class */ (function (_super) {
|
|
|
12770
12740
|
this.row.isNeedRender = !this.row.isLazyRendering();
|
|
12771
12741
|
};
|
|
12772
12742
|
SurveyRow.prototype.componentWillUnmount = function () {
|
|
12773
|
-
var isCurrentStateElement = this.isCurrentStateElement(this.getStateElement());
|
|
12774
12743
|
_super.prototype.componentWillUnmount.call(this);
|
|
12775
|
-
if (
|
|
12744
|
+
if (!!this.row) {
|
|
12776
12745
|
this.row.setRootElement(undefined);
|
|
12777
12746
|
this.stopLazyRendering();
|
|
12778
12747
|
}
|
|
@@ -13795,7 +13764,7 @@ var preact = react__WEBPACK_IMPORTED_MODULE_0__;
|
|
|
13795
13764
|
|
|
13796
13765
|
|
|
13797
13766
|
|
|
13798
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.3.
|
|
13767
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.3.14"), "survey-js-ui");
|
|
13799
13768
|
|
|
13800
13769
|
})();
|
|
13801
13770
|
|