survey-creator-react 1.12.30 → 1.12.31

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator React v2.0.2
2
+ * SurveyJS Creator React v2.0.3
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -8,8 +8,8 @@
8
8
  import * as React from 'react';
9
9
  import { createElement, Fragment } from 'react';
10
10
  import * as ReactDOM from 'react-dom';
11
- import { ReactElementFactory, SurveyElementBase, attachKey2click, SvgIcon, Survey, SvgBundleComponent, PopupModal, SurveyActionBar, NotifierComponent, ReactQuestionFactory, SurveyLocStringViewer, TitleElement, ReactSurveyElementsWrapper, LoadingIndicatorComponent, SurveyPage, Popup, LogoImage, SurveyQuestionElementBase, SurveyQuestion, CharacterCounterComponent, SurveyQuestionDropdown, SurveyHeader, List, SurveyQuestionButtonGroup, SurveyQuestionText } from 'survey-react-ui';
12
- import { assign, SurveyCreatorModel, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, PageAdorner, LogoImageViewModel, editorLocalization, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperViewModel, SurveyResultsModel, ToolboxToolViewModel, ScrollViewModel, editableStringRendererName, StringEditorViewModelBase, initLogicOperator, PageNavigatorViewModel } from 'survey-creator-core';
11
+ import { ReactElementFactory, SurveyElementBase, attachKey2click, SvgIcon, Survey, SvgBundleComponent, PopupModal, SurveyActionBar, NotifierComponent, ReactQuestionFactory, SurveyLocStringViewer, TitleElement, ReactSurveyElementsWrapper, LoadingIndicatorComponent, SurveyPage, Popup, LogoImage, SurveyQuestionElementBase, SurveyQuestion, Scroll, CharacterCounterComponent, SurveyQuestionDropdown, SurveyHeader, List, SurveyQuestionButtonGroup, SurveyQuestionText } from 'survey-react-ui';
12
+ import { assign, SurveyCreatorModel, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, PageAdorner, LogoImageViewModel, editorLocalization, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperViewModel, SurveyResultsModel, ToolboxToolViewModel, editableStringRendererName, StringEditorViewModelBase, initLogicOperator, PageNavigatorViewModel } from 'survey-creator-core';
13
13
  export { PropertyGridEditorCollection, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, ToolboxToolViewModel, editorLocalization, localization, settings, svgBundle } from 'survey-creator-core';
14
14
  import { ResponsivityManager, CssClassBuilder, settings, VerticalResponsivityManager, RendererFactory, unwrap, checkLibraryVersion } from 'survey-core';
15
15
 
@@ -1547,34 +1547,6 @@ ReactElementFactory.Instance.registerElement("svc-search", (props) => {
1547
1547
  return React.createElement(SearchComponent, props);
1548
1548
  });
1549
1549
 
1550
- class ScrollComponent extends React.Component {
1551
- constructor(props) {
1552
- super(props);
1553
- this.rootRef = React.createRef();
1554
- this.model = new ScrollViewModel();
1555
- }
1556
- componentDidMount() {
1557
- const container = this.rootRef.current;
1558
- if (!container)
1559
- return;
1560
- this.model.setRootElement(container);
1561
- }
1562
- componentWillUnmount() {
1563
- this.model.unsubscribeRootElement();
1564
- this.model.setRootElement(undefined);
1565
- }
1566
- render() {
1567
- return React.createElement("div", { ref: this.rootRef, className: "svc-scroll__wrapper" },
1568
- React.createElement("div", { className: "svc-scroll__scroller sv-drag-target-skipped", onScroll: () => this.model.onScrollContainer() },
1569
- React.createElement("div", { className: "svc-scroll__container" }, this.props.children)),
1570
- React.createElement("div", { className: "svc-scroll__scrollbar", onScroll: () => this.model.onScrollScrollbar() },
1571
- React.createElement("div", { className: "svc-scroll__scrollbar-sizer" })));
1572
- }
1573
- }
1574
- ReactElementFactory.Instance.registerElement("svc-scroll", (props) => {
1575
- return React.createElement(ScrollComponent, props);
1576
- });
1577
-
1578
1550
  class AdaptiveToolbox extends SurveyElementBase {
1579
1551
  constructor(props) {
1580
1552
  super(props);
@@ -1631,7 +1603,7 @@ class AdaptiveToolbox extends SurveyElementBase {
1631
1603
  React.createElement("div", { onBlur: (e) => this.toolbox.focusOut(e), className: "svc-toolbox__panel" },
1632
1604
  search,
1633
1605
  placeholder,
1634
- React.createElement(ScrollComponent, null, (this.toolbox.showInSingleCategory) ?
1606
+ React.createElement(Scroll, null, (this.toolbox.showInSingleCategory) ?
1635
1607
  (React.createElement("div", { className: "svc-toolbox__category" }, this.renderItems(this.toolbox.renderedActions, this.toolbox.isCompactRendered)))
1636
1608
  : this.renderCategories()))));
1637
1609
  }
@@ -1738,7 +1710,7 @@ class TabControl extends SurveyElementBase {
1738
1710
  React.createElement(TabButtonComponent, { model: this.props.model.expandCollapseAction })),
1739
1711
  React.createElement("div", { className: "svc-sidebar-tabs__separator" },
1740
1712
  React.createElement("div", null)),
1741
- React.createElement(ScrollComponent, null,
1713
+ React.createElement(Scroll, null,
1742
1714
  React.createElement("div", { className: "svc-sidebar-tabs__items" },
1743
1715
  React.createElement(TabsComponent, { model: this.props.model.topToolbar })))),
1744
1716
  React.createElement("div", { className: "svc-sidebar-tabs__bottom-container" },
@@ -2251,7 +2223,7 @@ class TabDesignerComponent extends SurveyElementBase {
2251
2223
  return (React.createElement(React.Fragment, null,
2252
2224
  React.createElement("div", { className: "svc-flex-column" }, this.model.isToolboxVisible ? ReactElementFactory.Instance.createElement("svc-toolbox", { model: this.creator }) : null),
2253
2225
  React.createElement("div", { className: designerTabClassName, onClick: () => this.model.clickDesigner() },
2254
- React.createElement(ScrollComponent, null,
2226
+ React.createElement(Scroll, null,
2255
2227
  React.createElement("div", { className: "svc-tab-designer_content" }, this.model.showPlaceholder ? this.renderPlaceHolder() : this.renderTabContent())))));
2256
2228
  }
2257
2229
  renderHeader(condition) {
@@ -2621,8 +2593,7 @@ class PropertyGridComponent extends SurveyElementBase {
2621
2593
  renderElement() {
2622
2594
  return (React.createElement("div", { className: this.model.rootCss },
2623
2595
  React.createElement(SearchComponent, { model: this.model.searchManager }),
2624
- React.createElement(ScrollComponent, null,
2625
- React.createElement(Survey, { model: this.model.survey }))));
2596
+ React.createElement(Survey, { model: this.model.survey })));
2626
2597
  }
2627
2598
  }
2628
2599
  ReactQuestionFactory.Instance.registerQuestion("buttongroup", (props) => {
@@ -2846,8 +2817,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
2846
2817
  RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
2847
2818
 
2848
2819
  let Version;
2849
- Version = `${"2.0.2"}`;
2850
- checkLibraryVersion(`${"2.0.2"}`, "survey-creator-react");
2820
+ Version = `${"2.0.3"}`;
2821
+ checkLibraryVersion(`${"2.0.3"}`, "survey-creator-react");
2851
2822
 
2852
2823
  export { ActionButton, AdaptiveToolbox, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, 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 };
2853
- //# sourceMappingURL=survey-creator-react.js.map
2824
+ //# sourceMappingURL=survey-creator-react.mjs.map