survey-creator-core 2.3.1 → 2.3.3

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 (143) 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 +3 -3
  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 +61 -19
  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 +3 -3
  60. package/i18n/english.js.map +1 -1
  61. package/i18n/english.min.js +1 -1
  62. package/i18n/english.min.js.LICENSE.txt +1 -1
  63. package/i18n/finnish.js +1 -1
  64. package/i18n/finnish.min.js.LICENSE.txt +1 -1
  65. package/i18n/french.js +1 -1
  66. package/i18n/french.min.js.LICENSE.txt +1 -1
  67. package/i18n/german.js +1 -1
  68. package/i18n/german.min.js.LICENSE.txt +1 -1
  69. package/i18n/greek.js +1 -1
  70. package/i18n/greek.min.js.LICENSE.txt +1 -1
  71. package/i18n/haitian-creole.js +1 -1
  72. package/i18n/haitian-creole.min.js.LICENSE.txt +1 -1
  73. package/i18n/hebrew.js +1 -1
  74. package/i18n/hebrew.min.js.LICENSE.txt +1 -1
  75. package/i18n/hungarian.js +1 -1
  76. package/i18n/hungarian.min.js.LICENSE.txt +1 -1
  77. package/i18n/index.js +1 -1
  78. package/i18n/index.min.js.LICENSE.txt +1 -1
  79. package/i18n/indonesian.js +1 -1
  80. package/i18n/indonesian.min.js.LICENSE.txt +1 -1
  81. package/i18n/italian.js +1 -1
  82. package/i18n/italian.min.js.LICENSE.txt +1 -1
  83. package/i18n/japanese.js +1 -1
  84. package/i18n/japanese.min.js.LICENSE.txt +1 -1
  85. package/i18n/korean.js +1 -1
  86. package/i18n/korean.min.js.LICENSE.txt +1 -1
  87. package/i18n/malay.js +1 -1
  88. package/i18n/malay.min.js.LICENSE.txt +1 -1
  89. package/i18n/mongolian.js +1 -1
  90. package/i18n/mongolian.min.js.LICENSE.txt +1 -1
  91. package/i18n/norwegian.js +1 -1
  92. package/i18n/norwegian.min.js.LICENSE.txt +1 -1
  93. package/i18n/persian.js +1 -1
  94. package/i18n/persian.min.js.LICENSE.txt +1 -1
  95. package/i18n/polish.js +1 -1
  96. package/i18n/polish.min.js.LICENSE.txt +1 -1
  97. package/i18n/portuguese.js +1 -1
  98. package/i18n/portuguese.min.js.LICENSE.txt +1 -1
  99. package/i18n/romanian.js +1 -1
  100. package/i18n/romanian.min.js.LICENSE.txt +1 -1
  101. package/i18n/russian.js +1 -1
  102. package/i18n/russian.min.js.LICENSE.txt +1 -1
  103. package/i18n/simplified-chinese.js +1 -1
  104. package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
  105. package/i18n/slovak.js +1 -1
  106. package/i18n/slovak.min.js.LICENSE.txt +1 -1
  107. package/i18n/slovenian.js +1 -1
  108. package/i18n/slovenian.min.js.LICENSE.txt +1 -1
  109. package/i18n/spanish.js +1 -1
  110. package/i18n/spanish.min.js.LICENSE.txt +1 -1
  111. package/i18n/swedish.js +1 -1
  112. package/i18n/swedish.min.js.LICENSE.txt +1 -1
  113. package/i18n/tajik.js +1 -1
  114. package/i18n/tajik.min.js.LICENSE.txt +1 -1
  115. package/i18n/thai.js +1 -1
  116. package/i18n/thai.min.js.LICENSE.txt +1 -1
  117. package/i18n/traditional-chinese.js +1 -1
  118. package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
  119. package/i18n/turkish.js +1 -1
  120. package/i18n/turkish.min.js.LICENSE.txt +1 -1
  121. package/package.json +2 -2
  122. package/survey-creator-core.css +2 -2
  123. package/survey-creator-core.fontless.css +1 -1
  124. package/survey-creator-core.fontless.min.css +1 -1
  125. package/survey-creator-core.i18n.js +1 -1
  126. package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
  127. package/survey-creator-core.js +63 -19
  128. package/survey-creator-core.js.map +1 -1
  129. package/survey-creator-core.min.css +2 -2
  130. package/survey-creator-core.min.js +1 -1
  131. package/survey-creator-core.min.js.LICENSE.txt +1 -1
  132. package/themes/default-contrast.js +1 -1
  133. package/themes/default-contrast.min.js.LICENSE.txt +1 -1
  134. package/themes/default-dark.js +1 -1
  135. package/themes/default-dark.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/components/tabs/logic-types.d.ts +2 -0
  141. package/typings/components/tabs/theme-plugin.d.ts +1 -0
  142. package/typings/components/tabs/translation.d.ts +1 -1
  143. package/typings/utils/color-utils.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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 v2.3.1
2
+ * SurveyJS Creator v2.3.3
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
@@ -25,8 +25,8 @@ var enStrings = {
25
25
  deleteQuestion: "Delete Question",
26
26
  convertTo: "Convert to",
27
27
  drag: "Drag element",
28
- license: "To use our library, a <a href='https://surveyjs.io/licensing' target='_blank'>developer license</a> is required. If you have an active license, <a href='https://surveyjs.io/remove-alert-banner' target='_blank'>set up your license key</a> and ensure you're using the latest version.",
29
- license2: "Your maintenance subscription expired on {date}. You can continue using <a href='https://surveyjs.io/stay-updated/release-notes' target='_blank'>versions released up to that date</a>. To access the latest version, please <a href='https://surveyjs.io/manage#license-manager' target='_blank'>renew your subscription</a> and <a href='https://surveyjs.io/remove-alert-banner' target='_blank'>setup a new license key</a>."
28
+ license: "To use the Survey Creator library in your application, a <a href='https://surveyjs.io/licensing' target='_blank'>developer license</a> is required. If you have an active license, please <a href='https://surveyjs.io/remove-alert-banner' target='_blank'>set up your license key</a> and ensure you're using the <a href='https://surveyjs.io/stay-updated/release-notes' target='_blank'>latest version</a>.",
29
+ license2: "Your maintenance subscription expired on {date}. You may continue using all <a href='https://surveyjs.io/stay-updated/release-notes' target='_blank'>versions released up to that date</a>. To remove this banner in the latest version, please <a href='https://surveyjs.io/manage#license-manager' target='_blank'>renew your subscription</a> and <a href='https://surveyjs.io/remove-alert-banner' target='_blank'>set up a new license key</a>."
30
30
  },
31
31
  // Creator tabs
32
32
  tabs: {
@@ -7633,13 +7633,13 @@ class ColorCalculator {
7633
7633
  this.colorSettings = [];
7634
7634
  this.isInitialized = false;
7635
7635
  }
7636
- initializeColorSettings(baseColor, dependentСolorValues) {
7636
+ initializeColorSettings(baseColor, dependentColorValues) {
7637
7637
  const baseColorRgba = getRGBaChannelValues(baseColor);
7638
- dependentСolorValues.forEach((dependentСolor) => {
7639
- const dependentСolorRgba = getRGBaChannelValues(dependentСolor);
7640
- const colorAlpha = dependentСolorRgba[3];
7638
+ dependentColorValues.forEach((dependentColor) => {
7639
+ const dependentColorRgba = getRGBaChannelValues(dependentColor);
7640
+ const colorAlpha = dependentColorRgba[3];
7641
7641
  const baseColorHSB = RGBToHSB(baseColorRgba[0], baseColorRgba[1], baseColorRgba[2]);
7642
- const colorHSB = RGBToHSB(dependentСolorRgba[0], dependentСolorRgba[1], dependentСolorRgba[2]);
7642
+ const colorHSB = RGBToHSB(dependentColorRgba[0], dependentColorRgba[1], dependentColorRgba[2]);
7643
7643
  const colorDelta = baseColorHSB[2] - colorHSB[2];
7644
7644
  this.colorSettings.push({ colorAlpha, colorDelta });
7645
7645
  });
@@ -10334,6 +10334,10 @@ class SurveyLogicType {
10334
10334
  }
10335
10335
  return str;
10336
10336
  }
10337
+ remove(el) {
10338
+ const f = this.logicType.remove;
10339
+ f && f(el);
10340
+ }
10337
10341
  getElementDisplayName(element) {
10338
10342
  if (!element)
10339
10343
  return "";
@@ -10381,6 +10385,12 @@ function hasMatrixColumns(survey) {
10381
10385
  }
10382
10386
  return false;
10383
10387
  }
10388
+ function removeElement(items, element) {
10389
+ const index = items.indexOf(element);
10390
+ if (index > -1) {
10391
+ items.splice(index, 1);
10392
+ }
10393
+ }
10384
10394
  class SurveyLogicTypes {
10385
10395
  }
10386
10396
  SurveyLogicTypes.baseTypes = {
@@ -10532,6 +10542,9 @@ SurveyLogicTypes.types = [
10532
10542
  propertyName: "setValueIf",
10533
10543
  getDisplayText: (element, formatStr, lt) => {
10534
10544
  return getDisplayTextForSetValueIf(element, formatStr, lt);
10545
+ },
10546
+ remove: (element) => {
10547
+ element.setValueExpression = "";
10535
10548
  }
10536
10549
  },
10537
10550
  {
@@ -10650,6 +10663,12 @@ SurveyLogicTypes.types = [
10650
10663
  getCollection: (survey) => {
10651
10664
  return survey.completedHtmlOnCondition;
10652
10665
  },
10666
+ remove: (element) => {
10667
+ const survey = element.getSurvey();
10668
+ if (!!survey) {
10669
+ removeElement(survey.completedHtmlOnCondition, element);
10670
+ }
10671
+ }
10653
10672
  },
10654
10673
  {
10655
10674
  name: "trigger_runExpression_Expression",
@@ -10745,12 +10764,10 @@ class SurveyLogicAction {
10745
10764
  if (!!this.element && !!this.logicType) {
10746
10765
  this.element[this.logicType.propertyName] = expression;
10747
10766
  if (!expression) {
10767
+ this.logicType.remove(this.element);
10748
10768
  if (Serializer.isDescendantOf(this.element.getType(), "surveytrigger")) {
10749
10769
  this.removeElement(this.survey.triggers, this.element);
10750
10770
  }
10751
- if (Serializer.isDescendantOf(this.element.getType(), "htmlconditionitem")) {
10752
- this.removeElement(this.survey.completedHtmlOnCondition, this.element);
10753
- }
10754
10771
  }
10755
10772
  }
10756
10773
  }
@@ -17234,7 +17251,7 @@ class Translation extends Base {
17234
17251
  this.reset();
17235
17252
  }
17236
17253
  createTranslationEditor(locale) {
17237
- const res = new TranslationEditor(this.survey, locale, this.options);
17254
+ const res = new TranslationEditor(this.survey, locale, this.options, this.translationStringVisibilityCallback);
17238
17255
  res.onApply = () => {
17239
17256
  this.reset();
17240
17257
  };
@@ -17358,7 +17375,7 @@ class TranslationForEditor extends Translation {
17358
17375
  }
17359
17376
  }
17360
17377
  class TranslationEditor {
17361
- constructor(survey, locale, options) {
17378
+ constructor(survey, locale, options, translationStringVisibilityCallback) {
17362
17379
  this.fromLocales = [];
17363
17380
  this.survey = survey;
17364
17381
  this.options = options;
@@ -17366,6 +17383,7 @@ class TranslationEditor {
17366
17383
  this.translationValue = new TranslationForEditor(this.survey, this.options, (survey) => {
17367
17384
  this.setupNavigationButtons(survey);
17368
17385
  });
17386
+ this.translationValue.translationStringVisibilityCallback = translationStringVisibilityCallback;
17369
17387
  this.translation.setEditMode(this.locale);
17370
17388
  this.translation.reset();
17371
17389
  this.fillFromLocales();
@@ -24367,6 +24385,7 @@ class TabDesignerPlugin {
24367
24385
  addFooterActions() {
24368
24386
  this.creator.footerToolbar.actions.push(this.designerAction);
24369
24387
  this.creator.footerToolbar.actions.push(this.previewAction);
24388
+ this.creator.footerToolbar.actions.push(this.saveSurveyAction);
24370
24389
  this.creator.footerToolbar.actions.push(this.surveySettingsAction);
24371
24390
  }
24372
24391
  openCreatorThemeSettings() {
@@ -25985,6 +26004,7 @@ class ThemeTabPlugin {
25985
26004
  creator.onPropertyChanged.add(this.creatorPropertyChanged);
25986
26005
  }
25987
26006
  activate() {
26007
+ updateThemeEditorsDefaultFontFamily();
25988
26008
  this.model = new ThemeTabViewModel(this.creator, this.simulatorCssClasses);
25989
26009
  this.model.simulator.device = this.previewDevice;
25990
26010
  this.themeModel.initialize(this.creator.theme, this.creator.survey, this.creator);
@@ -26596,6 +26616,20 @@ class ThemeTabPlugin {
26596
26616
  }
26597
26617
  ThemeTabPlugin.DefaultTheme = Themes["default-light"];
26598
26618
  ThemeTabPlugin.iconName = "icon-theme";
26619
+ function updateThemeEditorsDefaultFontFamily() {
26620
+ const getPropertyUpdater = className => propertyName => {
26621
+ const property = Serializer.getProperty(className, propertyName);
26622
+ if (property) {
26623
+ property.defaultValue.family = settings.themeEditor.defaultFontFamily;
26624
+ }
26625
+ };
26626
+ ["surveyTitle", "headerTitle", "surveyDescription", "headerDescription"].forEach(getPropertyUpdater("header"));
26627
+ ["pageTitle", "pageDescription", "questionTitle", "questionDescription", "editorFont"].forEach(getPropertyUpdater("theme"));
26628
+ const fontFamilyProperty = Serializer.getProperty("theme", "--sjs-font-family");
26629
+ if (fontFamilyProperty) {
26630
+ fontFamilyProperty.defaultValue = settings.themeEditor.defaultFontFamily;
26631
+ }
26632
+ }
26599
26633
 
26600
26634
  class ExpandCollapseManager {
26601
26635
  constructor(creator) {
@@ -30246,6 +30280,11 @@ class SurveyCreatorModel extends Base {
30246
30280
  return this.survey.pages[index];
30247
30281
  }
30248
30282
  deleteObject(obj) {
30283
+ if (!obj || obj.isDisposed)
30284
+ return;
30285
+ const allowedOperations = this.getElementAllowOperations(obj);
30286
+ if (!allowedOperations.allowDelete)
30287
+ return;
30249
30288
  if (!this.checkOnElementDeleting(obj))
30250
30289
  return;
30251
30290
  this.deleteObjectCore(obj);
@@ -32905,8 +32944,13 @@ class QuestionAdornerViewModel extends SurveyElementAdornerBase {
32905
32944
  const actions = this.actionContainer.getVisibleActions();
32906
32945
  let switchToStartLocation = false;
32907
32946
  for (var i = actions.length - 1; i >= 0; i--) {
32908
- if (actions[i].id === "convertTo")
32947
+ if (actions[i].id === "convertTo" || actions[i].id === "convertInputType") {
32948
+ actions[i].css = "svc-dropdown-action--convertTo";
32949
+ if (!switchToStartLocation) {
32950
+ actions[i].css += " svc-dropdown-action--convertTo-last";
32951
+ }
32909
32952
  switchToStartLocation = true;
32953
+ }
32910
32954
  if (!actions[i].innerItem.location)
32911
32955
  actions[i].innerItem.location = switchToStartLocation ? "start" : "end";
32912
32956
  }
@@ -33233,7 +33277,6 @@ class QuestionAdornerViewModel extends SurveyElementAdornerBase {
33233
33277
  createDropdownModel(options) {
33234
33278
  const newAction = createDropdownActionModel({
33235
33279
  id: options.actionData.id,
33236
- css: "svc-dropdown-action--convertTo",
33237
33280
  iconName: options.actionData.iconName,
33238
33281
  iconSize: "auto",
33239
33282
  title: options.actionData.title,
@@ -33316,7 +33359,6 @@ class QuestionAdornerViewModel extends SurveyElementAdornerBase {
33316
33359
  if (!!inputTypeConverter) {
33317
33360
  items.push(inputTypeConverter);
33318
33361
  }
33319
- items[items.length - 1].css += " svc-dropdown-action--convertTo-last";
33320
33362
  if (typeof element["isRequired"] !== "undefined" && !!element.getType
33321
33363
  && SurveyHelper.isPropertyVisible(element, Serializer.findProperty(element.getType(), "isRequired"), this.creator)) {
33322
33364
  items.push(this.createRequiredAction());
@@ -36863,8 +36905,8 @@ class CreatorPreset extends CreatorPresetBase {
36863
36905
  }
36864
36906
 
36865
36907
  let Version;
36866
- Version = `${"2.3.1"}`;
36867
- checkLibraryVersion(`${"2.3.1"}`, "survey-creator-core");
36908
+ Version = `${"2.3.3"}`;
36909
+ checkLibraryVersion(`${"2.3.3"}`, "survey-creator-core");
36868
36910
 
36869
- export { AceJsonEditorModel, ColorCalculator, CreatorAction, CreatorBase, CreatorEvent, CreatorPreset, CreatorPresetBase, CreatorPresetPropertyGrid, CreatorPresetPropertyGridDefinition, CreatorPresetTabs, CreatorPresetToolbox, CreatorPresetToolboxConfigurator, CreatorPresetToolboxDefinition, CreatorResponsivityManager, CreatorThemeModel, CreatorThemes, DEFAULT_MONITOR_DPI, DefaultFonts, DragDropSurveyElements, EditorLocalization, EmptySurveyCreatorOptions, FooterToolbarActionContainer, HEXToRGB, HSBToRGB, HueColorCalculator, ImageItemValueWrapperViewModel, ItemValueWrapperViewModel, JsonDuplicateNameError, JsonEditorBaseModel, LogicEvent, LogoImageViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, MenuButton, ObjType, ObjectSelector, ObjectSelectorItem, ObjectSelectorModel, PageAdorner, PageNavigatorViewModel, PagesController, PredefinedBackgroundColors, PredefinedColors, PredefinedCreatorThemes, PredefinedThemes, PropertyEditorSetupValue, PropertyGridCellsEditor, PropertyGridEditor, PropertyGridEditorBackgroundCornerRadius, PropertyGridEditorBindings, PropertyGridEditorBoolean, PropertyGridEditorCollection, PropertyGridEditorColor, PropertyGridEditorColorWithAlpha, PropertyGridEditorCondition, PropertyGridEditorDateTime, PropertyGridEditorDropdown, PropertyGridEditorExpression, PropertyGridEditorFontSettings, PropertyGridEditorHtml, PropertyGridEditorImageSize, PropertyGridEditorMatrix, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixLayoutColumns, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixTriggers, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixValidators, PropertyGridEditorNumber, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionCarryForward, PropertyGridEditorQuestionHeader, PropertyGridEditorQuestionMaskSettings, PropertyGridEditorQuestionRestfull, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorSet, PropertyGridEditorShadowEffects, PropertyGridEditorSpinEdit, PropertyGridEditorString, PropertyGridEditorStringArray, PropertyGridEditorStringBase, PropertyGridEditorSwitchToggle, PropertyGridEditorText, PropertyGridEditorUndefinedBoolean, PropertyGridLinkEditor, PropertyGridModel, PropertyGridPanelValueEditor, PropertyGridRowValueEditor, PropertyGridTitleActionsCreator, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, PropertyGridValueEditor, PropertyGridValueEditorBase, PropertyGridViewModel, PropertyJSONGenerator, QuestionAdornerViewModel, QuestionColorModel, QuestionCommentWithResetModel, QuestionConvertMode, QuestionConverter, QuestionDropdownAdornerViewModel, QuestionEmbeddedSurveyModel, QuestionFileEditorModel, QuestionImageAdornerViewModel, QuestionLinkValueModel, QuestionRatingAdornerViewModel, QuestionSpinEditorModel, QuestionTextWithResetModel, QuestionToolbox, QuestionToolboxCategory, QuestionToolboxItem, RGBToHSB, ResetValueAdorner, ResizeManager, RowViewModel, SearchManager, SearchManagerPropertyGrid, SearchManagerToolbox, SidebarHeaderModel, SidebarModel, SidebarPageModel, StringEditorConnector, StringEditorViewModelBase, StringItemsNavigatorBase, SurveyCreatorModel, SurveyHelper, SurveyJSON5, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, SurveyQuestionEditorPropertyDefinition, SurveyQuestionEditorTabDefinition, SurveyQuestionProperties, SurveyResultsItemModel, SurveyResultsModel, SurveySimulatorModel, SurveyTextWorker, SurveyTextWorkerError, SurveyTextWorkerJsonError, SurveyTextWorkerParserError, Switcher, TabControlModel, TabDesignerPlugin, TabDesignerViewModel, TabJsonEditorAcePlugin, TabJsonEditorBasePlugin, TabJsonEditorTextareaPlugin, TabLogicPlugin, TabTestPlugin, TabTranslationPlugin, TabbedMenuContainer, TabbedMenuItem, TestSurveyTabViewModel, TextareaJsonEditorModel, ThemeModelEditorDefinition, ThemeTabPlugin, ThemeTabViewModel, Themes, ToolbarActionContainer, ToolboxToolViewModel, Transaction, Translation, TranslationEditor, TranslationForEditor, TranslationGroup, TranslationItem, TranslationItemBase, TranslationItemString, UndoRedoAction, UndoRedoArrayAction, UndoRedoManager, UndoRedoPlugin, Version, assign, assignDefaultClasses, backgroundCornerRadiusFromCssVariable, backgroundCornerRadiusToCssVariable, calculateDragOverLocation, calculateIsEdge, calculateIsSide, capitalize, clearNewLines, colorsAreEqual, convertRgbaToString, copyCssClasses, copyObject, createBoxShadow, createBoxShadowReset, createColor, createExportCSVAction, createImportCSVAction, creatorThemeModelEditorDefinition, creatorThemeModelPropertyGridDefinition, defaultCreatorThemesOrder, defaultPropertyGridDefinition, defaultStrings, defaultThemesOrder, editableStringRendererName, editorLocalization, enStrings, findParentNode, focusFirstControl, fontsettingsFromCssVariable, fontsettingsToCssVariable, getAcceptedTypesByContentMode, getElementWrapperComponentData, getElementWrapperComponentName, getFirstNonTextElement, getItemValueWrapperComponentData, getItemValueWrapperComponentName, getLocString, getLocaleStrings, getNextItemText, getNextItemValue, getNextValue, getNodesFromKoComponentInfo, getOS, getPredefinedBackgoundColorsChoices, getPredefinedColorsItemValues, getQuestionContentWrapperComponentName, getQuestionFromObj, getRGBaChannelValues, getRowWrapperComponentData, getRowWrapperComponentName, iconsV1, iconsV2, ignoreUndoRedo, imageMimeTypes, ingectAlpha, initLogicOperator, initialSettingsAllowShowEmptyTitleInDesignMode, initializeDesignTimeSurveyModel, isStringEditable, isTextInput, listComponentCss, editorLocalization as localization, logicCss, notShortCircuitAnd, parseBoxShadow, parseColor, parseRgbaFromString, propertyGridCss, registerAdorner, registerCreatorTheme, registerSurveyTheme, removeAdorners, roundTo2Decimals, saveToFileHandler, scrollElementIntoView, select, setSurveyJSONForPropertyGrid, settings, setupLocale, simulatorDevices, svgBundle, themeModelPropertyGridDefinition, toggleHovered, translationCss, trimBoxShadowValue, trimEmptyFields, undoRedoTransaction, updateBackgroundCornerRadiusJSON, updateFontSettingsJSON, updateShadowEffectsJSON, updatecoloralphaJSON, wrapTextByCurlyBraces };
36911
+ export { AceJsonEditorModel, ColorCalculator, CreatorAction, CreatorBase, CreatorEvent, CreatorPreset, CreatorPresetBase, CreatorPresetPropertyGrid, CreatorPresetPropertyGridDefinition, CreatorPresetTabs, CreatorPresetToolbox, CreatorPresetToolboxConfigurator, CreatorPresetToolboxDefinition, CreatorResponsivityManager, CreatorThemeModel, CreatorThemes, DEFAULT_MONITOR_DPI, DefaultFonts, DragDropSurveyElements, EditorLocalization, EmptySurveyCreatorOptions, FooterToolbarActionContainer, HEXToRGB, HSBToRGB, HueColorCalculator, ImageItemValueWrapperViewModel, ItemValueWrapperViewModel, JsonDuplicateNameError, JsonEditorBaseModel, LogicEvent, LogoImageViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, MenuButton, ObjType, ObjectSelector, ObjectSelectorItem, ObjectSelectorModel, PageAdorner, PageNavigatorViewModel, PagesController, PredefinedBackgroundColors, PredefinedColors, PredefinedCreatorThemes, PredefinedThemes, PropertyEditorSetupValue, PropertyGridCellsEditor, PropertyGridEditor, PropertyGridEditorBackgroundCornerRadius, PropertyGridEditorBindings, PropertyGridEditorBoolean, PropertyGridEditorCollection, PropertyGridEditorColor, PropertyGridEditorColorWithAlpha, PropertyGridEditorCondition, PropertyGridEditorDateTime, PropertyGridEditorDropdown, PropertyGridEditorExpression, PropertyGridEditorFontSettings, PropertyGridEditorHtml, PropertyGridEditorImageSize, PropertyGridEditorMatrix, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixLayoutColumns, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixTriggers, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixValidators, PropertyGridEditorNumber, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionCarryForward, PropertyGridEditorQuestionHeader, PropertyGridEditorQuestionMaskSettings, PropertyGridEditorQuestionRestfull, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorSet, PropertyGridEditorShadowEffects, PropertyGridEditorSpinEdit, PropertyGridEditorString, PropertyGridEditorStringArray, PropertyGridEditorStringBase, PropertyGridEditorSwitchToggle, PropertyGridEditorText, PropertyGridEditorUndefinedBoolean, PropertyGridLinkEditor, PropertyGridModel, PropertyGridPanelValueEditor, PropertyGridRowValueEditor, PropertyGridTitleActionsCreator, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, PropertyGridValueEditor, PropertyGridValueEditorBase, PropertyGridViewModel, PropertyJSONGenerator, QuestionAdornerViewModel, QuestionColorModel, QuestionCommentWithResetModel, QuestionConvertMode, QuestionConverter, QuestionDropdownAdornerViewModel, QuestionEmbeddedSurveyModel, QuestionFileEditorModel, QuestionImageAdornerViewModel, QuestionLinkValueModel, QuestionRatingAdornerViewModel, QuestionSpinEditorModel, QuestionTextWithResetModel, QuestionToolbox, QuestionToolboxCategory, QuestionToolboxItem, RGBToHSB, ResetValueAdorner, ResizeManager, RowViewModel, SearchManager, SearchManagerPropertyGrid, SearchManagerToolbox, SidebarHeaderModel, SidebarModel, SidebarPageModel, StringEditorConnector, StringEditorViewModelBase, StringItemsNavigatorBase, SurveyCreatorModel, SurveyHelper, SurveyJSON5, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, SurveyQuestionEditorPropertyDefinition, SurveyQuestionEditorTabDefinition, SurveyQuestionProperties, SurveyResultsItemModel, SurveyResultsModel, SurveySimulatorModel, SurveyTextWorker, SurveyTextWorkerError, SurveyTextWorkerJsonError, SurveyTextWorkerParserError, Switcher, TabControlModel, TabDesignerPlugin, TabDesignerViewModel, TabJsonEditorAcePlugin, TabJsonEditorBasePlugin, TabJsonEditorTextareaPlugin, TabLogicPlugin, TabTestPlugin, TabTranslationPlugin, TabbedMenuContainer, TabbedMenuItem, TestSurveyTabViewModel, TextareaJsonEditorModel, ThemeModelEditorDefinition, ThemeTabPlugin, ThemeTabViewModel, Themes, ToolbarActionContainer, ToolboxToolViewModel, Transaction, Translation, TranslationEditor, TranslationForEditor, TranslationGroup, TranslationItem, TranslationItemBase, TranslationItemString, UndoRedoAction, UndoRedoArrayAction, UndoRedoManager, UndoRedoPlugin, Version, assign, assignDefaultClasses, backgroundCornerRadiusFromCssVariable, backgroundCornerRadiusToCssVariable, calculateDragOverLocation, calculateIsEdge, calculateIsSide, capitalize, clearNewLines, colorsAreEqual, convertRgbaToString, copyCssClasses, copyObject, createBoxShadow, createBoxShadowReset, createColor, createExportCSVAction, createImportCSVAction, creatorThemeModelEditorDefinition, creatorThemeModelPropertyGridDefinition, defaultCreatorThemesOrder, defaultPropertyGridDefinition, defaultStrings, defaultThemesOrder, editableStringRendererName, editorLocalization, enStrings, findParentNode, focusFirstControl, fontsettingsFromCssVariable, fontsettingsToCssVariable, getAcceptedTypesByContentMode, getElementWrapperComponentData, getElementWrapperComponentName, getFirstNonTextElement, getItemValueWrapperComponentData, getItemValueWrapperComponentName, getLocString, getLocaleStrings, getNextItemText, getNextItemValue, getNextValue, getNodesFromKoComponentInfo, getOS, getPredefinedBackgoundColorsChoices, getPredefinedColorsItemValues, getQuestionContentWrapperComponentName, getQuestionFromObj, getRGBaChannelValues, getRowWrapperComponentData, getRowWrapperComponentName, iconsV1, iconsV2, ignoreUndoRedo, imageMimeTypes, ingectAlpha, initLogicOperator, initialSettingsAllowShowEmptyTitleInDesignMode, initializeDesignTimeSurveyModel, isStringEditable, isTextInput, listComponentCss, editorLocalization as localization, logicCss, notShortCircuitAnd, parseBoxShadow, parseColor, parseRgbaFromString, propertyGridCss, registerAdorner, registerCreatorTheme, registerSurveyTheme, removeAdorners, roundTo2Decimals, saveToFileHandler, scrollElementIntoView, select, setSurveyJSONForPropertyGrid, settings, setupLocale, simulatorDevices, svgBundle, themeModelPropertyGridDefinition, toggleHovered, translationCss, trimBoxShadowValue, trimEmptyFields, undoRedoTransaction, updateBackgroundCornerRadiusJSON, updateFontSettingsJSON, updateShadowEffectsJSON, updateThemeEditorsDefaultFontFamily, updatecoloralphaJSON, wrapTextByCurlyBraces };
36870
36912
  //# sourceMappingURL=survey-creator-core.mjs.map