survey-react-ui 1.12.8 → 1.12.10
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-react-ui",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.10",
|
|
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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"typings": "./typings/src/entries/react-ui.d.ts",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"survey-core": "1.12.
|
|
24
|
+
"survey-core": "1.12.10",
|
|
25
25
|
"react": "^16.5.0 || ^17.0.1 || ^18.2.0",
|
|
26
26
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0"
|
|
27
27
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.10
|
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -801,10 +801,13 @@ var element_SurveyRowElement = /** @class */ (function (_super) {
|
|
|
801
801
|
el.focusIn();
|
|
802
802
|
}
|
|
803
803
|
};
|
|
804
|
-
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": innerElement.key, key: innerElement.key, onFocus: focusIn, ref: this.rootRef },
|
|
804
|
+
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": innerElement.key, key: innerElement.key, onFocus: focusIn, ref: this.rootRef }, innerElement));
|
|
805
805
|
};
|
|
806
806
|
SurveyRowElement.prototype.createElement = function (element, elementIndex) {
|
|
807
807
|
var index = elementIndex ? "-" + elementIndex : 0;
|
|
808
|
+
if (!this.row.isNeedRender) {
|
|
809
|
+
return ReactElementFactory.Instance.createElement(element.skeletonComponentName, { key: element.name + index, element: element, css: this.css, });
|
|
810
|
+
}
|
|
808
811
|
var elementType = element.getType();
|
|
809
812
|
if (!ReactElementFactory.Instance.isElementRegistered(elementType)) {
|
|
810
813
|
elementType = "question";
|
|
@@ -1546,17 +1549,14 @@ var action_bar_SurveyActionBar = /** @class */ (function (_super) {
|
|
|
1546
1549
|
};
|
|
1547
1550
|
SurveyActionBar.prototype.componentWillUnmount = function () {
|
|
1548
1551
|
_super.prototype.componentWillUnmount.call(this);
|
|
1549
|
-
|
|
1550
|
-
this.model.resetResponsivityManager();
|
|
1551
|
-
}
|
|
1552
|
+
this.model.resetResponsivityManager();
|
|
1552
1553
|
};
|
|
1553
1554
|
SurveyActionBar.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
1554
1555
|
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
1555
|
-
if (prevProps.model
|
|
1556
|
-
|
|
1556
|
+
if (prevProps.model != this.props.model) {
|
|
1557
|
+
prevProps.model.resetResponsivityManager();
|
|
1557
1558
|
}
|
|
1558
1559
|
if (!!this.model.hasActions) {
|
|
1559
|
-
this.model.resetResponsivityManager();
|
|
1560
1560
|
var container = this.rootRef.current;
|
|
1561
1561
|
if (!!container) {
|
|
1562
1562
|
this.model.initResponsivityManager(container, function (callback) { setTimeout(callback); });
|
|
@@ -1736,6 +1736,7 @@ var title_element_extends = (undefined && undefined.__extends) || (function () {
|
|
|
1736
1736
|
|
|
1737
1737
|
|
|
1738
1738
|
|
|
1739
|
+
|
|
1739
1740
|
var title_element_TitleElement = /** @class */ (function (_super) {
|
|
1740
1741
|
title_element_extends(TitleElement, _super);
|
|
1741
1742
|
function TitleElement(props) {
|
|
@@ -1748,11 +1749,18 @@ var title_element_TitleElement = /** @class */ (function (_super) {
|
|
|
1748
1749
|
enumerable: false,
|
|
1749
1750
|
configurable: true
|
|
1750
1751
|
});
|
|
1752
|
+
TitleElement.prototype.renderTitleExpandableSvg = function () {
|
|
1753
|
+
if (!this.element.getCssTitleExpandableSvg())
|
|
1754
|
+
return null;
|
|
1755
|
+
var iconName = this.element.isExpanded ? "icon-collapse-16x16" : "icon-expand-16x16";
|
|
1756
|
+
return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(svg_icon_SvgIcon, { className: this.element.getCssTitleExpandableSvg(), iconName: iconName, size: 16 });
|
|
1757
|
+
};
|
|
1751
1758
|
TitleElement.prototype.render = function () {
|
|
1752
1759
|
var element = this.element;
|
|
1753
1760
|
if (!element || !element.hasTitle)
|
|
1754
1761
|
return null;
|
|
1755
1762
|
var ariaLabel = element.titleAriaLabel || undefined;
|
|
1763
|
+
var titleExpandableSvg = this.renderTitleExpandableSvg();
|
|
1756
1764
|
var titleContent = (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(title_actions_TitleActions, { element: element, cssClasses: element.cssClasses }));
|
|
1757
1765
|
var onClick = undefined;
|
|
1758
1766
|
var onKeyUp = undefined;
|
|
@@ -1762,7 +1770,9 @@ var title_element_TitleElement = /** @class */ (function (_super) {
|
|
|
1762
1770
|
};
|
|
1763
1771
|
}
|
|
1764
1772
|
var CustomTag = element.titleTagName;
|
|
1765
|
-
return (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(CustomTag, { className: element.cssTitle, id: element.ariaTitleId, "aria-label": ariaLabel, tabIndex: element.titleTabIndex, "aria-expanded": element.titleAriaExpanded, role: element.titleAriaRole, onClick: onClick, onKeyUp: onKeyUp },
|
|
1773
|
+
return (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(CustomTag, { className: element.cssTitle, id: element.ariaTitleId, "aria-label": ariaLabel, tabIndex: element.titleTabIndex, "aria-expanded": element.titleAriaExpanded, role: element.titleAriaRole, onClick: onClick, onKeyUp: onKeyUp },
|
|
1774
|
+
titleExpandableSvg,
|
|
1775
|
+
titleContent));
|
|
1766
1776
|
};
|
|
1767
1777
|
return TitleElement;
|
|
1768
1778
|
}(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component));
|
|
@@ -4632,6 +4642,11 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
4632
4642
|
_super.prototype.componentDidMount.call(this);
|
|
4633
4643
|
this.updateInputDomElement();
|
|
4634
4644
|
};
|
|
4645
|
+
SurveyQuestionDropdownBase.prototype.componentWillUnmount = function () {
|
|
4646
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
4647
|
+
if (this.question.dropdownListModel)
|
|
4648
|
+
this.question.dropdownListModel.focused = false;
|
|
4649
|
+
};
|
|
4635
4650
|
SurveyQuestionDropdownBase.prototype.updateInputDomElement = function () {
|
|
4636
4651
|
if (!!this.inputElement) {
|
|
4637
4652
|
var control = this.inputElement;
|
|
@@ -9407,7 +9422,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
|
|
|
9407
9422
|
|
|
9408
9423
|
|
|
9409
9424
|
|
|
9410
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
9425
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.10", "survey-react-ui");
|
|
9411
9426
|
|
|
9412
9427
|
|
|
9413
9428
|
/***/ }),
|