survey-react-ui 2.4.0 → 2.5.0
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/README.md +1 -3
- package/fesm/survey-react-ui.mjs +75 -68
- package/fesm/survey-react-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-react-ui.js +30 -13
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +1 -1
- package/survey-react-ui.min.js.LICENSE.txt +1 -1
- package/typings/src/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +1 -0
- package/typings/src/string-viewer.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
|
|
6
6
|
"homepage": "https://surveyjs.io/",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"survey-core": "2.
|
|
54
|
+
"survey-core": "2.5.0",
|
|
55
55
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
|
|
56
56
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0"
|
|
57
57
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.5.0
|
|
3
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
|
*/
|
|
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28
28
|
/* harmony export */ icons: () => (/* binding */ iconsV1)
|
|
29
29
|
/* harmony export */ });
|
|
30
30
|
/*!
|
|
31
|
-
* surveyjs - Survey JavaScript library v2.
|
|
31
|
+
* surveyjs - Survey JavaScript library v2.5.0
|
|
32
32
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
33
33
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
34
34
|
*/
|
|
@@ -114,7 +114,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
114
114
|
/* harmony export */ icons: () => (/* binding */ iconsV2)
|
|
115
115
|
/* harmony export */ });
|
|
116
116
|
/*!
|
|
117
|
-
* surveyjs - Survey JavaScript library v2.
|
|
117
|
+
* surveyjs - Survey JavaScript library v2.5.0
|
|
118
118
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
119
119
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
120
120
|
*/
|
|
@@ -902,6 +902,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
902
902
|
/* harmony import */ var _reactSurvey__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../reactSurvey */ "./src/reactSurvey.tsx");
|
|
903
903
|
/* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../svg-icon/svg-icon */ "./src/components/svg-icon/svg-icon.tsx");
|
|
904
904
|
/* harmony import */ var _action_bar_separator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./action-bar-separator */ "./src/components/action-bar/action-bar-separator.tsx");
|
|
905
|
+
/* harmony import */ var _string_viewer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../string-viewer */ "./src/string-viewer.tsx");
|
|
905
906
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
906
907
|
var extendStatics = function (d, b) {
|
|
907
908
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -924,6 +925,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
924
925
|
|
|
925
926
|
|
|
926
927
|
|
|
928
|
+
|
|
927
929
|
var SurveyAction = /** @class */ (function (_super) {
|
|
928
930
|
__extends(SurveyAction, _super);
|
|
929
931
|
function SurveyAction(props) {
|
|
@@ -1001,8 +1003,7 @@ var SurveyActionBarItem = /** @class */ (function (_super) {
|
|
|
1001
1003
|
SurveyActionBarItem.prototype.renderText = function () {
|
|
1002
1004
|
if (!this.item.hasTitle)
|
|
1003
1005
|
return null;
|
|
1004
|
-
|
|
1005
|
-
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: titleClass }, this.item.title);
|
|
1006
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_string_viewer__WEBPACK_IMPORTED_MODULE_7__.SurveyLocStringViewer, { locStr: this.item.locTitle, textClass: this.item.getActionBarItemTitleCss() });
|
|
1006
1007
|
};
|
|
1007
1008
|
SurveyActionBarItem.prototype.renderButtonContent = function () {
|
|
1008
1009
|
var text = this.renderText();
|
|
@@ -2453,8 +2454,16 @@ var SurveyQuestionMatrixDynamicDragDropIcon = /** @class */ (function (_super) {
|
|
|
2453
2454
|
enumerable: false,
|
|
2454
2455
|
configurable: true
|
|
2455
2456
|
});
|
|
2457
|
+
Object.defineProperty(SurveyQuestionMatrixDynamicDragDropIcon.prototype, "row", {
|
|
2458
|
+
get: function () {
|
|
2459
|
+
return this.props.item.data.row;
|
|
2460
|
+
},
|
|
2461
|
+
enumerable: false,
|
|
2462
|
+
configurable: true
|
|
2463
|
+
});
|
|
2456
2464
|
SurveyQuestionMatrixDynamicDragDropIcon.prototype.renderElement = function () {
|
|
2457
|
-
|
|
2465
|
+
var _this = this;
|
|
2466
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { onPointerDown: function (event) { _this.question.onPointerDown(event.nativeEvent, _this.row); } }, this.renderIcon());
|
|
2458
2467
|
};
|
|
2459
2468
|
SurveyQuestionMatrixDynamicDragDropIcon.prototype.renderIcon = function () {
|
|
2460
2469
|
if (this.question.iconDragElement) {
|
|
@@ -2630,11 +2639,10 @@ var MatrixRow = /** @class */ (function (_super) {
|
|
|
2630
2639
|
return true;
|
|
2631
2640
|
};
|
|
2632
2641
|
MatrixRow.prototype.render = function () {
|
|
2633
|
-
var _this = this;
|
|
2634
2642
|
var model = this.model;
|
|
2635
2643
|
if (!model.visible)
|
|
2636
2644
|
return null;
|
|
2637
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr", { ref: this.root, className: model.className, "data-sv-drop-target-matrix-row": model.dropTargetId
|
|
2645
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr", { ref: this.root, className: model.className, "data-sv-drop-target-matrix-row": model.dropTargetId }, this.props.children));
|
|
2638
2646
|
};
|
|
2639
2647
|
return MatrixRow;
|
|
2640
2648
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
@@ -7959,7 +7967,7 @@ var SurveyElementBase = /** @class */ (function (_super) {
|
|
|
7959
7967
|
return _element_factory__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(locStr.renderAs, {
|
|
7960
7968
|
locStr: locStr.renderAsData,
|
|
7961
7969
|
style: style,
|
|
7962
|
-
key: key
|
|
7970
|
+
key: key
|
|
7963
7971
|
});
|
|
7964
7972
|
};
|
|
7965
7973
|
SurveyElementBase.renderQuestionDescription = function (question) {
|
|
@@ -11302,8 +11310,10 @@ var SurveyRow = /** @class */ (function (_super) {
|
|
|
11302
11310
|
SurveyRow.prototype.componentWillUnmount = function () {
|
|
11303
11311
|
_super.prototype.componentWillUnmount.call(this);
|
|
11304
11312
|
if (!!this.row) {
|
|
11305
|
-
this.row.
|
|
11306
|
-
|
|
11313
|
+
if (!this.row.hasActiveUISubscribers) {
|
|
11314
|
+
this.row.setRootElement(undefined);
|
|
11315
|
+
this.stopLazyRendering();
|
|
11316
|
+
}
|
|
11307
11317
|
}
|
|
11308
11318
|
};
|
|
11309
11319
|
SurveyRow.prototype.createElement = function (element, elementIndex) {
|
|
@@ -11572,6 +11582,13 @@ var SurveyLocStringViewer = /** @class */ (function (_super) {
|
|
|
11572
11582
|
enumerable: false,
|
|
11573
11583
|
configurable: true
|
|
11574
11584
|
});
|
|
11585
|
+
Object.defineProperty(SurveyLocStringViewer.prototype, "textClass", {
|
|
11586
|
+
get: function () {
|
|
11587
|
+
return this.props.textClass;
|
|
11588
|
+
},
|
|
11589
|
+
enumerable: false,
|
|
11590
|
+
configurable: true
|
|
11591
|
+
});
|
|
11575
11592
|
SurveyLocStringViewer.prototype.componentDidMount = function () {
|
|
11576
11593
|
this.reactOnStrChanged();
|
|
11577
11594
|
};
|
|
@@ -11600,7 +11617,7 @@ var SurveyLocStringViewer = /** @class */ (function (_super) {
|
|
|
11600
11617
|
return strEl;
|
|
11601
11618
|
};
|
|
11602
11619
|
SurveyLocStringViewer.prototype.renderString = function () {
|
|
11603
|
-
var className = this.locStr.
|
|
11620
|
+
var className = this.locStr.getStringViewerClassName(this.textClass);
|
|
11604
11621
|
if (this.locStr.hasHtml) {
|
|
11605
11622
|
var htmlValue = { __html: this.locStr.renderedHtml };
|
|
11606
11623
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { ref: this.rootRef, className: className, style: this.style, dangerouslySetInnerHTML: htmlValue });
|
|
@@ -12093,7 +12110,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12093
12110
|
|
|
12094
12111
|
|
|
12095
12112
|
|
|
12096
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.
|
|
12113
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.5.0"), "survey-react-ui");
|
|
12097
12114
|
|
|
12098
12115
|
})();
|
|
12099
12116
|
|