survey-js-ui 2.5.43 → 2.5.45

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 v2.5.43
2
+ * surveyjs - Survey JavaScript library v2.5.45
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
  */
@@ -1699,7 +1699,7 @@ class Survey extends SurveyElementBase {
1699
1699
  }
1700
1700
  const rootCss = this.survey.getRootCss();
1701
1701
  const cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
1702
- return (_$1("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables, lang: this.survey.locale || "en", dir: this.survey.localeDir },
1702
+ return (_$1("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables, lang: this.survey.rootLang, dir: this.survey.localeDir },
1703
1703
  _$1(Scroll, { disabled: this.survey.rootScrollDisabled },
1704
1704
  this.survey.needRenderIcons ? _$1(SvgBundleComponent, null) : null,
1705
1705
  _$1(PopupModal, null),
@@ -3230,12 +3230,12 @@ class SurveyQuestionCheckboxItem extends SurveyQuestionSelectBaseItem {
3230
3230
  const id = this.question.getItemId(this.item);
3231
3231
  const itemClass = this.question.getItemClass(this.item);
3232
3232
  const labelClass = this.question.getLabelClass(this.item);
3233
- const itemLabel = !this.hideCaption ? _$1("span", { className: this.cssClasses.controlLabel }, this.renderLocString(this.item.locText, this.textStyle)) : null;
3233
+ const itemLabel = !this.hideCaption ? _$1("span", { className: this.cssClasses.controlLabel, id: this.question.getItemLabelId(this.item), "aria-hidden": this.question.isItemLabelAriaHidden ? "true" : undefined }, this.renderLocString(this.item.locText, this.textStyle)) : null;
3234
3234
  return (_$1("div", { className: itemClass, role: "presentation", ref: this.rootRef },
3235
3235
  _$1("label", { className: labelClass },
3236
- _$1("input", { className: this.cssClasses.itemControl, type: "checkbox", name: this.question.name + this.item.id, value: this.item.value, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), readOnly: this.question.isReadOnlyAttr, checked: isChecked, onChange: this.handleOnChange, required: this.question.hasRequiredError(), "aria-label": this.ariaLabel }),
3236
+ _$1("input", { className: this.cssClasses.itemControl, type: "checkbox", name: this.question.name + this.item.id, value: this.item.value, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), readOnly: this.question.isReadOnlyAttr, checked: isChecked, onChange: this.handleOnChange, required: this.question.hasRequiredError(), "aria-label": this.ariaLabel, "aria-labelledby": !this.ariaLabel && !this.hideCaption ? this.question.getItemLabelId(this.item) : undefined }),
3237
3237
  this.cssClasses.materialDecorator ?
3238
- _$1("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
3238
+ _$1("span", { className: this.cssClasses.materialDecorator, "aria-hidden": "true" }, this.question.itemSvgIcon ?
3239
3239
  _$1("svg", { className: this.cssClasses.itemDecorator },
3240
3240
  _$1("use", { xlinkHref: this.question.itemSvgIcon })) :
3241
3241
  null) :
@@ -3996,7 +3996,7 @@ class SurveyQuestionMatrixCell extends ReactSurveyElement {
3996
3996
  : undefined;
3997
3997
  return (_$1("label", { onMouseDown: this.handleOnMouseDown, className: itemClass },
3998
3998
  this.renderInput(inputId, isChecked),
3999
- _$1("span", { className: this.question.cssMaterialDecorator }, itemSvgIcon ?
3999
+ _$1("span", { className: this.question.cssMaterialDecorator, "aria-hidden": "true" }, itemSvgIcon ?
4000
4000
  _$1("svg", { className: this.question.cssItemDecorator },
4001
4001
  _$1("use", { xlinkHref: itemSvgIcon })) : null),
4002
4002
  mobileSpan));
@@ -4330,12 +4330,12 @@ class SurveyQuestionRadioItem extends SurveyQuestionSelectBaseItem {
4330
4330
  var itemClass = this.question.getItemClass(this.item);
4331
4331
  var labelClass = this.question.getLabelClass(this.item);
4332
4332
  var controlLabelClass = this.question.getControlLabelClass(this.item);
4333
- const itemLabel = !this.hideCaption ? _$1("span", { className: controlLabelClass }, this.renderLocString(this.item.locText, this.textStyle)) : null;
4333
+ const itemLabel = !this.hideCaption ? _$1("span", { className: controlLabelClass, id: this.question.getItemLabelId(this.item), "aria-hidden": this.question.isItemLabelAriaHidden ? "true" : undefined }, this.renderLocString(this.item.locText, this.textStyle)) : null;
4334
4334
  return (_$1("div", { className: itemClass, role: "presentation", ref: this.rootRef },
4335
4335
  _$1("label", { onMouseDown: this.handleOnMouseDown, className: labelClass },
4336
- _$1("input", { "aria-errormessage": this.question.ariaErrormessage, className: this.cssClasses.itemControl, id: this.question.getItemId(this.item), type: "radio", name: this.question.questionName, checked: this.isChecked, value: this.item.value, disabled: !this.question.getItemEnabled(this.item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, "aria-label": this.ariaLabel }),
4336
+ _$1("input", { "aria-errormessage": this.question.ariaErrormessage, className: this.cssClasses.itemControl, id: this.question.getItemId(this.item), type: "radio", name: this.question.questionName, checked: this.isChecked, value: this.item.value, disabled: !this.question.getItemEnabled(this.item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, "aria-label": this.ariaLabel, "aria-labelledby": !this.ariaLabel && !this.hideCaption ? this.question.getItemLabelId(this.item) : undefined }),
4337
4337
  this.cssClasses.materialDecorator ?
4338
- _$1("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
4338
+ _$1("span", { className: this.cssClasses.materialDecorator, "aria-hidden": "true" }, this.question.itemSvgIcon ?
4339
4339
  _$1("svg", { className: this.cssClasses.itemDecorator },
4340
4340
  _$1("use", { xlinkHref: this.question.itemSvgIcon })) :
4341
4341
  null) :
@@ -4487,7 +4487,7 @@ class SurveyQuestionBooleanCheckbox extends SurveyQuestionBoolean {
4487
4487
  _$1("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
4488
4488
  ? ""
4489
4489
  : this.question.booleanValue, id: this.question.inputId, className: cssClasses.controlCheckbox, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.booleanValue || false, onChange: this.handleOnChange, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }),
4490
- _$1("span", { className: cssClasses.checkboxMaterialDecorator },
4490
+ _$1("span", { className: cssClasses.checkboxMaterialDecorator, "aria-hidden": "true" },
4491
4491
  this.question.svgIcon ?
4492
4492
  _$1("svg", { className: cssClasses.checkboxItemDecorator },
4493
4493
  _$1("use", { xlinkHref: this.question.svgIcon })) : null,
@@ -4517,7 +4517,7 @@ class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
4517
4517
  _$1("label", { className: cssClasses.radioLabel },
4518
4518
  _$1("input", { type: "radio", name: this.question.questionName, value: value, "aria-errormessage": this.question.ariaErrormessage, checked: value === this.question.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: cssClasses.itemRadioControl, onChange: handleOnChange }),
4519
4519
  this.question.cssClasses.materialRadioDecorator ?
4520
- (_$1("span", { className: cssClasses.materialRadioDecorator }, this.question.itemSvgIcon ?
4520
+ (_$1("span", { className: cssClasses.materialRadioDecorator, "aria-hidden": "true" }, this.question.itemSvgIcon ?
4521
4521
  (_$1("svg", { className: cssClasses.itemRadioDecorator },
4522
4522
  _$1("use", { xlinkHref: this.question.itemSvgIcon }))) : null)) : null,
4523
4523
  _$1("span", { className: cssClasses.radioControlLabel }, this.renderLocString(locText)))));
@@ -6626,7 +6626,7 @@ SurveyModel.prototype["render"] = function (element = null) {
6626
6626
  }
6627
6627
  };
6628
6628
  const preact = React;
6629
- checkLibraryVersion(`${"2.5.43"}`, "survey-js-ui");
6629
+ checkLibraryVersion(`${"2.5.45"}`, "survey-js-ui");
6630
6630
 
6631
6631
  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, SurveyElementBase, SurveyElementErrors, SurveyFileChooseButton, SurveyFileItem, SurveyFilePreview, SurveyFlowPanel, SurveyHeader, SurveyLocStringEditor, SurveyLocStringViewer, SurveyNavigationBase, SurveyNavigationButton, SurveyPage, SurveyPanel, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestion, SurveyQuestionAndErrorsCell, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionButtonGroup, SurveyQuestionButtonGroupDropdown, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionComment, SurveyQuestionCommentItem, SurveyQuestionComposite, SurveyQuestionCustom, SurveyQuestionDropdown, SurveyQuestionDropdownBase, SurveyQuestionDropdownSelect, SurveyQuestionElementBase, SurveyQuestionEmpty, SurveyQuestionExpression, SurveyQuestionFile, SurveyQuestionHtml, SurveyQuestionImage, SurveyQuestionImageMap, SurveyQuestionImagePicker, SurveyQuestionMatrix, SurveyQuestionMatrixCell, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixRow, SurveyQuestionMultipleText, SurveyQuestionOptionItem, SurveyQuestionPanelDynamic, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicProgressText, SurveyQuestionPanelDynamicRemoveButton, 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 };
6632
6632
  //# sourceMappingURL=survey-js-ui.mjs.map