survey-creator-core 1.9.126 → 1.9.127

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 (83) 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 +2 -2
  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 +2 -3
  25. package/i18n/hebrew.js.map +1 -1
  26. package/i18n/hebrew.min.js +2 -2
  27. package/i18n/hungarian.js +1 -1
  28. package/i18n/hungarian.min.js +1 -1
  29. package/i18n/index.js +2 -3
  30. package/i18n/index.js.map +1 -1
  31. package/i18n/index.min.js +2 -2
  32. package/i18n/indonesian.js +1 -1
  33. package/i18n/indonesian.min.js +1 -1
  34. package/i18n/italian.js +1 -1
  35. package/i18n/italian.min.js +1 -1
  36. package/i18n/japanese.js +1 -1
  37. package/i18n/japanese.min.js +1 -1
  38. package/i18n/korean.js +1 -1
  39. package/i18n/korean.min.js +1 -1
  40. package/i18n/malay.js +1 -1
  41. package/i18n/malay.min.js +1 -1
  42. package/i18n/mongolian.js +1 -1
  43. package/i18n/mongolian.min.js +1 -1
  44. package/i18n/norwegian.js +1 -1
  45. package/i18n/norwegian.min.js +1 -1
  46. package/i18n/persian.js +1 -1
  47. package/i18n/persian.min.js +1 -1
  48. package/i18n/polish.js +1 -1
  49. package/i18n/polish.min.js +1 -1
  50. package/i18n/portuguese.js +1 -1
  51. package/i18n/portuguese.min.js +1 -1
  52. package/i18n/russian.js +1 -1
  53. package/i18n/russian.min.js +1 -1
  54. package/i18n/simplified-chinese.js +1 -1
  55. package/i18n/simplified-chinese.min.js +1 -1
  56. package/i18n/slovak.js +1 -1
  57. package/i18n/slovak.min.js +1 -1
  58. package/i18n/spanish.js +1 -1
  59. package/i18n/spanish.min.js +1 -1
  60. package/i18n/swedish.js +1 -1
  61. package/i18n/swedish.min.js +1 -1
  62. package/i18n/tajik.js +1 -1
  63. package/i18n/tajik.min.js +1 -1
  64. package/i18n/traditional-chinese.js +1 -1
  65. package/i18n/traditional-chinese.min.js +1 -1
  66. package/i18n/turkish.js +1 -1
  67. package/i18n/turkish.min.js +1 -1
  68. package/package.json +2 -2
  69. package/survey-creator-core.css +19 -6
  70. package/survey-creator-core.fontless.css +18 -5
  71. package/survey-creator-core.fontless.css.map +1 -1
  72. package/survey-creator-core.fontless.min.css +5 -5
  73. package/survey-creator-core.i18n.js +2 -3
  74. package/survey-creator-core.i18n.js.map +1 -1
  75. package/survey-creator-core.i18n.min.js +2 -2
  76. package/survey-creator-core.js +267 -167
  77. package/survey-creator-core.js.map +1 -1
  78. package/survey-creator-core.min.css +6 -6
  79. package/survey-creator-core.min.js +3 -3
  80. package/typings/creator-base.d.ts +192 -113
  81. package/typings/creator-settings.d.ts +4 -4
  82. package/typings/custom-questions/question-file.d.ts +1 -1
  83. package/typings/question-editor/properties.d.ts +7 -5
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.126
2
+ * SurveyJS Creator v1.9.127
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.9.126
133
+ * surveyjs - Survey JavaScript library v1.9.127
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
  */
@@ -12400,6 +12400,10 @@ var SurveyLogicType = /** @class */ (function () {
12400
12400
  if (obj.setOwner) {
12401
12401
  obj.setOwner(this.survey);
12402
12402
  }
12403
+ //Do not fire notification about changes to our creator.survey model
12404
+ if (obj instanceof survey_core__WEBPACK_IMPORTED_MODULE_0__["ItemValue"] || obj instanceof survey_core__WEBPACK_IMPORTED_MODULE_0__["SurveyTrigger"]) {
12405
+ obj["isGhost"] = true;
12406
+ }
12403
12407
  return obj;
12404
12408
  };
12405
12409
  SurveyLogicType.prototype.cloneElement = function (el) {
@@ -15338,9 +15342,10 @@ var ThemeBuilder = /** @class */ (function (_super) {
15338
15342
  var _this = this;
15339
15343
  var json = this.getThemeEditorSurveyJSON();
15340
15344
  Object(_property_grid__WEBPACK_IMPORTED_MODULE_4__["setSurveyJSONForPropertyGrid"])(json, true, false);
15341
- var themeEditorSurvey = this.surveyProvider.createSurvey(json, "theme_editor", this);
15345
+ var themeEditorSurvey = this.surveyProvider.createSurvey({}, "theme_editor", this);
15342
15346
  themeEditorSurvey.lazyRendering = true;
15343
15347
  themeEditorSurvey.lazyRenderingFirstBatchSize = 1;
15348
+ themeEditorSurvey.setJsonObject(json);
15344
15349
  themeEditorSurvey.getCss().list = {};
15345
15350
  var themeBuilderCss = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_5__["propertyGridCss"]);
15346
15351
  themeBuilderCss.root += " spg-theme-builder-root";
@@ -15456,7 +15461,7 @@ var ThemeBuilder = /** @class */ (function (_super) {
15456
15461
  ThemeBuilder.prototype.patchFileEditors = function (survey) {
15457
15462
  var _this = this;
15458
15463
  var questionsToPatch = survey.getAllQuestions(false, false, true).filter(function (q) { return q.getType() == "fileedit"; });
15459
- questionsToPatch.forEach(function (q) { q.onChooseFilesCallback = function (input, onFilesChosen) { return _this.surveyProvider.chooseFiles(input, onFilesChosen); }; });
15464
+ questionsToPatch.forEach(function (q) { q.onChooseFilesCallback = function (input, callback) { return _this.surveyProvider.chooseFiles(input, callback); }; });
15460
15465
  };
15461
15466
  ThemeBuilder.prototype.getCoverJson = function (headerSettings) {
15462
15467
  var result = {};
@@ -17608,6 +17613,7 @@ var TabTranslationPlugin = /** @class */ (function () {
17608
17613
  TabTranslationPlugin.prototype.activate = function () {
17609
17614
  var _this = this;
17610
17615
  this.model = new _translation__WEBPACK_IMPORTED_MODULE_2__["Translation"](this.creator.survey, this.creator);
17616
+ this.model.settingsSurvey.locale = this.creator.locale;
17611
17617
  this.model.readOnly = this.creator.readOnly;
17612
17618
  this.model.translationStringVisibilityCallback = function (obj, propertyName, visible) {
17613
17619
  var options = { obj: obj, propertyName: propertyName, visible: visible };
@@ -19983,9 +19989,6 @@ var CreatorEvent = /** @class */ (function (_super) {
19983
19989
  return CreatorEvent;
19984
19990
  }(survey_core__WEBPACK_IMPORTED_MODULE_1__["EventBase"]));
19985
19991
 
19986
- /**
19987
- * Base class for Survey Creator.
19988
- */
19989
19992
  var CreatorBase = /** @class */ (function (_super) {
19990
19993
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreatorBase, _super);
19991
19994
  function CreatorBase(options, options2) {
@@ -20107,6 +20110,7 @@ var CreatorBase = /** @class */ (function (_super) {
20107
20110
  * To disable a user interaction, set the correponding `allow...` property to `false`.
20108
20111
  *
20109
20112
  * [Specify Adorner Visibility](https://surveyjs.io/survey-creator/documentation/customize-survey-creation-process#specify-adorner-availability (linkStyle))
20113
+ * @see onCollectionItemAllowOperations
20110
20114
  */
20111
20115
  _this.onElementAllowOperations = new CreatorEvent();
20112
20116
  /**
@@ -20173,6 +20177,7 @@ var CreatorBase = /** @class */ (function (_super) {
20173
20177
  * A property editor. It is an object of the [`Question`](https://surveyjs.io/form-library/documentation/question) type because the Property Grid is [built upon a regular survey](https://surveyjs.io/survey-creator/documentation/creator-v2-whats-new#survey-creator-ui-elements-are-surveys).
20174
20178
  * - `options.property`: `JsonObjectProperty`\
20175
20179
  * A property that corresponds to the created property editor.
20180
+ * @see onSetPropertyEditorOptions
20176
20181
  * @see onPropertyGridSurveyCreated
20177
20182
  */
20178
20183
  _this.onPropertyEditorCreated = new CreatorEvent();
@@ -20215,47 +20220,89 @@ var CreatorBase = /** @class */ (function (_super) {
20215
20220
  _this.onCanDeleteItem = new CreatorEvent();
20216
20221
  _this.onCollectionItemDeleting = new CreatorEvent();
20217
20222
  /**
20218
- * The event is called before rendering a collection item in a property editor. For example: a column in a column editor, or an item in Choices and so on.
20219
- * Use this event to prevent a collection item from being edited or removed from a collection.
20220
- *- sender the survey creator object that fires the event
20221
- *- options.obj the survey object: Question, Panel, Page or Survey
20222
- *- options.property the collection property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
20223
- *- options.propertyName the collection property name
20224
- *- options.collection a collection where a target item is located. It is can be Columns in Matrices or Choices in Dropdown question and so on.
20225
- *- options.item a target collection item
20226
- *- options.allowDelete a boolean value. It is `true` by default. Set it false to prevent an item from being removed from the collection
20227
- *- options.allowAdd a boolean value. It is `true` by default. Set it false to prevent an item from being added to the collection
20228
- *- options.allowEdit a boolean value. It is `true` by default. Set it `false` to disable editing.
20223
+ * An event that is raised when Survey Creator obtains permitted operations for a collection item (a choice option in Choices, a column or row in Columns, etc.). Use this event to prevent users from adding, deleting, or editing a particular collection item.
20224
+ *
20225
+ * Parameters:
20226
+ *
20227
+ * - `sender`: `CreatorBase`\
20228
+ * A Survey Creator instance that raised the event.
20229
+ * - `options.obj`: [`Survey.Base`](https://surveyjs.io/form-library/documentation/api-reference/base)\
20230
+ * A survey element (survey, page, panel, question) that contains the collection to which the target item belongs.
20231
+ * - `options.property`: `JsonObjectProperty`\
20232
+ * A property that contains the collection to which the target item belongs.
20233
+ * - `options.propertyName`: `string`\
20234
+ * The property's name: `columns`, `rows`, `choices`, `rateValues`, etc.
20235
+ * - `options.collection`: [`Survey.Base[]`](https://surveyjs.io/form-library/documentation/api-reference/base)\
20236
+ * An array of collection items to which the target item belongs ([`columns`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model#columns) or [`rows`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model#rows) in matrix questions, [`choices`](https://surveyjs.io/form-library/documentation/api-reference/questionselectbase#choices) in select-based questions, etc.).
20237
+ * - `options.item`: [`Survey.Base`](https://surveyjs.io/form-library/documentation/api-reference/base)\
20238
+ * A target collection item.
20239
+ * - `options.allowAdd`: `boolean`\
20240
+ * A Boolean property that you can set to `false` if you want to prevent the target item from being added to the collection.
20241
+ * - `options.allowDelete`: `boolean`\
20242
+ * A Boolean property that you can set to `false` if you want to prevent the target item from being deleted.
20243
+ * - `options.allowEdit`: `boolean`\
20244
+ * A Boolean property that you can set to `false` if you want to prevent the target item from being edited.
20245
+ * @see onElementAllowOperations
20229
20246
  */
20230
20247
  _this.onCollectionItemAllowOperations = new CreatorEvent();
20231
20248
  /**
20232
- * The event is called on adding a new Survey.ItemValue object. It uses as an element in choices array in Radiogroup, checkbox and dropdown questions or Matrix columns and rows properties.
20233
- * Use this event, to set ItemValue.value and ItemValue.text properties by default or set a value to the custom property.
20234
- *- sender the survey creator object that fires the event
20235
- *- options.obj the object that contains the itemsValues array, for example selector, rating and single choice matrix questions.
20236
- *- options.propertyName the object property Name. It can be "choices" for selector questions or rateValues for rating question or columns/rows for single choice matrix.
20237
- *- options.newItem a new created Survey.ItemValue object.
20238
- *- options.itemValues an editing Survey.ItemValue array. newItem object is not added yet into this array.
20239
- */
20249
+ * An event that is raised when users add a new collection item (a choice option to Choices, a column or row to Columns, etc.). Use this event to modify this item.
20250
+ *
20251
+ * Parameters:
20252
+ *
20253
+ * - `sender`: `CreatorBase`\
20254
+ * A Survey Creator instance that raised the event.
20255
+ * - `options.obj`: [`Survey.Base`](https://surveyjs.io/form-library/documentation/api-reference/base)\
20256
+ * A survey element (survey, page, panel, question) that contains the collection to which the target item belongs.
20257
+ * - `options.property`: `JsonObjectProperty`\
20258
+ * A property that contains the collection to which the target item belongs.
20259
+ * - `options.propertyName`: `string`\
20260
+ * The property's name: `columns`, `rows`, `choices`, `rateValues`, etc.
20261
+ * - `options.newItem`: [`ItemValue`](https://surveyjs.io/form-library/documentation/itemvalue)\
20262
+ * A new collection item. Overwrite its `value` or `text` property if you want to change the item's value or display text.
20263
+ * - `options.itemValues`: [`ItemValue[]`](https://surveyjs.io/form-library/documentation/api-reference/base)\
20264
+ * An array of collection items to which the target item belongs ([`columns`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model#columns) or [`rows`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model#rows) in matrix questions, [`choices`](https://surveyjs.io/form-library/documentation/api-reference/questionselectbase#choices) in select-based questions, etc.). This array does not include `options.newItem`.
20265
+ *
20266
+ * > This event is not raised when users add a new column to a [Multi-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list) or [Dynamic Matrix](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model). For these cases, handle the [`onMatrixColumnAdded`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onMatrixColumnAdded) event instead.
20267
+ * @see onCollectionItemAllowOperations
20268
+ */
20240
20269
  _this.onItemValueAdded = new CreatorEvent();
20241
20270
  /**
20242
- * The event is called when a user adds a new column into MatrixDropdown or MatrixDynamic questions. Use it to set some properties of Survey.MatrixDropdownColumn by default, for example name or a custom property.
20243
- *- sender the survey creator object that fires the event
20244
- *- options.matrix a matrix question where column is located, matrix.columns.
20245
- *- options.newColumn a new created Survey.MatrixDropdownColumn object.
20246
- *- options.columns editable columns objects. They can be different from options.matrix.columns. options.columns and options.matrix.columns are equal after user press Apply or Cancel and options.columns will be set to options.matrix.columns or reset to initial state.
20271
+ * An event that is raised when users add a new column to a [Multi-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list) or [Dynamic Matrix](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model). Use this event to modify this column.
20272
+ *
20273
+ * Parameters:
20274
+ *
20275
+ * - `sender`: `CreatorBase`\
20276
+ * A Survey Creator instance that raised the event.
20277
+ * - `options.matrix`: [`Question`](https://surveyjs.io/form-library/documentation/api-reference/question)\
20278
+ * A Multi-Select or Dynamic Matrix to which a new column is being added.
20279
+ * - `options.newColumn`: [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/matrixdropdowncolumn)\
20280
+ * A new matrix column. Edit its properties if you want to modify this column.
20281
+ * - `options.columns`: [`MatrixDropdownColumn[]`](https://surveyjs.io/form-library/documentation/api-reference/matrixdropdowncolumn)\
20282
+ * An array of matrix columns. This array does not include `options.newColumn`.
20283
+ *
20284
+ * > This event is not raised when users add a new column to a [Single-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model). For this case, handle the [`onItemValueAdded`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onItemValueAdded) event instead.
20285
+ * @see onCollectionItemAllowOperations
20247
20286
  */
20248
20287
  _this.onMatrixColumnAdded = new CreatorEvent();
20249
20288
  /**
20250
- * Use this event to control Property Editors UI.
20251
- *- sender the survey creator object that fires the event
20252
- *- options.obj the survey object which property is edited in the Property Editor.
20253
- *- options.propertyName the name of the edited property.
20254
- *- options.editorOptions options that can be changed.
20255
- *- options.editorOptions.allowAddRemoveItems a boolean property, true by default. Set it false to disable add/remove items in array properties. For example 'choices', 'columns', 'rows'.
20256
- *- options.editorOptions.allowRemoveAllItems a boolean property, true by default. Set it false to disable remove all items in array properties. For example 'choices', 'columns', 'rows'.
20257
- *- options.editorOptions.allowBatchEdit a boolean property, true by default. Set it false to hide the "Edit" button for the "choices" property.
20258
- *- options.editorOptions.itemsEntryType a string property, 'form' by default. Set it 'fast' to show "Manual Entry" tab for "choices" property by default.
20289
+ * An event that is raised when a table property editor is created in the Property Grid. Use this event to configure the table property editor.
20290
+ *
20291
+ * Parameters:
20292
+ *
20293
+ * - `sender`: `CreatorBase`\
20294
+ * A Survey Creator instance that raised the event.
20295
+ * - `options.obj`: [`Survey.Base`](https://surveyjs.io/form-library/documentation/api-reference/base)\
20296
+ * A survey element (survey, page, panel, question) for which the table property editor is created.
20297
+ * - `options.propertyName`: `string`\
20298
+ * The name of the property with which the editor is associated: [`"columns"`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model#columns), [`"rows"`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model#rows), [`"choices"`](https://surveyjs.io/form-library/documentation/api-reference/questionselectbase#choices), etc.
20299
+ * - `options.editorOptions.allowAddRemoveItems`: `boolean`\
20300
+ * A Boolean property that you can set to `false` if you want to disallow users to add and delete table rows.
20301
+ * - `options.editorOptions.allowRemoveAllItems`: `boolean`\
20302
+ * A Boolean property that you can set to `false` if you want to disallow users to delete all table rows.
20303
+ * - `options.editorOptions.allowBatchEdit`: `boolean`\
20304
+ * A Boolean property that you can set to `false` if you want to disallow users to edit table content as text in a pop-up window.
20305
+ * @see onPropertyEditorCreated
20259
20306
  */
20260
20307
  _this.onSetPropertyEditorOptions = new CreatorEvent();
20261
20308
  _this.onGenerateNewName = new CreatorEvent();
@@ -20305,7 +20352,7 @@ var CreatorBase = /** @class */ (function (_super) {
20305
20352
  * - `sender`: `CreatorBase`\
20306
20353
  * A Survey Creator instance that raised the event.
20307
20354
  * - `options.obj`: [`Survey.Base`](https://surveyjs.io/form-library/documentation/api-reference/base)\
20308
- * A survey element (question, panel, page, or the survey itself) whose property is has changed.
20355
+ * A survey element (question, panel, page, or the survey itself) whose property has changed.
20309
20356
  * - `options.propertyName`: `string`\
20310
20357
  * The name of the modified property.
20311
20358
  * - `options.value`: `any`\
@@ -20315,21 +20362,24 @@ var CreatorBase = /** @class */ (function (_super) {
20315
20362
  */
20316
20363
  _this.onSurveyPropertyValueChanged = new CreatorEvent();
20317
20364
  /**
20318
- * Use this event to modify the list (name and titles) of the questions available in a condition editor.
20319
- *- sender the survey creator object that fires the event
20320
- *- options.obj the survey object which property is edited in the Property Editor.
20321
- *- options.propertyName the name of the edited property.
20322
- *- options.editor the instance of Property Editor.
20323
- *- options.list the list of the questions available for condition
20324
- *- options.sortOrder "asc" (default) | "none". Change it to "none", if you don't want to sort your condition list
20325
- */
20326
- _this.onConditionQuestionsGetList = new CreatorEvent();
20327
- /**
20328
- * Use this event to modify the title in a condition editor. The title is changing during editing. In case of empty or incorrect expression it tells that expression is incorrect
20329
- *- sender the survey creator object that fires the event.
20330
- *- options.expression the current expression. If the expression is empty or incorrect then the value is empty.
20331
- *- options.title the default value of the title. You can change the default value.
20365
+ * An event that is raised when a condition editor renders a list of questions available for selection. Use this event to modify this list.
20366
+ *
20367
+ * Parameters:
20368
+ *
20369
+ * - `sender`: `CreatorBase`\
20370
+ * A Survey Creator instance that raised the event.
20371
+ * - `options.obj`: [`Survey.Base`](https://surveyjs.io/form-library/documentation/api-reference/base)\
20372
+ * A survey element (question, panel, page, or the survey itself) for which the condition editor is displayed.
20373
+ * - `options.propertyName`: `string`\
20374
+ * The name of a property being configured: `enableIf`, `requiredIf`, `visibleIf`, etc.
20375
+ * - `options.editor`: `any`\
20376
+ * A condition editor instance.
20377
+ * - `options.list`: `any`\
20378
+ * A list of questions available for selection.
20379
+ * - `options.sortOrder`: `"asc"` (default) | `"none"`\
20380
+ * The sort order of questions within the list. Set this property to `"none"` to disable sorting.
20332
20381
  */
20382
+ _this.onConditionQuestionsGetList = new CreatorEvent();
20333
20383
  _this.onConditionGetTitle = new CreatorEvent();
20334
20384
  /**
20335
20385
  * An event that is raised when Survey Creator populates a condition editor with operators. Use this event to hide individual condition operators.
@@ -20346,19 +20396,23 @@ var CreatorBase = /** @class */ (function (_super) {
20346
20396
  * A condition opeator for which the event is raised.
20347
20397
  * - `options.show`: `boolean`\
20348
20398
  * A Boolean property that you can set to `false` if you want to hide the condition operator.
20349
- *
20350
20399
  */
20351
20400
  _this.onGetConditionOperator = new CreatorEvent();
20352
20401
  /**
20353
- * Use this event to modify the display text of a logic item in the Logic tab.
20402
+ * An event that is raised when the Logic tab constructs a user-friendly display text for a logic rule. Use this event to modify this display text.
20354
20403
  *
20355
- * The event handler accepts the following arguments:
20404
+ * Parameters:
20356
20405
  *
20357
- * - `sender` - A Survey Creator instance that raised the event.
20358
- * - `options.expression` - A logical expression associated with the logic item.
20359
- * - `options.expressionText` - The same expression in a user-friendly format. It may contain question titles instead of question names.
20360
- * - `options.logicItem` - A logic item object. Contains an array of actions and other properties.
20361
- * - `options.text` - The expression and actions in a user-friendly format. Redefine this property if you want to change the display text.
20406
+ * - `sender`: `CreatorBase`\
20407
+ * A Survey Creator instance that raised the event.
20408
+ * - `options.expression`: `string`\
20409
+ * A logical expression associated with the logic rule.
20410
+ * - `options.expressionText`: `string`\
20411
+ * The same expression in a user-friendly format.
20412
+ * - `options.logicItem`: `SurveyLogicItem`\
20413
+ * An object that describes the logic rule. Contains an array of actions and other properties.
20414
+ * - `options.text`: `string`\
20415
+ * A user-friendly display text for the logic rule. Modify this parameter if you want to override the display text.
20362
20416
  */
20363
20417
  _this.onLogicItemDisplayText = new CreatorEvent();
20364
20418
  /**
@@ -20417,6 +20471,7 @@ var CreatorBase = /** @class */ (function (_super) {
20417
20471
  * - `options.source` - A dragged element.
20418
20472
  * - `options.target` - A drop target.
20419
20473
  * - `options.newElement` - A new element. This parameter is defined only if users drag a question or panel from the Toolbox.
20474
+ * @see state
20420
20475
  */
20421
20476
  _this.onModified = new CreatorEvent();
20422
20477
  /**
@@ -20495,6 +20550,7 @@ var CreatorBase = /** @class */ (function (_super) {
20495
20550
  * [Design Mode Survey Instance](https://surveyjs.io/survey-creator/documentation/customize-survey-creation-process#design-mode-survey-instance (linkStyle))
20496
20551
  *
20497
20552
  * > If you want this event raised at startup, assign a survey JSON schema to the [`JSON`](#JSON) property *after* you add a handler to the event. If the JSON schema should be empty, specify the `JSON` property with an empty object.
20553
+ * @see survey
20498
20554
  */
20499
20555
  _this.onDesignerSurveyCreated = new CreatorEvent();
20500
20556
  /**
@@ -20514,9 +20570,15 @@ var CreatorBase = /** @class */ (function (_super) {
20514
20570
  _this.onPreviewSurveyCreated = new CreatorEvent();
20515
20571
  _this.onTestSurveyCreated = _this.onPreviewSurveyCreated;
20516
20572
  /**
20517
- * The event is called in case of UI notifications. By default all notifications are done via built-in alert () function.
20518
- * In case of any subscriptions to this event all notifications will be redirected into the event handler.
20519
- *- options.message is a message to show.
20573
+ * An event that is raised when Survey Creator [displays a toast notification](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#notify). Use this event to implement custom toast notification.
20574
+ *
20575
+ * Parameters:
20576
+ *
20577
+ * - `sender`: `CreatorBase`\
20578
+ * A Survey Creator instance that raised the event.
20579
+ * - `options.message`: `string`\
20580
+ * A message to display.
20581
+ * @see notify
20520
20582
  */
20521
20583
  _this.onNotify = new CreatorEvent();
20522
20584
  /**
@@ -20559,15 +20621,23 @@ var CreatorBase = /** @class */ (function (_super) {
20559
20621
  * A choice item for which the event is raised. This parameter has a value only when the dialog window is opened to select images for an [Image Picker](https://surveyjs.io/form-library/documentation/api-reference/image-picker-question-model) question.
20560
20622
  * - `options.callback: (files: Array<File>)`: `Function`\
20561
20623
  * A callback function to which you should pass selected files.
20624
+ * @see onUploadFile
20562
20625
  * @see uploadFiles
20563
20626
  */
20564
20627
  _this.onOpenFileChooser = new CreatorEvent();
20565
20628
  /**
20566
- * The event is fired on uploading the files.
20629
+ * An event that is raised when a user selects a file to upload. Use this event to upload the file to your server.
20567
20630
  *
20568
- * - `sender` - the survey creator object that fires the event
20569
- * - `options.files` - the Javascript File objects array
20570
- * - `options.callback(status, imageLink)` - called on upload complete
20631
+ * Parameters:
20632
+ *
20633
+ * - `sender`: `CreatorBase`\
20634
+ * A Survey Creator instance that raised the event.
20635
+ * - `options.question`: [`Question`](https://surveyjs.io/form-library/documentation/api-reference/question)\
20636
+ * A question for which files are being uploaded.
20637
+ * - `options.files`: [`File[]`](https://developer.mozilla.org/en-US/docs/Web/API/File)\
20638
+ * Files to upload.
20639
+ * - `options.callback(status: string, fileUrl: string)`: `Function`\
20640
+ * A callback function that you should call when a file is uploaded successfully or when file upload fails. Pass `"success"` or `"error"` as the `status` argument. If the file upload is successful, pass the file's URL as the `fileUrl` argument.
20571
20641
  *
20572
20642
  * [View Demo](https://surveyjs.io/survey-creator/examples/file-upload/ (linkStyle))
20573
20643
  * @see uploadFiles
@@ -20765,15 +20835,15 @@ var CreatorBase = /** @class */ (function (_super) {
20765
20835
  * - `options.messageText`: `string`\
20766
20836
  * A notification message that you want to display. Assign a custom string value to this parameter.
20767
20837
  * - `options.actionText`: `string`\
20768
- * A caption text for the action button. Assign a custom string value to this parameter.
20838
+ * A caption text for the action link. Assign a custom string value to this parameter.
20769
20839
  * - `options.onClick`: `function`\
20770
- * A function that is called when users click the action button. Assign a custom function to this parameter.
20840
+ * A function that is called when users click the action link. Assign a custom function to this parameter.
20771
20841
  *
20772
- * A message panel displays a notification message instead of a question box on the design surface. A message panel contains a message and an action button. For instance, the following image illustrates a built-in message panel notifying survey authors that choice options are loaded from a web service:
20842
+ * A message panel is displayed within a question box on the design surface. It contains a text message and an optional action link. The following image illustrates a built-in message panel that appears when a question sources its choice options from another question or from a web service:
20773
20843
  *
20774
20844
  * <img src="https://surveyjs.io/stay-updated/release-notes/articles/v1.9.126/creator-message-panel.png" alt="Survey Creator: A message panel" width="75%">
20775
20845
  *
20776
- * To create a custom message panel, handle the `onCreateCustomMessagePanel` event. This event is raised for questions whose `isMessagePanelVisible` property set to `true`. The following code shows how to enable this property based on a condition. This code implements a custom data source selector for select-based questions (Dropdown, Checkboxes, Radio Button Group). When a survey author selects any data source other than "Custom", the `isMessagePanelVisible` property becomes enabled, indicating that the `onCreateCustomMessagePanel` event must be raised. A function that handles this event specifies custom message and action button texts and `onClick` event handler:
20846
+ * To create a custom message panel, handle the `onCreateCustomMessagePanel` event. This event is raised for questions whose `isMessagePanelVisible` property set to `true`. The following code shows how to enable this property based on a condition. This code implements a custom data source selector for select-based questions (Dropdown, Checkboxes, Radio Button Group). When a survey author selects any data source other than "Custom", the `isMessagePanelVisible` property becomes enabled, indicating that the `onCreateCustomMessagePanel` event must be raised. A function that handles this event specifies custom message and action link texts and `onClick` event handler:
20777
20847
  *
20778
20848
  * ```js
20779
20849
  * import { Serializer } from "survey-core";
@@ -20815,7 +20885,7 @@ var CreatorBase = /** @class */ (function (_super) {
20815
20885
  // */
20816
20886
  // public useTabsInElementEditor = false;
20817
20887
  /**
20818
- * Limits the number of items in a logical expression.
20888
+ * Limits the number of items in a logical condition.
20819
20889
  *
20820
20890
  * Default value: -1 (unlimited)
20821
20891
  */
@@ -20849,7 +20919,6 @@ var CreatorBase = /** @class */ (function (_super) {
20849
20919
  * If you set this property to `false`, users can only use UI elements to edit logical expressions.
20850
20920
  *
20851
20921
  * Default value: `true`
20852
- *
20853
20922
  * @see showLogicTab
20854
20923
  */
20855
20924
  _this.allowEditExpressionsInTextEditor = true;
@@ -20906,10 +20975,6 @@ var CreatorBase = /** @class */ (function (_super) {
20906
20975
  _this._allowModifyPages = true;
20907
20976
  _this.showDefaultLanguageInTestSurveyTab = "auto";
20908
20977
  _this.showInvisibleElementsInTestSurveyTab = true;
20909
- /**
20910
- * Set this property to true if you want to show "page selector" in the toolabar instead of "pages editor"
20911
- */
20912
- _this.showPageSelectorInToolbar = false;
20913
20978
  /**
20914
20979
  * Specifies whether users can switch between UI themes in the Preview tab.
20915
20980
  *
@@ -20920,7 +20985,7 @@ var CreatorBase = /** @class */ (function (_super) {
20920
20985
  */
20921
20986
  _this.allowChangeThemeInPreview = true;
20922
20987
  /**
20923
- * Specifies whether to show an error message if a survey is not saved in the database.
20988
+ * Specifies whether to show an error message if a survey is not saved in a database.
20924
20989
  *
20925
20990
  * Default value: `true`
20926
20991
  */
@@ -21055,7 +21120,7 @@ var CreatorBase = /** @class */ (function (_super) {
21055
21120
  /**
21056
21121
  * A delay between changing survey settings and saving the survey JSON schema, measured in milliseconds. Applies only when the [`isAutoSave`](#isAutoSave) property is `true`.
21057
21122
  *
21058
- * Default value: 500 (taken from `settings.autoSave.delay`)
21123
+ * Default value: 500 (inherited from `settings.autoSave.delay`)
21059
21124
  *
21060
21125
  * If a user changes the settings once again during the delay, only the latest version will be saved.
21061
21126
  */
@@ -21466,18 +21531,17 @@ var CreatorBase = /** @class */ (function (_super) {
21466
21531
  enumerable: false,
21467
21532
  configurable: true
21468
21533
  });
21469
- /**
21470
- * Returns the localized string by its id
21471
- * @param str the string id.
21472
- */
21473
21534
  CreatorBase.prototype.getLocString = function (str) {
21474
21535
  return _editorLocalization__WEBPACK_IMPORTED_MODULE_3__["editorLocalization"].getString(str);
21475
21536
  };
21476
21537
  CreatorBase.prototype.onSetReadOnly = function (newVal) { };
21477
21538
  Object.defineProperty(CreatorBase.prototype, "locale", {
21478
21539
  /**
21479
- * Gets or sets the survey locale. The default value it is empty, this means the 'en' locale is used.
21480
- * You can set it to 'de' - German, 'fr' - French and so on.
21540
+ * Specifies the locale of the Survey Creator UI.
21541
+ *
21542
+ * Default value: `""` (inherited from `editorLocalization.currentLocale`)
21543
+ *
21544
+ * [Localization & Globalization](https://surveyjs.io/survey-creator/documentation/survey-localization-translate-surveys-to-different-languages (linkStyle))
21481
21545
  */
21482
21546
  get: function () {
21483
21547
  return this.getPropertyValue("locale", _editorLocalization__WEBPACK_IMPORTED_MODULE_3__["editorLocalization"].currentLocale);
@@ -21673,7 +21737,7 @@ var CreatorBase = /** @class */ (function (_super) {
21673
21737
  });
21674
21738
  Object.defineProperty(CreatorBase.prototype, "showSidebar", {
21675
21739
  /**
21676
- * Specifies whether to show the sidebar that displays Property Grid.
21740
+ * Specifies whether to show the sidebar that displays the Property Grid.
21677
21741
  *
21678
21742
  * Default value: `true`
21679
21743
  * @see sidebarLocation
@@ -21977,7 +22041,8 @@ var CreatorBase = /** @class */ (function (_super) {
21977
22041
  };
21978
22042
  Object.defineProperty(CreatorBase.prototype, "survey", {
21979
22043
  /**
21980
- * The editing survey object (Survey.Survey)
22044
+ * A [survey](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model) being configured in the Designer tab.
22045
+ * @see onDesignerSurveyCreated
21981
22046
  */
21982
22047
  get: function () {
21983
22048
  return this.surveyValue;
@@ -22244,11 +22309,6 @@ var CreatorBase = /** @class */ (function (_super) {
22244
22309
  this.setSurveyJSONTextCallback(value);
22245
22310
  }
22246
22311
  };
22247
- /**
22248
- * Set JSON as text into survey. Clear undo/redo states optionally.
22249
- * @param value JSON as text
22250
- * @param clearState default false. Set this parameter to true to clear undo/redo states.
22251
- */
22252
22312
  CreatorBase.prototype.changeText = function (value, clearState) {
22253
22313
  if (clearState === void 0) { clearState = false; }
22254
22314
  this.setTextValue(value);
@@ -22328,7 +22388,15 @@ var CreatorBase = /** @class */ (function (_super) {
22328
22388
  };
22329
22389
  Object.defineProperty(CreatorBase.prototype, "state", {
22330
22390
  /**
22331
- * Returns the creator state. It may return empty string or "saving" and "saved".
22391
+ * Indicates the state of Survey Creator.
22392
+ *
22393
+ * Possible values:
22394
+ *
22395
+ * - `""` - Survey Creator doesn't have unsaved changes.
22396
+ * - `"modified"` - Survey Creator has unsaved changes.
22397
+ * - `"saving"` - Changes are being saved.
22398
+ * - `"saved"` - Changes are successfully saved.
22399
+ * @see onModified
22332
22400
  */
22333
22401
  get: function () {
22334
22402
  return !!this._stateValue ? this._stateValue : "";
@@ -22371,17 +22439,20 @@ var CreatorBase = /** @class */ (function (_super) {
22371
22439
  this.setModified(options);
22372
22440
  };
22373
22441
  /**
22374
- * This function triggers user notification (via the alert() function if no onNotify event handler added).
22375
- * @see onNotify
22442
+ * Displays a toast notification with a specified message.
22443
+ *
22444
+ * If you want to implement custom toast notification from scratch, handle the [`onNotify`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onNotify) event.
22445
+ * @param message A message to display.
22446
+ * @param type A notification type: `"info"` (default) or `"error"`.
22376
22447
  */
22377
- CreatorBase.prototype.notify = function (msg, type) {
22448
+ CreatorBase.prototype.notify = function (message, type) {
22378
22449
  if (type === void 0) { type = "info"; }
22379
22450
  if (this.onNotify.isEmpty) {
22380
- this.notifier.notify(msg, type);
22381
- // alert(msg);
22451
+ this.notifier.notify(message, type);
22452
+ // alert(message);
22382
22453
  }
22383
22454
  else {
22384
- this.onNotify.fire(this, { message: msg });
22455
+ this.onNotify.fire(this, { message: message });
22385
22456
  }
22386
22457
  };
22387
22458
  CreatorBase.prototype.convertQuestion = function (obj, className) {
@@ -22594,8 +22665,9 @@ var CreatorBase = /** @class */ (function (_super) {
22594
22665
  return this.createNewElement(json);
22595
22666
  };
22596
22667
  /**
22597
- * Copy a question to the active page
22598
- * @param question A copied Survey.Question
22668
+ * Creates a copy of a specified question and inserts the copy next to this question.
22669
+ * @param question A question to copy.
22670
+ * @returns The instance of a new question.
22599
22671
  */
22600
22672
  CreatorBase.prototype.fastCopyQuestion = function (question) {
22601
22673
  var newElement = this.copyElement(question);
@@ -22653,8 +22725,11 @@ var CreatorBase = /** @class */ (function (_super) {
22653
22725
  this.deleteObject(element);
22654
22726
  };
22655
22727
  /**
22656
- * Create a new page with the same elements and place it next to the current one. It returns the new created Survey.Page
22657
- * @param page A copied Survey.Page
22728
+ * Creates a copy of a specified page and inserts the copy next to this page.
22729
+ * @param page A [page](https://surveyjs.io/form-library/documentation/api-reference/page-model) to copy.
22730
+ * @returns The [instance of a new page](https://surveyjs.io/form-library/documentation/api-reference/page-model).
22731
+ * @see onPageAdding
22732
+ * @see onPageAdded
22658
22733
  */
22659
22734
  CreatorBase.prototype.copyPage = function (page) {
22660
22735
  var _this = this;
@@ -22895,8 +22970,9 @@ var CreatorBase = /** @class */ (function (_super) {
22895
22970
  return isValid;
22896
22971
  };
22897
22972
  /**
22898
- * Deletes all custom translation strings for the passed locale from Survey Creator and from the generated survey JSON schema.
22973
+ * Deletes all custom translation strings for a specified locale from Survey Creator and from the generated survey JSON schema.
22899
22974
  * @param locale A locale code (for example, "en").
22975
+ * @see locale
22900
22976
  */
22901
22977
  CreatorBase.prototype.deleteLocaleStrings = function (locale) {
22902
22978
  var translation = new _src_components_tabs_translation__WEBPACK_IMPORTED_MODULE_21__["Translation"](this.survey);
@@ -22969,11 +23045,13 @@ var CreatorBase = /** @class */ (function (_super) {
22969
23045
  return json;
22970
23046
  };
22971
23047
  /**
22972
- * Open file chooser dialog
22973
- * @param input file input element
22974
- * @param onFilesChosen a call back function to process chosen files
23048
+ * Opens a dialog window for users to select files.
23049
+ * @param input A [file input HTML element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
23050
+ * @param callback A callback function that you can use to process selected files. Accepts an array of JavaScript <a href="https://developer.mozilla.org/en-US/docs/Web/API/File" target="_blank">File</a> objects.
23051
+ * @see onOpenFileChooser
23052
+ * @see onUploadFile
22975
23053
  */
22976
- CreatorBase.prototype.chooseFiles = function (input, onFilesChosen, context) {
23054
+ CreatorBase.prototype.chooseFiles = function (input, callback, context) {
22977
23055
  if (this.onOpenFileChooser.isEmpty) {
22978
23056
  if (!window || !window["FileReader"])
22979
23057
  return;
@@ -22987,7 +23065,7 @@ var CreatorBase = /** @class */ (function (_super) {
22987
23065
  for (var i = 0; i < input.files.length; i++) {
22988
23066
  files.push(input.files[i]);
22989
23067
  }
22990
- onFilesChosen(files);
23068
+ callback(files);
22991
23069
  };
22992
23070
  input.click();
22993
23071
  }
@@ -22996,20 +23074,22 @@ var CreatorBase = /** @class */ (function (_super) {
22996
23074
  input: input,
22997
23075
  element: context && context.element || this.survey,
22998
23076
  item: context && context.item,
22999
- callback: onFilesChosen
23077
+ callback: callback
23000
23078
  });
23001
23079
  }
23002
23080
  };
23003
23081
  /**
23004
- * Upload the files on a server
23005
- * @param files files to upload
23006
- * @param uploadingCallback a call back function to get the status on uploading the file and operation result - URI of the uploaded file
23082
+ * Uploads files to a server.
23083
+ * @param files An array of JavaScript <a href="https://developer.mozilla.org/en-US/docs/Web/API/File" target="_blank">File</a> objects that represent files to upload.
23084
+ * @param question A [question instance](https://surveyjs.io/form-library/documentation/api-reference/question) for which files are uploaded.
23085
+ * @param callback A callback function that indicates the upload status&mdash;"success" or "error"&mdash;as the first argument. If a file is uploaded successfully, the second argument contains the file's URL.
23086
+ * @see onUploadFile
23007
23087
  */
23008
- CreatorBase.prototype.uploadFiles = function (files, question, uploadingCallback) {
23088
+ CreatorBase.prototype.uploadFiles = function (files, question, callback) {
23009
23089
  if (this.onUploadFile.isEmpty) {
23010
23090
  var fileReader_1 = new FileReader();
23011
23091
  fileReader_1.onload = function (e) {
23012
- uploadingCallback("success", fileReader_1.result);
23092
+ callback("success", fileReader_1.result);
23013
23093
  };
23014
23094
  fileReader_1.readAsDataURL(files[0]);
23015
23095
  }
@@ -23017,7 +23097,7 @@ var CreatorBase = /** @class */ (function (_super) {
23017
23097
  this.onUploadFile.fire(this, {
23018
23098
  question: question,
23019
23099
  files: files || [],
23020
- callback: uploadingCallback
23100
+ callback: callback
23021
23101
  });
23022
23102
  }
23023
23103
  };
@@ -23821,6 +23901,11 @@ var CreatorBase = /** @class */ (function (_super) {
23821
23901
  return CreatorBase;
23822
23902
  }(survey_core__WEBPACK_IMPORTED_MODULE_1__["Base"]));
23823
23903
 
23904
+ /**
23905
+ * A class with properties, methods, and events that allow you to configure Survey Creator and manage its elements.
23906
+ *
23907
+ * [View Demo](https://surveyjs.io/survey-creator/examples/free-nps-survey-template/ (linkStyle))
23908
+ */
23824
23909
  var SurveyCreatorModel = /** @class */ (function (_super) {
23825
23910
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyCreatorModel, _super);
23826
23911
  function SurveyCreatorModel() {
@@ -24412,10 +24497,10 @@ var EmptySurveyCreatorOptions = /** @class */ (function () {
24412
24497
  EmptySurveyCreatorOptions.prototype.isConditionOperatorEnabled = function (questionName, question, operator, isEnabled) { return isEnabled; };
24413
24498
  EmptySurveyCreatorOptions.prototype.onLogicGetTitleCallback = function (expression, displayExpression, text, logicItem) { return text; };
24414
24499
  EmptySurveyCreatorOptions.prototype.getTranslationExportedText = function (obj, name, locString, locale, text) { return text; };
24415
- EmptySurveyCreatorOptions.prototype.uploadFiles = function (files, question, uploadingCallback) { };
24500
+ EmptySurveyCreatorOptions.prototype.uploadFiles = function (files, question, callback) { };
24416
24501
  EmptySurveyCreatorOptions.prototype.getHasMachineTranslation = function () { return this.machineTranslationValue; };
24417
24502
  EmptySurveyCreatorOptions.prototype.doMachineTranslation = function (fromLocale, toLocale, strings, callback) { };
24418
- EmptySurveyCreatorOptions.prototype.chooseFiles = function (input, onFilesChosen, context) { };
24503
+ EmptySurveyCreatorOptions.prototype.chooseFiles = function (input, callback, context) { };
24419
24504
  return EmptySurveyCreatorOptions;
24420
24505
  }());
24421
24506
 
@@ -26170,7 +26255,7 @@ __webpack_require__.r(__webpack_exports__);
26170
26255
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! survey-core */ "survey-core");
26171
26256
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_73___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_73__);
26172
26257
  var Version;
26173
- Version = "" + "1.9.126";
26258
+ Version = "" + "1.9.127";
26174
26259
  //should be loaded before other styles for easier override
26175
26260
  __webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
26176
26261
 
@@ -26262,7 +26347,7 @@ __webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
26262
26347
  __webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
26263
26348
 
26264
26349
  survey_core__WEBPACK_IMPORTED_MODULE_73__["settings"].supportCreatorV2 = true;
26265
- Object(survey_core__WEBPACK_IMPORTED_MODULE_73__["checkLibraryVersion"])("" + "1.9.126", "survey-creator-core");
26350
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_73__["checkLibraryVersion"])("" + "1.9.127", "survey-creator-core");
26266
26351
 
26267
26352
 
26268
26353
  /***/ }),
@@ -28413,7 +28498,7 @@ var enStrings = {
28413
28498
  deleteQuestion: "Delete Question",
28414
28499
  convertTo: "Convert to",
28415
28500
  drag: "Drag element",
28416
- license: "To use our library in your app, a developer license is necessary. If you currently hold an activated license, ensure you're using the latest version available."
28501
+ license: "To use our library, a <a href='https://surveyjs.io/licensing'>developer license</a> is required. If you have an active license, <a href='https://surveyjs.io/remove-alert-banner'>set up your license key</a> and ensure you're using the latest version."
28417
28502
  },
28418
28503
  // Question types
28419
28504
  qt: {
@@ -33631,8 +33716,8 @@ var PropertyGridLinkEditor = /** @class */ (function (_super) {
33631
33716
  else {
33632
33717
  question.acceptedTypes = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_10__["getAcceptedTypesByContentMode"])("image");
33633
33718
  }
33634
- question.onChooseFilesCallback = (function (input, onFilesChosen) {
33635
- options.chooseFiles(input, onFilesChosen);
33719
+ question.onChooseFilesCallback = (function (input, callback) {
33720
+ options.chooseFiles(input, callback);
33636
33721
  });
33637
33722
  };
33638
33723
  return PropertyGridLinkEditor;
@@ -35497,12 +35582,12 @@ var SearchManager = /** @class */ (function (_super) {
35497
35582
  newValueInLow = newValueInLow.toLocaleLowerCase().trim();
35498
35583
  var visibleQuestions = this.survey.getAllQuestions().filter(function (q) { return q.isVisible; });
35499
35584
  return visibleQuestions.filter(function (q) {
35500
- var questionTitle = q.title;
35501
- if (!!questionTitle) {
35502
- questionTitle = normalize(questionTitle, "search");
35503
- questionTitle = questionTitle.toLocaleLowerCase().trim();
35585
+ var srcString = q.name + "|" + q.title + "|" + q.description;
35586
+ if (!!srcString) {
35587
+ srcString = normalize(srcString, "search");
35588
+ srcString = srcString.toLocaleLowerCase().trim();
35504
35589
  }
35505
- return questionTitle.indexOf(newValueInLow) !== -1;
35590
+ return srcString.indexOf(newValueInLow) !== -1;
35506
35591
  });
35507
35592
  };
35508
35593
  SearchManager.prototype.setFiterString = function (newValue) {
@@ -36313,8 +36398,8 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
36313
36398
  expression: {
36314
36399
  properties: [
36315
36400
  "expression",
36316
- "currency",
36317
36401
  "displayStyle",
36402
+ "currency",
36318
36403
  "format",
36319
36404
  "maximumFractionDigits",
36320
36405
  "minimumFractionDigits",
@@ -36411,6 +36496,9 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
36411
36496
  { name: "optionsCaption", tab: "choices" },
36412
36497
  { name: "showNoneItem", tab: "choices" },
36413
36498
  { name: "noneText", tab: "choices" },
36499
+ { name: "choicesMin", tab: "choices" },
36500
+ { name: "choicesMax", tab: "choices" },
36501
+ { name: "choicesStep", tab: "choices" },
36414
36502
  { name: "choicesVisibleIf", tab: "logic" },
36415
36503
  { name: "choicesEnableIf", tab: "logic" },
36416
36504
  ],
@@ -36936,51 +37024,63 @@ var SurveyQuestionProperties = /** @class */ (function () {
36936
37024
  this.addNonTabProperties(result, usedProperties, true);
36937
37025
  return result;
36938
37026
  }
37027
+ var hasNonTabProperties = this.getAllDefinitionsByClassCore(className, usedProperties, result);
37028
+ var dynamicClass = this.obj.isQuestion && !!this.obj.getDynamicType ? this.obj.getDynamicType() : "";
37029
+ if (dynamicClass) {
37030
+ hasNonTabProperties = this.getAllDefinitionsByClassCore(dynamicClass, usedProperties, result);
37031
+ }
37032
+ if (!hasNonTabProperties) {
37033
+ this.addNonTabProperties(result, usedProperties);
37034
+ }
37035
+ return result;
37036
+ };
37037
+ SurveyQuestionProperties.prototype.getAllDefinitionsByClassCore = function (className, usedProperties, result) {
37038
+ var res = false;
36939
37039
  var curClassName = className;
36940
- var hasNonTabProperties = false;
36941
37040
  while (curClassName) {
36942
37041
  var metaClass = (survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findClass(curClassName));
36943
37042
  if (!metaClass)
36944
37043
  break;
36945
- var classRes = _definition__WEBPACK_IMPORTED_MODULE_0__["SurveyQuestionEditorDefinition"].definition[metaClass.name];
36946
- if (classRes) {
36947
- if (classRes.properties) {
36948
- var i = 0;
36949
- while (i < classRes.properties.length) {
36950
- var prop = classRes.properties[i];
36951
- var propName = typeof prop == "string" ? prop : prop.name;
36952
- var tabName = _creator_settings__WEBPACK_IMPORTED_MODULE_3__["settings"].propertyGrid.generalTabName;
36953
- if (typeof prop !== "string" && !!prop.tab) {
36954
- tabName = prop.tab;
36955
- }
36956
- var jsonProp = !!this.propertiesHash[propName]
36957
- ? this.propertiesHash[propName].property
36958
- : null;
36959
- var jsonPropertyCategory = this.getJsonPropertyCategory(jsonProp);
36960
- if (!!jsonPropertyCategory && jsonPropertyCategory !== tabName) {
36961
- classRes.properties.splice(i, 1);
36962
- }
36963
- else {
36964
- usedProperties[propName] = true;
36965
- i++;
36966
- }
36967
- }
37044
+ res = this.getAllDefinitionsByClassSingleCore(metaClass.name, usedProperties, result);
37045
+ curClassName = metaClass.parentName;
37046
+ }
37047
+ return res;
37048
+ };
37049
+ SurveyQuestionProperties.prototype.getAllDefinitionsByClassSingleCore = function (className, usedProperties, result) {
37050
+ var classRes = _definition__WEBPACK_IMPORTED_MODULE_0__["SurveyQuestionEditorDefinition"].definition[className];
37051
+ var res = false;
37052
+ if (!classRes)
37053
+ return res;
37054
+ if (classRes.properties) {
37055
+ var i = 0;
37056
+ while (i < classRes.properties.length) {
37057
+ var prop = classRes.properties[i];
37058
+ var propName = typeof prop == "string" ? prop : prop.name;
37059
+ var tabName = _creator_settings__WEBPACK_IMPORTED_MODULE_3__["settings"].propertyGrid.generalTabName;
37060
+ if (typeof prop !== "string" && !!prop.tab) {
37061
+ tabName = prop.tab;
36968
37062
  }
36969
- if (classRes.tabs) {
36970
- for (var i = 0; i < classRes.tabs.length; i++) {
36971
- hasNonTabProperties =
36972
- hasNonTabProperties || classRes.tabs[i].name === otherTabName;
36973
- usedProperties[classRes.tabs[i].name] = true;
36974
- }
37063
+ var jsonProp = !!this.propertiesHash[propName]
37064
+ ? this.propertiesHash[propName].property
37065
+ : null;
37066
+ var jsonPropertyCategory = this.getJsonPropertyCategory(jsonProp);
37067
+ if (!!jsonPropertyCategory && jsonPropertyCategory !== tabName) {
37068
+ classRes.properties.splice(i, 1);
37069
+ }
37070
+ else {
37071
+ usedProperties[propName] = true;
37072
+ i++;
36975
37073
  }
36976
- result.unshift(classRes);
36977
37074
  }
36978
- curClassName = metaClass.parentName;
36979
37075
  }
36980
- if (!hasNonTabProperties) {
36981
- this.addNonTabProperties(result, usedProperties);
37076
+ if (classRes.tabs) {
37077
+ for (var i = 0; i < classRes.tabs.length; i++) {
37078
+ res = res || classRes.tabs[i].name === otherTabName;
37079
+ usedProperties[classRes.tabs[i].name] = true;
37080
+ }
36982
37081
  }
36983
- return result;
37082
+ result.unshift(classRes);
37083
+ return res;
36984
37084
  };
36985
37085
  SurveyQuestionProperties.prototype.getJsonPropertyCategory = function (jsonProperty) {
36986
37086
  if (!jsonProperty)