survey-creator-react 1.12.58 → 1.12.60
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 +24 -10
- package/fesm/survey-creator-react.mjs.map +1 -1
- package/fesm/ui-preset-editor/index.mjs +82 -0
- package/fesm/ui-preset-editor/index.mjs.map +1 -0
- package/package.json +4 -4
- package/survey-creator-react.js +4 -4
- package/survey-creator-react.min.js +1 -1
- package/survey-creator-react.min.js.LICENSE.txt +2 -2
- package/typings/components/ComponentContainer.d.ts +10 -0
- package/typings/entries/index-wc.d.ts +1 -0
- package/typings/entries/presets.d.ts +3 -3
- package/typings/{presets → ui-preset-editor}/Presets.d.ts +1 -0
- package/typings/{presets → ui-preset-editor}/PresetsIconItem.d.ts +1 -1
- package/typings/{presets → ui-preset-editor}/PresetsPropertyGrid.d.ts +1 -1
- package/{survey-creator-react-presets.js → ui-preset-editor/index.js} +35 -26
- package/ui-preset-editor/index.js.map +1 -0
- package/ui-preset-editor/index.min.js +2 -0
- package/{survey-creator-react-presets.min.js.LICENSE.txt → ui-preset-editor/index.min.js.LICENSE.txt} +2 -2
- package/survey-creator-react-presets.js.map +0 -1
- package/survey-creator-react-presets.min.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v2.5.
|
|
3
|
-
* (c) 2015-
|
|
2
|
+
* SurveyJS Creator React v2.5.14
|
|
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
|
|
6
6
|
*/
|
|
@@ -247,7 +247,7 @@ class SurveyCreator extends SurveyCreatorModel {
|
|
|
247
247
|
return (React.createElement("div", { key: key },
|
|
248
248
|
React.createElement("span", { className: cssClasses.error.icon, "aria-hidden": "true" }),
|
|
249
249
|
React.createElement("span", { className: cssClasses.error.item },
|
|
250
|
-
React.createElement(SurveyLocStringViewer, {
|
|
250
|
+
React.createElement(SurveyLocStringViewer, { model: error.locText }))));
|
|
251
251
|
}
|
|
252
252
|
questionTitleLocation() {
|
|
253
253
|
return this.survey.questionTitleLocation;
|
|
@@ -1357,7 +1357,7 @@ class SurveyResultsByRow extends CreatorModelElement {
|
|
|
1357
1357
|
React.createElement("td", { key: 1, style: { paddingLeft: this.row.textMargin }, className: "svd-dark-border-color" },
|
|
1358
1358
|
this.row.isNode ? (React.createElement("span", { style: { left: this.row.markerMargin }, className: "svd-test-results__marker " + (this.row.collapsed ? "" : "svd-test-results__marker--expanded") },
|
|
1359
1359
|
React.createElement(SvgIcon, { iconName: "icon-expand_16x16", size: 16 }))) : null,
|
|
1360
|
-
this.row.question ? React.createElement(SurveyLocStringViewer, {
|
|
1360
|
+
this.row.question ? React.createElement(SurveyLocStringViewer, { model: this.row.question.locTitle }) : React.createElement("span", null, this.row.title)),
|
|
1361
1361
|
React.createElement("td", { key: 2, className: this.row.isNode ? "svd-test-results__node-value" : "svd-dark-border-color" }, this.row.getString(this.row.displayValue)))),
|
|
1362
1362
|
this.row.isNode && !this.row.collapsed ? SurveyResults.renderRows(this.row.data) : null));
|
|
1363
1363
|
}
|
|
@@ -2039,10 +2039,10 @@ class SurveyLocStringEditor extends CreatorModelElement {
|
|
|
2039
2039
|
return ["creator", "locString"];
|
|
2040
2040
|
}
|
|
2041
2041
|
get locString() {
|
|
2042
|
-
return this.props.
|
|
2042
|
+
return this.props.model.locStr;
|
|
2043
2043
|
}
|
|
2044
2044
|
get creator() {
|
|
2045
|
-
return this.props.
|
|
2045
|
+
return this.props.model.creator;
|
|
2046
2046
|
}
|
|
2047
2047
|
get style() {
|
|
2048
2048
|
return this.props.style;
|
|
@@ -2131,7 +2131,7 @@ class QuestionErrorComponent extends React.Component {
|
|
|
2131
2131
|
return (React.createElement("div", null,
|
|
2132
2132
|
React.createElement(SvgIcon, { "aria-hidden": "true", iconName: "icon-alert_24x24", size: "24", className: this.props.cssClasses.error.icon }),
|
|
2133
2133
|
React.createElement("span", { className: this.props.cssClasses.error.item || undefined },
|
|
2134
|
-
React.createElement(SurveyLocStringViewer, {
|
|
2134
|
+
React.createElement(SurveyLocStringViewer, { model: this.props.error.locText }))));
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
2137
|
ReactElementFactory.Instance.registerElement("svc-question-error", (props) => {
|
|
@@ -2719,6 +2719,20 @@ ReactElementFactory.Instance.registerElement("svc-property-grid", (props) => {
|
|
|
2719
2719
|
return React.createElement(PropertyGridComponent, props);
|
|
2720
2720
|
});
|
|
2721
2721
|
|
|
2722
|
+
class ComponentContainer extends React.Component {
|
|
2723
|
+
constructor(props) {
|
|
2724
|
+
super(props);
|
|
2725
|
+
}
|
|
2726
|
+
render() {
|
|
2727
|
+
return (React.createElement("div", { className: this.props.model.cssClass }, this.props.model.elements.map((element, index) => {
|
|
2728
|
+
return ReactElementFactory.Instance.createElement(element.componentName, Object.assign(Object.assign({}, element.componentData), { key: index }));
|
|
2729
|
+
})));
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
ReactElementFactory.Instance.registerElement("svc-component-container", (props) => {
|
|
2733
|
+
return React.createElement(ComponentContainer, props);
|
|
2734
|
+
});
|
|
2735
|
+
|
|
2722
2736
|
class SwitcherComponent extends SurveyElementBase {
|
|
2723
2737
|
get item() {
|
|
2724
2738
|
return this.props.item;
|
|
@@ -2933,8 +2947,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
|
2933
2947
|
RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2934
2948
|
|
|
2935
2949
|
let Version;
|
|
2936
|
-
Version = `${"2.5.
|
|
2937
|
-
checkLibraryVersion(`${"2.5.
|
|
2950
|
+
Version = `${"2.5.14"}`;
|
|
2951
|
+
checkLibraryVersion(`${"2.5.14"}`, "survey-creator-react");
|
|
2938
2952
|
|
|
2939
|
-
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 };
|
|
2953
|
+
export { ActionButton, AdaptiveToolbox, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, ComponentContainer, 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 };
|
|
2940
2954
|
//# sourceMappingURL=survey-creator-react.mjs.map
|