survey-creator-react 1.11.12 → 1.11.13

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.11.12",
3
+ "version": "1.11.13",
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.11.12",
33
- "survey-react-ui": "1.11.12",
34
- "survey-creator-core": "1.11.12"
32
+ "survey-core": "1.11.13",
33
+ "survey-react-ui": "1.11.13",
34
+ "survey-creator-core": "1.11.13"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "ace-builds": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator React v1.11.12
2
+ * SurveyJS Creator React v1.11.13
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
@@ -2326,8 +2326,16 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
2326
2326
  return null;
2327
2327
  return survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement("svc-question-banner", this.model.createBannerParams());
2328
2328
  };
2329
+ QuestionAdornerComponent.prototype.renderQuestionTitle = function () {
2330
+ if (this.model.element.hasTitle || this.model.element.isPanel)
2331
+ return null;
2332
+ var element = this.model.element;
2333
+ return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.cssCollapsedHiddenHeader },
2334
+ react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.cssCollapsedHiddenTitle }, survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.SurveyElementBase.renderLocString(element.locTitle, null, "q_title"))));
2335
+ };
2329
2336
  QuestionAdornerComponent.prototype.renderElementContent = function () {
2330
2337
  return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
2338
+ this.renderQuestionTitle(),
2331
2339
  this.props.element,
2332
2340
  this.renderElementPlaceholder(),
2333
2341
  this.renderCarryForwardBanner()));
@@ -2633,10 +2641,13 @@ var QuestionImageAdornerComponent = /** @class */ (function (_super) {
2633
2641
  isDisplayMode: false,
2634
2642
  question: this.imageModel.filePresentationModel
2635
2643
  });
2636
- return fileQuestion;
2644
+ return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
2645
+ this.renderQuestionTitle(),
2646
+ fileQuestion));
2637
2647
  }
2638
2648
  else {
2639
2649
  return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
2650
+ this.renderQuestionTitle(),
2640
2651
  this.props.element,
2641
2652
  this.renderElementPlaceholder()));
2642
2653
  }
@@ -3447,6 +3458,10 @@ var TabDesignerComponent = /** @class */ (function (_super) {
3447
3458
  this.creator.showPageNavigator ?
3448
3459
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-tab-designer__page-navigator" },
3449
3460
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(_PageNavigator__WEBPACK_IMPORTED_MODULE_3__.SurveyPageNavigator, { pagesController: this.model.pagesController, pageEditMode: this.model.creator.pageEditMode }))
3461
+ : null,
3462
+ this.model.hasToolbar ?
3463
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-tab-designer__toolbar" },
3464
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.actionContainer, handleClick: false }))
3450
3465
  : null));
3451
3466
  };
3452
3467
  return TabDesignerComponent;
@@ -4949,7 +4964,7 @@ __webpack_require__.r(__webpack_exports__);
4949
4964
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! survey-core */ "survey-core");
4950
4965
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_57___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_57__);
4951
4966
  var Version;
4952
- Version = "".concat("1.11.12");
4967
+ Version = "".concat("1.11.13");
4953
4968
  // import "@survey/creator/survey-creator-core.css";
4954
4969
 
4955
4970
 
@@ -5016,7 +5031,7 @@ Version = "".concat("1.11.12");
5016
5031
 
5017
5032
 
5018
5033
 
5019
- (0,survey_core__WEBPACK_IMPORTED_MODULE_57__.checkLibraryVersion)("".concat("1.11.12"), "survey-creator-react");
5034
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_57__.checkLibraryVersion)("".concat("1.11.13"), "survey-creator-react");
5020
5035
 
5021
5036
  /******/ return __webpack_exports__;
5022
5037
  /******/ })()