survey-creator-core 2.0.8 → 2.0.9

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 (140) 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 +83 -24
  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 +14 -14
  117. package/survey-creator-core.fontless.css +13 -13
  118. package/survey-creator-core.fontless.css.map +1 -1
  119. package/survey-creator-core.fontless.min.css +2 -2
  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 +88 -28
  123. package/survey-creator-core.js.map +1 -1
  124. package/survey-creator-core.min.css +3 -3
  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/tabs/theme-plugin.d.ts +2 -0
  137. package/typings/creator-base.d.ts +49 -9
  138. package/typings/creator-events-api.d.ts +6 -6
  139. package/typings/creator-options.d.ts +26 -6
  140. package/typings/toolbox.d.ts +13 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.0.8
2
+ * SurveyJS Creator v2.0.9
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.9
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.9
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));
@@ -3166,18 +3170,26 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
3166
3170
  return newAction;
3167
3171
  };
3168
3172
  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;
3176
- });
3177
- return jsonIsCorresponded;
3173
+ var question = this.element;
3174
+ if (!!objJson && !!objJson.type && question.getType() !== objJson.type) {
3175
+ question = survey_core__WEBPACK_IMPORTED_MODULE_1__.QuestionFactory.Instance.createQuestion(objJson.type, "question") || this.element;
3176
+ }
3177
+ var keys = Object.keys(json);
3178
+ for (var i = 0; i < keys.length; i++) {
3179
+ var p = keys[i];
3180
+ if (!objJson && p === "type")
3181
+ continue;
3182
+ var propertyValue = !!objJson ? objJson[p] : question.getPropertyValue(p);
3183
+ if (!!objJson && propertyValue === undefined) {
3184
+ propertyValue = p === "type" ? question.getType() : question.getDefaultPropertyValue(p);
3185
+ }
3186
+ if (!survey_core__WEBPACK_IMPORTED_MODULE_1__.Helpers.isTwoValueEquals(json[p], propertyValue))
3187
+ return false;
3188
+ }
3189
+ return true;
3178
3190
  };
3179
3191
  QuestionAdornerViewModel.prototype.jsonIsCorresponded = function (json) {
3180
- return this.jsonsAreCompatible(this.element.toJSON(), json);
3192
+ return this.jsonsAreCompatible(undefined, json);
3181
3193
  };
3182
3194
  QuestionAdornerViewModel.prototype.toolboxItemIsCorresponded = function (toolboxItem, someItemSelectedAlready) {
3183
3195
  var elementType = this.element.getType();
@@ -14979,6 +14991,8 @@ var ThemeTabPlugin = /** @class */ (function () {
14979
14991
  * A `ThemeTabPlugin` instance that raised the event.
14980
14992
  * - `options.theme`: [`ITheme`](https://surveyjs.io/form-library/documentation/api-reference/itheme)\
14981
14993
  * A selected theme.
14994
+ *
14995
+ * [View Demo](https://surveyjs.io/survey-creator/examples/save-custom-theme/ (linkStyle))
14982
14996
  * @see availableThemes
14983
14997
  * @see addTheme
14984
14998
  * @see removeTheme
@@ -18975,11 +18989,11 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
18975
18989
  */
18976
18990
  _this.onDefineElementMenuItems = _this.onElementGetActions;
18977
18991
  /**
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).
18992
+ * 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
18993
  *
18980
18994
  * For information on event handler parameters, refer to descriptions within the interface.
18981
18995
  *
18982
- * [View Demo](https://surveyjs.io/survey-creator/examples/hide-category-from-property-grid/ (linkStyle))
18996
+ * [View Demo](https://surveyjs.io/survey-creator/examples/remove-properties-from-property-grid/ (linkStyle))
18983
18997
  */
18984
18998
  _this.onPropertyShowing = _this.addCreatorEvent();
18985
18999
  _this.onCanShowProperty = _this.onPropertyShowing;
@@ -18998,7 +19012,11 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
18998
19012
  */
18999
19013
  _this.onPropertyEditorCreated = _this.addCreatorEvent();
19000
19014
  /**
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.
19015
+ * 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.
19016
+ *
19017
+ * For information on event handler parameters, refer to descriptions within the interface.
19018
+ *
19019
+ * [View Demo](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onPropertyEditorUpdateTitleActions (linkStyle))
19002
19020
  */
19003
19021
  _this.onPropertyEditorUpdateTitleActions = _this.addCreatorEvent();
19004
19022
  /**
@@ -19263,6 +19281,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19263
19281
  * });
19264
19282
  * ```
19265
19283
  *
19284
+ * [Multilingual Form Demo](https://surveyjs.io/survey-creator/examples/create-multilingual-forms/ (linkStyle))
19285
+ *
19286
+ * [AI-Powered Translation Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
19287
+ *
19266
19288
  * > 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
19289
  * @see startMachineTranslationTo
19268
19290
  */
@@ -19280,6 +19302,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19280
19302
  _this.onTranslationItemChanging = _this.addCreatorEvent();
19281
19303
  /**
19282
19304
  * 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.
19305
+ *
19306
+ * For information on event handler parameters, refer to descriptions within the interface.
19307
+ *
19308
+ * [View Demo](https://surveyjs.io/survey-creator/examples/page-break-and-page-merge/ (linkStyle))
19283
19309
  * @see onDragStart
19284
19310
  * @see onDragEnd
19285
19311
  */
@@ -19361,6 +19387,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19361
19387
  * Specifies whether Survey Creator UI elements display survey, page, and question titles instead of their names.
19362
19388
  *
19363
19389
  * Default value: `false`
19390
+ *
19391
+ * [View Demo](https://surveyjs.io/survey-creator/examples/dynamically-modify-newly-added-questions/ (linkStyle))
19364
19392
  * @see onElementGetDisplayName
19365
19393
  */
19366
19394
  _this.useElementTitles = false;
@@ -19572,6 +19600,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19572
19600
  * Specifies whether to clear translations to other languages when a source language translation is changed.
19573
19601
  *
19574
19602
  * Default value: `false`
19603
+ *
19604
+ * [View Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
19575
19605
  * @see showTranslationTab
19576
19606
  */
19577
19607
  _this.clearTranslationsOnSourceTextChange = false;
@@ -19612,7 +19642,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19612
19642
  SurveyCreatorModel.prototype.getLocale = function () { return this.locale; };
19613
19643
  Object.defineProperty(SurveyCreatorModel.prototype, "showPreviewTab", {
19614
19644
  /**
19615
- * Specifies whether to display the Preview tab.
19645
+ * Specifies whether to display the [Preview](https://surveyjs.io/survey-creator/documentation/end-user-guide/user-interface#preview-tab) tab.
19616
19646
  *
19617
19647
  * Default value: `true`
19618
19648
  * @see activeTab
@@ -19664,6 +19694,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19664
19694
  *
19665
19695
  * - `"buttons"` (default)
19666
19696
  * 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.
19697
+ *
19698
+ * [Accordion Mode Demo](https://surveyjs.io/survey-creator/examples/property-grid-accordion-view/ (linkStyle))
19699
+ *
19700
+ * [Buttons Mode Demo](https://surveyjs.io/survey-creator/examples/free-nps-survey-template/ (linkStyle))
19667
19701
  */
19668
19702
  get: function () {
19669
19703
  return this.showOneCategoryInPropertyGrid ? "buttons" : "accordion";
@@ -19782,6 +19816,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
19782
19816
  *
19783
19817
  * - `"bypage"`
19784
19818
  * Questions and panels are divided between pages. Users can use the page navigator to switch to a required page.
19819
+ *
19820
+ * [View Page-By-Page Mode Demo](https://surveyjs.io/survey-creator/examples/page-level-editing/ (linkStyle))
19785
19821
  * @see allowModifyPages
19786
19822
  */
19787
19823
  get: function () {
@@ -20066,6 +20102,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
20066
20102
  //#region Theme
20067
20103
  /**
20068
20104
  * 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).
20105
+ *
20106
+ * [View Demo](https://surveyjs.io/survey-creator/examples/save-custom-theme/ (linkStyle))
20069
20107
  * @see showThemeTab
20070
20108
  * @see saveThemeFunc
20071
20109
  */
@@ -20080,6 +20118,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
20080
20118
  * 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
20119
  *
20082
20120
  * 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.
20121
+ *
20122
+ * [View Demo](https://surveyjs.io/survey-creator/examples/change-form-theme/ (linkStyle))
20083
20123
  * @see showThemeTab
20084
20124
  * @see themeEditor
20085
20125
  * @see saveSurveyFunc
@@ -20497,6 +20537,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
20497
20537
  * Specifies whether to show the sidebar that displays the Property Grid.
20498
20538
  *
20499
20539
  * Default value: `true`
20540
+ *
20541
+ * [View Demo](https://surveyjs.io/survey-creator/examples/customize-property-editors/ (linkStyle))
20500
20542
  * @see sidebarLocation
20501
20543
  */
20502
20544
  get: function () {
@@ -22105,6 +22147,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22105
22147
  };
22106
22148
  /**
22107
22149
  * Activates a specified category in Property Grid. Applies only if [`propertyGridNavigationMode`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#propertyGridNavigationMode) is `"buttons"`.
22150
+ *
22151
+ * [View Demo](https://surveyjs.io/survey-creator/examples/add-properties-to-property-grid/ (linkStyle))
22108
22152
  * @param name A [category name](https://surveyjs.io/form-library/documentation/customize-question-types/add-custom-properties-to-a-form#category).
22109
22153
  */
22110
22154
  SurveyCreatorModel.prototype.activatePropertyGridCategory = function (name) {
@@ -22707,6 +22751,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22707
22751
  * 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
22752
  *
22709
22753
  * 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.
22754
+ *
22755
+ * [View Demo](https://surveyjs.io/survey-creator/examples/ai-translation/ (linkStyle))
22710
22756
  * @param locales An array of locale codes that correspond to target languages, for example, `[ "de", "fr" ]`.
22711
22757
  */
22712
22758
  SurveyCreatorModel.prototype.startMachineTranslationTo = function (locales) {
@@ -22812,6 +22858,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22812
22858
  * 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
22859
  *
22814
22860
  * 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).
22861
+ *
22862
+ * [View Demo](https://surveyjs.io/survey-creator/examples/set-how-survey-configuration-changes-are-saved/ (linkStyle))
22815
22863
  * @see saveThemeFunc
22816
22864
  */
22817
22865
  get: function () {
@@ -45470,6 +45518,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
45470
45518
  };
45471
45519
  /**
45472
45520
  * Adds a new item to the Toolbox.
45521
+ *
45522
+ * [View Demo](https://surveyjs.io/survey-creator/examples/page-break-and-page-merge/ (linkStyle))
45473
45523
  * @param item A [toolbox item configuration](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem).
45474
45524
  * @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
45525
  * @see removeItem
@@ -45548,6 +45598,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
45548
45598
  };
45549
45599
  /**
45550
45600
  * Returns a [toolbox item](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolboxitem) with a specified name.
45601
+ *
45602
+ * [View Toolbox Customization Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-customization/ (linkStyle))
45551
45603
  * @param name A toolbox item's [`name`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#name).
45552
45604
  * @returns A toolbox item or `null` if a toolbox item with the specified name isn't found.
45553
45605
  */
@@ -45564,6 +45616,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
45564
45616
  * If this property is `false`, the currently expanded category collapses when a user expands another category.
45565
45617
  *
45566
45618
  * Default value: `false`
45619
+ *
45620
+ * [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
45567
45621
  * @see keepAllCategoriesExpanded
45568
45622
  */
45569
45623
  get: function () {
@@ -45579,6 +45633,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
45579
45633
  Object.defineProperty(QuestionToolbox.prototype, "keepAllCategoriesExpanded", {
45580
45634
  /**
45581
45635
  * 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`.
45636
+ *
45637
+ * [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
45582
45638
  * @see allowExpandMultipleCategories
45583
45639
  */
45584
45640
  get: function () {
@@ -45598,7 +45654,9 @@ var QuestionToolbox = /** @class */ (function (_super) {
45598
45654
  *
45599
45655
  * Default value: `false`
45600
45656
  *
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.
45657
+ * [View Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-categories/ (linkStyle))
45658
+ *
45659
+ * > 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
45660
  * @see allowExpandMultipleCategories
45603
45661
  * @see keepAllCategoriesExpanded
45604
45662
  */
@@ -45780,6 +45838,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
45780
45838
  };
45781
45839
  /**
45782
45840
  * Removes all categories from the Toolbox.
45841
+ *
45842
+ * [View Toolbox Customization Demo](https://surveyjs.io/survey-creator/examples/survey-toolbox-customization/ (linkStyle))
45783
45843
  */
45784
45844
  QuestionToolbox.prototype.removeCategories = function () {
45785
45845
  var allTypes = survey_core__WEBPACK_IMPORTED_MODULE_1__.ElementFactory.Instance.getAllToolboxTypes();
@@ -48012,7 +48072,7 @@ __webpack_require__.r(__webpack_exports__);
48012
48072
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(/*! survey-core */ "survey-core");
48013
48073
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_116__);
48014
48074
  var Version;
48015
- Version = "".concat("2.0.8");
48075
+ Version = "".concat("2.0.9");
48016
48076
  //should be loaded before other styles for easier override
48017
48077
 
48018
48078
 
@@ -48134,7 +48194,7 @@ Version = "".concat("2.0.8");
48134
48194
 
48135
48195
 
48136
48196
 
48137
- (0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.0.8"), "survey-creator-core");
48197
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.0.9"), "survey-creator-core");
48138
48198
 
48139
48199
  })();
48140
48200