survey-creator-react 3.1.0 → 3.1.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.
- package/fesm/survey-creator-react.mjs +30 -6
- package/fesm/survey-creator-react.mjs.map +1 -1
- package/package.json +4 -4
- package/survey-creator-react.js +16 -9
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +2 -2
- package/typings/components/VariablesViewer.d.ts +9 -0
- package/typings/entries/index-wc.d.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v3.1.
|
|
2
|
+
* SurveyJS Creator v3.1.2
|
|
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
|
|
@@ -11,7 +11,7 @@ import { ReactElementFactory, SurveyElementBase, attachKey2click, SvgIcon, Surve
|
|
|
11
11
|
import { SurveyCreatorModel, assign, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, translationDropdownComponentName, TranslationDropdownViewModel, PageAdorner, PanelAdornerViewModel, LogoImageViewModel, editorLocalization, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperViewModel, SurveyResultsModel, ToolboxToolViewModel, editableStringRendererName, StringEditorViewModelBase, initLogicOperator, PageNavigatorViewModel, translationLocaleItemComponentName, getTranslationLocaleProgress } from 'survey-creator-core';
|
|
12
12
|
export { PropertyGridEditorCollection, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, ToolboxToolViewModel, editorLocalization, localization, settings, svgBundle } from 'survey-creator-core';
|
|
13
13
|
import * as ReactDOM from 'react-dom';
|
|
14
|
-
import {
|
|
14
|
+
import { toCssClasses, settings, RendererFactory, unwrap, checkLibraryVersion } from 'survey-core';
|
|
15
15
|
|
|
16
16
|
class TabbedMenuComponent extends SurveyElementBase {
|
|
17
17
|
get model() {
|
|
@@ -556,7 +556,12 @@ ReactElementFactory.Instance.registerElement(
|
|
|
556
556
|
|
|
557
557
|
class ActionButton extends SurveyElementBase {
|
|
558
558
|
renderElement() {
|
|
559
|
-
const classes =
|
|
559
|
+
const classes = toCssClasses(
|
|
560
|
+
this.props.classes,
|
|
561
|
+
"svc-action-button",
|
|
562
|
+
!!this.props.selected && "svc-action-button--selected",
|
|
563
|
+
!!this.props.disabled && "svc-action-button--disabled"
|
|
564
|
+
);
|
|
560
565
|
if (this.props.iconName) {
|
|
561
566
|
return this.renderIcon(classes);
|
|
562
567
|
}
|
|
@@ -3109,6 +3114,25 @@ ReactElementFactory.Instance.registerElement(
|
|
|
3109
3114
|
}
|
|
3110
3115
|
);
|
|
3111
3116
|
|
|
3117
|
+
class VariablesViewerComponent extends React.Component {
|
|
3118
|
+
render() {
|
|
3119
|
+
const model = this.props.model;
|
|
3120
|
+
return /* @__PURE__ */ React.createElement("div", { className: "svc-variables-viewer" }, /* @__PURE__ */ React.createElement(
|
|
3121
|
+
"textarea",
|
|
3122
|
+
{
|
|
3123
|
+
className: "svc-variables-viewer__text",
|
|
3124
|
+
value: model.text,
|
|
3125
|
+
readOnly: true,
|
|
3126
|
+
spellCheck: false,
|
|
3127
|
+
"aria-label": model.ariaLabel
|
|
3128
|
+
}
|
|
3129
|
+
));
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
ReactElementFactory.Instance.registerElement("svc-variables-viewer", (props) => {
|
|
3133
|
+
return React.createElement(VariablesViewerComponent, props);
|
|
3134
|
+
});
|
|
3135
|
+
|
|
3112
3136
|
class IconItem extends React.Component {
|
|
3113
3137
|
render() {
|
|
3114
3138
|
const item = this.props.item;
|
|
@@ -3591,8 +3615,8 @@ ReactElementFactory.Instance.registerElement("sv-fileedit-button", (props) => {
|
|
|
3591
3615
|
});
|
|
3592
3616
|
|
|
3593
3617
|
let Version;
|
|
3594
|
-
Version = `${"3.1.
|
|
3595
|
-
checkLibraryVersion(`${"3.1.
|
|
3618
|
+
Version = `${"3.1.2"}`;
|
|
3619
|
+
checkLibraryVersion(`${"3.1.2"}`, "survey-creator-react");
|
|
3596
3620
|
|
|
3597
|
-
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, TabJsonEditorTextareaComponent, TabLogicComponent, TabPreviewSurveyComponent, TabThemeSurveyComponent, TabTranslationComponent, TabbedMenuComponent, TabbedMenuItemComponent, ToolboxList, TranslateFromAction, TranslationDropdownQuestionComponent, TranslationLineSkeleton, TranslationLocaleItemComponent, Version };
|
|
3621
|
+
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, TabJsonEditorTextareaComponent, TabLogicComponent, TabPreviewSurveyComponent, TabThemeSurveyComponent, TabTranslationComponent, TabbedMenuComponent, TabbedMenuItemComponent, ToolboxList, TranslateFromAction, TranslationDropdownQuestionComponent, TranslationLineSkeleton, TranslationLocaleItemComponent, VariablesViewerComponent, Version };
|
|
3598
3622
|
//# sourceMappingURL=survey-creator-react.mjs.map
|