survey-react-ui 1.9.80 → 1.9.81
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.d.ts +2 -2
- package/survey-react-ui.js +51 -17
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.81",
|
|
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
|
"dependencies": {
|
|
24
|
-
"survey-core": "1.9.
|
|
24
|
+
"survey-core": "1.9.81",
|
|
25
25
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
26
26
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
27
27
|
}
|
package/survey-react-ui.d.ts
CHANGED
|
@@ -983,8 +983,8 @@ declare module "react/reactquestion_matrixdropdownbase" {
|
|
|
983
983
|
renderHeader(): JSX.Element | null;
|
|
984
984
|
renderFooter(): JSX.Element | null;
|
|
985
985
|
renderRows(): JSX.Element;
|
|
986
|
-
renderRow(keyValue: any, row: QuestionMatrixDropdownRenderedRow, cssClasses: any): JSX.Element;
|
|
987
|
-
renderCell(cell: QuestionMatrixDropdownRenderedCell, index: number, cssClasses: any): JSX.Element;
|
|
986
|
+
renderRow(keyValue: any, row: QuestionMatrixDropdownRenderedRow, cssClasses: any, reason?: string): JSX.Element;
|
|
987
|
+
renderCell(cell: QuestionMatrixDropdownRenderedCell, index: number, cssClasses: any, reason?: string): JSX.Element;
|
|
988
988
|
private renderCellContent;
|
|
989
989
|
}
|
|
990
990
|
export class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.81
|
|
3
3
|
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -1189,7 +1189,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1189
1189
|
|
|
1190
1190
|
|
|
1191
1191
|
|
|
1192
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.
|
|
1192
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.81", "survey-react-ui");
|
|
1193
1193
|
|
|
1194
1194
|
|
|
1195
1195
|
/***/ }),
|
|
@@ -4375,8 +4375,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4375
4375
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyElementHeader", function() { return SurveyElementHeader; });
|
|
4376
4376
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
4377
4377
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
4378
|
-
/* harmony import */ var
|
|
4379
|
-
/* harmony import */ var
|
|
4378
|
+
/* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "./src/react/components/action-bar/action-bar.tsx");
|
|
4379
|
+
/* harmony import */ var _components_title_title_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/title/title-element */ "./src/react/components/title/title-element.tsx");
|
|
4380
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
|
4380
4381
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
4381
4382
|
var extendStatics = function (d, b) {
|
|
4382
4383
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -4395,6 +4396,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
4395
4396
|
|
|
4396
4397
|
|
|
4397
4398
|
|
|
4399
|
+
|
|
4398
4400
|
var SurveyElementHeader = /** @class */ (function (_super) {
|
|
4399
4401
|
__extends(SurveyElementHeader, _super);
|
|
4400
4402
|
function SurveyElementHeader() {
|
|
@@ -4409,13 +4411,15 @@ var SurveyElementHeader = /** @class */ (function (_super) {
|
|
|
4409
4411
|
});
|
|
4410
4412
|
SurveyElementHeader.prototype.render = function () {
|
|
4411
4413
|
var element = this.element;
|
|
4412
|
-
var title = element.hasTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
|
|
4414
|
+
var title = element.hasTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_title_title_element__WEBPACK_IMPORTED_MODULE_2__["TitleElement"], { element: element })) : null;
|
|
4413
4415
|
var description = element.hasDescriptionUnderTitle
|
|
4414
|
-
?
|
|
4416
|
+
? _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__["SurveyElementBase"].renderQuestionDescription(this.element)
|
|
4415
4417
|
: null;
|
|
4418
|
+
var additionalTitleToolbarElement = !!element.additionalTitleToolbar ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__["SurveyActionBar"], { model: element.additionalTitleToolbar }) : null;
|
|
4416
4419
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: element.cssHeader, onClick: element.clickTitleFunction },
|
|
4417
4420
|
title,
|
|
4418
|
-
description
|
|
4421
|
+
description,
|
|
4422
|
+
additionalTitleToolbarElement));
|
|
4419
4423
|
};
|
|
4420
4424
|
return SurveyElementHeader;
|
|
4421
4425
|
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
|
@@ -6058,7 +6062,8 @@ var SurveyProgressToc = /** @class */ (function (_super) {
|
|
|
6058
6062
|
}
|
|
6059
6063
|
SurveyProgressToc.prototype.render = function () {
|
|
6060
6064
|
var listModel = Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["createTOCListModel"])(this.props.model);
|
|
6061
|
-
|
|
6065
|
+
var rootCss = Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["getTocRootCss"])(this.props.model);
|
|
6066
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: rootCss },
|
|
6062
6067
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_list_list__WEBPACK_IMPORTED_MODULE_4__["List"], { model: listModel })));
|
|
6063
6068
|
};
|
|
6064
6069
|
return SurveyProgressToc;
|
|
@@ -6470,7 +6475,7 @@ var SurveyQuestionAndErrorsCell = /** @class */ (function (_super) {
|
|
|
6470
6475
|
var survey = this.question.survey;
|
|
6471
6476
|
var wrapper = null;
|
|
6472
6477
|
if (survey) {
|
|
6473
|
-
wrapper = _reactsurveymodel__WEBPACK_IMPORTED_MODULE_2__["ReactSurveyElementsWrapper"].wrapMatrixCell(survey, element, cell);
|
|
6478
|
+
wrapper = _reactsurveymodel__WEBPACK_IMPORTED_MODULE_2__["ReactSurveyElementsWrapper"].wrapMatrixCell(survey, element, cell, this.props.reason);
|
|
6474
6479
|
}
|
|
6475
6480
|
return wrapper !== null && wrapper !== void 0 ? wrapper : element;
|
|
6476
6481
|
};
|
|
@@ -8275,7 +8280,7 @@ var SurveyQuestionMatrixDropdownBase = /** @class */ (function (_super) {
|
|
|
8275
8280
|
var table = this.question.renderedTable;
|
|
8276
8281
|
if (!table.showFooter)
|
|
8277
8282
|
return null;
|
|
8278
|
-
var row = this.renderRow("footer", table.footerRow, this.question.cssClasses);
|
|
8283
|
+
var row = this.renderRow("footer", table.footerRow, this.question.cssClasses, "row-footer");
|
|
8279
8284
|
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tfoot", null, row);
|
|
8280
8285
|
};
|
|
8281
8286
|
SurveyQuestionMatrixDropdownBase.prototype.renderRows = function () {
|
|
@@ -8287,23 +8292,26 @@ var SurveyQuestionMatrixDropdownBase = /** @class */ (function (_super) {
|
|
|
8287
8292
|
}
|
|
8288
8293
|
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tbody", null, rows);
|
|
8289
8294
|
};
|
|
8290
|
-
SurveyQuestionMatrixDropdownBase.prototype.renderRow = function (keyValue, row, cssClasses) {
|
|
8295
|
+
SurveyQuestionMatrixDropdownBase.prototype.renderRow = function (keyValue, row, cssClasses, reason) {
|
|
8291
8296
|
var matrixrow = [];
|
|
8292
8297
|
var cells = row.cells;
|
|
8293
8298
|
for (var i = 0; i < cells.length; i++) {
|
|
8294
|
-
matrixrow.push(this.renderCell(cells[i], i, cssClasses));
|
|
8299
|
+
matrixrow.push(this.renderCell(cells[i], i, cssClasses, reason));
|
|
8295
8300
|
}
|
|
8296
8301
|
var key = "row" + keyValue;
|
|
8297
8302
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], { key: key },
|
|
8298
8303
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_matrix_row__WEBPACK_IMPORTED_MODULE_7__["MatrixRow"], { model: row, parentMatrix: this.question }, matrixrow)));
|
|
8299
8304
|
};
|
|
8300
|
-
SurveyQuestionMatrixDropdownBase.prototype.renderCell = function (cell, index, cssClasses) {
|
|
8305
|
+
SurveyQuestionMatrixDropdownBase.prototype.renderCell = function (cell, index, cssClasses, reason) {
|
|
8301
8306
|
var key = "cell" + index;
|
|
8302
8307
|
if (cell.hasQuestion) {
|
|
8303
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionMatrixDropdownCell, { key: key, cssClasses: cssClasses, cell: cell, creator: this.creator }));
|
|
8308
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionMatrixDropdownCell, { key: key, cssClasses: cssClasses, cell: cell, creator: this.creator, reason: reason }));
|
|
8304
8309
|
}
|
|
8305
|
-
var
|
|
8306
|
-
|
|
8310
|
+
var calcReason = reason;
|
|
8311
|
+
if (!calcReason) {
|
|
8312
|
+
calcReason = cell.hasTitle ? "row-header" : "";
|
|
8313
|
+
}
|
|
8314
|
+
var cellContent = this.renderCellContent(cell, calcReason, cssClasses);
|
|
8307
8315
|
var cellStyle = null;
|
|
8308
8316
|
if (!!cell.width || !!cell.minWidth) {
|
|
8309
8317
|
cellStyle = {};
|
|
@@ -8923,10 +8931,10 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
|
|
|
8923
8931
|
SurveyQuestionPanelDynamic.prototype.renderNavigatorV2 = function () {
|
|
8924
8932
|
if (this.question.panelCount === 0 || this.question["showLegacyNavigation"])
|
|
8925
8933
|
return null;
|
|
8926
|
-
var range = this.question.isRangeShowing && !this.question.isProgressTopShowing ? this.renderRange() : null;
|
|
8927
8934
|
if (!this.question.cssClasses.footer) {
|
|
8928
8935
|
return null;
|
|
8929
8936
|
}
|
|
8937
|
+
var range = this.question.isRangeShowing && this.question.isProgressBottomShowing ? this.renderRange() : null;
|
|
8930
8938
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.footer },
|
|
8931
8939
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("hr", { className: this.question.cssClasses.separator }),
|
|
8932
8940
|
range,
|
|
@@ -10437,6 +10445,10 @@ var SurveyQuestionTagboxItem = /** @class */ (function (_super) {
|
|
|
10437
10445
|
"use strict";
|
|
10438
10446
|
__webpack_require__.r(__webpack_exports__);
|
|
10439
10447
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
|
|
10448
|
+
var columnWidthsByType = {
|
|
10449
|
+
"file": { minWidth: "240px" },
|
|
10450
|
+
"comment": { minWidth: "200px" }
|
|
10451
|
+
};
|
|
10440
10452
|
/**
|
|
10441
10453
|
* Global settings that apply to all surveys on the page. To specify one of the settings, use the code below:
|
|
10442
10454
|
*
|
|
@@ -10447,6 +10459,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10447
10459
|
* ```
|
|
10448
10460
|
*/
|
|
10449
10461
|
var settings = {
|
|
10462
|
+
/**
|
|
10463
|
+
* Specifies an action to perform when users press the Enter key within a survey.
|
|
10464
|
+
*
|
|
10465
|
+
* Possible values:
|
|
10466
|
+
*
|
|
10467
|
+
* - `"moveToNextEditor"` - Moves focus to the next editor.
|
|
10468
|
+
* - `"loseFocus"` - Removes focus from the current editor.
|
|
10469
|
+
* - `"default"` - Behaves as a standard `<input>` element.
|
|
10470
|
+
*/
|
|
10471
|
+
enterKeyAction: "default",
|
|
10450
10472
|
/**
|
|
10451
10473
|
* An object that configures string comparison.
|
|
10452
10474
|
*
|
|
@@ -10883,6 +10905,18 @@ var settings = {
|
|
|
10883
10905
|
"email",
|
|
10884
10906
|
"impp",
|
|
10885
10907
|
]
|
|
10908
|
+
},
|
|
10909
|
+
/**
|
|
10910
|
+
* Contains properties that apply to [Single-Choice](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model), [Multiple-Choice](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list), and [Dynamic Matrix](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model) questions.
|
|
10911
|
+
*
|
|
10912
|
+
* Nested properties:
|
|
10913
|
+
*
|
|
10914
|
+
* - `columnWidthsByType`: `Object`\
|
|
10915
|
+
* An object that specifies fixed and minimum column width based on the column type.\
|
|
10916
|
+
* Example: `settings.matrix.columnWidthsByType = { "tagbox": { minWidth: "240px", width: "300px" } }`
|
|
10917
|
+
*/
|
|
10918
|
+
matrix: {
|
|
10919
|
+
columnWidthsByType: columnWidthsByType
|
|
10886
10920
|
}
|
|
10887
10921
|
};
|
|
10888
10922
|
|