survey-react-ui 1.9.77 → 1.9.79

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.9.77",
3
+ "version": "1.9.79",
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.77",
24
+ "survey-core": "1.9.79",
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
  }
@@ -694,6 +694,7 @@ declare module "react/tagbox-filter" {
694
694
  onChange(e: any): void;
695
695
  keyhandler(e: any): void;
696
696
  onBlur(e: any): void;
697
+ onFocus(e: any): void;
697
698
  constructor(props: any);
698
699
  getStateElement(): DropdownMultiSelectListModel;
699
700
  render(): JSX.Element;
@@ -722,6 +723,8 @@ declare module "react/dropdown-base" {
722
723
  clear: (event: any) => void;
723
724
  keyhandler: (event: any) => void;
724
725
  blur: (event: any) => void;
726
+ focus: (event: any) => void;
727
+ protected getStateElement(): any;
725
728
  protected setValueCore(newValue: any): void;
726
729
  protected getValueCore(): any;
727
730
  protected renderSelect(cssClasses: any): JSX.Element;
@@ -1144,6 +1147,7 @@ declare module "react/components/list/list" {
1144
1147
  getStateElement(): ListModel<import("survey-core").Action>;
1145
1148
  componentDidMount(): void;
1146
1149
  renderElement(): JSX.Element;
1150
+ renderList(): JSX.Element | null;
1147
1151
  renderItems(): JSX.Element[] | null;
1148
1152
  searchElementContent(): JSX.Element | null;
1149
1153
  emptyContent(): JSX.Element;
@@ -1237,7 +1241,6 @@ declare module "react/image" {
1237
1241
  componentDidMount(): void;
1238
1242
  componentWillUnmount(): void;
1239
1243
  protected get question(): QuestionImageModel;
1240
- protected canRender(): boolean;
1241
1244
  protected renderElement(): JSX.Element;
1242
1245
  }
1243
1246
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.77
2
+ * surveyjs - Survey JavaScript library v1.9.79
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
  */
@@ -1183,7 +1183,7 @@ __webpack_require__.r(__webpack_exports__);
1183
1183
 
1184
1184
 
1185
1185
 
1186
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.77", "survey-react-ui");
1186
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.79", "survey-react-ui");
1187
1187
 
1188
1188
 
1189
1189
  /***/ }),
@@ -2133,14 +2133,19 @@ var List = /** @class */ (function (_super) {
2133
2133
  }
2134
2134
  };
2135
2135
  List.prototype.renderElement = function () {
2136
- var items = this.renderItems();
2137
- var ulStyle = { display: this.model.isEmpty ? "none" : null };
2138
2136
  return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.cssClasses.root, ref: this.listContainerRef },
2139
2137
  this.searchElementContent(),
2140
2138
  this.emptyContent(),
2141
- react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", { className: this.model.cssClasses.itemsContainer, style: ulStyle, role: "listbox", onMouseDown: function (e) {
2142
- e.preventDefault();
2143
- }, onKeyDown: this.handleKeydown, onMouseMove: this.handleMouseMove }, items)));
2139
+ this.renderList()));
2140
+ };
2141
+ List.prototype.renderList = function () {
2142
+ if (!this.model.renderElements)
2143
+ return null;
2144
+ var items = this.renderItems();
2145
+ var ulStyle = { display: this.model.isEmpty ? "none" : null };
2146
+ return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", { className: this.model.cssClasses.itemsContainer, style: ulStyle, role: "listbox", onMouseDown: function (e) {
2147
+ e.preventDefault();
2148
+ }, onKeyDown: this.handleKeydown, onMouseMove: this.handleMouseMove }, items));
2144
2149
  };
2145
2150
  List.prototype.renderItems = function () {
2146
2151
  var _this = this;
@@ -2536,7 +2541,9 @@ var NotifierComponent = /** @class */ (function (_super) {
2536
2541
  return this.notifier;
2537
2542
  };
2538
2543
  NotifierComponent.prototype.renderElement = function () {
2539
- var style = { display: this.notifier.active ? "" : "none" };
2544
+ if (!this.notifier.isDisplayed)
2545
+ return null;
2546
+ var style = { visibility: this.notifier.active ? "visible" : "hidden" };
2540
2547
  return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.notifier.css, style: style },
2541
2548
  react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, this.notifier.message),
2542
2549
  react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_3__["SurveyActionBar"], { model: this.notifier.actionBar })));
@@ -3156,8 +3163,8 @@ var RatingItemStar = /** @class */ (function (_super) {
3156
3163
  var _this = this;
3157
3164
  return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); } },
3158
3165
  react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.name, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.isDisplayMode, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy }),
3159
- react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { className: "sv-star", size: 48, iconName: "icon-rating-star", title: this.item.text }),
3160
- react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { className: "sv-star-2", size: 48, iconName: "icon-rating-star-2", title: this.item.text })));
3166
+ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { className: "sv-star", size: "auto", iconName: "icon-rating-star", title: this.item.text }),
3167
+ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { className: "sv-star-2", size: "auto", iconName: "icon-rating-star-2", title: this.item.text })));
3161
3168
  };
3162
3169
  return RatingItemStar;
3163
3170
  }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__["SurveyElementBase"]));
@@ -3977,8 +3984,15 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
3977
3984
  (_a = _this.question.dropdownListModel) === null || _a === void 0 ? void 0 : _a.onBlur(event);
3978
3985
  _this.updateInputDomElement();
3979
3986
  };
3987
+ _this.focus = function (event) {
3988
+ var _a;
3989
+ (_a = _this.question.dropdownListModel) === null || _a === void 0 ? void 0 : _a.onFocus(event);
3990
+ };
3980
3991
  return _this;
3981
3992
  }
3993
+ SurveyQuestionDropdownBase.prototype.getStateElement = function () {
3994
+ return this.question["dropdownListModel"];
3995
+ };
3982
3996
  SurveyQuestionDropdownBase.prototype.setValueCore = function (newValue) {
3983
3997
  this.questionBase.renderedValue = newValue;
3984
3998
  };
@@ -4020,16 +4034,23 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
4020
4034
  var valueElement = this.renderValueElement(dropdownListModel);
4021
4035
  var onInputChange = function (e) {
4022
4036
  if (e.target === document.activeElement) {
4023
- dropdownListModel.filterString = e.target.value;
4037
+ dropdownListModel.inputStringRendered = e.target.value;
4024
4038
  }
4025
4039
  };
4026
4040
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.inputReadOnly ? undefined : 0, onClick: this.click,
4027
4041
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4028
4042
  // @ts-ignore
4029
4043
  disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy },
4044
+ dropdownListModel.showHintPrefix ?
4045
+ (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.hintPrefix },
4046
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, dropdownListModel.hintStringPrefix))) : null,
4030
4047
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.controlValue },
4048
+ dropdownListModel.showHintString ?
4049
+ (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.hintSuffix },
4050
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, dropdownListModel.inputStringRendered),
4051
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, dropdownListModel.hintStringSuffix))) : null,
4031
4052
  valueElement,
4032
- 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-label": this.question.placeholder, placeholder: this.question.readOnlyText, 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 })),
4053
+ 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-label": this.question.placeholder, 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 })),
4033
4054
  this.createClearButton()));
4034
4055
  };
4035
4056
  SurveyQuestionDropdownBase.prototype.createClearButton = function () {
@@ -4054,9 +4075,9 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
4054
4075
  SurveyQuestionDropdownBase.prototype.updateInputDomElement = function () {
4055
4076
  if (!!this.inputElement) {
4056
4077
  var control = this.inputElement;
4057
- var newValue = this.question.dropdownListModel.filterString;
4078
+ var newValue = this.question.dropdownListModel.inputStringRendered;
4058
4079
  if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value)) {
4059
- control.value = this.question.dropdownListModel.filterString;
4080
+ control.value = this.question.dropdownListModel.inputStringRendered;
4060
4081
  }
4061
4082
  }
4062
4083
  };
@@ -4499,6 +4520,7 @@ __webpack_require__.r(__webpack_exports__);
4499
4520
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
4500
4521
  /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
4501
4522
  /* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/react/reactquestion_factory.tsx");
4523
+ /* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
4502
4524
  var __extends = (undefined && undefined.__extends) || (function () {
4503
4525
  var extendStatics = function (d, b) {
4504
4526
  extendStatics = Object.setPrototypeOf ||
@@ -4517,6 +4539,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
4517
4539
 
4518
4540
 
4519
4541
 
4542
+
4520
4543
  var SurveyQuestionImage = /** @class */ (function (_super) {
4521
4544
  __extends(SurveyQuestionImage, _super);
4522
4545
  function SurveyQuestionImage(props) {
@@ -4540,25 +4563,30 @@ var SurveyQuestionImage = /** @class */ (function (_super) {
4540
4563
  enumerable: false,
4541
4564
  configurable: true
4542
4565
  });
4543
- SurveyQuestionImage.prototype.canRender = function () {
4544
- return _super.prototype.canRender.call(this) && !!this.question.imageLink;
4545
- };
4546
4566
  SurveyQuestionImage.prototype.renderElement = function () {
4567
+ var _this = this;
4547
4568
  var cssClasses = this.question.getImageCss();
4548
4569
  var style = { objectFit: this.question.imageFit };
4549
4570
  var control = null;
4550
4571
  if (this.question.renderedMode === "image") {
4551
4572
  control = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { className: cssClasses, src: this.question.locImageLink.renderedHtml, alt: this.question.altText || this.question.title, width: this.question.renderedWidth, height: this.question.renderedHeight,
4552
4573
  //alt={item.text || item.value}
4553
- style: style }));
4574
+ style: style, onLoad: function (event) { _this.question.onLoadHandler(); }, onError: function (event) { _this.question.onErrorHandler(); } }));
4554
4575
  }
4555
4576
  if (this.question.renderedMode === "video") {
4556
- control = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("video", { controls: true, className: cssClasses, src: this.question.locImageLink.renderedHtml, width: this.question.renderedWidth, height: this.question.renderedHeight, style: style }));
4577
+ control = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("video", { controls: true, className: cssClasses, src: this.question.locImageLink.renderedHtml, width: this.question.renderedWidth, height: this.question.renderedHeight, style: style, onLoadedMetadata: function (event) { _this.question.onLoadHandler(); }, onError: function (event) { _this.question.onErrorHandler(); } }));
4557
4578
  }
4558
4579
  if (this.question.renderedMode === "youtube") {
4559
4580
  control = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("iframe", { className: cssClasses, src: this.question.locImageLink.renderedHtml, width: this.question.renderedWidth, height: this.question.renderedHeight, style: style }));
4560
4581
  }
4561
- return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.root }, control);
4582
+ var noImage = null;
4583
+ if (!this.question.imageLink || this.question.contentNotLoaded) {
4584
+ noImage = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.noImage },
4585
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { iconName: this.question.cssClasses.noImageSvgIconId, size: 48 })));
4586
+ }
4587
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.root },
4588
+ control,
4589
+ noImage);
4562
4590
  };
4563
4591
  return SurveyQuestionImage;
4564
4592
  }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyQuestionElementBase"]));
@@ -4741,20 +4769,19 @@ var SurveyQuestionImagePickerItem = /** @class */ (function (_super) {
4741
4769
  var style = { objectFit: this.question.imageFit };
4742
4770
  var control = null;
4743
4771
  if (item.locImageLink.renderedHtml && this.question.contentMode === "image") {
4744
- control = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { className: cssClasses.image, src: item.locImageLink.renderedHtml, width: this.question.renderedImageWidth, height: this.question.renderedImageHeight, alt: item.locText.renderedHtml, style: style, onLoad: function (event) { _this.question["onContentLoaded"](item, event.nativeEvent); } }));
4772
+ control = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { className: cssClasses.image, src: item.locImageLink.renderedHtml, width: this.question.renderedImageWidth, height: this.question.renderedImageHeight, alt: item.locText.renderedHtml, style: style, onLoad: function (event) { _this.question["onContentLoaded"](item, event.nativeEvent); }, onError: function (event) { item.onErrorHandler(item, event.nativeEvent); } }));
4745
4773
  }
4746
4774
  if (item.locImageLink.renderedHtml && this.question.contentMode === "video") {
4747
- control = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("video", { controls: true, className: cssClasses.image, src: item.locImageLink.renderedHtml, width: this.question.renderedImageWidth, height: this.question.renderedImageHeight, style: style, onLoadedMetadata: function (event) { _this.question["onContentLoaded"](item, event.nativeEvent); } }));
4775
+ control = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("video", { controls: true, className: cssClasses.image, src: item.locImageLink.renderedHtml, width: this.question.renderedImageWidth, height: this.question.renderedImageHeight, style: style, onLoadedMetadata: function (event) { _this.question["onContentLoaded"](item, event.nativeEvent); }, onError: function (event) { item.onErrorHandler(item, event.nativeEvent); } }));
4748
4776
  }
4749
- if (!item.locImageLink.renderedHtml) {
4777
+ if (!item.locImageLink.renderedHtml || item.contentNotLoaded) {
4750
4778
  var style_1 = {
4751
4779
  width: this.question.renderedImageWidth,
4752
4780
  height: this.question.renderedImageHeight,
4753
4781
  objectFit: this.question.imageFit
4754
4782
  };
4755
4783
  control = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.itemNoImage, style: style_1 }, cssClasses.itemNoImageSvgIcon ?
4756
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: cssClasses.itemNoImageSvgIcon },
4757
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("use", { xlinkHref: cssClasses.itemNoImageSvgIconId })) :
4784
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_4__["SvgIcon"], { className: cssClasses.itemNoImageSvgIcon, iconName: this.question.cssClasses.itemNoImageSvgIconId, size: 48 }) :
4758
4785
  null));
4759
4786
  }
4760
4787
  var renderedItem = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: itemClass },
@@ -6705,6 +6732,8 @@ var SurveyQuestionCheckboxItem = /** @class */ (function (_super) {
6705
6732
  SurveyQuestionCheckboxItem.prototype.shouldComponentUpdate = function (nextProps, nextState) {
6706
6733
  if (!_super.prototype.shouldComponentUpdate.call(this, nextProps, nextState))
6707
6734
  return false;
6735
+ if (!this.question)
6736
+ return false;
6708
6737
  return (!this.question.customWidget ||
6709
6738
  !!this.question.customWidgetData.isNeedRender ||
6710
6739
  !!this.question.customWidget.widgetJson.isDefaultRender ||
@@ -9082,6 +9111,8 @@ var SurveyQuestionRadioItem = /** @class */ (function (_super) {
9082
9111
  SurveyQuestionRadioItem.prototype.shouldComponentUpdate = function (nextProps, nextState) {
9083
9112
  if (!_super.prototype.shouldComponentUpdate.call(this, nextProps, nextState))
9084
9113
  return false;
9114
+ if (!this.question)
9115
+ return false;
9085
9116
  return (!this.question.customWidget ||
9086
9117
  !!this.question.customWidgetData.isNeedRender ||
9087
9118
  !!this.question.customWidget.widgetJson.isDefaultRender ||
@@ -9519,7 +9550,7 @@ var SurveyQuestionText = /** @class */ (function (_super) {
9519
9550
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
9520
9551
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: inputClass, type: this.question.inputType,
9521
9552
  //ref={this.controlRef}
9522
- ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: this.question.onBlur, onChange: this.question.onChange, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy }),
9553
+ ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: this.question.onBlur, onFocus: this.question.onFocus, onChange: this.question.onChange, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy }),
9523
9554
  counter));
9524
9555
  };
9525
9556
  SurveyQuestionText.prototype.renderElement = function () {
@@ -10198,15 +10229,15 @@ var TagboxFilterString = /** @class */ (function (_super) {
10198
10229
  TagboxFilterString.prototype.updateDomElement = function () {
10199
10230
  if (!!this.inputElement) {
10200
10231
  var control = this.inputElement;
10201
- var newValue = this.model.filterString;
10232
+ var newValue = this.model.inputStringRendered;
10202
10233
  if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value)) {
10203
- control.value = this.model.filterString;
10234
+ control.value = this.model.inputStringRendered;
10204
10235
  }
10205
10236
  }
10206
10237
  };
10207
10238
  TagboxFilterString.prototype.onChange = function (e) {
10208
10239
  if (e.target === document.activeElement) {
10209
- this.model.filterString = e.target.value;
10240
+ this.model.inputStringRendered = e.target.value;
10210
10241
  }
10211
10242
  };
10212
10243
  TagboxFilterString.prototype.keyhandler = function (e) {
@@ -10215,12 +10246,15 @@ var TagboxFilterString = /** @class */ (function (_super) {
10215
10246
  TagboxFilterString.prototype.onBlur = function (e) {
10216
10247
  this.model.onBlur(e);
10217
10248
  };
10249
+ TagboxFilterString.prototype.onFocus = function (e) {
10250
+ this.model.onFocus(e);
10251
+ };
10218
10252
  TagboxFilterString.prototype.getStateElement = function () {
10219
10253
  return this.model;
10220
10254
  };
10221
10255
  TagboxFilterString.prototype.render = function () {
10222
10256
  var _this = this;
10223
- return (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.filterString ? 1 : undefined, role: this.model.filterStringEnabled ? this.question.ariaRole : undefined, "aria-label": this.question.placeholder, placeholder: this.model.filterStringPlaceholder, onKeyDown: function (e) { _this.keyhandler(e); }, onChange: function (e) { _this.onChange(e); }, onBlur: function (e) { _this.onBlur(e); } }));
10257
+ return (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-label": this.question.placeholder, 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); } }));
10224
10258
  };
10225
10259
  return TagboxFilterString;
10226
10260
  }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__["SurveyElementBase"]));