survey-creator-react 2.0.0 → 2.0.2
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 +15 -12
- package/fesm/survey-creator-react.js.map +1 -1
- package/package.json +11 -4
- package/survey-creator-react.js +15 -13
- 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/typings/QuestionEditorContent.d.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v2.0.
|
|
2
|
+
* SurveyJS Creator React v2.0.2
|
|
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
|
|
@@ -94,7 +94,7 @@ class TabbedMenuItemComponent extends SurveyElementBase {
|
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
96
|
const item = this.item;
|
|
97
|
-
return (attachKey2click(React.createElement("div", { className: item.getRootCss(), onClick: () => item.action(item) },
|
|
97
|
+
return (attachKey2click(React.createElement("div", { role: "tab", id: "tab-" + item.id, "aria-selected": item.active, "aria-controls": "scrollableDiv-" + item.id, className: item.getRootCss(), onClick: () => item.action(item) },
|
|
98
98
|
item.hasTitle ? React.createElement("span", { className: item.getTitleCss() }, item.title) : null,
|
|
99
99
|
item.hasIcon ? React.createElement(SvgIcon, { iconName: item.iconName, className: item.getIconCss(), size: "auto", title: item.tooltip || item.title }) : null)));
|
|
100
100
|
}
|
|
@@ -198,7 +198,7 @@ class SurveyCreatorComponent extends SurveyElementBase {
|
|
|
198
198
|
data: tab.data.model
|
|
199
199
|
});
|
|
200
200
|
const className = "svc-creator-tab" + (creator.toolboxLocation == "right" ? " svc-creator__toolbox--right" : "");
|
|
201
|
-
return (React.createElement("div", { key: tab.id, id: "scrollableDiv-" + tab.id, className: className }, component));
|
|
201
|
+
return (React.createElement("div", { role: "tabpanel", key: tab.id, id: "scrollableDiv-" + tab.id, "aria-labelledby": "tab-" + tab.id, className: className }, component));
|
|
202
202
|
}
|
|
203
203
|
renderSidebar() {
|
|
204
204
|
if (!!this.creator.sidebar) {
|
|
@@ -787,9 +787,9 @@ class CreatorSurveyPageComponent extends CreatorModelElement {
|
|
|
787
787
|
}, onDoubleClick: e => this.model.dblclick(e.nativeEvent), onMouseLeave: (e) => this.model.hover(e.nativeEvent, e.currentTarget), onMouseOver: (e) => this.model.hover(e.nativeEvent, e.currentTarget) },
|
|
788
788
|
React.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--top" }),
|
|
789
789
|
React.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }),
|
|
790
|
-
this.renderHeader(),
|
|
791
790
|
this.renderContent(),
|
|
792
791
|
this.renderPlaceholder(),
|
|
792
|
+
this.renderHeader(),
|
|
793
793
|
this.renderFooter())));
|
|
794
794
|
}
|
|
795
795
|
renderPlaceholder() {
|
|
@@ -830,7 +830,7 @@ class AddQuestionButtonComponent extends SurveyElementBase {
|
|
|
830
830
|
return attachKey2click(React.createElement("button", { type: "button", onClick: (e) => {
|
|
831
831
|
e.stopPropagation();
|
|
832
832
|
questionTypeSelectorModel.action();
|
|
833
|
-
}, className: "svc-element__question-type-selector", title: this.model.addNewQuestionText },
|
|
833
|
+
}, className: "svc-element__question-type-selector", title: this.model.addNewQuestionText, role: "button" },
|
|
834
834
|
React.createElement("span", { className: "svc-element__question-type-selector-icon" },
|
|
835
835
|
React.createElement(SvgIcon, { iconName: questionTypeSelectorModel.iconName, size: "auto", title: this.model.addNewQuestionText })),
|
|
836
836
|
this.props.renderPopup === undefined || this.props.renderPopup ?
|
|
@@ -1025,7 +1025,7 @@ class QuestionEditorContentComponent extends React.Component {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
render() {
|
|
1027
1027
|
const question = this.survey.getAllQuestions()[0];
|
|
1028
|
-
return (React.createElement(
|
|
1028
|
+
return (React.createElement("div", { style: this.props.style },
|
|
1029
1029
|
React.createElement(SurveyQuestion, { creator: this, element: question })));
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
@@ -1708,10 +1708,13 @@ class TabButtonComponent extends SurveyElementBase {
|
|
|
1708
1708
|
return this.props.model;
|
|
1709
1709
|
}
|
|
1710
1710
|
renderElement() {
|
|
1711
|
-
const
|
|
1711
|
+
const model = this.props.model;
|
|
1712
|
+
if (!model.visible)
|
|
1713
|
+
return null;
|
|
1714
|
+
const button = attachKey2click(React.createElement("div", { className: model.buttonClassName, title: model.tooltip, onClick: () => { model.action(); } },
|
|
1712
1715
|
React.createElement("div", { className: "svc-menu-action__icon" },
|
|
1713
1716
|
React.createElement("div", { className: "svc-menu-action__icon-container" },
|
|
1714
|
-
React.createElement(SvgIcon, { iconName:
|
|
1717
|
+
React.createElement(SvgIcon, { iconName: model.iconName, size: "auto" })))), model);
|
|
1715
1718
|
return (React.createElement("div", { className: "svc-menu-action" }, button));
|
|
1716
1719
|
}
|
|
1717
1720
|
}
|
|
@@ -2133,7 +2136,7 @@ class SurveyPageNavigator extends CreatorModelElement {
|
|
|
2133
2136
|
if (this.model.isPopupOpened)
|
|
2134
2137
|
className += " svc-page-navigator__button--pressed";
|
|
2135
2138
|
return (React.createElement("div", { className: "svc-page-navigator", ref: this.containerRef, style: { display: this.model.visible ? "flex" : "none" } },
|
|
2136
|
-
attachKey2click(React.createElement("div", { className: className, onClick: () => this.model.togglePageSelector(), title: this.model.pageSelectorCaption },
|
|
2139
|
+
attachKey2click(React.createElement("div", { role: "button", className: className, onClick: () => this.model.togglePageSelector(), title: this.model.pageSelectorCaption },
|
|
2137
2140
|
React.createElement(SvgIcon, { className: "svc-page-navigator__button-icon", iconName: this.model.icon, size: "auto", title: this.model.pageSelectorCaption }),
|
|
2138
2141
|
React.createElement(Popup, { model: this.model.popupModel }))),
|
|
2139
2142
|
React.createElement("div", null, this.model.visibleItems.map((item) => (React.createElement(SurveyPageNavigatorItem, { key: item.id, item: item }))))));
|
|
@@ -2152,7 +2155,7 @@ class SurveyPageNavigatorItem extends CreatorModelElement {
|
|
|
2152
2155
|
if (unwrap(item.disabled)) {
|
|
2153
2156
|
className += " svc-page-navigator-item--disabled";
|
|
2154
2157
|
}
|
|
2155
|
-
return (React.createElement("div", { className: "svc-page-navigator-item" }, attachKey2click(React.createElement("div", { className: className, onClick: (e) => {
|
|
2158
|
+
return (React.createElement("div", { className: "svc-page-navigator-item" }, attachKey2click(React.createElement("div", { role: "button", className: className, onClick: (e) => {
|
|
2156
2159
|
item.action(item);
|
|
2157
2160
|
e.stopPropagation();
|
|
2158
2161
|
} },
|
|
@@ -2843,8 +2846,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
|
2843
2846
|
RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2844
2847
|
|
|
2845
2848
|
let Version;
|
|
2846
|
-
Version = `${"2.0.
|
|
2847
|
-
checkLibraryVersion(`${"2.0.
|
|
2849
|
+
Version = `${"2.0.2"}`;
|
|
2850
|
+
checkLibraryVersion(`${"2.0.2"}`, "survey-creator-react");
|
|
2848
2851
|
|
|
2849
2852
|
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 };
|
|
2850
2853
|
//# sourceMappingURL=survey-creator-react.js.map
|