survey-creator-react 3.2.5 → 3.2.6
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 v3.2.
|
|
2
|
+
* SurveyJS Creator v3.2.6
|
|
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
|
|
@@ -1040,6 +1040,8 @@ class CreatorSurveyPageComponent extends CreatorModelElement {
|
|
|
1040
1040
|
id: this.props.page.renderedId,
|
|
1041
1041
|
"data-sv-drop-target-survey-page": this.model.dropTargetName,
|
|
1042
1042
|
className: "svc-page__content " + this.model.css,
|
|
1043
|
+
role: this.model.ariaRole,
|
|
1044
|
+
"aria-label": this.model.ariaLabel,
|
|
1043
1045
|
onClick: (e) => {
|
|
1044
1046
|
return this.model.select(this.model, new ReactMouseEvent(e));
|
|
1045
1047
|
},
|
|
@@ -1053,7 +1055,7 @@ class CreatorSurveyPageComponent extends CreatorModelElement {
|
|
|
1053
1055
|
this.renderPlaceholder(),
|
|
1054
1056
|
this.renderHeader(),
|
|
1055
1057
|
this.renderFooter()
|
|
1056
|
-
));
|
|
1058
|
+
), void 0, { disableTabStop: true });
|
|
1057
1059
|
}
|
|
1058
1060
|
renderPlaceholder() {
|
|
1059
1061
|
if (!this.model.showPlaceholder) return null;
|
|
@@ -1111,7 +1113,7 @@ class AddQuestionButtonComponent extends SurveyElementBase {
|
|
|
1111
1113
|
return /* @__PURE__ */ React.createElement("div", { className: this.item.cssClasses.itemTypeSelector }, ReactElementFactory.Instance.createElement("sv-action-bar-item-dropdown", { item: this.model.questionTypeSelectorModel }));
|
|
1112
1114
|
}
|
|
1113
1115
|
renderElement() {
|
|
1114
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null,
|
|
1116
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
1115
1117
|
"div",
|
|
1116
1118
|
{
|
|
1117
1119
|
className: this.item.getActionBarItemCss(),
|
|
@@ -1121,9 +1123,9 @@ class AddQuestionButtonComponent extends SurveyElementBase {
|
|
|
1121
1123
|
},
|
|
1122
1124
|
onMouseOver: (e) => this.model.hoverStopper && this.model.hoverStopper(e.nativeEvent, e.currentTarget)
|
|
1123
1125
|
},
|
|
1124
|
-
/* @__PURE__ */ React.createElement("span", { className: this.item.getActionBarItemTitleCss() }, this.model.addNewQuestionText),
|
|
1126
|
+
/* @__PURE__ */ React.createElement("button", { type: "button", className: "svc-surface-btn__title-button" }, /* @__PURE__ */ React.createElement("span", { className: this.item.getActionBarItemTitleCss() }, this.model.addNewQuestionText)),
|
|
1125
1127
|
this.renderTypeSelector()
|
|
1126
|
-
))
|
|
1128
|
+
));
|
|
1127
1129
|
}
|
|
1128
1130
|
}
|
|
1129
1131
|
ReactElementFactory.Instance.registerElement("svc-add-new-question-btn", (props) => {
|
|
@@ -1199,7 +1201,7 @@ class LogoImageComponent extends CreatorModelElement {
|
|
|
1199
1201
|
return /* @__PURE__ */ React.createElement("div", { className: this.model.containerCss }, this.renderButtons(), /* @__PURE__ */ React.createElement(LogoImage, { data: this.props.data.survey }));
|
|
1200
1202
|
}
|
|
1201
1203
|
renderPlaceHolder() {
|
|
1202
|
-
return this.model.allowEdit && !this.model.isUploading ? attachKey2click(/* @__PURE__ */ React.createElement("div", { className: "svc-logo-image-placeholder", onClick: () => this.model.chooseFile(this.model) }, /* @__PURE__ */ React.createElement("svg", null, /* @__PURE__ */ React.createElement("use", { xlinkHref: "#icon-image-48x48" })))) : null;
|
|
1204
|
+
return this.model.allowEdit && !this.model.isUploading ? attachKey2click(/* @__PURE__ */ React.createElement("div", { className: "svc-logo-image-placeholder", role: "button", "aria-label": this.model.chooseLogoAriaLabel, onClick: () => this.model.chooseFile(this.model) }, /* @__PURE__ */ React.createElement("svg", null, /* @__PURE__ */ React.createElement("use", { xlinkHref: "#icon-image-48x48" })))) : null;
|
|
1203
1205
|
}
|
|
1204
1206
|
renderInput() {
|
|
1205
1207
|
return /* @__PURE__ */ React.createElement("input", { "aria-hidden": "true", type: "file", tabIndex: -1, accept: this.model.acceptedTypes, className: "svc-choose-file-input" });
|
|
@@ -1745,7 +1747,7 @@ class SurveyCreatorToolboxTool extends CreatorModelElement {
|
|
|
1745
1747
|
isCompact: this.isCompact
|
|
1746
1748
|
}
|
|
1747
1749
|
);
|
|
1748
|
-
return /* @__PURE__ */ React.createElement("div", { className: item.css, key: item.id, ref: this.rootRef }, item.needSeparator && !this.creator.toolbox.showCategoryTitles ? /* @__PURE__ */ React.createElement("div", { className: "svc-toolbox__category-separator" }) : null, /* @__PURE__ */ React.createElement(
|
|
1750
|
+
return /* @__PURE__ */ React.createElement("div", { className: item.css, key: item.id, ref: this.rootRef, role: this.model.ariaRole }, item.needSeparator && !this.creator.toolbox.showCategoryTitles ? /* @__PURE__ */ React.createElement("div", { className: "svc-toolbox__category-separator" }) : null, /* @__PURE__ */ React.createElement(
|
|
1749
1751
|
"div",
|
|
1750
1752
|
{
|
|
1751
1753
|
className: "svc-toolbox__tool-content",
|
|
@@ -1942,7 +1944,7 @@ class ToolboxList extends SurveyElementBase {
|
|
|
1942
1944
|
renderElement() {
|
|
1943
1945
|
if (!this.model || !this.model.renderElements) return null;
|
|
1944
1946
|
const items = this.renderItems();
|
|
1945
|
-
return /* @__PURE__ */ React.createElement("div", { className: this.model.cssClasses.root }, items);
|
|
1947
|
+
return /* @__PURE__ */ React.createElement("div", { className: this.model.cssClasses.root, role: "list" }, items);
|
|
1946
1948
|
}
|
|
1947
1949
|
renderItems() {
|
|
1948
1950
|
const items = this.model.renderedActions;
|
|
@@ -2049,7 +2051,7 @@ class AdaptiveToolbox extends SurveyElementBase {
|
|
|
2049
2051
|
renderElement() {
|
|
2050
2052
|
const search = this.toolbox.showSearch ? this.renderSearch() : null;
|
|
2051
2053
|
const placeholder = this.toolbox.showPlaceholder ? /* @__PURE__ */ React.createElement("div", { className: "svc-toolbox__placeholder" }, this.toolbox.toolboxNoResultsFound) : null;
|
|
2052
|
-
return /* @__PURE__ */ React.createElement("div", { ref: this.rootRef, className: this.toolbox.classNames, style: this.toolbox.getRootStyle() }, /* @__PURE__ */ React.createElement("div", { onBlur: (e) => this.toolbox.focusOut(e), className: "svc-toolbox__panel" }, search, placeholder, /* @__PURE__ */ React.createElement(Scroll, null, this.toolbox.showInSingleCategory ? /* @__PURE__ */ React.createElement("div", { className: "svc-toolbox__category" }, this.renderItems(this.toolbox.renderedActions, this.toolbox.isCompactRendered)) : this.renderCategories())));
|
|
2054
|
+
return /* @__PURE__ */ React.createElement("div", { ref: this.rootRef, className: this.toolbox.classNames, style: this.toolbox.getRootStyle() }, /* @__PURE__ */ React.createElement("div", { onBlur: (e) => this.toolbox.focusOut(e), className: "svc-toolbox__panel" }, search, placeholder, /* @__PURE__ */ React.createElement(Scroll, null, this.toolbox.showInSingleCategory ? /* @__PURE__ */ React.createElement("div", { className: "svc-toolbox__category", role: "list", "aria-label": this.toolbox.toolboxAriaLabel }, this.renderItems(this.toolbox.renderedActions, this.toolbox.isCompactRendered)) : this.renderCategories())));
|
|
2053
2055
|
}
|
|
2054
2056
|
}
|
|
2055
2057
|
ReactElementFactory.Instance.registerElement("svc-toolbox", (props) => {
|
|
@@ -3670,8 +3672,8 @@ ReactElementFactory.Instance.registerElement("sv-fileedit-button", (props) => {
|
|
|
3670
3672
|
});
|
|
3671
3673
|
|
|
3672
3674
|
let Version;
|
|
3673
|
-
Version = `${"3.2.
|
|
3674
|
-
checkLibraryVersion(`${"3.2.
|
|
3675
|
+
Version = `${"3.2.6"}`;
|
|
3676
|
+
checkLibraryVersion(`${"3.2.6"}`, "survey-creator-react");
|
|
3675
3677
|
|
|
3676
3678
|
export { ActionButton, AdaptiveToolbox, AddQuestionButtonComponent, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, CollabRowComponent, ComponentContainer, CreatorSurveyPageComponent, FloatingPanelComponent, IconItem, ImageItemValueAdornerComponent, ItemValueAdornerComponent, LogoImageComponent, MatrixCellAdornerComponent, PanelAdornerComponent, PropertyGridComponent, PropertyGridPlaceholderComponent, QuestionAdornerComponent, QuestionBanner, QuestionDropdownAdornerComponent, QuestionEditorContentComponent, QuestionErrorComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, QuestionWrapperFooter, QuestionWrapperHeader, ReactDragEvent, ReactMouseEvent, RowWrapper, SearchComponent, SideBarDefaultHeader, SideBarLaunchCard, SidebarComponent, SurveyCreator, SurveyCreatorComponent, SurveyCreatorToolboxCategory, SurveyCreatorToolboxItem, SurveyCreatorToolboxItemGroup, SurveyCreatorToolboxTool, SurveyElementEmbeddedSurvey, SurveyLocStringEditor, SurveyLogicOpertor, SurveyNavigation, SurveyQuestionColor, SurveyQuestionFileEditor, SurveyQuestionFileEditorButton, SurveyQuestionLinkValue, SurveyQuestionSpinEditor, SurveyResults, SurveyResultsByRow, SurveySimulator, SurveySpinEditorButton, SwitcherComponent, TabButtonComponent, TabContainerComponent, TabDesignerComponent, TabJsonEditorAceComponent, TabJsonEditorErrorsComponent, TabJsonEditorMonacoComponent, TabJsonEditorTextareaComponent, TabLogicComponent, TabPreviewSurveyComponent, TabThemeSurveyComponent, TabTranslationComponent, TabbedMenuComponent, TabbedMenuItemComponent, ToolboxList, TranslateFromAction, TranslationDropdownQuestionComponent, TranslationLineSkeleton, TranslationLocaleItemComponent, VariablesViewerComponent, Version };
|
|
3677
3679
|
//# sourceMappingURL=survey-creator-react.mjs.map
|