survey-js-ui 3.1.2 → 3.2.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v3.1.2
2
+ * surveyjs - Survey JavaScript library v3.2.1
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1283,6 +1283,10 @@ function requireIconsV2 () {
1283
1283
 
1284
1284
  var ranking_arrows = "<svg viewBox=\"0 0 10 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10 5L5 0L0 5H4V9H6V5H10Z\"/><path d=\"M6 19V15H4V19H0L5 24L10 19H6Z\"/></svg>";
1285
1285
 
1286
+ var rankingdot_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z\"/></svg>";
1287
+
1288
+ var rankingplus_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8 2.25C8.41 2.25 8.75 2.59 8.75 3V7.25H13C13.41 7.25 13.75 7.59 13.75 8C13.75 8.41 13.41 8.75 13 8.75H8.75V13C8.75 13.41 8.41 13.75 8 13.75C7.59 13.75 7.25 13.41 7.25 13V8.75H3C2.59 8.75 2.25 8.41 2.25 8C2.25 7.59 2.59 7.25 3 7.25H7.25V3C7.25 2.59 7.59 2.25 8 2.25Z\"/></svg>";
1289
+
1286
1290
  var rankingundefined_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z\"/></svg>";
1287
1291
 
1288
1292
  var rating_star_2 = "<svg viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z\" fill=\"none\" stroke-width=\"2\"/><path d=\"M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z\" stroke-width=\"1.70746\"/></svg>";
@@ -1366,6 +1370,8 @@ function requireIconsV2 () {
1366
1370
  "noimage-48x48": noimage_48x48,
1367
1371
  "radio-16x16": radio_16x16,
1368
1372
  "ranking-arrows": ranking_arrows,
1373
+ "rankingdot-16x16": rankingdot_16x16,
1374
+ "rankingplus-16x16": rankingplus_16x16,
1369
1375
  "rankingundefined-16x16": rankingundefined_16x16,
1370
1376
  "rating-star-2": rating_star_2,
1371
1377
  "rating-star-small-2": rating_star_small_2,
@@ -1483,7 +1489,7 @@ class Survey extends SurveyElementBase {
1483
1489
  this.survey.renderCallback = undefined;
1484
1490
  this.survey.onPartialSend.clear();
1485
1491
  this.survey.stopTimer();
1486
- this.survey.destroyResizeObserver();
1492
+ this.survey.beforeDestroySurveyElement();
1487
1493
  }
1488
1494
  }
1489
1495
  componentWillUnmount() {
@@ -2701,7 +2707,7 @@ class SurveyPanel extends SurveyPanelBase {
2701
2707
  return _$1(SurveyActionBar, { model: footerToolbar });
2702
2708
  }
2703
2709
  getIsVisible() {
2704
- return this.panelBase.getIsContentVisible();
2710
+ return this.panelBase.renderedIsContentVisible;
2705
2711
  }
2706
2712
  }
2707
2713
  ReactElementFactory.Instance.registerElement("panel", (props) => {
@@ -3160,7 +3166,7 @@ class SurveyQuestionRankingItem extends ReactSurveyElement {
3160
3166
  }
3161
3167
  renderEmptyIcon() {
3162
3168
  return (_$1("svg", null,
3163
- _$1("use", { xlinkHref: this.question.dashSvgIcon })));
3169
+ _$1("use", { xlinkHref: this.question.emptyIndexSvgIcon })));
3164
3170
  }
3165
3171
  renderElement() {
3166
3172
  let itemContent = ReactElementFactory.Instance.createElement(this.question.itemComponent, { item: this.item, cssClasses: this.cssClasses });
@@ -3281,8 +3287,12 @@ ReactElementFactory.Instance.registerElement("sv-rating-dropdown-item", (props)
3281
3287
  });
3282
3288
 
3283
3289
  class TagboxFilterString extends SurveyElementBase {
3290
+ // Creates the model: used by the event handlers only.
3284
3291
  get model() {
3285
- return this.props.model;
3292
+ return this.props.model || this.question.dropdownListModel;
3293
+ }
3294
+ get renderState() {
3295
+ return this.props.model || this.question.dropdownRenderState;
3286
3296
  }
3287
3297
  get question() {
3288
3298
  return this.props.question;
@@ -3298,9 +3308,9 @@ class TagboxFilterString extends SurveyElementBase {
3298
3308
  updateDomElement() {
3299
3309
  if (!!this.inputElement) {
3300
3310
  const control = this.inputElement;
3301
- const newValue = this.model.inputStringRendered;
3311
+ const newValue = this.renderState.inputStringRendered;
3302
3312
  if (!Helpers.isTwoValueEquals(newValue, control.value, false, true, false)) {
3303
- control.value = this.model.inputStringRendered;
3313
+ control.value = this.renderState.inputStringRendered;
3304
3314
  }
3305
3315
  }
3306
3316
  }
@@ -3324,19 +3334,19 @@ class TagboxFilterString extends SurveyElementBase {
3324
3334
  super(props);
3325
3335
  }
3326
3336
  getStateElement() {
3327
- return this.model;
3337
+ return this.props.model || this.question.dropdownListModelValue;
3328
3338
  }
3329
3339
  render() {
3330
3340
  return (_$1("div", { className: this.question.cssClasses.hint },
3331
- this.model.showHintPrefix ?
3341
+ this.renderState.showHintPrefix ?
3332
3342
  (_$1("div", { className: this.question.cssClasses.hintPrefix },
3333
- _$1("span", null, this.model.hintStringPrefix))) : null,
3343
+ _$1("span", null, this.renderState.hintStringPrefix))) : null,
3334
3344
  _$1("div", { className: this.question.cssClasses.hintSuffixWrapper },
3335
- this.model.showHintString ?
3345
+ this.renderState.showHintString ?
3336
3346
  (_$1("div", { className: this.question.cssClasses.hintSuffix },
3337
- _$1("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, this.model.inputStringRendered),
3338
- _$1("span", null, this.model.hintStringSuffix))) : null,
3339
- _$1("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), inputMode: this.model.inputMode, ref: (element) => (this.inputElement = element), className: this.question.cssClasses.filterStringInput, disabled: this.question.isInputReadOnly, readOnly: this.model.filterReadOnly ? true : undefined, size: !this.model.inputStringRendered ? 1 : undefined, role: this.model.ariaInputRole, "aria-required": this.model.ariaInputRequired, "aria-invalid": this.model.ariaInputInvalid, "aria-errormessage": this.model.ariaInputErrorMessage, "aria-expanded": this.model.ariaInputExpanded, "aria-label": this.model.ariaInputLabel, "aria-labelledby": this.model.ariaInputLabelledby, "aria-describedby": this.model.ariaInputDescribedby, "aria-controls": this.model.ariaInputControls, "aria-activedescendant": this.model.ariaInputActivedescendant, placeholder: this.model.filterStringPlaceholder, onKeyDown: (e) => { this.keyhandler(e); }, onChange: (e) => { this.onChange(e); }, onBlur: (e) => { this.onBlur(e); }, onFocus: (e) => { this.onFocus(e); } }))));
3347
+ _$1("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, this.renderState.inputStringRendered),
3348
+ _$1("span", null, this.renderState.hintStringSuffix))) : null,
3349
+ _$1("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), inputMode: this.renderState.inputMode, ref: (element) => (this.inputElement = element), className: this.question.cssClasses.filterStringInput, disabled: this.question.isInputReadOnly, readOnly: this.renderState.filterReadOnly ? true : undefined, size: !this.renderState.inputStringRendered ? 1 : undefined, role: this.renderState.ariaInputRole, "aria-required": this.renderState.ariaInputRequired, "aria-invalid": this.renderState.ariaInputInvalid, "aria-errormessage": this.renderState.ariaInputErrorMessage, "aria-expanded": this.renderState.ariaInputExpanded, "aria-label": this.renderState.ariaInputLabel, "aria-labelledby": this.renderState.ariaInputLabelledby, "aria-describedby": this.renderState.ariaInputDescribedby, "aria-controls": this.renderState.ariaInputControls, "aria-activedescendant": this.renderState.ariaInputActivedescendant, placeholder: this.renderState.filterStringPlaceholder, onKeyDown: (e) => { this.keyhandler(e); }, onChange: (e) => { this.onChange(e); }, onBlur: (e) => { this.onBlur(e); }, onFocus: (e) => { this.onFocus(e); } }))));
3340
3350
  }
3341
3351
  }
3342
3352
  ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter", (props) => {
@@ -3415,8 +3425,18 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
3415
3425
  get dropdownListModel() {
3416
3426
  return this.question["dropdownListModel"];
3417
3427
  }
3418
- getStateElement() {
3419
- return this.question["dropdownListModel"];
3428
+ // Everything the closed control renders. It does not create DropdownListModel; a question without it (a custom type)
3429
+ // falls back to the model.
3430
+ get renderState() {
3431
+ return this.question["dropdownRenderState"] || this.question["dropdownListModel"];
3432
+ }
3433
+ // The model is created on the first interaction or when the popup is rendered; componentDidUpdate subscribes to it then.
3434
+ getStateElements() {
3435
+ const res = [this.question];
3436
+ const model = this.question["dropdownListModelValue"];
3437
+ if (!!model)
3438
+ res.push(model);
3439
+ return res;
3420
3440
  }
3421
3441
  setValueCore(newValue) {
3422
3442
  this.questionBase.renderedValue = newValue;
@@ -3435,25 +3455,24 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
3435
3455
  }
3436
3456
  renderSelect(cssClasses) {
3437
3457
  let selectElement = null;
3438
- const dropdownListModel = this.dropdownListModel;
3458
+ const renderState = this.renderState;
3439
3459
  if (this.question.isReadOnly) {
3440
3460
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3441
3461
  // @ts-ignore
3442
- selectElement = _$1("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: (div) => (this.setControl(div)) },
3462
+ selectElement = _$1("div", { id: this.question.inputId, role: renderState === null || renderState === void 0 ? void 0 : renderState.ariaQuestionRole, "aria-label": renderState === null || renderState === void 0 ? void 0 : renderState.ariaQuestionLabel, "aria-labelledby": renderState === null || renderState === void 0 ? void 0 : renderState.ariaQuestionLabelledby, "aria-describedby": renderState === null || renderState === void 0 ? void 0 : renderState.ariaQuestionDescribedby, "aria-expanded": "false", "aria-readonly": "true", "aria-disabled": "true", tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: (div) => (this.setControl(div)) },
3443
3463
  this.renderReadOnlyElement(),
3444
3464
  this.renderEditorButtons());
3445
3465
  }
3446
3466
  else {
3447
3467
  selectElement = _$1(k$3, null,
3448
3468
  this.renderInput(),
3449
- this.question.isInputReadOnly ? null : _$1(Popup, { model: dropdownListModel.popupModel }));
3469
+ this.question.isInputReadOnly ? null : _$1(Popup, { model: this.dropdownListModel.popupModel }));
3450
3470
  }
3451
3471
  return (_$1("div", { className: cssClasses.selectWrapper, onClick: this.click }, selectElement));
3452
3472
  }
3453
3473
  renderValueElement() {
3454
3474
  if (this.question.showInputFieldComponent) {
3455
- const listModel = this.dropdownListModel;
3456
- const actionItem = !!listModel ? listModel.getSelectedAction() : this.question.selectedItem;
3475
+ const actionItem = this.renderState.getSelectedAction();
3457
3476
  return ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName, { item: actionItem, question: this.question });
3458
3477
  }
3459
3478
  else if (this.question.showSelectedItemLocText) {
@@ -3462,36 +3481,36 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
3462
3481
  return null;
3463
3482
  }
3464
3483
  renderInput() {
3465
- const dropdownListModel = this.dropdownListModel;
3484
+ const renderState = this.renderState;
3466
3485
  let valueElement = this.renderValueElement();
3467
- return (_$1("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
3486
+ return (_$1("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: renderState.noTabIndex ? undefined : 0,
3468
3487
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3469
3488
  // @ts-ignore
3470
- disabled: this.question.isDisabledAttr, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, onFocus: this.focus, role: dropdownListModel.ariaQuestionRole, "aria-required": dropdownListModel.ariaQuestionRequired, "aria-invalid": dropdownListModel.ariaQuestionInvalid, "aria-errormessage": dropdownListModel.ariaQuestionErrorMessage, "aria-expanded": dropdownListModel.ariaQuestionExpanded, "aria-label": dropdownListModel.ariaQuestionLabel, "aria-labelledby": dropdownListModel.ariaQuestionLabelledby, "aria-describedby": dropdownListModel.ariaQuestionDescribedby, "aria-controls": dropdownListModel.ariaQuestionControls, "aria-activedescendant": dropdownListModel.ariaQuestionActivedescendant, ref: (div) => (this.setControl(div)) },
3489
+ disabled: this.question.isDisabledAttr, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, onFocus: this.focus, role: renderState.ariaQuestionRole, "aria-required": renderState.ariaQuestionRequired, "aria-invalid": renderState.ariaQuestionInvalid, "aria-errormessage": renderState.ariaQuestionErrorMessage, "aria-expanded": renderState.ariaQuestionExpanded, "aria-label": renderState.ariaQuestionLabel, "aria-labelledby": renderState.ariaQuestionLabelledby, "aria-describedby": renderState.ariaQuestionDescribedby, "aria-controls": renderState.ariaQuestionControls, "aria-activedescendant": renderState.ariaQuestionActivedescendant, ref: (div) => (this.setControl(div)) },
3471
3490
  _$1("div", { className: this.question.cssClasses.controlValue },
3472
- dropdownListModel.showHintPrefix ?
3491
+ renderState.showHintPrefix ?
3473
3492
  (_$1("div", { className: this.question.cssClasses.hintPrefix },
3474
- _$1("span", null, dropdownListModel.hintStringPrefix))) : null,
3493
+ _$1("span", null, renderState.hintStringPrefix))) : null,
3475
3494
  _$1("div", { className: this.question.cssClasses.inputPrefixWrapper },
3476
- dropdownListModel.showHintString ?
3495
+ renderState.showHintString ?
3477
3496
  (_$1("div", { className: this.question.cssClasses.hintSuffix },
3478
- _$1("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, dropdownListModel.inputStringRendered),
3479
- _$1("span", null, dropdownListModel.hintStringSuffix))) : null,
3497
+ _$1("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, renderState.inputStringRendered),
3498
+ _$1("span", null, renderState.hintStringSuffix))) : null,
3480
3499
  valueElement,
3481
- dropdownListModel.needRenderInput ? this.renderFilterInput() : null)),
3500
+ renderState.needRenderInput ? this.renderFilterInput() : null)),
3482
3501
  this.renderEditorButtons()));
3483
3502
  }
3484
3503
  renderFilterInput() {
3485
3504
  settings.environment;
3486
- const dropdownListModel = this.dropdownListModel;
3505
+ const renderState = this.renderState;
3487
3506
  const onInputChange = (e) => {
3488
3507
  var _a;
3489
3508
  const activeElement = (_a = e.target.getRootNode()) === null || _a === void 0 ? void 0 : _a.activeElement;
3490
3509
  if (e.target === activeElement) {
3491
- dropdownListModel.inputStringRendered = e.target.value;
3510
+ this.dropdownListModel.inputStringRendered = e.target.value;
3492
3511
  }
3493
3512
  };
3494
- return _$1("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: (element) => (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: (e) => { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus });
3513
+ return _$1("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: (element) => (this.inputElement = element), className: this.question.cssClasses.filterStringInput, role: renderState.ariaInputRole, "aria-required": renderState.ariaInputRequired, "aria-invalid": renderState.ariaInputInvalid, "aria-errormessage": renderState.ariaInputErrorMessage, "aria-expanded": renderState.ariaInputExpanded, "aria-label": renderState.ariaInputLabel, "aria-labelledby": renderState.ariaInputLabelledby, "aria-describedby": renderState.ariaInputDescribedby, "aria-controls": renderState.ariaInputControls, "aria-activedescendant": renderState.ariaInputActivedescendant, placeholder: renderState.placeholderRendered, readOnly: renderState.filterReadOnly ? true : undefined, tabIndex: renderState.noTabIndex ? undefined : -1, disabled: this.question.isDisabledAttr, inputMode: renderState.inputMode, onChange: (e) => { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus });
3495
3514
  }
3496
3515
  renderOther(item, cssClasses) {
3497
3516
  if (!item || !item.isCommentShowing)
@@ -3500,7 +3519,7 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
3500
3519
  _$1(SurveyQuestionCommentValueItem, { question: this.question, item: item, cssClasses: this.question.cssClasses })));
3501
3520
  }
3502
3521
  renderEditorButtons() {
3503
- return _$1(SurveyActionBar, { model: this.dropdownListModel.editorButtons });
3522
+ return _$1(SurveyActionBar, { model: this.renderState.editorButtons });
3504
3523
  }
3505
3524
  componentDidUpdate(prevProps, prevState) {
3506
3525
  super.componentDidUpdate(prevProps, prevState);
@@ -3512,15 +3531,16 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
3512
3531
  }
3513
3532
  componentWillUnmount() {
3514
3533
  super.componentWillUnmount();
3515
- if (this.question.dropdownListModel)
3516
- this.question.dropdownListModel.focused = false;
3534
+ const model = this.question["dropdownListModelValue"];
3535
+ if (model)
3536
+ model.focused = false;
3517
3537
  }
3518
3538
  updateInputDomElement() {
3519
3539
  if (!!this.inputElement) {
3520
3540
  const control = this.inputElement;
3521
- const newValue = this.question.dropdownListModel.inputStringRendered;
3541
+ const newValue = this.renderState.inputStringRendered;
3522
3542
  if (!Helpers.isTwoValueEquals(newValue, control.value, false, true, false)) {
3523
- control.value = this.question.dropdownListModel.inputStringRendered;
3543
+ control.value = this.renderState.inputStringRendered;
3524
3544
  }
3525
3545
  }
3526
3546
  }
@@ -3581,15 +3601,15 @@ class SurveyQuestionTagbox extends SurveyQuestionDropdownBase {
3581
3601
  return renderedItem;
3582
3602
  }
3583
3603
  renderInput() {
3584
- const dropdownListModel = this.dropdownListModel;
3604
+ const renderState = this.renderState;
3585
3605
  const items = this.question.selectedChoices.map((choice, index) => { return this.renderItem("item" + index, choice); });
3586
- return (_$1("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
3606
+ return (_$1("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: renderState.noTabIndex ? undefined : 0,
3587
3607
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3588
3608
  // @ts-ignore
3589
- 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: (div) => (this.setControl(div)) },
3609
+ disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: renderState.ariaQuestionRole, "aria-required": renderState.ariaQuestionRequired, "aria-invalid": renderState.ariaQuestionInvalid, "aria-errormessage": renderState.ariaQuestionErrorMessage, "aria-label": renderState.ariaQuestionLabel, "aria-labelledby": renderState.ariaQuestionLabelledby, "aria-describedby": renderState.ariaQuestionDescribedby, "aria-expanded": renderState.ariaQuestionExpanded, "aria-controls": renderState.ariaQuestionControls, "aria-activedescendant": renderState.ariaQuestionActivedescendant, ref: (div) => (this.setControl(div)) },
3590
3610
  _$1("div", { className: this.question.cssClasses.controlValue },
3591
3611
  items,
3592
- dropdownListModel.needRenderInput ? _$1(TagboxFilterString, { model: dropdownListModel, question: this.question }) : null),
3612
+ renderState.needRenderInput ? _$1(TagboxFilterString, { question: this.question }) : null),
3593
3613
  this.renderEditorButtons()));
3594
3614
  }
3595
3615
  renderElement() {
@@ -6264,7 +6284,7 @@ SurveyModel.prototype["render"] = function (element = null) {
6264
6284
  }
6265
6285
  };
6266
6286
  const preact = React;
6267
- checkLibraryVersion(`${"3.1.2"}`, "survey-js-ui");
6287
+ checkLibraryVersion(`${"3.2.1"}`, "survey-js-ui");
6268
6288
 
6269
6289
  export { CharacterCounterComponent, O as Children, x$3 as Component, ComponentsContainer, k$3 as Fragment, Header, HeaderCell, HeaderMobile, List, ListItemContent, ListItemGroup, LoadingIndicatorComponent, LogoImage, MatrixRow, NotifierComponent, Popup, PopupModal, PopupSurvey, N as PureComponent, QuestionErrorComponent, RatingDropdownItem, RatingItem, RatingItemSmiley, RatingItemStar, ReactElementFactory, ReactQuestionFactory, ReactSurveyElement, ReactSurveyElementsWrapper, Scroll, Skeleton, SliderLabelItem, Cn as StrictMode, Survey, SurveyActionBar, SurveyActionBarItemDropdown, SurveyActionBarSeparator, SurveyElementBase, SurveyElementErrors, SurveyFileChooseButton, SurveyFileItem, SurveyFilePreview, SurveyFlowPanel, SurveyHeader, SurveyLocStringEditor, SurveyLocStringViewer, SurveyNavigationBase, SurveyPage, SurveyPanel, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestion, SurveyQuestionAndErrorsCell, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionBooleanSwitch, SurveyQuestionButtonGroup, SurveyQuestionButtonGroupDropdown, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionComment, SurveyQuestionCommentItem, SurveyQuestionComposite, SurveyQuestionCustom, SurveyQuestionDropdown, SurveyQuestionDropdownBase, SurveyQuestionDropdownSelect, SurveyQuestionElementBase, SurveyQuestionEmpty, SurveyQuestionExpression, SurveyQuestionFile, SurveyQuestionHtml, SurveyQuestionImage, SurveyQuestionImageMap, SurveyQuestionImagePicker, SurveyQuestionMatrix, SurveyQuestionMatrixCell, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionMatrixRow, SurveyQuestionMultipleText, SurveyQuestionOptionItem, SurveyQuestionPanelDynamic, SurveyQuestionPanelDynamicProgressText, SurveyQuestionRadioItem, SurveyQuestionRadiogroup, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionSignaturePad, SurveyQuestionSlider, SurveyQuestionTagbox, SurveyQuestionTagboxItem, SurveyQuestionText, SurveyRow, SurveyTimerPanel, SurveyWindow, P as Suspense, B as SuspenseList, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click, _n as cloneElement, Q$2 as createContext, _$1 as createElement, dn as createFactory, $ as createPortal, b$1 as createRef, Sn as findDOMNode, En as flushSync, D as forwardRef, tn as hydrate, pn as isFragment, yn as isMemo, mn as isValidElement, z as lazy, M as memo, preact, nn as render, renderPopupSurvey, renderSurvey, R as startTransition, bn as unmountComponentAtNode, gn as unstable_batchedUpdates, q$2 as useCallback, x$2 as useContext, P$2 as useDebugValue, w as useDeferredValue, y as useEffect, g$2 as useId, F$2 as useImperativeHandle, I as useInsertionEffect, _ as useLayoutEffect, T$2 as useMemo, h as useReducer, A$2 as useRef, d as useState, C as useSyncExternalStore, k as useTransition, vn as version };
6270
6290
  //# sourceMappingURL=survey-js-ui.mjs.map