survey-react-ui 2.5.0 → 2.5.2
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.5.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.5.2
|
|
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
|
*/
|
|
@@ -1114,7 +1114,7 @@ class PopupModal extends SurveyElementBase {
|
|
|
1114
1114
|
PopupModal.modalDescriptors = [];
|
|
1115
1115
|
|
|
1116
1116
|
/*!
|
|
1117
|
-
* surveyjs - Survey JavaScript library v2.5.
|
|
1117
|
+
* surveyjs - Survey JavaScript library v2.5.2
|
|
1118
1118
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1119
1119
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1120
1120
|
*/
|
|
@@ -1184,7 +1184,7 @@ var iconsV1 = {
|
|
|
1184
1184
|
};
|
|
1185
1185
|
|
|
1186
1186
|
/*!
|
|
1187
|
-
* surveyjs - Survey JavaScript library v2.5.
|
|
1187
|
+
* surveyjs - Survey JavaScript library v2.5.2
|
|
1188
1188
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1189
1189
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1190
1190
|
*/
|
|
@@ -1549,11 +1549,19 @@ function attachKey2click(element, viewModel, options = { processEsc: true, disab
|
|
|
1549
1549
|
options = Object.assign({}, options);
|
|
1550
1550
|
return React.cloneElement(element, {
|
|
1551
1551
|
tabIndex: 0,
|
|
1552
|
+
onPointerUp: (evt) => {
|
|
1553
|
+
if (evt.pointerType === "pen") {
|
|
1554
|
+
evt.preventDefault();
|
|
1555
|
+
evt.stopPropagation();
|
|
1556
|
+
const element = evt.target;
|
|
1557
|
+
if (element === null || element === void 0 ? void 0 : element.click)
|
|
1558
|
+
element.click();
|
|
1559
|
+
}
|
|
1560
|
+
},
|
|
1552
1561
|
onKeyUp: (evt) => {
|
|
1553
1562
|
evt.preventDefault();
|
|
1554
1563
|
evt.stopPropagation();
|
|
1555
1564
|
doKey2ClickUp(evt, options);
|
|
1556
|
-
return false;
|
|
1557
1565
|
},
|
|
1558
1566
|
onKeyDown: (evt) => doKey2ClickDown(evt, options),
|
|
1559
1567
|
onBlur: (evt) => doKey2ClickBlur(evt),
|
|
@@ -3073,7 +3081,7 @@ class RatingItemBase extends SurveyElementBase {
|
|
|
3073
3081
|
class RatingItem extends RatingItemBase {
|
|
3074
3082
|
render() {
|
|
3075
3083
|
var itemText = this.renderLocString(this.item.locText);
|
|
3076
|
-
return (React.createElement("label", {
|
|
3084
|
+
return (React.createElement("label", { className: this.item.className, onMouseDown: this.handleOnMouseDown },
|
|
3077
3085
|
React.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: () => { }, "aria-label": this.question.ariaLabel }),
|
|
3078
3086
|
React.createElement("span", { className: this.question.cssClasses.itemText, "data-text": this.item.text }, itemText)));
|
|
3079
3087
|
}
|
|
@@ -3087,7 +3095,7 @@ ReactElementFactory.Instance.registerElement("sv-rating-item", (props) => {
|
|
|
3087
3095
|
|
|
3088
3096
|
class RatingItemStar extends RatingItemBase {
|
|
3089
3097
|
render() {
|
|
3090
|
-
return (React.createElement("label", {
|
|
3098
|
+
return (React.createElement("label", { className: this.item.className, onMouseDown: this.handleOnMouseDown, onMouseOver: e => this.question.onItemMouseIn(this.item), onMouseOut: e => this.question.onItemMouseOut(this.item), title: this.item.text },
|
|
3091
3099
|
React.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: () => { }, "aria-label": this.question.ariaLabel }),
|
|
3092
3100
|
React.createElement(SvgIcon, { className: "sv-star", size: "auto", iconName: this.question.itemStarIcon }),
|
|
3093
3101
|
React.createElement(SvgIcon, { className: "sv-star-2", size: "auto", iconName: this.question.itemStarIconAlt })));
|
|
@@ -3099,9 +3107,9 @@ ReactElementFactory.Instance.registerElement("sv-rating-item-star", (props) => {
|
|
|
3099
3107
|
|
|
3100
3108
|
class RatingItemSmiley extends RatingItemBase {
|
|
3101
3109
|
render() {
|
|
3102
|
-
return (React.createElement("label", {
|
|
3110
|
+
return (React.createElement("label", { style: this.item.style, className: this.item.className, onMouseDown: this.handleOnMouseDown, onMouseOver: e => this.question.onItemMouseIn(this.item), onMouseOut: e => this.question.onItemMouseOut(this.item), title: this.item.text },
|
|
3103
3111
|
React.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: () => { }, "aria-label": this.question.ariaLabel }),
|
|
3104
|
-
React.createElement(SvgIcon, { size: "auto", iconName: this.question.getItemSmileyIconName(this.item
|
|
3112
|
+
React.createElement(SvgIcon, { size: "auto", iconName: this.question.getItemSmileyIconName(this.item) })));
|
|
3105
3113
|
}
|
|
3106
3114
|
}
|
|
3107
3115
|
ReactElementFactory.Instance.registerElement("sv-rating-item-smiley", (props) => {
|
|
@@ -3279,7 +3287,7 @@ class SurveyQuestionDropdownBase extends SurveyQuestionUncontrolledElement {
|
|
|
3279
3287
|
return this.questionBase.renderedValue;
|
|
3280
3288
|
}
|
|
3281
3289
|
renderReadOnlyElement() {
|
|
3282
|
-
if (this.question.
|
|
3290
|
+
if (this.question.readOnlyText) {
|
|
3283
3291
|
return (React.createElement("div", { className: this.question.cssClasses.controlValue }, this.renderLocString(this.question.locReadOnlyText)));
|
|
3284
3292
|
}
|
|
3285
3293
|
else {
|
|
@@ -3533,7 +3541,7 @@ class SurveyQuestionMatrix extends SurveyQuestionElementBase {
|
|
|
3533
3541
|
React.createElement("tr", null,
|
|
3534
3542
|
rowsTH,
|
|
3535
3543
|
headers)));
|
|
3536
|
-
return (React.createElement("div", { className:
|
|
3544
|
+
return (React.createElement("div", { className: this.question.getTableWrapperCss(), ref: root => (this.setControl(root)) },
|
|
3537
3545
|
React.createElement("fieldset", { role: "radiogroup" },
|
|
3538
3546
|
React.createElement("legend", { className: "sv-visuallyhidden" }, this.question.locTitle.renderedHtml),
|
|
3539
3547
|
React.createElement("table", { className: this.question.getTableCss(), role: "presentation" },
|
|
@@ -4463,7 +4471,7 @@ class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElementBase {
|
|
|
4463
4471
|
return this.renderTableDiv();
|
|
4464
4472
|
}
|
|
4465
4473
|
renderTableDiv() {
|
|
4466
|
-
return (React.createElement("div", { className: this.question.
|
|
4474
|
+
return (React.createElement("div", { className: this.question.getTableWrapperCss(), ref: (root) => (this.setControl(root)) },
|
|
4467
4475
|
React.createElement(SurveyQuestionMatrixTable, { question: this.question, creator: this.creator, wrapCell: (cell, element, reason) => this.wrapCell(cell, element, reason) })));
|
|
4468
4476
|
}
|
|
4469
4477
|
}
|
|
@@ -6163,7 +6171,7 @@ ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer,
|
|
|
6163
6171
|
return React.createElement(SurveyLocStringEditor, props);
|
|
6164
6172
|
});
|
|
6165
6173
|
|
|
6166
|
-
checkLibraryVersion(`${"2.5.
|
|
6174
|
+
checkLibraryVersion(`${"2.5.2"}`, "survey-react-ui");
|
|
6167
6175
|
|
|
6168
6176
|
export { CharacterCounterComponent, ComponentsContainer, Header, HeaderCell, HeaderMobile, List, ListItemContent, ListItemGroup, LoadingIndicatorComponent, LogoImage, MatrixRow, NotifierComponent, Popup, PopupModal, PopupSurvey, QuestionErrorComponent, RatingDropdownItem, RatingItem, RatingItemSmiley, RatingItemStar, ReactElementFactory, ReactQuestionFactory, ReactSurveyElement, ReactSurveyElementsWrapper, Scroll, Skeleton, SliderLabelItem, 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, 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, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click };
|
|
6169
6177
|
//# sourceMappingURL=survey-react-ui.mjs.map
|