survey-creator-core 1.12.20 → 1.12.21

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 (91) 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/spanish.js +1 -1
  60. package/i18n/spanish.min.js.LICENSE.txt +1 -1
  61. package/i18n/swedish.js +1 -1
  62. package/i18n/swedish.min.js.LICENSE.txt +1 -1
  63. package/i18n/tajik.js +1 -1
  64. package/i18n/tajik.min.js.LICENSE.txt +1 -1
  65. package/i18n/thai.js +1 -1
  66. package/i18n/thai.min.js.LICENSE.txt +1 -1
  67. package/i18n/traditional-chinese.js +1 -1
  68. package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
  69. package/i18n/turkish.js +1 -1
  70. package/i18n/turkish.min.js.LICENSE.txt +1 -1
  71. package/package.json +2 -2
  72. package/survey-creator-core.css +2 -2
  73. package/survey-creator-core.fontless.css +1 -1
  74. package/survey-creator-core.fontless.min.css +1 -1
  75. package/survey-creator-core.i18n.js +1 -1
  76. package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
  77. package/survey-creator-core.js +30 -14
  78. package/survey-creator-core.js.map +1 -1
  79. package/survey-creator-core.min.css +2 -2
  80. package/survey-creator-core.min.js +1 -1
  81. package/survey-creator-core.min.js.LICENSE.txt +1 -1
  82. package/themes/default-contrast.js +1 -1
  83. package/themes/default-contrast.min.js.LICENSE.txt +1 -1
  84. package/themes/default-dark.js +1 -1
  85. package/themes/default-dark.min.js.LICENSE.txt +1 -1
  86. package/themes/default-light.js +1 -1
  87. package/themes/default-light.min.js.LICENSE.txt +1 -1
  88. package/themes/index.js +1 -1
  89. package/themes/index.min.js.LICENSE.txt +1 -1
  90. package/typings/components/action-container-view-model.d.ts +1 -0
  91. package/typings/creator-base.d.ts +1 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.12.20
2
+ * SurveyJS Creator v1.12.21
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.20
2
+ * SurveyJS Creator v1.12.21
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.20
2
+ * SurveyJS Creator v1.12.21
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.20
2
+ * SurveyJS Creator v1.12.21
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
@@ -4784,6 +4784,12 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
4784
4784
  _this.updateActionsProperties();
4785
4785
  }
4786
4786
  };
4787
+ _this.creatorOnLocaleChanged = function (_, options) {
4788
+ if (_this.surveyElement) {
4789
+ _this.updateActionsContainer(_this.surveyElement);
4790
+ _this.updateActionsProperties();
4791
+ }
4792
+ };
4787
4793
  _this.expandCollapseAction = _this.getExpandCollapseAction();
4788
4794
  _this.createActionContainers();
4789
4795
  _this.attachToUI(surveyElement);
@@ -5009,6 +5015,7 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
5009
5015
  }
5010
5016
  if (this.surveyElement != surveyElement) {
5011
5017
  this.setSurveyElement(surveyElement);
5018
+ this.creator.onLocaleChanded.add(this.creatorOnLocaleChanged);
5012
5019
  this.creator.sidebar.onPropertyChanged.add(this.sidebarFlyoutModeChangedFunc);
5013
5020
  this.creator.expandCollapseManager.add(this);
5014
5021
  }
@@ -5022,6 +5029,7 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
5022
5029
  this.rootElement = undefined;
5023
5030
  this.detachOnlyMyElement();
5024
5031
  this.surveyElement = undefined;
5032
+ this.creator.onLocaleChanded.remove(this.creatorOnLocaleChanged);
5025
5033
  this.creator.sidebar.onPropertyChanged.remove(this.sidebarFlyoutModeChangedFunc);
5026
5034
  this.creator.expandCollapseManager.remove(this);
5027
5035
  };
@@ -23172,6 +23180,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
23172
23180
  * Default value: `true`
23173
23181
  */
23174
23182
  _this.showErrorOnFailedSave = true;
23183
+ _this.onLocaleChanded = _this.addCreatorEvent();
23175
23184
  /**
23176
23185
  * An event that is raised before the [active tab](#activeTab) is switched. Use this event to allow or cancel the switch.
23177
23186
  * @see makeNewViewActive
@@ -23770,6 +23779,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
23770
23779
  _editorLocalization__WEBPACK_IMPORTED_MODULE_3__.editorLocalization.currentLocale = value;
23771
23780
  this.setPropertyValue("locale", value);
23772
23781
  this.updateLocalizedStrings();
23782
+ this.onLocaleChanded.fire(this, { locale: value });
23773
23783
  },
23774
23784
  enumerable: false,
23775
23785
  configurable: true
@@ -34056,7 +34066,7 @@ var ConditionEditorItemsBuilder = /** @class */ (function () {
34056
34066
  function questionValueVisibleIf(params) {
34057
34067
  if (params.length !== 2)
34058
34068
  return false;
34059
- if (!params[0] || !params[1])
34069
+ if (survey_core__WEBPACK_IMPORTED_MODULE_1__.Helpers.isValueEmpty(params[0]) || !params[1])
34060
34070
  return false;
34061
34071
  return params[1] !== "empty" && params[1] !== "notempty";
34062
34072
  }
@@ -35323,18 +35333,24 @@ var FastEntryEditor = /** @class */ (function (_super) {
35323
35333
  };
35324
35334
  FastEntryEditor.prototype.applyItemValueArray = function (dest, src, names) {
35325
35335
  if (names === void 0) { names = []; }
35326
- this.calcBeforeApplyItemsArray(dest, src, names);
35327
- for (var i = 0; i < dest.length; i++) {
35328
- if (dest[i].value != src[i].value) {
35329
- dest[i].value = src[i].value;
35336
+ if (!Array.isArray(src))
35337
+ src = [];
35338
+ var _loop_1 = function (i) {
35339
+ var item = survey_core__WEBPACK_IMPORTED_MODULE_1__.ItemValue.getItemByValue(dest, src[i].value);
35340
+ if (item) {
35341
+ item.text = src[i].text;
35342
+ names.forEach(function (name) {
35343
+ if (name == "value" || name == "text")
35344
+ return;
35345
+ dest[i][name] = src[i][name];
35346
+ });
35347
+ src.splice(i, 1, item);
35330
35348
  }
35331
- dest[i].text = src[i].hasText ? src[i].text : "";
35332
- names.forEach(function (name) {
35333
- if (name == "value" || name == "text")
35334
- return;
35335
- dest[i][name] = src[i][name];
35336
- });
35349
+ };
35350
+ for (var i = 0; i < src.length; i++) {
35351
+ _loop_1(i);
35337
35352
  }
35353
+ dest.splice.apply(dest, [0, dest.length].concat(src));
35338
35354
  };
35339
35355
  FastEntryEditor.prototype.convertItemValuesToText = function () {
35340
35356
  var _this = this;
@@ -46148,7 +46164,7 @@ __webpack_require__.r(__webpack_exports__);
46148
46164
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! survey-core */ "survey-core");
46149
46165
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_98__);
46150
46166
  var Version;
46151
- Version = "".concat("1.12.20");
46167
+ Version = "".concat("1.12.21");
46152
46168
  //should be loaded before other styles for easier override
46153
46169
  __webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
46154
46170
 
@@ -46271,7 +46287,7 @@ __webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
46271
46287
  __webpack_require__(/*! ../custom-questions/boolean-switch.scss */ "./src/custom-questions/boolean-switch.scss");
46272
46288
 
46273
46289
  survey_core__WEBPACK_IMPORTED_MODULE_98__.settings.supportCreatorV2 = true;
46274
- (0,survey_core__WEBPACK_IMPORTED_MODULE_98__.checkLibraryVersion)("".concat("1.12.20"), "survey-creator-core");
46290
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_98__.checkLibraryVersion)("".concat("1.12.21"), "survey-creator-core");
46275
46291
 
46276
46292
  })();
46277
46293