survey-creator-react 2.5.14 → 2.5.15
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-creator-react.mjs +30 -12
- package/fesm/survey-creator-react.mjs.map +1 -1
- package/fesm/ui-preset-editor/index.mjs +1 -1
- package/fesm/ui-preset-editor/index.mjs.map +1 -1
- package/package.json +4 -4
- package/survey-creator-react.js +3752 -5718
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +7 -2
- package/typings/QuestionEmbeddedSurvey.d.ts +4 -3
- package/ui-preset-editor/index.js +149 -349
- package/ui-preset-editor/index.js.map +1 -1
- package/ui-preset-editor/index.min.js +7 -2
- package/index.html +0 -50
- package/survey-creator-react.min.js.LICENSE.txt +0 -6
- package/typings/entries/helpers.d.ts +0 -4
- package/ui-preset-editor/index.min.js.LICENSE.txt +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator
|
|
2
|
+
* SurveyJS Creator v2.5.15
|
|
3
3
|
* (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -1024,19 +1024,34 @@ ReactQuestionFactory.Instance.registerQuestion("linkvalue", (props) => {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
|
|
1026
1026
|
class SurveyElementEmbeddedSurvey extends SurveyQuestionElementBase {
|
|
1027
|
+
constructor() {
|
|
1028
|
+
super(...arguments);
|
|
1029
|
+
this.rootRef = React.createRef();
|
|
1030
|
+
}
|
|
1027
1031
|
get embeddedSurvey() {
|
|
1028
|
-
|
|
1032
|
+
const element = (this.props.element || this.props.question);
|
|
1033
|
+
if (!element)
|
|
1034
|
+
return null;
|
|
1035
|
+
const survey = element.embeddedSurvey;
|
|
1036
|
+
if (!survey || !survey.currentPage)
|
|
1037
|
+
return null;
|
|
1038
|
+
return survey;
|
|
1029
1039
|
}
|
|
1030
1040
|
get creator() {
|
|
1031
1041
|
return this.props.creator;
|
|
1032
1042
|
}
|
|
1043
|
+
componentDidMount() {
|
|
1044
|
+
super.componentDidMount();
|
|
1045
|
+
if (this.embeddedSurvey) {
|
|
1046
|
+
this.embeddedSurvey.rootElement = this.rootRef.current;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1033
1049
|
render() {
|
|
1034
|
-
|
|
1050
|
+
const survey = this.embeddedSurvey;
|
|
1051
|
+
if (!survey)
|
|
1035
1052
|
return null;
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
return null;
|
|
1039
|
-
return React.createElement(SurveyPage, { survey: survey, page: survey.currentPage, css: survey.css, creator: this.creator });
|
|
1053
|
+
return React.createElement("div", { style: { display: "contents" }, ref: this.rootRef },
|
|
1054
|
+
React.createElement(SurveyPage, { survey: survey, page: survey.currentPage, css: survey.css, creator: this.creator }));
|
|
1040
1055
|
}
|
|
1041
1056
|
}
|
|
1042
1057
|
ReactQuestionFactory.Instance.registerQuestion("embeddedsurvey", (props) => {
|
|
@@ -1605,9 +1620,12 @@ class SearchComponent extends SurveyElementBase {
|
|
|
1605
1620
|
if (!this.model.isVisible)
|
|
1606
1621
|
return null;
|
|
1607
1622
|
const onChange = (e) => {
|
|
1608
|
-
const
|
|
1609
|
-
|
|
1610
|
-
|
|
1623
|
+
const target = e.target;
|
|
1624
|
+
const root = (target === null || target === void 0 ? void 0 : target.getRootNode()) || settings.environment.root;
|
|
1625
|
+
if (!(root instanceof Document || root instanceof ShadowRoot))
|
|
1626
|
+
return;
|
|
1627
|
+
if (target === root.activeElement) {
|
|
1628
|
+
this.model.filterString = target.value;
|
|
1611
1629
|
}
|
|
1612
1630
|
};
|
|
1613
1631
|
return (React.createElement("div", { className: "svc-search" },
|
|
@@ -2947,8 +2965,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
|
2947
2965
|
RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2948
2966
|
|
|
2949
2967
|
let Version;
|
|
2950
|
-
Version = `${"2.5.
|
|
2951
|
-
checkLibraryVersion(`${"2.5.
|
|
2968
|
+
Version = `${"2.5.15"}`;
|
|
2969
|
+
checkLibraryVersion(`${"2.5.15"}`, "survey-creator-react");
|
|
2952
2970
|
|
|
2953
2971
|
export { ActionButton, AdaptiveToolbox, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, ComponentContainer, CreatorSurveyPageComponent, ImageItemValueAdornerComponent, ItemValueAdornerComponent, LogoImageComponent, MatrixCellAdornerComponent, PanelAdornerComponent, PropertyGridComponent, PropertyGridPlaceholderComponent, QuestionAdornerComponent, QuestionBanner, QuestionDropdownAdornerComponent, QuestionEditorContentComponent, QuestionErrorComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, QuestionWrapperFooter, QuestionWrapperHeader, ReactDragEvent, ReactMouseEvent, RowWrapper, SearchComponent, SideBarDefaultHeader, SidebarComponent, SurveyCreator, SurveyCreatorComponent, SurveyCreatorToolboxCategory, SurveyCreatorToolboxItem, SurveyCreatorToolboxItemGroup, SurveyCreatorToolboxTool, SurveyElementEmbeddedSurvey, SurveyLocStringEditor, SurveyLogicOpertor, SurveyNavigation, SurveyQuestionBooleanSwitch, SurveyQuestionColor, SurveyQuestionFileEditor, SurveyQuestionLinkValue, SurveyQuestionSpinEditor, SurveyQuestionTextWithReset, SurveyResults, SurveyResultsByRow, SurveySimulator, SwitcherComponent, TabButtonComponent, TabDesignerComponent, TabJsonEditorAceComponent, TabJsonEditorErrorsComponent, TabJsonEditorTextareaComponent, TabLogicAddButtonComponent, TabLogicComponent, TabPreviewSurveyComponent, TabPreviewTestSurveyAgainComponent, TabThemeSurveyComponent, TabTranslationComponent, TabbedMenuComponent, TabbedMenuItemComponent, ToolboxList, TranslateFromAction, TranslationLineSkeleton, Version };
|
|
2954
2972
|
//# sourceMappingURL=survey-creator-react.mjs.map
|