survey-creator-react 2.5.21 → 2.5.23
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 +25 -9
- package/fesm/survey-creator-react.mjs.map +1 -1
- package/fesm/ui-preset-editor.mjs +1 -1
- package/package.json +4 -4
- package/survey-creator-react.js +26 -9
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +2 -2
- package/typings/tabs/SurveySimulator.d.ts +3 -0
- package/ui-preset-editor.js +1 -1
- package/ui-preset-editor.min.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v2.5.
|
|
2
|
+
* SurveyJS Creator v2.5.23
|
|
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
|
|
@@ -2193,10 +2193,8 @@ class SurveyPageNavigator extends CreatorModelElement {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
componentDidMount() {
|
|
2195
2195
|
super.componentDidMount();
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
this.model.attachToUI(el);
|
|
2199
|
-
}
|
|
2196
|
+
const el = this.containerRef.current;
|
|
2197
|
+
this.model.attachToUI(el);
|
|
2200
2198
|
}
|
|
2201
2199
|
componentWillUnmount() {
|
|
2202
2200
|
super.componentWillUnmount();
|
|
@@ -2519,6 +2517,11 @@ ReactElementFactory.Instance.registerElement("svc-tab-logic", (props) => {
|
|
|
2519
2517
|
return React.createElement(TabLogicComponent, props);
|
|
2520
2518
|
});
|
|
2521
2519
|
|
|
2520
|
+
function simulatorShellStyle(overlayHeight) {
|
|
2521
|
+
return overlayHeight
|
|
2522
|
+
? { ["--sv-popup-overlay-height"]: overlayHeight }
|
|
2523
|
+
: {};
|
|
2524
|
+
}
|
|
2522
2525
|
class SurveySimulator extends SurveyElementBase {
|
|
2523
2526
|
get model() {
|
|
2524
2527
|
return this.props.model;
|
|
@@ -2526,8 +2529,21 @@ class SurveySimulator extends SurveyElementBase {
|
|
|
2526
2529
|
getStateElement() {
|
|
2527
2530
|
return this.model;
|
|
2528
2531
|
}
|
|
2532
|
+
componentDidMount() {
|
|
2533
|
+
super.componentDidMount();
|
|
2534
|
+
this.model.queueSurveyLayoutRefresh();
|
|
2535
|
+
}
|
|
2536
|
+
componentDidUpdate(prevProps, prevState) {
|
|
2537
|
+
super.componentDidUpdate(prevProps, prevState);
|
|
2538
|
+
this.model.queueSurveyLayoutRefresh();
|
|
2539
|
+
}
|
|
2540
|
+
componentWillUnmount() {
|
|
2541
|
+
this.model.cancelSurveyLayoutRefresh();
|
|
2542
|
+
super.componentWillUnmount();
|
|
2543
|
+
}
|
|
2529
2544
|
renderElement() {
|
|
2530
2545
|
const mainSimulatorClass = this.model.getRootCss();
|
|
2546
|
+
const shellStyle = simulatorShellStyle(this.model.popupOverlayHeight);
|
|
2531
2547
|
if (!this.model.survey) {
|
|
2532
2548
|
return React.createElement("div", { className: mainSimulatorClass });
|
|
2533
2549
|
}
|
|
@@ -2544,12 +2560,12 @@ class SurveySimulator extends SurveyElementBase {
|
|
|
2544
2560
|
this.model.simulatorFrame.scale +
|
|
2545
2561
|
") translate(-50%, -50%)"
|
|
2546
2562
|
} },
|
|
2547
|
-
React.createElement("div", { className: "svd-simulator-content" },
|
|
2563
|
+
React.createElement("div", { className: "svd-simulator-content", style: shellStyle },
|
|
2548
2564
|
React.createElement(Survey, { model: this.model.survey }))))));
|
|
2549
2565
|
}
|
|
2550
2566
|
else {
|
|
2551
2567
|
return (React.createElement("div", { className: mainSimulatorClass },
|
|
2552
|
-
React.createElement("div", { className: "svd-simulator-content" },
|
|
2568
|
+
React.createElement("div", { className: "svd-simulator-content", style: shellStyle },
|
|
2553
2569
|
React.createElement(Survey, { model: this.model.survey }))));
|
|
2554
2570
|
}
|
|
2555
2571
|
}
|
|
@@ -2959,8 +2975,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
|
2959
2975
|
RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2960
2976
|
|
|
2961
2977
|
let Version;
|
|
2962
|
-
Version = `${"2.5.
|
|
2963
|
-
checkLibraryVersion(`${"2.5.
|
|
2978
|
+
Version = `${"2.5.23"}`;
|
|
2979
|
+
checkLibraryVersion(`${"2.5.23"}`, "survey-creator-react");
|
|
2964
2980
|
|
|
2965
2981
|
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 };
|
|
2966
2982
|
//# sourceMappingURL=survey-creator-react.mjs.map
|