survey-creator-react 2.0.2 → 2.0.4
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.js → survey-creator-react.mjs} +25 -56
- package/fesm/survey-creator-react.mjs.map +1 -0
- package/package.json +6 -6
- package/survey-creator-react.js +24 -92
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +1 -1
- package/survey-creator-react.min.js.LICENSE.txt +1 -1
- package/fesm/survey-creator-react.js.map +0 -1
- package/typings/components/Scroll.d.ts +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v2.0.
|
|
2
|
+
* SurveyJS Creator React v2.0.4
|
|
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,
|
|
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
|
|
|
@@ -26,7 +26,7 @@ class TabbedMenuComponent extends SurveyElementBase {
|
|
|
26
26
|
}
|
|
27
27
|
renderElement() {
|
|
28
28
|
const items = this.model.renderedActions.map((item) => React.createElement(TabbedMenuItemWrapper, { item: item, key: item.renderedId }));
|
|
29
|
-
return (React.createElement("div", { ref: this.rootRef, className: "svc-tabbed-menu" }, items));
|
|
29
|
+
return (React.createElement("div", { ref: this.rootRef, className: "svc-tabbed-menu", role: "tablist" }, items));
|
|
30
30
|
}
|
|
31
31
|
componentDidMount() {
|
|
32
32
|
super.componentDidMount();
|
|
@@ -1467,11 +1467,9 @@ class SurveyCreatorToolboxCategory extends SurveyElementBase {
|
|
|
1467
1467
|
renderButton() {
|
|
1468
1468
|
if (!this.toolbox.canCollapseCategories)
|
|
1469
1469
|
return null;
|
|
1470
|
-
const iconName = this.category.
|
|
1471
|
-
const suffixName = this.category.collapsed ? "expand" : "collapse";
|
|
1472
|
-
const svgIconClassName = "svc-toolbox__category-header__button svc-string-editor__button--" + suffixName;
|
|
1470
|
+
const iconName = this.category.iconName;
|
|
1473
1471
|
return (React.createElement("div", { className: "svc-toolbox__category-header__controls" },
|
|
1474
|
-
React.createElement(SvgIcon, { className:
|
|
1472
|
+
React.createElement(SvgIcon, { className: this.category.iconClassName, iconName: iconName, size: "auto" })));
|
|
1475
1473
|
}
|
|
1476
1474
|
renderCategoryContent() {
|
|
1477
1475
|
return this.renderItems(this.category.items);
|
|
@@ -1547,34 +1545,6 @@ ReactElementFactory.Instance.registerElement("svc-search", (props) => {
|
|
|
1547
1545
|
return React.createElement(SearchComponent, props);
|
|
1548
1546
|
});
|
|
1549
1547
|
|
|
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
1548
|
class AdaptiveToolbox extends SurveyElementBase {
|
|
1579
1549
|
constructor(props) {
|
|
1580
1550
|
super(props);
|
|
@@ -1631,7 +1601,7 @@ class AdaptiveToolbox extends SurveyElementBase {
|
|
|
1631
1601
|
React.createElement("div", { onBlur: (e) => this.toolbox.focusOut(e), className: "svc-toolbox__panel" },
|
|
1632
1602
|
search,
|
|
1633
1603
|
placeholder,
|
|
1634
|
-
React.createElement(
|
|
1604
|
+
React.createElement(Scroll, null, (this.toolbox.showInSingleCategory) ?
|
|
1635
1605
|
(React.createElement("div", { className: "svc-toolbox__category" }, this.renderItems(this.toolbox.renderedActions, this.toolbox.isCompactRendered)))
|
|
1636
1606
|
: this.renderCategories()))));
|
|
1637
1607
|
}
|
|
@@ -1738,7 +1708,7 @@ class TabControl extends SurveyElementBase {
|
|
|
1738
1708
|
React.createElement(TabButtonComponent, { model: this.props.model.expandCollapseAction })),
|
|
1739
1709
|
React.createElement("div", { className: "svc-sidebar-tabs__separator" },
|
|
1740
1710
|
React.createElement("div", null)),
|
|
1741
|
-
React.createElement(
|
|
1711
|
+
React.createElement(Scroll, null,
|
|
1742
1712
|
React.createElement("div", { className: "svc-sidebar-tabs__items" },
|
|
1743
1713
|
React.createElement(TabsComponent, { model: this.props.model.topToolbar })))),
|
|
1744
1714
|
React.createElement("div", { className: "svc-sidebar-tabs__bottom-container" },
|
|
@@ -2090,7 +2060,7 @@ class SurveyLogicOpertor extends SurveyQuestionDropdown {
|
|
|
2090
2060
|
return (React.createElement("div", { id: this.question.inputId, className: q.getControlClass(), tabIndex: this.question.isInputReadOnly ? undefined : 0,
|
|
2091
2061
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2092
2062
|
// @ts-ignore
|
|
2093
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onKeyUp: this.keyhandler, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-
|
|
2063
|
+
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onKeyUp: this.keyhandler, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-labelledby": this.question.ariaLabelledBy, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded },
|
|
2094
2064
|
React.createElement("div", { className: this.question.cssClasses.controlValue },
|
|
2095
2065
|
text,
|
|
2096
2066
|
React.createElement("div", null, q.readOnlyText)),
|
|
@@ -2251,7 +2221,7 @@ class TabDesignerComponent extends SurveyElementBase {
|
|
|
2251
2221
|
return (React.createElement(React.Fragment, null,
|
|
2252
2222
|
React.createElement("div", { className: "svc-flex-column" }, this.model.isToolboxVisible ? ReactElementFactory.Instance.createElement("svc-toolbox", { model: this.creator }) : null),
|
|
2253
2223
|
React.createElement("div", { className: designerTabClassName, onClick: () => this.model.clickDesigner() },
|
|
2254
|
-
React.createElement(
|
|
2224
|
+
React.createElement(Scroll, null,
|
|
2255
2225
|
React.createElement("div", { className: "svc-tab-designer_content" }, this.model.showPlaceholder ? this.renderPlaceHolder() : this.renderTabContent())))));
|
|
2256
2226
|
}
|
|
2257
2227
|
renderHeader(condition) {
|
|
@@ -2621,8 +2591,7 @@ class PropertyGridComponent extends SurveyElementBase {
|
|
|
2621
2591
|
renderElement() {
|
|
2622
2592
|
return (React.createElement("div", { className: this.model.rootCss },
|
|
2623
2593
|
React.createElement(SearchComponent, { model: this.model.searchManager }),
|
|
2624
|
-
React.createElement(
|
|
2625
|
-
React.createElement(Survey, { model: this.model.survey }))));
|
|
2594
|
+
React.createElement(Survey, { model: this.model.survey })));
|
|
2626
2595
|
}
|
|
2627
2596
|
}
|
|
2628
2597
|
ReactQuestionFactory.Instance.registerQuestion("buttongroup", (props) => {
|
|
@@ -2684,7 +2653,7 @@ class SurveyQuestionSpinEditor extends SurveyQuestionText {
|
|
|
2684
2653
|
}
|
|
2685
2654
|
renderInput() {
|
|
2686
2655
|
return (React.createElement(React.Fragment, null,
|
|
2687
|
-
React.createElement("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: (input) => (this.setControl(input)), placeholder: this.question.renderedPlaceholder, autoComplete: "off", onBlur: (event) => this.question.onBlur(event.nativeEvent), onFocus: (event) => this.question.onFocus(event.nativeEvent), onChange: this.question.onChange, onBeforeInput: event => this.question.onBeforeInput(event.nativeEvent), onKeyUp: (event) => this.question.onKeyUp(event.nativeEvent), onKeyDown: (event) => this.question.onInputKeyDown(event.nativeEvent), "aria-required": this.question.
|
|
2656
|
+
React.createElement("input", { role: "spinbutton", id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: (input) => (this.setControl(input)), placeholder: this.question.renderedPlaceholder, autoComplete: "off", onBlur: (event) => this.question.onBlur(event.nativeEvent), onFocus: (event) => this.question.onFocus(event.nativeEvent), onChange: this.question.onChange, onBeforeInput: event => this.question.onBeforeInput(event.nativeEvent), onKeyUp: (event) => this.question.onKeyUp(event.nativeEvent), onKeyDown: (event) => this.question.onInputKeyDown(event.nativeEvent), "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage })));
|
|
2688
2657
|
}
|
|
2689
2658
|
renderElement() {
|
|
2690
2659
|
return (React.createElement("div", { className: this.question.cssClasses.root, onKeyDown: event => this.question.onKeyDown(event.nativeEvent) },
|
|
@@ -2696,9 +2665,9 @@ class SurveyQuestionSpinEditor extends SurveyQuestionText {
|
|
|
2696
2665
|
}
|
|
2697
2666
|
renderButtons() {
|
|
2698
2667
|
return (React.createElement("span", { className: this.question.cssClasses.buttonsContainer },
|
|
2699
|
-
React.createElement("button", { tabIndex: -1, className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onClick: this.question.onDownButtonClick, onMouseDown: this.question.onDownButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: event => this.question.onBlur(event.nativeEvent), onFocus: event => this.question.onFocus(event.nativeEvent) },
|
|
2668
|
+
React.createElement("button", { tabIndex: -1, "aria-hidden": "true", className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onClick: this.question.onDownButtonClick, onMouseDown: this.question.onDownButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: event => this.question.onBlur(event.nativeEvent), onFocus: event => this.question.onFocus(event.nativeEvent) },
|
|
2700
2669
|
React.createElement(SvgIcon, { iconName: this.question.cssClasses.decreaseButtonIcon, size: "auto" })),
|
|
2701
|
-
React.createElement("button", { tabIndex: -1, className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onClick: this.question.onUpButtonClick, onMouseDown: this.question.onUpButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: event => this.question.onBlur(event.nativeEvent), onFocus: event => this.question.onFocus(event.nativeEvent) },
|
|
2670
|
+
React.createElement("button", { tabIndex: -1, "aria-hidden": "true", className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onClick: this.question.onUpButtonClick, onMouseDown: this.question.onUpButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: event => this.question.onBlur(event.nativeEvent), onFocus: event => this.question.onFocus(event.nativeEvent) },
|
|
2702
2671
|
React.createElement(SvgIcon, { iconName: this.question.cssClasses.increaseButtonIcon, size: "auto" }))));
|
|
2703
2672
|
}
|
|
2704
2673
|
}
|
|
@@ -2727,7 +2696,7 @@ class SurveyQuestionColor extends SurveyQuestionText {
|
|
|
2727
2696
|
}
|
|
2728
2697
|
renderInput() {
|
|
2729
2698
|
return (React.createElement(React.Fragment, null,
|
|
2730
|
-
React.createElement("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: (input) => (this.setControl(input)), placeholder: this.question.renderedPlaceholder, autoComplete: "off", onKeyUp: (event) => this.question.onKeyUp(event.nativeEvent), onBlur: (event) => this.question.onBlur(event.nativeEvent), onChange: this.question.onChange, onBeforeInput: event => this.question.onBeforeInput(event.nativeEvent), "aria-required": this.question.
|
|
2699
|
+
React.createElement("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: (input) => (this.setControl(input)), placeholder: this.question.renderedPlaceholder, autoComplete: "off", onKeyUp: (event) => this.question.onKeyUp(event.nativeEvent), onBlur: (event) => this.question.onBlur(event.nativeEvent), onChange: this.question.onChange, onBeforeInput: event => this.question.onBeforeInput(event.nativeEvent), "aria-required": this.question.a11y_input_ariaRequired, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-label": this.question.a11y_input_ariaLabel, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-describedby": this.question.a11y_input_ariaDescribedBy })));
|
|
2731
2700
|
}
|
|
2732
2701
|
renderElement() {
|
|
2733
2702
|
return (React.createElement("div", { className: this.question.cssClasses.root, onKeyDown: event => this.question.onKeyDown(event.nativeEvent) },
|
|
@@ -2741,11 +2710,11 @@ class SurveyQuestionColor extends SurveyQuestionText {
|
|
|
2741
2710
|
renderColorSwatch() {
|
|
2742
2711
|
return React.createElement("label", { className: this.question.getSwatchCss(), style: this.question.getSwatchStyle() },
|
|
2743
2712
|
React.createElement(SvgIcon, { iconName: this.question.cssClasses.swatchIcon, size: "auto" }),
|
|
2744
|
-
React.createElement("input", { type: "color", disabled: this.isDisplayMode, value: this.question.renderedColorValue, className: this.question.cssClasses.colorInput, onChange: (event) => this.question.onColorInputChange(event.nativeEvent), tabIndex: -1 }));
|
|
2713
|
+
React.createElement("input", { type: "color", disabled: this.isDisplayMode, value: this.question.renderedColorValue, className: this.question.cssClasses.colorInput, onChange: (event) => this.question.onColorInputChange(event.nativeEvent), tabIndex: -1, "aria-required": this.question.a11y_input_ariaRequired, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-label": this.question.a11y_input_ariaLabel, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-describedby": this.question.a11y_input_ariaDescribedBy }));
|
|
2745
2714
|
}
|
|
2746
2715
|
renderDropdownAction() {
|
|
2747
2716
|
return (React.createElement(React.Fragment, null,
|
|
2748
|
-
ReactElementFactory.Instance.createElement("sv-action-bar-item", { item: this.question.dropdownAction }),
|
|
2717
|
+
React.createElement("div", { "aria-hidden": "true", className: this.question.cssClasses.choicesButtonWrapper }, ReactElementFactory.Instance.createElement("sv-action-bar-item", { item: this.question.dropdownAction })),
|
|
2749
2718
|
this.renderPopup()));
|
|
2750
2719
|
}
|
|
2751
2720
|
renderPopup() {
|
|
@@ -2779,11 +2748,11 @@ class SurveyQuestionFileEditor extends SurveyQuestionText {
|
|
|
2779
2748
|
this.renderChooseButton()));
|
|
2780
2749
|
}
|
|
2781
2750
|
renderClearButton() {
|
|
2782
|
-
return attachKey2click((React.createElement("button", {
|
|
2783
|
-
React.createElement(SvgIcon, { iconName: this.questionFile.cssClasses.clearButtonIcon, size: "auto"
|
|
2751
|
+
return attachKey2click((React.createElement("button", { className: this.questionFile.cssClasses.clearButton, title: this.questionFile.clearButtonCaption, disabled: this.questionFile.getIsClearButtonDisabled(), onClick: this.questionFile.doClean },
|
|
2752
|
+
React.createElement(SvgIcon, { iconName: this.questionFile.cssClasses.clearButtonIcon, size: "auto" }))));
|
|
2784
2753
|
}
|
|
2785
2754
|
renderChooseButton() {
|
|
2786
|
-
return (attachKey2click(React.createElement("label", {
|
|
2755
|
+
return (attachKey2click(React.createElement("label", { onClick: event => this.questionFile.chooseFiles(event.nativeEvent), className: this.questionFile.getChooseButtonCss(), htmlFor: this.questionFile.inputId, "aria-label": this.questionFile.chooseButtonCaption },
|
|
2787
2756
|
React.createElement(SvgIcon, { iconName: this.questionFile.cssClasses.chooseButtonIcon, size: "auto", title: this.questionFile.chooseButtonCaption }))));
|
|
2788
2757
|
}
|
|
2789
2758
|
renderElement() {
|
|
@@ -2829,7 +2798,7 @@ ReactQuestionFactory.Instance.registerQuestion("commentwithreset", (props) => {
|
|
|
2829
2798
|
|
|
2830
2799
|
class SurveyQuestionBooleanSwitch extends SurveyQuestionElementBase {
|
|
2831
2800
|
renderElement() {
|
|
2832
|
-
const button = attachKey2click(React.createElement("div", { className: "spg-boolean-switch__button" + (this.questionBase.value ? " spg-boolean-switch__button--checked" : ""), tabIndex: 0, role: "checkbox", "aria-required": this.questionBase.
|
|
2801
|
+
const button = attachKey2click(React.createElement("div", { className: "spg-boolean-switch__button" + (this.questionBase.value ? " spg-boolean-switch__button--checked" : ""), tabIndex: 0, role: "checkbox", "aria-checked": this.questionBase.booleanValue || false, "aria-required": this.questionBase.a11y_input_ariaRequired, "aria-label": this.questionBase.a11y_input_ariaLabel, "aria-labelledby": this.questionBase.a11y_input_ariaLabelledBy, "aria-invalid": this.questionBase.a11y_input_ariaInvalid, "aria-errormessage": this.questionBase.a11y_input_ariaErrormessage },
|
|
2833
2802
|
React.createElement("div", { className: "spg-boolean-switch__thumb" },
|
|
2834
2803
|
React.createElement("div", { className: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })),
|
|
2835
2804
|
React.createElement("div", { className: "spg-boolean-switch__thumb" },
|
|
@@ -2837,7 +2806,7 @@ class SurveyQuestionBooleanSwitch extends SurveyQuestionElementBase {
|
|
|
2837
2806
|
return (React.createElement("div", { className: "spg-boolean-switch", onClick: () => this.questionBase.value = !this.questionBase.value },
|
|
2838
2807
|
button,
|
|
2839
2808
|
React.createElement("div", { className: "spg-boolean-switch__caption" },
|
|
2840
|
-
React.createElement("div", { className: "spg-boolean-switch__title" }, SurveyElementBase.renderLocString(this.questionBase.locTitle)))));
|
|
2809
|
+
React.createElement("div", { className: "spg-boolean-switch__title", id: this.questionBase.labelRenderedAriaID }, SurveyElementBase.renderLocString(this.questionBase.locTitle)))));
|
|
2841
2810
|
}
|
|
2842
2811
|
}
|
|
2843
2812
|
ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
@@ -2846,8 +2815,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
|
2846
2815
|
RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2847
2816
|
|
|
2848
2817
|
let Version;
|
|
2849
|
-
Version = `${"2.0.
|
|
2850
|
-
checkLibraryVersion(`${"2.0.
|
|
2818
|
+
Version = `${"2.0.4"}`;
|
|
2819
|
+
checkLibraryVersion(`${"2.0.4"}`, "survey-creator-react");
|
|
2851
2820
|
|
|
2852
2821
|
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.
|
|
2822
|
+
//# sourceMappingURL=survey-creator-react.mjs.map
|