survey-js-ui 1.12.8 → 1.12.9
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.9",
|
|
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.9",
|
|
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.9
|
|
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";
|
|
@@ -1837,6 +1840,7 @@ var title_element_extends = (undefined && undefined.__extends) || (function () {
|
|
|
1837
1840
|
|
|
1838
1841
|
|
|
1839
1842
|
|
|
1843
|
+
|
|
1840
1844
|
var title_element_TitleElement = /** @class */ (function (_super) {
|
|
1841
1845
|
title_element_extends(TitleElement, _super);
|
|
1842
1846
|
function TitleElement(props) {
|
|
@@ -1849,11 +1853,18 @@ var title_element_TitleElement = /** @class */ (function (_super) {
|
|
|
1849
1853
|
enumerable: false,
|
|
1850
1854
|
configurable: true
|
|
1851
1855
|
});
|
|
1856
|
+
TitleElement.prototype.renderTitleExpandableSvg = function () {
|
|
1857
|
+
if (!this.element.getCssTitleExpandableSvg())
|
|
1858
|
+
return null;
|
|
1859
|
+
var iconName = this.element.isExpanded ? "icon-collapse-16x16" : "icon-expand-16x16";
|
|
1860
|
+
return xn.createElement(svg_icon_SvgIcon, { className: this.element.getCssTitleExpandableSvg(), iconName: iconName, size: 16 });
|
|
1861
|
+
};
|
|
1852
1862
|
TitleElement.prototype.render = function () {
|
|
1853
1863
|
var element = this.element;
|
|
1854
1864
|
if (!element || !element.hasTitle)
|
|
1855
1865
|
return null;
|
|
1856
1866
|
var ariaLabel = element.titleAriaLabel || undefined;
|
|
1867
|
+
var titleExpandableSvg = this.renderTitleExpandableSvg();
|
|
1857
1868
|
var titleContent = (xn.createElement(title_actions_TitleActions, { element: element, cssClasses: element.cssClasses }));
|
|
1858
1869
|
var onClick = undefined;
|
|
1859
1870
|
var onKeyUp = undefined;
|
|
@@ -1863,7 +1874,9 @@ var title_element_TitleElement = /** @class */ (function (_super) {
|
|
|
1863
1874
|
};
|
|
1864
1875
|
}
|
|
1865
1876
|
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 },
|
|
1877
|
+
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 },
|
|
1878
|
+
titleExpandableSvg,
|
|
1879
|
+
titleContent));
|
|
1867
1880
|
};
|
|
1868
1881
|
return TitleElement;
|
|
1869
1882
|
}(xn.Component));
|
|
@@ -4730,6 +4743,11 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
4730
4743
|
_super.prototype.componentDidMount.call(this);
|
|
4731
4744
|
this.updateInputDomElement();
|
|
4732
4745
|
};
|
|
4746
|
+
SurveyQuestionDropdownBase.prototype.componentWillUnmount = function () {
|
|
4747
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
4748
|
+
if (this.question.dropdownListModel)
|
|
4749
|
+
this.question.dropdownListModel.focused = false;
|
|
4750
|
+
};
|
|
4733
4751
|
SurveyQuestionDropdownBase.prototype.updateInputDomElement = function () {
|
|
4734
4752
|
if (!!this.inputElement) {
|
|
4735
4753
|
var control = this.inputElement;
|
|
@@ -9580,7 +9598,7 @@ var preact = compat_module_namespaceObject;
|
|
|
9580
9598
|
|
|
9581
9599
|
|
|
9582
9600
|
|
|
9583
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
9601
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.9", "survey-js-ui");
|
|
9584
9602
|
|
|
9585
9603
|
|
|
9586
9604
|
/***/ }),
|