survey-react-ui 1.11.12 → 1.11.13
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.11.
|
|
3
|
+
"version": "1.11.13",
|
|
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.11.
|
|
24
|
+
"survey-core": "1.11.13",
|
|
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.11.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.11.13
|
|
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
|
*/
|
|
@@ -2488,14 +2488,17 @@ var reactquestion_SurveyQuestionErrorCell = /** @class */ (function (_super) {
|
|
|
2488
2488
|
SurveyQuestionErrorCell.prototype.update = function () {
|
|
2489
2489
|
this.setState({ changed: this.state.changed + 1 });
|
|
2490
2490
|
};
|
|
2491
|
+
SurveyQuestionErrorCell.prototype.getQuestionPropertiesToTrack = function () {
|
|
2492
|
+
return ["errors"];
|
|
2493
|
+
};
|
|
2491
2494
|
SurveyQuestionErrorCell.prototype.registerCallback = function (question) {
|
|
2492
2495
|
var _this = this;
|
|
2493
|
-
question.
|
|
2496
|
+
question.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(), function () {
|
|
2494
2497
|
_this.update();
|
|
2495
2498
|
}, "__reactSubscription");
|
|
2496
2499
|
};
|
|
2497
2500
|
SurveyQuestionErrorCell.prototype.unRegisterCallback = function (question) {
|
|
2498
|
-
question.
|
|
2501
|
+
question.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(), "__reactSubscription");
|
|
2499
2502
|
};
|
|
2500
2503
|
SurveyQuestionErrorCell.prototype.componentDidUpdate = function (prevProps) {
|
|
2501
2504
|
if (prevProps.question && prevProps.question !== this.question) {
|
|
@@ -6252,6 +6255,11 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
6252
6255
|
if (cell.hasQuestion) {
|
|
6253
6256
|
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 }));
|
|
6254
6257
|
}
|
|
6258
|
+
if (cell.isErrorsCell) {
|
|
6259
|
+
if (cell.isErrorsCell) {
|
|
6260
|
+
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownErrorsCell, { cell: cell, key: key, keyValue: key, question: cell.question, creator: this.creator }));
|
|
6261
|
+
}
|
|
6262
|
+
}
|
|
6255
6263
|
var calcReason = reason;
|
|
6256
6264
|
if (!calcReason) {
|
|
6257
6265
|
calcReason = cell.hasTitle ? "row-header" : "";
|
|
@@ -6299,11 +6307,6 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
6299
6307
|
if (cell.hasPanel) {
|
|
6300
6308
|
cellContent = (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](panel_SurveyPanel, { key: cell.panel.id, element: cell.panel, survey: this.question.survey, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode, creator: this.creator }));
|
|
6301
6309
|
}
|
|
6302
|
-
if (cell.isErrorsCell) {
|
|
6303
|
-
if (cell.isErrorsCell) {
|
|
6304
|
-
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](reactquestion_SurveyQuestionErrorCell, { question: cell.question, creator: this.creator }));
|
|
6305
|
-
}
|
|
6306
|
-
}
|
|
6307
6310
|
if (!cellContent)
|
|
6308
6311
|
return null;
|
|
6309
6312
|
var readyCell = (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](external_root_React_commonjs2_react_commonjs_react_amd_react_["Fragment"], null, cellContent));
|
|
@@ -6387,6 +6390,35 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixActionsCell = /** @clas
|
|
|
6387
6390
|
};
|
|
6388
6391
|
return SurveyQuestionMatrixActionsCell;
|
|
6389
6392
|
}(ReactSurveyElement));
|
|
6393
|
+
var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownErrorsCell = /** @class */ (function (_super) {
|
|
6394
|
+
reactquestion_matrixdropdownbase_extends(SurveyQuestionMatrixDropdownErrorsCell, _super);
|
|
6395
|
+
function SurveyQuestionMatrixDropdownErrorsCell(props) {
|
|
6396
|
+
return _super.call(this, props) || this;
|
|
6397
|
+
}
|
|
6398
|
+
Object.defineProperty(SurveyQuestionMatrixDropdownErrorsCell.prototype, "key", {
|
|
6399
|
+
get: function () {
|
|
6400
|
+
return this.props.keyValue;
|
|
6401
|
+
},
|
|
6402
|
+
enumerable: false,
|
|
6403
|
+
configurable: true
|
|
6404
|
+
});
|
|
6405
|
+
Object.defineProperty(SurveyQuestionMatrixDropdownErrorsCell.prototype, "cell", {
|
|
6406
|
+
get: function () {
|
|
6407
|
+
return this.props.cell;
|
|
6408
|
+
},
|
|
6409
|
+
enumerable: false,
|
|
6410
|
+
configurable: true
|
|
6411
|
+
});
|
|
6412
|
+
SurveyQuestionMatrixDropdownErrorsCell.prototype.render = function () {
|
|
6413
|
+
if (!this.cell.isVisible)
|
|
6414
|
+
return null;
|
|
6415
|
+
return external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("td", { className: this.cell.className, key: this.key, colSpan: this.cell.colSpans, title: this.cell.getTitle() }, _super.prototype.render.call(this));
|
|
6416
|
+
};
|
|
6417
|
+
SurveyQuestionMatrixDropdownErrorsCell.prototype.getQuestionPropertiesToTrack = function () {
|
|
6418
|
+
return _super.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"]);
|
|
6419
|
+
};
|
|
6420
|
+
return SurveyQuestionMatrixDropdownErrorsCell;
|
|
6421
|
+
}(reactquestion_SurveyQuestionErrorCell));
|
|
6390
6422
|
ReactElementFactory.Instance.registerElement("sv-matrixdynamic-actions-cell", function (props) {
|
|
6391
6423
|
return external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](reactquestion_matrixdropdownbase_SurveyQuestionMatrixActionsCell, props);
|
|
6392
6424
|
});
|
|
@@ -6484,6 +6516,12 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell = /** @cla
|
|
|
6484
6516
|
SurveyQuestionMatrixDropdownCell.prototype.getHeaderText = function () {
|
|
6485
6517
|
return this.cell.headers;
|
|
6486
6518
|
};
|
|
6519
|
+
SurveyQuestionMatrixDropdownCell.prototype.renderElement = function () {
|
|
6520
|
+
if (!this.cell.isVisible) {
|
|
6521
|
+
return null;
|
|
6522
|
+
}
|
|
6523
|
+
return _super.prototype.renderElement.call(this);
|
|
6524
|
+
};
|
|
6487
6525
|
SurveyQuestionMatrixDropdownCell.prototype.renderCellContent = function () {
|
|
6488
6526
|
var content = _super.prototype.renderCellContent.call(this);
|
|
6489
6527
|
var responsiveTitle = this.cell.showResponsiveTitle ? (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.cell.responsiveTitleCss }, this.renderLocString(this.cell.responsiveLocTitle))) : null;
|
|
@@ -9130,7 +9168,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
|
|
|
9130
9168
|
|
|
9131
9169
|
|
|
9132
9170
|
|
|
9133
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.11.
|
|
9171
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.11.13", "survey-react-ui");
|
|
9134
9172
|
|
|
9135
9173
|
|
|
9136
9174
|
/***/ }),
|