survey-creator-react 1.12.14 → 1.12.16
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/package.json +6 -6
- package/survey-creator-react.js +35 -43
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.16",
|
|
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.16",
|
|
33
|
+
"survey-react-ui": "1.12.16",
|
|
34
|
+
"survey-creator-core": "1.12.16"
|
|
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.16
|
|
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
|
};
|
|
@@ -1184,7 +1161,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1184
1161
|
var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
1185
1162
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyLocStringEditor, _super);
|
|
1186
1163
|
function SurveyLocStringEditor(props) {
|
|
1187
|
-
var _this =
|
|
1164
|
+
var _this = this;
|
|
1165
|
+
var _a;
|
|
1166
|
+
_this = _super.call(this, props) || this;
|
|
1188
1167
|
_this.onChangedHandler = function (sender, options) {
|
|
1189
1168
|
_this.setState({ changed: !!_this.state && _this.state.changed ? _this.state.changed + 1 : 1 });
|
|
1190
1169
|
};
|
|
@@ -1233,6 +1212,9 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1233
1212
|
_this.locString["__isEditing"] = true;
|
|
1234
1213
|
_this.baseModel.onClick(event);
|
|
1235
1214
|
};
|
|
1215
|
+
_this.htmlValue = {
|
|
1216
|
+
__html: (_a = _this.locString) === null || _a === void 0 ? void 0 : _a.renderedHtml
|
|
1217
|
+
};
|
|
1236
1218
|
_this.state = { changed: 0 };
|
|
1237
1219
|
_this.svStringEditorRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
1238
1220
|
return _this;
|
|
@@ -1334,10 +1316,12 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1334
1316
|
}
|
|
1335
1317
|
var control = null;
|
|
1336
1318
|
if (this.locString.hasHtml) {
|
|
1337
|
-
|
|
1319
|
+
if (this.htmlValue.__html !== this.locString.renderedHtml) {
|
|
1320
|
+
this.htmlValue = { __html: this.locString.renderedHtml };
|
|
1321
|
+
}
|
|
1338
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,
|
|
1339
1323
|
// style={this.style}
|
|
1340
|
-
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 }));
|
|
1341
1325
|
}
|
|
1342
1326
|
else {
|
|
1343
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,
|
|
@@ -3858,6 +3842,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3858
3842
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3859
3843
|
/* harmony import */ var _PageNavigator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../PageNavigator */ "./src/PageNavigator.tsx");
|
|
3860
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
|
+
|
|
3861
3847
|
|
|
3862
3848
|
|
|
3863
3849
|
|
|
@@ -3943,7 +3929,8 @@ var TabDesignerComponent = /** @class */ (function (_super) {
|
|
|
3943
3929
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
3944
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),
|
|
3945
3931
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: designerTabClassName, onClick: function () { return _this.model.clickDesigner(); } },
|
|
3946
|
-
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())))));
|
|
3947
3934
|
};
|
|
3948
3935
|
TabDesignerComponent.prototype.renderHeader = function (condition) {
|
|
3949
3936
|
if (!condition)
|
|
@@ -3968,21 +3955,21 @@ var TabDesignerComponent = /** @class */ (function (_super) {
|
|
|
3968
3955
|
var survey = this.creator.survey;
|
|
3969
3956
|
var surveyHeader = this.renderHeader(this.creator.allowEditSurveyTitle);
|
|
3970
3957
|
var style = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, this.model.surveyThemeVariables);
|
|
3971
|
-
|
|
3972
|
-
style.maxWidth = survey.renderedWidth;
|
|
3973
|
-
}
|
|
3958
|
+
style.maxWidth = survey.renderedWidth;
|
|
3974
3959
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
3975
3960
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.model.designerCss, style: style },
|
|
3976
3961
|
surveyHeader,
|
|
3977
3962
|
this.getRenderedPages()),
|
|
3978
|
-
this.creator.
|
|
3979
|
-
|
|
3980
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3985
|
-
|
|
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));
|
|
3986
3973
|
};
|
|
3987
3974
|
return TabDesignerComponent;
|
|
3988
3975
|
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
@@ -4751,12 +4738,17 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
|
|
|
4751
4738
|
return _this;
|
|
4752
4739
|
}
|
|
4753
4740
|
AdaptiveToolbox.prototype.componentDidMount = function () {
|
|
4741
|
+
var _this = this;
|
|
4754
4742
|
_super.prototype.componentDidMount.call(this);
|
|
4755
4743
|
var container = this.rootRef.current;
|
|
4756
4744
|
this.toolbox.setRootElement(container);
|
|
4757
4745
|
if (!container)
|
|
4758
4746
|
return;
|
|
4759
|
-
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); });
|
|
4760
4752
|
};
|
|
4761
4753
|
AdaptiveToolbox.prototype.componentWillUnmount = function () {
|
|
4762
4754
|
this.manager && (this.manager.dispose());
|
|
@@ -5493,7 +5485,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5493
5485
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
5494
5486
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_63__);
|
|
5495
5487
|
var Version;
|
|
5496
|
-
Version = "".concat("1.12.
|
|
5488
|
+
Version = "".concat("1.12.16");
|
|
5497
5489
|
// import "@survey/creator/survey-creator-core.css";
|
|
5498
5490
|
|
|
5499
5491
|
|
|
@@ -5566,7 +5558,7 @@ Version = "".concat("1.12.14");
|
|
|
5566
5558
|
|
|
5567
5559
|
|
|
5568
5560
|
|
|
5569
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("1.12.
|
|
5561
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("1.12.16"), "survey-creator-react");
|
|
5570
5562
|
|
|
5571
5563
|
})();
|
|
5572
5564
|
|