survey-creator-react 3.2.6 → 3.2.8
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/README.md +21 -0
- package/fesm/survey-creator-react.mjs +26 -18
- package/fesm/survey-creator-react.mjs.map +1 -1
- package/package.json +9 -5
- package/survey-creator-react.js +27 -19
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +2 -2
- package/typings/SurveyCreator.d.ts +1 -0
package/README.md
CHANGED
|
@@ -131,6 +131,27 @@ Adapters are available for [Bootstrap](https://getbootstrap.com) (plus Bootswatc
|
|
|
131
131
|
- [Theme Adapters for Bootstrap, Material UI, and shadcn/ui](https://surveyjs.io/themes/theme-adapters)
|
|
132
132
|
- Localization and right-to-left language support
|
|
133
133
|
|
|
134
|
+
## Missing API or found a bug?
|
|
135
|
+
|
|
136
|
+
SurveyJS fixes reported bugs and adds small API improvements (a property, an
|
|
137
|
+
event, an option) quickly, often in the next weekly release. If you had to work around Survey Creator in
|
|
138
|
+
your application code (private members, prototype patches, DOM or CSS changes inside
|
|
139
|
+
Survey Creator markup, timers that wait for creator state), please tell us instead of keeping
|
|
140
|
+
the workaround.
|
|
141
|
+
|
|
142
|
+
1. Search existing issues: https://github.com/surveyjs/survey-creator/issues
|
|
143
|
+
2. Open an issue with: package versions, a minimal survey JSON and Survey Creator options,
|
|
144
|
+
the workaround code you wrote, and the API you expected.
|
|
145
|
+
|
|
146
|
+
```sh
|
|
147
|
+
gh issue create --repo surveyjs/survey-creator --title "[API gap] <short summary>" --body-file issue.md
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Use the `[Bug]` title prefix for defects. Please don't include application code,
|
|
151
|
+
credentials or data. Form Library issues (a survey that behaves the same without
|
|
152
|
+
Survey Creator) go to https://github.com/surveyjs/survey-library/issues. Report security
|
|
153
|
+
issues by email to info@devsoftbaltic.com, not in public issues.
|
|
154
|
+
|
|
134
155
|
## Related packages
|
|
135
156
|
|
|
136
157
|
| Package | Purpose |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v3.2.
|
|
2
|
+
* SurveyJS Creator v3.2.8
|
|
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
|
|
@@ -169,18 +169,34 @@ class SurveyCreatorComponent extends SurveyElementBase {
|
|
|
169
169
|
renderElement() {
|
|
170
170
|
const creator = this.props.creator;
|
|
171
171
|
if (creator.isCreatorDisposed) return null;
|
|
172
|
-
const areaClassName = "svc-full-container svc-creator__area svc-flex-column" + (this.props.creator.
|
|
172
|
+
const areaClassName = "svc-full-container svc-creator__area svc-flex-column" + (this.props.creator.showLicenseBanner ? " svc-creator__area--with-banner" : "");
|
|
173
173
|
const contentWrapperClassName = "svc-creator__content-wrapper svc-flex-row" + (this.props.creator.isMobileView ? " svc-creator__content-wrapper--footer-toolbar" : "");
|
|
174
174
|
const fullContainerClassName = "svc-flex-row svc-full-container" + (" svc-creator__side-bar--" + this.creator.sidebarLocation);
|
|
175
175
|
const creatorStyles = {};
|
|
176
176
|
assign(creatorStyles, this.style, this.props.creator.themeVariables);
|
|
177
|
-
|
|
178
|
-
if (!this.props.creator.haveCommercialLicense) {
|
|
179
|
-
const htmlValue = { __html: this.props.creator.licenseText };
|
|
180
|
-
licenseBanner = /* @__PURE__ */ React.createElement("div", { className: "svc-creator__banner" }, /* @__PURE__ */ React.createElement("span", { className: "svc-creator__non-commercial-text", dangerouslySetInnerHTML: htmlValue }));
|
|
181
|
-
}
|
|
177
|
+
const licenseBanner = this.renderLicenseBanner();
|
|
182
178
|
return /* @__PURE__ */ React.createElement("div", { className: this.creator.getRootCss(), ref: this.rootNode, style: creatorStyles }, /* @__PURE__ */ React.createElement(SvgBundleComponent, null), /* @__PURE__ */ React.createElement(PopupModal, null), /* @__PURE__ */ React.createElement("div", { className: areaClassName }, this.renderCollabBar(), /* @__PURE__ */ React.createElement("div", { className: fullContainerClassName }, /* @__PURE__ */ React.createElement("div", { className: "svc-flex-column svc-flex-row__element svc-flex-row__element--growing" }, /* @__PURE__ */ React.createElement("div", { className: "svc-top-bar" }, creator.showTabs ? /* @__PURE__ */ React.createElement("div", { className: "svc-tabbed-menu-wrapper" }, /* @__PURE__ */ React.createElement(TabbedMenuComponent, { model: creator.tabbedMenu })) : null, creator.showToolbar ? /* @__PURE__ */ React.createElement("div", { className: "svc-toolbar-wrapper" }, /* @__PURE__ */ React.createElement(SurveyActionBar, { model: creator.toolbar })) : null), /* @__PURE__ */ React.createElement("div", { className: contentWrapperClassName }, /* @__PURE__ */ React.createElement("div", { className: "svc-creator__content-holder svc-flex-column" }, this.renderActiveTab())), /* @__PURE__ */ React.createElement("div", { className: "svc-footer-bar" }, creator.isMobileView ? /* @__PURE__ */ React.createElement("div", { className: "svc-toolbar-wrapper" }, /* @__PURE__ */ React.createElement(SurveyActionBar, { model: creator.footerToolbar })) : null)), this.renderSidebar()), licenseBanner, /* @__PURE__ */ React.createElement(NotifierComponent, { notifier: creator.notifier })));
|
|
183
179
|
}
|
|
180
|
+
renderLicenseBanner() {
|
|
181
|
+
const creator = this.props.creator;
|
|
182
|
+
if (!creator.showLicenseBanner) return null;
|
|
183
|
+
const embedded = creator.embeddedLicenseBanner;
|
|
184
|
+
if (!embedded) {
|
|
185
|
+
const htmlValue = { __html: creator.licenseText };
|
|
186
|
+
return /* @__PURE__ */ React.createElement("div", { className: "svc-creator__banner" }, /* @__PURE__ */ React.createElement("span", { className: "svc-creator__non-commercial-text", dangerouslySetInnerHTML: htmlValue }));
|
|
187
|
+
}
|
|
188
|
+
return /* @__PURE__ */ React.createElement("div", { className: "svc-embedded-banner" }, /* @__PURE__ */ React.createElement("div", { className: "svc-embedded-banner__caption" }, /* @__PURE__ */ React.createElement("span", { className: "svc-embedded-banner__powered-by" }, embedded.poweredByText), /* @__PURE__ */ React.createElement("span", { className: "svc-embedded-banner__brand", role: "img", "aria-label": embedded.brandText }, /* @__PURE__ */ React.createElement(SvgIcon, { iconName: embedded.brandIconName, size: "auto" }))), /* @__PURE__ */ React.createElement("a", { className: "svc-embedded-banner__link", href: embedded.linkUrl, target: "_blank", rel: "noopener noreferrer" }, embedded.linkText), /* @__PURE__ */ React.createElement(
|
|
189
|
+
"button",
|
|
190
|
+
{
|
|
191
|
+
type: "button",
|
|
192
|
+
className: "svc-embedded-banner__close",
|
|
193
|
+
title: embedded.closeText,
|
|
194
|
+
"aria-label": embedded.closeText,
|
|
195
|
+
onClick: () => creator.closeLicenseBanner()
|
|
196
|
+
},
|
|
197
|
+
/* @__PURE__ */ React.createElement(SvgIcon, { iconName: embedded.closeIconName, size: "auto" })
|
|
198
|
+
));
|
|
199
|
+
}
|
|
184
200
|
// The strip is a plain ComponentContainerModel, so the generic container
|
|
185
201
|
// component draws it. `collabBar` is typed as Base in creator-core to keep the
|
|
186
202
|
// creator free of a dependency on the collaboration plugin, hence the cast.
|
|
@@ -3324,15 +3340,7 @@ ReactElementFactory.Instance.registerElement("svc-floating-panel", (props) => {
|
|
|
3324
3340
|
let ItemTemplateComponent$1 = class ItemTemplateComponent extends SurveyElementBase {
|
|
3325
3341
|
renderElement() {
|
|
3326
3342
|
const item = this.props.item;
|
|
3327
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SvgIcon, { iconName: item.iconName, size: item.iconSize, className: "svc-json-error__icon" }), /* @__PURE__ */ React.createElement("div", { className: "svc-json-error__container" }, /* @__PURE__ */ React.createElement("div", { className: "svc-json-error__title" }, /* @__PURE__ */ React.createElement("span", { key: 2 }, this.renderLocString(item.locTitle, void 0, "locString"))),
|
|
3328
|
-
}
|
|
3329
|
-
renderFixButton() {
|
|
3330
|
-
if (!this.props.item.data.showFixButton) return null;
|
|
3331
|
-
const item = this.props.item;
|
|
3332
|
-
return attachKey2click(/* @__PURE__ */ React.createElement("button", { type: "button", onClick: (event) => {
|
|
3333
|
-
event.stopPropagation();
|
|
3334
|
-
item.data.fixError();
|
|
3335
|
-
}, title: item.data.fixButtonTitle, "data-sv-tooltip": item.data.fixButtonTitle, className: "svc-json-error__fix-button" }, /* @__PURE__ */ React.createElement(SvgIcon, { iconName: item.data.fixButtonIcon, size: "auto" })));
|
|
3343
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SvgIcon, { iconName: item.iconName, size: item.iconSize, className: "svc-json-error__icon" }), /* @__PURE__ */ React.createElement("div", { className: "svc-json-error__container" }, /* @__PURE__ */ React.createElement("div", { className: "svc-json-error__title", title: item.data.error?.text, onMouseDown: (event) => event.stopPropagation() }, /* @__PURE__ */ React.createElement("span", { key: 2 }, this.renderLocString(item.locTitle, void 0, "locString"))), /* @__PURE__ */ React.createElement(SurveyActionBar, { model: item.data.actions })));
|
|
3336
3344
|
}
|
|
3337
3345
|
};
|
|
3338
3346
|
ReactElementFactory.Instance.registerElement(
|
|
@@ -3672,8 +3680,8 @@ ReactElementFactory.Instance.registerElement("sv-fileedit-button", (props) => {
|
|
|
3672
3680
|
});
|
|
3673
3681
|
|
|
3674
3682
|
let Version;
|
|
3675
|
-
Version = `${"3.2.
|
|
3676
|
-
checkLibraryVersion(`${"3.2.
|
|
3683
|
+
Version = `${"3.2.8"}`;
|
|
3684
|
+
checkLibraryVersion(`${"3.2.8"}`, "survey-creator-react");
|
|
3677
3685
|
|
|
3678
3686
|
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 };
|
|
3679
3687
|
//# sourceMappingURL=survey-creator-react.mjs.map
|