survey-creator-core 1.12.48 → 1.12.49

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 +23 -6
  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/components/tabs/logic-types.d.ts +2 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.12.48
2
+ * SurveyJS Creator v1.12.49
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.48
231
+ * SurveyJS Creator v1.12.49
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.48
2
+ * SurveyJS Creator v1.12.49
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.48
2
+ * SurveyJS Creator v1.12.49
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.48
2
+ * SurveyJS Creator v1.12.49
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.48
2
+ * SurveyJS Creator v1.12.49
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.48
2
+ * SurveyJS Creator v1.12.49
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
@@ -9256,12 +9256,10 @@ var SurveyLogicAction = /** @class */ (function () {
9256
9256
  if (!!this.element && !!this.logicType) {
9257
9257
  this.element[this.logicType.propertyName] = expression;
9258
9258
  if (!expression) {
9259
+ this.logicType.remove(this.element);
9259
9260
  if (survey_core__WEBPACK_IMPORTED_MODULE_0__.Serializer.isDescendantOf(this.element.getType(), "surveytrigger")) {
9260
9261
  this.removeElement(this.survey.triggers, this.element);
9261
9262
  }
9262
- if (survey_core__WEBPACK_IMPORTED_MODULE_0__.Serializer.isDescendantOf(this.element.getType(), "htmlconditionitem")) {
9263
- this.removeElement(this.survey.completedHtmlOnCondition, this.element);
9264
- }
9265
9263
  }
9266
9264
  }
9267
9265
  };
@@ -10576,6 +10574,10 @@ var SurveyLogicType = /** @class */ (function () {
10576
10574
  }
10577
10575
  return str;
10578
10576
  };
10577
+ SurveyLogicType.prototype.remove = function (el) {
10578
+ var f = this.logicType.remove;
10579
+ f && f(el);
10580
+ };
10579
10581
  SurveyLogicType.prototype.getElementDisplayName = function (element) {
10580
10582
  if (!element)
10581
10583
  return "";
@@ -10629,6 +10631,12 @@ function hasMatrixColumns(survey) {
10629
10631
  }
10630
10632
  return false;
10631
10633
  }
10634
+ function removeElement(items, element) {
10635
+ var index = items.indexOf(element);
10636
+ if (index > -1) {
10637
+ items.splice(index, 1);
10638
+ }
10639
+ }
10632
10640
  var SurveyLogicTypes = /** @class */ (function () {
10633
10641
  function SurveyLogicTypes() {
10634
10642
  }
@@ -10781,6 +10789,9 @@ var SurveyLogicTypes = /** @class */ (function () {
10781
10789
  propertyName: "setValueIf",
10782
10790
  getDisplayText: function (element, formatStr, lt) {
10783
10791
  return getDisplayTextForSetValueIf(element, formatStr, lt);
10792
+ },
10793
+ remove: function (element) {
10794
+ element.setValueExpression = "";
10784
10795
  }
10785
10796
  },
10786
10797
  {
@@ -10899,6 +10910,12 @@ var SurveyLogicTypes = /** @class */ (function () {
10899
10910
  getCollection: function (survey) {
10900
10911
  return survey.completedHtmlOnCondition;
10901
10912
  },
10913
+ remove: function (element) {
10914
+ var survey = element.getSurvey();
10915
+ if (!!survey) {
10916
+ removeElement(survey.completedHtmlOnCondition, element);
10917
+ }
10918
+ }
10902
10919
  },
10903
10920
  {
10904
10921
  name: "trigger_runExpression_Expression",
@@ -46403,7 +46420,7 @@ __webpack_require__.r(__webpack_exports__);
46403
46420
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! survey-core */ "survey-core");
46404
46421
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_98__);
46405
46422
  var Version;
46406
- Version = "".concat("1.12.48");
46423
+ Version = "".concat("1.12.49");
46407
46424
  //should be loaded before other styles for easier override
46408
46425
  __webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
46409
46426
 
@@ -46526,7 +46543,7 @@ __webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
46526
46543
  __webpack_require__(/*! ../custom-questions/boolean-switch.scss */ "./src/custom-questions/boolean-switch.scss");
46527
46544
 
46528
46545
  survey_core__WEBPACK_IMPORTED_MODULE_98__.settings.supportCreatorV2 = true;
46529
- (0,survey_core__WEBPACK_IMPORTED_MODULE_98__.checkLibraryVersion)("".concat("1.12.48"), "survey-creator-core");
46546
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_98__.checkLibraryVersion)("".concat("1.12.49"), "survey-creator-core");
46530
46547
 
46531
46548
  })();
46532
46549