survey-react-ui 1.11.1 → 1.11.3
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.3",
|
|
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": "survey-react-ui.d.ts",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"survey-core": "1.11.
|
|
24
|
+
"survey-core": "1.11.3",
|
|
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.3
|
|
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
|
*/
|
|
@@ -3776,7 +3776,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3776
3776
|
|
|
3777
3777
|
|
|
3778
3778
|
|
|
3779
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.11.
|
|
3779
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.11.3", "survey-react-ui");
|
|
3780
3780
|
|
|
3781
3781
|
|
|
3782
3782
|
/***/ }),
|
|
@@ -10743,13 +10743,13 @@ var ListModel = /** @class */ (function (_super) {
|
|
|
10743
10743
|
if (_this.allowSelection) {
|
|
10744
10744
|
_this.selectedItem = itemValue;
|
|
10745
10745
|
}
|
|
10746
|
+
if (!!_this.onSelectionChanged) {
|
|
10747
|
+
_this.onSelectionChanged(itemValue);
|
|
10748
|
+
}
|
|
10746
10749
|
var action = itemValue.action;
|
|
10747
10750
|
if (!!action) {
|
|
10748
10751
|
action(itemValue);
|
|
10749
10752
|
}
|
|
10750
|
-
if (!!_this.onSelectionChanged) {
|
|
10751
|
-
_this.onSelectionChanged(itemValue);
|
|
10752
|
-
}
|
|
10753
10753
|
};
|
|
10754
10754
|
_this.onItemHover = function (itemValue) {
|
|
10755
10755
|
_this.mouseOverHandler(itemValue);
|
|
@@ -11870,6 +11870,7 @@ var englishStrings = {
|
|
|
11870
11870
|
emptyMessage: "No data to display",
|
|
11871
11871
|
noEntriesText: "No entries yet.\nClick the button below to add a new entry.",
|
|
11872
11872
|
noEntriesReadonlyText: "No entries",
|
|
11873
|
+
tabTitlePlaceholder: "New Panel",
|
|
11873
11874
|
more: "More",
|
|
11874
11875
|
tagboxDoneButtonCaption: "OK",
|
|
11875
11876
|
selectToRankEmptyRankedAreaText: "All choices are selected for ranking",
|
|
@@ -15876,9 +15877,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15876
15877
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyElementHeader", function() { return SurveyElementHeader; });
|
|
15877
15878
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15878
15879
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15879
|
-
/* harmony import */ var
|
|
15880
|
-
/* harmony import */ var
|
|
15881
|
-
/* harmony import */ var
|
|
15880
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
15881
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
15882
|
+
/* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "./src/react/components/action-bar/action-bar.tsx");
|
|
15883
|
+
/* harmony import */ var _components_title_title_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/title/title-element */ "./src/react/components/title/title-element.tsx");
|
|
15884
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
|
15882
15885
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
15883
15886
|
var extendStatics = function (d, b) {
|
|
15884
15887
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -15898,6 +15901,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
15898
15901
|
|
|
15899
15902
|
|
|
15900
15903
|
|
|
15904
|
+
|
|
15901
15905
|
var SurveyElementHeader = /** @class */ (function (_super) {
|
|
15902
15906
|
__extends(SurveyElementHeader, _super);
|
|
15903
15907
|
function SurveyElementHeader() {
|
|
@@ -15912,12 +15916,16 @@ var SurveyElementHeader = /** @class */ (function (_super) {
|
|
|
15912
15916
|
});
|
|
15913
15917
|
SurveyElementHeader.prototype.render = function () {
|
|
15914
15918
|
var element = this.element;
|
|
15915
|
-
var title = element.hasTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
|
|
15919
|
+
var title = element.hasTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_title_title_element__WEBPACK_IMPORTED_MODULE_3__["TitleElement"], { element: element })) : null;
|
|
15916
15920
|
var description = element.hasDescriptionUnderTitle
|
|
15917
|
-
?
|
|
15921
|
+
? _reactquestion_element__WEBPACK_IMPORTED_MODULE_4__["SurveyElementBase"].renderQuestionDescription(this.element)
|
|
15918
15922
|
: null;
|
|
15919
|
-
var additionalTitleToolbarElement = element.hasAdditionalTitleToolbar ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
|
|
15920
|
-
|
|
15923
|
+
var additionalTitleToolbarElement = element.hasAdditionalTitleToolbar ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_2__["SurveyActionBar"], { model: element.additionalTitleToolbar }) : null;
|
|
15924
|
+
var headerStyle = { width: undefined };
|
|
15925
|
+
if (element instanceof survey_core__WEBPACK_IMPORTED_MODULE_1__["Question"]) {
|
|
15926
|
+
headerStyle.width = element.titleWidth;
|
|
15927
|
+
}
|
|
15928
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: element.cssHeader, onClick: function (e) { return element.clickTitleFunction && element.clickTitleFunction(e.nativeEvent); }, style: headerStyle },
|
|
15921
15929
|
title,
|
|
15922
15930
|
description,
|
|
15923
15931
|
additionalTitleToolbarElement));
|
|
@@ -18147,11 +18155,14 @@ var SurveyQuestionAndErrorsCell = /** @class */ (function (_super) {
|
|
|
18147
18155
|
}
|
|
18148
18156
|
}
|
|
18149
18157
|
};
|
|
18158
|
+
SurveyQuestionAndErrorsCell.prototype.renderCellContent = function () {
|
|
18159
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.props.cell.cellQuestionWrapperClassName }, this.renderQuestion()));
|
|
18160
|
+
};
|
|
18150
18161
|
SurveyQuestionAndErrorsCell.prototype.renderElement = function () {
|
|
18151
18162
|
var style = this.getCellStyle();
|
|
18152
18163
|
var cell = this.props.cell;
|
|
18153
18164
|
var focusIn = function () { cell.focusIn(); };
|
|
18154
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("td", { ref: this.cellRef, className: this.itemCss, colSpan: cell.colSpans,
|
|
18165
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("td", { ref: this.cellRef, className: this.itemCss, colSpan: cell.colSpans, title: cell.getTitle(), style: style, onFocus: focusIn }, this.wrapCell(this.props.cell, this.renderCellContent())));
|
|
18155
18166
|
};
|
|
18156
18167
|
SurveyQuestionAndErrorsCell.prototype.getCellStyle = function () {
|
|
18157
18168
|
return null;
|
|
@@ -20126,7 +20137,7 @@ var SurveyQuestionMatrixTable = /** @class */ (function (_super) {
|
|
|
20126
20137
|
if (!!cell.minWidth)
|
|
20127
20138
|
cellStyle.minWidth = cell.minWidth;
|
|
20128
20139
|
}
|
|
20129
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("td", { className: cell.className, key: key, style: cellStyle, colSpan: cell.colSpans,
|
|
20140
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("td", { className: cell.className, key: key, style: cellStyle, colSpan: cell.colSpans, title: cell.getTitle() }, cellContent));
|
|
20130
20141
|
};
|
|
20131
20142
|
SurveyQuestionMatrixTable.prototype.renderCellContent = function (cell, reason, cssClasses) {
|
|
20132
20143
|
var cellContent = null;
|
|
@@ -20345,6 +20356,13 @@ var SurveyQuestionMatrixDropdownCell = /** @class */ (function (_super) {
|
|
|
20345
20356
|
SurveyQuestionMatrixDropdownCell.prototype.getHeaderText = function () {
|
|
20346
20357
|
return this.cell.headers;
|
|
20347
20358
|
};
|
|
20359
|
+
SurveyQuestionMatrixDropdownCell.prototype.renderCellContent = function () {
|
|
20360
|
+
var content = _super.prototype.renderCellContent.call(this);
|
|
20361
|
+
var responsiveTitle = this.cell.showResponsiveTitle ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cell.responsiveTitleCss }, this.renderLocString(this.cell.responsiveLocTitle))) : null;
|
|
20362
|
+
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
|
|
20363
|
+
responsiveTitle,
|
|
20364
|
+
content);
|
|
20365
|
+
};
|
|
20348
20366
|
SurveyQuestionMatrixDropdownCell.prototype.renderQuestion = function () {
|
|
20349
20367
|
if (!this.question.isVisible)
|
|
20350
20368
|
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null);
|