survey-creator-react 2.0.1 → 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.
|
@@ -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) {
|
|
@@ -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 ?
|
|
@@ -2136,7 +2136,7 @@ class SurveyPageNavigator extends CreatorModelElement {
|
|
|
2136
2136
|
if (this.model.isPopupOpened)
|
|
2137
2137
|
className += " svc-page-navigator__button--pressed";
|
|
2138
2138
|
return (React.createElement("div", { className: "svc-page-navigator", ref: this.containerRef, style: { display: this.model.visible ? "flex" : "none" } },
|
|
2139
|
-
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 },
|
|
2140
2140
|
React.createElement(SvgIcon, { className: "svc-page-navigator__button-icon", iconName: this.model.icon, size: "auto", title: this.model.pageSelectorCaption }),
|
|
2141
2141
|
React.createElement(Popup, { model: this.model.popupModel }))),
|
|
2142
2142
|
React.createElement("div", null, this.model.visibleItems.map((item) => (React.createElement(SurveyPageNavigatorItem, { key: item.id, item: item }))))));
|
|
@@ -2155,7 +2155,7 @@ class SurveyPageNavigatorItem extends CreatorModelElement {
|
|
|
2155
2155
|
if (unwrap(item.disabled)) {
|
|
2156
2156
|
className += " svc-page-navigator-item--disabled";
|
|
2157
2157
|
}
|
|
2158
|
-
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) => {
|
|
2159
2159
|
item.action(item);
|
|
2160
2160
|
e.stopPropagation();
|
|
2161
2161
|
} },
|
|
@@ -2846,8 +2846,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
|
2846
2846
|
RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2847
2847
|
|
|
2848
2848
|
let Version;
|
|
2849
|
-
Version = `${"2.0.
|
|
2850
|
-
checkLibraryVersion(`${"2.0.
|
|
2849
|
+
Version = `${"2.0.2"}`;
|
|
2850
|
+
checkLibraryVersion(`${"2.0.2"}`, "survey-creator-react");
|
|
2851
2851
|
|
|
2852
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 };
|
|
2853
2853
|
//# sourceMappingURL=survey-creator-react.js.map
|