survey-creator-core 1.12.44 → 1.12.45

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 (140) hide show
  1. package/fesm/i18n/arabic.mjs +1 -1
  2. package/fesm/i18n/bulgarian.mjs +1 -1
  3. package/fesm/i18n/burmese.mjs +1 -1
  4. package/fesm/i18n/croatian.mjs +1 -1
  5. package/fesm/i18n/czech.mjs +1 -1
  6. package/fesm/i18n/danish.mjs +1 -1
  7. package/fesm/i18n/dutch.mjs +1 -1
  8. package/fesm/i18n/english.mjs +9 -6
  9. package/fesm/i18n/english.mjs.map +1 -1
  10. package/fesm/i18n/finnish.mjs +1 -1
  11. package/fesm/i18n/french.mjs +1 -1
  12. package/fesm/i18n/german.mjs +1 -1
  13. package/fesm/i18n/greek.mjs +1 -1
  14. package/fesm/i18n/haitian-creole.mjs +1 -1
  15. package/fesm/i18n/hebrew.mjs +1 -1
  16. package/fesm/i18n/hungarian.mjs +1 -1
  17. package/fesm/i18n/index.mjs +1 -1
  18. package/fesm/i18n/indonesian.mjs +1 -1
  19. package/fesm/i18n/italian.mjs +1 -1
  20. package/fesm/i18n/japanese.mjs +1 -1
  21. package/fesm/i18n/korean.mjs +1 -1
  22. package/fesm/i18n/malay.mjs +1 -1
  23. package/fesm/i18n/mongolian.mjs +1 -1
  24. package/fesm/i18n/norwegian.mjs +1 -1
  25. package/fesm/i18n/persian.mjs +1 -1
  26. package/fesm/i18n/polish.mjs +1 -1
  27. package/fesm/i18n/portuguese.mjs +1 -1
  28. package/fesm/i18n/romanian.mjs +1 -1
  29. package/fesm/i18n/russian.mjs +1 -1
  30. package/fesm/i18n/simplified-chinese.mjs +1 -1
  31. package/fesm/i18n/slovak.mjs +1 -1
  32. package/fesm/i18n/slovenian.mjs +1 -1
  33. package/fesm/i18n/spanish.mjs +1 -1
  34. package/fesm/i18n/swedish.mjs +1 -1
  35. package/fesm/i18n/tajik.mjs +1 -1
  36. package/fesm/i18n/thai.mjs +1 -1
  37. package/fesm/i18n/traditional-chinese.mjs +1 -1
  38. package/fesm/i18n/turkish.mjs +1 -1
  39. package/fesm/survey-creator-core.i18n.mjs +1 -1
  40. package/fesm/survey-creator-core.mjs +19 -12
  41. package/fesm/survey-creator-core.mjs.map +1 -1
  42. package/fesm/themes/index.mjs +1 -1
  43. package/fonts.fontless.css +1 -1
  44. package/fonts.fontless.min.css +1 -1
  45. package/i18n/arabic.js +1 -1
  46. package/i18n/arabic.min.js.LICENSE.txt +1 -1
  47. package/i18n/bulgarian.js +1 -1
  48. package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
  49. package/i18n/burmese.js +1 -1
  50. package/i18n/burmese.min.js.LICENSE.txt +1 -1
  51. package/i18n/croatian.js +1 -1
  52. package/i18n/croatian.min.js.LICENSE.txt +1 -1
  53. package/i18n/czech.js +1 -1
  54. package/i18n/czech.min.js.LICENSE.txt +1 -1
  55. package/i18n/danish.js +1 -1
  56. package/i18n/danish.min.js.LICENSE.txt +1 -1
  57. package/i18n/dutch.js +1 -1
  58. package/i18n/dutch.min.js.LICENSE.txt +1 -1
  59. package/i18n/english.js +1 -1
  60. package/i18n/english.min.js.LICENSE.txt +1 -1
  61. package/i18n/finnish.js +1 -1
  62. package/i18n/finnish.min.js.LICENSE.txt +1 -1
  63. package/i18n/french.js +1 -1
  64. package/i18n/french.min.js.LICENSE.txt +1 -1
  65. package/i18n/german.js +1 -1
  66. package/i18n/german.min.js.LICENSE.txt +1 -1
  67. package/i18n/greek.js +1 -1
  68. package/i18n/greek.min.js.LICENSE.txt +1 -1
  69. package/i18n/haitian-creole.js +1 -1
  70. package/i18n/haitian-creole.min.js.LICENSE.txt +1 -1
  71. package/i18n/hebrew.js +1 -1
  72. package/i18n/hebrew.min.js.LICENSE.txt +1 -1
  73. package/i18n/hungarian.js +1 -1
  74. package/i18n/hungarian.min.js.LICENSE.txt +1 -1
  75. package/i18n/index.js +1 -1
  76. package/i18n/index.min.js.LICENSE.txt +1 -1
  77. package/i18n/indonesian.js +1 -1
  78. package/i18n/indonesian.min.js.LICENSE.txt +1 -1
  79. package/i18n/italian.js +1 -1
  80. package/i18n/italian.min.js.LICENSE.txt +1 -1
  81. package/i18n/japanese.js +1 -1
  82. package/i18n/japanese.min.js.LICENSE.txt +1 -1
  83. package/i18n/korean.js +1 -1
  84. package/i18n/korean.min.js.LICENSE.txt +1 -1
  85. package/i18n/malay.js +1 -1
  86. package/i18n/malay.min.js.LICENSE.txt +1 -1
  87. package/i18n/mongolian.js +1 -1
  88. package/i18n/mongolian.min.js.LICENSE.txt +1 -1
  89. package/i18n/norwegian.js +1 -1
  90. package/i18n/norwegian.min.js.LICENSE.txt +1 -1
  91. package/i18n/persian.js +1 -1
  92. package/i18n/persian.min.js.LICENSE.txt +1 -1
  93. package/i18n/polish.js +1 -1
  94. package/i18n/polish.min.js.LICENSE.txt +1 -1
  95. package/i18n/portuguese.js +1 -1
  96. package/i18n/portuguese.min.js.LICENSE.txt +1 -1
  97. package/i18n/romanian.js +1 -1
  98. package/i18n/romanian.min.js.LICENSE.txt +1 -1
  99. package/i18n/russian.js +1 -1
  100. package/i18n/russian.min.js.LICENSE.txt +1 -1
  101. package/i18n/simplified-chinese.js +1 -1
  102. package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
  103. package/i18n/slovak.js +1 -1
  104. package/i18n/slovak.min.js.LICENSE.txt +1 -1
  105. package/i18n/slovenian.js +1 -1
  106. package/i18n/slovenian.min.js.LICENSE.txt +1 -1
  107. package/i18n/spanish.js +1 -1
  108. package/i18n/spanish.min.js.LICENSE.txt +1 -1
  109. package/i18n/swedish.js +1 -1
  110. package/i18n/swedish.min.js.LICENSE.txt +1 -1
  111. package/i18n/tajik.js +1 -1
  112. package/i18n/tajik.min.js.LICENSE.txt +1 -1
  113. package/i18n/thai.js +1 -1
  114. package/i18n/thai.min.js.LICENSE.txt +1 -1
  115. package/i18n/traditional-chinese.js +1 -1
  116. package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
  117. package/i18n/turkish.js +1 -1
  118. package/i18n/turkish.min.js.LICENSE.txt +1 -1
  119. package/package.json +2 -2
  120. package/survey-creator-core.css +2 -2
  121. package/survey-creator-core.fontless.css +1 -1
  122. package/survey-creator-core.fontless.min.css +1 -1
  123. package/survey-creator-core.i18n.js +1 -1
  124. package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
  125. package/survey-creator-core.js +37 -16
  126. package/survey-creator-core.js.map +1 -1
  127. package/survey-creator-core.min.css +2 -2
  128. package/survey-creator-core.min.js +1 -1
  129. package/survey-creator-core.min.js.LICENSE.txt +1 -1
  130. package/themes/default-contrast.js +1 -1
  131. package/themes/default-contrast.min.js.LICENSE.txt +1 -1
  132. package/themes/default-dark.js +1 -1
  133. package/themes/default-dark.min.js.LICENSE.txt +1 -1
  134. package/themes/default-light.js +1 -1
  135. package/themes/default-light.min.js.LICENSE.txt +1 -1
  136. package/themes/index.js +1 -1
  137. package/themes/index.min.js.LICENSE.txt +1 -1
  138. package/themes/sc2020.js +1 -1
  139. package/themes/sc2020.min.js.LICENSE.txt +1 -1
  140. package/typings/creator-settings.d.ts +8 -3
package/i18n/turkish.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.12.44
2
+ * SurveyJS Creator v1.12.45
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.44
2
+ * SurveyJS Creator v1.12.45
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-core",
3
- "version": "1.12.44",
3
+ "version": "1.12.45",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -27,7 +27,7 @@
27
27
  "typings": "./typings/entries/index.d.ts",
28
28
  "peerDependencies": {
29
29
  "ace-builds": "^1.4.12",
30
- "survey-core": "1.12.44"
30
+ "survey-core": "1.12.45"
31
31
  },
32
32
  "peerDependenciesMeta": {
33
33
  "ace-builds": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.12.44
2
+ * SurveyJS Creator v1.12.45
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.44
231
+ * SurveyJS Creator v1.12.45
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.44
2
+ * SurveyJS Creator v1.12.45
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.44
2
+ * SurveyJS Creator v1.12.45
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.44
2
+ * SurveyJS Creator v1.12.45
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.44
2
+ * SurveyJS Creator v1.12.45
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.44
2
+ * SurveyJS Creator v1.12.45
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
@@ -1771,7 +1771,8 @@ var PageNavigatorViewModel = /** @class */ (function (_super) {
1771
1771
  _this.popupModel.hide();
1772
1772
  },
1773
1773
  cssClasses: _list_theme__WEBPACK_IMPORTED_MODULE_3__.listComponentCss,
1774
- allowSelection: true
1774
+ allowSelection: true,
1775
+ locOwner: pagesController.creator,
1775
1776
  });
1776
1777
  _this.popupModel = new survey_core__WEBPACK_IMPORTED_MODULE_1__.PopupModel("sv-list", { model: _this.pageListModel }, { cssClass: "svc-creator-popup" });
1777
1778
  !!_this.pagesController && (_this.popupModel.horizontalPosition = _this.pagesController.creator["toolboxLocation"]);
@@ -3797,7 +3798,7 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
3797
3798
  horizontalPosition: "center",
3798
3799
  cssClass: "svc-creator-popup",
3799
3800
  cssClasses: _list_theme__WEBPACK_IMPORTED_MODULE_9__.listComponentCss,
3800
- });
3801
+ }, this.creator);
3801
3802
  newAction.popupModel.onVisibilityChanged.add(function (_, opt) {
3802
3803
  if (opt.isVisible) {
3803
3804
  var listModel_1 = newAction.popupModel.contentComponentData.model;
@@ -3809,7 +3810,6 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
3809
3810
  if (listModel.selectedItem)
3810
3811
  newAction.title = listModel.selectedItem.title;
3811
3812
  newAction.popupModel.displayMode = this.creator.isTouch ? "overlay" : "popup";
3812
- newAction.data.locOwner = this.creator;
3813
3813
  return newAction;
3814
3814
  };
3815
3815
  QuestionAdornerViewModel.prototype.updateRequiredAction = function (requiredAction) {
@@ -12406,7 +12406,7 @@ var PreviewViewModel = /** @class */ (function (_super) {
12406
12406
  cssClasses: _list_theme__WEBPACK_IMPORTED_MODULE_6__.listComponentCss,
12407
12407
  verticalPosition: "top",
12408
12408
  horizontalPosition: "center"
12409
- });
12409
+ }, this.surveyProvider);
12410
12410
  pageActions.push(this.selectPageAction);
12411
12411
  this.selectPageAction.visible = new survey_core__WEBPACK_IMPORTED_MODULE_2__.ComputedUpdater(function () {
12412
12412
  return _this.survey.state === "running";
@@ -12749,7 +12749,7 @@ var TabTestPlugin = /** @class */ (function () {
12749
12749
  cssClasses: _list_theme__WEBPACK_IMPORTED_MODULE_5__.listComponentCss,
12750
12750
  onHide: function () { _this.deviceSelectorAction.enabled = true; },
12751
12751
  onShow: function () { _this.deviceSelectorAction.enabled = false; }
12752
- });
12752
+ }, this.creator);
12753
12753
  items.push(this.deviceSelectorAction);
12754
12754
  this.orientationSelectorAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__.Action({
12755
12755
  id: "orientationSelector",
@@ -12848,7 +12848,7 @@ var TabTestPlugin = /** @class */ (function () {
12848
12848
  cssClasses: _list_theme__WEBPACK_IMPORTED_MODULE_5__.listComponentCss,
12849
12849
  onHide: function () { _this.languageSelectorAction.enabled = true; },
12850
12850
  onShow: function () { _this.languageSelectorAction.enabled = false; }
12851
- });
12851
+ }, this.creator);
12852
12852
  items.push(this.languageSelectorAction);
12853
12853
  this.designerAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__.Action({
12854
12854
  id: "svd-designer",
@@ -16010,7 +16010,7 @@ var TabTranslationPlugin = /** @class */ (function () {
16010
16010
  horizontalPosition: "center",
16011
16011
  cssClass: "svc-creator-popup",
16012
16012
  cssClasses: _list_theme__WEBPACK_IMPORTED_MODULE_5__.listComponentCss,
16013
- });
16013
+ }, this.creator);
16014
16014
  };
16015
16015
  TabTranslationPlugin.prototype.createFilterStringsAction = function () {
16016
16016
  var _this = this;
@@ -16028,7 +16028,7 @@ var TabTranslationPlugin = /** @class */ (function () {
16028
16028
  horizontalPosition: "center",
16029
16029
  cssClass: "svc-creator-popup",
16030
16030
  cssClasses: _list_theme__WEBPACK_IMPORTED_MODULE_5__.listComponentCss,
16031
- });
16031
+ }, this.creator);
16032
16032
  };
16033
16033
  TabTranslationPlugin.prototype.updateFilterStrigsAction = function (updateSelectedItem) {
16034
16034
  if (updateSelectedItem === void 0) { updateSelectedItem = false; }
@@ -17569,7 +17569,7 @@ var Translation = /** @class */ (function (_super) {
17569
17569
  onSelectionChanged: function (item) {
17570
17570
  _this.addLocale(item.id);
17571
17571
  }
17572
- });
17572
+ }, this.options);
17573
17573
  };
17574
17574
  Translation.prototype.onPropertyValueChanged = function (name, oldValue, newValue) {
17575
17575
  _super.prototype.onPropertyValueChanged.call(this, name, oldValue, newValue);
@@ -18199,7 +18199,8 @@ var TranslationEditor = /** @class */ (function () {
18199
18199
  action.title = _this.getActionTranslateFromText(id);
18200
18200
  },
18201
18201
  cssClasses: _list_theme__WEBPACK_IMPORTED_MODULE_11__.listComponentCss,
18202
- allowSelection: true
18202
+ allowSelection: true,
18203
+ locOwner: this.options
18203
18204
  }, {
18204
18205
  verticalPosition: "bottom",
18205
18206
  horizontalPosition: "center",
@@ -22234,7 +22235,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
22234
22235
  verticalPosition: "bottom",
22235
22236
  horizontalPosition: "center",
22236
22237
  displayMode: this.isTouch ? "overlay" : "popup"
22237
- });
22238
+ }, this);
22238
22239
  newAction.popupModel.getTargetCallback = undefined;
22239
22240
  newAction.popupModel.onVisibilityChanged.add(function (_, opt) {
22240
22241
  if (opt.isVisible) {
@@ -23205,6 +23206,9 @@ var EmptySurveyCreatorOptions = /** @class */ (function () {
23205
23206
  this.maxNestedPanels = -1;
23206
23207
  this.translationLocalesOrder = [];
23207
23208
  }
23209
+ EmptySurveyCreatorOptions.prototype.canAddPage = function (pageToAdd) {
23210
+ throw new Error("Method not implemented.");
23211
+ };
23208
23212
  EmptySurveyCreatorOptions.prototype.getProcessedTranslationItemText = function (locale, locString, newText, obj) {
23209
23213
  return newText;
23210
23214
  };
@@ -23259,7 +23263,22 @@ var EmptySurveyCreatorOptions = /** @class */ (function () {
23259
23263
  EmptySurveyCreatorOptions.prototype.getHasMachineTranslation = function () { return this.machineTranslationValue; };
23260
23264
  EmptySurveyCreatorOptions.prototype.doMachineTranslation = function (fromLocale, toLocale, strings, callback) { };
23261
23265
  EmptySurveyCreatorOptions.prototype.chooseFiles = function (input, callback, context) { };
23262
- EmptySurveyCreatorOptions.prototype.canAddPage = function (pageToAdd) { return true; };
23266
+ // ILocalizableOwner implemented
23267
+ EmptySurveyCreatorOptions.prototype.getLocale = function () {
23268
+ return "";
23269
+ };
23270
+ EmptySurveyCreatorOptions.prototype.getMarkdownHtml = function (text, name, item) {
23271
+ return text;
23272
+ };
23273
+ EmptySurveyCreatorOptions.prototype.getProcessedText = function (text) {
23274
+ return text;
23275
+ };
23276
+ EmptySurveyCreatorOptions.prototype.getRenderer = function (name) {
23277
+ return name;
23278
+ };
23279
+ EmptySurveyCreatorOptions.prototype.getRendererContext = function (locStr) {
23280
+ return locStr;
23281
+ };
23263
23282
  return EmptySurveyCreatorOptions;
23264
23283
  }());
23265
23284
 
@@ -39371,7 +39390,8 @@ var ObjectSelectorModel = /** @class */ (function (_super) {
39371
39390
  onSelectionChanged: function (item) { onClose(item.data); },
39372
39391
  allowSelection: true,
39373
39392
  cssClasses: _components_list_theme__WEBPACK_IMPORTED_MODULE_3__.listComponentCss,
39374
- selectedItem: selectedItem
39393
+ selectedItem: selectedItem,
39394
+ locOwner: this.creator,
39375
39395
  });
39376
39396
  this.listModelValue.setOnFilterStringChangedCallback(function (text) { _this.selector.filterByText(text); });
39377
39397
  }
@@ -44046,6 +44066,7 @@ var QuestionToolbox = /** @class */ (function (_super) {
44046
44066
  }
44047
44067
  };
44048
44068
  this.dotsItem.popupModel.cssClass += " svc-toolbox-popup svc-creator-popup";
44069
+ this.dotsItem.data.locOwner = this.creator;
44049
44070
  this.hiddenItemsListModel.cssClasses = _components_list_theme__WEBPACK_IMPORTED_MODULE_5__.listComponentCss;
44050
44071
  };
44051
44072
  QuestionToolbox.prototype.getDefaultQuestionCategories = function () {
@@ -46363,7 +46384,7 @@ __webpack_require__.r(__webpack_exports__);
46363
46384
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! survey-core */ "survey-core");
46364
46385
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_98__);
46365
46386
  var Version;
46366
- Version = "".concat("1.12.44");
46387
+ Version = "".concat("1.12.45");
46367
46388
  //should be loaded before other styles for easier override
46368
46389
  __webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
46369
46390
 
@@ -46486,7 +46507,7 @@ __webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
46486
46507
  __webpack_require__(/*! ../custom-questions/boolean-switch.scss */ "./src/custom-questions/boolean-switch.scss");
46487
46508
 
46488
46509
  survey_core__WEBPACK_IMPORTED_MODULE_98__.settings.supportCreatorV2 = true;
46489
- (0,survey_core__WEBPACK_IMPORTED_MODULE_98__.checkLibraryVersion)("".concat("1.12.44"), "survey-creator-core");
46510
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_98__.checkLibraryVersion)("".concat("1.12.45"), "survey-creator-core");
46490
46511
 
46491
46512
  })();
46492
46513