survey-creator-react 1.9.104 → 1.9.105

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.104",
3
+ "version": "1.9.105",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -34,9 +34,9 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "survey-core": "1.9.104",
38
- "survey-react-ui": "1.9.104",
39
- "survey-creator-core": "1.9.104",
37
+ "survey-core": "1.9.105",
38
+ "survey-react-ui": "1.9.105",
39
+ "survey-creator-core": "1.9.105",
40
40
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0",
41
41
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
42
42
  },
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator React v1.9.104
2
+ * SurveyJS Creator React v1.9.105
3
3
  * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -2858,7 +2858,7 @@ var SurveyQuestionFileEditor = /** @class */ (function (_super) {
2858
2858
  SurveyQuestionFileEditor.prototype.renderInput = function () {
2859
2859
  var _this = this;
2860
2860
  return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
2861
- react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { disabled: this.isDisplayMode, className: this.questionFile.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, autoComplete: "off", onBlur: function (event) { return _this.questionFile.onInputBlur(event.nativeEvent); }, onChange: function (event) { return _this.questionFile.onInputChange(event.nativeEvent); } })));
2861
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { disabled: this.isDisplayMode, className: this.questionFile.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, autoComplete: "off", type: "text", onBlur: function (event) { return _this.questionFile.onInputBlur(event.nativeEvent); }, onChange: function (event) { return _this.questionFile.onInputChange(event.nativeEvent); } })));
2862
2862
  };
2863
2863
  SurveyQuestionFileEditor.prototype.renderButtons = function () {
2864
2864
  return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.questionFile.cssClasses.buttonsContainer },
@@ -3204,7 +3204,7 @@ __webpack_require__.r(__webpack_exports__);
3204
3204
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! survey-core */ "survey-core");
3205
3205
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_50__);
3206
3206
  var Version;
3207
- Version = "".concat("1.9.104");
3207
+ Version = "".concat("1.9.105");
3208
3208
  // import "@survey/creator/survey-creator-core.css";
3209
3209
 
3210
3210
 
@@ -3264,7 +3264,7 @@ Version = "".concat("1.9.104");
3264
3264
 
3265
3265
 
3266
3266
 
3267
- Object(survey_core__WEBPACK_IMPORTED_MODULE_50__["checkLibraryVersion"])("".concat("1.9.104"), "survey-creator-react");
3267
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_50__["checkLibraryVersion"])("".concat("1.9.105"), "survey-creator-react");
3268
3268
 
3269
3269
 
3270
3270
  /***/ }),
@@ -4442,10 +4442,10 @@ __webpack_require__.r(__webpack_exports__);
4442
4442
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyCreatorToolboxTool", function() { return SurveyCreatorToolboxTool; });
4443
4443
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyCreatorToolboxItem", function() { return SurveyCreatorToolboxItem; });
4444
4444
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
4445
- /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
4446
- /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_1__);
4447
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
4448
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
4445
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
4446
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
4447
+ /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
4448
+ /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_2__);
4449
4449
  /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
4450
4450
  /* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
4451
4451
  /* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
@@ -4454,14 +4454,13 @@ __webpack_require__.r(__webpack_exports__);
4454
4454
 
4455
4455
 
4456
4456
 
4457
-
4458
4457
  var SurveyCreatorToolboxTool = /** @class */ (function (_super) {
4459
4458
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyCreatorToolboxTool, _super);
4460
4459
  function SurveyCreatorToolboxTool(props) {
4461
4460
  return _super.call(this, props) || this;
4462
4461
  }
4463
4462
  SurveyCreatorToolboxTool.prototype.createModel = function () {
4464
- this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__["ToolboxToolViewModel"](this.item, this.props.creator);
4463
+ this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__["ToolboxToolViewModel"](this.item, this.props.creator);
4465
4464
  };
4466
4465
  SurveyCreatorToolboxTool.prototype.getUpdatedModelProps = function () {
4467
4466
  return ["creator", "item"];
@@ -4499,12 +4498,12 @@ var SurveyCreatorToolboxTool = /** @class */ (function (_super) {
4499
4498
  creator: this.creator,
4500
4499
  isCompact: this.isCompact
4501
4500
  });
4502
- return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: className, key: item.id, onPointerDown: function (event) {
4501
+ return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: className, key: item.id, onPointerDown: function (event) {
4503
4502
  event.persist();
4504
4503
  _this.model.onPointerDown(event);
4505
4504
  } },
4506
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "sv-action__content" },
4507
- (item.needSeparator && !this.creator.toolbox.showCategoryTitles) ? (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-toolbox__category-separator" })) : null,
4505
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "sv-action__content" },
4506
+ (item.needSeparator && !this.creator.toolbox.showCategoryTitles) ? (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-toolbox__category-separator" })) : null,
4508
4507
  itemComponent)));
4509
4508
  };
4510
4509
  return SurveyCreatorToolboxTool;
@@ -4517,7 +4516,7 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
4517
4516
  }
4518
4517
  SurveyCreatorToolboxItem.prototype.createModel = function () {
4519
4518
  var toolboxItem = this.props.item;
4520
- this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__["ToolboxToolViewModel"](toolboxItem, this.props.creator);
4519
+ this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__["ToolboxToolViewModel"](toolboxItem, this.props.creator);
4521
4520
  };
4522
4521
  SurveyCreatorToolboxItem.prototype.getUpdatedModelProps = function () {
4523
4522
  return ["creator", "item"];
@@ -4541,26 +4540,24 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
4541
4540
  };
4542
4541
  SurveyCreatorToolboxItem.prototype.render = function () {
4543
4542
  var _this = this;
4544
- var className = "svc-toolbox__item svc-toolbox__item--" + this.item.iconName;
4545
- var ariaLabel = this.item.tooltip + " " + survey_creator_core__WEBPACK_IMPORTED_MODULE_1__["editorLocalization"].getString("toolbox") + " item";
4546
- return Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: className, tabIndex: 0, role: "button", "aria-label": ariaLabel, onClick: function (event) {
4543
+ return Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: this.item.className, tabIndex: 0, role: "button", "aria-label": this.item.tooltip, title: this.item.tooltip, onClick: function (event) {
4547
4544
  event.persist();
4548
4545
  _this.model.click(event);
4549
4546
  } },
4550
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-toolbox__item-container" },
4551
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: this.item.iconName, title: ariaLabel })),
4547
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-toolbox__item-container" },
4548
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: this.item.iconName, title: this.item.tooltip })),
4552
4549
  (this.props.isCompact ?
4553
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-toolbox__item-banner svc-item__banner" },
4554
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: this.item.iconName, className: "svc-toolbox__item-icon", title: ariaLabel }),
4555
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-toolbox__item-title" }, this.item.title))
4550
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-toolbox__item-banner svc-item__banner" },
4551
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: this.item.iconName, className: "svc-toolbox__item-icon", title: this.item.tooltip }),
4552
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-toolbox__item-title" }, this.item.title))
4556
4553
  :
4557
- react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-toolbox__item-title" }, this.item.title))));
4554
+ react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-toolbox__item-title" }, this.item.title))));
4558
4555
  };
4559
4556
  return SurveyCreatorToolboxItem;
4560
4557
  }(_ModelElement__WEBPACK_IMPORTED_MODULE_4__["CreatorModelElement"]));
4561
4558
 
4562
4559
  survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("svc-toolbox-item", function (props) {
4563
- return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(SurveyCreatorToolboxItem, props);
4560
+ return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(SurveyCreatorToolboxItem, props);
4564
4561
  });
4565
4562
 
4566
4563