survey-creator-react 1.12.38 → 1.12.40
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.2.0
|
|
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" +
|
|
@@ -2001,6 +2005,7 @@ class SurveyLocStringEditor extends CreatorModelElement {
|
|
|
2001
2005
|
super.componentDidUpdate(prevProps, prevState);
|
|
2002
2006
|
this.baseModel.setLocString(this.locString);
|
|
2003
2007
|
this.baseModel.afterRender();
|
|
2008
|
+
this.locString.onStringChanged.add(this.onChangedHandler);
|
|
2004
2009
|
}
|
|
2005
2010
|
componentWillUnmount() {
|
|
2006
2011
|
super.componentWillUnmount();
|
|
@@ -2072,12 +2077,15 @@ class SurveyLogicOpertor extends SurveyQuestionDropdown {
|
|
|
2072
2077
|
const q = this.question;
|
|
2073
2078
|
initLogicOperator(q);
|
|
2074
2079
|
const text = (q.locReadOnlyText) ? this.renderLocString(q.locReadOnlyText) : "";
|
|
2080
|
+
const dropdownListModel = this.question.dropdownListModel;
|
|
2075
2081
|
return (React.createElement("div", { id: this.question.inputId, className: q.getControlClass(), tabIndex: this.question.isInputReadOnly ? undefined : 0,
|
|
2076
2082
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2077
2083
|
// @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
|
-
|
|
2084
|
+
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 },
|
|
2085
|
+
React.createElement("div", { className: this.question.cssClasses.controlValue }, text)));
|
|
2086
|
+
}
|
|
2087
|
+
renderEditorButtons() {
|
|
2088
|
+
return null;
|
|
2081
2089
|
}
|
|
2082
2090
|
}
|
|
2083
2091
|
ReactQuestionFactory.Instance.registerQuestion("sv-logic-operator", (props) => {
|
|
@@ -2119,9 +2127,10 @@ class SurveyPageNavigator extends CreatorModelElement {
|
|
|
2119
2127
|
if (this.model.isPopupOpened)
|
|
2120
2128
|
className += " svc-page-navigator__button--pressed";
|
|
2121
2129
|
return (React.createElement("div", { className: "svc-page-navigator", ref: this.containerRef, style: { display: this.model.visible ? "flex" : "none" } },
|
|
2122
|
-
|
|
2123
|
-
React.createElement(
|
|
2124
|
-
|
|
2130
|
+
React.createElement("div", null,
|
|
2131
|
+
attachKey2click(React.createElement("div", { role: "button", className: className, onClick: () => this.model.togglePageSelector(), title: this.model.pageSelectorCaption },
|
|
2132
|
+
React.createElement(SvgIcon, { className: "svc-page-navigator__button-icon", iconName: this.model.icon, size: "auto", title: this.model.pageSelectorCaption }))),
|
|
2133
|
+
React.createElement(Popup, { model: this.model.popupModel })),
|
|
2125
2134
|
React.createElement("div", null, this.model.visibleItems.map((item) => (React.createElement(SurveyPageNavigatorItem, { key: item.id, item: item }))))));
|
|
2126
2135
|
}
|
|
2127
2136
|
}
|
|
@@ -2825,8 +2834,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
|
2825
2834
|
RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2826
2835
|
|
|
2827
2836
|
let Version;
|
|
2828
|
-
Version = `${"2.0
|
|
2829
|
-
checkLibraryVersion(`${"2.0
|
|
2837
|
+
Version = `${"2.2.0"}`;
|
|
2838
|
+
checkLibraryVersion(`${"2.2.0"}`, "survey-creator-react");
|
|
2830
2839
|
|
|
2831
2840
|
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
2841
|
//# sourceMappingURL=survey-creator-react.mjs.map
|