survey-react-ui 1.12.17 → 1.12.19
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 +2 -2
- package/survey-react-ui.js +19 -16
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.19",
|
|
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.19",
|
|
25
25
|
"react": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0",
|
|
26
26
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0"
|
|
27
27
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
3
|
-
* Copyright (c) 2015-
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.19
|
|
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
|
*/
|
|
6
6
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -110,8 +110,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
110
110
|
/***/ (function(module, exports, __webpack_require__) {
|
|
111
111
|
|
|
112
112
|
/*!
|
|
113
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
114
|
-
* Copyright (c) 2015-
|
|
113
|
+
* surveyjs - Survey JavaScript library v1.12.19
|
|
114
|
+
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
115
115
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
116
116
|
*/
|
|
117
117
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -1043,8 +1043,8 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1043
1043
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1044
1044
|
|
|
1045
1045
|
/*!
|
|
1046
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
1047
|
-
* Copyright (c) 2015-
|
|
1046
|
+
* surveyjs - Survey JavaScript library v1.12.19
|
|
1047
|
+
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1048
1048
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1049
1049
|
*/
|
|
1050
1050
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -6462,13 +6462,14 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
6462
6462
|
return external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", null, this.question.readOnlyText);
|
|
6463
6463
|
};
|
|
6464
6464
|
SurveyQuestionDropdownBase.prototype.renderSelect = function (cssClasses) {
|
|
6465
|
+
var _this = this;
|
|
6465
6466
|
var _a, _b;
|
|
6466
6467
|
var selectElement = null;
|
|
6467
6468
|
if (this.question.isReadOnly) {
|
|
6468
6469
|
var text = (this.question.selectedItemLocText) ? this.renderLocString(this.question.selectedItemLocText) : "";
|
|
6469
6470
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6470
6471
|
// @ts-ignore
|
|
6471
|
-
selectElement = external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass() },
|
|
6472
|
+
selectElement = external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } },
|
|
6472
6473
|
text,
|
|
6473
6474
|
this.renderReadOnlyElement());
|
|
6474
6475
|
}
|
|
@@ -6502,7 +6503,7 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
6502
6503
|
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
|
6503
6504
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6504
6505
|
// @ts-ignore
|
|
6505
|
-
disabled: this.question.isDisabledAttr, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, onFocus: this.focus, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
|
|
6506
|
+
disabled: this.question.isDisabledAttr, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, onFocus: this.focus, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, ref: function (div) { return (_this.setControl(div)); } },
|
|
6506
6507
|
dropdownListModel.showHintPrefix ?
|
|
6507
6508
|
(external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.hintPrefix },
|
|
6508
6509
|
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", null, dropdownListModel.hintStringPrefix))) : null,
|
|
@@ -6691,7 +6692,7 @@ var reactquestion_tagbox_SurveyQuestionTagbox = /** @class */ (function (_super)
|
|
|
6691
6692
|
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
|
6692
6693
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6693
6694
|
// @ts-ignore
|
|
6694
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
|
|
6695
|
+
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, ref: function (div) { return (_this.setControl(div)); } },
|
|
6695
6696
|
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.controlValue },
|
|
6696
6697
|
items,
|
|
6697
6698
|
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](tagbox_filter_TagboxFilterString, { model: dropdownMultiSelectListModel, question: this.question })),
|
|
@@ -8395,13 +8396,13 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8395
8396
|
var matrixrow = [];
|
|
8396
8397
|
var cells = row.cells;
|
|
8397
8398
|
for (var i = 0; i < cells.length; i++) {
|
|
8398
|
-
matrixrow.push(this.renderCell(cells[i],
|
|
8399
|
+
matrixrow.push(this.renderCell(cells[i], cssClasses, reason));
|
|
8399
8400
|
}
|
|
8400
8401
|
var key = "row" + keyValue;
|
|
8401
8402
|
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](external_root_React_commonjs2_react_commonjs_react_amd_react_["Fragment"], { key: key }, (reason == "row-footer") ? external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("tr", null, matrixrow) : external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](row_MatrixRow, { model: row, parentMatrix: this.question }, matrixrow)));
|
|
8402
8403
|
};
|
|
8403
|
-
SurveyQuestionMatrixTable.prototype.renderCell = function (cell,
|
|
8404
|
-
var key = "cell" +
|
|
8404
|
+
SurveyQuestionMatrixTable.prototype.renderCell = function (cell, cssClasses, reason) {
|
|
8405
|
+
var key = "cell" + cell.id;
|
|
8405
8406
|
if (cell.hasQuestion) {
|
|
8406
8407
|
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell, { key: key, cssClasses: cssClasses, cell: cell, creator: this.creator, reason: reason }));
|
|
8407
8408
|
}
|
|
@@ -8674,7 +8675,9 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell = /** @cla
|
|
|
8674
8675
|
};
|
|
8675
8676
|
SurveyQuestionMatrixDropdownCell.prototype.renderCellContent = function () {
|
|
8676
8677
|
var content = _super.prototype.renderCellContent.call(this);
|
|
8677
|
-
var responsiveTitle = this.cell.showResponsiveTitle ? (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.cell.responsiveTitleCss },
|
|
8678
|
+
var responsiveTitle = this.cell.showResponsiveTitle ? (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.cell.responsiveTitleCss },
|
|
8679
|
+
this.renderLocString(this.cell.responsiveLocTitle),
|
|
8680
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](reactquestion_matrixdropdownbase_SurveyQuestionMatrixHeaderRequired, { column: this.cell.column, question: this.cell.matrix }))) : null;
|
|
8678
8681
|
return external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](external_root_React_commonjs2_react_commonjs_react_amd_react_["Fragment"], null,
|
|
8679
8682
|
responsiveTitle,
|
|
8680
8683
|
content);
|
|
@@ -9474,7 +9477,7 @@ var list_item_ListItem = /** @class */ (function (_super) {
|
|
|
9474
9477
|
var className = this.model.getItemClass(this.item);
|
|
9475
9478
|
var itemContent = this.item.component || this.model.itemComponent;
|
|
9476
9479
|
var newElement = ReactElementFactory.Instance.createElement(itemContent, { item: this.item, key: this.item.id, model: this.model });
|
|
9477
|
-
var contentWrap = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", { style: this.model.getItemStyle(this.item), className: this.model.cssClasses.itemBody, title: this.item.
|
|
9480
|
+
var contentWrap = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", { style: this.model.getItemStyle(this.item), className: this.model.cssClasses.itemBody, title: this.item.getTooltip(), onMouseOver: function (event) { _this.model.onItemHover(_this.item); }, onMouseLeave: function (event) { _this.model.onItemLeave(_this.item); } }, newElement);
|
|
9478
9481
|
var separator = this.item.needSeparator ? external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", { className: this.model.cssClasses.itemSeparator }) : null;
|
|
9479
9482
|
var isVisible = this.model.isItemVisible(this.item);
|
|
9480
9483
|
var style = {
|
|
@@ -10154,7 +10157,7 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
|
|
|
10154
10157
|
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.itemDecorator },
|
|
10155
10158
|
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.imageContainer },
|
|
10156
10159
|
!!this.question.cssClasses.checkedItemDecorator ?
|
|
10157
|
-
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.question.cssClasses.checkedItemDecorator }, !!this.question.cssClasses.checkedItemSvgIconId ? external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](svg_icon_SvgIcon, { size: "auto", className: this.question.cssClasses.checkedItemSvgIcon, iconName: this.question.cssClasses.checkedItemSvgIconId }) : null) : null,
|
|
10160
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.question.cssClasses.checkedItemDecorator, "aria-hidden": "true" }, !!this.question.cssClasses.checkedItemSvgIconId ? external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](svg_icon_SvgIcon, { size: "auto", className: this.question.cssClasses.checkedItemSvgIcon, iconName: this.question.cssClasses.checkedItemSvgIconId }) : null) : null,
|
|
10158
10161
|
control),
|
|
10159
10162
|
text))));
|
|
10160
10163
|
return renderedItem;
|
|
@@ -11311,7 +11314,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
|
|
|
11311
11314
|
|
|
11312
11315
|
|
|
11313
11316
|
|
|
11314
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
11317
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.19", "survey-react-ui");
|
|
11315
11318
|
|
|
11316
11319
|
|
|
11317
11320
|
/***/ }),
|