survey-creator-react 2.0.10 → 2.1.1
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.mjs +21 -13
- package/fesm/survey-creator-react.mjs.map +1 -1
- package/index.html +1 -0
- package/package.json +4 -4
- package/survey-creator-react.js +21 -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/tabs/logic-operator.d.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v2.
|
|
2
|
+
* SurveyJS Creator React v2.1.1
|
|
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
|
|
@@ -656,9 +656,9 @@ class QuestionRatingAdornerComponent extends CreatorModelElement {
|
|
|
656
656
|
return (React.createElement(React.Fragment, null,
|
|
657
657
|
React.createElement("div", { className: "svc-rating-question-content" },
|
|
658
658
|
React.createElement("div", { className: model.controlsClassNames },
|
|
659
|
-
model.allowRemove ? attachKey2click(React.createElement("span", { className: model.removeClassNames, "aria-label": model.removeTooltip, onClick: () => model.removeItem(model) },
|
|
659
|
+
model.allowRemove ? attachKey2click(React.createElement("span", { role: "button", className: model.removeClassNames, "aria-label": model.removeTooltip, onClick: () => model.removeItem(model) },
|
|
660
660
|
React.createElement(SvgIcon, { size: "auto", iconName: "icon-remove_16x16", title: model.removeTooltip }))) : null,
|
|
661
|
-
model.allowAdd ? attachKey2click(React.createElement("span", { className: model.addClassNames, "aria-label": model.addTooltip, onClick: () => model.addItem(model) },
|
|
661
|
+
model.allowAdd ? attachKey2click(React.createElement("span", { role: "button", className: model.addClassNames, "aria-label": model.addTooltip, onClick: () => model.addItem(model) },
|
|
662
662
|
React.createElement(SvgIcon, { size: "auto", iconName: "icon-add_16x16", title: model.addTooltip }))) : null),
|
|
663
663
|
this.props.element)));
|
|
664
664
|
}
|
|
@@ -805,6 +805,10 @@ class CreatorSurveyPageComponent extends CreatorModelElement {
|
|
|
805
805
|
React.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText))));
|
|
806
806
|
}
|
|
807
807
|
renderContent() {
|
|
808
|
+
if (!this.model.needRenderContent) {
|
|
809
|
+
return React.createElement("div", { className: "svc-page__loading-content" },
|
|
810
|
+
React.createElement(LoadingIndicatorComponent, null));
|
|
811
|
+
}
|
|
808
812
|
return (React.createElement(PageElementContent, { page: this.props.page, survey: this.props.survey, creator: this.props.creator }));
|
|
809
813
|
}
|
|
810
814
|
renderHeader() {
|
|
@@ -1072,7 +1076,7 @@ class ItemValueAdornerComponent extends CreatorModelElement {
|
|
|
1072
1076
|
}
|
|
1073
1077
|
render() {
|
|
1074
1078
|
this.model.item = this.props.item;
|
|
1075
|
-
const button = this.model.allowAdd ? (attachKey2click(React.createElement("span", { className: "svc-item-value-controls__button svc-item-value-controls__add", "aria-label": this.model.tooltip, onClick: () => {
|
|
1079
|
+
const button = this.model.allowAdd ? (attachKey2click(React.createElement("span", { role: "button", className: "svc-item-value-controls__button svc-item-value-controls__add", "aria-label": this.model.tooltip, onClick: () => {
|
|
1076
1080
|
this.model.add(this.model);
|
|
1077
1081
|
this.model.isNew = false;
|
|
1078
1082
|
} },
|
|
@@ -1080,7 +1084,7 @@ class ItemValueAdornerComponent extends CreatorModelElement {
|
|
|
1080
1084
|
" ",
|
|
1081
1085
|
this.model.isDraggable ? (React.createElement("span", { className: "svc-item-value-controls__button svc-item-value-controls__drag" },
|
|
1082
1086
|
React.createElement(SvgIcon, { className: "svc-item-value-controls__drag-icon", size: "auto", iconName: "icon-drag-24x24", title: this.model.dragTooltip }))) : null,
|
|
1083
|
-
this.model.allowRemove ? attachKey2click(React.createElement("span", { className: "svc-item-value-controls__button svc-item-value-controls__remove", "aria-label": this.model.tooltip, onClick: () => this.model.remove(this.model) },
|
|
1087
|
+
this.model.allowRemove ? attachKey2click(React.createElement("span", { role: "button", className: "svc-item-value-controls__button svc-item-value-controls__remove", "aria-label": this.model.tooltip, onClick: () => this.model.remove(this.model) },
|
|
1084
1088
|
React.createElement(SvgIcon, { size: "auto", iconName: "icon-remove_16x16", title: this.model.tooltip }))) : null));
|
|
1085
1089
|
const itemkey = this.props.element.key + (this.model.allowAdd ? "_new" : "");
|
|
1086
1090
|
return (React.createElement("div", { ref: this.rootRef, className: "svc-item-value-wrapper" +
|
|
@@ -2072,12 +2076,15 @@ class SurveyLogicOpertor extends SurveyQuestionDropdown {
|
|
|
2072
2076
|
const q = this.question;
|
|
2073
2077
|
initLogicOperator(q);
|
|
2074
2078
|
const text = (q.locReadOnlyText) ? this.renderLocString(q.locReadOnlyText) : "";
|
|
2079
|
+
const dropdownListModel = this.question.dropdownListModel;
|
|
2075
2080
|
return (React.createElement("div", { id: this.question.inputId, className: q.getControlClass(), tabIndex: this.question.isInputReadOnly ? undefined : 0,
|
|
2076
2081
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2077
2082
|
// @ts-ignore
|
|
2078
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onKeyUp: this.keyhandler, role:
|
|
2079
|
-
React.createElement("div", { className: this.question.cssClasses.controlValue }, text)
|
|
2080
|
-
|
|
2083
|
+
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onKeyUp: this.keyhandler, role: dropdownListModel.ariaQuestionRole, "aria-required": dropdownListModel.ariaQuestionRequired, "aria-invalid": dropdownListModel.ariaQuestionInvalid, "aria-errormessage": dropdownListModel.ariaQuestionErrorMessage, "aria-expanded": dropdownListModel.ariaQuestionExpanded, "aria-label": dropdownListModel.ariaQuestionLabel, "aria-labelledby": dropdownListModel.ariaQuestionLabelledby, "aria-controls": dropdownListModel.ariaQuestionControls },
|
|
2084
|
+
React.createElement("div", { className: this.question.cssClasses.controlValue }, text)));
|
|
2085
|
+
}
|
|
2086
|
+
renderEditorButtons() {
|
|
2087
|
+
return null;
|
|
2081
2088
|
}
|
|
2082
2089
|
}
|
|
2083
2090
|
ReactQuestionFactory.Instance.registerQuestion("sv-logic-operator", (props) => {
|
|
@@ -2119,9 +2126,10 @@ class SurveyPageNavigator extends CreatorModelElement {
|
|
|
2119
2126
|
if (this.model.isPopupOpened)
|
|
2120
2127
|
className += " svc-page-navigator__button--pressed";
|
|
2121
2128
|
return (React.createElement("div", { className: "svc-page-navigator", ref: this.containerRef, style: { display: this.model.visible ? "flex" : "none" } },
|
|
2122
|
-
|
|
2123
|
-
React.createElement(
|
|
2124
|
-
|
|
2129
|
+
React.createElement("div", null,
|
|
2130
|
+
attachKey2click(React.createElement("div", { role: "button", className: className, onClick: () => this.model.togglePageSelector(), title: this.model.pageSelectorCaption },
|
|
2131
|
+
React.createElement(SvgIcon, { className: "svc-page-navigator__button-icon", iconName: this.model.icon, size: "auto", title: this.model.pageSelectorCaption }))),
|
|
2132
|
+
React.createElement(Popup, { model: this.model.popupModel })),
|
|
2125
2133
|
React.createElement("div", null, this.model.visibleItems.map((item) => (React.createElement(SurveyPageNavigatorItem, { key: item.id, item: item }))))));
|
|
2126
2134
|
}
|
|
2127
2135
|
}
|
|
@@ -2825,8 +2833,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
|
2825
2833
|
RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2826
2834
|
|
|
2827
2835
|
let Version;
|
|
2828
|
-
Version = `${"2.
|
|
2829
|
-
checkLibraryVersion(`${"2.
|
|
2836
|
+
Version = `${"2.1.1"}`;
|
|
2837
|
+
checkLibraryVersion(`${"2.1.1"}`, "survey-creator-react");
|
|
2830
2838
|
|
|
2831
2839
|
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 };
|
|
2832
2840
|
//# sourceMappingURL=survey-creator-react.mjs.map
|