survey-creator-react 1.12.13 → 1.12.15
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/index.html +2 -2
- package/package.json +6 -6
- package/survey-creator-react.js +40 -46
- 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/ActionButton.d.ts +4 -4
- package/typings/AddQuestionButton.d.ts +3 -3
- package/typings/ImageItemValueWrapper.d.ts +4 -4
- package/typings/ItemValueWrapper.d.ts +3 -3
- package/typings/LogoImage.d.ts +9 -9
- package/typings/MatrixCellWrapper.d.ts +3 -3
- package/typings/Navigation.d.ts +1 -1
- package/typings/PageNavigator.d.ts +3 -4
- package/typings/QuestionEditorContent.d.ts +3 -3
- package/typings/QuestionEmbeddedSurvey.d.ts +2 -2
- package/typings/QuestionError.d.ts +1 -1
- package/typings/QuestionLinkValue.d.ts +3 -3
- package/typings/Results.d.ts +6 -6
- package/typings/StringEditor.d.ts +3 -2
- package/typings/SurveyCreator.d.ts +6 -6
- package/typings/Switcher.d.ts +2 -2
- package/typings/TabbedMenu.d.ts +3 -3
- package/typings/adorners/CellQuestion.d.ts +2 -2
- package/typings/adorners/CellQuestionDropdown.d.ts +2 -2
- package/typings/adorners/Page.d.ts +6 -6
- package/typings/adorners/Panel.d.ts +3 -3
- package/typings/adorners/Question.d.ts +9 -9
- package/typings/adorners/QuestionBanner.d.ts +1 -1
- package/typings/adorners/QuestionDropdown.d.ts +2 -2
- package/typings/adorners/QuestionFooter.d.ts +1 -1
- package/typings/adorners/QuestionHeader.d.ts +1 -1
- package/typings/adorners/QuestionImage.d.ts +6 -6
- package/typings/adorners/QuestionRating.d.ts +2 -2
- package/typings/adorners/QuestionWidget.d.ts +2 -2
- package/typings/adorners/Row.d.ts +3 -3
- package/typings/components/Scroll.d.ts +1 -1
- package/typings/components/Search.d.ts +2 -2
- package/typings/components/SurfacePlaceholder.d.ts +1 -1
- package/typings/custom-questions/BooleanSwitch.d.ts +2 -2
- package/typings/custom-questions/ColorQuestion.d.ts +6 -6
- package/typings/custom-questions/FileEditQuestion.d.ts +7 -7
- package/typings/custom-questions/SpinEditor.d.ts +4 -4
- package/typings/custom-questions/TextWithResetQuestion.d.ts +4 -4
- package/typings/side-bar/PropertyGrid.d.ts +2 -2
- package/typings/side-bar/PropertyGridPlaceholder.d.ts +1 -1
- package/typings/side-bar/SideBar.d.ts +2 -2
- package/typings/side-bar/SideBarDefaultHeader.d.ts +2 -2
- package/typings/side-bar/TabButton.d.ts +2 -2
- package/typings/tabs/Designer.d.ts +8 -8
- package/typings/tabs/JsonEditorAce.d.ts +2 -2
- package/typings/tabs/JsonEditorTextarea.d.ts +3 -3
- package/typings/tabs/Logic.d.ts +3 -3
- package/typings/tabs/Preview.d.ts +6 -6
- package/typings/tabs/SurveySimulator.d.ts +2 -2
- package/typings/tabs/Theme.d.ts +5 -5
- package/typings/tabs/logic-operator.d.ts +2 -2
- package/typings/tabs/translation/TranslateFromAction.d.ts +2 -2
- package/typings/tabs/translation/Translation.d.ts +3 -3
- package/typings/tabs/translation/TranslationLineSkeleton.d.ts +1 -1
- package/typings/toolbox/AdaptiveToolbox.d.ts +5 -5
- package/typings/toolbox/ToolboxCategory.d.ts +5 -5
- package/typings/toolbox/ToolboxItem.d.ts +3 -3
- package/typings/toolbox/ToolboxItemGroup.d.ts +2 -2
- package/typings/toolbox/ToolboxList.d.ts +3 -3
package/index.html
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
<meta name="description" content="SurveyJS Creator Demo" />
|
|
9
9
|
<title>SurveyJS Creator React</title>
|
|
10
10
|
<!-- <script src="https://cdn.accesslint.com/accesslint-1.1.2.js"></script> -->
|
|
11
|
-
<script src="https://unpkg.com/react@
|
|
12
|
-
<script src="https://unpkg.com/react-dom@
|
|
11
|
+
<script src="https://unpkg.com/react@18.3.1/umd/react.development.js"></script>
|
|
12
|
+
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js"></script>
|
|
13
13
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js"></script>
|
|
14
14
|
|
|
15
15
|
<script src="./node_modules/survey-core/survey.core.js"></script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.15",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"typings": "./typings/entries/index.d.ts",
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"ace-builds": "^1.4.12",
|
|
30
|
-
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
31
|
-
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
32
|
-
"survey-core": "1.12.
|
|
33
|
-
"survey-react-ui": "1.12.
|
|
34
|
-
"survey-creator-core": "1.12.
|
|
30
|
+
"react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
|
|
31
|
+
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
|
|
32
|
+
"survey-core": "1.12.15",
|
|
33
|
+
"survey-react-ui": "1.12.15",
|
|
34
|
+
"survey-creator-core": "1.12.15"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"ace-builds": {
|
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v1.12.
|
|
2
|
+
* SurveyJS Creator React v1.12.15
|
|
3
3
|
* (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -737,38 +737,15 @@ var SurveyPageNavigator = /** @class */ (function (_super) {
|
|
|
737
737
|
SurveyPageNavigator.prototype.getStateElement = function () {
|
|
738
738
|
return this.model;
|
|
739
739
|
};
|
|
740
|
-
Object.defineProperty(SurveyPageNavigator.prototype, "scrollableContainer", {
|
|
741
|
-
get: function () {
|
|
742
|
-
var el = this.containerRef.current;
|
|
743
|
-
if (!!el) {
|
|
744
|
-
var self_1 = this;
|
|
745
|
-
return el.parentElement.parentElement.parentElement;
|
|
746
|
-
}
|
|
747
|
-
return el;
|
|
748
|
-
},
|
|
749
|
-
enumerable: false,
|
|
750
|
-
configurable: true
|
|
751
|
-
});
|
|
752
740
|
SurveyPageNavigator.prototype.componentDidMount = function () {
|
|
753
741
|
_super.prototype.componentDidMount.call(this);
|
|
754
742
|
if (this.props.pageEditMode !== "bypage") {
|
|
755
743
|
var el = this.containerRef.current;
|
|
756
|
-
|
|
757
|
-
var self_2 = this;
|
|
758
|
-
el.parentElement.parentElement.parentElement.onscroll = function (ev) {
|
|
759
|
-
return self_2.model.onContainerScroll(ev.currentTarget);
|
|
760
|
-
};
|
|
761
|
-
self_2.model.setItemsContainer(el.parentElement);
|
|
762
|
-
self_2.model.setScrollableContainer(el.parentElement.parentElement.parentElement);
|
|
763
|
-
}
|
|
744
|
+
this.model.attachToUI(el);
|
|
764
745
|
}
|
|
765
746
|
};
|
|
766
747
|
SurveyPageNavigator.prototype.componentWillUnmount = function () {
|
|
767
748
|
_super.prototype.componentWillUnmount.call(this);
|
|
768
|
-
var el = this.containerRef.current;
|
|
769
|
-
if (!!el) {
|
|
770
|
-
el.parentElement.parentElement.parentElement.onscroll = undefined;
|
|
771
|
-
}
|
|
772
749
|
this.model.stopItemsContainerHeightObserver();
|
|
773
750
|
this.model.setScrollableContainer(undefined);
|
|
774
751
|
};
|
|
@@ -807,10 +784,12 @@ var SurveyPageNavigatorItem = /** @class */ (function (_super) {
|
|
|
807
784
|
item.action(item);
|
|
808
785
|
e.stopPropagation();
|
|
809
786
|
} },
|
|
810
|
-
react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: "svc-page-navigator-item__dot", title: item.title }
|
|
787
|
+
react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: "svc-page-navigator-item__dot", title: item.title },
|
|
788
|
+
react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: "svc-page-navigator-item__dot-content" })),
|
|
811
789
|
react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: "svc-page-navigator-item__banner" },
|
|
812
790
|
react__WEBPACK_IMPORTED_MODULE_4__.createElement("span", { className: "svc-page-navigator-item__text" }, item.title),
|
|
813
|
-
react__WEBPACK_IMPORTED_MODULE_4__.createElement("span", { className: "svc-page-navigator-item__dot" }
|
|
791
|
+
react__WEBPACK_IMPORTED_MODULE_4__.createElement("span", { className: "svc-page-navigator-item__dot" },
|
|
792
|
+
react__WEBPACK_IMPORTED_MODULE_4__.createElement("span", { className: "svc-page-navigator-item__dot-content" })))))));
|
|
814
793
|
};
|
|
815
794
|
return SurveyPageNavigatorItem;
|
|
816
795
|
}(_ModelElement__WEBPACK_IMPORTED_MODULE_5__.CreatorModelElement));
|
|
@@ -1182,7 +1161,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1182
1161
|
var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
1183
1162
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyLocStringEditor, _super);
|
|
1184
1163
|
function SurveyLocStringEditor(props) {
|
|
1185
|
-
var _this =
|
|
1164
|
+
var _this = this;
|
|
1165
|
+
var _a;
|
|
1166
|
+
_this = _super.call(this, props) || this;
|
|
1186
1167
|
_this.onChangedHandler = function (sender, options) {
|
|
1187
1168
|
_this.setState({ changed: !!_this.state && _this.state.changed ? _this.state.changed + 1 : 1 });
|
|
1188
1169
|
};
|
|
@@ -1231,6 +1212,9 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1231
1212
|
_this.locString["__isEditing"] = true;
|
|
1232
1213
|
_this.baseModel.onClick(event);
|
|
1233
1214
|
};
|
|
1215
|
+
_this.htmlValue = {
|
|
1216
|
+
__html: (_a = _this.locString) === null || _a === void 0 ? void 0 : _a.renderedHtml
|
|
1217
|
+
};
|
|
1234
1218
|
_this.state = { changed: 0 };
|
|
1235
1219
|
_this.svStringEditorRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
1236
1220
|
return _this;
|
|
@@ -1332,10 +1316,12 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1332
1316
|
}
|
|
1333
1317
|
var control = null;
|
|
1334
1318
|
if (this.locString.hasHtml) {
|
|
1335
|
-
|
|
1319
|
+
if (this.htmlValue.__html !== this.locString.renderedHtml) {
|
|
1320
|
+
this.htmlValue = { __html: this.locString.renderedHtml };
|
|
1321
|
+
}
|
|
1336
1322
|
control = (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor sv-string-editor--html", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
|
|
1337
1323
|
// style={this.style}
|
|
1338
|
-
dangerouslySetInnerHTML: htmlValue, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onMouseUp: this.onMouseUp, onClick: this.edit }));
|
|
1324
|
+
dangerouslySetInnerHTML: this.htmlValue, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onMouseUp: this.onMouseUp, onClick: this.edit }));
|
|
1339
1325
|
}
|
|
1340
1326
|
else {
|
|
1341
1327
|
control = (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
|
|
@@ -3856,6 +3842,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3856
3842
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3857
3843
|
/* harmony import */ var _PageNavigator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../PageNavigator */ "./src/PageNavigator.tsx");
|
|
3858
3844
|
/* harmony import */ var _components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/SurfacePlaceholder */ "./src/components/SurfacePlaceholder.tsx");
|
|
3845
|
+
/* harmony import */ var _components_Scroll__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/Scroll */ "./src/components/Scroll.tsx");
|
|
3846
|
+
|
|
3859
3847
|
|
|
3860
3848
|
|
|
3861
3849
|
|
|
@@ -3941,7 +3929,8 @@ var TabDesignerComponent = /** @class */ (function (_super) {
|
|
|
3941
3929
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
3942
3930
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-flex-column" }, this.model.isToolboxVisible ? survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement("svc-toolbox", { model: this.creator }) : null),
|
|
3943
3931
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: designerTabClassName, onClick: function () { return _this.model.clickDesigner(); } },
|
|
3944
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3932
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_Scroll__WEBPACK_IMPORTED_MODULE_5__.ScrollComponent, null,
|
|
3933
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-tab-designer_content" }, this.model.showPlaceholder ? this.renderPlaceHolder() : this.renderTabContent())))));
|
|
3945
3934
|
};
|
|
3946
3935
|
TabDesignerComponent.prototype.renderHeader = function (condition) {
|
|
3947
3936
|
if (!condition)
|
|
@@ -3965,22 +3954,22 @@ var TabDesignerComponent = /** @class */ (function (_super) {
|
|
|
3965
3954
|
TabDesignerComponent.prototype.renderTabContent = function () {
|
|
3966
3955
|
var survey = this.creator.survey;
|
|
3967
3956
|
var surveyHeader = this.renderHeader(this.creator.allowEditSurveyTitle);
|
|
3968
|
-
var style = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, this.
|
|
3969
|
-
|
|
3970
|
-
style.maxWidth = survey.renderedWidth;
|
|
3971
|
-
}
|
|
3957
|
+
var style = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, this.model.surveyThemeVariables);
|
|
3958
|
+
style.maxWidth = survey.renderedWidth;
|
|
3972
3959
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
3973
3960
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.model.designerCss, style: style },
|
|
3974
3961
|
surveyHeader,
|
|
3975
3962
|
this.getRenderedPages()),
|
|
3976
|
-
this.creator.
|
|
3977
|
-
|
|
3978
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3983
|
-
|
|
3963
|
+
!this.creator.isMobileView ? react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-tab-designer__tools" }, [
|
|
3964
|
+
this.creator.showPageNavigator ?
|
|
3965
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { key: 1, className: "svc-tab-designer__page-navigator" },
|
|
3966
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_PageNavigator__WEBPACK_IMPORTED_MODULE_3__.SurveyPageNavigator, { pagesController: this.model.pagesController, pageEditMode: this.model.creator.pageEditMode }))
|
|
3967
|
+
: null,
|
|
3968
|
+
this.model.hasToolbar ?
|
|
3969
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { key: 2, className: "svc-tab-designer__toolbar" },
|
|
3970
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.surfaceToolbar, handleClick: false }))
|
|
3971
|
+
: null
|
|
3972
|
+
]) : null));
|
|
3984
3973
|
};
|
|
3985
3974
|
return TabDesignerComponent;
|
|
3986
3975
|
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
@@ -4749,12 +4738,17 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
|
|
|
4749
4738
|
return _this;
|
|
4750
4739
|
}
|
|
4751
4740
|
AdaptiveToolbox.prototype.componentDidMount = function () {
|
|
4741
|
+
var _this = this;
|
|
4752
4742
|
_super.prototype.componentDidMount.call(this);
|
|
4753
4743
|
var container = this.rootRef.current;
|
|
4754
4744
|
this.toolbox.setRootElement(container);
|
|
4755
4745
|
if (!container)
|
|
4756
4746
|
return;
|
|
4757
|
-
this.manager = new survey_core__WEBPACK_IMPORTED_MODULE_2__.VerticalResponsivityManager(this.toolbox.containerElement, this.toolbox, this.toolbox.itemSelector, null, undefined, function (callback) { return setTimeout(
|
|
4747
|
+
this.manager = new survey_core__WEBPACK_IMPORTED_MODULE_2__.VerticalResponsivityManager(this.toolbox.containerElement, this.toolbox, this.toolbox.itemSelector, null, undefined, function (callback) { return setTimeout(function () {
|
|
4748
|
+
if (!_this.toolbox.isResponsivenessDisabled) {
|
|
4749
|
+
callback();
|
|
4750
|
+
}
|
|
4751
|
+
}, 10); });
|
|
4758
4752
|
};
|
|
4759
4753
|
AdaptiveToolbox.prototype.componentWillUnmount = function () {
|
|
4760
4754
|
this.manager && (this.manager.dispose());
|
|
@@ -5491,7 +5485,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5491
5485
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
5492
5486
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_63__);
|
|
5493
5487
|
var Version;
|
|
5494
|
-
Version = "".concat("1.12.
|
|
5488
|
+
Version = "".concat("1.12.15");
|
|
5495
5489
|
// import "@survey/creator/survey-creator-core.css";
|
|
5496
5490
|
|
|
5497
5491
|
|
|
@@ -5564,7 +5558,7 @@ Version = "".concat("1.12.13");
|
|
|
5564
5558
|
|
|
5565
5559
|
|
|
5566
5560
|
|
|
5567
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("1.12.
|
|
5561
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("1.12.15"), "survey-creator-react");
|
|
5568
5562
|
|
|
5569
5563
|
})();
|
|
5570
5564
|
|