survey-react-ui 1.9.114 → 1.9.116
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.js +53 -20
- 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.116",
|
|
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.116",
|
|
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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.116
|
|
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
|
*/
|
|
@@ -2560,7 +2560,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2560
2560
|
|
|
2561
2561
|
|
|
2562
2562
|
|
|
2563
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.
|
|
2563
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.116", "survey-react-ui");
|
|
2564
2564
|
|
|
2565
2565
|
|
|
2566
2566
|
/***/ }),
|
|
@@ -5805,6 +5805,15 @@ var UnaryOperand = /** @class */ (function (_super) {
|
|
|
5805
5805
|
var uOp = op;
|
|
5806
5806
|
return uOp.operator == this.operator && this.areOperatorsEquals(this.expression, uOp.expression);
|
|
5807
5807
|
};
|
|
5808
|
+
UnaryOperand.prototype.hasFunction = function () {
|
|
5809
|
+
return this.expression.hasFunction();
|
|
5810
|
+
};
|
|
5811
|
+
UnaryOperand.prototype.hasAsyncFunction = function () {
|
|
5812
|
+
return this.expression.hasAsyncFunction();
|
|
5813
|
+
};
|
|
5814
|
+
UnaryOperand.prototype.addToAsyncList = function (list) {
|
|
5815
|
+
this.expression.addToAsyncList(list);
|
|
5816
|
+
};
|
|
5808
5817
|
UnaryOperand.prototype.evaluate = function (processValue) {
|
|
5809
5818
|
var value = this.expression.evaluate(processValue);
|
|
5810
5819
|
return this.consumer.call(this, value);
|
|
@@ -7195,7 +7204,7 @@ if (!String.prototype["format"]) {
|
|
|
7195
7204
|
/*!***************************!*\
|
|
7196
7205
|
!*** ./src/jsonobject.ts ***!
|
|
7197
7206
|
\***************************/
|
|
7198
|
-
/*! exports provided: property, propertyArray, JsonObjectProperty, CustomPropertiesCollection, JsonMetadataClass, JsonMetadata, JsonError, JsonUnknownPropertyError, JsonMissingTypeErrorBase, JsonMissingTypeError, JsonIncorrectTypeError, JsonRequiredPropertyError, JsonObject, Serializer */
|
|
7207
|
+
/*! exports provided: property, propertyArray, JsonObjectProperty, CustomPropertiesCollection, JsonMetadataClass, JsonMetadata, JsonError, JsonUnknownPropertyError, JsonMissingTypeErrorBase, JsonMissingTypeError, JsonIncorrectTypeError, JsonRequiredPropertyError, JsonRequiredArrayPropertyError, JsonObject, Serializer */
|
|
7199
7208
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7200
7209
|
|
|
7201
7210
|
"use strict";
|
|
@@ -7212,6 +7221,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7212
7221
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JsonMissingTypeError", function() { return JsonMissingTypeError; });
|
|
7213
7222
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JsonIncorrectTypeError", function() { return JsonIncorrectTypeError; });
|
|
7214
7223
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JsonRequiredPropertyError", function() { return JsonRequiredPropertyError; });
|
|
7224
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JsonRequiredArrayPropertyError", function() { return JsonRequiredArrayPropertyError; });
|
|
7215
7225
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JsonObject", function() { return JsonObject; });
|
|
7216
7226
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Serializer", function() { return Serializer; });
|
|
7217
7227
|
/* harmony import */ var _surveyStrings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./surveyStrings */ "./src/surveyStrings.ts");
|
|
@@ -8111,6 +8121,10 @@ var JsonMetadataClass = /** @class */ (function () {
|
|
|
8111
8121
|
}
|
|
8112
8122
|
if (propInfo.baseClassName) {
|
|
8113
8123
|
prop.baseClassName = propInfo.baseClassName;
|
|
8124
|
+
prop.isArray = true;
|
|
8125
|
+
}
|
|
8126
|
+
if (prop.isArray === true) {
|
|
8127
|
+
prop.isArray = true;
|
|
8114
8128
|
}
|
|
8115
8129
|
if (propInfo.classNamePart) {
|
|
8116
8130
|
prop.classNamePart = propInfo.classNamePart;
|
|
@@ -8754,6 +8768,17 @@ var JsonRequiredPropertyError = /** @class */ (function (_super) {
|
|
|
8754
8768
|
return JsonRequiredPropertyError;
|
|
8755
8769
|
}(JsonError));
|
|
8756
8770
|
|
|
8771
|
+
var JsonRequiredArrayPropertyError = /** @class */ (function (_super) {
|
|
8772
|
+
__extends(JsonRequiredArrayPropertyError, _super);
|
|
8773
|
+
function JsonRequiredArrayPropertyError(propertyName, className) {
|
|
8774
|
+
var _this = _super.call(this, "arrayproperty", "The property '" + propertyName + "' should be an array in '" + className + "'.") || this;
|
|
8775
|
+
_this.propertyName = propertyName;
|
|
8776
|
+
_this.className = className;
|
|
8777
|
+
return _this;
|
|
8778
|
+
}
|
|
8779
|
+
return JsonRequiredArrayPropertyError;
|
|
8780
|
+
}(JsonError));
|
|
8781
|
+
|
|
8757
8782
|
var JsonObject = /** @class */ (function () {
|
|
8758
8783
|
function JsonObject() {
|
|
8759
8784
|
this.errors = new Array();
|
|
@@ -8809,7 +8834,7 @@ var JsonObject = /** @class */ (function () {
|
|
|
8809
8834
|
}
|
|
8810
8835
|
continue;
|
|
8811
8836
|
}
|
|
8812
|
-
this.valueToObj(jsonObj[key], obj, property);
|
|
8837
|
+
this.valueToObj(jsonObj[key], obj, property, jsonObj);
|
|
8813
8838
|
}
|
|
8814
8839
|
if (obj.endLoadingFromJson) {
|
|
8815
8840
|
obj.endLoadingFromJson();
|
|
@@ -8883,7 +8908,7 @@ var JsonObject = /** @class */ (function () {
|
|
|
8883
8908
|
}
|
|
8884
8909
|
}
|
|
8885
8910
|
};
|
|
8886
|
-
JsonObject.prototype.valueToObj = function (value, obj, property) {
|
|
8911
|
+
JsonObject.prototype.valueToObj = function (value, obj, property, jsonObj) {
|
|
8887
8912
|
if (value === null || value === undefined)
|
|
8888
8913
|
return;
|
|
8889
8914
|
this.removePos(property, value);
|
|
@@ -8891,6 +8916,11 @@ var JsonObject = /** @class */ (function () {
|
|
|
8891
8916
|
property.setValue(obj, value, this);
|
|
8892
8917
|
return;
|
|
8893
8918
|
}
|
|
8919
|
+
if (property.isArray && !Array.isArray(value) && !!value) {
|
|
8920
|
+
value = [value];
|
|
8921
|
+
var propName = !!jsonObj && property.alternativeName && !!jsonObj[property.alternativeName] ? property.alternativeName : property.name;
|
|
8922
|
+
this.addNewError(new JsonRequiredArrayPropertyError(propName, obj.getType()), !!jsonObj ? jsonObj : value, obj);
|
|
8923
|
+
}
|
|
8894
8924
|
if (this.isValueArray(value)) {
|
|
8895
8925
|
this.valueToArray(value, obj, property.name, property);
|
|
8896
8926
|
return;
|
|
@@ -9725,6 +9755,8 @@ var englishStrings = {
|
|
|
9725
9755
|
emptyRowsText: "There are no rows.",
|
|
9726
9756
|
addPanel: "Add new",
|
|
9727
9757
|
removePanel: "Remove",
|
|
9758
|
+
showDetails: "Show Details",
|
|
9759
|
+
hideDetails: "Hide Details",
|
|
9728
9760
|
choices_Item: "item",
|
|
9729
9761
|
matrix_column: "Column",
|
|
9730
9762
|
matrix_row: "Row",
|
|
@@ -10209,7 +10241,7 @@ var SurveyActionBarItem = /** @class */ (function (_super) {
|
|
|
10209
10241
|
var title = this.item.tooltip || this.item.title;
|
|
10210
10242
|
var buttonContent = this.renderButtonContent();
|
|
10211
10243
|
var tabIndex = this.item.disableTabStop ? -1 : undefined;
|
|
10212
|
-
var button = Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", { className: className, type: "button", disabled: this.item.disabled, onClick: function (args) { return _this.item.action(_this.item, _this.item.getIsTrusted(args)); }, title: title, tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, role: this.item.ariaRole }, buttonContent),
|
|
10244
|
+
var button = Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", { className: className, type: "button", disabled: this.item.disabled, onClick: function (args) { return _this.item.action(_this.item, _this.item.getIsTrusted(args)); }, title: title, tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, role: this.item.ariaRole }, buttonContent), this.item, { processEsc: false });
|
|
10213
10245
|
return button;
|
|
10214
10246
|
};
|
|
10215
10247
|
return SurveyActionBarItem;
|
|
@@ -10588,7 +10620,7 @@ var SurveyFileChooseButton = /** @class */ (function (_super) {
|
|
|
10588
10620
|
configurable: true
|
|
10589
10621
|
});
|
|
10590
10622
|
SurveyFileChooseButton.prototype.render = function () {
|
|
10591
|
-
return Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_1__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
|
|
10623
|
+
return Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_1__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { tabIndex: 0, className: this.question.getChooseFileCss(), htmlFor: this.question.inputId, "aria-label": this.question.chooseButtonText },
|
|
10592
10624
|
(!!this.question.cssClasses.chooseFileIconId) ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { title: this.question.chooseButtonText, iconName: this.question.cssClasses.chooseFileIconId, size: "auto" }) : null,
|
|
10593
10625
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, this.question.chooseButtonText)));
|
|
10594
10626
|
};
|
|
@@ -10664,7 +10696,7 @@ var SurveyFilePreview = /** @class */ (function (_super) {
|
|
|
10664
10696
|
return null;
|
|
10665
10697
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { key: _this.question.inputId + "_" + index, className: _this.question.cssClasses.preview, style: { display: _this.question.isPreviewVisible(index) ? undefined : "none" } },
|
|
10666
10698
|
_this.renderFileSign(_this.question.cssClasses.fileSign, val),
|
|
10667
|
-
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: _this.question.
|
|
10699
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: _this.question.getImageWrapperCss(val) },
|
|
10668
10700
|
_this.question.canPreviewImage(val) ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img", { src: val.content, style: { height: _this.question.imageHeight, width: _this.question.imageWidth }, alt: "File preview" })) : (_this.question.cssClasses.defaultImage ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: _this.question.cssClasses.defaultImageIconId, size: "auto", className: _this.question.cssClasses.defaultImage })) : null),
|
|
10669
10701
|
val.name && !_this.question.isReadOnly ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: _this.question.getRemoveButtonCss(), onClick: function () { return _this.question.doRemoveFile(val); } },
|
|
10670
10702
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: _this.question.cssClasses.removeFile }, _this.question.removeFileCaption),
|
|
@@ -10913,7 +10945,7 @@ var ListItem = /** @class */ (function (_super) {
|
|
|
10913
10945
|
content.push(newElement);
|
|
10914
10946
|
}
|
|
10915
10947
|
}
|
|
10916
|
-
var contentWrap = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { style: contentWrapStyle, className: this.model.cssClasses.itemBody }, content);
|
|
10948
|
+
var contentWrap = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { style: contentWrapStyle, className: this.model.cssClasses.itemBody, title: this.item.locTitle.calculatedText }, content);
|
|
10917
10949
|
var separator = this.item.needSeparator ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.cssClasses.itemSeparator }) : null;
|
|
10918
10950
|
var isVisible = this.model.isItemVisible(this.item);
|
|
10919
10951
|
var style = {
|
|
@@ -13030,7 +13062,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
13030
13062
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, dropdownListModel.inputStringRendered),
|
|
13031
13063
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, dropdownListModel.hintStringSuffix))) : null,
|
|
13032
13064
|
valueElement,
|
|
13033
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, role: dropdownListModel.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, placeholder: dropdownListModel.placeholderRendered, readOnly: !dropdownListModel.searchEnabled ? true : undefined, tabIndex: dropdownListModel.inputReadOnly ? undefined : -1, disabled: this.question.isInputReadOnly, inputMode: dropdownListModel.inputMode, onChange: function (e) { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus })),
|
|
13065
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, role: dropdownListModel.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, placeholder: dropdownListModel.placeholderRendered, readOnly: !dropdownListModel.searchEnabled ? true : undefined, tabIndex: dropdownListModel.inputReadOnly ? undefined : -1, disabled: this.question.isInputReadOnly, inputMode: dropdownListModel.inputMode, onChange: function (e) { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus })),
|
|
13034
13066
|
this.createClearButton()));
|
|
13035
13067
|
};
|
|
13036
13068
|
SurveyQuestionDropdownBase.prototype.createClearButton = function () {
|
|
@@ -13768,7 +13800,7 @@ var SurveyQuestionImagePicker = /** @class */ (function (_super) {
|
|
|
13768
13800
|
SurveyQuestionImagePicker.prototype.renderElement = function () {
|
|
13769
13801
|
var cssClasses = this.question.cssClasses;
|
|
13770
13802
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss() },
|
|
13771
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("legend", {
|
|
13803
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
|
13772
13804
|
this.question.hasColumns ? this.getColumns(cssClasses) : this.getItems(cssClasses)));
|
|
13773
13805
|
};
|
|
13774
13806
|
SurveyQuestionImagePicker.prototype.getColumns = function (cssClasses) {
|
|
@@ -15744,7 +15776,7 @@ var SurveyQuestionCheckbox = /** @class */ (function (_super) {
|
|
|
15744
15776
|
var _this = this;
|
|
15745
15777
|
var cssClasses = this.question.cssClasses;
|
|
15746
15778
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss(), ref: function (fieldset) { return (_this.setControl(fieldset)); }, role: this.question.a11y_input_ariaRole, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-describedby": this.question.a11y_input_ariaDescribedBy },
|
|
15747
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("legend", {
|
|
15779
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
|
15748
15780
|
this.getHeader(),
|
|
15749
15781
|
this.question.hasColumns
|
|
15750
15782
|
? this.getColumnedBody(cssClasses)
|
|
@@ -15924,7 +15956,7 @@ var SurveyQuestionCheckboxItem = /** @class */ (function (_super) {
|
|
|
15924
15956
|
var itemLabel = !this.hideCaption ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.controlLabel }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
15925
15957
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: itemClass, role: "presentation" },
|
|
15926
15958
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: labelClass },
|
|
15927
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { className: this.cssClasses.itemControl, type: "checkbox", name: this.question.name, value: this.item.value != "selectall" ? this.item.value : undefined, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), checked: isChecked, onChange: onItemChanged }),
|
|
15959
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { className: this.cssClasses.itemControl, type: "checkbox", role: "option", name: this.question.name + this.item.value, value: this.item.value != "selectall" ? this.item.value : undefined, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), checked: isChecked, onChange: onItemChanged }),
|
|
15928
15960
|
this.cssClasses.materialDecorator ?
|
|
15929
15961
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
15930
15962
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: this.cssClasses.itemDecorator },
|
|
@@ -17041,7 +17073,7 @@ var SurveyQuestionMatrix = /** @class */ (function (_super) {
|
|
|
17041
17073
|
headers)));
|
|
17042
17074
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
|
|
17043
17075
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", null,
|
|
17044
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("legend", { "
|
|
17076
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
|
17045
17077
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("table", { className: this.question.getTableCss() },
|
|
17046
17078
|
header,
|
|
17047
17079
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tbody", null, rows)))));
|
|
@@ -17364,8 +17396,7 @@ var SurveyQuestionMatrixDropdownBase = /** @class */ (function (_super) {
|
|
|
17364
17396
|
matrixrow.push(this.renderCell(cells[i], i, cssClasses, reason));
|
|
17365
17397
|
}
|
|
17366
17398
|
var key = "row" + keyValue;
|
|
17367
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], { key: key },
|
|
17368
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_matrix_row__WEBPACK_IMPORTED_MODULE_7__["MatrixRow"], { model: row, parentMatrix: this.question }, matrixrow)));
|
|
17399
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], { key: key }, (reason == "row-footer") ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tr", null, matrixrow) : react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_matrix_row__WEBPACK_IMPORTED_MODULE_7__["MatrixRow"], { model: row, parentMatrix: this.question }, matrixrow)));
|
|
17369
17400
|
};
|
|
17370
17401
|
SurveyQuestionMatrixDropdownBase.prototype.renderCell = function (cell, index, cssClasses, reason) {
|
|
17371
17402
|
var key = "cell" + index;
|
|
@@ -19146,7 +19177,7 @@ var SurveyQuestionSignaturePad = /** @class */ (function (_super) {
|
|
|
19146
19177
|
var _this = this;
|
|
19147
19178
|
var cssClasses = this.question.cssClasses;
|
|
19148
19179
|
var clearButton = this.renderCleanButton();
|
|
19149
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.root, ref: function (root) { return (_this.setControl(root)); }, style: {
|
|
19180
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.root, ref: function (root) { return (_this.setControl(root)); }, style: { width: this.question.renderedCanvasWidth } },
|
|
19150
19181
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.placeholder, style: { display: this.question.needShowPlaceholder() ? "" : "none" } }, this.renderLocString(this.question.locPlaceholder)),
|
|
19151
19182
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null,
|
|
19152
19183
|
this.renderBackgroundImage(),
|
|
@@ -19156,7 +19187,7 @@ var SurveyQuestionSignaturePad = /** @class */ (function (_super) {
|
|
|
19156
19187
|
SurveyQuestionSignaturePad.prototype.renderBackgroundImage = function () {
|
|
19157
19188
|
if (!this.question.backgroundImage)
|
|
19158
19189
|
return null;
|
|
19159
|
-
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { className: this.question.cssClasses.backgroundImage, src: this.question.backgroundImage,
|
|
19190
|
+
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { className: this.question.cssClasses.backgroundImage, src: this.question.backgroundImage, style: { width: this.question.renderedCanvasWidth } });
|
|
19160
19191
|
};
|
|
19161
19192
|
SurveyQuestionSignaturePad.prototype.renderCleanButton = function () {
|
|
19162
19193
|
var _this = this;
|
|
@@ -19473,7 +19504,7 @@ var TagboxFilterString = /** @class */ (function (_super) {
|
|
|
19473
19504
|
(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.hintSuffix },
|
|
19474
19505
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, this.model.inputStringRendered),
|
|
19475
19506
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, this.model.hintStringSuffix))) : null,
|
|
19476
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), inputMode: this.model.inputMode, ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, disabled: this.question.isInputReadOnly, readOnly: !this.model.searchEnabled ? true : undefined, size: !this.model.inputStringRendered ? 1 : undefined, role: this.model.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-controls": this.model.listElementId, "aria-activedescendant": this.model.ariaActivedescendant, placeholder: this.model.filterStringPlaceholder, onKeyDown: function (e) { _this.keyhandler(e); }, onChange: function (e) { _this.onChange(e); }, onBlur: function (e) { _this.onBlur(e); }, onFocus: function (e) { _this.onFocus(e); } }))));
|
|
19507
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), inputMode: this.model.inputMode, ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, disabled: this.question.isInputReadOnly, readOnly: !this.model.searchEnabled ? true : undefined, size: !this.model.inputStringRendered ? 1 : undefined, role: this.model.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-controls": this.model.listElementId, "aria-activedescendant": this.model.ariaActivedescendant, placeholder: this.model.filterStringPlaceholder, onKeyDown: function (e) { _this.keyhandler(e); }, onChange: function (e) { _this.onChange(e); }, onBlur: function (e) { _this.onBlur(e); }, onFocus: function (e) { _this.onFocus(e); } }))));
|
|
19477
19508
|
};
|
|
19478
19509
|
return TagboxFilterString;
|
|
19479
19510
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__["SurveyElementBase"]));
|
|
@@ -20876,7 +20907,9 @@ function increaseHeightByContent(element, getComputedStyle) {
|
|
|
20876
20907
|
getComputedStyle = function (elt) { return window.getComputedStyle(elt); };
|
|
20877
20908
|
var style = getComputedStyle(element);
|
|
20878
20909
|
element.style.height = "auto";
|
|
20879
|
-
|
|
20910
|
+
if (!!element.scrollHeight) {
|
|
20911
|
+
element.style.height = (element.scrollHeight + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth)) + "px";
|
|
20912
|
+
}
|
|
20880
20913
|
}
|
|
20881
20914
|
function getOriginalEvent(event) {
|
|
20882
20915
|
return event.originalEvent || event;
|