survey-creator-core 1.9.119 → 1.9.120

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 (81) 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 -1
  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/hungarian.js +1 -1
  25. package/i18n/hungarian.min.js +1 -1
  26. package/i18n/index.js +1 -1
  27. package/i18n/index.min.js +1 -1
  28. package/i18n/indonesian.js +1 -1
  29. package/i18n/indonesian.min.js +1 -1
  30. package/i18n/italian.js +1 -1
  31. package/i18n/italian.min.js +1 -1
  32. package/i18n/japanese.js +1 -1
  33. package/i18n/japanese.min.js +1 -1
  34. package/i18n/korean.js +1 -1
  35. package/i18n/korean.min.js +1 -1
  36. package/i18n/malay.js +1 -1
  37. package/i18n/malay.min.js +1 -1
  38. package/i18n/mongolian.js +1 -1
  39. package/i18n/mongolian.min.js +1 -1
  40. package/i18n/norwegian.js +1 -1
  41. package/i18n/norwegian.min.js +1 -1
  42. package/i18n/persian.js +1 -1
  43. package/i18n/persian.min.js +1 -1
  44. package/i18n/polish.js +1 -1
  45. package/i18n/polish.min.js +1 -1
  46. package/i18n/portuguese.js +1 -1
  47. package/i18n/portuguese.min.js +1 -1
  48. package/i18n/russian.js +1 -1
  49. package/i18n/russian.min.js +1 -1
  50. package/i18n/simplified-chinese.js +1 -1
  51. package/i18n/simplified-chinese.min.js +1 -1
  52. package/i18n/slovak.js +1 -1
  53. package/i18n/slovak.min.js +1 -1
  54. package/i18n/spanish.js +1 -1
  55. package/i18n/spanish.min.js +1 -1
  56. package/i18n/swedish.js +1 -1
  57. package/i18n/swedish.min.js +1 -1
  58. package/i18n/tajik.js +1 -1
  59. package/i18n/tajik.min.js +1 -1
  60. package/i18n/traditional-chinese.js +1 -1
  61. package/i18n/traditional-chinese.min.js +1 -1
  62. package/i18n/turkish.js +1 -1
  63. package/i18n/turkish.min.js +1 -1
  64. package/package.json +2 -2
  65. package/survey-creator-core.css +32 -6
  66. package/survey-creator-core.fontless.css +31 -5
  67. package/survey-creator-core.fontless.css.map +1 -1
  68. package/survey-creator-core.fontless.min.css +4 -4
  69. package/survey-creator-core.i18n.js +1 -1
  70. package/survey-creator-core.i18n.min.js +1 -1
  71. package/survey-creator-core.js +98 -25
  72. package/survey-creator-core.js.map +1 -1
  73. package/survey-creator-core.min.css +5 -5
  74. package/survey-creator-core.min.js +5 -5
  75. package/typings/components/item-value.d.ts +1 -0
  76. package/typings/components/results.d.ts +4 -2
  77. package/typings/components/tabs/theme-builder.d.ts +3 -0
  78. package/typings/editorLocalization.d.ts +1 -0
  79. package/typings/localization/english.d.ts +1 -0
  80. package/typings/property-grid/index.d.ts +4 -0
  81. package/typings/property-grid/search-manager.d.ts +2 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.119
2
+ * SurveyJS Creator v1.9.120
3
3
  * (c) 2015-2023 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.119
133
+ * surveyjs - Survey JavaScript library v1.9.120
134
134
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
135
135
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
136
136
  */
@@ -5338,7 +5338,7 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
5338
5338
  }, 100);
5339
5339
  };
5340
5340
  ItemValueWrapperViewModel.prototype.updateIsNew = function (question, item) {
5341
- this.isNew = !question.isItemInList(item);
5341
+ this.isNew = !question.isItemInList(item) && !this.isAutoGeneratedItem(item);
5342
5342
  };
5343
5343
  Object.defineProperty(ItemValueWrapperViewModel.prototype, "allowRemove", {
5344
5344
  get: function () {
@@ -5346,7 +5346,8 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
5346
5346
  if (minChoices > 0 && minChoices >= this.question.choices.length)
5347
5347
  return false;
5348
5348
  var isNew = !this.question.isItemInList(this.item);
5349
- return !this.creator.readOnly && this.canTouchItems && (this.allowItemOperations.allowDelete) && !isNew;
5349
+ var isAutoGenerated = this.isAutoGeneratedItem(this.item);
5350
+ return !this.creator.readOnly && this.canTouchItems && (this.allowItemOperations.allowDelete) && !isNew && !isAutoGenerated;
5350
5351
  },
5351
5352
  enumerable: false,
5352
5353
  configurable: true
@@ -5368,7 +5369,8 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
5368
5369
  Object.defineProperty(ItemValueWrapperViewModel.prototype, "allowAdd", {
5369
5370
  get: function () {
5370
5371
  var isNew = !this.question.isItemInList(this.item);
5371
- return !this.creator.readOnly && this.canTouchItems && (this.allowItemOperations.allowAdd) && isNew;
5372
+ var isAutoGenerated = this.isAutoGeneratedItem(this.item);
5373
+ return !this.creator.readOnly && this.canTouchItems && (this.allowItemOperations.allowAdd) && isNew && !isAutoGenerated;
5372
5374
  },
5373
5375
  enumerable: false,
5374
5376
  configurable: true
@@ -5379,6 +5381,16 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
5379
5381
  model.creator.selectElement(model.question, "choices", false);
5380
5382
  event && event.stopPropagation();
5381
5383
  };
5384
+ ItemValueWrapperViewModel.prototype.isAutoGeneratedItem = function (item) {
5385
+ var val = item.value;
5386
+ if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isNumber(val))
5387
+ return false;
5388
+ var min = this.question.choicesMin;
5389
+ var max = this.question.choicesMax;
5390
+ if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isNumber(min) || !survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isNumber(max))
5391
+ return false;
5392
+ return val >= min && val <= max;
5393
+ };
5382
5394
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
5383
5395
  Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
5384
5396
  ], ItemValueWrapperViewModel.prototype, "isNew", void 0);
@@ -7276,15 +7288,17 @@ __webpack_require__.r(__webpack_exports__);
7276
7288
  __webpack_require__(/*! ./results.scss */ "./src/components/results.scss");
7277
7289
  var SurveyResultsItemModel = /** @class */ (function (_super) {
7278
7290
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyResultsItemModel, _super);
7279
- function SurveyResultsItemModel(_data, _lvl) {
7291
+ function SurveyResultsItemModel(survey, _data, _lvl) {
7280
7292
  var _this = _super.call(this) || this;
7293
+ _this.survey = survey;
7281
7294
  _this._data = _data;
7282
7295
  _this._lvl = _lvl;
7283
7296
  _this.toggle = function () {
7284
7297
  _this.collapsed = !_this.collapsed;
7285
7298
  };
7286
7299
  _this.markerWidth = 16;
7287
- _this.items = addCollapsed(_data.data, _lvl + 1);
7300
+ _this.question = survey.getQuestionByName(_this.name);
7301
+ _this.items = addCollapsed(survey, _data.data, _lvl + 1);
7288
7302
  _this.lvl = _lvl;
7289
7303
  return _this;
7290
7304
  }
@@ -7359,10 +7373,10 @@ var SurveyResultsItemModel = /** @class */ (function (_super) {
7359
7373
  return SurveyResultsItemModel;
7360
7374
  }(survey_core__WEBPACK_IMPORTED_MODULE_2__["Base"]));
7361
7375
 
7362
- function addCollapsed(items, initLvl) {
7376
+ function addCollapsed(survey, items, initLvl) {
7363
7377
  if (items === void 0) { items = []; }
7364
7378
  return items.filter(function (item) { return !!item; }).map(function (item) {
7365
- return new SurveyResultsItemModel(item, initLvl);
7379
+ return new SurveyResultsItemModel(survey, item, initLvl);
7366
7380
  });
7367
7381
  }
7368
7382
  var SurveyResultsModel = /** @class */ (function (_super) {
@@ -7378,7 +7392,7 @@ var SurveyResultsModel = /** @class */ (function (_super) {
7378
7392
  };
7379
7393
  _this.resultText = JSON.stringify(survey.data, null, 4);
7380
7394
  var plainData = survey.getPlainData({ includeEmpty: false, includeValues: true });
7381
- _this.resultData = addCollapsed(plainData, 0);
7395
+ _this.resultData = addCollapsed(survey, plainData, 0);
7382
7396
  return _this;
7383
7397
  }
7384
7398
  SurveyResultsModel.prototype.getLocString = function (name) {
@@ -14501,6 +14515,7 @@ var ThemeBuilder = /** @class */ (function (_super) {
14501
14515
  _this.onThemeSelected = new survey_core__WEBPACK_IMPORTED_MODULE_2__["EventBase"]();
14502
14516
  _this.onThemePropertyChanged = new survey_core__WEBPACK_IMPORTED_MODULE_2__["EventBase"]();
14503
14517
  _this.onAllowModifyTheme = new survey_core__WEBPACK_IMPORTED_MODULE_2__["EventBase"]();
14518
+ _this._defaultSessionTheme = ThemeBuilder.DefaultTheme;
14504
14519
  _this.creatorPropertyChanged = function (sender, options) {
14505
14520
  if (options.name === "isMobileView") {
14506
14521
  _this.updateVisibilityOfPropertyGridGroups();
@@ -14630,8 +14645,18 @@ var ThemeBuilder = /** @class */ (function (_super) {
14630
14645
  this.blockThemeChangedNotifications -= 1;
14631
14646
  }
14632
14647
  };
14648
+ Object.defineProperty(ThemeBuilder.prototype, "defaultSessionTheme", {
14649
+ get: function () {
14650
+ return this._defaultSessionTheme;
14651
+ },
14652
+ set: function (theme) {
14653
+ this._defaultSessionTheme = theme;
14654
+ },
14655
+ enumerable: false,
14656
+ configurable: true
14657
+ });
14633
14658
  ThemeBuilder.prototype.resetTheme = function () {
14634
- this.setTheme({});
14659
+ this.setTheme({ themeName: this.defaultSessionTheme.themeName, isPanelless: this.defaultSessionTheme.isPanelless, colorPalette: this.defaultSessionTheme.colorPalette });
14635
14660
  };
14636
14661
  ThemeBuilder.prototype.setTheme = function (theme) {
14637
14662
  this.themeCssVariablesChanges = {};
@@ -14644,7 +14669,7 @@ var ThemeBuilder = /** @class */ (function (_super) {
14644
14669
  };
14645
14670
  ThemeBuilder.prototype.selectTheme = function (themeName, themePalette, themeMode) {
14646
14671
  if (themePalette === void 0) { themePalette = "light"; }
14647
- if (themeMode === void 0) { themeMode = "panelless"; }
14672
+ if (themeMode === void 0) { themeMode = "panels"; }
14648
14673
  this.themeName = themeName;
14649
14674
  this.themePalette = themePalette;
14650
14675
  this.themeMode = themeMode;
@@ -16747,16 +16772,19 @@ var ThemeTabPlugin = /** @class */ (function () {
16747
16772
  }
16748
16773
  });
16749
16774
  this.model.onThemeSelected.add(function (sender, options) {
16775
+ _this.resetTheme.enabled = Object(_themes__WEBPACK_IMPORTED_MODULE_4__["getThemeFullName"])(sender.defaultSessionTheme) !== Object(_themes__WEBPACK_IMPORTED_MODULE_4__["getThemeFullName"])(options.theme);
16750
16776
  _this.saveThemeAction.enabled = true;
16751
16777
  _this.onThemeSelected.fire(_this, options);
16752
16778
  });
16753
16779
  this.model.onThemePropertyChanged.add(function (sender, options) {
16780
+ _this.resetTheme.enabled = true;
16754
16781
  _this.saveThemeAction.enabled = true;
16755
16782
  _this.onThemePropertyChanged.fire(_this, options);
16756
16783
  });
16757
16784
  this.model.onAllowModifyTheme.add(function (sender, options) {
16758
16785
  _this.onAllowModifyTheme.fire(_this, options);
16759
16786
  });
16787
+ this.resetTheme.enabled = Object(_themes__WEBPACK_IMPORTED_MODULE_4__["getThemeFullName"])(this.model.defaultSessionTheme) !== Object(_themes__WEBPACK_IMPORTED_MODULE_4__["getThemeFullName"])(this.creator.theme) || this.isModified;
16760
16788
  };
16761
16789
  ThemeTabPlugin.prototype.deactivate = function () {
16762
16790
  if (this.model) {
@@ -16871,7 +16899,7 @@ var ThemeTabPlugin = /** @class */ (function () {
16871
16899
  });
16872
16900
  items.push(this.saveThemeAction);
16873
16901
  this.resetTheme = new survey_core__WEBPACK_IMPORTED_MODULE_0__["Action"]({
16874
- id: "resetTheme",
16902
+ id: "svc-reset-theme",
16875
16903
  iconName: "icon-reset",
16876
16904
  locTitleName: "ed.themeResetButton",
16877
16905
  locTooltipName: "ed.themeResetButton",
@@ -25674,7 +25702,7 @@ __webpack_require__.r(__webpack_exports__);
25674
25702
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! survey-core */ "survey-core");
25675
25703
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_72___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_72__);
25676
25704
  var Version;
25677
- Version = "" + "1.9.119";
25705
+ Version = "" + "1.9.120";
25678
25706
  //should be loaded before other styles for easier override
25679
25707
  __webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
25680
25708
 
@@ -25765,7 +25793,7 @@ __webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
25765
25793
  __webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
25766
25794
 
25767
25795
  survey_core__WEBPACK_IMPORTED_MODULE_72__["settings"].supportCreatorV2 = true;
25768
- Object(survey_core__WEBPACK_IMPORTED_MODULE_72__["checkLibraryVersion"])("" + "1.9.119", "survey-creator-core");
25796
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_72__["checkLibraryVersion"])("" + "1.9.120", "survey-creator-core");
25769
25797
 
25770
25798
 
25771
25799
  /***/ }),
@@ -28000,6 +28028,7 @@ var enStrings = {
28000
28028
  toolbox: "Toolbox",
28001
28029
  "property-grid": "Properties",
28002
28030
  propertyGridFilteredTextPlaceholder: "Type to search...",
28031
+ propertyGridNoResultsFound: "No results found",
28003
28032
  toolboxGeneralCategory: "General",
28004
28033
  toolboxChoiceCategory: "Choice Questions",
28005
28034
  toolboxTextCategory: "Text Input Questions",
@@ -31176,7 +31205,8 @@ var ConditionEditor = /** @class */ (function (_super) {
31176
31205
  if (!!panel.getQuestionByName("questionValue")) {
31177
31206
  panel.getQuestionByName("questionValue").clearValue();
31178
31207
  }
31179
- var json = this.getQuestionConditionJson(panel.getQuestionByName("questionName").value, panel.getQuestionByName("operator").value);
31208
+ var qName = panel.getQuestionByName("questionName").value;
31209
+ var json = this.getQuestionConditionJson(qName, panel.getQuestionByName("operator").value);
31180
31210
  if (!json) {
31181
31211
  json = {
31182
31212
  type: "text"
@@ -31203,6 +31233,15 @@ var ConditionEditor = /** @class */ (function (_super) {
31203
31233
  newQuestion.description = "";
31204
31234
  newQuestion.titleLocation = "top";
31205
31235
  newQuestion.hasComment = false;
31236
+ if (newQuestion.showOtherItem) {
31237
+ var question = this.getConditionQuestion(qName);
31238
+ if (question && question.getStoreOthersAsComment && question.getStoreOthersAsComment()) {
31239
+ var other = newQuestion.otherItem;
31240
+ newQuestion.choices.push(new survey_core__WEBPACK_IMPORTED_MODULE_1__["ItemValue"](other.value, other.title));
31241
+ other.value = "#" + other.value + "#";
31242
+ newQuestion.showOtherItem = false;
31243
+ }
31244
+ }
31206
31245
  panel.addElement(newQuestion);
31207
31246
  }
31208
31247
  };
@@ -32096,6 +32135,12 @@ var PropertyGridEditorCollection = {
32096
32135
  res.onValueChanged(obj, prop, question);
32097
32136
  }
32098
32137
  },
32138
+ onValueChanging: function (obj, prop, question, options) {
32139
+ var res = this.getEditor(prop);
32140
+ if (!!res && !!res.onValueChanging) {
32141
+ res.onValueChanging(obj, prop, question, options);
32142
+ }
32143
+ },
32099
32144
  onMasterValueChanged: function (obj, prop, question) {
32100
32145
  var res = this.getEditor(prop);
32101
32146
  if (!!res && !!res.onMasterValueChanged) {
@@ -32713,6 +32758,7 @@ var PropertyGridModel = /** @class */ (function () {
32713
32758
  var q = options.question;
32714
32759
  if (!q || !q.property || survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(options.value, options.oldValue, false, false, false))
32715
32760
  return;
32761
+ PropertyGridEditorCollection.onValueChanging(this.obj, q.property, q, options);
32716
32762
  var changingOptions = {
32717
32763
  obj: this.obj,
32718
32764
  propertyName: q.property.name,
@@ -33136,6 +33182,16 @@ var PropertyGridEditorNumber = /** @class */ (function (_super) {
33136
33182
  }
33137
33183
  return res;
33138
33184
  };
33185
+ PropertyGridEditorNumber.prototype.onValueChanging = function (obj, prop, question, options) {
33186
+ if (!options.value && options.value !== 0) {
33187
+ if (prop.defaultValue !== undefined) {
33188
+ options.value = prop.defaultValue;
33189
+ }
33190
+ else {
33191
+ options.value = prop.minValue !== undefined && prop.minValue > 0 ? prop.minValue : 0;
33192
+ }
33193
+ }
33194
+ };
33139
33195
  return PropertyGridEditorNumber;
33140
33196
  }(PropertyGridEditor));
33141
33197
 
@@ -33622,7 +33678,7 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
33622
33678
  return rowObj.text;
33623
33679
  });
33624
33680
  }
33625
- if (propertyName === "title" && objType === "matrixdropdowncolumn") {
33681
+ if (propertyName === "title" && (objType === "matrixdropdowncolumn" || objType === "multipletextitem")) {
33626
33682
  cellQuestion.placeholder = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
33627
33683
  if (!!rowObj.name)
33628
33684
  return rowObj.name;
@@ -34267,7 +34323,7 @@ var PropertyGridEditorMatrixMutlipleTextItems = /** @class */ (function (_super)
34267
34323
  var editor = options.row.editingObj.editor;
34268
34324
  if (!!editor && !!q.property) {
34269
34325
  editor.registerFunctionOnPropertyValueChanged(q.property.name, function () {
34270
- q.value = editor[q.property.name];
34326
+ q.value = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].getObjPropertyValue(editor, q.property.name);
34271
34327
  });
34272
34328
  }
34273
34329
  };
@@ -34874,6 +34930,7 @@ var SearchManager = /** @class */ (function (_super) {
34874
34930
  _this.highlightedEditorClass = " spg-editor--highlighted";
34875
34931
  _this.searchActionBar = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ActionContainer"]();
34876
34932
  _this.filterStringPlaceholder = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])("ed.propertyGridFilteredTextPlaceholder");
34933
+ _this.propertyGridNoResultsFound = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])("ed.propertyGridNoResultsFound");
34877
34934
  _this.allMatches = [];
34878
34935
  _this.initActionBar();
34879
34936
  return _this;
@@ -34905,8 +34962,16 @@ var SearchManager = /** @class */ (function (_super) {
34905
34962
  };
34906
34963
  SearchManager.prototype.updatedMatchCounterText = function (index) {
34907
34964
  var count = this.allMatches.length;
34908
- var value = this.currentMatch ? index + 1 : "0";
34909
- this.matchCounterText = !!this.filterString ? [value, count].join("/") : "";
34965
+ if (count === 1) {
34966
+ this.matchCounterText = "";
34967
+ }
34968
+ else if (this.currentMatch) {
34969
+ var value = index + 1;
34970
+ this.matchCounterText = [value, count].join("/");
34971
+ }
34972
+ else {
34973
+ this.matchCounterText = !!this.filterString ? this.propertyGridNoResultsFound : "";
34974
+ }
34910
34975
  };
34911
34976
  SearchManager.prototype.navigateToEditor = function (index) {
34912
34977
  if (index < 0) {
@@ -34963,8 +35028,7 @@ var SearchManager = /** @class */ (function (_super) {
34963
35028
  showTitle: false,
34964
35029
  iconSize: 16,
34965
35030
  innerCss: "spg-search-editor_bar-item",
34966
- visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return !!_this.filterString; }),
34967
- enabled: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.allMatches.length > 0; }),
35031
+ visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.allMatches.length > 1; }),
34968
35032
  action: function () {
34969
35033
  if (_this.allMatches.length > 0) {
34970
35034
  _this.navigateToEditor(_this.currentMatchIndex - 1);
@@ -34979,8 +35043,7 @@ var SearchManager = /** @class */ (function (_super) {
34979
35043
  showTitle: false,
34980
35044
  iconSize: 16,
34981
35045
  innerCss: "spg-search-editor_bar-item",
34982
- visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return !!_this.filterString; }),
34983
- enabled: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.allMatches.length > 0; }),
35046
+ visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.allMatches.length > 1; }),
34984
35047
  action: function () {
34985
35048
  if (_this.allMatches.length > 0) {
34986
35049
  _this.navigateToEditor(_this.currentMatchIndex + 1);
@@ -34997,12 +35060,13 @@ var SearchManager = /** @class */ (function (_super) {
34997
35060
  innerCss: "spg-search-editor_bar-item",
34998
35061
  visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return !!_this.filterString; }),
34999
35062
  action: function () {
35000
- _this.filterString = "";
35063
+ _this.clearFilterString();
35001
35064
  }
35002
35065
  }));
35003
35066
  this.searchActionBar.setItems(searchActions);
35004
35067
  };
35005
35068
  SearchManager.prototype.setSurvey = function (newSurvey) {
35069
+ this.clearFilterString();
35006
35070
  this.survey = newSurvey;
35007
35071
  if (!!this.survey) {
35008
35072
  var _self_1 = this;
@@ -35014,6 +35078,9 @@ var SearchManager = /** @class */ (function (_super) {
35014
35078
  });
35015
35079
  }
35016
35080
  };
35081
+ SearchManager.prototype.clearFilterString = function () {
35082
+ this.filterString = "";
35083
+ };
35017
35084
  SearchManager.prototype.onPropertyValueChanged = function (name, oldValue, newValue) {
35018
35085
  _super.prototype.onPropertyValueChanged.call(this, name, oldValue, newValue);
35019
35086
  if (name === "filterString") {
@@ -35496,6 +35563,12 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
35496
35563
  "fileOrPhotoPlaceholder"
35497
35564
  ]
35498
35565
  },
35566
+ signaturepad: {
35567
+ properties: [
35568
+ "waitForUpload",
35569
+ { name: "storeDataAsText" },
35570
+ ]
35571
+ },
35499
35572
  html: {
35500
35573
  properties: ["html"]
35501
35574
  },