survey-creator-react 1.12.4 → 1.12.5
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 +4 -4
- package/survey-creator-react.js +39 -28
- 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/SurveyCreator.d.ts +1 -1
- package/typings/TabbedMenu.d.ts +4 -4
- package/typings/toolbox/ToolboxItem.d.ts +9 -3
- package/typings/toolbox/ToolboxItemGroup.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.5",
|
|
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.5",
|
|
33
|
+
"survey-react-ui": "1.12.5",
|
|
34
|
+
"survey-creator-core": "1.12.5"
|
|
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.5
|
|
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
|
|
@@ -1476,8 +1476,7 @@ var SurveyCreatorComponent = /** @class */ (function (_super) {
|
|
|
1476
1476
|
};
|
|
1477
1477
|
SurveyCreatorComponent.prototype.renderSidebar = function () {
|
|
1478
1478
|
if (!!this.creator.sidebar) {
|
|
1479
|
-
|
|
1480
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: className }, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement("svc-side-bar", { model: this.creator.sidebar })));
|
|
1479
|
+
return survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement("svc-side-bar", { model: this.creator.sidebar });
|
|
1481
1480
|
}
|
|
1482
1481
|
else {
|
|
1483
1482
|
return null;
|
|
@@ -1692,16 +1691,9 @@ var TabbedMenuItemComponent = /** @class */ (function (_super) {
|
|
|
1692
1691
|
};
|
|
1693
1692
|
TabbedMenuItemComponent.prototype.render = function () {
|
|
1694
1693
|
var item = this.item;
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
className
|
|
1698
|
-
if (item.enabled !== undefined && !item.enabled)
|
|
1699
|
-
className += " svc-tabbed-menu-item--disabled";
|
|
1700
|
-
var titleClassName = "svc-text svc-tabbed-menu-item__text svc-text--normal";
|
|
1701
|
-
if (item.active)
|
|
1702
|
-
titleClassName += " svc-text--bold";
|
|
1703
|
-
return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: className, onClick: function () { return item.action(item); } },
|
|
1704
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: titleClassName }, item.title))));
|
|
1694
|
+
return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: item.getRootCss(), onClick: function () { return item.action(item); } },
|
|
1695
|
+
item.hasTitle ? react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: item.getTitleCss() }, item.title) : null,
|
|
1696
|
+
item.hasIcon ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: item.iconName, className: item.getIconCss(), size: "auto", title: item.tooltip || item.title }) : null)));
|
|
1705
1697
|
};
|
|
1706
1698
|
return TabbedMenuItemComponent;
|
|
1707
1699
|
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
@@ -3450,20 +3442,21 @@ var SidebarComponent = /** @class */ (function (_super) {
|
|
|
3450
3442
|
};
|
|
3451
3443
|
SidebarComponent.prototype.renderElement = function () {
|
|
3452
3444
|
var _this = this;
|
|
3453
|
-
var style = { display:
|
|
3454
|
-
var
|
|
3445
|
+
var style = { display: this.model.renderRoot ? "" : "none" };
|
|
3446
|
+
var containerStyle = { display: this.model.renderContainer ? "" : "none" };
|
|
3455
3447
|
var items = this.model.pages.map(function (page) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SidebarPage, { page: page, key: page.id }); });
|
|
3456
3448
|
var headerArea = survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(this.model.header.component, { model: this.model.header.componentModel });
|
|
3457
3449
|
var sideArea = null;
|
|
3458
3450
|
if (this.model.sideAreaComponentName) {
|
|
3459
3451
|
sideArea = survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(this.model.sideAreaComponentName, { model: this.model.sideAreaComponentData });
|
|
3460
3452
|
}
|
|
3461
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className:
|
|
3462
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__shadow", onClick: function () { return _this.model.collapseSidebar(); } }),
|
|
3453
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.model.rootCss, style: style },
|
|
3454
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__shadow", onClick: function () { return _this.model.collapseSidebar(); }, style: containerStyle }),
|
|
3463
3455
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-flex-row svc-side-bar__wrapper" },
|
|
3464
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
3465
|
-
|
|
3466
|
-
|
|
3456
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-wrapper", style: containerStyle },
|
|
3457
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.containerRef, className: "svc-side-bar__container" },
|
|
3458
|
+
headerArea,
|
|
3459
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-content" }, items))),
|
|
3467
3460
|
sideArea)));
|
|
3468
3461
|
};
|
|
3469
3462
|
return SidebarComponent;
|
|
@@ -4971,6 +4964,7 @@ var SurveyCreatorToolboxTool = /** @class */ (function (_super) {
|
|
|
4971
4964
|
item: item,
|
|
4972
4965
|
creator: this.creator,
|
|
4973
4966
|
parentModel: this.creator.toolbox,
|
|
4967
|
+
model: this.model,
|
|
4974
4968
|
isCompact: this.isCompact
|
|
4975
4969
|
});
|
|
4976
4970
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: item.css, key: item.id },
|
|
@@ -4979,7 +4973,7 @@ var SurveyCreatorToolboxTool = /** @class */ (function (_super) {
|
|
|
4979
4973
|
event.persist();
|
|
4980
4974
|
_this.model.onPointerDown(event);
|
|
4981
4975
|
}, onMouseOver: function (event) {
|
|
4982
|
-
_this.model.
|
|
4976
|
+
_this.model.onMouseOverTool(item, event);
|
|
4983
4977
|
}, onMouseLeave: function (event) {
|
|
4984
4978
|
_this.model.onMouseLeave(item, event);
|
|
4985
4979
|
} }, itemComponent)));
|
|
@@ -4992,10 +4986,6 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
|
|
|
4992
4986
|
function SurveyCreatorToolboxItem(props) {
|
|
4993
4987
|
return _super.call(this, props) || this;
|
|
4994
4988
|
}
|
|
4995
|
-
SurveyCreatorToolboxItem.prototype.createModel = function (props) {
|
|
4996
|
-
var toolboxItem = props.item;
|
|
4997
|
-
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.ToolboxToolViewModel(toolboxItem, props.creator, props.parentModel);
|
|
4998
|
-
};
|
|
4999
4989
|
SurveyCreatorToolboxItem.prototype.getUpdatedModelProps = function () {
|
|
5000
4990
|
return ["creator", "item"];
|
|
5001
4991
|
};
|
|
@@ -5013,6 +5003,13 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
|
|
|
5013
5003
|
enumerable: false,
|
|
5014
5004
|
configurable: true
|
|
5015
5005
|
});
|
|
5006
|
+
Object.defineProperty(SurveyCreatorToolboxItem.prototype, "model", {
|
|
5007
|
+
get: function () {
|
|
5008
|
+
return this.props.model;
|
|
5009
|
+
},
|
|
5010
|
+
enumerable: false,
|
|
5011
|
+
configurable: true
|
|
5012
|
+
});
|
|
5016
5013
|
SurveyCreatorToolboxItem.prototype.getStateElement = function () {
|
|
5017
5014
|
return this.model;
|
|
5018
5015
|
};
|
|
@@ -5077,6 +5074,13 @@ var SurveyCreatorToolboxItemGroup = /** @class */ (function (_super) {
|
|
|
5077
5074
|
enumerable: false,
|
|
5078
5075
|
configurable: true
|
|
5079
5076
|
});
|
|
5077
|
+
Object.defineProperty(SurveyCreatorToolboxItemGroup.prototype, "model", {
|
|
5078
|
+
get: function () {
|
|
5079
|
+
return this.props.model;
|
|
5080
|
+
},
|
|
5081
|
+
enumerable: false,
|
|
5082
|
+
configurable: true
|
|
5083
|
+
});
|
|
5080
5084
|
Object.defineProperty(SurveyCreatorToolboxItemGroup.prototype, "creator", {
|
|
5081
5085
|
get: function () {
|
|
5082
5086
|
return this.props.creator;
|
|
@@ -5102,8 +5106,11 @@ var SurveyCreatorToolboxItemGroup = /** @class */ (function (_super) {
|
|
|
5102
5106
|
return this.item;
|
|
5103
5107
|
};
|
|
5104
5108
|
SurveyCreatorToolboxItemGroup.prototype.render = function () {
|
|
5109
|
+
var _this = this;
|
|
5105
5110
|
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
5106
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ToolboxItem__WEBPACK_IMPORTED_MODULE_4__.SurveyCreatorToolboxItem, { item: this.item, creator: this.creator, parentModel: this.parentModel, isCompact: this.isCompact }),
|
|
5111
|
+
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 }),
|
|
5112
|
+
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); } },
|
|
5113
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: 24, iconName: this.item.subitemsButtonIcon })),
|
|
5107
5114
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.item.popupModel, getArea: this.item.getArea }));
|
|
5108
5115
|
};
|
|
5109
5116
|
return SurveyCreatorToolboxItemGroup;
|
|
@@ -5300,6 +5307,8 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_survey_react_ui__;
|
|
|
5300
5307
|
/******/
|
|
5301
5308
|
/************************************************************************/
|
|
5302
5309
|
var __webpack_exports__ = {};
|
|
5310
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
5311
|
+
(() => {
|
|
5303
5312
|
/*!******************************!*\
|
|
5304
5313
|
!*** ./src/entries/index.ts ***!
|
|
5305
5314
|
\******************************/
|
|
@@ -5450,7 +5459,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5450
5459
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
5451
5460
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_64__);
|
|
5452
5461
|
var Version;
|
|
5453
|
-
Version = "".concat("1.12.
|
|
5462
|
+
Version = "".concat("1.12.5");
|
|
5454
5463
|
// import "@survey/creator/survey-creator-core.css";
|
|
5455
5464
|
|
|
5456
5465
|
|
|
@@ -5524,7 +5533,9 @@ Version = "".concat("1.12.4");
|
|
|
5524
5533
|
|
|
5525
5534
|
|
|
5526
5535
|
|
|
5527
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_64__.checkLibraryVersion)("".concat("1.12.
|
|
5536
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_64__.checkLibraryVersion)("".concat("1.12.5"), "survey-creator-react");
|
|
5537
|
+
|
|
5538
|
+
})();
|
|
5528
5539
|
|
|
5529
5540
|
/******/ return __webpack_exports__;
|
|
5530
5541
|
/******/ })()
|