survey-creator-core 2.3.11 → 2.3.12

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.
Files changed (139) hide show
  1. package/fesm/i18n/arabic.mjs +1 -1
  2. package/fesm/i18n/bulgarian.mjs +1 -1
  3. package/fesm/i18n/burmese.mjs +1 -1
  4. package/fesm/i18n/croatian.mjs +1 -1
  5. package/fesm/i18n/czech.mjs +1 -1
  6. package/fesm/i18n/danish.mjs +1 -1
  7. package/fesm/i18n/dutch.mjs +1 -1
  8. package/fesm/i18n/english.mjs +1 -1
  9. package/fesm/i18n/finnish.mjs +1 -1
  10. package/fesm/i18n/french.mjs +1 -1
  11. package/fesm/i18n/german.mjs +1 -1
  12. package/fesm/i18n/greek.mjs +1 -1
  13. package/fesm/i18n/haitian-creole.mjs +1 -1
  14. package/fesm/i18n/hebrew.mjs +1 -1
  15. package/fesm/i18n/hungarian.mjs +1 -1
  16. package/fesm/i18n/index.mjs +1 -1
  17. package/fesm/i18n/indonesian.mjs +1 -1
  18. package/fesm/i18n/italian.mjs +1 -1
  19. package/fesm/i18n/japanese.mjs +1 -1
  20. package/fesm/i18n/korean.mjs +1 -1
  21. package/fesm/i18n/malay.mjs +1 -1
  22. package/fesm/i18n/mongolian.mjs +1 -1
  23. package/fesm/i18n/norwegian.mjs +1 -1
  24. package/fesm/i18n/persian.mjs +1 -1
  25. package/fesm/i18n/polish.mjs +1 -1
  26. package/fesm/i18n/portuguese.mjs +1 -1
  27. package/fesm/i18n/romanian.mjs +1 -1
  28. package/fesm/i18n/russian.mjs +1 -1
  29. package/fesm/i18n/simplified-chinese.mjs +1 -1
  30. package/fesm/i18n/slovak.mjs +1 -1
  31. package/fesm/i18n/slovenian.mjs +1 -1
  32. package/fesm/i18n/spanish.mjs +1 -1
  33. package/fesm/i18n/swedish.mjs +1 -1
  34. package/fesm/i18n/tajik.mjs +1 -1
  35. package/fesm/i18n/thai.mjs +1 -1
  36. package/fesm/i18n/traditional-chinese.mjs +1 -1
  37. package/fesm/i18n/turkish.mjs +1 -1
  38. package/fesm/survey-creator-core.i18n.mjs +1 -1
  39. package/fesm/survey-creator-core.mjs +34 -11
  40. package/fesm/survey-creator-core.mjs.map +1 -1
  41. package/fesm/themes/index.mjs +1 -1
  42. package/fonts.fontless.css +1 -1
  43. package/fonts.fontless.min.css +1 -1
  44. package/i18n/arabic.js +1 -1
  45. package/i18n/arabic.min.js.LICENSE.txt +1 -1
  46. package/i18n/bulgarian.js +1 -1
  47. package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
  48. package/i18n/burmese.js +1 -1
  49. package/i18n/burmese.min.js.LICENSE.txt +1 -1
  50. package/i18n/croatian.js +1 -1
  51. package/i18n/croatian.min.js.LICENSE.txt +1 -1
  52. package/i18n/czech.js +1 -1
  53. package/i18n/czech.min.js.LICENSE.txt +1 -1
  54. package/i18n/danish.js +1 -1
  55. package/i18n/danish.min.js.LICENSE.txt +1 -1
  56. package/i18n/dutch.js +1 -1
  57. package/i18n/dutch.min.js.LICENSE.txt +1 -1
  58. package/i18n/english.js +1 -1
  59. package/i18n/english.min.js.LICENSE.txt +1 -1
  60. package/i18n/finnish.js +1 -1
  61. package/i18n/finnish.min.js.LICENSE.txt +1 -1
  62. package/i18n/french.js +1 -1
  63. package/i18n/french.min.js.LICENSE.txt +1 -1
  64. package/i18n/german.js +1 -1
  65. package/i18n/german.min.js.LICENSE.txt +1 -1
  66. package/i18n/greek.js +1 -1
  67. package/i18n/greek.min.js.LICENSE.txt +1 -1
  68. package/i18n/haitian-creole.js +1 -1
  69. package/i18n/haitian-creole.min.js.LICENSE.txt +1 -1
  70. package/i18n/hebrew.js +1 -1
  71. package/i18n/hebrew.min.js.LICENSE.txt +1 -1
  72. package/i18n/hungarian.js +1 -1
  73. package/i18n/hungarian.min.js.LICENSE.txt +1 -1
  74. package/i18n/index.js +1 -1
  75. package/i18n/index.min.js.LICENSE.txt +1 -1
  76. package/i18n/indonesian.js +1 -1
  77. package/i18n/indonesian.min.js.LICENSE.txt +1 -1
  78. package/i18n/italian.js +1 -1
  79. package/i18n/italian.min.js.LICENSE.txt +1 -1
  80. package/i18n/japanese.js +1 -1
  81. package/i18n/japanese.min.js.LICENSE.txt +1 -1
  82. package/i18n/korean.js +1 -1
  83. package/i18n/korean.min.js.LICENSE.txt +1 -1
  84. package/i18n/malay.js +1 -1
  85. package/i18n/malay.min.js.LICENSE.txt +1 -1
  86. package/i18n/mongolian.js +1 -1
  87. package/i18n/mongolian.min.js.LICENSE.txt +1 -1
  88. package/i18n/norwegian.js +1 -1
  89. package/i18n/norwegian.min.js.LICENSE.txt +1 -1
  90. package/i18n/persian.js +1 -1
  91. package/i18n/persian.min.js.LICENSE.txt +1 -1
  92. package/i18n/polish.js +1 -1
  93. package/i18n/polish.min.js.LICENSE.txt +1 -1
  94. package/i18n/portuguese.js +1 -1
  95. package/i18n/portuguese.min.js.LICENSE.txt +1 -1
  96. package/i18n/romanian.js +1 -1
  97. package/i18n/romanian.min.js.LICENSE.txt +1 -1
  98. package/i18n/russian.js +1 -1
  99. package/i18n/russian.min.js.LICENSE.txt +1 -1
  100. package/i18n/simplified-chinese.js +1 -1
  101. package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
  102. package/i18n/slovak.js +1 -1
  103. package/i18n/slovak.min.js.LICENSE.txt +1 -1
  104. package/i18n/slovenian.js +1 -1
  105. package/i18n/slovenian.min.js.LICENSE.txt +1 -1
  106. package/i18n/spanish.js +1 -1
  107. package/i18n/spanish.min.js.LICENSE.txt +1 -1
  108. package/i18n/swedish.js +1 -1
  109. package/i18n/swedish.min.js.LICENSE.txt +1 -1
  110. package/i18n/tajik.js +1 -1
  111. package/i18n/tajik.min.js.LICENSE.txt +1 -1
  112. package/i18n/thai.js +1 -1
  113. package/i18n/thai.min.js.LICENSE.txt +1 -1
  114. package/i18n/traditional-chinese.js +1 -1
  115. package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
  116. package/i18n/turkish.js +1 -1
  117. package/i18n/turkish.min.js.LICENSE.txt +1 -1
  118. package/package.json +2 -2
  119. package/survey-creator-core.css +2 -2
  120. package/survey-creator-core.fontless.css +1 -1
  121. package/survey-creator-core.fontless.min.css +1 -1
  122. package/survey-creator-core.i18n.js +1 -1
  123. package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
  124. package/survey-creator-core.js +32 -9
  125. package/survey-creator-core.js.map +1 -1
  126. package/survey-creator-core.min.css +2 -2
  127. package/survey-creator-core.min.js +1 -1
  128. package/survey-creator-core.min.js.LICENSE.txt +1 -1
  129. package/themes/default-contrast.js +1 -1
  130. package/themes/default-contrast.min.js.LICENSE.txt +1 -1
  131. package/themes/default-dark.js +1 -1
  132. package/themes/default-dark.min.js.LICENSE.txt +1 -1
  133. package/themes/index.js +1 -1
  134. package/themes/index.min.js.LICENSE.txt +1 -1
  135. package/themes/sc2020.js +1 -1
  136. package/themes/sc2020.min.js.LICENSE.txt +1 -1
  137. package/typings/creator-base.d.ts +13 -0
  138. package/typings/creator-options.d.ts +11 -0
  139. package/typings/creator-settings.d.ts +2 -0
package/i18n/turkish.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.11
2
+ * SurveyJS Creator v2.3.12
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.11
2
+ * SurveyJS Creator v2.3.12
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-core",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -28,7 +28,7 @@
28
28
  "typings": "./typings/entries/index.d.ts",
29
29
  "peerDependencies": {
30
30
  "ace-builds": "^1.4.12",
31
- "survey-core": "2.3.11"
31
+ "survey-core": "2.3.12"
32
32
  },
33
33
  "peerDependenciesMeta": {
34
34
  "ace-builds": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.11
2
+ * SurveyJS Creator v2.3.12
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -228,7 +228,7 @@
228
228
  }
229
229
 
230
230
  /*# sourceMappingURL=fonts.fontless.css.map*//*!
231
- * SurveyJS Creator v2.3.11
231
+ * SurveyJS Creator v2.3.12
232
232
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
233
233
  * Github: https://github.com/surveyjs/survey-creator
234
234
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.11
2
+ * SurveyJS Creator v2.3.12
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.11
2
+ * SurveyJS Creator v2.3.12
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.11
2
+ * SurveyJS Creator v2.3.12
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.11
2
+ * SurveyJS Creator v2.3.12
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.11
2
+ * SurveyJS Creator v2.3.12
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -5622,6 +5622,10 @@ var StringEditorViewModelBase = /** @class */ (function (_super) {
5622
5622
  var html = target.innerHTML;
5623
5623
  var text = target.innerText;
5624
5624
  var mdText = null;
5625
+ if (this.creator && this.creator.trimValues && this.isInplaceForEditValues) {
5626
+ html = html.trim();
5627
+ text = text.trim();
5628
+ }
5625
5629
  if (!this.editAsText && this.creator) {
5626
5630
  var options = {
5627
5631
  element: this.locString.owner,
@@ -19344,6 +19348,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19344
19348
  var _a;
19345
19349
  var _this = _super.call(this) || this;
19346
19350
  _this.options = options;
19351
+ _this.trimValues = false;
19347
19352
  /**
19348
19353
  * Specifies whether the "Add Question" button remembers the type of the most recently added question and uses it for subsequent questions.
19349
19354
  *
@@ -20083,6 +20088,17 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
20083
20088
  * @see showTranslationTab
20084
20089
  */
20085
20090
  _this.clearTranslationsOnSourceTextChange = false;
20091
+ /**
20092
+ * Specifies how deeply choice options in Radio Button Group and Checkboxes questions can contain nested survey content such as questions or panels.
20093
+ *
20094
+ * - 0 - Disables content nesting for choice options.
20095
+ * - 1 - Allows first-level choice options to contain survey elements.
20096
+ * - 2 - Allows first- and second-level choice options to contain survey elements, and so on.
20097
+ *
20098
+ * Default value: 0
20099
+ *
20100
+ * [View Demo](https://surveyjs.io/survey-creator/examples/nest-sub-questions-within-choice-options/ (linkStyle))
20101
+ */
20086
20102
  _this.maxChoiceContentNestingLevel = 0;
20087
20103
  /**
20088
20104
  * An event that is raised to determine whether in-place editing is allowed for an element on the design surface. Use this event to enable or disable in-place editing for specific elements.
@@ -21704,6 +21720,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
21704
21720
  }
21705
21721
  };
21706
21722
  SurveyCreatorModel.prototype.updateConditionsOnNameChanged = function (obj, propertyName, oldValue) {
21723
+ if (this.isCreatingNewElement)
21724
+ return;
21707
21725
  if (this.isObjQuestion(obj)) {
21708
21726
  if (propertyName === "name" && !obj["valueName"]) {
21709
21727
  this.updateLogicOnQuestionNameChanged(oldValue, obj["name"]);
@@ -21810,7 +21828,9 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
21810
21828
  this.addNewElementReason = "DROPPED_FROM_TOOLBOX";
21811
21829
  };
21812
21830
  SurveyCreatorModel.prototype.doOnQuestionAdded = function (question, parentPanel) {
21831
+ this.isCreatingNewElement = true;
21813
21832
  question.name = this.generateUniqueName(question, question.name);
21833
+ this.isCreatingNewElement = false;
21814
21834
  var page = this.getPageByElement(question);
21815
21835
  if (!page)
21816
21836
  return;
@@ -36926,10 +36946,8 @@ var SurveyConditionEditorItem = /** @class */ (function (_super) {
36926
36946
  return val;
36927
36947
  if (val[0] == "[")
36928
36948
  return val.replace(/(?!^)(['])(?!$)/g, "\\$1");
36929
- if (!this.isQuote(val[0]))
36930
- val = "'" + val;
36931
- if (!this.isQuote(val[val.length - 1]))
36932
- val = val + "'";
36949
+ if (!this.isQuote(val))
36950
+ val = "'" + val + "'";
36933
36951
  return val.replace(/(?!^)(['"])(?!$)/g, "\\$1");
36934
36952
  };
36935
36953
  SurveyConditionEditorItem.prototype.isNumeric = function (val) {
@@ -39836,9 +39854,14 @@ var PropertyGridModel = /** @class */ (function () {
39836
39854
  PropertyGridModel.prototype.onMatrixCellValueChanging = function (options) {
39837
39855
  if (this.isCellCreating)
39838
39856
  return;
39857
+ var obj = options.row.editingObj;
39858
+ var propName = options.columnName;
39859
+ if (this.options.trimValues && propName === "value" && obj.isDescendantOf("itemvalue") && typeof options.value === "string") {
39860
+ options.value = options.value.trim();
39861
+ }
39839
39862
  var changingOptions = {
39840
- obj: options.row.editingObj,
39841
- propertyName: options.columnName,
39863
+ obj: obj,
39864
+ propertyName: propName,
39842
39865
  value: options.oldValue,
39843
39866
  newValue: options.value,
39844
39867
  doValidation: false
@@ -49195,7 +49218,7 @@ __webpack_require__.r(__webpack_exports__);
49195
49218
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(/*! survey-core */ "survey-core");
49196
49219
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_116__);
49197
49220
  var Version;
49198
- Version = "".concat("2.3.11");
49221
+ Version = "".concat("2.3.12");
49199
49222
  //should be loaded before other styles for easier override
49200
49223
 
49201
49224
 
@@ -49317,7 +49340,7 @@ Version = "".concat("2.3.11");
49317
49340
 
49318
49341
 
49319
49342
 
49320
- (0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.3.11"), "survey-creator-core");
49343
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.3.12"), "survey-creator-core");
49321
49344
 
49322
49345
  })();
49323
49346