survey-creator-react 1.12.10 → 1.12.11
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.11",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"ace-builds": "^1.4.12",
|
|
30
30
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
31
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.
|
|
32
|
+
"survey-core": "1.12.11",
|
|
33
|
+
"survey-react-ui": "1.12.11",
|
|
34
|
+
"survey-creator-core": "1.12.11"
|
|
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.11
|
|
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
|
|
@@ -774,12 +774,12 @@ var SurveyPageNavigator = /** @class */ (function (_super) {
|
|
|
774
774
|
};
|
|
775
775
|
SurveyPageNavigator.prototype.renderElement = function () {
|
|
776
776
|
var _this = this;
|
|
777
|
-
var className = "svc-page-navigator__selector";
|
|
777
|
+
var className = "svc-page-navigator__selector svc-page-navigator__button";
|
|
778
778
|
if (this.model.isPopupOpened)
|
|
779
|
-
className += " svc-page-
|
|
779
|
+
className += " svc-page-navigator__button--pressed";
|
|
780
780
|
return (react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: "svc-page-navigator", ref: this.containerRef, style: { display: this.model.visible ? "flex" : "none" } },
|
|
781
781
|
(0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: className, onClick: function () { return _this.model.togglePageSelector(); }, title: this.model.pageSelectorCaption },
|
|
782
|
-
react__WEBPACK_IMPORTED_MODULE_4__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-page-
|
|
782
|
+
react__WEBPACK_IMPORTED_MODULE_4__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-page-navigator__button-icon", iconName: this.model.icon, size: "auto", title: this.model.pageSelectorCaption }),
|
|
783
783
|
react__WEBPACK_IMPORTED_MODULE_4__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.model.popupModel }))),
|
|
784
784
|
react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", null, this.model.visibleItems.map(function (item) { return (react__WEBPACK_IMPORTED_MODULE_4__.createElement(SurveyPageNavigatorItem, { key: item.id, item: item })); }))));
|
|
785
785
|
};
|
|
@@ -2615,6 +2615,9 @@ var RowWrapper = /** @class */ (function (_super) {
|
|
|
2615
2615
|
return _super.call(this, props) || this;
|
|
2616
2616
|
}
|
|
2617
2617
|
RowWrapper.prototype.createModel = function (props) {
|
|
2618
|
+
if (!!this.model) {
|
|
2619
|
+
this.model.dispose();
|
|
2620
|
+
}
|
|
2618
2621
|
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.RowViewModel(props.componentData.creator, props.row, null);
|
|
2619
2622
|
};
|
|
2620
2623
|
RowWrapper.prototype.getUpdatedModelProps = function () {
|
|
@@ -2623,6 +2626,14 @@ var RowWrapper = /** @class */ (function (_super) {
|
|
|
2623
2626
|
RowWrapper.prototype.getStateElement = function () {
|
|
2624
2627
|
return this.model;
|
|
2625
2628
|
};
|
|
2629
|
+
RowWrapper.prototype.componentDidMount = function () {
|
|
2630
|
+
_super.prototype.componentDidMount.call(this);
|
|
2631
|
+
this.model.subscribeElementChanges();
|
|
2632
|
+
};
|
|
2633
|
+
RowWrapper.prototype.componentWillUnmount = function () {
|
|
2634
|
+
this.model.unsubscribeElementChanges();
|
|
2635
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
2636
|
+
};
|
|
2626
2637
|
RowWrapper.prototype.render = function () {
|
|
2627
2638
|
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { key: "svc-row-" + this.props.row.id, className: this.model.cssClasses },
|
|
2628
2639
|
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-row__drop-indicator svc-row__drop-indicator--top" }),
|
|
@@ -3621,11 +3632,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3621
3632
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3622
3633
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3623
3634
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3624
|
-
/* harmony import */ var
|
|
3625
|
-
/* harmony import */ var
|
|
3626
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3627
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
3628
|
-
|
|
3635
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3636
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3629
3637
|
|
|
3630
3638
|
|
|
3631
3639
|
|
|
@@ -3646,7 +3654,7 @@ var SideBarPropertyGridHeader = /** @class */ (function (_super) {
|
|
|
3646
3654
|
};
|
|
3647
3655
|
SideBarPropertyGridHeader.prototype.renderElement = function () {
|
|
3648
3656
|
var _this = this;
|
|
3649
|
-
var button = (0,
|
|
3657
|
+
var button = (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.objectSelectionAction.buttonClassName, onClick: function () { return _this.objectSelectionAction.action(); } },
|
|
3650
3658
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-caption" },
|
|
3651
3659
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-title" }, this.objectSelectionAction.title),
|
|
3652
3660
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-subtitle" }, this.objectSelectionAction.tooltip))), this.props.model);
|
|
@@ -3654,11 +3662,11 @@ var SideBarPropertyGridHeader = /** @class */ (function (_super) {
|
|
|
3654
3662
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" },
|
|
3655
3663
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-content" },
|
|
3656
3664
|
button,
|
|
3657
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3665
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.objectSelectionAction.popupModel })))));
|
|
3658
3666
|
};
|
|
3659
3667
|
return SideBarPropertyGridHeader;
|
|
3660
|
-
}(
|
|
3661
|
-
|
|
3668
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3669
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-side-bar-property-grid-header", function (props) {
|
|
3662
3670
|
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SideBarPropertyGridHeader, props);
|
|
3663
3671
|
});
|
|
3664
3672
|
|
|
@@ -3911,7 +3919,7 @@ var TabDesignerComponent = /** @class */ (function (_super) {
|
|
|
3911
3919
|
: null,
|
|
3912
3920
|
this.model.hasToolbar ?
|
|
3913
3921
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-tab-designer__toolbar" },
|
|
3914
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.
|
|
3922
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.surfaceToolbar, handleClick: false }))
|
|
3915
3923
|
: null));
|
|
3916
3924
|
};
|
|
3917
3925
|
return TabDesignerComponent;
|
|
@@ -4689,6 +4697,7 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
|
|
|
4689
4697
|
AdaptiveToolbox.prototype.componentWillUnmount = function () {
|
|
4690
4698
|
this.manager && (this.manager.dispose());
|
|
4691
4699
|
this.toolbox.unsubscribeRootElement();
|
|
4700
|
+
this.toolbox.setRootElement(undefined);
|
|
4692
4701
|
_super.prototype.componentWillUnmount.call(this);
|
|
4693
4702
|
};
|
|
4694
4703
|
AdaptiveToolbox.prototype.renderSearch = function () {
|
|
@@ -5124,7 +5133,7 @@ var SurveyCreatorToolboxItemGroup = /** @class */ (function (_super) {
|
|
|
5124
5133
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ToolboxItem__WEBPACK_IMPORTED_MODULE_4__.SurveyCreatorToolboxItem, { item: this.item, creator: this.creator, model: this.model, parentModel: this.parentModel, isCompact: this.isCompact }),
|
|
5125
5134
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__item-submenu-button", onMouseOver: function (event) { return _this.model.onMouseOver(_this.item, event); }, onMouseLeave: function (event) { return _this.model.onMouseLeave(_this.item, event); } },
|
|
5126
5135
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: "auto", iconName: this.item.subitemsButtonIcon }),
|
|
5127
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.item.popupModel
|
|
5136
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.item.popupModel })));
|
|
5128
5137
|
};
|
|
5129
5138
|
return SurveyCreatorToolboxItemGroup;
|
|
5130
5139
|
}(_ModelElement__WEBPACK_IMPORTED_MODULE_3__.CreatorModelElement));
|
|
@@ -5472,7 +5481,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5472
5481
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
5473
5482
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_64__);
|
|
5474
5483
|
var Version;
|
|
5475
|
-
Version = "".concat("1.12.
|
|
5484
|
+
Version = "".concat("1.12.11");
|
|
5476
5485
|
// import "@survey/creator/survey-creator-core.css";
|
|
5477
5486
|
|
|
5478
5487
|
|
|
@@ -5546,7 +5555,7 @@ Version = "".concat("1.12.10");
|
|
|
5546
5555
|
|
|
5547
5556
|
|
|
5548
5557
|
|
|
5549
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_64__.checkLibraryVersion)("".concat("1.12.
|
|
5558
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_64__.checkLibraryVersion)("".concat("1.12.11"), "survey-creator-react");
|
|
5550
5559
|
|
|
5551
5560
|
})();
|
|
5552
5561
|
|