survey-creator-core 1.12.27 → 1.12.28

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 (92) 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.LICENSE.txt +1 -1
  5. package/i18n/bulgarian.js +1 -1
  6. package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
  7. package/i18n/burmese.js +1 -1
  8. package/i18n/burmese.min.js.LICENSE.txt +1 -1
  9. package/i18n/croatian.js +1 -1
  10. package/i18n/croatian.min.js.LICENSE.txt +1 -1
  11. package/i18n/czech.js +1 -1
  12. package/i18n/czech.min.js.LICENSE.txt +1 -1
  13. package/i18n/danish.js +1 -1
  14. package/i18n/danish.min.js.LICENSE.txt +1 -1
  15. package/i18n/dutch.js +1 -1
  16. package/i18n/dutch.min.js.LICENSE.txt +1 -1
  17. package/i18n/english.js +1 -1
  18. package/i18n/english.min.js.LICENSE.txt +1 -1
  19. package/i18n/finnish.js +1 -1
  20. package/i18n/finnish.min.js.LICENSE.txt +1 -1
  21. package/i18n/french.js +1 -1
  22. package/i18n/french.min.js.LICENSE.txt +1 -1
  23. package/i18n/german.js +1 -1
  24. package/i18n/german.min.js.LICENSE.txt +1 -1
  25. package/i18n/hebrew.js +1 -1
  26. package/i18n/hebrew.min.js.LICENSE.txt +1 -1
  27. package/i18n/hungarian.js +1 -1
  28. package/i18n/hungarian.min.js.LICENSE.txt +1 -1
  29. package/i18n/index.js +1 -1
  30. package/i18n/index.min.js.LICENSE.txt +1 -1
  31. package/i18n/indonesian.js +1 -1
  32. package/i18n/indonesian.min.js.LICENSE.txt +1 -1
  33. package/i18n/italian.js +1 -1
  34. package/i18n/italian.min.js.LICENSE.txt +1 -1
  35. package/i18n/japanese.js +1 -1
  36. package/i18n/japanese.min.js.LICENSE.txt +1 -1
  37. package/i18n/korean.js +1 -1
  38. package/i18n/korean.min.js.LICENSE.txt +1 -1
  39. package/i18n/malay.js +1 -1
  40. package/i18n/malay.min.js.LICENSE.txt +1 -1
  41. package/i18n/mongolian.js +1 -1
  42. package/i18n/mongolian.min.js.LICENSE.txt +1 -1
  43. package/i18n/norwegian.js +1 -1
  44. package/i18n/norwegian.min.js.LICENSE.txt +1 -1
  45. package/i18n/persian.js +1 -1
  46. package/i18n/persian.min.js.LICENSE.txt +1 -1
  47. package/i18n/polish.js +1 -1
  48. package/i18n/polish.min.js.LICENSE.txt +1 -1
  49. package/i18n/portuguese.js +1 -1
  50. package/i18n/portuguese.min.js.LICENSE.txt +1 -1
  51. package/i18n/romanian.js +1 -1
  52. package/i18n/romanian.min.js.LICENSE.txt +1 -1
  53. package/i18n/russian.js +1 -1
  54. package/i18n/russian.min.js.LICENSE.txt +1 -1
  55. package/i18n/simplified-chinese.js +1 -1
  56. package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
  57. package/i18n/slovak.js +1 -1
  58. package/i18n/slovak.min.js.LICENSE.txt +1 -1
  59. package/i18n/slovenian.js +1 -1
  60. package/i18n/slovenian.min.js.LICENSE.txt +1 -1
  61. package/i18n/spanish.js +1 -1
  62. package/i18n/spanish.min.js.LICENSE.txt +1 -1
  63. package/i18n/swedish.js +1 -1
  64. package/i18n/swedish.min.js.LICENSE.txt +1 -1
  65. package/i18n/tajik.js +1 -1
  66. package/i18n/tajik.min.js.LICENSE.txt +1 -1
  67. package/i18n/thai.js +1 -1
  68. package/i18n/thai.min.js.LICENSE.txt +1 -1
  69. package/i18n/traditional-chinese.js +1 -1
  70. package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
  71. package/i18n/turkish.js +1 -1
  72. package/i18n/turkish.min.js.LICENSE.txt +1 -1
  73. package/package.json +2 -2
  74. package/survey-creator-core.css +2 -2
  75. package/survey-creator-core.fontless.css +1 -1
  76. package/survey-creator-core.fontless.min.css +1 -1
  77. package/survey-creator-core.i18n.js +1 -1
  78. package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
  79. package/survey-creator-core.js +19 -12
  80. package/survey-creator-core.js.map +1 -1
  81. package/survey-creator-core.min.css +2 -2
  82. package/survey-creator-core.min.js +1 -1
  83. package/survey-creator-core.min.js.LICENSE.txt +1 -1
  84. package/themes/default-contrast.js +1 -1
  85. package/themes/default-contrast.min.js.LICENSE.txt +1 -1
  86. package/themes/default-dark.js +1 -1
  87. package/themes/default-dark.min.js.LICENSE.txt +1 -1
  88. package/themes/default-light.js +1 -1
  89. package/themes/default-light.min.js.LICENSE.txt +1 -1
  90. package/themes/index.js +1 -1
  91. package/themes/index.min.js.LICENSE.txt +1 -1
  92. package/typings/creator-base.d.ts +1 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.12.27
2
+ * SurveyJS Creator v1.12.28
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -228,7 +228,7 @@
228
228
  }
229
229
 
230
230
  /*# sourceMappingURL=fonts.fontless.css.map*//*!
231
- * SurveyJS Creator v1.12.27
231
+ * SurveyJS Creator v1.12.28
232
232
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
233
233
  * Github: https://github.com/surveyjs/survey-creator
234
234
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.12.27
2
+ * SurveyJS Creator v1.12.28
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.12.27
2
+ * SurveyJS Creator v1.12.28
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.12.27
2
+ * SurveyJS Creator v1.12.28
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.12.27
2
+ * SurveyJS Creator v1.12.28
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.12.27
2
+ * SurveyJS Creator v1.12.28
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -21376,7 +21376,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
21376
21376
  this.currentFocusTimeout = setTimeout(function () {
21377
21377
  _this.currentFocusInterval = setInterval(function () {
21378
21378
  var _a, _b;
21379
- var el = document.getElementById(selEl.id);
21379
+ var el = _this.getHtmlElementForScroll(selEl);
21380
21380
  if (!!selEl && (focus || startEdit && (!selEl.hasTitle || selEl.isPanel))) {
21381
21381
  if (!el || _this.rootElement.getAnimations({ subtree: true }).filter((function (animation) { return animation.effect.getComputedTiming().activeDuration !== Infinity && (animation.pending || animation.playState !== "finished"); }))[0])
21382
21382
  return;
@@ -21393,7 +21393,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
21393
21393
  _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.scrollIntoViewIfNeeded((_b = el.parentElement) !== null && _b !== void 0 ? _b : el, function () { return scrollIntoViewOptions_1; }, true);
21394
21394
  }
21395
21395
  }
21396
- if (!propertyName && el.parentElement) {
21396
+ if (!propertyName && el.parentElement && selEl.getType() !== "matrixdropdowncolumn") {
21397
21397
  var elToFocus = (typeof (focus) === "string") ? el.parentElement.querySelector(focus) : el.parentElement;
21398
21398
  elToFocus && elToFocus.focus({ preventScroll: true });
21399
21399
  }
@@ -21408,10 +21408,17 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
21408
21408
  }, 1);
21409
21409
  }, 100);
21410
21410
  };
21411
+ SurveyCreatorModel.prototype.getHtmlElementForScroll = function (element) {
21412
+ var id = element.getType() === "matrixdropdowncolumn" ? element.colOwner.id : element.id;
21413
+ return document.getElementById(id);
21414
+ };
21411
21415
  SurveyCreatorModel.prototype.getSelectedSurveyElement = function () {
21412
21416
  var sel = this.selectedElement;
21413
21417
  if (!sel || sel.getType() == "survey")
21414
21418
  return null;
21419
+ if (this.selectedElement.getType() === "matrixdropdowncolumn") {
21420
+ return this.selectedElement;
21421
+ }
21415
21422
  return sel.isInteractiveDesignElement && sel.id ? sel : null;
21416
21423
  };
21417
21424
  SurveyCreatorModel.prototype.onSelectingElement = function (val) {
@@ -34163,15 +34170,15 @@ var PropertyGridEditorBindings = /** @class */ (function (_super) {
34163
34170
  PropertyGridEditorBindings.prototype.onCreated = function (obj, question, prop, options) {
34164
34171
  question.contentPanel.fromJSON({ elements: this.getQuestions(obj, options) });
34165
34172
  question.valueFromDataCallback = function (value) {
34166
- if (!value && obj.bindings.getNames().length > 0) {
34167
- var result = {};
34168
- for (var _i = 0, _a = obj.bindings.getNames(); _i < _a.length; _i++) {
34169
- var bindingName = _a[_i];
34170
- result[bindingName] = obj.bindings.getValueNameByPropertyName(bindingName);
34173
+ var keys = obj.bindings.getNames();
34174
+ var result = {};
34175
+ if (keys.length > 0) {
34176
+ for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
34177
+ var key = keys_1[_i];
34178
+ result[key] = !!value ? value[key] : obj.bindings.getValueNameByPropertyName(key);
34171
34179
  }
34172
- return result;
34173
34180
  }
34174
- return value;
34181
+ return result;
34175
34182
  };
34176
34183
  };
34177
34184
  PropertyGridEditorBindings.prototype.getQuestions = function (obj, options) {
@@ -46239,7 +46246,7 @@ __webpack_require__.r(__webpack_exports__);
46239
46246
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! survey-core */ "survey-core");
46240
46247
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_98__);
46241
46248
  var Version;
46242
- Version = "".concat("1.12.27");
46249
+ Version = "".concat("1.12.28");
46243
46250
  //should be loaded before other styles for easier override
46244
46251
  __webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
46245
46252
 
@@ -46362,7 +46369,7 @@ __webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
46362
46369
  __webpack_require__(/*! ../custom-questions/boolean-switch.scss */ "./src/custom-questions/boolean-switch.scss");
46363
46370
 
46364
46371
  survey_core__WEBPACK_IMPORTED_MODULE_98__.settings.supportCreatorV2 = true;
46365
- (0,survey_core__WEBPACK_IMPORTED_MODULE_98__.checkLibraryVersion)("".concat("1.12.27"), "survey-creator-core");
46372
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_98__.checkLibraryVersion)("".concat("1.12.28"), "survey-creator-core");
46366
46373
 
46367
46374
  })();
46368
46375