survey-react-ui 2.5.11 → 2.5.12
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.12
|
|
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
|
*/
|
|
@@ -90,7 +90,7 @@ SurveyModel.platform = "react";
|
|
|
90
90
|
class SurveyElementBase extends React.Component {
|
|
91
91
|
static renderLocString(locStr, style = null, key) {
|
|
92
92
|
return ReactElementFactory.Instance.createElement(locStr.renderAs, {
|
|
93
|
-
|
|
93
|
+
model: locStr.renderAsData,
|
|
94
94
|
style: style,
|
|
95
95
|
key: key
|
|
96
96
|
});
|
|
@@ -394,6 +394,9 @@ class SvgIcon extends React.Component {
|
|
|
394
394
|
if (this.props.className) {
|
|
395
395
|
className += " " + this.props.className;
|
|
396
396
|
}
|
|
397
|
+
if (this.props.css) {
|
|
398
|
+
className = this.props.css;
|
|
399
|
+
}
|
|
397
400
|
return (this.props.iconName ?
|
|
398
401
|
React.createElement("svg", { className: className, style: this.props.style, onClick: this.props.onClick, ref: this.svgIconRef, role: "presentation" },
|
|
399
402
|
React.createElement("use", null))
|
|
@@ -431,7 +434,7 @@ class SurveyLocStringViewer extends React.Component {
|
|
|
431
434
|
this.rootRef = React.createRef();
|
|
432
435
|
}
|
|
433
436
|
get locStr() {
|
|
434
|
-
return this.props.
|
|
437
|
+
return this.props.model;
|
|
435
438
|
}
|
|
436
439
|
get style() {
|
|
437
440
|
return this.props.style;
|
|
@@ -539,7 +542,7 @@ class SurveyActionBarItem extends SurveyElementBase {
|
|
|
539
542
|
renderText() {
|
|
540
543
|
if (!this.item.hasTitle)
|
|
541
544
|
return null;
|
|
542
|
-
return React.createElement(SurveyLocStringViewer, {
|
|
545
|
+
return React.createElement(SurveyLocStringViewer, { model: this.item.locTitle, textClass: this.item.getActionBarItemTitleCss() });
|
|
543
546
|
}
|
|
544
547
|
renderButtonContent() {
|
|
545
548
|
const text = this.renderText();
|
|
@@ -6243,7 +6246,7 @@ class QuestionErrorComponent extends React.Component {
|
|
|
6243
6246
|
return (React.createElement("div", null,
|
|
6244
6247
|
React.createElement("span", { className: error.getCssIcon(classes), "aria-hidden": "true" }),
|
|
6245
6248
|
React.createElement("span", { className: this.props.cssClasses.error.item || undefined },
|
|
6246
|
-
React.createElement(SurveyLocStringViewer, {
|
|
6249
|
+
React.createElement(SurveyLocStringViewer, { model: error.locText }))));
|
|
6247
6250
|
}
|
|
6248
6251
|
}
|
|
6249
6252
|
ReactElementFactory.Instance.registerElement("sv-question-error", (props) => {
|
|
@@ -6386,7 +6389,7 @@ class SurveyLocStringEditor extends React.Component {
|
|
|
6386
6389
|
this.state = { changed: 0 };
|
|
6387
6390
|
}
|
|
6388
6391
|
get locStr() {
|
|
6389
|
-
return this.props.
|
|
6392
|
+
return this.props.model;
|
|
6390
6393
|
}
|
|
6391
6394
|
get style() {
|
|
6392
6395
|
return this.props.style;
|
|
@@ -6419,7 +6422,7 @@ ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer,
|
|
|
6419
6422
|
return React.createElement(SurveyLocStringEditor, props);
|
|
6420
6423
|
});
|
|
6421
6424
|
|
|
6422
|
-
checkLibraryVersion(`${"2.5.
|
|
6425
|
+
checkLibraryVersion(`${"2.5.12"}`, "survey-react-ui");
|
|
6423
6426
|
|
|
6424
6427
|
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, 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, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click };
|
|
6425
6428
|
//# sourceMappingURL=survey-react-ui.mjs.map
|