survey-react-ui 2.1.0 → 2.1.1
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/fesm/survey-react-ui.mjs +35 -43
- package/fesm/survey-react-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-react-ui.js +47 -49
- 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/dropdown-base.d.ts +4 -4
- package/typings/src/dropdown-select.d.ts +1 -0
- package/typings/src/reactquestion_tagbox.d.ts +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
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",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"survey-core": "2.1.
|
|
28
|
+
"survey-core": "2.1.1",
|
|
29
29
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
|
|
30
30
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0"
|
|
31
31
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.1.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.1.1
|
|
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.1.
|
|
31
|
+
* surveyjs - Survey JavaScript library v2.1.1
|
|
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.1.
|
|
117
|
+
* surveyjs - Survey JavaScript library v2.1.1
|
|
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
|
*/
|
|
@@ -4503,10 +4503,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4503
4503
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
4504
4504
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
4505
4505
|
/* harmony import */ var _components_popup_popup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/popup/popup */ "./src/components/popup/popup.tsx");
|
|
4506
|
-
/* harmony import */ var
|
|
4507
|
-
/* harmony import */ var
|
|
4508
|
-
/* harmony import */ var
|
|
4509
|
-
/* harmony import */ var
|
|
4506
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
|
|
4507
|
+
/* harmony import */ var _reactquestion_comment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_comment */ "./src/reactquestion_comment.tsx");
|
|
4508
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./reactquestion_element */ "./src/reactquestion_element.tsx");
|
|
4509
|
+
/* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "./src/components/action-bar/action-bar.tsx");
|
|
4510
4510
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
4511
4511
|
var extendStatics = function (d, b) {
|
|
4512
4512
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -4558,6 +4558,13 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
4558
4558
|
};
|
|
4559
4559
|
return _this;
|
|
4560
4560
|
}
|
|
4561
|
+
Object.defineProperty(SurveyQuestionDropdownBase.prototype, "dropdownListModel", {
|
|
4562
|
+
get: function () {
|
|
4563
|
+
return this.question["dropdownListModel"];
|
|
4564
|
+
},
|
|
4565
|
+
enumerable: false,
|
|
4566
|
+
configurable: true
|
|
4567
|
+
});
|
|
4561
4568
|
SurveyQuestionDropdownBase.prototype.getStateElement = function () {
|
|
4562
4569
|
return this.question["dropdownListModel"];
|
|
4563
4570
|
};
|
|
@@ -4569,7 +4576,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
4569
4576
|
};
|
|
4570
4577
|
SurveyQuestionDropdownBase.prototype.renderReadOnlyElement = function () {
|
|
4571
4578
|
if (this.question.locReadOnlyText) {
|
|
4572
|
-
return this.renderLocString(this.question.locReadOnlyText);
|
|
4579
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.controlValue }, this.renderLocString(this.question.locReadOnlyText)));
|
|
4573
4580
|
}
|
|
4574
4581
|
else {
|
|
4575
4582
|
return null;
|
|
@@ -4578,33 +4585,34 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
4578
4585
|
SurveyQuestionDropdownBase.prototype.renderSelect = function (cssClasses) {
|
|
4579
4586
|
var _this = this;
|
|
4580
4587
|
var selectElement = null;
|
|
4581
|
-
var dropdownListModel = this.
|
|
4588
|
+
var dropdownListModel = this.dropdownListModel;
|
|
4582
4589
|
if (this.question.isReadOnly) {
|
|
4583
4590
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4584
4591
|
// @ts-ignore
|
|
4585
|
-
selectElement = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.question.inputId, role: dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionRole, "aria-label": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionLabel, "aria-labelledby": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionLabelledby, "aria-describedby": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionDescribedby, "aria-expanded": "false", "aria-readonly": "true", "aria-disabled": "true", tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } },
|
|
4592
|
+
selectElement = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.question.inputId, role: dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionRole, "aria-label": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionLabel, "aria-labelledby": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionLabelledby, "aria-describedby": dropdownListModel === null || dropdownListModel === void 0 ? void 0 : dropdownListModel.ariaQuestionDescribedby, "aria-expanded": "false", "aria-readonly": "true", "aria-disabled": "true", tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } },
|
|
4593
|
+
this.renderReadOnlyElement(),
|
|
4594
|
+
this.renderEditorButtons());
|
|
4586
4595
|
}
|
|
4587
4596
|
else {
|
|
4588
4597
|
selectElement = react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
|
|
4589
|
-
this.renderInput(
|
|
4598
|
+
this.renderInput(),
|
|
4590
4599
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_popup_popup__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: dropdownListModel.popupModel }));
|
|
4591
4600
|
}
|
|
4592
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.selectWrapper, onClick: this.click },
|
|
4593
|
-
selectElement,
|
|
4594
|
-
this.createChevronButton()));
|
|
4601
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.selectWrapper, onClick: this.click }, selectElement));
|
|
4595
4602
|
};
|
|
4596
|
-
SurveyQuestionDropdownBase.prototype.renderValueElement = function (
|
|
4603
|
+
SurveyQuestionDropdownBase.prototype.renderValueElement = function () {
|
|
4597
4604
|
if (this.question.showInputFieldComponent) {
|
|
4598
|
-
return
|
|
4605
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName, { item: this.dropdownListModel.getSelectedAction(), question: this.question });
|
|
4599
4606
|
}
|
|
4600
4607
|
else if (this.question.showSelectedItemLocText) {
|
|
4601
4608
|
return this.renderLocString(this.question.selectedItemLocText);
|
|
4602
4609
|
}
|
|
4603
4610
|
return null;
|
|
4604
4611
|
};
|
|
4605
|
-
SurveyQuestionDropdownBase.prototype.renderInput = function (
|
|
4612
|
+
SurveyQuestionDropdownBase.prototype.renderInput = function () {
|
|
4606
4613
|
var _this = this;
|
|
4607
|
-
var
|
|
4614
|
+
var dropdownListModel = this.dropdownListModel;
|
|
4615
|
+
var valueElement = this.renderValueElement();
|
|
4608
4616
|
var root = survey_core__WEBPACK_IMPORTED_MODULE_1__.settings.environment.root;
|
|
4609
4617
|
var onInputChange = function (e) {
|
|
4610
4618
|
if (e.target === root.activeElement) {
|
|
@@ -4625,24 +4633,14 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
4625
4633
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, dropdownListModel.hintStringSuffix))) : null,
|
|
4626
4634
|
valueElement,
|
|
4627
4635
|
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.ariaInputRole, "aria-required": dropdownListModel.ariaInputRequired, "aria-invalid": dropdownListModel.ariaInputInvalid, "aria-errormessage": dropdownListModel.ariaInputErrorMessage, "aria-expanded": dropdownListModel.ariaInputExpanded, "aria-label": dropdownListModel.ariaInputLabel, "aria-labelledby": dropdownListModel.ariaInputLabelledby, "aria-describedby": dropdownListModel.ariaInputDescribedby, "aria-controls": dropdownListModel.ariaInputControls, "aria-activedescendant": dropdownListModel.ariaInputActivedescendant, placeholder: dropdownListModel.placeholderRendered, readOnly: dropdownListModel.filterReadOnly ? true : undefined, tabIndex: dropdownListModel.noTabIndex ? undefined : -1, disabled: this.question.isDisabledAttr, inputMode: dropdownListModel.inputMode, onChange: function (e) { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus })),
|
|
4628
|
-
this.
|
|
4629
|
-
};
|
|
4630
|
-
SurveyQuestionDropdownBase.prototype.createClearButton = function () {
|
|
4631
|
-
if (!this.question.allowClear || !this.question.cssClasses.cleanButtonIconId)
|
|
4632
|
-
return null;
|
|
4633
|
-
var style = { display: !this.question.showClearButton ? "none" : "" };
|
|
4634
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.cleanButton, style: style, onClick: this.clear, "aria-hidden": "true" },
|
|
4635
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { className: this.question.cssClasses.cleanButtonSvg, iconName: this.question.cssClasses.cleanButtonIconId, title: this.question.clearCaption, size: "auto" })));
|
|
4636
|
-
};
|
|
4637
|
-
SurveyQuestionDropdownBase.prototype.createChevronButton = function () {
|
|
4638
|
-
if (!this.question.cssClasses.chevronButtonIconId)
|
|
4639
|
-
return null;
|
|
4640
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.chevronButton, "aria-hidden": "true", onPointerDown: this.chevronPointerDown },
|
|
4641
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { className: this.question.cssClasses.chevronButtonSvg, iconName: this.question.cssClasses.chevronButtonIconId, size: "auto" })));
|
|
4636
|
+
this.renderEditorButtons()));
|
|
4642
4637
|
};
|
|
4643
4638
|
SurveyQuestionDropdownBase.prototype.renderOther = function (cssClasses) {
|
|
4644
4639
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getCommentAreaCss(true) },
|
|
4645
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
4640
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_comment__WEBPACK_IMPORTED_MODULE_4__.SurveyQuestionOtherValueItem, { question: this.question, otherCss: cssClasses.other, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode, isOther: true })));
|
|
4641
|
+
};
|
|
4642
|
+
SurveyQuestionDropdownBase.prototype.renderEditorButtons = function () {
|
|
4643
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_6__.SurveyActionBar, { model: this.dropdownListModel.editorButtons });
|
|
4646
4644
|
};
|
|
4647
4645
|
SurveyQuestionDropdownBase.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
4648
4646
|
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
@@ -4667,7 +4665,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
4667
4665
|
}
|
|
4668
4666
|
};
|
|
4669
4667
|
return SurveyQuestionDropdownBase;
|
|
4670
|
-
}(
|
|
4668
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_5__.SurveyQuestionUncontrolledElement));
|
|
4671
4669
|
|
|
4672
4670
|
|
|
4673
4671
|
|
|
@@ -4773,6 +4771,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4773
4771
|
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/reactquestion_factory.tsx");
|
|
4774
4772
|
/* harmony import */ var _reactquestion_dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_dropdown */ "./src/reactquestion_dropdown.tsx");
|
|
4775
4773
|
/* harmony import */ var _dropdown_item__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dropdown-item */ "./src/dropdown-item.tsx");
|
|
4774
|
+
/* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "./src/components/svg-icon/svg-icon.tsx");
|
|
4776
4775
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
4777
4776
|
var extendStatics = function (d, b) {
|
|
4778
4777
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -4793,6 +4792,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
4793
4792
|
|
|
4794
4793
|
|
|
4795
4794
|
|
|
4795
|
+
|
|
4796
4796
|
var SurveyQuestionDropdownSelect = /** @class */ (function (_super) {
|
|
4797
4797
|
__extends(SurveyQuestionDropdownSelect, _super);
|
|
4798
4798
|
function SurveyQuestionDropdownSelect(props) {
|
|
@@ -4817,6 +4817,12 @@ var SurveyQuestionDropdownSelect = /** @class */ (function (_super) {
|
|
|
4817
4817
|
selectElement,
|
|
4818
4818
|
this.createChevronButton()));
|
|
4819
4819
|
};
|
|
4820
|
+
SurveyQuestionDropdownSelect.prototype.createChevronButton = function () {
|
|
4821
|
+
if (!this.question.cssClasses.chevronButtonIconId)
|
|
4822
|
+
return null;
|
|
4823
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.chevronButton, "aria-hidden": "true", onPointerDown: this.chevronPointerDown },
|
|
4824
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_5__.SvgIcon, { className: this.question.cssClasses.chevronButtonSvg, iconName: this.question.cssClasses.chevronButtonIconId, size: "auto" })));
|
|
4825
|
+
};
|
|
4820
4826
|
return SurveyQuestionDropdownSelect;
|
|
4821
4827
|
}(_reactquestion_dropdown__WEBPACK_IMPORTED_MODULE_3__.SurveyQuestionDropdown));
|
|
4822
4828
|
|
|
@@ -8938,7 +8944,7 @@ var SurveyQuestionMatrixCell = /** @class */ (function (_super) {
|
|
|
8938
8944
|
mobileSpan));
|
|
8939
8945
|
};
|
|
8940
8946
|
SurveyQuestionMatrixCell.prototype.renderInput = function (inputId, isChecked) {
|
|
8941
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { id: inputId, type: "radio", className: this.cssClasses.itemValue, name: this.row.fullName, value: this.column.value, disabled: this.row.isDisabledAttr, readOnly: this.row.isReadOnlyAttr, checked: isChecked, onChange: this.handleOnChange, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.getCellAriaLabel(this.row
|
|
8947
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { id: inputId, type: "radio", className: this.cssClasses.itemValue, name: this.row.fullName, value: this.column.value, disabled: this.row.isDisabledAttr, readOnly: this.row.isReadOnlyAttr, checked: isChecked, onChange: this.handleOnChange, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.getCellAriaLabel(this.row, this.column), "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }));
|
|
8942
8948
|
};
|
|
8943
8949
|
return SurveyQuestionMatrixCell;
|
|
8944
8950
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElement));
|
|
@@ -9438,7 +9444,7 @@ var SurveyQuestionMatrixDropdownCell = /** @class */ (function (_super) {
|
|
|
9438
9444
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_radiogroup__WEBPACK_IMPORTED_MODULE_4__.SurveyQuestionRadioItem, { key: key, question: this.cell.question, cssClasses: this.cell.question.cssClasses, isDisplayMode: this.cell.question.isInputReadOnly, item: this.cell.item, index: this.cell.choiceIndex.toString(), isChecked: this.cell.question.value === this.cell.item.value, isDisabled: this.cell.question.isReadOnly || !this.cell.item.isEnabled, hideCaption: true, ariaLabel: this.getCellAriaLabel() }));
|
|
9439
9445
|
};
|
|
9440
9446
|
SurveyQuestionMatrixDropdownCell.prototype.getCellAriaLabel = function () {
|
|
9441
|
-
return this.question.parentQuestion.getCellAriaLabel(this.cell.row
|
|
9447
|
+
return this.question.parentQuestion.getCellAriaLabel(this.cell.row, this.cell.column);
|
|
9442
9448
|
};
|
|
9443
9449
|
return SurveyQuestionMatrixDropdownCell;
|
|
9444
9450
|
}(_reactquestion__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionAndErrorsCell));
|
|
@@ -10836,9 +10842,9 @@ var SurveyQuestionTagbox = /** @class */ (function (_super) {
|
|
|
10836
10842
|
var renderedItem = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_tagbox_item__WEBPACK_IMPORTED_MODULE_3__.SurveyQuestionTagboxItem, { key: key, question: this.question, item: item }));
|
|
10837
10843
|
return renderedItem;
|
|
10838
10844
|
};
|
|
10839
|
-
SurveyQuestionTagbox.prototype.renderInput = function (
|
|
10845
|
+
SurveyQuestionTagbox.prototype.renderInput = function () {
|
|
10840
10846
|
var _this = this;
|
|
10841
|
-
var
|
|
10847
|
+
var dropdownListModel = this.dropdownListModel;
|
|
10842
10848
|
var items = this.question.selectedChoices.map(function (choice, index) { return _this.renderItem("item" + index, choice); });
|
|
10843
10849
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
|
10844
10850
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -10846,8 +10852,8 @@ var SurveyQuestionTagbox = /** @class */ (function (_super) {
|
|
|
10846
10852
|
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: dropdownListModel.ariaQuestionRole, "aria-required": dropdownListModel.ariaQuestionRequired, "aria-invalid": dropdownListModel.ariaQuestionInvalid, "aria-errormessage": dropdownListModel.ariaQuestionErrorMessage, "aria-label": dropdownListModel.ariaQuestionLabel, "aria-labelledby": dropdownListModel.ariaQuestionLabelledby, "aria-describedby": dropdownListModel.ariaQuestionDescribedby, "aria-expanded": dropdownListModel.ariaQuestionExpanded, "aria-controls": dropdownListModel.ariaQuestionControls, "aria-activedescendant": dropdownListModel.ariaQuestionActivedescendant, ref: function (div) { return (_this.setControl(div)); } },
|
|
10847
10853
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.controlValue },
|
|
10848
10854
|
items,
|
|
10849
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_tagbox_filter__WEBPACK_IMPORTED_MODULE_4__.TagboxFilterString, { model:
|
|
10850
|
-
this.
|
|
10855
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_tagbox_filter__WEBPACK_IMPORTED_MODULE_4__.TagboxFilterString, { model: dropdownListModel, question: this.question })),
|
|
10856
|
+
this.renderEditorButtons()));
|
|
10851
10857
|
};
|
|
10852
10858
|
SurveyQuestionTagbox.prototype.renderElement = function () {
|
|
10853
10859
|
var cssClasses = this.question.cssClasses;
|
|
@@ -10857,14 +10863,6 @@ var SurveyQuestionTagbox = /** @class */ (function (_super) {
|
|
|
10857
10863
|
select,
|
|
10858
10864
|
comment));
|
|
10859
10865
|
};
|
|
10860
|
-
SurveyQuestionTagbox.prototype.renderReadOnlyElement = function () {
|
|
10861
|
-
if (this.question.locReadOnlyText) {
|
|
10862
|
-
return this.renderLocString(this.question.locReadOnlyText);
|
|
10863
|
-
}
|
|
10864
|
-
else {
|
|
10865
|
-
return null;
|
|
10866
|
-
}
|
|
10867
|
-
};
|
|
10868
10866
|
return SurveyQuestionTagbox;
|
|
10869
10867
|
}(_dropdown_base__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionDropdownBase));
|
|
10870
10868
|
|
|
@@ -12041,7 +12039,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12041
12039
|
|
|
12042
12040
|
|
|
12043
12041
|
|
|
12044
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.1.
|
|
12042
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.1.1"), "survey-react-ui");
|
|
12045
12043
|
|
|
12046
12044
|
})();
|
|
12047
12045
|
|