survey-creator-react 1.9.126 → 1.9.128

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.9.126",
3
+ "version": "1.9.128",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -36,9 +36,9 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "survey-core": "1.9.126",
40
- "survey-react-ui": "1.9.126",
41
- "survey-creator-core": "1.9.126"
39
+ "survey-core": "1.9.128",
40
+ "survey-react-ui": "1.9.128",
41
+ "survey-creator-core": "1.9.128"
42
42
  },
43
43
  "devDependencies": {}
44
44
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator React v1.9.126
2
+ * SurveyJS Creator React v1.9.128
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
@@ -1639,9 +1639,9 @@ var SurveyCreatorComponent = /** @class */ (function (_super) {
1639
1639
  var fullContainerClassName = "svc-flex-row svc-full-container" + (" svc-creator__side-bar--" + this.creator.sidebarLocation);
1640
1640
  var licenseBanner = null;
1641
1641
  if (!this.props.creator.haveCommercialLicense) {
1642
+ var htmlValue = { __html: this.props.creator.licenseText };
1642
1643
  licenseBanner = (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-creator__banner" },
1643
- react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-creator__non-commercial-text" },
1644
- react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("a", { href: "https://surveyjs.io/buy" }, this.props.creator.licenseText))));
1644
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-creator__non-commercial-text", dangerouslySetInnerHTML: htmlValue })));
1645
1645
  }
1646
1646
  //AM: width unrecognized by react
1647
1647
  return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: creatorClassName, ref: this.rootNode, style: this.style },
@@ -1743,7 +1743,7 @@ var SurveyCreator = /** @class */ (function (_super) {
1743
1743
  return this.survey.questionErrorLocation;
1744
1744
  };
1745
1745
  return SurveyCreator;
1746
- }(survey_creator_core__WEBPACK_IMPORTED_MODULE_4__["CreatorBase"]));
1746
+ }(survey_creator_core__WEBPACK_IMPORTED_MODULE_4__["SurveyCreatorModel"]));
1747
1747
 
1748
1748
  survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("survey-widget", function (props) {
1749
1749
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["Survey"], props);
@@ -2223,19 +2223,21 @@ var PanelAdornerComponent = /** @class */ (function (_super) {
2223
2223
  var _this = this;
2224
2224
  return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment, null,
2225
2225
  !this.model.isEmptyElement && this.model.element.isPanel && this.model.showAddQuestionButton ? (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-panel__add-new-question-container" },
2226
- Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-panel__add-new-question svc-action-button", onClick: function (e) {
2227
- e.stopPropagation();
2228
- _this.model.addNewQuestion();
2229
- } },
2230
- react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { className: "svc-panel__add-new-question-icon", iconName: "icon-add_24x24", size: 24 }),
2231
- react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-text svc-text--normal svc-text--bold" }, this.model.addNewQuestionText)), undefined),
2232
- Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", { type: "button", onClick: function (e) {
2233
- e.stopPropagation();
2234
- _this.model.questionTypeSelectorModel.action();
2235
- }, className: "svc-panel__question-type-selector", title: this.model.addNewQuestionText },
2236
- react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-panel__question-type-selector-icon" },
2237
- react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.model.questionTypeSelectorModel.iconName, size: 24 })),
2238
- react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["Popup"], { model: this.model.questionTypeSelectorModel.popupModel }))))) : null,
2226
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-panel__question-type-selector-popup" },
2227
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["Popup"], { model: this.model.questionTypeSelectorModel.popupModel })),
2228
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-panel__add-new-question-wrapper" },
2229
+ Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-panel__add-new-question svc-action-button", onClick: function (e) {
2230
+ e.stopPropagation();
2231
+ _this.model.addNewQuestion();
2232
+ } },
2233
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { className: "svc-panel__add-new-question-icon", iconName: "icon-add_24x24", size: 24 }),
2234
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-text svc-text--normal svc-text--bold" }, this.model.addNewQuestionText)), undefined),
2235
+ Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", { type: "button", onClick: function (e) {
2236
+ e.stopPropagation();
2237
+ _this.model.questionTypeSelectorModel.action();
2238
+ }, className: "svc-panel__question-type-selector", title: this.model.addNewQuestionText },
2239
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-panel__question-type-selector-icon" },
2240
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.model.questionTypeSelectorModel.iconName, size: 24 }))))))) : null,
2239
2241
  _super.prototype.renderFooter.call(this)));
2240
2242
  };
2241
2243
  return PanelAdornerComponent;
@@ -3402,7 +3404,7 @@ __webpack_require__.r(__webpack_exports__);
3402
3404
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! survey-core */ "survey-core");
3403
3405
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_53___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_53__);
3404
3406
  var Version;
3405
- Version = "".concat("1.9.126");
3407
+ Version = "".concat("1.9.128");
3406
3408
  // import "@survey/creator/survey-creator-core.css";
3407
3409
 
3408
3410
 
@@ -3465,7 +3467,7 @@ Version = "".concat("1.9.126");
3465
3467
 
3466
3468
 
3467
3469
 
3468
- Object(survey_core__WEBPACK_IMPORTED_MODULE_53__["checkLibraryVersion"])("".concat("1.9.126"), "survey-creator-react");
3470
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_53__["checkLibraryVersion"])("".concat("1.9.128"), "survey-creator-react");
3469
3471
 
3470
3472
 
3471
3473
  /***/ }),
@@ -4154,10 +4156,6 @@ var SurveySimulator = /** @class */ (function (_super) {
4154
4156
  width: this.model.simulatorFrame.frameWidth + "px",
4155
4157
  height: this.model.simulatorFrame.frameHeight + "px"
4156
4158
  } },
4157
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svd-simulator-frame " + this.model.simulatorFrame.cssClass, style: {
4158
- width: this.model.simulatorFrame.landscapedFrameWidth + "px",
4159
- height: this.model.simulatorFrame.landscapedFrameHeight + "px"
4160
- } }),
4161
4159
  react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svd-simulator", style: {
4162
4160
  width: this.model.simulatorFrame.deviceWidth + "px",
4163
4161
  height: this.model.simulatorFrame.deviceHeight + "px",