survey-creator-core 2.0.8 → 2.0.10

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 (142) 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/haitian-creole.mjs +1 -1
  13. package/fesm/i18n/hebrew.mjs +1 -1
  14. package/fesm/i18n/hungarian.mjs +1 -1
  15. package/fesm/i18n/index.mjs +1 -1
  16. package/fesm/i18n/indonesian.mjs +1 -1
  17. package/fesm/i18n/italian.mjs +1 -1
  18. package/fesm/i18n/japanese.mjs +1 -1
  19. package/fesm/i18n/korean.mjs +1 -1
  20. package/fesm/i18n/malay.mjs +1 -1
  21. package/fesm/i18n/mongolian.mjs +1 -1
  22. package/fesm/i18n/norwegian.mjs +1 -1
  23. package/fesm/i18n/persian.mjs +1 -1
  24. package/fesm/i18n/polish.mjs +1 -1
  25. package/fesm/i18n/portuguese.mjs +1 -1
  26. package/fesm/i18n/romanian.mjs +1 -1
  27. package/fesm/i18n/russian.mjs +1 -1
  28. package/fesm/i18n/simplified-chinese.mjs +1 -1
  29. package/fesm/i18n/slovak.mjs +1 -1
  30. package/fesm/i18n/slovenian.mjs +1 -1
  31. package/fesm/i18n/spanish.mjs +1 -1
  32. package/fesm/i18n/swedish.mjs +1 -1
  33. package/fesm/i18n/tajik.mjs +1 -1
  34. package/fesm/i18n/thai.mjs +1 -1
  35. package/fesm/i18n/traditional-chinese.mjs +1 -1
  36. package/fesm/i18n/turkish.mjs +1 -1
  37. package/fesm/survey-creator-core.i18n.mjs +1 -1
  38. package/fesm/survey-creator-core.mjs +107 -31
  39. package/fesm/survey-creator-core.mjs.map +1 -1
  40. package/fesm/themes/index.mjs +1 -1
  41. package/fonts.fontless.css +1 -1
  42. package/fonts.fontless.min.css +1 -1
  43. package/i18n/arabic.js +1 -1
  44. package/i18n/arabic.min.js.LICENSE.txt +1 -1
  45. package/i18n/bulgarian.js +1 -1
  46. package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
  47. package/i18n/burmese.js +1 -1
  48. package/i18n/burmese.min.js.LICENSE.txt +1 -1
  49. package/i18n/croatian.js +1 -1
  50. package/i18n/croatian.min.js.LICENSE.txt +1 -1
  51. package/i18n/czech.js +1 -1
  52. package/i18n/czech.min.js.LICENSE.txt +1 -1
  53. package/i18n/danish.js +1 -1
  54. package/i18n/danish.min.js.LICENSE.txt +1 -1
  55. package/i18n/dutch.js +1 -1
  56. package/i18n/dutch.min.js.LICENSE.txt +1 -1
  57. package/i18n/english.js +1 -1
  58. package/i18n/english.min.js.LICENSE.txt +1 -1
  59. package/i18n/finnish.js +1 -1
  60. package/i18n/finnish.min.js.LICENSE.txt +1 -1
  61. package/i18n/french.js +1 -1
  62. package/i18n/french.min.js.LICENSE.txt +1 -1
  63. package/i18n/german.js +1 -1
  64. package/i18n/german.min.js.LICENSE.txt +1 -1
  65. package/i18n/haitian-creole.js +1 -1
  66. package/i18n/haitian-creole.min.js.LICENSE.txt +1 -1
  67. package/i18n/hebrew.js +1 -1
  68. package/i18n/hebrew.min.js.LICENSE.txt +1 -1
  69. package/i18n/hungarian.js +1 -1
  70. package/i18n/hungarian.min.js.LICENSE.txt +1 -1
  71. package/i18n/index.js +1 -1
  72. package/i18n/index.min.js.LICENSE.txt +1 -1
  73. package/i18n/indonesian.js +1 -1
  74. package/i18n/indonesian.min.js.LICENSE.txt +1 -1
  75. package/i18n/italian.js +1 -1
  76. package/i18n/italian.min.js.LICENSE.txt +1 -1
  77. package/i18n/japanese.js +1 -1
  78. package/i18n/japanese.min.js.LICENSE.txt +1 -1
  79. package/i18n/korean.js +1 -1
  80. package/i18n/korean.min.js.LICENSE.txt +1 -1
  81. package/i18n/malay.js +1 -1
  82. package/i18n/malay.min.js.LICENSE.txt +1 -1
  83. package/i18n/mongolian.js +1 -1
  84. package/i18n/mongolian.min.js.LICENSE.txt +1 -1
  85. package/i18n/norwegian.js +1 -1
  86. package/i18n/norwegian.min.js.LICENSE.txt +1 -1
  87. package/i18n/persian.js +1 -1
  88. package/i18n/persian.min.js.LICENSE.txt +1 -1
  89. package/i18n/polish.js +1 -1
  90. package/i18n/polish.min.js.LICENSE.txt +1 -1
  91. package/i18n/portuguese.js +1 -1
  92. package/i18n/portuguese.min.js.LICENSE.txt +1 -1
  93. package/i18n/romanian.js +1 -1
  94. package/i18n/romanian.min.js.LICENSE.txt +1 -1
  95. package/i18n/russian.js +1 -1
  96. package/i18n/russian.min.js.LICENSE.txt +1 -1
  97. package/i18n/simplified-chinese.js +1 -1
  98. package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
  99. package/i18n/slovak.js +1 -1
  100. package/i18n/slovak.min.js.LICENSE.txt +1 -1
  101. package/i18n/slovenian.js +1 -1
  102. package/i18n/slovenian.min.js.LICENSE.txt +1 -1
  103. package/i18n/spanish.js +1 -1
  104. package/i18n/spanish.min.js.LICENSE.txt +1 -1
  105. package/i18n/swedish.js +1 -1
  106. package/i18n/swedish.min.js.LICENSE.txt +1 -1
  107. package/i18n/tajik.js +1 -1
  108. package/i18n/tajik.min.js.LICENSE.txt +1 -1
  109. package/i18n/thai.js +1 -1
  110. package/i18n/thai.min.js.LICENSE.txt +1 -1
  111. package/i18n/traditional-chinese.js +1 -1
  112. package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
  113. package/i18n/turkish.js +1 -1
  114. package/i18n/turkish.min.js.LICENSE.txt +1 -1
  115. package/package.json +2 -2
  116. package/survey-creator-core.css +19 -14
  117. package/survey-creator-core.fontless.css +18 -13
  118. package/survey-creator-core.fontless.css.map +1 -1
  119. package/survey-creator-core.fontless.min.css +5 -5
  120. package/survey-creator-core.i18n.js +1 -1
  121. package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
  122. package/survey-creator-core.js +112 -35
  123. package/survey-creator-core.js.map +1 -1
  124. package/survey-creator-core.min.css +6 -6
  125. package/survey-creator-core.min.js +1 -1
  126. package/survey-creator-core.min.js.LICENSE.txt +1 -1
  127. package/themes/default-contrast.js +1 -1
  128. package/themes/default-contrast.min.js.LICENSE.txt +1 -1
  129. package/themes/default-dark.js +1 -1
  130. package/themes/default-dark.min.js.LICENSE.txt +1 -1
  131. package/themes/index.js +1 -1
  132. package/themes/index.min.js.LICENSE.txt +1 -1
  133. package/themes/sc2020.js +1 -1
  134. package/themes/sc2020.min.js.LICENSE.txt +1 -1
  135. package/typings/components/action-container-view-model.d.ts +3 -3
  136. package/typings/components/page.d.ts +2 -2
  137. package/typings/components/question.d.ts +3 -1
  138. package/typings/components/tabs/theme-plugin.d.ts +2 -0
  139. package/typings/creator-base.d.ts +49 -9
  140. package/typings/creator-events-api.d.ts +6 -6
  141. package/typings/creator-options.d.ts +26 -6
  142. package/typings/toolbox.d.ts +14 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.0.8
2
+ * SurveyJS Creator v2.0.10
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.0.8
2
+ * SurveyJS Creator v2.0.10
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.0.8
2
+ * SurveyJS Creator v2.0.10
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
@@ -56,13 +56,11 @@ __webpack_require__.r(__webpack_exports__);
56
56
 
57
57
  var SurveyElementResponsivityManager = /** @class */ (function (_super) {
58
58
  (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyElementResponsivityManager, _super);
59
- function SurveyElementResponsivityManager(container, model, onGetAllowResponsivenessCallback) {
60
- var _this = _super.call(this, container, model) || this;
61
- _this.onGetAllowResponsivenessCallback = onGetAllowResponsivenessCallback;
62
- return _this;
59
+ function SurveyElementResponsivityManager(container, model) {
60
+ return _super.call(this, container, model) || this;
63
61
  }
64
62
  SurveyElementResponsivityManager.prototype.shouldProcessResponsiveness = function () {
65
- return _super.prototype.shouldProcessResponsiveness.call(this) && (!this.onGetAllowResponsivenessCallback || this.onGetAllowResponsivenessCallback());
63
+ return this["model"].isResponsivenessAllowed && _super.prototype.shouldProcessResponsiveness.call(this);
66
64
  };
67
65
  return SurveyElementResponsivityManager;
68
66
  }(survey_core__WEBPACK_IMPORTED_MODULE_1__.ResponsivityManager));
@@ -71,7 +69,7 @@ var SurveyElementActionContainer = /** @class */ (function (_super) {
71
69
  function SurveyElementActionContainer() {
72
70
  var _this = _super.call(this) || this;
73
71
  _this.alwaysShrink = false;
74
- _this.isResponsivenessAllowed = false;
72
+ _this._isResponsivenessAllowed = false;
75
73
  _this.dotsItem.iconSize = "auto";
76
74
  _this.dotsItem.popupModel.cssClass += " svc-creator-popup";
77
75
  _this.hiddenItemsListModel.cssClasses = _list_theme__WEBPACK_IMPORTED_MODULE_2__.listComponentCss;
@@ -150,14 +148,20 @@ var SurveyElementActionContainer = /** @class */ (function (_super) {
150
148
  this.hiddenItemsListModel.setItems(items.filter(function (i) { return i.mode == "popup"; }).map(function (i) { return i.innerItem; }));
151
149
  };
152
150
  SurveyElementActionContainer.prototype.allowResponsiveness = function () {
153
- if (!this.isResponsivenessAllowed) {
154
- this.isResponsivenessAllowed = true;
151
+ if (!this._isResponsivenessAllowed) {
152
+ this._isResponsivenessAllowed = true;
155
153
  this.updateCallback && this.updateCallback(true);
156
154
  }
157
155
  };
156
+ Object.defineProperty(SurveyElementActionContainer.prototype, "isResponsivenessAllowed", {
157
+ get: function () {
158
+ return this._isResponsivenessAllowed;
159
+ },
160
+ enumerable: false,
161
+ configurable: true
162
+ });
158
163
  SurveyElementActionContainer.prototype.createResponsivityManager = function (container) {
159
- var _this = this;
160
- return new SurveyElementResponsivityManager(container, this, function () { return _this.isResponsivenessAllowed; });
164
+ return new SurveyElementResponsivityManager(container, this);
161
165
  };
162
166
  return SurveyElementActionContainer;
163
167
  }(survey_core__WEBPACK_IMPORTED_MODULE_1__.AdaptiveActionContainer));
@@ -3165,19 +3169,38 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
3165
3169
  newAction.disableHide = true;
3166
3170
  return newAction;
3167
3171
  };
3168
- QuestionAdornerViewModel.prototype.jsonsAreCompatible = function (objJson, json) {
3169
- var _this = this;
3170
- var jsonIsCorresponded = true;
3171
- Object.keys(json).forEach(function (p) {
3172
- var question = survey_core__WEBPACK_IMPORTED_MODULE_1__.QuestionFactory.Instance.createQuestion(objJson.type, "question") || _this.element;
3173
- var propertyValue = objJson[p] === undefined ? question.getDefaultPropertyValue(p) : objJson[p];
3174
- if (p != "type" && !survey_core__WEBPACK_IMPORTED_MODULE_1__.Helpers.isTwoValueEquals(json[p], propertyValue))
3175
- jsonIsCorresponded = false;
3172
+ QuestionAdornerViewModel.checkForNeedDefaultSubitems = function (items) {
3173
+ items.filter(function (i) { return i.needDefaultSubitem === undefined; }).forEach(function (item) {
3174
+ var _a;
3175
+ item.needDefaultSubitem = false;
3176
+ if (((_a = item.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
3177
+ item.needDefaultSubitem = true;
3178
+ item.items.forEach(function (subitem) {
3179
+ var question = survey_core__WEBPACK_IMPORTED_MODULE_1__.QuestionFactory.Instance.createQuestion(item.json.type, "question");
3180
+ if (QuestionAdornerViewModel.jsonsAreCompatible(question, subitem.json))
3181
+ item.needDefaultSubitem = false;
3182
+ });
3183
+ }
3176
3184
  });
3177
- return jsonIsCorresponded;
3185
+ };
3186
+ QuestionAdornerViewModel.jsonsAreCompatible = function (element, json) {
3187
+ var question = element;
3188
+ var keys = Object.keys(json);
3189
+ for (var i = 0; i < keys.length; i++) {
3190
+ var p = keys[i];
3191
+ if (p === "type")
3192
+ continue;
3193
+ var propertyValue = question.getPropertyValue(p);
3194
+ if (propertyValue === undefined) {
3195
+ propertyValue = p === "type" ? question.getType() : question.getDefaultPropertyValue(p);
3196
+ }
3197
+ if (!survey_core__WEBPACK_IMPORTED_MODULE_1__.Helpers.isTwoValueEquals(json[p], propertyValue))
3198
+ return false;
3199
+ }
3200
+ return true;
3178
3201
  };
3179
3202
  QuestionAdornerViewModel.prototype.jsonIsCorresponded = function (json) {
3180
- return this.jsonsAreCompatible(this.element.toJSON(), json);
3203
+ return QuestionAdornerViewModel.jsonsAreCompatible(this.element, json);
3181
3204
  };
3182
3205
  QuestionAdornerViewModel.prototype.toolboxItemIsCorresponded = function (toolboxItem, someItemSelectedAlready) {
3183
3206
  var elementType = this.element.getType();
@@ -3205,6 +3228,7 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
3205
3228
  var _this = this;
3206
3229
  var _a;
3207
3230
  var availableItems = this.getConvertToTypes();
3231
+ QuestionAdornerViewModel.checkForNeedDefaultSubitems(availableItems);
3208
3232
  var defaultJsons = this.buildDefaultJsonMap(availableItems);
3209
3233
  var newItems = [];
3210
3234
  var lastItem;
@@ -3228,16 +3252,13 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
3228
3252
  if (((_a = item.items) === null || _a === void 0 ? void 0 : _a.length) > 0 && _this.creator.toolbox.showSubitems) {
3229
3253
  var subactions_1 = [];
3230
3254
  var selectedSubactionLocal_1 = undefined;
3231
- var allChildsAreCompatibleToParent_1 = false;
3232
3255
  item.items.forEach(function (subitem) {
3233
3256
  var subaction = toolboxItemToAction(subitem);
3234
3257
  if (_this.toolboxItemIsCorresponded(subitem, !!selectedAction))
3235
3258
  selectedSubactionLocal_1 = subitem;
3236
- if (_this.jsonsAreCompatible(item.json, subitem.json))
3237
- allChildsAreCompatibleToParent_1 = true;
3238
3259
  subactions_1.push(subaction);
3239
3260
  });
3240
- if (!allChildsAreCompatibleToParent_1 && subactions_1.length > 0) {
3261
+ if (item.needDefaultSubitem && subactions_1.length > 0) {
3241
3262
  var defaultSubaction = toolboxItemToAction(item);
3242
3263
  defaultSubaction.id = action.id + "-default";
3243
3264
  defaultSubaction.iconName = undefined;
@@ -6478,6 +6499,7 @@ var TabDesignerPlugin = /** @class */ (function () {
6478
6499
  iconName: "gear-24x24",
6479
6500
  iconSize: "auto",
6480
6501
  pressed: false,
6502
+ visible: new survey_core__WEBPACK_IMPORTED_MODULE_0__.ComputedUpdater(function () { return _this.creator.showCreatorThemeSettings; }),
6481
6503
  action: function () {
6482
6504
  if (settingsAction.active) {
6483
6505
  _this.closeCreatorThemeSettings();
@@ -14979,6 +15001,8 @@ var ThemeTabPlugin = /** @class */ (function () {
14979
15001
  * A `ThemeTabPlugin` instance that raised the event.
14980
15002
  * - `options.theme`: [`ITheme`](https://surveyjs.io/form-library/documentation/api-reference/itheme)\
14981
15003
  * A selected theme.
15004
+ *
15005
+ * [View Demo](https://surveyjs.io/survey-creator/examples/save-custom-theme/ (linkStyle))
14982
15006
  * @see availableThemes
14983
15007
  * @see addTheme
14984
15008
  * @see removeTheme
@@ -18975,11 +18999,11 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
18975
18999
  */
18976
19000
  _this.onDefineElementMenuItems = _this.onElementGetActions;
18977
19001
  /**
18978
- * An event that is raised when Survey Creator adds properties to a survey element selected on the design surface. Handle this event if you cancel the addition of certain properties and thus [hide them from the Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid-customization#hide-properties-from-the-property-grid).
19002
+ * An event that is raised when Survey Creator adds properties to a survey element selected on the design surface. Handle this event if you want to cancel the addition of certain properties and thus [hide them from the Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid-customization#hide-properties-from-the-property-grid).
18979
19003
  *
18980
19004
  * For information on event handler parameters, refer to descriptions within the interface.
18981
19005
  *
18982
- * [View Demo](https://surveyjs.io/survey-creator/examples/hide-category-from-property-grid/ (linkStyle))
19006
+ * [View Demo](https://surveyjs.io/survey-creator/examples/remove-properties-from-property-grid/ (linkStyle))
18983
19007
  */
18984
19008
  _this.onPropertyShowing = _this.addCreatorEvent();
18985
19009
  _this.onCanShowProperty = _this.onPropertyShowing;
@@ -18998,7 +19022,11 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
18998
19022
  */
18999
19023
  _this.onPropertyEditorCreated = _this.addCreatorEvent();
19000
19024
  /**
19001
- * An event that is raised when title actions are added to a property editor. Title actions are most often used to reveal hints for properties configured by users. Handle this event you want to add, remove, or modify the title actions.
19025
+ * An event that is raised when title actions are added to a property editor. Title actions are most often used to reveal property hints. Handle this event you want to add, remove, or modify the title actions.
19026
+ *
19027
+ * For information on event handler parameters, refer to descriptions within the interface.
19028
+ *
19029
+ * [View Demo](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onPropertyEditorUpdateTitleActions (linkStyle))
19002
19030
  */
19003
19031
  _this.onPropertyEditorUpdateTitleActions = _this.addCreatorEvent();
19004
19032
  /**
@@ -19263,6 +19291,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19263
19291
  * });
19264
19292
  * ```
19265
19293
  *
19294
+ * [Multilingual Form Demo](https://surveyjs.io/survey-creator/examples/create-multilingual-forms/ (linkStyle))
19295
+ *
19296
+ * [AI-Powered Translation Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
19297
+ *
19266
19298
  * > Survey Creator does not include a machine translation service out of the box. Our component only provides a UI for calling the service API.
19267
19299
  * @see startMachineTranslationTo
19268
19300
  */
@@ -19280,6 +19312,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19280
19312
  _this.onTranslationItemChanging = _this.addCreatorEvent();
19281
19313
  /**
19282
19314
  * An event that is raised when users drag and drop survey elements within the design surface. Use this event to control drag and drop operations.
19315
+ *
19316
+ * For information on event handler parameters, refer to descriptions within the interface.
19317
+ *
19318
+ * [View Demo](https://surveyjs.io/survey-creator/examples/page-break-and-page-merge/ (linkStyle))
19283
19319
  * @see onDragStart
19284
19320
  * @see onDragEnd
19285
19321
  */
@@ -19361,6 +19397,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19361
19397
  * Specifies whether Survey Creator UI elements display survey, page, and question titles instead of their names.
19362
19398
  *
19363
19399
  * Default value: `false`
19400
+ *
19401
+ * [View Demo](https://surveyjs.io/survey-creator/examples/dynamically-modify-newly-added-questions/ (linkStyle))
19364
19402
  * @see onElementGetDisplayName
19365
19403
  */
19366
19404
  _this.useElementTitles = false;
@@ -19572,6 +19610,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19572
19610
  * Specifies whether to clear translations to other languages when a source language translation is changed.
19573
19611
  *
19574
19612
  * Default value: `false`
19613
+ *
19614
+ * [View Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
19575
19615
  * @see showTranslationTab
19576
19616
  */
19577
19617
  _this.clearTranslationsOnSourceTextChange = false;
@@ -19612,7 +19652,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19612
19652
  SurveyCreatorModel.prototype.getLocale = function () { return this.locale; };
19613
19653
  Object.defineProperty(SurveyCreatorModel.prototype, "showPreviewTab", {
19614
19654
  /**
19615
- * Specifies whether to display the Preview tab.
19655
+ * Specifies whether to display the [Preview](https://surveyjs.io/survey-creator/documentation/end-user-guide/user-interface#preview-tab) tab.
19616
19656
  *
19617
19657
  * Default value: `true`
19618
19658
  * @see activeTab
@@ -19664,6 +19704,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19664
19704
  *
19665
19705
  * - `"buttons"` (default)
19666
19706
  * The Property Grid displays the properties of a currently selected category. Users can switch between categories using buttons on the right side of the Property Grid.
19707
+ *
19708
+ * [Accordion Mode Demo](https://surveyjs.io/survey-creator/examples/property-grid-accordion-view/ (linkStyle))
19709
+ *
19710
+ * [Buttons Mode Demo](https://surveyjs.io/survey-creator/examples/free-nps-survey-template/ (linkStyle))
19667
19711
  */
19668
19712
  get: function () {
19669
19713
  return this.showOneCategoryInPropertyGrid ? "buttons" : "accordion";
@@ -19782,6 +19826,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19782
19826
  *
19783
19827
  * - `"bypage"`
19784
19828
  * Questions and panels are divided between pages. Users can use the page navigator to switch to a required page.
19829
+ *
19830
+ * [View Page-By-Page Mode Demo](https://surveyjs.io/survey-creator/examples/page-level-editing/ (linkStyle))
19785
19831
  * @see allowModifyPages
19786
19832
  */
19787
19833
  get: function () {
@@ -20066,6 +20112,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
20066
20112
  //#region Theme
20067
20113
  /**
20068
20114
  * An object that enables you to manage UI themes. Refer to the following API section for information on available properties, methods, and events: [`ThemeTabPlugin`](https://surveyjs.io/survey-creator/documentation/api-reference/themetabplugin).
20115
+ *
20116
+ * [View Demo](https://surveyjs.io/survey-creator/examples/save-custom-theme/ (linkStyle))
20069
20117
  * @see showThemeTab
20070
20118
  * @see saveThemeFunc
20071
20119
  */
@@ -20080,6 +20128,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
20080
20128
  * A function that is called each time users click the [Save button](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#showSaveButton) or [auto-save](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#autoSaveEnabled) is triggered to save a theme JSON object.
20081
20129
  *
20082
20130
  * For more information, refer to the [Save and Load Custom Themes](https://surveyjs.io/survey-creator/documentation/theme-editor#save-and-load-custom-themes) help topic.
20131
+ *
20132
+ * [View Demo](https://surveyjs.io/survey-creator/examples/change-form-theme/ (linkStyle))
20083
20133
  * @see showThemeTab
20084
20134
  * @see themeEditor
20085
20135
  * @see saveSurveyFunc
@@ -20497,6 +20547,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
20497
20547
  * Specifies whether to show the sidebar that displays the Property Grid.
20498
20548
  *
20499
20549
  * Default value: `true`
20550
+ *
20551
+ * [View Demo](https://surveyjs.io/survey-creator/examples/customize-property-editors/ (linkStyle))
20500
20552
  * @see sidebarLocation
20501
20553
  */
20502
20554
  get: function () {
@@ -21917,7 +21969,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
21917
21969
  SurveyCreatorModel.prototype.deleteObjectCore = function (obj) {
21918
21970
  if (obj.isPage) {
21919
21971
  var newPage = this.getNextPage(obj);
21920
- this.survey.removePage(obj);
21972
+ obj.delete(false);
21921
21973
  this.selectElement(!!newPage ? newPage : this.survey);
21922
21974
  }
21923
21975
  else {
@@ -22105,6 +22157,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22105
22157
  };
22106
22158
  /**
22107
22159
  * Activates a specified category in Property Grid. Applies only if [`propertyGridNavigationMode`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#propertyGridNavigationMode) is `"buttons"`.
22160
+ *
22161
+ * [View Demo](https://surveyjs.io/survey-creator/examples/add-properties-to-property-grid/ (linkStyle))
22108
22162
  * @param name A [category name](https://surveyjs.io/form-library/documentation/customize-question-types/add-custom-properties-to-a-form#category).
22109
22163
  */
22110
22164
  SurveyCreatorModel.prototype.activatePropertyGridCategory = function (name) {
@@ -22707,6 +22761,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22707
22761
  * Starts the translation of survey strings from the default language to one or more specified languages using a machine translation service, such as Google Translate or Microsoft Translator.
22708
22762
  *
22709
22763
  * This method only launches the operation by raising the [`onMachineTranslate`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onMachineTranslate) event. Handle this event to perform the actual translation.
22764
+ *
22765
+ * [View Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
22710
22766
  * @param locales An array of locale codes that correspond to target languages, for example, `[ "de", "fr" ]`.
22711
22767
  */
22712
22768
  SurveyCreatorModel.prototype.startMachineTranslationTo = function (locales) {
@@ -22812,6 +22868,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22812
22868
  * A function that is called each time users click the [Save button](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#showSaveButton) or [auto-save](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#autoSaveEnabled) is triggered to save a survey JSON schema.
22813
22869
  *
22814
22870
  * For more information, refer to the Save and Load Survey Model Schemas help topic for your framework: [Angular](https://surveyjs.io/survey-creator/documentation/get-started-angular#save-and-load-survey-model-schemas) | [Vue](https://surveyjs.io/survey-creator/documentation/get-started-vue#save-and-load-survey-model-schemas) | [React](https://surveyjs.io/survey-creator/documentation/get-started-react#save-and-load-survey-model-schemas) | [HTML/CSS/JavaScript](https://surveyjs.io/survey-creator/documentation/get-started-html-css-javascript#save-and-load-survey-model-schemas).
22871
+ *
22872
+ * [View Demo](https://surveyjs.io/survey-creator/examples/set-how-survey-configuration-changes-are-saved/ (linkStyle))
22815
22873
  * @see saveThemeFunc
22816
22874
  */
22817
22875
  get: function () {
@@ -42648,6 +42706,7 @@ var defaultProperties = {
42648
42706
  { name: "questionTitleWidth", tab: "questionSettings" },
42649
42707
  { name: "questionErrorLocation", tab: "questionSettings" },
42650
42708
  { name: "gridLayoutColumns", tab: "questionSettings", index: 900 },
42709
+ { name: "questionOrder", tab: "questionSettings" },
42651
42710
  ],
42652
42711
  tabs: [
42653
42712
  { name: "questionSettings", index: 100 },
@@ -42659,7 +42718,6 @@ var defaultProperties = {
42659
42718
  panel: {
42660
42719
  properties: [
42661
42720
  "isRequired",
42662
- { name: "questionOrder", tab: "questionSettings" },
42663
42721
  { name: "innerIndent", tab: "questionSettings" },
42664
42722
  { name: "requiredErrorText", tab: "validation" },
42665
42723
  { name: "page", tab: "layout" },
@@ -42684,7 +42742,6 @@ var defaultProperties = {
42684
42742
  "navigationDescription",
42685
42743
  "timeLimit",
42686
42744
  "maxTimeToFinish",
42687
- { name: "questionOrder", tab: "questionSettings" },
42688
42745
  { name: "showNavigationButtons", tab: "navigation" }
42689
42746
  ],
42690
42747
  tabs: [{ name: "navigation", index: 350 }, { name: "layout", visible: false }]
@@ -44020,6 +44077,10 @@ var SurveyHelper = /** @class */ (function () {
44020
44077
  delete json["valueName"];
44021
44078
  delete json["choicesVisibleIf"];
44022
44079
  delete json["choicesEnableIf"];
44080
+ delete json["columnsVisibleIf"];
44081
+ delete json["columnsEnableIf"];
44082
+ delete json["rowsVisibleIf"];
44083
+ delete json["rowsEnableIf"];
44023
44084
  delete json["width"];
44024
44085
  delete json["minWidth"];
44025
44086
  delete json["maxWidth"];
@@ -44868,6 +44929,7 @@ var QuestionToolboxItem = /** @class */ (function (_super) {
44868
44929
  var _this = _super.call(this, item) || this;
44869
44930
  _this.item = item;
44870
44931
  _this.showInToolboxOnly = false;
44932
+ _this.needDefaultSubitem = undefined;
44871
44933
  if (!_this.id) {
44872
44934
  _this.id = _this.name;
44873
44935
  }
@@ -44991,6 +45053,7 @@ var QuestionToolboxItem = /** @class */ (function (_super) {
44991
45053
  */
44992
45054
  QuestionToolboxItem.prototype.clearSubitems = function () {
44993
45055
  if (this.hasSubItems) {
45056
+ this.needDefaultSubitem = undefined;
44994
45057
  this.items = [];
44995
45058
  this.component = "";
44996
45059
  this.popupModel.dispose();
@@ -45009,6 +45072,7 @@ var QuestionToolboxItem = /** @class */ (function (_super) {
45009
45072
  if (index === void 0) { index = -1; }
45010
45073
  if (!subitem)
45011
45074
  return;
45075
+ this.needDefaultSubitem = undefined;
45012
45076
  var newItem = new QuestionToolboxItem(subitem);
45013
45077
  newItem.iconName = "";
45014
45078
  if (!newItem.className)
@@ -45034,6 +45098,7 @@ var QuestionToolboxItem = /** @class */ (function (_super) {
45034
45098
  QuestionToolboxItem.prototype.removeSubitem = function (subitem) {
45035
45099
  if (!this.hasSubItems || !subitem)
45036
45100
  return;
45101
+ this.needDefaultSubitem = undefined;
45037
45102
  var id = (subitem === null || subitem === void 0 ? void 0 : subitem.id) || subitem;
45038
45103
  if (!id)
45039
45104
  return;
@@ -45470,6 +45535,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
45470
45535
  };
45471
45536
  /**
45472
45537
  * Adds a new item to the Toolbox.
45538
+ *
45539
+ * [View Demo](https://surveyjs.io/survey-creator/examples/page-break-and-page-merge/ (linkStyle))
45473
45540
  * @param item A [toolbox item configuration](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem).
45474
45541
  * @param index *(Optional)* A zero-based index at which to insert the item. If you do not specify this parameter, the item is added to the end.
45475
45542
  * @see removeItem
@@ -45548,6 +45615,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
45548
45615
  };
45549
45616
  /**
45550
45617
  * Returns a [toolbox item](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolboxitem) with a specified name.
45618
+ *
45619
+ * [View Toolbox Customization Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-customization/ (linkStyle))
45551
45620
  * @param name A toolbox item's [`name`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#name).
45552
45621
  * @returns A toolbox item or `null` if a toolbox item with the specified name isn't found.
45553
45622
  */
@@ -45564,6 +45633,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
45564
45633
  * If this property is `false`, the currently expanded category collapses when a user expands another category.
45565
45634
  *
45566
45635
  * Default value: `false`
45636
+ *
45637
+ * [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
45567
45638
  * @see keepAllCategoriesExpanded
45568
45639
  */
45569
45640
  get: function () {
@@ -45579,6 +45650,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
45579
45650
  Object.defineProperty(QuestionToolbox.prototype, "keepAllCategoriesExpanded", {
45580
45651
  /**
45581
45652
  * Specifies whether to expand all categories without the capability to collapse any of them. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) is `true`.
45653
+ *
45654
+ * [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
45582
45655
  * @see allowExpandMultipleCategories
45583
45656
  */
45584
45657
  get: function () {
@@ -45598,7 +45671,9 @@ var QuestionToolbox = /** @class */ (function (_super) {
45598
45671
  *
45599
45672
  * Default value: `false`
45600
45673
  *
45601
- * If this property is disabled, the Toolbox hides the titles but continues to display horizontal lines that divide categories. To remove these lines as well, call the [`removeCategories()`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#removeCategories) method.
45674
+ * [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
45675
+ *
45676
+ * > If this property is disabled, the Toolbox hides the titles but continues to display horizontal lines that divide categories. To remove these lines as well, call the [`removeCategories()`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#removeCategories) method.
45602
45677
  * @see allowExpandMultipleCategories
45603
45678
  * @see keepAllCategoriesExpanded
45604
45679
  */
@@ -45780,6 +45855,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
45780
45855
  };
45781
45856
  /**
45782
45857
  * Removes all categories from the Toolbox.
45858
+ *
45859
+ * [View Toolbox Customization Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-customization/ (linkStyle))
45783
45860
  */
45784
45861
  QuestionToolbox.prototype.removeCategories = function () {
45785
45862
  var allTypes = survey_core__WEBPACK_IMPORTED_MODULE_1__.ElementFactory.Instance.getAllToolboxTypes();
@@ -48012,7 +48089,7 @@ __webpack_require__.r(__webpack_exports__);
48012
48089
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(/*! survey-core */ "survey-core");
48013
48090
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_116__);
48014
48091
  var Version;
48015
- Version = "".concat("2.0.8");
48092
+ Version = "".concat("2.0.10");
48016
48093
  //should be loaded before other styles for easier override
48017
48094
 
48018
48095
 
@@ -48134,7 +48211,7 @@ Version = "".concat("2.0.8");
48134
48211
 
48135
48212
 
48136
48213
 
48137
- (0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.0.8"), "survey-creator-core");
48214
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.0.10"), "survey-creator-core");
48138
48215
 
48139
48216
  })();
48140
48217