survey-js-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-js-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",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"typings": "./typings/src/entries/js-ui.d.ts",
|
|
24
24
|
"dependencies": {},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"survey-core": "1.12.
|
|
26
|
+
"survey-core": "1.12.10",
|
|
27
27
|
"@types/react-dom": "*",
|
|
28
28
|
"@types/react": "*"
|
|
29
29
|
}
|
package/survey-js-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
|
*/
|
|
@@ -902,10 +902,13 @@ var element_SurveyRowElement = /** @class */ (function (_super) {
|
|
|
902
902
|
el.focusIn();
|
|
903
903
|
}
|
|
904
904
|
};
|
|
905
|
-
return (_("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": innerElement.key, key: innerElement.key, onFocus: focusIn, ref: this.rootRef },
|
|
905
|
+
return (_("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": innerElement.key, key: innerElement.key, onFocus: focusIn, ref: this.rootRef }, innerElement));
|
|
906
906
|
};
|
|
907
907
|
SurveyRowElement.prototype.createElement = function (element, elementIndex) {
|
|
908
908
|
var index = elementIndex ? "-" + elementIndex : 0;
|
|
909
|
+
if (!this.row.isNeedRender) {
|
|
910
|
+
return ReactElementFactory.Instance.createElement(element.skeletonComponentName, { key: element.name + index, element: element, css: this.css, });
|
|
911
|
+
}
|
|
909
912
|
var elementType = element.getType();
|
|
910
913
|
if (!ReactElementFactory.Instance.isElementRegistered(elementType)) {
|
|
911
914
|
elementType = "question";
|
|
@@ -1647,17 +1650,14 @@ var action_bar_SurveyActionBar = /** @class */ (function (_super) {
|
|
|
1647
1650
|
};
|
|
1648
1651
|
SurveyActionBar.prototype.componentWillUnmount = function () {
|
|
1649
1652
|
_super.prototype.componentWillUnmount.call(this);
|
|
1650
|
-
|
|
1651
|
-
this.model.resetResponsivityManager();
|
|
1652
|
-
}
|
|
1653
|
+
this.model.resetResponsivityManager();
|
|
1653
1654
|
};
|
|
1654
1655
|
SurveyActionBar.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
1655
1656
|
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
1656
|
-
if (prevProps.model
|
|
1657
|
-
|
|
1657
|
+
if (prevProps.model != this.props.model) {
|
|
1658
|
+
prevProps.model.resetResponsivityManager();
|
|
1658
1659
|
}
|
|
1659
1660
|
if (!!this.model.hasActions) {
|
|
1660
|
-
this.model.resetResponsivityManager();
|
|
1661
1661
|
var container = this.rootRef.current;
|
|
1662
1662
|
if (!!container) {
|
|
1663
1663
|
this.model.initResponsivityManager(container, function (callback) { setTimeout(callback); });
|
|
@@ -1837,6 +1837,7 @@ var title_element_extends = (undefined && undefined.__extends) || (function () {
|
|
|
1837
1837
|
|
|
1838
1838
|
|
|
1839
1839
|
|
|
1840
|
+
|
|
1840
1841
|
var title_element_TitleElement = /** @class */ (function (_super) {
|
|
1841
1842
|
title_element_extends(TitleElement, _super);
|
|
1842
1843
|
function TitleElement(props) {
|
|
@@ -1849,11 +1850,18 @@ var title_element_TitleElement = /** @class */ (function (_super) {
|
|
|
1849
1850
|
enumerable: false,
|
|
1850
1851
|
configurable: true
|
|
1851
1852
|
});
|
|
1853
|
+
TitleElement.prototype.renderTitleExpandableSvg = function () {
|
|
1854
|
+
if (!this.element.getCssTitleExpandableSvg())
|
|
1855
|
+
return null;
|
|
1856
|
+
var iconName = this.element.isExpanded ? "icon-collapse-16x16" : "icon-expand-16x16";
|
|
1857
|
+
return xn.createElement(svg_icon_SvgIcon, { className: this.element.getCssTitleExpandableSvg(), iconName: iconName, size: 16 });
|
|
1858
|
+
};
|
|
1852
1859
|
TitleElement.prototype.render = function () {
|
|
1853
1860
|
var element = this.element;
|
|
1854
1861
|
if (!element || !element.hasTitle)
|
|
1855
1862
|
return null;
|
|
1856
1863
|
var ariaLabel = element.titleAriaLabel || undefined;
|
|
1864
|
+
var titleExpandableSvg = this.renderTitleExpandableSvg();
|
|
1857
1865
|
var titleContent = (xn.createElement(title_actions_TitleActions, { element: element, cssClasses: element.cssClasses }));
|
|
1858
1866
|
var onClick = undefined;
|
|
1859
1867
|
var onKeyUp = undefined;
|
|
@@ -1863,7 +1871,9 @@ var title_element_TitleElement = /** @class */ (function (_super) {
|
|
|
1863
1871
|
};
|
|
1864
1872
|
}
|
|
1865
1873
|
var CustomTag = element.titleTagName;
|
|
1866
|
-
return (xn.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 },
|
|
1874
|
+
return (xn.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 },
|
|
1875
|
+
titleExpandableSvg,
|
|
1876
|
+
titleContent));
|
|
1867
1877
|
};
|
|
1868
1878
|
return TitleElement;
|
|
1869
1879
|
}(xn.Component));
|
|
@@ -4730,6 +4740,11 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
4730
4740
|
_super.prototype.componentDidMount.call(this);
|
|
4731
4741
|
this.updateInputDomElement();
|
|
4732
4742
|
};
|
|
4743
|
+
SurveyQuestionDropdownBase.prototype.componentWillUnmount = function () {
|
|
4744
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
4745
|
+
if (this.question.dropdownListModel)
|
|
4746
|
+
this.question.dropdownListModel.focused = false;
|
|
4747
|
+
};
|
|
4733
4748
|
SurveyQuestionDropdownBase.prototype.updateInputDomElement = function () {
|
|
4734
4749
|
if (!!this.inputElement) {
|
|
4735
4750
|
var control = this.inputElement;
|
|
@@ -9580,7 +9595,7 @@ var preact = compat_module_namespaceObject;
|
|
|
9580
9595
|
|
|
9581
9596
|
|
|
9582
9597
|
|
|
9583
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
9598
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.10", "survey-js-ui");
|
|
9584
9599
|
|
|
9585
9600
|
|
|
9586
9601
|
/***/ }),
|