survey-js-ui 2.0.9 → 2.0.10
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-js-ui.mjs +14 -14
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +38 -38
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +1 -1
- package/survey-js-ui.min.js.LICENSE.txt +1 -1
package/fesm/survey-js-ui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.0.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.0.10
|
|
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
|
*/
|
|
@@ -1526,7 +1526,7 @@ class SurveyQuestion extends SurveyElementBase {
|
|
|
1526
1526
|
const singleInput = singleSummary || (question.singleInputQuestion ? this.renderSingleInputQuestion(question, cssClasses) : undefined);
|
|
1527
1527
|
const questionContent = singleInput || this.wrapQuestionContent(this.renderQuestionContent());
|
|
1528
1528
|
return (_$1(k$2, null,
|
|
1529
|
-
_$1("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-label": this.question.ariaLabel, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded
|
|
1529
|
+
_$1("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, "data-name": question.name, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-label": this.question.ariaLabel, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded },
|
|
1530
1530
|
singleBreadcrumbs,
|
|
1531
1531
|
errorsAboveQuestion,
|
|
1532
1532
|
headerTop,
|
|
@@ -1978,7 +1978,7 @@ class PopupModal extends SurveyElementBase {
|
|
|
1978
1978
|
PopupModal.modalDescriptors = [];
|
|
1979
1979
|
|
|
1980
1980
|
/*!
|
|
1981
|
-
* surveyjs - Survey JavaScript library v2.0.
|
|
1981
|
+
* surveyjs - Survey JavaScript library v2.0.10
|
|
1982
1982
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1983
1983
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1984
1984
|
*/
|
|
@@ -2048,7 +2048,7 @@ var iconsV1 = {
|
|
|
2048
2048
|
};
|
|
2049
2049
|
|
|
2050
2050
|
/*!
|
|
2051
|
-
* surveyjs - Survey JavaScript library v2.0.
|
|
2051
|
+
* surveyjs - Survey JavaScript library v2.0.10
|
|
2052
2052
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
2053
2053
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
2054
2054
|
*/
|
|
@@ -3136,7 +3136,7 @@ class TagboxFilterString extends SurveyElementBase {
|
|
|
3136
3136
|
(_$1("div", { className: this.question.cssClasses.hintSuffix },
|
|
3137
3137
|
_$1("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, this.model.inputStringRendered),
|
|
3138
3138
|
_$1("span", null, this.model.hintStringSuffix))) : null,
|
|
3139
|
-
_$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.
|
|
3139
|
+
_$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); } }))));
|
|
3140
3140
|
}
|
|
3141
3141
|
}
|
|
3142
3142
|
ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter", (props) => {
|
|
@@ -3230,17 +3230,17 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
|
|
|
3230
3230
|
}
|
|
3231
3231
|
}
|
|
3232
3232
|
renderSelect(cssClasses) {
|
|
3233
|
-
var _a, _b;
|
|
3234
3233
|
let selectElement = null;
|
|
3234
|
+
const dropdownListModel = this.question.dropdownListModel;
|
|
3235
3235
|
if (this.question.isReadOnly) {
|
|
3236
3236
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3237
3237
|
// @ts-ignore
|
|
3238
|
-
selectElement = _$1("div", { id: this.question.inputId, "aria-label":
|
|
3238
|
+
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)) }, this.renderReadOnlyElement());
|
|
3239
3239
|
}
|
|
3240
3240
|
else {
|
|
3241
3241
|
selectElement = _$1(k$2, null,
|
|
3242
|
-
this.renderInput(
|
|
3243
|
-
_$1(Popup, { model:
|
|
3242
|
+
this.renderInput(dropdownListModel),
|
|
3243
|
+
_$1(Popup, { model: dropdownListModel.popupModel }));
|
|
3244
3244
|
}
|
|
3245
3245
|
return (_$1("div", { className: cssClasses.selectWrapper, onClick: this.click },
|
|
3246
3246
|
selectElement,
|
|
@@ -3266,7 +3266,7 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
|
|
|
3266
3266
|
return (_$1("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
|
3267
3267
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3268
3268
|
// @ts-ignore
|
|
3269
|
-
disabled: this.question.isDisabledAttr, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, onFocus: this.focus, role:
|
|
3269
|
+
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)) },
|
|
3270
3270
|
dropdownListModel.showHintPrefix ?
|
|
3271
3271
|
(_$1("div", { className: this.question.cssClasses.hintPrefix },
|
|
3272
3272
|
_$1("span", null, dropdownListModel.hintStringPrefix))) : null,
|
|
@@ -3276,7 +3276,7 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
|
|
|
3276
3276
|
_$1("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, dropdownListModel.inputStringRendered),
|
|
3277
3277
|
_$1("span", null, dropdownListModel.hintStringSuffix))) : null,
|
|
3278
3278
|
valueElement,
|
|
3279
|
-
_$1("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: (element) => (this.inputElement = element), className: this.question.cssClasses.filterStringInput, role: dropdownListModel.
|
|
3279
|
+
_$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 })),
|
|
3280
3280
|
this.createClearButton()));
|
|
3281
3281
|
}
|
|
3282
3282
|
createClearButton() {
|
|
@@ -3377,7 +3377,7 @@ class SurveyQuestionTagbox extends SurveyQuestionDropdownBase {
|
|
|
3377
3377
|
return (_$1("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
|
3378
3378
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3379
3379
|
// @ts-ignore
|
|
3380
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role:
|
|
3380
|
+
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)) },
|
|
3381
3381
|
_$1("div", { className: this.question.cssClasses.controlValue },
|
|
3382
3382
|
items,
|
|
3383
3383
|
_$1(TagboxFilterString, { model: dropdownMultiSelectListModel, question: this.question })),
|
|
@@ -3419,7 +3419,7 @@ class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
|
|
|
3419
3419
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3420
3420
|
// @ts-ignore
|
|
3421
3421
|
_$1("div", { id: this.question.inputId, className: this.question.getControlClass(), disabled: true }, this.question.readOnlyText)) :
|
|
3422
|
-
(_$1("select", { id: this.question.inputId, className: this.question.getControlClass(), ref: (select) => (this.setControl(select)), autoComplete: this.question.autocomplete, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onClick: click, onKeyUp: keyup, "aria-required": this.question.
|
|
3422
|
+
(_$1("select", { id: this.question.inputId, className: this.question.getControlClass(), ref: (select) => (this.setControl(select)), autoComplete: this.question.autocomplete, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onClick: click, onKeyUp: keyup, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage, required: this.question.isRequired },
|
|
3423
3423
|
this.question.allowClear ? (_$1("option", { value: "" }, this.question.placeholder)) : null,
|
|
3424
3424
|
this.question.visibleChoices.map((item, i) => _$1(SurveyQuestionOptionItem, { key: "item" + i, item: item }))));
|
|
3425
3425
|
return (_$1("div", { className: cssClasses.selectWrapper },
|
|
@@ -6187,7 +6187,7 @@ SurveyModel.prototype["render"] = function (element = null) {
|
|
|
6187
6187
|
}
|
|
6188
6188
|
};
|
|
6189
6189
|
const preact = React;
|
|
6190
|
-
checkLibraryVersion(`${"2.0.
|
|
6190
|
+
checkLibraryVersion(`${"2.0.10"}`, "survey-js-ui");
|
|
6191
6191
|
|
|
6192
6192
|
export { CharacterCounterComponent, O as Children, x$2 as Component, ComponentsContainer, k$2 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, Cn as StrictMode, Survey, SurveyActionBar, SurveyElementBase, SurveyElementErrors, SurveyFileChooseButton, 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, 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, SurveyQuestionTagbox, SurveyQuestionTagboxItem, SurveyQuestionText, SurveyRow, SurveyTimerPanel, SurveyWindow, P as Suspense, B as SuspenseList, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click, _n as cloneElement, K$1 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$1 as useCallback, x$1 as useContext, P$1 as useDebugValue, w as useDeferredValue, y as useEffect, g$1 as useId, F$1 as useImperativeHandle, I as useInsertionEffect, _ as useLayoutEffect, T$1 as useMemo, h as useReducer, A$1 as useRef, d as useState, C as useSyncExternalStore, k as useTransition, vn as version };
|
|
6193
6193
|
//# sourceMappingURL=survey-js-ui.mjs.map
|