survey-creator-core 1.11.6 → 1.11.7

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 (84) hide show
  1. package/fonts.fontless.css +1 -1
  2. package/fonts.fontless.min.css +1 -1
  3. package/i18n/arabic.js +1 -1
  4. package/i18n/arabic.min.js +1 -1
  5. package/i18n/bulgarian.js +1 -1
  6. package/i18n/bulgarian.min.js +1 -1
  7. package/i18n/croatian.js +1 -1
  8. package/i18n/croatian.min.js +1 -1
  9. package/i18n/czech.js +1 -1
  10. package/i18n/czech.min.js +1 -1
  11. package/i18n/danish.js +1 -1
  12. package/i18n/danish.min.js +1 -1
  13. package/i18n/dutch.js +1 -1
  14. package/i18n/dutch.min.js +1 -1
  15. package/i18n/english.js +7 -3
  16. package/i18n/english.js.map +1 -1
  17. package/i18n/english.min.js +2 -2
  18. package/i18n/finnish.js +1 -1
  19. package/i18n/finnish.min.js +1 -1
  20. package/i18n/french.js +1 -1
  21. package/i18n/french.min.js +1 -1
  22. package/i18n/german.js +1 -1
  23. package/i18n/german.min.js +1 -1
  24. package/i18n/hebrew.js +1 -1
  25. package/i18n/hebrew.min.js +1 -1
  26. package/i18n/hungarian.js +1 -1
  27. package/i18n/hungarian.min.js +1 -1
  28. package/i18n/index.js +1 -1
  29. package/i18n/index.min.js +1 -1
  30. package/i18n/indonesian.js +1 -1
  31. package/i18n/indonesian.min.js +1 -1
  32. package/i18n/italian.js +1 -1
  33. package/i18n/italian.min.js +1 -1
  34. package/i18n/japanese.js +1 -1
  35. package/i18n/japanese.min.js +1 -1
  36. package/i18n/korean.js +1 -1
  37. package/i18n/korean.min.js +1 -1
  38. package/i18n/malay.js +1 -1
  39. package/i18n/malay.min.js +1 -1
  40. package/i18n/mongolian.js +1 -1
  41. package/i18n/mongolian.min.js +1 -1
  42. package/i18n/norwegian.js +1 -1
  43. package/i18n/norwegian.min.js +1 -1
  44. package/i18n/persian.js +1 -1
  45. package/i18n/persian.min.js +1 -1
  46. package/i18n/polish.js +1 -1
  47. package/i18n/polish.min.js +1 -1
  48. package/i18n/portuguese.js +1 -1
  49. package/i18n/portuguese.min.js +1 -1
  50. package/i18n/russian.js +1 -1
  51. package/i18n/russian.min.js +1 -1
  52. package/i18n/simplified-chinese.js +1 -1
  53. package/i18n/simplified-chinese.min.js +1 -1
  54. package/i18n/slovak.js +1 -1
  55. package/i18n/slovak.min.js +1 -1
  56. package/i18n/spanish.js +1 -1
  57. package/i18n/spanish.min.js +1 -1
  58. package/i18n/swedish.js +1 -1
  59. package/i18n/swedish.min.js +1 -1
  60. package/i18n/tajik.js +1 -1
  61. package/i18n/tajik.min.js +1 -1
  62. package/i18n/traditional-chinese.js +1 -1
  63. package/i18n/traditional-chinese.min.js +1 -1
  64. package/i18n/turkish.js +1 -1
  65. package/i18n/turkish.min.js +1 -1
  66. package/package.json +2 -2
  67. package/survey-creator-core.css +8 -8
  68. package/survey-creator-core.fontless.css +7 -7
  69. package/survey-creator-core.fontless.css.map +1 -1
  70. package/survey-creator-core.fontless.min.css +3 -3
  71. package/survey-creator-core.i18n.js +1 -1
  72. package/survey-creator-core.i18n.min.js +1 -1
  73. package/survey-creator-core.js +220 -107
  74. package/survey-creator-core.js.map +1 -1
  75. package/survey-creator-core.min.css +4 -4
  76. package/survey-creator-core.min.js +5 -5
  77. package/typings/components/tabs/theme-plugin.d.ts +2 -0
  78. package/typings/creator-base.d.ts +15 -5
  79. package/typings/creator-events-api.d.ts +17 -20
  80. package/typings/editorLocalization.d.ts +4 -0
  81. package/typings/localization/english.d.ts +4 -0
  82. package/typings/property-grid/index.d.ts +6 -0
  83. package/typings/questionconverter.d.ts +2 -1
  84. package/typings/toolbox.d.ts +127 -87
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.11.6
2
+ * SurveyJS Creator v1.11.7
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
@@ -130,7 +130,7 @@ License: MIT
130
130
  /***/ (function(module, exports, __webpack_require__) {
131
131
 
132
132
  /*!
133
- * surveyjs - Survey JavaScript library v1.11.6
133
+ * surveyjs - Survey JavaScript library v1.11.7
134
134
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
135
135
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
136
136
  */
@@ -4898,8 +4898,13 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
4898
4898
  Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({
4899
4899
  onSet: function (val, target) {
4900
4900
  target.renderedCollapsed = val;
4901
- if (target.designerStateManager && target.surveyElement)
4901
+ if (target.designerStateManager && target.surveyElement) {
4902
4902
  target.designerStateManager.getElementState(target.surveyElement).collapsed = val;
4903
+ }
4904
+ setTimeout(function () {
4905
+ target.creator.survey.pages.forEach(function (p) { return p.ensureRowsVisibility(); });
4906
+ target.creator.survey.getAllPanels().forEach(function (p) { return p.ensureRowsVisibility(); });
4907
+ }, 50);
4903
4908
  }
4904
4909
  })
4905
4910
  ], SurveyElementAdornerBase.prototype, "collapsed", void 0);
@@ -10346,7 +10351,7 @@ var TabJsonEditorAcePlugin = /** @class */ (function (_super) {
10346
10351
  return new AceJsonEditorModel(creator);
10347
10352
  };
10348
10353
  TabJsonEditorAcePlugin.hasAceEditor = function () {
10349
- return typeof window["ace"] !== "undefined";
10354
+ return typeof window !== "undefined" && typeof window["ace"] !== "undefined";
10350
10355
  };
10351
10356
  return TabJsonEditorAcePlugin;
10352
10357
  }(_json_editor_plugin__WEBPACK_IMPORTED_MODULE_3__["TabJsonEditorBasePlugin"]));
@@ -14780,10 +14785,10 @@ var PreviewViewModel = /** @class */ (function (_super) {
14780
14785
  this.survey["onNavigateToUrl"].add(function (sender, options) {
14781
14786
  var url = options.url;
14782
14787
  options.url = "";
14783
- if (!!url) {
14788
+ if (!!url && options.allow) {
14784
14789
  var message = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("ed.navigateToMsg") + " '" + url + "'.";
14785
- if (!!this.surveyProvider) {
14786
- this.surveyProvider.notify(message);
14790
+ if (!!_this.surveyProvider) {
14791
+ _this.surveyProvider.notify(message);
14787
14792
  }
14788
14793
  else {
14789
14794
  alert(message);
@@ -17167,6 +17172,8 @@ __webpack_require__.r(__webpack_exports__);
17167
17172
  * const creator = new SurveyCreatorModel(creatorOptions);
17168
17173
  * creator.themeEditor.settingName = "value";
17169
17174
  * ```
17175
+ *
17176
+ * [Theme Editor Documentation](https://surveyjs.io/survey-creator/documentation/theme-editor (linkStyle))
17170
17177
  */
17171
17178
  var ThemeTabPlugin = /** @class */ (function () {
17172
17179
  function ThemeTabPlugin(creator) {
@@ -20765,6 +20772,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
20765
20772
  * [Customize Survey Elements on Creation](https://surveyjs.io/survey-creator/documentation/customize-survey-creation-process#customize-survey-elements-on-creation (linkStyle))
20766
20773
  */
20767
20774
  _this.onPageAdded = _this.addCreatorEvent();
20775
+ /**
20776
+ * An event that is raised when a [question's type is being changed](https://surveyjs.io/survey-creator/documentation/end-user-guide/user-interface#how-to-change-the-question-type).
20777
+ */
20778
+ _this.onQuestionConverting = _this.addCreatorEvent();
20768
20779
  /**
20769
20780
  * An event that is raised when Survey Creator renders action buttons under each page on the design surface. Use this event to add, remove, or modify the buttons.
20770
20781
  * @see onDefineElementMenuItems
@@ -22285,6 +22296,9 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22285
22296
  _this.selectElement(options.draggedElement, undefined, false, editTitle);
22286
22297
  isDraggedFromToolbox = false;
22287
22298
  _this.onDragEnd.fire(_this, options);
22299
+ if (!options.fromElement) {
22300
+ _this.setModified({ type: "ADDED_FROM_TOOLBOX", question: options.draggedElement });
22301
+ }
22288
22302
  });
22289
22303
  };
22290
22304
  SurveyCreatorModel.prototype.initDragDropChoices = function () {
@@ -22456,12 +22470,31 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22456
22470
  return "";
22457
22471
  var json = this.survey.toJSON();
22458
22472
  json = this.singlePageJSON(json);
22473
+ this.moveElementsToTheEnd(json);
22459
22474
  var indent = _creator_settings__WEBPACK_IMPORTED_MODULE_2__["settings"].jsonEditor.indentation;
22460
22475
  if (this.generateValidJSON) {
22461
22476
  return JSON.stringify(json, null, indent);
22462
22477
  }
22463
22478
  return new _json5__WEBPACK_IMPORTED_MODULE_4__["SurveyJSON5"]().stringify(json, null, indent);
22464
22479
  };
22480
+ SurveyCreatorModel.prototype.moveElementsToTheEnd = function (json) {
22481
+ var _this = this;
22482
+ if (!json)
22483
+ return;
22484
+ if (Array.isArray(json)) {
22485
+ json.forEach(function (el) { return _this.moveElementsToTheEnd(el); });
22486
+ }
22487
+ else {
22488
+ if (typeof json === "object") {
22489
+ if (!!json["elements"]) {
22490
+ var els = json["elements"];
22491
+ delete json["elements"];
22492
+ json["elements"] = els;
22493
+ }
22494
+ Object.keys(json).forEach(function (key) { return _this.moveElementsToTheEnd(json[key]); });
22495
+ }
22496
+ }
22497
+ };
22465
22498
  SurveyCreatorModel.prototype.setTextValue = function (value) {
22466
22499
  if (!!this.setSurveyJSONTextCallback) {
22467
22500
  this.setSurveyJSONTextCallback(value);
@@ -22648,7 +22681,14 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22648
22681
  }
22649
22682
  };
22650
22683
  SurveyCreatorModel.prototype.convertQuestion = function (obj, className) {
22651
- var newQuestion = _questionconverter__WEBPACK_IMPORTED_MODULE_5__["QuestionConverter"].convertObject(obj, className, this.getDefaultElementJSON(obj.getType()), this.getDefaultElementJSON(className));
22684
+ var objJSON = _questionconverter__WEBPACK_IMPORTED_MODULE_5__["QuestionConverter"].getObjJSON(obj, this.getDefaultElementJSON(obj.getType()));
22685
+ var options = {
22686
+ sourceQuestion: obj,
22687
+ targetType: className,
22688
+ json: objJSON
22689
+ };
22690
+ this.onQuestionConverting.fire(this, options);
22691
+ var newQuestion = _questionconverter__WEBPACK_IMPORTED_MODULE_5__["QuestionConverter"].convertObject(obj, className, options.json, this.getDefaultElementJSON(className));
22652
22692
  this.setModified({
22653
22693
  type: "QUESTION_CONVERTED",
22654
22694
  className: className,
@@ -22733,7 +22773,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22733
22773
  }
22734
22774
  parent = selectedElement.parent;
22735
22775
  if (index < 0) {
22736
- if (this.addNewQuestionLast) {
22776
+ if (this.addNewQuestionLast && modifiedType === "ADDED_FROM_PAGEBUTTON") {
22737
22777
  index = parent.elements.length;
22738
22778
  }
22739
22779
  else {
@@ -22879,12 +22919,12 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22879
22919
  return this.createNewElement(json);
22880
22920
  };
22881
22921
  /**
22882
- * Creates a copy of a specified question, inserts the copy next to this question and optionally select it in the designer.
22922
+ * Creates a copy of a specified question, inserts the copy next to this question, and (optionally) selects it on the design surface.
22883
22923
  * @param question A question to copy.
22884
- * @param selectNewElement Select a new element if true
22924
+ * @param selectCopy *(Optional)* Pass `true` if you want to select the copy on the design surface. Default value: `false`.
22885
22925
  * @returns The instance of a new question.
22886
22926
  */
22887
- SurveyCreatorModel.prototype.fastCopyQuestion = function (question, selectNewElement) {
22927
+ SurveyCreatorModel.prototype.fastCopyQuestion = function (question, selectCopy) {
22888
22928
  var newElement = this.copyElement(question);
22889
22929
  var index = !!question["parent"]
22890
22930
  ? question["parent"].elements.indexOf(question) + 1
@@ -22896,7 +22936,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22896
22936
  }
22897
22937
  }
22898
22938
  this.doClickQuestionCore(newElement, "ELEMENT_COPIED", index, question["parent"]);
22899
- if (selectNewElement) {
22939
+ if (selectCopy) {
22900
22940
  this.selectElement(newElement);
22901
22941
  }
22902
22942
  return newElement;
@@ -24706,7 +24746,7 @@ var settings = {
24706
24746
  allowCollapseSidebar: true
24707
24747
  },
24708
24748
  jsonEditor: {
24709
- indentation: 1,
24749
+ indentation: 2,
24710
24750
  exportFileName: "survey.json"
24711
24751
  }
24712
24752
  };
@@ -26111,7 +26151,7 @@ var __spreadArray = function (to, from) {
26111
26151
  /*!******************************!*\
26112
26152
  !*** ./src/entries/index.ts ***!
26113
26153
  \******************************/
26114
- /*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, CreatorAction, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorEvent, SurveyCreatorModel, CreatorBase, StylesManager, initializeDesignTimeSurveyModel, editableStringRendererName, getElementWrapperComponentName, getQuestionContentWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, isTextInput, registerAdorner, removeAdorners, CreatorResponsivityManager, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, updatecoloralphaJSON, createColor, updateShadowEffectsJSON, createBoxShadow, createBoxShadowReset, parseBoxShadow, DefaultFonts, updateFontSettingsJSON, fontsettingsToCssVariable, fontsettingsFromCssVariable, updateBackgroundCornerRadiusJSON, backgroundCornerRadiusToCssVariable, backgroundCornerRadiusFromCssVariable, Themes, PredefinedThemes, PredefinedColors, ThemeTabViewModel, ThemeTabPlugin, themeModelPropertyGridDefinition, ThemeModelEditorDefinition, initLogicOperator, LogicEvent, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, TranslationForEditor, TranslationEditor, createImportCSVAction, createExportCSVAction, translationCss, TabTranslationPlugin, initialSettingsAllowShowEmptyTitleInDesignMode, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageAdorner, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringItemsNavigatorBase, StringEditorConnector, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, EditorLocalization, getLocString, SurveyJSON5, QuestionSpinEditorModel, QuestionColorModel, QuestionFileEditorModel, ResetValueAdorner, QuestionTextWithResetModel, QuestionCommentWithResetModel, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorDateTime, PropertyGridLinkEditor, PropertyGridEditorColor, PropertyGridEditorColorWithAlpha, PropertyGridEditorNumber, PropertyGridEditorSpinEdit, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionCarryForward, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, PropertyGridEditorFontSettings, PropertyGridEditorBackgroundCornerRadius, PropertyGridEditorShadowEffects, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, SearchManager, SearchManagerToolbox, SearchManagerPropertyGrid, PropertyGridEditorQuestionMaskSettings, PropertyGridEditorMaskType, PropertyGridEditorQuestionHeader, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorkerError, SurveyTextWorkerParserError, SurveyTextWorkerJsonError, SurveyTextWorker, JsonDuplicateNameError, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SidebarModel, SidebarTabModel, Switcher, roundTo2Decimals, getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, imageMimeTypes, getAcceptedTypesByContentMode, getQuestionFromObj, scrollElementIntoView, ingectAlpha, convertRgbaToString, parseRgbaFromString, parseColor, HSBToRGB, RGBToHSB, trimEmptyFields, assign, ColorCalculator, saveToFileHandler, defaultPropertyGridDefinition, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
26154
+ /*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, CreatorAction, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorEvent, SurveyCreatorModel, CreatorBase, StylesManager, initializeDesignTimeSurveyModel, editableStringRendererName, getElementWrapperComponentName, getQuestionContentWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, isTextInput, registerAdorner, removeAdorners, CreatorResponsivityManager, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, updatecoloralphaJSON, createColor, updateShadowEffectsJSON, createBoxShadow, createBoxShadowReset, parseBoxShadow, DefaultFonts, updateFontSettingsJSON, fontsettingsToCssVariable, fontsettingsFromCssVariable, updateBackgroundCornerRadiusJSON, backgroundCornerRadiusToCssVariable, backgroundCornerRadiusFromCssVariable, Themes, PredefinedThemes, PredefinedColors, ThemeTabViewModel, ThemeTabPlugin, themeModelPropertyGridDefinition, ThemeModelEditorDefinition, initLogicOperator, LogicEvent, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, TranslationForEditor, TranslationEditor, createImportCSVAction, createExportCSVAction, translationCss, TabTranslationPlugin, initialSettingsAllowShowEmptyTitleInDesignMode, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageAdorner, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringItemsNavigatorBase, StringEditorConnector, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, EditorLocalization, getLocString, SurveyJSON5, QuestionSpinEditorModel, QuestionColorModel, QuestionFileEditorModel, ResetValueAdorner, QuestionTextWithResetModel, QuestionCommentWithResetModel, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorUndefinedBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorDateTime, PropertyGridLinkEditor, PropertyGridEditorColor, PropertyGridEditorColorWithAlpha, PropertyGridEditorNumber, PropertyGridEditorSpinEdit, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionCarryForward, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, PropertyGridEditorFontSettings, PropertyGridEditorBackgroundCornerRadius, PropertyGridEditorShadowEffects, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, SearchManager, SearchManagerToolbox, SearchManagerPropertyGrid, PropertyGridEditorQuestionMaskSettings, PropertyGridEditorMaskType, PropertyGridEditorQuestionHeader, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorkerError, SurveyTextWorkerParserError, SurveyTextWorkerJsonError, SurveyTextWorker, JsonDuplicateNameError, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SidebarModel, SidebarTabModel, Switcher, roundTo2Decimals, getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, imageMimeTypes, getAcceptedTypesByContentMode, getQuestionFromObj, scrollElementIntoView, ingectAlpha, convertRgbaToString, parseRgbaFromString, parseColor, HSBToRGB, RGBToHSB, trimEmptyFields, assign, ColorCalculator, saveToFileHandler, defaultPropertyGridDefinition, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
26115
26155
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
26116
26156
 
26117
26157
  "use strict";
@@ -26398,6 +26438,8 @@ __webpack_require__.r(__webpack_exports__);
26398
26438
 
26399
26439
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBoolean", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_50__["PropertyGridEditorBoolean"]; });
26400
26440
 
26441
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorUndefinedBoolean", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_50__["PropertyGridEditorUndefinedBoolean"]; });
26442
+
26401
26443
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringBase", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_50__["PropertyGridEditorStringBase"]; });
26402
26444
 
26403
26445
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorString", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_50__["PropertyGridEditorString"]; });
@@ -26658,7 +26700,7 @@ __webpack_require__.r(__webpack_exports__);
26658
26700
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! survey-core */ "survey-core");
26659
26701
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_78___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_78__);
26660
26702
  var Version;
26661
- Version = "" + "1.11.6";
26703
+ Version = "" + "1.11.7";
26662
26704
  //should be loaded before other styles for easier override
26663
26705
  __webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
26664
26706
 
@@ -26755,7 +26797,7 @@ __webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
26755
26797
  __webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
26756
26798
 
26757
26799
  survey_core__WEBPACK_IMPORTED_MODULE_78__["settings"].supportCreatorV2 = true;
26758
- Object(survey_core__WEBPACK_IMPORTED_MODULE_78__["checkLibraryVersion"])("" + "1.11.6", "survey-creator-core");
26800
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_78__["checkLibraryVersion"])("" + "1.11.7", "survey-creator-core");
26759
26801
 
26760
26802
 
26761
26803
  /***/ }),
@@ -29353,6 +29395,9 @@ var enStrings = {
29353
29395
  rateDescriptionLocation: "Label alignment",
29354
29396
  size: "Input field width (in characters)",
29355
29397
  cellErrorLocation: "Cell error message alignment",
29398
+ enabled: "Enabled",
29399
+ disabled: "Disabled",
29400
+ inherit: "Inherit",
29356
29401
  apply: "Apply",
29357
29402
  ok: "OK",
29358
29403
  save: "Save",
@@ -30317,8 +30362,8 @@ var enStrings = {
30317
30362
  locale: "Choose a language to begin creating your survey. To add a translation, switch to a new language and translate the original text here or in the Translations tab.",
30318
30363
  detailPanelMode: "Sets the location of a details section in relation to a row. Choose from: \"None\" - no expansion is added; \"Under the row\" - a row expansion is placed under each row of the matrix; \"Under the row, display one row expansion only\" - an expansion is displayed under a single row only, the remaining row expansions are collapsed.",
30319
30364
  imageFit: "Choose from: \"None\" - image maintains its original size; \"Contain\" - image is resized to fit while maintaining its aspect ratio; \"Cover\" - image fills the entire box while maintaining its aspect ratio; \"Fill\" - image is stretched to fill the box without maintaining its aspect ratio.",
30320
- autoGrow: "Gradually increases the height of the input field as data is being entered. Overrides the \"Input field height (in lines)\" setting.",
30321
- allowResize: "The resize handle (or grip) appears in the corner and can be dragged to alter the size of the input field.",
30365
+ autoGrow: "The \"Inherit\" option applies a survey-level setting (\"Disabled\" by default).",
30366
+ allowResize: "The \"Inherit\" option applies a survey-level setting (\"Enabled\" by default).",
30322
30367
  maxTimeToFinish: "A time interval in seconds after which the survey auto-advances to the \"Thank You\" page.",
30323
30368
  maxTimeToFinishPage: "A time interval in seconds after which the survey auto-advances to the next page. Hides the \"Previous\" navigation button.",
30324
30369
  page: {
@@ -30384,6 +30429,7 @@ var enStrings = {
30384
30429
  filePlaceholder: "Applies when \"File source type\" is \"Local file\" or when camera is unavailable",
30385
30430
  photoPlaceholder: "Applies when \"File source type\" is \"Camera\".",
30386
30431
  fileOrPhotoPlaceholder: "Applies when \"File source type\" is \"Local file or camera\".",
30432
+ colCount: "Arranges choice options in a multi-column layout. When set to 0, the options are displayed in a single line.",
30387
30433
  masksettings: {
30388
30434
  saveMaskedValue: "Select if you want to store the question value with an applied mask in survey results."
30389
30435
  },
@@ -33048,7 +33094,11 @@ var PropertyGridEditorExpression = /** @class */ (function (_super) {
33048
33094
  return prop.type == "expression";
33049
33095
  };
33050
33096
  PropertyGridEditorExpression.prototype.getJSON = function (obj, prop, options) {
33051
- return { type: "comment", showOptionsCaption: false };
33097
+ return {
33098
+ type: "comment",
33099
+ showOptionsCaption: false,
33100
+ rows: 2
33101
+ };
33052
33102
  };
33053
33103
  PropertyGridEditorExpression.prototype.clearPropertyValue = function (obj, prop, question, options) {
33054
33104
  question.clearValue();
@@ -33067,7 +33117,8 @@ var PropertyGridEditorCondition = /** @class */ (function (_super) {
33067
33117
  PropertyGridEditorCondition.prototype.getJSON = function (obj, prop, options) {
33068
33118
  return {
33069
33119
  type: "comment",
33070
- showOptionsCaption: false
33120
+ showOptionsCaption: false,
33121
+ rows: 2,
33071
33122
  };
33072
33123
  };
33073
33124
  PropertyGridEditorCondition.prototype.canClearPropertyValue = function (obj, prop, question, options) {
@@ -33516,7 +33567,7 @@ _index__WEBPACK_IMPORTED_MODULE_2__["PropertyGridEditorCollection"].register(new
33516
33567
  /*!************************************!*\
33517
33568
  !*** ./src/property-grid/index.ts ***!
33518
33569
  \************************************/
33519
- /*! exports provided: setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorDateTime, PropertyGridLinkEditor, PropertyGridEditorColor, PropertyGridEditorColorWithAlpha, PropertyGridEditorNumber, PropertyGridEditorSpinEdit, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionCarryForward, PropertyGridEditorQuestionValue */
33570
+ /*! exports provided: setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorUndefinedBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorDateTime, PropertyGridLinkEditor, PropertyGridEditorColor, PropertyGridEditorColorWithAlpha, PropertyGridEditorNumber, PropertyGridEditorSpinEdit, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionCarryForward, PropertyGridEditorQuestionValue */
33520
33571
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
33521
33572
 
33522
33573
  "use strict";
@@ -33529,6 +33580,7 @@ __webpack_require__.r(__webpack_exports__);
33529
33580
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridModel", function() { return PropertyGridModel; });
33530
33581
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditor", function() { return PropertyGridEditor; });
33531
33582
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBoolean", function() { return PropertyGridEditorBoolean; });
33583
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorUndefinedBoolean", function() { return PropertyGridEditorUndefinedBoolean; });
33532
33584
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringBase", function() { return PropertyGridEditorStringBase; });
33533
33585
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorString", function() { return PropertyGridEditorString; });
33534
33586
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorDateTime", function() { return PropertyGridEditorDateTime; });
@@ -34419,7 +34471,7 @@ var PropertyGridModel = /** @class */ (function () {
34419
34471
  return this.options.createSurvey(json, this.surveyInstanceCreatedArea, this, callback);
34420
34472
  };
34421
34473
  PropertyGridModel.prototype.getSurveyJSON = function () {
34422
- var res = {};
34474
+ var res = { autoGrowComment: true, allowResizeComment: false };
34423
34475
  setSurveyJSONForPropertyGrid(res, true, false);
34424
34476
  return res;
34425
34477
  };
@@ -34743,6 +34795,43 @@ var PropertyGridEditorBoolean = /** @class */ (function (_super) {
34743
34795
  return PropertyGridEditorBoolean;
34744
34796
  }(PropertyGridEditor));
34745
34797
 
34798
+ var PropertyGridEditorUndefinedBoolean = /** @class */ (function (_super) {
34799
+ Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyGridEditorUndefinedBoolean, _super);
34800
+ function PropertyGridEditorUndefinedBoolean() {
34801
+ return _super !== null && _super.apply(this, arguments) || this;
34802
+ }
34803
+ PropertyGridEditorUndefinedBoolean.prototype.fit = function (prop, context) {
34804
+ return prop.type == "boolean" && !!prop.defaultValueFunc && prop.defaultValueFunc(null) === undefined;
34805
+ };
34806
+ PropertyGridEditorUndefinedBoolean.prototype.getJSON = function (obj, prop, options) {
34807
+ var choices = [
34808
+ { value: "auto", text: _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.inherit") },
34809
+ { value: "false", text: _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.disabled") },
34810
+ { value: "true", text: _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.enabled") },
34811
+ ];
34812
+ var res = {
34813
+ type: "buttongroup",
34814
+ choices: choices,
34815
+ showOptionsCaption: false
34816
+ };
34817
+ return res;
34818
+ };
34819
+ PropertyGridEditorUndefinedBoolean.prototype.onCreated = function (obj, question, prop, options, propGridDefinition) {
34820
+ question.valueFromDataCallback = function (val) { return val === undefined ? "auto" : val.toString(); };
34821
+ question.valueToDataCallback = function (val) { return val === "auto" ? undefined : val === "true"; };
34822
+ };
34823
+ PropertyGridEditorUndefinedBoolean.prototype.onSetup = function (obj, question, prop, options) {
34824
+ var objValue = obj.getPropertyValue(prop.name);
34825
+ if (objValue === undefined) {
34826
+ question.value = "auto";
34827
+ }
34828
+ else {
34829
+ question.value = objValue === "true";
34830
+ }
34831
+ };
34832
+ return PropertyGridEditorUndefinedBoolean;
34833
+ }(PropertyGridEditor));
34834
+
34746
34835
  var PropertyGridEditorStringBase = /** @class */ (function (_super) {
34747
34836
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyGridEditorStringBase, _super);
34748
34837
  function PropertyGridEditorStringBase() {
@@ -34997,7 +35086,8 @@ var PropertyGridEditorText = /** @class */ (function (_super) {
34997
35086
  };
34998
35087
  PropertyGridEditorText.prototype.getJSON = function (obj, prop, options) {
34999
35088
  return this.updateType(prop, obj, this.updateMaxLength(prop, {
35000
- type: "comment"
35089
+ type: "comment",
35090
+ rows: 2
35001
35091
  }));
35002
35092
  };
35003
35093
  return PropertyGridEditorText;
@@ -35013,7 +35103,9 @@ var PropertyGridEditorHtml = /** @class */ (function (_super) {
35013
35103
  };
35014
35104
  PropertyGridEditorHtml.prototype.getJSON = function (obj, prop, options) {
35015
35105
  return this.updateMaxLength(prop, {
35016
- type: "comment"
35106
+ type: "comment",
35107
+ "allowResize": true,
35108
+ "autoGrow": false,
35017
35109
  });
35018
35110
  };
35019
35111
  return PropertyGridEditorHtml;
@@ -35028,7 +35120,10 @@ var PropertyGridEditorStringArray = /** @class */ (function (_super) {
35028
35120
  return prop.type == "string[]";
35029
35121
  };
35030
35122
  PropertyGridEditorStringArray.prototype.getJSON = function (obj, prop, options) {
35031
- return { type: "comment" };
35123
+ return {
35124
+ type: "comment",
35125
+ rows: 2
35126
+ };
35032
35127
  };
35033
35128
  PropertyGridEditorStringArray.prototype.onCreated = function (obj, question, prop) {
35034
35129
  question.valueFromDataCallback = function (val) {
@@ -35357,6 +35452,7 @@ PropertyGridEditorCollection.register(new PropertyGridEditorImageSize());
35357
35452
  PropertyGridEditorCollection.register(new PropertyGridEditorColor());
35358
35453
  PropertyGridEditorCollection.register(new PropertyGridEditorColorWithAlpha());
35359
35454
  PropertyGridEditorCollection.register(new PropertyGridEditorDateTime());
35455
+ PropertyGridEditorCollection.register(new PropertyGridEditorUndefinedBoolean());
35360
35456
  survey_core__WEBPACK_IMPORTED_MODULE_1__["QuestionFactory"].Instance.registerQuestion("buttongroup", function (name) {
35361
35457
  return new survey_core__WEBPACK_IMPORTED_MODULE_1__["QuestionButtonGroupModel"](name);
35362
35458
  }, false);
@@ -37280,6 +37376,7 @@ var DefaultMatrixRowValueEditor = /** @class */ (function (_super) {
37280
37376
  json.minRowCount = 1;
37281
37377
  json.maxRowCount = 1;
37282
37378
  json.columnsLocation = "vertical";
37379
+ delete json.defaultValue;
37283
37380
  return json;
37284
37381
  };
37285
37382
  return DefaultMatrixRowValueEditor;
@@ -37986,6 +38083,7 @@ var defaultProperties = {
37986
38083
  },
37987
38084
  "matrixdropdowncolumn@dropdown": {
37988
38085
  properties: [
38086
+ "placeholder",
37989
38087
  { name: "choicesFromQuestion", tab: "choices" },
37990
38088
  { name: "choicesFromQuestionMode", tab: "choices" },
37991
38089
  { name: "choiceValuesFromQuestion", tab: "choices" },
@@ -38014,6 +38112,7 @@ var defaultProperties = {
38014
38112
  },
38015
38113
  "matrixdropdowncolumn@tagbox": {
38016
38114
  properties: [
38115
+ "placeholder",
38017
38116
  { name: "choicesFromQuestion", tab: "choices" },
38018
38117
  { name: "choicesFromQuestionMode", tab: "choices" },
38019
38118
  { name: "choiceValuesFromQuestion", tab: "choices" },
@@ -38893,8 +38992,18 @@ var QuestionConverter = /** @class */ (function () {
38893
38992
  }
38894
38993
  return !!res ? res : [];
38895
38994
  };
38896
- QuestionConverter.convertObject = function (obj, convertToClass, defaultObjJSON, defaultJSON) {
38897
- if (defaultObjJSON === void 0) { defaultObjJSON = null; }
38995
+ QuestionConverter.getObjJSON = function (obj, defaultObjJSON) {
38996
+ var res = obj.toJSON();
38997
+ if (defaultObjJSON) {
38998
+ for (var key in defaultObjJSON) {
38999
+ if (res[key] && survey_core__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isTwoValueEquals(res[key], defaultObjJSON[key])) {
39000
+ delete res[key];
39001
+ }
39002
+ }
39003
+ }
39004
+ return res;
39005
+ };
39006
+ QuestionConverter.convertObject = function (obj, convertToClass, objJSON, defaultJSON) {
38898
39007
  if (defaultJSON === void 0) { defaultJSON = null; }
38899
39008
  if (!obj || !obj.parent || convertToClass == obj.getType())
38900
39009
  return null;
@@ -38904,14 +39013,8 @@ var QuestionConverter = /** @class */ (function () {
38904
39013
  }
38905
39014
  newQuestion.name = obj.name;
38906
39015
  var json = defaultJSON ? survey_core__WEBPACK_IMPORTED_MODULE_0__["Helpers"].createCopy(defaultJSON) : newQuestion.toJSON();
38907
- var qJson = obj.toJSON();
38908
- if (defaultObjJSON) {
38909
- for (var key in defaultObjJSON) {
38910
- if (qJson[key] && survey_core__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isTwoValueEquals(qJson[key], defaultObjJSON[key])) {
38911
- delete qJson[key];
38912
- }
38913
- }
38914
- }
39016
+ //const qJson = QuestionConverter.getObjJSON(obj, objJSON);
39017
+ var qJson = objJSON || {};
38915
39018
  for (var key in qJson) {
38916
39019
  json[key] = qJson[key];
38917
39020
  }
@@ -40571,7 +40674,22 @@ var QuestionToolboxItem = /** @class */ (function (_super) {
40571
40674
  }(survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]));
40572
40675
 
40573
40676
  /**
40574
- * The list of Toolbox items.
40677
+ * An object that enables you to modify Survey Creator's Toolbox. To access this object, use the [`toolbox`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#toolbox) property on a Survey Creator instance:
40678
+ *
40679
+ * ```js
40680
+ * const creatorOptions = { ... };
40681
+ * const creator = new SurveyCreator.SurveyCreator(creatorOptions);
40682
+ * creator.toolbox.settingName = "value";
40683
+ *
40684
+ * // In modular applications:
40685
+ * import { SurveyCreatorModel } from "survey-creator-core";
40686
+ *
40687
+ * const creatorOptions = { ... };
40688
+ * const creator = new SurveyCreatorModel(creatorOptions);
40689
+ * creator.toolbox.settingName = "value";
40690
+ * ```
40691
+ *
40692
+ * [Toolbox Customization](https://surveyjs.io/survey-creator/documentation/toolbox-customization (linkStyle))
40575
40693
  */
40576
40694
  var QuestionToolbox = /** @class */ (function (_super) {
40577
40695
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(QuestionToolbox, _super);
@@ -40589,9 +40707,6 @@ var QuestionToolbox = /** @class */ (function (_super) {
40589
40707
  "matrix", "matrixdropdown", "matrixdynamic",
40590
40708
  "html", "expression", "image", "signaturepad"
40591
40709
  ];
40592
- /**
40593
- * The maximum number of copied toolbox items. If an user adding copiedItemMaxCount + 1 item, the first added item will be removed.
40594
- */
40595
40710
  _this.copiedItemMaxCount = 3;
40596
40711
  _this.allowExpandMultipleCategoriesValue = false;
40597
40712
  _this.keepAllCategoriesExpandedValue = false;
@@ -40645,9 +40760,6 @@ var QuestionToolbox = /** @class */ (function (_super) {
40645
40760
  return propertyName;
40646
40761
  };
40647
40762
  Object.defineProperty(QuestionToolbox.prototype, "orderedQuestions", {
40648
- /**
40649
- * Modify this array to change the toolbox items order.
40650
- */
40651
40763
  get: function () {
40652
40764
  return this._orderedQuestions;
40653
40765
  },
@@ -40796,9 +40908,6 @@ var QuestionToolbox = /** @class */ (function (_super) {
40796
40908
  }
40797
40909
  };
40798
40910
  Object.defineProperty(QuestionToolbox.prototype, "jsonText", {
40799
- /**
40800
- * The Array of Toolbox items as Text JSON.
40801
- */
40802
40911
  get: function () {
40803
40912
  return JSON.stringify(this.actions);
40804
40913
  },
@@ -40810,9 +40919,6 @@ var QuestionToolbox = /** @class */ (function (_super) {
40810
40919
  configurable: true
40811
40920
  });
40812
40921
  Object.defineProperty(QuestionToolbox.prototype, "copiedJsonText", {
40813
- /**
40814
- * The Array of copied Toolbox items as Text JSON.
40815
- */
40816
40922
  get: function () {
40817
40923
  return JSON.stringify(this.copiedItems);
40818
40924
  },
@@ -40829,7 +40935,10 @@ var QuestionToolbox = /** @class */ (function (_super) {
40829
40935
  });
40830
40936
  Object.defineProperty(QuestionToolbox.prototype, "items", {
40831
40937
  /**
40832
- * The Array of Toolbox items.
40938
+ * An array of toolbox items.
40939
+ * @see getItemByName
40940
+ * @see addItem
40941
+ * @see removeItem
40833
40942
  */
40834
40943
  get: function () {
40835
40944
  return this.actions;
@@ -40849,9 +40958,6 @@ var QuestionToolbox = /** @class */ (function (_super) {
40849
40958
  configurable: true
40850
40959
  });
40851
40960
  Object.defineProperty(QuestionToolbox.prototype, "copiedItems", {
40852
- /**
40853
- * The Array of copied Toolbox items
40854
- */
40855
40961
  get: function () {
40856
40962
  var result = [];
40857
40963
  for (var i = 0; i < this.actions.length; i++) {
@@ -40863,11 +40969,6 @@ var QuestionToolbox = /** @class */ (function (_super) {
40863
40969
  enumerable: false,
40864
40970
  configurable: true
40865
40971
  });
40866
- /**
40867
- * Add toolbox items into the Toolbox
40868
- * @param items the list of new items
40869
- * @param clearAll set it to true to clear all previous items.
40870
- */
40871
40972
  QuestionToolbox.prototype.addItems = function (items, clearAll) {
40872
40973
  if (clearAll === void 0) { clearAll = false; }
40873
40974
  if (clearAll) {
@@ -40878,11 +40979,6 @@ var QuestionToolbox = /** @class */ (function (_super) {
40878
40979
  }
40879
40980
  this.onItemsChanged();
40880
40981
  };
40881
- /**
40882
- * Add a copied Question into Toolbox
40883
- * @param question a copied Survey.Question
40884
- * @param options a json object that allows you to override question properties. Attributes are: name, title, tooltip, isCopied, iconName, json and category.
40885
- */
40886
40982
  QuestionToolbox.prototype.addCopiedItem = function (question, options) {
40887
40983
  if (options === void 0) { options = null; }
40888
40984
  if (!options)
@@ -40909,12 +41005,6 @@ var QuestionToolbox = /** @class */ (function (_super) {
40909
41005
  this.removeItem(copied[this.copiedItemMaxCount - 1].name);
40910
41006
  this.addItem(item);
40911
41007
  };
40912
- /**
40913
- * Add a toolbox item
40914
- * @param item the toolbox item description
40915
- * @param index the toolbox index to place the item, the item is added to the end if index not passed
40916
- * @see IQuestionToolboxItem
40917
- */
40918
41008
  QuestionToolbox.prototype.getActionByItem = function (item) {
40919
41009
  if (item instanceof QuestionToolboxItem) {
40920
41010
  return item;
@@ -40959,6 +41049,14 @@ var QuestionToolbox = /** @class */ (function (_super) {
40959
41049
  popup.contentComponentData["toolbox"] = this;
40960
41050
  popup.isFocusedContent = false;
40961
41051
  };
41052
+ /**
41053
+ * Adds a new item to the Toolbox.
41054
+ * @param item A [toolbox item configuration](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem).
41055
+ * @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.
41056
+ * @see removeItem
41057
+ * @see replaceItem
41058
+ * @see items
41059
+ */
40962
41060
  QuestionToolbox.prototype.addItem = function (item, index) {
40963
41061
  this.correctItem(item);
40964
41062
  var action = this.getActionByItem(item);
@@ -40984,9 +41082,9 @@ var QuestionToolbox = /** @class */ (function (_super) {
40984
41082
  configurable: true
40985
41083
  });
40986
41084
  /**
40987
- * Add a new toolbox item, add delete the old item with the same name
40988
- * @param item the toolbox item description
40989
- * @see IQuestionToolboxItem
41085
+ * Adds a new toolbox item and deletes an existing item with the same name (if there is any).
41086
+ * @param item A [toolbox item configuration](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem).
41087
+ * @see addItem
40990
41088
  */
40991
41089
  QuestionToolbox.prototype.replaceItem = function (item) {
40992
41090
  this.correctItem(item);
@@ -40998,9 +41096,12 @@ var QuestionToolbox = /** @class */ (function (_super) {
40998
41096
  return true;
40999
41097
  };
41000
41098
  /**
41001
- * Remove a toolbox item by its name
41002
- * @param name toolbox item name
41003
- * @see IQuestionToolboxItem
41099
+ * Removes a [toolbox item](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem) with a specified name.
41100
+ * @param name A toolbox item's [`name`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#name).
41101
+ * @returns `true` if the item is successfully deleted or `false` otherwise.
41102
+ * @see clearItems
41103
+ * @see addItem
41104
+ * @see items
41004
41105
  */
41005
41106
  QuestionToolbox.prototype.removeItem = function (name) {
41006
41107
  var index = this.indexOf(name);
@@ -41011,15 +41112,15 @@ var QuestionToolbox = /** @class */ (function (_super) {
41011
41112
  return true;
41012
41113
  };
41013
41114
  /**
41014
- * Remove all toolbox items.
41115
+ * Removes all items from the Toolbox.
41116
+ * @see removeItem
41117
+ * @see addItem
41118
+ * @see items
41015
41119
  */
41016
41120
  QuestionToolbox.prototype.clearItems = function () {
41017
41121
  this.actions = [];
41018
41122
  this.onItemsChanged();
41019
41123
  };
41020
- /**
41021
- * Remove all copied toolbox items.
41022
- */
41023
41124
  QuestionToolbox.prototype.clearCopiedItems = function () {
41024
41125
  var removedItems = this.copiedItems;
41025
41126
  for (var i = 0; i < removedItems.length; i++) {
@@ -41027,8 +41128,9 @@ var QuestionToolbox = /** @class */ (function (_super) {
41027
41128
  }
41028
41129
  };
41029
41130
  /**
41030
- * Returns toolbox item by its name. Returns null if there is no toolbox item with this name
41031
- * @param name
41131
+ * Returns a [toolbox item](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem) with a specified name.
41132
+ * @param name A toolbox item's [`name`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#name).
41133
+ * @returns A toolbox item or `null` if a toolbox item with the specified name isn't found.
41032
41134
  */
41033
41135
  QuestionToolbox.prototype.getItemByName = function (name) {
41034
41136
  if (!name)
@@ -41038,8 +41140,12 @@ var QuestionToolbox = /** @class */ (function (_super) {
41038
41140
  };
41039
41141
  Object.defineProperty(QuestionToolbox.prototype, "allowExpandMultipleCategories", {
41040
41142
  /**
41041
- * Set it to true, to allow end-user to expand more than one category. There will no active category in this case
41042
- * @see activeCategory
41143
+ * Specifies whether more than one category can be in the expanded state at a time. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) is `true`.
41144
+ *
41145
+ * If this property is `false`, the currently expanded category collapses when a user expands another category.
41146
+ *
41147
+ * Default value: `false`
41148
+ * @see keepAllCategoriesExpanded
41043
41149
  */
41044
41150
  get: function () {
41045
41151
  return this.allowExpandMultipleCategoriesValue;
@@ -41053,7 +41159,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
41053
41159
  });
41054
41160
  Object.defineProperty(QuestionToolbox.prototype, "keepAllCategoriesExpanded", {
41055
41161
  /**
41056
- * Set it to true to expand all categories and hide expand/collapse category buttons
41162
+ * 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`.
41163
+ * @see allowExpandMultipleCategories
41057
41164
  */
41058
41165
  get: function () {
41059
41166
  return this.keepAllCategoriesExpandedValue || !this.showCategoryTitlesValue;
@@ -41070,8 +41177,11 @@ var QuestionToolbox = /** @class */ (function (_super) {
41070
41177
  /**
41071
41178
  * Specifies whether to display category titles in the Toolbox.
41072
41179
  *
41073
- * If you disable this property, the Toolbox hides the titles but continues to display horizontal lines that divide categories. To remove these lines as well, call the `removeCategories()` method.
41074
- * @see removeCategories
41180
+ * Default value: `false`
41181
+ *
41182
+ * 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.
41183
+ * @see allowExpandMultipleCategories
41184
+ * @see keepAllCategoriesExpanded
41075
41185
  */
41076
41186
  get: function () {
41077
41187
  return this.showCategoryTitlesValue;
@@ -41117,20 +41227,22 @@ var QuestionToolbox = /** @class */ (function (_super) {
41117
41227
  }
41118
41228
  };
41119
41229
  /**
41120
- * Change the category of the toolbox item
41121
- * @param name the toolbox item name
41122
- * @param category new category name
41230
+ * Changes the category of a toolbox item.
41231
+ * @param itemName A toolbox item's [`name`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#name).
41232
+ * @param categoryName A new category name. Out-of-the-box category names include `"general"`, `"choice"`, `"text"`, `"containers"`, `"matrix"`, and `"misc"`.
41233
+ * @see defineCategories
41123
41234
  */
41124
- QuestionToolbox.prototype.changeCategory = function (name, category) {
41125
- this.changeCategories([{ name: name, category: category }]);
41235
+ QuestionToolbox.prototype.changeCategory = function (itemName, categoryName) {
41236
+ this.changeCategories([{ name: itemName, category: categoryName }]);
41126
41237
  };
41127
41238
  /**
41128
- * Change categories for several toolbox items.
41129
- * @param changedItems the array of objects {name: "your toolbox item name", category: "new category name"}
41239
+ * Changes the categories of multiple toolbox items.
41240
+ * @param items An array of objects with the following structure: `{ name: "toolboxItemName", category: "newCategoryName" }`.
41241
+ * @see defineCategories
41130
41242
  */
41131
- QuestionToolbox.prototype.changeCategories = function (changedItems) {
41132
- for (var i = 0; i < changedItems.length; i++) {
41133
- var item = changedItems[i];
41243
+ QuestionToolbox.prototype.changeCategories = function (items) {
41244
+ for (var i = 0; i < items.length; i++) {
41245
+ var item = items[i];
41134
41246
  var toolboxItem = this.getItemByName(item.name);
41135
41247
  if (toolboxItem) {
41136
41248
  toolboxItem.category = item.category;
@@ -41216,7 +41328,7 @@ var QuestionToolbox = /** @class */ (function (_super) {
41216
41328
  this.onItemsChanged(false);
41217
41329
  };
41218
41330
  /**
41219
- * Removes categories from the Toolbox.
41331
+ * Removes all categories from the Toolbox.
41220
41332
  */
41221
41333
  QuestionToolbox.prototype.removeCategories = function () {
41222
41334
  var allTypes = survey_core__WEBPACK_IMPORTED_MODULE_1__["ElementFactory"].Instance.getAllToolboxTypes();
@@ -41237,9 +41349,10 @@ var QuestionToolbox = /** @class */ (function (_super) {
41237
41349
  }
41238
41350
  };
41239
41351
  /**
41240
- * Expand a category by its name. If allowExpandMultipleCategories is false (default value), all other categories become collapsed
41241
- * @param categoryName the category name
41242
- * @see allowExpandMultipleCategories
41352
+ * Expands a category with a specified name. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) is `true`.
41353
+ *
41354
+ * If [`allowExpandMultipleCategories`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#allowExpandMultipleCategories) is `false`, all other categories become collapsed.
41355
+ * @param categoryName A category name. Out-of-the-box category names include `"general"`, `"choice"`, `"text"`, `"containers"`, `"matrix"`, and `"misc"`.
41243
41356
  * @see collapseCategory
41244
41357
  */
41245
41358
  QuestionToolbox.prototype.expandCategory = function (categoryName) {
@@ -41256,9 +41369,9 @@ var QuestionToolbox = /** @class */ (function (_super) {
41256
41369
  }
41257
41370
  };
41258
41371
  /**
41259
- * Collapse a category by its name. If allowExpandMultipleCategories is false (default value) this function does nothing
41260
- * @param categoryName the category name
41261
- * @see allowExpandMultipleCategories
41372
+ * Collapses a category with a specified name. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) and [`allowExpandMultipleCategories`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#allowExpandMultipleCategories) are `true`.
41373
+ * @param categoryName A category name. Out-of-the-box category names include `"general"`, `"choice"`, `"text"`, `"containers"`, `"matrix"`, and `"misc"`.
41374
+ * @see expandCategory
41262
41375
  */
41263
41376
  QuestionToolbox.prototype.collapseCategory = function (categoryName) {
41264
41377
  if (!this.allowExpandMultipleCategories)
@@ -41269,15 +41382,15 @@ var QuestionToolbox = /** @class */ (function (_super) {
41269
41382
  }
41270
41383
  };
41271
41384
  /**
41272
- * Expand all categories. If allowExpandMultipleCategories is false (default value) this function does nothing
41273
- * @see allowExpandMultipleCategories
41385
+ * Expands all categories. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) and [`allowExpandMultipleCategories`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#allowExpandMultipleCategories) are `true`.
41386
+ * @see collapseAllCategories
41274
41387
  */
41275
41388
  QuestionToolbox.prototype.expandAllCategories = function () {
41276
41389
  this.expandCollapseAllCategories(false);
41277
41390
  };
41278
41391
  /**
41279
- * Collapse all categories. If allowExpandMultipleCategories is false (default value) this function does nothing
41280
- * @see allowExpandMultipleCategories
41392
+ * Collapses all categories. Applies only if [`showCategoryTitles`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#showCategoryTitles) and [`allowExpandMultipleCategories`](https://surveyjs.io/survey-creator/documentation/api-reference/questiontoolbox#allowExpandMultipleCategories) are `true`.
41393
+ * @see expandAllCategories
41281
41394
  */
41282
41395
  QuestionToolbox.prototype.collapseAllCategories = function () {
41283
41396
  this.expandCollapseAllCategories(true);