survey-creator-react 2.1.0 → 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 +17 -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 +17 -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.1.
|
|
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
|
}
|
|
@@ -1076,7 +1076,7 @@ class ItemValueAdornerComponent extends CreatorModelElement {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
render() {
|
|
1078
1078
|
this.model.item = this.props.item;
|
|
1079
|
-
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: () => {
|
|
1080
1080
|
this.model.add(this.model);
|
|
1081
1081
|
this.model.isNew = false;
|
|
1082
1082
|
} },
|
|
@@ -1084,7 +1084,7 @@ class ItemValueAdornerComponent extends CreatorModelElement {
|
|
|
1084
1084
|
" ",
|
|
1085
1085
|
this.model.isDraggable ? (React.createElement("span", { className: "svc-item-value-controls__button svc-item-value-controls__drag" },
|
|
1086
1086
|
React.createElement(SvgIcon, { className: "svc-item-value-controls__drag-icon", size: "auto", iconName: "icon-drag-24x24", title: this.model.dragTooltip }))) : null,
|
|
1087
|
-
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) },
|
|
1088
1088
|
React.createElement(SvgIcon, { size: "auto", iconName: "icon-remove_16x16", title: this.model.tooltip }))) : null));
|
|
1089
1089
|
const itemkey = this.props.element.key + (this.model.allowAdd ? "_new" : "");
|
|
1090
1090
|
return (React.createElement("div", { ref: this.rootRef, className: "svc-item-value-wrapper" +
|
|
@@ -2076,12 +2076,15 @@ class SurveyLogicOpertor extends SurveyQuestionDropdown {
|
|
|
2076
2076
|
const q = this.question;
|
|
2077
2077
|
initLogicOperator(q);
|
|
2078
2078
|
const text = (q.locReadOnlyText) ? this.renderLocString(q.locReadOnlyText) : "";
|
|
2079
|
+
const dropdownListModel = this.question.dropdownListModel;
|
|
2079
2080
|
return (React.createElement("div", { id: this.question.inputId, className: q.getControlClass(), tabIndex: this.question.isInputReadOnly ? undefined : 0,
|
|
2080
2081
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2081
2082
|
// @ts-ignore
|
|
2082
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onKeyUp: this.keyhandler, role:
|
|
2083
|
-
React.createElement("div", { className: this.question.cssClasses.controlValue }, text)
|
|
2084
|
-
|
|
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;
|
|
2085
2088
|
}
|
|
2086
2089
|
}
|
|
2087
2090
|
ReactQuestionFactory.Instance.registerQuestion("sv-logic-operator", (props) => {
|
|
@@ -2123,9 +2126,10 @@ class SurveyPageNavigator extends CreatorModelElement {
|
|
|
2123
2126
|
if (this.model.isPopupOpened)
|
|
2124
2127
|
className += " svc-page-navigator__button--pressed";
|
|
2125
2128
|
return (React.createElement("div", { className: "svc-page-navigator", ref: this.containerRef, style: { display: this.model.visible ? "flex" : "none" } },
|
|
2126
|
-
|
|
2127
|
-
React.createElement(
|
|
2128
|
-
|
|
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 })),
|
|
2129
2133
|
React.createElement("div", null, this.model.visibleItems.map((item) => (React.createElement(SurveyPageNavigatorItem, { key: item.id, item: item }))))));
|
|
2130
2134
|
}
|
|
2131
2135
|
}
|
|
@@ -2829,8 +2833,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
|
2829
2833
|
RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2830
2834
|
|
|
2831
2835
|
let Version;
|
|
2832
|
-
Version = `${"2.1.
|
|
2833
|
-
checkLibraryVersion(`${"2.1.
|
|
2836
|
+
Version = `${"2.1.1"}`;
|
|
2837
|
+
checkLibraryVersion(`${"2.1.1"}`, "survey-creator-react");
|
|
2834
2838
|
|
|
2835
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 };
|
|
2836
2840
|
//# sourceMappingURL=survey-creator-react.mjs.map
|