survey-js-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-js-ui.mjs +75 -68
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +30 -13
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +1 -1
- package/survey-js-ui.min.js.LICENSE.txt +1 -1
- package/typings/survey-react-ui/src/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +1 -0
- package/typings/survey-react-ui/src/string-viewer.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-js-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A free MIT-licensed UI component that renders dynamic, interactive JSON-based forms and surveys in apps built with HTML, CSS, and JavaScript. You can use it to collect responses from users and send them to your own database.",
|
|
6
6
|
"homepage": "https://surveyjs.io/",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"survey-core": "2.
|
|
56
|
+
"survey-core": "2.5.0",
|
|
57
57
|
"@types/react-dom": "*",
|
|
58
58
|
"@types/react": "*"
|
|
59
59
|
}
|
package/survey-js-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
|
*/
|
|
@@ -23,7 +23,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
23
23
|
/***/ (function(module) {
|
|
24
24
|
|
|
25
25
|
/*!
|
|
26
|
-
* surveyjs - Survey JavaScript library v2.
|
|
26
|
+
* surveyjs - Survey JavaScript library v2.5.0
|
|
27
27
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
28
28
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
29
29
|
*/
|
|
@@ -830,7 +830,7 @@ path.keys().forEach(function (key) {
|
|
|
830
830
|
/***/ (function(module) {
|
|
831
831
|
|
|
832
832
|
/*!
|
|
833
|
-
* surveyjs - Survey JavaScript library v2.
|
|
833
|
+
* surveyjs - Survey JavaScript library v2.5.0
|
|
834
834
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
835
835
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
836
836
|
*/
|
|
@@ -2342,6 +2342,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2342
2342
|
/* harmony import */ var _reactSurvey__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../reactSurvey */ "../survey-react-ui/src/reactSurvey.tsx");
|
|
2343
2343
|
/* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../svg-icon/svg-icon */ "../survey-react-ui/src/components/svg-icon/svg-icon.tsx");
|
|
2344
2344
|
/* harmony import */ var _action_bar_separator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./action-bar-separator */ "../survey-react-ui/src/components/action-bar/action-bar-separator.tsx");
|
|
2345
|
+
/* harmony import */ var _string_viewer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../string-viewer */ "../survey-react-ui/src/string-viewer.tsx");
|
|
2345
2346
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
2346
2347
|
var extendStatics = function (d, b) {
|
|
2347
2348
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -2364,6 +2365,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
2364
2365
|
|
|
2365
2366
|
|
|
2366
2367
|
|
|
2368
|
+
|
|
2367
2369
|
var SurveyAction = /** @class */ (function (_super) {
|
|
2368
2370
|
__extends(SurveyAction, _super);
|
|
2369
2371
|
function SurveyAction(props) {
|
|
@@ -2441,8 +2443,7 @@ var SurveyActionBarItem = /** @class */ (function (_super) {
|
|
|
2441
2443
|
SurveyActionBarItem.prototype.renderText = function () {
|
|
2442
2444
|
if (!this.item.hasTitle)
|
|
2443
2445
|
return null;
|
|
2444
|
-
|
|
2445
|
-
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: titleClass }, this.item.title);
|
|
2446
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_string_viewer__WEBPACK_IMPORTED_MODULE_6__.SurveyLocStringViewer, { locStr: this.item.locTitle, textClass: this.item.getActionBarItemTitleCss() });
|
|
2446
2447
|
};
|
|
2447
2448
|
SurveyActionBarItem.prototype.renderButtonContent = function () {
|
|
2448
2449
|
var text = this.renderText();
|
|
@@ -3893,8 +3894,16 @@ var SurveyQuestionMatrixDynamicDragDropIcon = /** @class */ (function (_super) {
|
|
|
3893
3894
|
enumerable: false,
|
|
3894
3895
|
configurable: true
|
|
3895
3896
|
});
|
|
3897
|
+
Object.defineProperty(SurveyQuestionMatrixDynamicDragDropIcon.prototype, "row", {
|
|
3898
|
+
get: function () {
|
|
3899
|
+
return this.props.item.data.row;
|
|
3900
|
+
},
|
|
3901
|
+
enumerable: false,
|
|
3902
|
+
configurable: true
|
|
3903
|
+
});
|
|
3896
3904
|
SurveyQuestionMatrixDynamicDragDropIcon.prototype.renderElement = function () {
|
|
3897
|
-
|
|
3905
|
+
var _this = this;
|
|
3906
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { onPointerDown: function (event) { _this.question.onPointerDown(event.nativeEvent, _this.row); } }, this.renderIcon());
|
|
3898
3907
|
};
|
|
3899
3908
|
SurveyQuestionMatrixDynamicDragDropIcon.prototype.renderIcon = function () {
|
|
3900
3909
|
if (this.question.iconDragElement) {
|
|
@@ -4070,11 +4079,10 @@ var MatrixRow = /** @class */ (function (_super) {
|
|
|
4070
4079
|
return true;
|
|
4071
4080
|
};
|
|
4072
4081
|
MatrixRow.prototype.render = function () {
|
|
4073
|
-
var _this = this;
|
|
4074
4082
|
var model = this.model;
|
|
4075
4083
|
if (!model.visible)
|
|
4076
4084
|
return null;
|
|
4077
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr", { ref: this.root, className: model.className, "data-sv-drop-target-matrix-row": model.dropTargetId
|
|
4085
|
+
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));
|
|
4078
4086
|
};
|
|
4079
4087
|
return MatrixRow;
|
|
4080
4088
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
@@ -9400,7 +9408,7 @@ var SurveyElementBase = /** @class */ (function (_super) {
|
|
|
9400
9408
|
return _element_factory__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(locStr.renderAs, {
|
|
9401
9409
|
locStr: locStr.renderAsData,
|
|
9402
9410
|
style: style,
|
|
9403
|
-
key: key
|
|
9411
|
+
key: key
|
|
9404
9412
|
});
|
|
9405
9413
|
};
|
|
9406
9414
|
SurveyElementBase.renderQuestionDescription = function (question) {
|
|
@@ -12745,8 +12753,10 @@ var SurveyRow = /** @class */ (function (_super) {
|
|
|
12745
12753
|
SurveyRow.prototype.componentWillUnmount = function () {
|
|
12746
12754
|
_super.prototype.componentWillUnmount.call(this);
|
|
12747
12755
|
if (!!this.row) {
|
|
12748
|
-
this.row.
|
|
12749
|
-
|
|
12756
|
+
if (!this.row.hasActiveUISubscribers) {
|
|
12757
|
+
this.row.setRootElement(undefined);
|
|
12758
|
+
this.stopLazyRendering();
|
|
12759
|
+
}
|
|
12750
12760
|
}
|
|
12751
12761
|
};
|
|
12752
12762
|
SurveyRow.prototype.createElement = function (element, elementIndex) {
|
|
@@ -13015,6 +13025,13 @@ var SurveyLocStringViewer = /** @class */ (function (_super) {
|
|
|
13015
13025
|
enumerable: false,
|
|
13016
13026
|
configurable: true
|
|
13017
13027
|
});
|
|
13028
|
+
Object.defineProperty(SurveyLocStringViewer.prototype, "textClass", {
|
|
13029
|
+
get: function () {
|
|
13030
|
+
return this.props.textClass;
|
|
13031
|
+
},
|
|
13032
|
+
enumerable: false,
|
|
13033
|
+
configurable: true
|
|
13034
|
+
});
|
|
13018
13035
|
SurveyLocStringViewer.prototype.componentDidMount = function () {
|
|
13019
13036
|
this.reactOnStrChanged();
|
|
13020
13037
|
};
|
|
@@ -13043,7 +13060,7 @@ var SurveyLocStringViewer = /** @class */ (function (_super) {
|
|
|
13043
13060
|
return strEl;
|
|
13044
13061
|
};
|
|
13045
13062
|
SurveyLocStringViewer.prototype.renderString = function () {
|
|
13046
|
-
var className = this.locStr.
|
|
13063
|
+
var className = this.locStr.getStringViewerClassName(this.textClass);
|
|
13047
13064
|
if (this.locStr.hasHtml) {
|
|
13048
13065
|
var htmlValue = { __html: this.locStr.renderedHtml };
|
|
13049
13066
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { ref: this.rootRef, className: className, style: this.style, dangerouslySetInnerHTML: htmlValue });
|
|
@@ -13767,7 +13784,7 @@ var preact = react__WEBPACK_IMPORTED_MODULE_0__;
|
|
|
13767
13784
|
|
|
13768
13785
|
|
|
13769
13786
|
|
|
13770
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.
|
|
13787
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.5.0"), "survey-js-ui");
|
|
13771
13788
|
|
|
13772
13789
|
})();
|
|
13773
13790
|
|