survey-creator-core 1.9.96 → 1.9.98

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 (31) hide show
  1. package/fonts.fontless.css +1 -1
  2. package/fonts.fontless.min.css +1 -1
  3. package/package.json +2 -2
  4. package/survey-creator-core.css +46 -22
  5. package/survey-creator-core.fontless.css +45 -21
  6. package/survey-creator-core.fontless.css.map +1 -1
  7. package/survey-creator-core.fontless.min.css +9 -9
  8. package/survey-creator-core.i18n.js +1 -1
  9. package/survey-creator-core.i18n.min.js +1 -1
  10. package/survey-creator-core.js +614 -289
  11. package/survey-creator-core.js.map +1 -1
  12. package/survey-creator-core.min.css +10 -10
  13. package/survey-creator-core.min.js +2 -2
  14. package/typings/components/page.d.ts +2 -0
  15. package/typings/components/string-editor.d.ts +1 -1
  16. package/typings/components/tabs/logic-theme.d.ts +3 -0
  17. package/typings/components/tabs/theme-custom-questions/element-settings.d.ts +7 -1
  18. package/typings/components/tabs/theme-custom-questions/font-settings.d.ts +7 -0
  19. package/typings/components/tabs/theme.d.ts +6 -1
  20. package/typings/components/tabs/translation-theme.d.ts +0 -1
  21. package/typings/creator-base.d.ts +15 -3
  22. package/typings/creator-settings.d.ts +1 -0
  23. package/typings/custom-questions/question-spin-editor.d.ts +1 -0
  24. package/typings/editorLocalization.d.ts +5 -0
  25. package/typings/localization/english.d.ts +5 -0
  26. package/typings/plugins/undo-redo/undo-redo-controller.d.ts +1 -0
  27. package/typings/plugins/undo-redo/undo-redo-manager.d.ts +7 -0
  28. package/typings/property-grid/index.d.ts +3 -0
  29. package/typings/property-grid/matrices.d.ts +1 -0
  30. package/typings/property-grid-theme/property-grid.d.ts +4 -1
  31. package/typings/textWorker.d.ts +33 -6
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.96
2
+ * SurveyJS Creator v1.9.98
3
3
  * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -109,7 +109,7 @@ return /******/ (function(modules) { // webpackBootstrap
109
109
  /*! exports provided: default, contrast, plain, simple, blank, double, bulk, pseudo-3d, playful, ultra, default-dark, contrast-dark, plain-dark, simple-dark, blank-dark, double-dark, bulk-dark, pseudo-3d-dark, playful-dark, ultra-dark, default-lw, contrast-lw, plain-lw, simple-lw, double-lw, bulk-lw, pseudo-3d-lw, playful-lw, ultra-lw, default-dark-lw, contrast-dark-lw, plain-dark-lw, simple-dark-lw, double-dark-lw, bulk-dark-lw, pseudo-3d-dark-lw, ultra-dark-lw, dark-designer */
110
110
  /***/ (function(module) {
111
111
 
112
- module.exports = JSON.parse("{\"default\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(248, 248, 248, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(243, 243, 243, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(249, 249, 249, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(243, 243, 243, 1)\",\"--sjs-general-forecolor\":\"rgba(0, 0, 0, 0.91)\",\"--sjs-general-forecolor-light\":\"rgba(0, 0, 0, 0.45)\",\"--sjs-general-dim-forecolor\":\"rgba(0, 0, 0, 0.91)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 0.45)\",\"--sjs-primary-backcolor\":\"rgba(25, 179, 148, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(25, 179, 148, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(20, 164, 139, 1)\",\"--sjs-primary-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-secondary-backcolor\":\"rgba(255, 152, 20, 1)\",\"--sjs-secondary-backcolor-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-secondary-backcolor-semi-light\":\"rgba(255, 152, 20, 0.25)\",\"--sjs-secondary-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-secondary-forecolor-light\":\"rgba(255, 255, 255, 0.25)\",\"--sjs-shadow-small\":\"0px 1px 2px 0px rgba(0, 0, 0, 0.15)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-inner\":\"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.09)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.16)\",\"--sjs-border-inside\":\"rgba(0, 0, 0, 0.16)\",\"--sjs-special-red\":\"rgba(229, 10, 62, 1)\",\"--sjs-special-red-light\":\"rgba(229, 10, 62, 0.1)\",\"--sjs-special-red-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-special-green\":\"rgba(25, 179, 148, 1)\",\"--sjs-special-green-light\":\"rgba(25, 179, 148, 0.1)\",\"--sjs-special-green-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-special-blue\":\"rgba(67, 127, 217, 1)\",\"--sjs-special-blue-light\":\"rgba(67, 127, 217, 0.1)\",\"--sjs-special-blue-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-special-yellow\":\"rgba(255, 152, 20, 1)\",\"--sjs-special-yellow-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-special-yellow-forecolor\":\"rgba(255, 255, 255, 1)\"},\"contrast\":{\"--sjs-general-backcolor-dark\":\"rgba(228, 228, 228, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(224, 224, 224, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(238, 238, 238, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(220, 220, 220, 1)\",\"--sjs-general-forecolor-light\":\"rgba(0, 0, 0, 0.6)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 0.6)\",\"--sjs-primary-backcolor\":\"rgba(103, 58, 176, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(103, 58, 176, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(69, 24, 142, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.2)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.25)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.25)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.25)\"},\"plain\":{\"--sjs-general-backcolor-dark\":\"rgba(241, 246, 255, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(231, 240, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(238, 245, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(223, 233, 250, 1)\",\"--sjs-general-forecolor-light\":\"rgba(133, 154, 186, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(133, 154, 186, 1)\",\"--sjs-primary-backcolor\":\"rgba(35, 101, 200, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(35, 101, 200, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(26, 86, 175, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 0px rgba(0, 0, 0, 0.15)\",\"--sjs-shadow-inner\":\"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)\",\"--sjs-border-light\":\"rgba(220, 229, 241, 1)\",\"--sjs-border-default\":\"rgba(179, 200, 229, 1)\"},\"simple\":{\"--sjs-general-backcolor\":\"rgba(246, 246, 246, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(235, 235, 235, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(235, 235, 235, 1)\",\"--sjs-primary-backcolor\":\"rgba(85, 181, 52, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(85, 181, 52, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(64, 159, 31, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.15)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.1),0px 0px 0px 1px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.12)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.12)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.12)\"},\"blank\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-primary-backcolor\":\"rgba(37, 137, 229, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(37, 137, 229, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(21, 119, 209, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.15)\",\"--sjs-shadow-medium\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.05)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.15)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.15)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.15)\"},\"double\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(239, 239, 239, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(245, 245, 245, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(237, 237, 237, 1)\",\"--sjs-primary-backcolor\":\"rgba(76, 100, 137, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(76, 100, 137, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(62, 83, 115, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(0, 0, 0, 0.07)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.04),0px 0px 0px 2px rgba(0, 0, 0, 0.08)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.08)\",\"--sjs-shadow-inner\":\"0px 0px 0px 2px rgba(0, 0, 0, 0.1)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.1)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.1)\"},\"bulk\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(244, 244, 244, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(216, 207, 236, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(241, 237, 248, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(225, 220, 233, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 0.5)\",\"--sjs-primary-backcolor\":\"rgba(122, 100, 168, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(122, 100, 168, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(105, 84, 152, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 2px 4px 0px rgba(0, 0, 0, 0.1),0px 8px 16px 0px rgba(0, 0, 0, 0.1),0px 0px 0px 1px rgba(0, 0, 0, 0.05)\",\"--sjs-shadow-inner\":\"inset 0px 1px 4px 0px rgba(0, 0, 0, 0.1),inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05)\"},\"pseudo-3d\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(243, 243, 243, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(46, 172, 180, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(245, 245, 245, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(234, 234, 234, 1)\",\"--sjs-general-forecolor-light\":\"rgba(0, 0, 0, 0.43)\",\"--sjs-general-dim-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(255, 255, 255, 0.8)\",\"--sjs-primary-backcolor\":\"rgba(46, 172, 180, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(46, 172, 180, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(23, 156, 165, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 2px 0px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-shadow-inner\":\"inset 0px 2px 0px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.09)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.16)\"},\"playful\":{\"--sjs-general-backcolor\":\"rgba(248, 248, 248, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(242, 242, 242, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(242, 242, 242, 1)\",\"--sjs-primary-backcolor\":\"rgba(217, 74, 100, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(217, 74, 100, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(189, 61, 84, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(228, 228, 228, 1),0px 2px 0px 2px rgba(228, 228, 228, 1)\",\"--sjs-shadow-medium\":\"0px 8px 0px 2px rgba(228, 228, 228, 1),0px 0px 0px 2px rgba(228, 228, 228, 1)\",\"--sjs-shadow-large\":\"0px 0px 0px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-inner\":\"0px -2px 0px 2px rgba(228, 228, 228, 1),0px 0px 0px 2px rgba(228, 228, 228, 1)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.08)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.08)\"},\"ultra\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-forecolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-forecolor-light\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 1)\",\"--sjs-primary-backcolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 216, 77, 1)\",\"--sjs-primary-backcolor-dark\":\"rgba(83, 83, 83, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-shadow-medium\":\"0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-shadow-large\":\"0px 6px 0px 0px rgba(0, 0, 0, 1)\",\"--sjs-shadow-inner\":\"0px -2px 0px 2px rgba(0, 0, 0, 1),0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.2)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 1)\"},\"default-dark\":{\"--sjs-general-backcolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(52, 52, 52, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(36, 36, 36, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(43, 43, 43, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(46, 46, 46, 1)\",\"--sjs-general-forecolor\":\"rgba(255, 255, 255, 0.78)\",\"--sjs-general-forecolor-light\":\"rgba(255, 255, 255, 0.42)\",\"--sjs-general-dim-forecolor\":\"rgba(255, 255, 255, 0.79)\",\"--sjs-general-dim-forecolor-light\":\"rgba(255, 255, 255, 0.45)\",\"--sjs-primary-backcolor\":\"rgba(255, 152, 20, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 0.07)\",\"--sjs-primary-backcolor-dark\":\"rgba(255, 170, 24, 1)\",\"--sjs-primary-forecolor\":\"rgba(32, 32, 32, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-secondary-backcolor\":\"rgba(255, 152, 20, 1)\",\"--sjs-secondary-backcolor-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-secondary-backcolor-semi-light\":\"rgba(255, 152, 20, 0.25)\",\"--sjs-secondary-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-secondary-forecolor-light\":\"rgba(48, 48, 48, 0.25)\",\"--sjs-shadow-small\":\"0px 1px 2px 0px rgba(0, 0, 0, 0.35)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-shadow-inner\":\"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.08)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.12)\",\"--sjs-border-inside\":\"rgba(255, 255, 255, 0.08)\",\"--sjs-special-red\":\"rgba(254, 76, 108, 1)\",\"--sjs-special-red-light\":\"rgba(254, 76, 108, 0.1)\",\"--sjs-special-red-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-special-green\":\"rgba(36, 197, 164, 1)\",\"--sjs-special-green-light\":\"rgba(36, 197, 164, 0.1)\",\"--sjs-special-green-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-special-blue\":\"rgba(91, 151, 242, 1)\",\"--sjs-special-blue-light\":\"rgba(91, 151, 242, 0.1)\",\"--sjs-special-blue-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-special-yellow\":\"rgba(255, 152, 20, 1)\",\"--sjs-special-yellow-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-special-yellow-forecolor\":\"rgba(48, 48, 48, 1)\"},\"contrast-dark\":{\"--sjs-general-backcolor-dark\":\"rgba(58, 58, 58, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(27, 27, 27, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(33, 33, 33, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(47, 47, 47, 1)\",\"--sjs-general-forecolor\":\"rgba(255, 255, 255, 0.78)\",\"--sjs-general-forecolor-light\":\"rgba(255, 255, 255, 0.5)\",\"--sjs-general-dim-forecolor\":\"rgba(255, 255, 255, 0.8)\",\"--sjs-general-dim-forecolor-light\":\"rgba(255, 255, 255, 0.55)\",\"--sjs-primary-backcolor\":\"rgba(16, 226, 255, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(0, 0, 0, 0.35)\",\"--sjs-primary-backcolor-dark\":\"rgba(129, 240, 255, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.28)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 1px rgba(255, 255, 255, 0.25)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.22)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.22)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.22)\"},\"plain-dark\":{\"--sjs-general-backcolor\":\"rgba(43, 48, 63, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(50, 55, 72, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(33, 37, 51, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(36, 41, 55, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(40, 46, 61, 1)\",\"--sjs-general-forecolor-light\":\"rgba(114, 120, 137, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(114, 120, 137, 1)\",\"--sjs-primary-backcolor\":\"rgba(114, 187, 255, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(114, 187, 255, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(151, 205, 255, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 0px rgba(0, 0, 0, 0.35)\",\"--sjs-shadow-inner\":\"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-border-light\":\"rgba(55, 62, 79, 1)\",\"--sjs-border-default\":\"rgba(65, 72, 90, 1)\"},\"simple-dark\":{\"--sjs-general-backcolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(56, 56, 56, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(36, 36, 36, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(43, 43, 43, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(52, 52, 52, 1)\",\"--sjs-primary-backcolor\":\"rgba(92, 214, 49, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 0.07)\",\"--sjs-primary-backcolor-dark\":\"rgba(130, 237, 92, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.09)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 1px rgba(255, 255, 255, 0.12)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.07)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.07)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.07)\"},\"blank-dark\":{\"--sjs-general-backcolor\":\"rgba(36, 36, 36, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(47, 47, 47, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(36, 36, 36, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(36, 36, 36, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(47, 47, 47, 1)\",\"--sjs-primary-backcolor\":\"rgba(85, 171, 250, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 0.12)\",\"--sjs-primary-backcolor-dark\":\"rgba(126, 193, 255, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.12)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 1px rgba(255, 255, 255, 0.12)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.12)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.12)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.12)\"},\"double-dark\":{\"--sjs-general-backcolor\":\"rgba(52, 52, 52, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(58, 58, 58, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(47, 47, 47, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(47, 47, 47, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(53, 53, 53, 1)\",\"--sjs-primary-backcolor\":\"rgba(120, 156, 210, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(146, 181, 235, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(255, 255, 255, 0.12)\",\"--sjs-shadow-medium\":\"0px 0px 0px 2px rgba(255, 255, 255, 0.1)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-inner\":\"0px 0px 0px 2px rgba(255, 255, 255, 0.1)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.1)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.1)\"},\"bulk-dark\":{\"--sjs-general-backcolor\":\"rgba(39, 40, 50, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(46, 47, 58, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(30, 31, 40, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(32, 33, 43, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(37, 38, 48, 1)\",\"--sjs-general-forecolor\":\"rgba(213, 215, 238, 1)\",\"--sjs-general-forecolor-light\":\"rgba(117, 120, 140, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(213, 215, 238, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(117, 119, 141, 1)\",\"--sjs-primary-backcolor\":\"rgba(164, 127, 243, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(164, 127, 243, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(192, 165, 251, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 2px 4px 0px rgba(0, 0, 0, 0.2),0px 8px 16px 0px rgba(0, 0, 0, 0.15),0px 0px 0px 1px rgba(255, 255, 255, 0.1)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.2),inset 0px 0px 0px 1px rgba(255, 255, 255, 0.05)\",\"--sjs-shadow-inner\":\"inset 0px 1px 4px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 1px rgba(255, 255, 255, 0.03)\",\"--sjs-border-light\":\"rgba(54, 56, 69, 1)\",\"--sjs-border-default\":\"rgba(67, 69, 85, 1)\"},\"pseudo-3d-dark\":{\"--sjs-general-backcolor\":\"rgba(53, 55, 63, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(60, 63, 74, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(38, 40, 47, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(46, 48, 55, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(51, 53, 61, 1)\",\"--sjs-general-forecolor-light\":\"rgba(125, 129, 143, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(125, 130, 148, 1)\",\"--sjs-primary-backcolor\":\"rgba(58, 202, 211, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(67, 70, 80, 1)\",\"--sjs-primary-backcolor-dark\":\"rgba(92, 224, 233, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 2px 0px 0px rgba(33, 35, 43, 1)\",\"--sjs-shadow-inner\":\"0px -2px 0px 0px rgba(33, 35, 43, 1)\",\"--sjs-border-light\":\"rgba(65, 69, 83, 1)\",\"--sjs-border-default\":\"rgba(97, 101, 118, 1)\"},\"playful-dark\":{\"--sjs-general-backcolor\":\"rgba(38, 38, 38, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(28, 28, 28, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(58, 58, 58, 1)\",\"--sjs-primary-backcolor\":\"rgba(243, 87, 134, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 0.05)\",\"--sjs-primary-backcolor-dark\":\"rgba(250, 118, 157, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(64, 64, 64, 1),0px 2px 0px 2px rgba(64, 64, 64, 1)\",\"--sjs-shadow-medium\":\"0px 8px 0px 2px rgba(64, 64, 64, 1),0px 0px 0px 2px rgba(64, 64, 64, 1)\",\"--sjs-shadow-large\":\"0px 0px 0px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-inner\":\"0px 2px 0px 2px rgba(64, 64, 64, 1),0px 0px 0px 2px rgba(64, 64, 64, 1)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.12)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.12)\"},\"ultra-dark\":{\"--sjs-general-backcolor\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-forecolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-forecolor-light\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-primary-backcolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-primary-backcolor-dark\":\"rgba(53, 53, 53, 1)\",\"--sjs-primary-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-shadow-medium\":\"0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-shadow-large\":\"0px 6px 0px 0px rgba(0, 0, 0, 1)\",\"--sjs-shadow-inner\":\"0px -2px 0px 2px rgba(0, 0, 0, 1),0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-border-light\":\"rgba(232, 192, 51, 1)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 1)\"},\"default-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\"},\"contrast-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(238, 238, 238, 1)\"},\"plain-lw\":{\"--sjs-general-backcolor\":\"rgba(231, 240, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(220, 232, 252, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(231, 240, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(220, 232, 252, 1)\"},\"simple-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(246, 246, 246, 1)\"},\"double-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(245, 245, 245, 1)\"},\"bulk-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\"},\"pseudo-3d-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(0, 0, 0, 0.91)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 0.45)\"},\"playful-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(248, 248, 248, 1)\"},\"ultra-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\"},\"default-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\"},\"contrast-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(33, 33, 33, 1)\"},\"plain-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(43, 48, 63, 1)\"},\"simple-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\"},\"double-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(52, 52, 52, 1)\"},\"bulk-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(39, 40, 50, 1)\"},\"pseudo-3d-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(53, 55, 63, 1)\"},\"ultra-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 1)\"},\"dark-designer\":{\"--sjs-primary-backcolor\":\"rgba(36, 197, 164, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(36, 197, 164, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(44, 206, 173, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\"}}");
112
+ module.exports = JSON.parse("{\"default\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(248, 248, 248, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(243, 243, 243, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(249, 249, 249, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(243, 243, 243, 1)\",\"--sjs-general-forecolor\":\"rgba(0, 0, 0, 0.91)\",\"--sjs-general-forecolor-light\":\"rgba(0, 0, 0, 0.45)\",\"--sjs-general-dim-forecolor\":\"rgba(0, 0, 0, 0.91)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 0.45)\",\"--sjs-primary-backcolor\":\"rgba(25, 179, 148, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(25, 179, 148, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(20, 164, 139, 1)\",\"--sjs-primary-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-primary-forecolor-light\":\"rgba(255, 255, 255, 0.25)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-secondary-backcolor\":\"rgba(255, 152, 20, 1)\",\"--sjs-secondary-backcolor-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-secondary-backcolor-semi-light\":\"rgba(255, 152, 20, 0.25)\",\"--sjs-secondary-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-secondary-forecolor-light\":\"rgba(255, 255, 255, 0.25)\",\"--sjs-shadow-small\":\"0px 1px 2px 0px rgba(0, 0, 0, 0.15)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-inner\":\"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.09)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.16)\",\"--sjs-border-inside\":\"rgba(0, 0, 0, 0.16)\",\"--sjs-special-red\":\"rgba(229, 10, 62, 1)\",\"--sjs-special-red-light\":\"rgba(229, 10, 62, 0.1)\",\"--sjs-special-red-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-special-green\":\"rgba(25, 179, 148, 1)\",\"--sjs-special-green-light\":\"rgba(25, 179, 148, 0.1)\",\"--sjs-special-green-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-special-blue\":\"rgba(67, 127, 217, 1)\",\"--sjs-special-blue-light\":\"rgba(67, 127, 217, 0.1)\",\"--sjs-special-blue-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-special-yellow\":\"rgba(255, 152, 20, 1)\",\"--sjs-special-yellow-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-special-yellow-forecolor\":\"rgba(255, 255, 255, 1)\"},\"contrast\":{\"--sjs-general-backcolor-dark\":\"rgba(228, 228, 228, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(224, 224, 224, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(238, 238, 238, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(220, 220, 220, 1)\",\"--sjs-general-forecolor-light\":\"rgba(0, 0, 0, 0.6)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 0.6)\",\"--sjs-primary-backcolor\":\"rgba(103, 58, 176, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(103, 58, 176, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(69, 24, 142, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.2)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.25)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.25)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.25)\"},\"plain\":{\"--sjs-general-backcolor-dark\":\"rgba(241, 246, 255, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(231, 240, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(238, 245, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(223, 233, 250, 1)\",\"--sjs-general-forecolor-light\":\"rgba(133, 154, 186, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(133, 154, 186, 1)\",\"--sjs-primary-backcolor\":\"rgba(35, 101, 200, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(35, 101, 200, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(26, 86, 175, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 0px rgba(0, 0, 0, 0.15)\",\"--sjs-shadow-inner\":\"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)\",\"--sjs-border-light\":\"rgba(220, 229, 241, 1)\",\"--sjs-border-default\":\"rgba(179, 200, 229, 1)\"},\"simple\":{\"--sjs-general-backcolor\":\"rgba(246, 246, 246, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(235, 235, 235, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(235, 235, 235, 1)\",\"--sjs-primary-backcolor\":\"rgba(85, 181, 52, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(85, 181, 52, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(64, 159, 31, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.15)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.1),0px 0px 0px 1px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.12)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.12)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.12)\"},\"blank\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-primary-backcolor\":\"rgba(37, 137, 229, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(37, 137, 229, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(21, 119, 209, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.15)\",\"--sjs-shadow-medium\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.05)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(0, 0, 0, 0.15)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.15)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.15)\"},\"double\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(239, 239, 239, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(245, 245, 245, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(237, 237, 237, 1)\",\"--sjs-primary-backcolor\":\"rgba(76, 100, 137, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(76, 100, 137, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(62, 83, 115, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(0, 0, 0, 0.07)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.04),0px 0px 0px 2px rgba(0, 0, 0, 0.08)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.08)\",\"--sjs-shadow-inner\":\"0px 0px 0px 2px rgba(0, 0, 0, 0.1)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.1)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.1)\"},\"bulk\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(244, 244, 244, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(216, 207, 236, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(241, 237, 248, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(225, 220, 233, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 0.5)\",\"--sjs-primary-backcolor\":\"rgba(122, 100, 168, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(122, 100, 168, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(105, 84, 152, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 2px 4px 0px rgba(0, 0, 0, 0.1),0px 8px 16px 0px rgba(0, 0, 0, 0.1),0px 0px 0px 1px rgba(0, 0, 0, 0.05)\",\"--sjs-shadow-inner\":\"inset 0px 1px 4px 0px rgba(0, 0, 0, 0.1),inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05)\"},\"pseudo-3d\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(243, 243, 243, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(46, 172, 180, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(245, 245, 245, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(234, 234, 234, 1)\",\"--sjs-general-forecolor-light\":\"rgba(0, 0, 0, 0.43)\",\"--sjs-general-dim-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(255, 255, 255, 0.8)\",\"--sjs-primary-backcolor\":\"rgba(46, 172, 180, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(46, 172, 180, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(23, 156, 165, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 2px 0px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-shadow-inner\":\"inset 0px 2px 0px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.09)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.16)\"},\"playful\":{\"--sjs-general-backcolor\":\"rgba(248, 248, 248, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(242, 242, 242, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(242, 242, 242, 1)\",\"--sjs-primary-backcolor\":\"rgba(217, 74, 100, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(217, 74, 100, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(189, 61, 84, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(228, 228, 228, 1),0px 2px 0px 2px rgba(228, 228, 228, 1)\",\"--sjs-shadow-medium\":\"0px 8px 0px 2px rgba(228, 228, 228, 1),0px 0px 0px 2px rgba(228, 228, 228, 1)\",\"--sjs-shadow-large\":\"0px 0px 0px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-inner\":\"0px -2px 0px 2px rgba(228, 228, 228, 1),0px 0px 0px 2px rgba(228, 228, 228, 1)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.08)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.08)\"},\"ultra\":{\"--sjs-general-backcolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-forecolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-forecolor-light\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 1)\",\"--sjs-primary-backcolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 216, 77, 1)\",\"--sjs-primary-backcolor-dark\":\"rgba(83, 83, 83, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-shadow-medium\":\"0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-shadow-large\":\"0px 6px 0px 0px rgba(0, 0, 0, 1)\",\"--sjs-shadow-inner\":\"0px -2px 0px 2px rgba(0, 0, 0, 1),0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.2)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 1)\"},\"default-dark\":{\"--sjs-general-backcolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(52, 52, 52, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(36, 36, 36, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(43, 43, 43, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(46, 46, 46, 1)\",\"--sjs-general-forecolor\":\"rgba(255, 255, 255, 0.78)\",\"--sjs-general-forecolor-light\":\"rgba(255, 255, 255, 0.42)\",\"--sjs-general-dim-forecolor\":\"rgba(255, 255, 255, 0.79)\",\"--sjs-general-dim-forecolor-light\":\"rgba(255, 255, 255, 0.45)\",\"--sjs-primary-backcolor\":\"rgba(255, 152, 20, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 0.07)\",\"--sjs-primary-backcolor-dark\":\"rgba(255, 170, 24, 1)\",\"--sjs-primary-forecolor\":\"rgba(32, 32, 32, 1)\",\"--sjs-primary-forecolor-light\":\"rgba(32, 32, 32, 0.25)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-secondary-backcolor\":\"rgba(255, 152, 20, 1)\",\"--sjs-secondary-backcolor-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-secondary-backcolor-semi-light\":\"rgba(255, 152, 20, 0.25)\",\"--sjs-secondary-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-secondary-forecolor-light\":\"rgba(48, 48, 48, 0.25)\",\"--sjs-shadow-small\":\"0px 1px 2px 0px rgba(0, 0, 0, 0.35)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-shadow-inner\":\"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.08)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.12)\",\"--sjs-border-inside\":\"rgba(255, 255, 255, 0.08)\",\"--sjs-special-red\":\"rgba(254, 76, 108, 1)\",\"--sjs-special-red-light\":\"rgba(254, 76, 108, 0.1)\",\"--sjs-special-red-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-special-green\":\"rgba(36, 197, 164, 1)\",\"--sjs-special-green-light\":\"rgba(36, 197, 164, 0.1)\",\"--sjs-special-green-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-special-blue\":\"rgba(91, 151, 242, 1)\",\"--sjs-special-blue-light\":\"rgba(91, 151, 242, 0.1)\",\"--sjs-special-blue-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-special-yellow\":\"rgba(255, 152, 20, 1)\",\"--sjs-special-yellow-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-special-yellow-forecolor\":\"rgba(48, 48, 48, 1)\"},\"contrast-dark\":{\"--sjs-general-backcolor-dark\":\"rgba(58, 58, 58, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(27, 27, 27, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(33, 33, 33, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(47, 47, 47, 1)\",\"--sjs-general-forecolor\":\"rgba(255, 255, 255, 0.78)\",\"--sjs-general-forecolor-light\":\"rgba(255, 255, 255, 0.5)\",\"--sjs-general-dim-forecolor\":\"rgba(255, 255, 255, 0.8)\",\"--sjs-general-dim-forecolor-light\":\"rgba(255, 255, 255, 0.55)\",\"--sjs-primary-backcolor\":\"rgba(16, 226, 255, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(0, 0, 0, 0.35)\",\"--sjs-primary-backcolor-dark\":\"rgba(129, 240, 255, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.28)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 1px rgba(255, 255, 255, 0.25)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.22)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.22)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.22)\"},\"plain-dark\":{\"--sjs-general-backcolor\":\"rgba(43, 48, 63, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(50, 55, 72, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(33, 37, 51, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(36, 41, 55, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(40, 46, 61, 1)\",\"--sjs-general-forecolor-light\":\"rgba(114, 120, 137, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(114, 120, 137, 1)\",\"--sjs-primary-backcolor\":\"rgba(114, 187, 255, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(114, 187, 255, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(151, 205, 255, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 0px rgba(0, 0, 0, 0.35)\",\"--sjs-shadow-inner\":\"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-border-light\":\"rgba(55, 62, 79, 1)\",\"--sjs-border-default\":\"rgba(65, 72, 90, 1)\"},\"simple-dark\":{\"--sjs-general-backcolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(56, 56, 56, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(36, 36, 36, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(43, 43, 43, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(52, 52, 52, 1)\",\"--sjs-primary-backcolor\":\"rgba(92, 214, 49, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 0.07)\",\"--sjs-primary-backcolor-dark\":\"rgba(130, 237, 92, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.09)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 1px rgba(255, 255, 255, 0.12)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.07)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.07)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.07)\"},\"blank-dark\":{\"--sjs-general-backcolor\":\"rgba(36, 36, 36, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(47, 47, 47, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(36, 36, 36, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(36, 36, 36, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(47, 47, 47, 1)\",\"--sjs-primary-backcolor\":\"rgba(85, 171, 250, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 0.12)\",\"--sjs-primary-backcolor-dark\":\"rgba(126, 193, 255, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.12)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 1px rgba(255, 255, 255, 0.12)\",\"--sjs-shadow-inner\":\"0px 0px 0px 1px rgba(255, 255, 255, 0.12)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.12)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.12)\"},\"double-dark\":{\"--sjs-general-backcolor\":\"rgba(52, 52, 52, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(58, 58, 58, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(47, 47, 47, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(47, 47, 47, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(53, 53, 53, 1)\",\"--sjs-primary-backcolor\":\"rgba(120, 156, 210, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(146, 181, 235, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(255, 255, 255, 0.12)\",\"--sjs-shadow-medium\":\"0px 0px 0px 2px rgba(255, 255, 255, 0.1)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-inner\":\"0px 0px 0px 2px rgba(255, 255, 255, 0.1)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.1)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.1)\"},\"bulk-dark\":{\"--sjs-general-backcolor\":\"rgba(39, 40, 50, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(46, 47, 58, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(30, 31, 40, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(32, 33, 43, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(37, 38, 48, 1)\",\"--sjs-general-forecolor\":\"rgba(213, 215, 238, 1)\",\"--sjs-general-forecolor-light\":\"rgba(117, 120, 140, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(213, 215, 238, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(117, 119, 141, 1)\",\"--sjs-primary-backcolor\":\"rgba(164, 127, 243, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(164, 127, 243, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(192, 165, 251, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 2px 4px 0px rgba(0, 0, 0, 0.2),0px 8px 16px 0px rgba(0, 0, 0, 0.15),0px 0px 0px 1px rgba(255, 255, 255, 0.1)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.2),inset 0px 0px 0px 1px rgba(255, 255, 255, 0.05)\",\"--sjs-shadow-inner\":\"inset 0px 1px 4px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 1px rgba(255, 255, 255, 0.03)\",\"--sjs-border-light\":\"rgba(54, 56, 69, 1)\",\"--sjs-border-default\":\"rgba(67, 69, 85, 1)\"},\"pseudo-3d-dark\":{\"--sjs-general-backcolor\":\"rgba(53, 55, 63, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(60, 63, 74, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(38, 40, 47, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(46, 48, 55, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(51, 53, 61, 1)\",\"--sjs-general-forecolor-light\":\"rgba(125, 129, 143, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(125, 130, 148, 1)\",\"--sjs-primary-backcolor\":\"rgba(58, 202, 211, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(67, 70, 80, 1)\",\"--sjs-primary-backcolor-dark\":\"rgba(92, 224, 233, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 2px 0px 0px rgba(33, 35, 43, 1)\",\"--sjs-shadow-inner\":\"0px -2px 0px 0px rgba(33, 35, 43, 1)\",\"--sjs-border-light\":\"rgba(65, 69, 83, 1)\",\"--sjs-border-default\":\"rgba(97, 101, 118, 1)\"},\"playful-dark\":{\"--sjs-general-backcolor\":\"rgba(38, 38, 38, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(28, 28, 28, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(58, 58, 58, 1)\",\"--sjs-primary-backcolor\":\"rgba(243, 87, 134, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 0.05)\",\"--sjs-primary-backcolor-dark\":\"rgba(250, 118, 157, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(64, 64, 64, 1),0px 2px 0px 2px rgba(64, 64, 64, 1)\",\"--sjs-shadow-medium\":\"0px 8px 0px 2px rgba(64, 64, 64, 1),0px 0px 0px 2px rgba(64, 64, 64, 1)\",\"--sjs-shadow-large\":\"0px 0px 0px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-inner\":\"0px 2px 0px 2px rgba(64, 64, 64, 1),0px 0px 0px 2px rgba(64, 64, 64, 1)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.12)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.12)\"},\"ultra-dark\":{\"--sjs-general-backcolor\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-forecolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-forecolor-light\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-primary-backcolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-primary-backcolor-dark\":\"rgba(53, 53, 53, 1)\",\"--sjs-primary-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-shadow-small\":\"0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-shadow-medium\":\"0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-shadow-large\":\"0px 6px 0px 0px rgba(0, 0, 0, 1)\",\"--sjs-shadow-inner\":\"0px -2px 0px 2px rgba(0, 0, 0, 1),0px 0px 0px 2px rgba(0, 0, 0, 1)\",\"--sjs-border-light\":\"rgba(232, 192, 51, 1)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 1)\"},\"default-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\"},\"contrast-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(238, 238, 238, 1)\"},\"plain-lw\":{\"--sjs-general-backcolor\":\"rgba(231, 240, 255, 1)\",\"--sjs-general-backcolor-dark\":\"rgba(220, 232, 252, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(231, 240, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-dark\":\"rgba(220, 232, 252, 1)\"},\"simple-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(246, 246, 246, 1)\"},\"double-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(245, 245, 245, 1)\"},\"bulk-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\"},\"pseudo-3d-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(0, 0, 0, 0.91)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 0.45)\"},\"playful-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(248, 248, 248, 1)\"},\"ultra-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\"},\"default-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\"},\"contrast-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(33, 33, 33, 1)\"},\"plain-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(43, 48, 63, 1)\"},\"simple-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\"},\"double-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(52, 52, 52, 1)\"},\"bulk-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(39, 40, 50, 1)\"},\"pseudo-3d-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(53, 55, 63, 1)\"},\"ultra-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 1)\"},\"dark-designer\":{\"--sjs-primary-backcolor\":\"rgba(36, 197, 164, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(36, 197, 164, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(44, 206, 173, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\"}}");
113
113
 
114
114
  /***/ }),
115
115
 
@@ -559,13 +559,10 @@ var ImageItemValueWrapperViewModel = /** @class */ (function (_super) {
559
559
  var _this = this;
560
560
  this.isUploading = true;
561
561
  this.creator.uploadFiles(files, this.question, function (_, link) {
562
- var itemValue = _this.creator.createNewItemValue(_this.question);
563
- itemValue.imageLink = link;
564
- _this.question.choices.push(itemValue);
565
- if (_this.isChoosingNewFile && _this.creator) {
566
- _this.creator.onItemValueAddedCallback(_this.question, "choices", itemValue, _this.question.choices);
567
- _this.isChoosingNewFile = false;
568
- }
562
+ _this.creator.createNewItemValue(_this.question, _this.isChoosingNewFile, function (res) {
563
+ res.imageLink = link;
564
+ });
565
+ _this.isChoosingNewFile = false;
569
566
  _this.isUploading = false;
570
567
  });
571
568
  };
@@ -826,9 +823,7 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
826
823
  ItemValueWrapperViewModel.prototype.addNewItem = function (item, question, creator) {
827
824
  item.value = "newitem";
828
825
  var itemValue = creator.createNewItemValue(question);
829
- question.choices.push(itemValue);
830
826
  this.updateNewItemValue();
831
- creator.onItemValueAddedCallback(question, this.collectionPropertyName, itemValue, question.choices);
832
827
  _string_editor__WEBPACK_IMPORTED_MODULE_4__["StringEditorConnector"].get(itemValue.locText).setAutoFocus();
833
828
  };
834
829
  ItemValueWrapperViewModel.prototype.remove = function (model) {
@@ -1635,7 +1630,6 @@ var PageAdorner = /** @class */ (function (_super) {
1635
1630
  "description"
1636
1631
  ]);
1637
1632
  currentPage.name = _survey_helper__WEBPACK_IMPORTED_MODULE_4__["SurveyHelper"].getNewPageName(_this.creator.survey.pages);
1638
- _this.dragTypeOverMe = null;
1639
1633
  return true;
1640
1634
  })) {
1641
1635
  _this.creator.survey.currentPage = currentPage;
@@ -1650,29 +1644,50 @@ var PageAdorner = /** @class */ (function (_super) {
1650
1644
  _this.currentAddQuestionType = type;
1651
1645
  _this.addGhostPage();
1652
1646
  });
1653
- _this.attachElement(_this.page);
1647
+ _this.attachElement(page);
1654
1648
  return _this;
1655
1649
  }
1650
+ PageAdorner.prototype.updateDragTypeOverMe = function () {
1651
+ this.dragTypeOverMe = this.page.dragTypeOverMe;
1652
+ };
1656
1653
  PageAdorner.prototype.attachElement = function (surveyElement) {
1657
1654
  var _this = this;
1658
1655
  _super.prototype.attachElement.call(this, surveyElement);
1659
- if (!!this.page) {
1660
- this.dragTypeOverMe = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.page.dragTypeOverMe; });
1661
- this.page["surveyChangedCallback"] = function () {
1662
- _this.isPageLive = !!_this.page.survey;
1656
+ this.dragTypeOverMe = null;
1657
+ if (!!surveyElement) {
1658
+ surveyElement["surveyChangedCallback"] = function () {
1659
+ _this.isPageLive = !!surveyElement.survey;
1663
1660
  };
1664
1661
  if (this.isGhost) {
1665
1662
  this.updateActionsProperties();
1666
- this.page.registerFunctionOnPropertiesValueChanged(["title", "description"], function () {
1663
+ surveyElement.registerFunctionOnPropertiesValueChanged(["title", "description"], function () {
1667
1664
  _this.addGhostPage();
1668
1665
  });
1669
- this.patchPageForDragDrop(this.page, this.addGhostPage);
1666
+ this.patchPageForDragDrop(surveyElement, this.addGhostPage);
1670
1667
  }
1671
- this.page.onFirstRendering();
1672
- this.page.updateCustomWidgets();
1673
- this.page.setWasShown(true);
1668
+ surveyElement.registerFunctionOnPropertiesValueChanged(["dragTypeOverMe"], function () {
1669
+ _this.updateDragTypeOverMe();
1670
+ });
1671
+ surveyElement.onFirstRendering();
1672
+ surveyElement.updateCustomWidgets();
1673
+ surveyElement.setWasShown(true);
1674
1674
  this.checkActionProperties();
1675
+ this.dragTypeOverMe = surveyElement.dragTypeOverMe;
1676
+ }
1677
+ };
1678
+ PageAdorner.prototype.detachElement = function (surveyElement) {
1679
+ if (!!surveyElement) {
1680
+ surveyElement.unRegisterFunctionOnPropertiesValueChanged([
1681
+ "dragTypeOverMe"
1682
+ ]);
1683
+ surveyElement.unRegisterFunctionOnPropertiesValueChanged([
1684
+ "title",
1685
+ "description"
1686
+ ]);
1687
+ surveyElement["surveyChangedCallback"] = undefined;
1675
1688
  }
1689
+ _super.prototype.detachElement.call(this, surveyElement);
1690
+ this.dragTypeOverMe = null;
1676
1691
  };
1677
1692
  PageAdorner.prototype.onElementSelectedChanged = function (isSelected) {
1678
1693
  _super.prototype.onElementSelectedChanged.call(this, isSelected);
@@ -1692,13 +1707,7 @@ var PageAdorner = /** @class */ (function (_super) {
1692
1707
  };
1693
1708
  PageAdorner.prototype.dispose = function () {
1694
1709
  _super.prototype.dispose.call(this);
1695
- if (!!this.page) {
1696
- this.page.unRegisterFunctionOnPropertiesValueChanged([
1697
- "title",
1698
- "description"
1699
- ]);
1700
- this.page["surveyChangedCallback"] = undefined;
1701
- }
1710
+ this.detachElement(this.page);
1702
1711
  this.onPropertyValueChangedCallback = undefined;
1703
1712
  };
1704
1713
  Object.defineProperty(PageAdorner.prototype, "isGhost", {
@@ -2004,16 +2013,21 @@ var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
2004
2013
  QuestionImageAdornerViewModel.prototype.initFilePresentationModel = function () {
2005
2014
  var _this = this;
2006
2015
  this.filePresentationModel = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].createClass("file", { name: this.question.name });
2007
- this.filePresentationModel.setSurveyImpl(this.question.getSurvey());
2016
+ var surveyModel = new survey_core__WEBPACK_IMPORTED_MODULE_1__["SurveyModel"]();
2017
+ this.filePresentationModel.setSurveyImpl(surveyModel);
2008
2018
  this.filePresentationModel.forceIsInputReadOnly = !this.creator.isCanModifyProperty(this.question, "imageLink");
2009
2019
  this.filePresentationModel.dragAreaPlaceholder = this.placeholderText;
2010
2020
  this.filePresentationModel.chooseButtonCaption = this.chooseImageText;
2011
2021
  this.filePresentationModel.acceptedTypes = "image/*";
2012
- this.filePresentationModel.onPropertyValueChangedCallback = function (name, oldValue, newValue, sender, arrayChanges) {
2013
- if (name === "value" && newValue.length > 0) {
2014
- _this.question.imageLink = newValue[0].content;
2022
+ this.filePresentationModel.storeDataAsText = false;
2023
+ surveyModel.onUploadFiles.add(function (s, o) {
2024
+ var fileToUpload = o.files[0];
2025
+ if (!!fileToUpload) {
2026
+ _this.creator.uploadFiles(o.files, _this.question, function (status, link) {
2027
+ _this.question.imageLink = link;
2028
+ });
2015
2029
  }
2016
- };
2030
+ });
2017
2031
  };
2018
2032
  QuestionImageAdornerViewModel.prototype.chooseFile = function (model) {
2019
2033
  var fileInput = model.questionRoot.getElementsByClassName("svc-choose-file-input")[0];
@@ -3670,6 +3684,7 @@ __webpack_require__.r(__webpack_exports__);
3670
3684
 
3671
3685
 
3672
3686
 
3687
+
3673
3688
  var StringItemsNavigatorBase = /** @class */ (function () {
3674
3689
  function StringItemsNavigatorBase(question) {
3675
3690
  this.question = question;
@@ -3690,10 +3705,16 @@ var StringItemsNavigatorBase = /** @class */ (function () {
3690
3705
  return null;
3691
3706
  };
3692
3707
  StringItemsNavigatorBase.prototype.addNewItems = function (items, startIndex, itemsToAdd) {
3693
- var newItems = items.slice(0, startIndex).concat(itemsToAdd.map(function (text) { return new survey_core__WEBPACK_IMPORTED_MODULE_1__["ItemValue"](text); })).concat(items.slice(startIndex + 1));
3708
+ var _this = this;
3709
+ var createNewItem = function (val) {
3710
+ if (_this.question.createItemValue)
3711
+ return _this.question.createItemValue(val);
3712
+ return new survey_core__WEBPACK_IMPORTED_MODULE_1__["ItemValue"](val);
3713
+ };
3714
+ var newItems = items.slice(0, startIndex).concat(itemsToAdd.map(function (text) { return createNewItem(text); })).concat(items.slice(startIndex + 1));
3694
3715
  this.question[this.getItemsPropertyName(items)] = newItems;
3695
3716
  };
3696
- StringItemsNavigatorBase.prototype.setEventsForItem = function (items, item) {
3717
+ StringItemsNavigatorBase.prototype.setEventsForItem = function (creator, items, item) {
3697
3718
  var _this = this;
3698
3719
  var connector = StringEditorConnector.get(this.getItemLocString(items, item));
3699
3720
  connector.onEditComplete.clear();
@@ -3703,7 +3724,7 @@ var StringItemsNavigatorBase = /** @class */ (function () {
3703
3724
  StringEditorConnector.get(_this.getItemLocString(items, items[itemIndex + 1])).activateEditor();
3704
3725
  }
3705
3726
  if (itemIndex == items.length - 1) {
3706
- _this.addNewItem(items);
3727
+ _this.addNewItem(creator, items);
3707
3728
  StringEditorConnector.get(_this.getItemLocString(items, items[items.length - 1])).setAutoFocus();
3708
3729
  StringEditorConnector.get(_this.getItemLocString(items, items[items.length - 1])).activateEditor();
3709
3730
  }
@@ -3744,6 +3765,7 @@ var StringItemsNavigatorBase = /** @class */ (function () {
3744
3765
  var question = questionAdorner.element;
3745
3766
  var navigator = StringItemsNavigatorBase.createItemsNavigator(question);
3746
3767
  if (navigator) {
3768
+ var creator_1 = questionAdorner.creator;
3747
3769
  var titleConnector = StringEditorConnector.get(question.locTitle);
3748
3770
  var allItemSets = navigator.getItemSets();
3749
3771
  var activeChoices_1 = allItemSets[0];
@@ -3756,13 +3778,13 @@ var StringItemsNavigatorBase = /** @class */ (function () {
3756
3778
  }
3757
3779
  allItemSets.forEach(function (activeChoices) {
3758
3780
  activeChoices.forEach(function (item) {
3759
- navigator.setEventsForItem(activeChoices, item);
3781
+ navigator.setEventsForItem(creator_1, activeChoices, item);
3760
3782
  });
3761
3783
  var itemsPropertyName = navigator.getItemsPropertyName(activeChoices);
3762
3784
  question.onPropertyChanged.add(function (sender, options) {
3763
3785
  if (options.name == itemsPropertyName) {
3764
3786
  activeChoices.forEach(function (item) {
3765
- navigator.setEventsForItem(activeChoices, item);
3787
+ navigator.setEventsForItem(creator_1, activeChoices, item);
3766
3788
  });
3767
3789
  }
3768
3790
  });
@@ -3784,9 +3806,11 @@ var StringItemsNavigatorSelectBase = /** @class */ (function (_super) {
3784
3806
  StringItemsNavigatorSelectBase.prototype.getItemSets = function () {
3785
3807
  return [this.question.choices];
3786
3808
  };
3787
- StringItemsNavigatorSelectBase.prototype.addNewItem = function (items, text) {
3809
+ StringItemsNavigatorSelectBase.prototype.addNewItem = function (creator, items, text) {
3788
3810
  if (text === void 0) { text = null; }
3789
- this.question.choices.push(new survey_core__WEBPACK_IMPORTED_MODULE_1__["ItemValue"](text || Object(_utils_utils__WEBPACK_IMPORTED_MODULE_3__["getNextValue"])("item", items.map(function (i) { return i.value; }))));
3811
+ var itemValue = creator.createNewItemValue(this.question);
3812
+ if (!!text)
3813
+ itemValue.value = text;
3790
3814
  };
3791
3815
  StringItemsNavigatorSelectBase.prototype.getItemsPropertyName = function (items) {
3792
3816
  return "choices";
@@ -3804,7 +3828,7 @@ var StringItemsNavigatorMultipleText = /** @class */ (function (_super) {
3804
3828
  StringItemsNavigatorMultipleText.prototype.getItemSets = function () {
3805
3829
  return [this.question.items];
3806
3830
  };
3807
- StringItemsNavigatorMultipleText.prototype.addNewItem = function (items, text) {
3831
+ StringItemsNavigatorMultipleText.prototype.addNewItem = function (creator, items, text) {
3808
3832
  if (text === void 0) { text = null; }
3809
3833
  this.question.addItem(text || Object(_utils_utils__WEBPACK_IMPORTED_MODULE_3__["getNextValue"])("text", items.map(function (i) { return i.name; })));
3810
3834
  };
@@ -3828,7 +3852,7 @@ var StringItemsNavigatorMatrix = /** @class */ (function (_super) {
3828
3852
  StringItemsNavigatorMatrix.prototype.getItemSets = function () {
3829
3853
  return [this.question.columns, this.question.rows];
3830
3854
  };
3831
- StringItemsNavigatorMatrix.prototype.addNewItem = function (items, text) {
3855
+ StringItemsNavigatorMatrix.prototype.addNewItem = function (creator, items, text) {
3832
3856
  if (text === void 0) { text = null; }
3833
3857
  if (items == this.question.columns)
3834
3858
  this.question.addColumn(text || Object(_utils_utils__WEBPACK_IMPORTED_MODULE_3__["getNextValue"])("Column ", items.map(function (i) { return i.value; })));
@@ -4050,7 +4074,19 @@ var StringEditorViewModelBase = /** @class */ (function (_super) {
4050
4074
  !(!this.locString.text && clearedText == this.locString.calculatedText)) {
4051
4075
  if (!this.errorText) {
4052
4076
  if (this.locString.owner instanceof survey_core__WEBPACK_IMPORTED_MODULE_1__["ItemValue"] && this.creator.inplaceEditForValues) {
4053
- this.locString.owner.value = clearedText;
4077
+ var itemValue = this.locString.owner;
4078
+ if (itemValue.value !== clearedText) {
4079
+ if (!!itemValue.locOwner && !!itemValue.ownerPropertyName) {
4080
+ var choices = itemValue.locOwner[itemValue.ownerPropertyName];
4081
+ if (Array.isArray(choices) && !!survey_core__WEBPACK_IMPORTED_MODULE_1__["ItemValue"].getItemByValue(choices, clearedText)) {
4082
+ clearedText = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_3__["getNextItemValue"])(clearedText, choices);
4083
+ if (!!event && !!event.target) {
4084
+ event.target.innerText = clearedText;
4085
+ }
4086
+ }
4087
+ }
4088
+ itemValue.value = clearedText;
4089
+ }
4054
4090
  }
4055
4091
  else {
4056
4092
  var oldStoreDefaultText = this.locString.storeDefaultText;
@@ -5101,8 +5137,8 @@ var AceJsonEditorModel = /** @class */ (function (_super) {
5101
5137
  for (var i = 0; i < errors.length; i++) {
5102
5138
  var error = errors[i];
5103
5139
  var annotation = {
5104
- row: error.position.start.row,
5105
- column: error.position.start.column,
5140
+ row: error.rowAt,
5141
+ column: error.columnAt,
5106
5142
  text: error.text,
5107
5143
  type: "error"
5108
5144
  };
@@ -6094,42 +6130,44 @@ var LogicItemEditor = /** @class */ (function (_super) {
6094
6130
  }).filter(function (action) { return !!action; });
6095
6131
  };
6096
6132
  LogicItemEditor.prototype.onUpdateQuestionCssClasses = function (options) {
6097
- options.cssClasses.answered = "svc-logic-question--answered";
6098
- if (options.question.name === "logicTypeName") {
6099
- options.question.allowRootStyle = false;
6100
- options.cssClasses.control += " svc-logic-operator svc-logic-operator--action";
6101
- options.cssClasses.error.root = "svc-logic-operator__error";
6102
- options.cssClasses.onError = "svc-logic-operator--error";
6103
- }
6104
- if (options.question.name === "elementSelector" || options.question.name === "setToName" || options.question.name === "fromName" || options.question.name === "gotoName") {
6105
- options.question.allowRootStyle = false;
6106
- options.cssClasses.control += " svc-logic-operator svc-logic-operator--question";
6107
- options.cssClasses.error.root = "svc-logic-operator__error";
6108
- options.cssClasses.onError = "svc-logic-operator--error";
6109
- }
6110
- if (options.question.name === "setToName" || options.question.name === "fromName") {
6111
- options.question.allowRootStyle = false;
6112
- options.question.titleLocation = "left";
6113
- options.question.startWithNewLine = false;
6114
- options.cssClasses.error.root = "svc-logic-operator__error";
6115
- options.cssClasses.onError = "svc-logic-operator--error";
6116
- }
6117
- if (options.question.name === "setValue") {
6118
- Object(_utils_utils__WEBPACK_IMPORTED_MODULE_8__["assignDefaultV2Classes"])(options.cssClasses, options.question.getType());
6119
- options.cssClasses.mainRoot += " svc-logic-question-value sd-element--with-frame";
6120
- }
6121
- if (options.question.name === "removeAction") {
6122
- options.question.allowRootStyle = false;
6123
- options.cssClasses.mainRoot += " svc-logic-condition-remove-question";
6124
- }
6125
- // options.cssClasses.mainRoot = "sd-question sd-row__question";
6126
- if (options.question.name === "panel") {
6127
- options.cssClasses.root += " svc-logic-paneldynamic";
6128
- options.cssClasses.buttonAdd += " svc-logic-operator--action ";
6129
- options.cssClasses.iconRemove = "svc-icon-remove";
6130
- options.cssClasses.buttonRemove = "svc-logic-paneldynamic__button svc-logic-paneldynamic__remove-btn";
6131
- options.cssClasses.buttonRemoveRight = "svc-logic-paneldynamic__remove-btn--right";
6132
- options.cssClasses.buttonRemoveText = "svc-logic-paneldynamic__button-remove-text";
6133
+ var cssClasses = options.cssClasses;
6134
+ var question = options.question;
6135
+ cssClasses.answered = "svc-logic-question--answered";
6136
+ if (question.name === "logicTypeName") {
6137
+ question.allowRootStyle = false;
6138
+ cssClasses.control += " svc-logic-operator svc-logic-operator--action";
6139
+ cssClasses.error.root = "svc-logic-operator__error";
6140
+ cssClasses.onError = "svc-logic-operator--error";
6141
+ }
6142
+ if (question.name === "elementSelector" || question.name === "setToName" || question.name === "fromName" || question.name === "gotoName") {
6143
+ question.allowRootStyle = false;
6144
+ cssClasses.control += " svc-logic-operator svc-logic-operator--question";
6145
+ cssClasses.error.root = "svc-logic-operator__error";
6146
+ cssClasses.onError = "svc-logic-operator--error";
6147
+ }
6148
+ if (question.name === "setToName" || question.name === "fromName") {
6149
+ question.allowRootStyle = false;
6150
+ question.titleLocation = "left";
6151
+ question.startWithNewLine = false;
6152
+ cssClasses.error.root = "svc-logic-operator__error";
6153
+ cssClasses.onError = "svc-logic-operator--error";
6154
+ }
6155
+ if (question.name === "setValue" || question.isContentElement) {
6156
+ Object(_utils_utils__WEBPACK_IMPORTED_MODULE_8__["assignDefaultV2Classes"])(cssClasses, question.getType());
6157
+ cssClasses.mainRoot += " svc-logic-question-value sd-element--with-frame";
6158
+ }
6159
+ if (question.name === "removeAction") {
6160
+ question.allowRootStyle = false;
6161
+ cssClasses.mainRoot += " svc-logic-condition-remove-question";
6162
+ }
6163
+ // cssClasses.mainRoot = "sd-question sd-row__question";
6164
+ if (question.name === "panel") {
6165
+ cssClasses.root += " svc-logic-paneldynamic";
6166
+ cssClasses.buttonAdd += " svc-logic-operator--action ";
6167
+ cssClasses.iconRemove = "svc-icon-remove";
6168
+ cssClasses.buttonRemove = "svc-logic-paneldynamic__button svc-logic-paneldynamic__remove-btn";
6169
+ cssClasses.buttonRemoveRight = "svc-logic-paneldynamic__remove-btn--right";
6170
+ cssClasses.buttonRemoveText = "svc-logic-paneldynamic__button-remove-text";
6133
6171
  }
6134
6172
  };
6135
6173
  LogicItemEditor.prototype.onUpdatePanelCssClasses = function (options) {
@@ -7338,6 +7376,9 @@ var logicCss = {
7338
7376
  controlLabel: "",
7339
7377
  materialDecorator: "",
7340
7378
  controlValue: "sl-dropdown__value",
7379
+ chevronButton: "",
7380
+ chevronButtonSvg: "",
7381
+ chevronButtonIconId: "",
7341
7382
  },
7342
7383
  imagepicker: {
7343
7384
  root: "",
@@ -9844,7 +9885,7 @@ survey_core__WEBPACK_IMPORTED_MODULE_1__["ComponentCollection"].Instance.add({
9844
9885
  "type": "buttongroup",
9845
9886
  "name": "isInset",
9846
9887
  "titleLocation": "hidden",
9847
- "choices": [{ text: "Drop", value: false }, { text: "Inner", value: true }]
9888
+ "choices": [{ text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_0__["getLocString"])("theme.boxShadowDrop"), value: false }, { text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_0__["getLocString"])("theme.boxShadowInner"), value: true }]
9848
9889
  }
9849
9890
  ]
9850
9891
  },
@@ -9919,34 +9960,43 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
9919
9960
  }
9920
9961
  ],
9921
9962
  onInit: function () {
9922
- survey_core__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addProperty("colorsettings", {
9923
- name: "choices:itemvalue[]"
9924
- });
9963
+ survey_core__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addProperties("colorsettings", [{
9964
+ name: "choices:itemvalue[]",
9965
+ },
9966
+ {
9967
+ name: "colorTitleLocation:string",
9968
+ default: "hidden",
9969
+ },
9970
+ {
9971
+ name: "colorTitle:string",
9972
+ }
9973
+ ]);
9925
9974
  },
9926
9975
  onLoaded: function (question) {
9927
- syncPropertiesFromCompositeToColor(question, "titleLocation", question.titleLocation);
9976
+ syncPropertiesFromCompositeToColor(question, "colorTitle", question.colorTitle);
9977
+ syncPropertiesFromCompositeToColor(question, "colorTitleLocation", question.colorTitleLocation);
9928
9978
  syncPropertiesFromCompositeToColor(question, "choices", question.choices);
9929
9979
  },
9930
9980
  onPropertyChanged: function (question, propertyName, newValue) {
9931
9981
  syncPropertiesFromCompositeToColor(question, propertyName, newValue);
9932
9982
  },
9983
+ valueToQuestion: function (value) {
9984
+ return !!value ? createColor(value) : "";
9985
+ },
9986
+ valueFromQuestion: function (value) {
9987
+ return typeof value == "string" ? Object(_utils_utils__WEBPACK_IMPORTED_MODULE_2__["parseColor"])(value) : value;
9988
+ },
9933
9989
  onCreated: function (question) {
9934
- question.valueFromDataCallback = function (newValue) { return typeof newValue == "string" ? Object(_utils_utils__WEBPACK_IMPORTED_MODULE_2__["parseColor"])(newValue) : newValue; };
9935
- question.valueToDataCallback = function (newValue) { return !!newValue ? (typeof newValue == "string" ? newValue : createColor(newValue)) : ""; };
9936
9990
  question.contentPanel.questions.forEach(function (q) { return q.allowRootStyle = false; });
9937
9991
  }
9938
9992
  });
9939
9993
  function syncPropertiesFromCompositeToColor(question, propertyName, newValue) {
9940
9994
  var colorQuestion = question.contentPanel.questions[0];
9941
- if (propertyName == "titleLocation") {
9942
- if (newValue == "left") {
9943
- question.titleLocation = "hidden";
9944
- colorQuestion.title = question.title;
9945
- colorQuestion.titleLocation = newValue;
9946
- }
9947
- else {
9948
- colorQuestion.titleLocation = "hidden";
9949
- }
9995
+ if (propertyName == "colorTitleLocation") {
9996
+ colorQuestion.titleLocation = newValue;
9997
+ }
9998
+ if (propertyName == "colorTitle") {
9999
+ colorQuestion.title = newValue;
9950
10000
  }
9951
10001
  if (propertyName == "choices") {
9952
10002
  colorQuestion.choices = newValue;
@@ -9963,11 +10013,13 @@ function createColor(value) {
9963
10013
  /*!************************************************************************!*\
9964
10014
  !*** ./src/components/tabs/theme-custom-questions/element-settings.ts ***!
9965
10015
  \************************************************************************/
9966
- /*! no exports provided */
10016
+ /*! exports provided: elementSettingsToCssVariable, elementSettingsFromCssVariable */
9967
10017
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9968
10018
 
9969
10019
  "use strict";
9970
10020
  __webpack_require__.r(__webpack_exports__);
10021
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elementSettingsToCssVariable", function() { return elementSettingsToCssVariable; });
10022
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elementSettingsFromCssVariable", function() { return elementSettingsFromCssVariable; });
9971
10023
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
9972
10024
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
9973
10025
  /* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../editorLocalization */ "./src/editorLocalization.ts");
@@ -9978,17 +10030,19 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
9978
10030
  showInToolbox: false,
9979
10031
  elementsJSON: [
9980
10032
  {
9981
- type: "color",
10033
+ type: "colorsettings",
9982
10034
  name: "backcolor",
9983
- title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.backcolor"),
9984
- titleLocation: "left",
10035
+ colorTitle: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.backcolor"),
10036
+ colorTitleLocation: "left",
10037
+ titleLocation: "hidden",
9985
10038
  descriptionLocation: "hidden"
9986
10039
  },
9987
10040
  {
9988
- type: "color",
10041
+ type: "colorsettings",
9989
10042
  name: "hovercolor",
9990
- title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.hovercolor"),
9991
- titleLocation: "left",
10043
+ colorTitle: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.hovercolor"),
10044
+ colorTitleLocation: "left",
10045
+ titleLocation: "hidden",
9992
10046
  descriptionLocation: "hidden"
9993
10047
  },
9994
10048
  {
@@ -9998,13 +10052,12 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
9998
10052
  titleLocation: "left",
9999
10053
  descriptionLocation: "hidden",
10000
10054
  unit: "px",
10001
- defaultValue: 4,
10002
10055
  min: 0
10003
10056
  },
10004
10057
  {
10005
10058
  type: "expression",
10006
10059
  name: "cornerRadius",
10007
- expression: "{composite.corner}+\"px\"",
10060
+ expression: "iif({composite.corner} notempty, {composite.corner} + 'px', '')",
10008
10061
  visible: false
10009
10062
  }
10010
10063
  ],
@@ -10015,6 +10068,33 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
10015
10068
  onValueChanged: function (question, name, newValue) {
10016
10069
  },
10017
10070
  });
10071
+ function elementSettingsToCssVariable(question, themeCssVariables) {
10072
+ Object.keys(question.value).forEach(function (key) {
10073
+ if (key === "corner")
10074
+ return;
10075
+ themeCssVariables["--sjs-" + question.name.toLocaleLowerCase() + "-" + key] = question.value[key];
10076
+ });
10077
+ }
10078
+ function elementSettingsFromCssVariable(question, themeCssVariables, defaultBackcolorVariable, defaultHovercolorVariable) {
10079
+ var result = {};
10080
+ Object.keys(themeCssVariables).filter(function (key) { return key.indexOf(question.name.toLocaleLowerCase()) !== -1; }).forEach(function (key) {
10081
+ var propertyName = key.split("-").pop();
10082
+ if (propertyName === "cornerRadius") {
10083
+ result["corner"] = parseFloat(themeCssVariables[key].toString());
10084
+ }
10085
+ else {
10086
+ result[propertyName] = themeCssVariables[key];
10087
+ }
10088
+ });
10089
+ if (Object.keys(result).length === 0) {
10090
+ question.contentPanel.getQuestionByName("backcolor").value = defaultBackcolorVariable;
10091
+ question.contentPanel.getQuestionByName("hovercolor").value = defaultHovercolorVariable;
10092
+ }
10093
+ else {
10094
+ question.value = result;
10095
+ }
10096
+ return result;
10097
+ }
10018
10098
 
10019
10099
 
10020
10100
  /***/ }),
@@ -10023,12 +10103,14 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
10023
10103
  /*!*********************************************************************!*\
10024
10104
  !*** ./src/components/tabs/theme-custom-questions/font-settings.ts ***!
10025
10105
  \*********************************************************************/
10026
- /*! exports provided: DefaultFonts */
10106
+ /*! exports provided: DefaultFonts, fontsettingsToCssVariable, fontsettingsFromCssVariable */
10027
10107
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10028
10108
 
10029
10109
  "use strict";
10030
10110
  __webpack_require__.r(__webpack_exports__);
10031
10111
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultFonts", function() { return DefaultFonts; });
10112
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fontsettingsToCssVariable", function() { return fontsettingsToCssVariable; });
10113
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fontsettingsFromCssVariable", function() { return fontsettingsFromCssVariable; });
10032
10114
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
10033
10115
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
10034
10116
  /* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../editorLocalization */ "./src/editorLocalization.ts");
@@ -10057,7 +10139,6 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
10057
10139
  titleLocation: "left",
10058
10140
  descriptionLocation: "hidden",
10059
10141
  choices: [].concat(DefaultFonts),
10060
- defaultValue: "Open Sans",
10061
10142
  allowClear: false
10062
10143
  },
10063
10144
  {
@@ -10071,14 +10152,13 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
10071
10152
  { value: "600", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.fontWeightBold") },
10072
10153
  { value: "700", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.fontWeightHeavy") },
10073
10154
  ],
10074
- defaultValue: "400"
10075
10155
  },
10076
10156
  {
10077
- type: "color",
10157
+ type: "colorsettings",
10078
10158
  name: "color",
10079
- title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.color"),
10080
- titleLocation: "left",
10081
- // choices: ["#00FFFF", "#00FFFF"],
10159
+ colorTitle: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.color"),
10160
+ colorTitleLocation: "left",
10161
+ titleLocation: "hidden",
10082
10162
  descriptionLocation: "hidden"
10083
10163
  },
10084
10164
  {
@@ -10100,6 +10180,27 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
10100
10180
  onValueChanged: function (question, name, newValue) {
10101
10181
  },
10102
10182
  });
10183
+ function fontsettingsToCssVariable(question, themeCssVariables) {
10184
+ Object.keys(question.value).forEach(function (key) {
10185
+ var _a;
10186
+ var innerQ = question.contentPanel.getQuestionByName(key);
10187
+ themeCssVariables["--sjs-font-" + question.name.toLocaleLowerCase() + "-" + key] = question.value[key] + (((_a = innerQ.unit) === null || _a === void 0 ? void 0 : _a.toString()) || "");
10188
+ });
10189
+ }
10190
+ function fontsettingsFromCssVariable(question, themeCssVariables, defaultColorVariable) {
10191
+ var result = {};
10192
+ Object.keys(themeCssVariables).filter(function (key) { return key.indexOf(question.name.toLocaleLowerCase()) !== -1; }).forEach(function (key) {
10193
+ var propertyName = key.split("-").pop();
10194
+ result[propertyName] = themeCssVariables[key];
10195
+ });
10196
+ if (Object.keys(result).length !== 0) {
10197
+ question.value = result;
10198
+ }
10199
+ else if (!!defaultColorVariable) {
10200
+ question.contentPanel.getQuestionByName("color").value = defaultColorVariable;
10201
+ }
10202
+ return result;
10203
+ }
10103
10204
 
10104
10205
 
10105
10206
  /***/ }),
@@ -10388,6 +10489,8 @@ __webpack_require__.r(__webpack_exports__);
10388
10489
  /* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
10389
10490
  /* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../creator-settings */ "./src/creator-settings.ts");
10390
10491
  /* harmony import */ var _theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./theme-custom-questions/font-settings */ "./src/components/tabs/theme-custom-questions/font-settings.ts");
10492
+ /* harmony import */ var _theme_custom_questions_element_settings__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./theme-custom-questions/element-settings */ "./src/components/tabs/theme-custom-questions/element-settings.ts");
10493
+
10391
10494
 
10392
10495
 
10393
10496
 
@@ -10519,16 +10622,17 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
10519
10622
  this.setThemeToSurvey();
10520
10623
  };
10521
10624
  ThemeSurveyTabViewModel.prototype.loadTheme = function (theme) {
10522
- this.themeName = theme["themeName"];
10523
- this.themePalette = theme["themePalette"];
10625
+ this.themeName = theme.themeName;
10626
+ this.themePalette = theme.themePalette;
10524
10627
  this.themeMode = theme.isCompact ? "lightweight" : undefined;
10525
10628
  this.backgroundImage = theme.backgroundImage;
10526
10629
  this.backgroundImageFit = theme.backgroundImageFit;
10630
+ this.backgroundImageAttachment = theme.backgroundImageAttachment;
10527
10631
  var fullThemeName = this.getFullThemeName();
10528
10632
  if (!Themes[fullThemeName]) {
10529
10633
  Themes[fullThemeName] = theme;
10530
10634
  var themeSelector = this.themeEditorSurvey.getQuestionByName("themeName");
10531
- themeSelector.choices = themeSelector.choices.concat(new survey_core__WEBPACK_IMPORTED_MODULE_2__["ItemValue"](theme["themeName"]));
10635
+ themeSelector.choices = themeSelector.choices.concat(new survey_core__WEBPACK_IMPORTED_MODULE_2__["ItemValue"](theme.themeName));
10532
10636
  }
10533
10637
  var themeVariables = {};
10534
10638
  Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assign"])(themeVariables, this.themeVariables, theme.cssVariables);
@@ -10812,7 +10916,9 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
10812
10916
  var _a, _b;
10813
10917
  if (_this.blockChanges)
10814
10918
  return;
10815
- _this.themeChanges[options.name] = options.value;
10919
+ if (options.name.indexOf("--") === 0) {
10920
+ _this.themeChanges[options.name] = options.value;
10921
+ }
10816
10922
  if (["themeName", "themeMode", "themePalette"].indexOf(options.name) !== -1) {
10817
10923
  _this[options.name] = options.value;
10818
10924
  _this.initializeColorCalculator();
@@ -10822,13 +10928,13 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
10822
10928
  _this.applySelectedTheme();
10823
10929
  }
10824
10930
  else {
10825
- _this.currentTheme["themeName"] = _this.themeName;
10826
- _this.currentTheme["themePalette"] = _this.themePalette;
10931
+ _this.currentTheme.themeName = _this.themeName;
10932
+ _this.currentTheme.themePalette = _this.themePalette;
10827
10933
  _this.resetTheme();
10828
10934
  }
10829
10935
  return;
10830
10936
  }
10831
- if (["backgroundImage", "backgroundImageFit"].indexOf(options.name) !== -1) {
10937
+ if (["backgroundImage", "backgroundImageFit", "backgroundImageAttachment"].indexOf(options.name) !== -1) {
10832
10938
  _this[options.name] = options.value;
10833
10939
  return;
10834
10940
  }
@@ -10846,28 +10952,20 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
10846
10952
  _this.themeEditorSurvey.setValue("--sjs-primary-backcolor-dark", _this.colorCalculator.colorSettings.newColorDark);
10847
10953
  }
10848
10954
  if (options.name === "questionBackgroundTransparency" || options.name === "editorPanel") {
10849
- var baseColor = themeEditorSurvey.getValue("--sjs-general-backcolor-dim-light");
10955
+ var baseColor = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["parseColor"])(themeEditorSurvey.getValue("--sjs-general-backcolor-dim-light")).color;
10850
10956
  var questionBackgroundTransparencyValue = themeEditorSurvey.getValue("questionBackgroundTransparency");
10851
10957
  _this.themeChanges["--sjs-editor-background"] = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["ingectAlpha"])(baseColor, questionBackgroundTransparencyValue / 100);
10852
10958
  }
10853
10959
  if (options.name === "panelBackgroundTransparency" || options.name === "questionPanel") {
10854
- var baseColor = themeEditorSurvey.getValue("--sjs-general-backcolor");
10960
+ var baseColor = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["parseColor"])(themeEditorSurvey.getValue("--sjs-general-backcolor")).color;
10855
10961
  var panelBackgroundTransparencyValue = themeEditorSurvey.getValue("panelBackgroundTransparency");
10856
10962
  _this.themeChanges["--sjs-question-background"] = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["ingectAlpha"])(baseColor, panelBackgroundTransparencyValue / 100);
10857
10963
  }
10858
10964
  if (((_a = options.question) === null || _a === void 0 ? void 0 : _a.getType()) === "fontsettings") {
10859
- Object.keys(options.value).forEach(function (key) {
10860
- var _a;
10861
- var innerQ = options.question.contentPanel.getQuestionByName(key);
10862
- _this.themeChanges["--sjs-font-" + options.name.toLocaleLowerCase() + "-" + key] = options.value[key] + (((_a = innerQ.unit) === null || _a === void 0 ? void 0 : _a.toString()) || "");
10863
- });
10965
+ Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsToCssVariable"])(options.question, _this.themeChanges);
10864
10966
  }
10865
10967
  if (((_b = options.question) === null || _b === void 0 ? void 0 : _b.getType()) === "elementsettings") {
10866
- Object.keys(options.value).forEach(function (key) {
10867
- if (key === "corner")
10868
- return;
10869
- _this.themeChanges["--sjs-" + options.name.toLocaleLowerCase() + "-" + key] = options.value[key];
10870
- });
10968
+ Object(_theme_custom_questions_element_settings__WEBPACK_IMPORTED_MODULE_9__["elementSettingsToCssVariable"])(options.question, _this.themeChanges);
10871
10969
  }
10872
10970
  var newTheme = {};
10873
10971
  Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assign"])(newTheme, _this.currentTheme.cssVariables, _this.themeChanges);
@@ -10900,14 +10998,15 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
10900
10998
  Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assign"])(newCssVariables, this.currentTheme.cssVariables);
10901
10999
  themeEditorSurvey.getQuestionByName("backgroundImage").value = this.backgroundImage;
10902
11000
  themeEditorSurvey.getQuestionByName("backgroundImageFit").value = this.backgroundImageFit;
10903
- themeEditorSurvey.getQuestionByName("questionPanel").contentPanel.getQuestionByName("backcolor").value = newCssVariables["--sjs-general-backcolor"];
10904
- themeEditorSurvey.getQuestionByName("questionPanel").contentPanel.getQuestionByName("hovercolor").value = newCssVariables["--sjs-general-backcolor-dark"];
10905
- themeEditorSurvey.getQuestionByName("editorPanel").contentPanel.getQuestionByName("backcolor").value = newCssVariables["--sjs-general-backcolor-dim-light"];
10906
- themeEditorSurvey.getQuestionByName("editorPanel").contentPanel.getQuestionByName("hovercolor").value = newCssVariables["--sjs-general-backcolor-dim-dark"];
10907
- themeEditorSurvey.getQuestionByName("pageTitle").contentPanel.getQuestionByName("color").value = newCssVariables["--sjs-general-dim-forecolor"];
10908
- themeEditorSurvey.getQuestionByName("pageDescription").contentPanel.getQuestionByName("color").value = newCssVariables["--sjs-general-dim-forecolor-light"];
10909
- themeEditorSurvey.getQuestionByName("questionTitle").contentPanel.getQuestionByName("color").value = newCssVariables["--sjs-general-forecolor"];
10910
- themeEditorSurvey.getQuestionByName("questionDescription").contentPanel.getQuestionByName("color").value = newCssVariables["--sjs-general-forecolor-light"];
11001
+ themeEditorSurvey.getQuestionByName("backgroundImageAttachment").value = this.backgroundImageAttachment;
11002
+ Object(_theme_custom_questions_element_settings__WEBPACK_IMPORTED_MODULE_9__["elementSettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("questionPanel"), newCssVariables, newCssVariables["--sjs-general-backcolor"], newCssVariables["--sjs-general-backcolor-dark"]);
11003
+ Object(_theme_custom_questions_element_settings__WEBPACK_IMPORTED_MODULE_9__["elementSettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("editorPanel"), newCssVariables, newCssVariables["--sjs-general-backcolor-dim-light"], newCssVariables["--sjs-general-backcolor-dim-dark"]);
11004
+ Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("surveyTitle"), newCssVariables);
11005
+ Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("pageTitle"), newCssVariables, newCssVariables["--sjs-general-dim-forecolor"]);
11006
+ Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("pageDescription"), newCssVariables, newCssVariables["--sjs-general-dim-forecolor-light"]);
11007
+ Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("questionTitle"), newCssVariables, newCssVariables["--sjs-general-forecolor"]);
11008
+ Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("questionDescription"), newCssVariables, newCssVariables["--sjs-general-forecolor-light"]);
11009
+ Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("editorFont"), newCssVariables);
10911
11010
  themeEditorSurvey.getAllQuestions().forEach(function (question) {
10912
11011
  if (["color", "colorsettings"].indexOf(question.getType()) !== -1) {
10913
11012
  question.choices = Object.keys(PredefinedColors[_this.themePalette]).map(function (colorName) { return new survey_core__WEBPACK_IMPORTED_MODULE_2__["ItemValue"](PredefinedColors[_this.themePalette][colorName], Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.colors." + colorName)); });
@@ -10942,7 +11041,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
10942
11041
  },
10943
11042
  {
10944
11043
  type: "panel",
10945
- name: "themeMode",
11044
+ name: "themeSettings",
10946
11045
  title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themeMode"),
10947
11046
  elements: [
10948
11047
  {
@@ -11007,6 +11106,16 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
11007
11106
  ],
11008
11107
  defaultValue: "cover"
11009
11108
  },
11109
+ {
11110
+ type: "buttongroup",
11111
+ name: "backgroundImageAttachment",
11112
+ titleLocation: "hidden",
11113
+ choices: [
11114
+ { value: "fixed", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundImageAttachmentFixed") },
11115
+ { value: "scroll", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundImageAttachmentScroll") }
11116
+ ],
11117
+ defaultValue: "scroll"
11118
+ },
11010
11119
  {
11011
11120
  type: "spinedit",
11012
11121
  name: "backgroundOpacity",
@@ -11128,24 +11237,27 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
11128
11237
  title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.accentBackground"),
11129
11238
  elements: [
11130
11239
  {
11131
- type: "color",
11240
+ type: "colorsettings",
11132
11241
  name: "--sjs-primary-backcolor",
11133
- title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryDefaultColor"),
11134
- titleLocation: "left",
11242
+ colorTitle: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryDefaultColor"),
11243
+ colorTitleLocation: "left",
11244
+ titleLocation: "hidden",
11135
11245
  descriptionLocation: "hidden",
11136
11246
  },
11137
11247
  {
11138
- type: "color",
11248
+ type: "colorsettings",
11139
11249
  name: "--sjs-primary-backcolor-dark",
11140
- title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryDarkColor"),
11141
- titleLocation: "left",
11250
+ colorTitle: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryDarkColor"),
11251
+ colorTitleLocation: "left",
11252
+ titleLocation: "hidden",
11142
11253
  descriptionLocation: "hidden",
11143
11254
  },
11144
11255
  {
11145
- type: "color",
11256
+ type: "colorsettings",
11146
11257
  name: "--sjs-primary-backcolor-light",
11147
- title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryLightColor"),
11148
- titleLocation: "left",
11258
+ colorTitle: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryLightColor"),
11259
+ colorTitleLocation: "left",
11260
+ titleLocation: "hidden",
11149
11261
  descriptionLocation: "hidden",
11150
11262
  }
11151
11263
  ]
@@ -11154,17 +11266,19 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
11154
11266
  title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.accentForeground"),
11155
11267
  elements: [
11156
11268
  {
11157
- type: "color",
11269
+ type: "colorsettings",
11158
11270
  name: "--sjs-primary-forecolor",
11159
- title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolor"),
11160
- titleLocation: "left",
11271
+ colorTitle: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolor"),
11272
+ colorTitleLocation: "left",
11273
+ titleLocation: "hidden",
11161
11274
  descriptionLocation: "hidden",
11162
11275
  },
11163
11276
  {
11164
- type: "color",
11277
+ type: "colorsettings",
11165
11278
  name: "--sjs-primary-forecolor-light",
11166
- title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolorLight"),
11167
- titleLocation: "left",
11279
+ colorTitle: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolorLight"),
11280
+ colorTitleLocation: "left",
11281
+ titleLocation: "hidden",
11168
11282
  descriptionLocation: "hidden",
11169
11283
  }
11170
11284
  ]
@@ -11179,6 +11293,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
11179
11293
  title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.surveyTitle"),
11180
11294
  descriptionLocation: "hidden",
11181
11295
  defaultValue: {
11296
+ family: _creator_settings__WEBPACK_IMPORTED_MODULE_7__["settings"].theme.fontFamily,
11182
11297
  color: "rgba(22, 22, 22, 1)",
11183
11298
  weight: "700",
11184
11299
  size: 32
@@ -11189,6 +11304,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
11189
11304
  title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.pageTitle"),
11190
11305
  descriptionLocation: "hidden",
11191
11306
  defaultValue: {
11307
+ family: _creator_settings__WEBPACK_IMPORTED_MODULE_7__["settings"].theme.fontFamily,
11192
11308
  color: "rgba(22, 22, 22, 1)",
11193
11309
  weight: "700",
11194
11310
  size: 24
@@ -11199,7 +11315,9 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
11199
11315
  title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.pageDescription"),
11200
11316
  descriptionLocation: "hidden",
11201
11317
  defaultValue: {
11318
+ family: _creator_settings__WEBPACK_IMPORTED_MODULE_7__["settings"].theme.fontFamily,
11202
11319
  color: "rgba(22, 22, 22, 1)",
11320
+ weight: "400",
11203
11321
  size: 16
11204
11322
  }
11205
11323
  }
@@ -11243,6 +11361,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
11243
11361
  title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionTitle"),
11244
11362
  descriptionLocation: "hidden",
11245
11363
  defaultValue: {
11364
+ family: _creator_settings__WEBPACK_IMPORTED_MODULE_7__["settings"].theme.fontFamily,
11246
11365
  color: "rgba(22, 22, 22, 1)",
11247
11366
  weight: "600",
11248
11367
  size: 16,
@@ -11253,7 +11372,9 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
11253
11372
  title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionDescription"),
11254
11373
  descriptionLocation: "hidden",
11255
11374
  defaultValue: {
11375
+ family: _creator_settings__WEBPACK_IMPORTED_MODULE_7__["settings"].theme.fontFamily,
11256
11376
  color: "rgba(22, 22, 22, 1)",
11377
+ weight: "400",
11257
11378
  size: 16
11258
11379
  }
11259
11380
  }
@@ -11296,7 +11417,9 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
11296
11417
  title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.editorFont"),
11297
11418
  descriptionLocation: "hidden",
11298
11419
  defaultValue: {
11420
+ family: _creator_settings__WEBPACK_IMPORTED_MODULE_7__["settings"].theme.fontFamily,
11299
11421
  color: "rgba(22, 22, 22, 1)",
11422
+ weight: "400",
11300
11423
  size: 16
11301
11424
  }
11302
11425
  }
@@ -11308,17 +11431,19 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
11308
11431
  title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.linesColors"),
11309
11432
  elements: [
11310
11433
  {
11311
- type: "color",
11434
+ type: "colorsettings",
11312
11435
  name: "--sjs-border-default",
11313
- title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.borderDefault"),
11314
- titleLocation: "left",
11436
+ colorTitle: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.borderDefault"),
11437
+ colorTitleLocation: "left",
11438
+ titleLocation: "hidden",
11315
11439
  descriptionLocation: "hidden",
11316
11440
  },
11317
11441
  {
11318
- type: "color",
11442
+ type: "colorsettings",
11319
11443
  name: "--sjs-border-light",
11320
- title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.borderLight"),
11321
- titleLocation: "left",
11444
+ colorTitle: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.borderLight"),
11445
+ colorTitleLocation: "left",
11446
+ titleLocation: "hidden",
11322
11447
  descriptionLocation: "hidden",
11323
11448
  }
11324
11449
  ]
@@ -11376,21 +11501,37 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
11376
11501
  })
11377
11502
  ], ThemeSurveyTabViewModel.prototype, "activePage", void 0);
11378
11503
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
11379
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ onSet: function (newValue, _target) {
11504
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
11505
+ onSet: function (newValue, _target) {
11380
11506
  if (!!_target.survey) {
11381
11507
  _target.survey.backgroundImage = newValue;
11382
11508
  }
11383
11509
  _target.currentTheme["backgroundImage"] = newValue;
11384
- } })
11510
+ }
11511
+ })
11385
11512
  ], ThemeSurveyTabViewModel.prototype, "backgroundImage", void 0);
11386
11513
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
11387
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "cover", onSet: function (newValue, _target) {
11514
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
11515
+ defaultValue: "cover",
11516
+ onSet: function (newValue, _target) {
11388
11517
  if (!!_target.survey) {
11389
11518
  _target.survey.backgroundImageFit = newValue;
11390
11519
  }
11391
11520
  _target.currentTheme["backgroundImageFit"] = newValue;
11392
- } })
11521
+ }
11522
+ })
11393
11523
  ], ThemeSurveyTabViewModel.prototype, "backgroundImageFit", void 0);
11524
+ Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
11525
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
11526
+ defaultValue: "scroll",
11527
+ onSet: function (newValue, _target) {
11528
+ if (!!_target.survey) {
11529
+ _target.survey.backgroundImageAttachment = newValue;
11530
+ }
11531
+ _target.currentTheme["backgroundImageAttachment"] = newValue;
11532
+ }
11533
+ })
11534
+ ], ThemeSurveyTabViewModel.prototype, "backgroundImageAttachment", void 0);
11394
11535
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
11395
11536
  Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "default" })
11396
11537
  ], ThemeSurveyTabViewModel.prototype, "themeName", void 0);
@@ -11864,7 +12005,6 @@ var translationCss = {
11864
12005
  root: "st-selectbase",
11865
12006
  small: "st-row__question--small",
11866
12007
  control: "st-input st-dropdown",
11867
- selectWrapper: "",
11868
12008
  other: "st-comment st-question__other",
11869
12009
  onError: "st-input--error",
11870
12010
  label: "st-selectbase__label",
@@ -13507,6 +13647,7 @@ var CreatorBase = /** @class */ (function (_super) {
13507
13647
  function CreatorBase(options, options2) {
13508
13648
  var _this = _super.call(this) || this;
13509
13649
  _this.options = options;
13650
+ _this.startEditTitleOnQuestionAdded = true;
13510
13651
  _this.isRTLValue = false;
13511
13652
  _this.alwaySaveTextInPropertyEditorsValue = false;
13512
13653
  _this.pageEditModeValue = "standard";
@@ -13843,6 +13984,13 @@ var CreatorBase = /** @class */ (function (_super) {
13843
13984
  *- options.oldValue: the previous value of the changed property
13844
13985
  *- options.newValue: the new value of the changed property
13845
13986
  *
13987
+ *- options.type: "ELEMENT_REORDERED"
13988
+ *- options.arrayName: the name of the array property has been changed
13989
+ *- options.parent: the object containing the array property
13990
+ *- options.element: the element that changed the place in the array
13991
+ *- options.indexFrom: moved from index
13992
+ *- options.indexTo: moved to index
13993
+ *
13846
13994
  *- options.type: "OBJECT_DELETED"
13847
13995
  *- options.target: deleted object
13848
13996
  *
@@ -14742,7 +14890,10 @@ var CreatorBase = /** @class */ (function (_super) {
14742
14890
  });
14743
14891
  Object.defineProperty(CreatorBase.prototype, "showSidebar", {
14744
14892
  /**
14745
- * Set this this property grid false to hide the property grid.
14893
+ * Specifies whether to show the sidebar that displays Property Grid.
14894
+ *
14895
+ * Default value: `true`
14896
+ * @see sidebarLocation
14746
14897
  */
14747
14898
  get: function () {
14748
14899
  return this.showSidebarValue;
@@ -15125,17 +15276,14 @@ var CreatorBase = /** @class */ (function (_super) {
15125
15276
  this.dragDropSurveyElements = new _survey_elements__WEBPACK_IMPORTED_MODULE_25__["DragDropSurveyElements"](null, this);
15126
15277
  var isDraggedFromToolbox = false;
15127
15278
  this.dragDropSurveyElements.onDragStart.add(function (sender, options) {
15128
- var panel = sender.dropTarget.parent;
15129
15279
  isDraggedFromToolbox = !sender.draggedElement.parent;
15130
15280
  _this.onDragStart.fire(sender, options);
15131
15281
  _this.startUndoRedoTransaction("drag drop");
15132
- _this.undoRedoManager.setUndoCallbackForTransaction(function () {
15133
- panel.updateRows();
15134
- });
15135
15282
  });
15136
15283
  this.dragDropSurveyElements.onDragEnd.add(function (sender, options) {
15137
15284
  _this.stopUndoRedoTransaction();
15138
- _this.selectElement(options.draggedElement, undefined, false, isDraggedFromToolbox);
15285
+ var editTitle = isDraggedFromToolbox && _this.startEditTitleOnQuestionAdded;
15286
+ _this.selectElement(options.draggedElement, undefined, false, editTitle);
15139
15287
  isDraggedFromToolbox = false;
15140
15288
  _this.onDragEnd.fire(sender, options);
15141
15289
  });
@@ -15439,6 +15587,10 @@ var CreatorBase = /** @class */ (function (_super) {
15439
15587
  options.type = "PROPERTY_CHANGED";
15440
15588
  this.setModified(options);
15441
15589
  };
15590
+ CreatorBase.prototype.notifySurveyItemMoved = function (options) {
15591
+ options.type = "ELEMENT_REORDERED";
15592
+ this.setModified(options);
15593
+ };
15442
15594
  /**
15443
15595
  * This function triggers user notification (via the alert() function if no onNotify event handler added).
15444
15596
  * @see onNotify
@@ -15537,6 +15689,7 @@ var CreatorBase = /** @class */ (function (_super) {
15537
15689
  }
15538
15690
  this.addNewElementReason = modifiedType;
15539
15691
  var currentRow = this.findRowByElement(selectedElement, parent);
15692
+ element.setVisibleIndex(-1);
15540
15693
  if (currentRow && this.isRowMultiline(currentRow)) {
15541
15694
  this.addElemenMultiline(parent, element, index, currentRow);
15542
15695
  }
@@ -16018,7 +16171,7 @@ var CreatorBase = /** @class */ (function (_super) {
16018
16171
  }
16019
16172
  this.survey.lazyRendering = false;
16020
16173
  this.doClickQuestionCore(newElement, modifiedType, -1, panel);
16021
- this.selectElement(newElement, null, true, true);
16174
+ this.selectElement(newElement, null, true, this.startEditTitleOnQuestionAdded);
16022
16175
  }
16023
16176
  };
16024
16177
  CreatorBase.prototype.getJSONForNewElement = function (json) {
@@ -16508,10 +16661,19 @@ var CreatorBase = /** @class */ (function (_super) {
16508
16661
  var itemText = this.getChoicesItemBaseTitle();
16509
16662
  return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_8__["getNextItemValue"])(itemText, question.choices);
16510
16663
  };
16511
- CreatorBase.prototype.createNewItemValue = function (question) {
16664
+ CreatorBase.prototype.createNewItemValue = function (question, callEvent, callback) {
16665
+ if (callEvent === void 0) { callEvent = true; }
16512
16666
  var nextValue = this.getNextItemValue(question);
16513
16667
  var res = question.createItemValue(nextValue);
16514
16668
  res.text = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_8__["getNextItemText"])(question.choices);
16669
+ question.choices.push(res);
16670
+ if (callback) {
16671
+ callback(res);
16672
+ }
16673
+ if (callEvent) {
16674
+ var propName = !!res.ownerPropertyName ? res.ownerPropertyName : "choices";
16675
+ this.onItemValueAddedCallback(question, propName, res, question.choices);
16676
+ }
16515
16677
  return res;
16516
16678
  };
16517
16679
  CreatorBase.prototype.onPropertyValueChanged = function (name, oldValue, newValue) {
@@ -17046,7 +17208,8 @@ var settings = {
17046
17208
  exportFileName: "survey_translation.csv"
17047
17209
  },
17048
17210
  theme: {
17049
- exportFileName: "survey_theme.json"
17211
+ exportFileName: "survey_theme.json",
17212
+ fontFamily: "Open Sans"
17050
17213
  },
17051
17214
  operators: {
17052
17215
  empty: [],
@@ -17575,6 +17738,9 @@ var QuestionSpinEditorModel = /** @class */ (function (_super) {
17575
17738
  _this.decrease();
17576
17739
  _this.decreaseTimer = setTimeout(_this.onDownButtonMouseDown, 200);
17577
17740
  };
17741
+ _this.onButtonMouseLeave = function () {
17742
+ _this.onButtonMouseUp();
17743
+ };
17578
17744
  _this.onButtonMouseUp = function () {
17579
17745
  clearTimeout(_this.decreaseTimer);
17580
17746
  clearTimeout(_this.increaseTimer);
@@ -18207,7 +18373,7 @@ var __spreadArray = function (to, from) {
18207
18373
  /*!******************************!*\
18208
18374
  !*** ./src/entries/index.ts ***!
18209
18375
  \******************************/
18210
- /*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, CreatorAction, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorEvent, CreatorBase, SurveyCreatorModel, StylesManager, initializeDesignTimeSurveyModel, editableStringRendererName, getElementWrapperComponentName, getQuestionContentWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, isTextInput, registerAdorner, removeAdorners, CreatorResponsivityManager, EmbedModel, TabEmbedPlugin, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, createColor, createBoxShadow, parseBoxShadow, DefaultFonts, Themes, PredefinedThemes, PredefinedColors, ThemeSurveyTabViewModel, TabThemePlugin, initLogicOperator, LogicEvent, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, translationCss, TabTranslationPlugin, initialSettingsAllowShowEmptyTitleInDesignMode, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageAdorner, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringItemsNavigatorBase, StringEditorConnector, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, EditorLocalization, getLocString, SurveyJSON5, QuestionSpinEditorModel, QuestionColorModel, QuestionFileEditorModel, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridLinkEditor, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorker, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SidebarModel, SidebarTabModel, getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, imageMimeTypes, getAcceptedTypesByContentMode, getQuestionFromObj, ingectAlpha, convertRgbaToString, parseRgbaFromString, parseColor, HSBToRGB, RGBToHSB, assign, ColorCalculator, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
18376
+ /*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, CreatorAction, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorEvent, CreatorBase, SurveyCreatorModel, StylesManager, initializeDesignTimeSurveyModel, editableStringRendererName, getElementWrapperComponentName, getQuestionContentWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, isTextInput, registerAdorner, removeAdorners, CreatorResponsivityManager, EmbedModel, TabEmbedPlugin, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, createColor, createBoxShadow, parseBoxShadow, DefaultFonts, fontsettingsToCssVariable, fontsettingsFromCssVariable, elementSettingsToCssVariable, elementSettingsFromCssVariable, Themes, PredefinedThemes, PredefinedColors, ThemeSurveyTabViewModel, TabThemePlugin, initLogicOperator, LogicEvent, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, translationCss, TabTranslationPlugin, initialSettingsAllowShowEmptyTitleInDesignMode, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageAdorner, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringItemsNavigatorBase, StringEditorConnector, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, EditorLocalization, getLocString, SurveyJSON5, QuestionSpinEditorModel, QuestionColorModel, QuestionFileEditorModel, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridLinkEditor, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorkerError, SurveyTextWorkerParserError, SurveyTextWorkerJsonError, SurveyTextWorker, JsonDuplicateNameError, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SidebarModel, SidebarTabModel, getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, imageMimeTypes, getAcceptedTypesByContentMode, getQuestionFromObj, ingectAlpha, convertRgbaToString, parseRgbaFromString, parseColor, HSBToRGB, RGBToHSB, assign, ColorCalculator, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
18211
18377
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18212
18378
 
18213
18379
  "use strict";
@@ -18309,8 +18475,16 @@ __webpack_require__.r(__webpack_exports__);
18309
18475
  /* harmony import */ var _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../components/tabs/theme-custom-questions/font-settings */ "./src/components/tabs/theme-custom-questions/font-settings.ts");
18310
18476
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultFonts", function() { return _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_13__["DefaultFonts"]; });
18311
18477
 
18478
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fontsettingsToCssVariable", function() { return _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_13__["fontsettingsToCssVariable"]; });
18479
+
18480
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fontsettingsFromCssVariable", function() { return _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_13__["fontsettingsFromCssVariable"]; });
18481
+
18312
18482
  /* harmony import */ var _components_tabs_theme_custom_questions_element_settings__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../components/tabs/theme-custom-questions/element-settings */ "./src/components/tabs/theme-custom-questions/element-settings.ts");
18313
- /* empty/unused harmony star reexport *//* harmony import */ var _components_tabs_theme__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../components/tabs/theme */ "./src/components/tabs/theme.ts");
18483
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "elementSettingsToCssVariable", function() { return _components_tabs_theme_custom_questions_element_settings__WEBPACK_IMPORTED_MODULE_14__["elementSettingsToCssVariable"]; });
18484
+
18485
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "elementSettingsFromCssVariable", function() { return _components_tabs_theme_custom_questions_element_settings__WEBPACK_IMPORTED_MODULE_14__["elementSettingsFromCssVariable"]; });
18486
+
18487
+ /* harmony import */ var _components_tabs_theme__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../components/tabs/theme */ "./src/components/tabs/theme.ts");
18314
18488
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Themes", function() { return _components_tabs_theme__WEBPACK_IMPORTED_MODULE_15__["Themes"]; });
18315
18489
 
18316
18490
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PredefinedThemes", function() { return _components_tabs_theme__WEBPACK_IMPORTED_MODULE_15__["PredefinedThemes"]; });
@@ -18560,8 +18734,16 @@ __webpack_require__.r(__webpack_exports__);
18560
18734
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return _svgbundle__WEBPACK_IMPORTED_MODULE_57__["svgBundle"]; });
18561
18735
 
18562
18736
  /* harmony import */ var _textWorker__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../textWorker */ "./src/textWorker.ts");
18737
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorkerError", function() { return _textWorker__WEBPACK_IMPORTED_MODULE_58__["SurveyTextWorkerError"]; });
18738
+
18739
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorkerParserError", function() { return _textWorker__WEBPACK_IMPORTED_MODULE_58__["SurveyTextWorkerParserError"]; });
18740
+
18741
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorkerJsonError", function() { return _textWorker__WEBPACK_IMPORTED_MODULE_58__["SurveyTextWorkerJsonError"]; });
18742
+
18563
18743
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorker", function() { return _textWorker__WEBPACK_IMPORTED_MODULE_58__["SurveyTextWorker"]; });
18564
18744
 
18745
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JsonDuplicateNameError", function() { return _textWorker__WEBPACK_IMPORTED_MODULE_58__["JsonDuplicateNameError"]; });
18746
+
18565
18747
  /* harmony import */ var _toolbox__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../toolbox */ "./src/toolbox.ts");
18566
18748
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxCategory", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_59__["QuestionToolboxCategory"]; });
18567
18749
 
@@ -18668,7 +18850,7 @@ __webpack_require__.r(__webpack_exports__);
18668
18850
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! survey-core */ "survey-core");
18669
18851
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_70___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_70__);
18670
18852
  var Version;
18671
- Version = "" + "1.9.96";
18853
+ Version = "" + "1.9.98";
18672
18854
  //should be loaded before other styles for easier override
18673
18855
  __webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
18674
18856
 
@@ -18757,7 +18939,7 @@ __webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
18757
18939
  __webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
18758
18940
 
18759
18941
  survey_core__WEBPACK_IMPORTED_MODULE_70__["settings"].supportCreatorV2 = true;
18760
- Object(survey_core__WEBPACK_IMPORTED_MODULE_70__["checkLibraryVersion"])("" + "1.9.96", "survey-creator-core");
18942
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_70__["checkLibraryVersion"])("" + "1.9.98", "survey-creator-core");
18761
18943
 
18762
18944
 
18763
18945
  /***/ }),
@@ -21036,8 +21218,8 @@ var enStrings = {
21036
21218
  expressionInvalid: "The logic expression is empty or invalid. Please correct it.",
21037
21219
  noActionError: "Please, add at least one action.",
21038
21220
  actionInvalid: "Please, fix problems in your action(s).",
21039
- uncompletedRule_title: "Leave the tab?",
21040
- uncompletedRule_text: "One or more logical rules are uncompleted. If you leave the tab, those changes that cannot be applied will vanish. Are you sure you want to leave?",
21221
+ uncompletedRule_title: "Logical rules are incomplete",
21222
+ uncompletedRule_text: "You have not completed some of the logical rules. If you leave the tab now, the changes will be lost. Do you still want to leave the tab without completing the changes?",
21041
21223
  uncompletedRule_apply: "Yes",
21042
21224
  uncompletedRule_cancel: "No, I want to complete the rules",
21043
21225
  expressionSetup: "",
@@ -21347,7 +21529,7 @@ var enStrings = {
21347
21529
  readOnly: "Read-only",
21348
21530
  enableIf: "Editable if",
21349
21531
  emptyRowsText: "\"No rows\" message",
21350
- size: "Input size (in characters)",
21532
+ size: "Input field size (in characters)",
21351
21533
  separateSpecialChoices: "Separate special choices (None, Other, Select All)",
21352
21534
  choicesFromQuestion: "Copy choices from the following question",
21353
21535
  choicesFromQuestionMode: "Which choices to copy?",
@@ -21677,6 +21859,7 @@ var enStrings = {
21677
21859
  },
21678
21860
  pehelp: {
21679
21861
  cookieName: "Cookies prevent users from filling out the same survey twice.",
21862
+ size: "Resizes the visible area of the input field. Please use the <b>Validation → Maximum length</b> setting to limit the input length.",
21680
21863
  format: "Use {0} as a placeholder for the actual value.",
21681
21864
  totalText: "Visible only when at least one column has Total type or Total expression.",
21682
21865
  acceptedTypes: "Refer to the [accept](https://www.w3schools.com/tags/att_input_accept.asp) attribute description for more information.",
@@ -21798,6 +21981,8 @@ var enStrings = {
21798
21981
  "backgroundImageFitCover": "Cover",
21799
21982
  "backgroundImageFitContain": "Contain",
21800
21983
  "backgroundOpacity": "Opacity",
21984
+ "backgroundImageAttachmentFixed": "Fixed",
21985
+ "backgroundImageAttachmentScroll": "Scroll",
21801
21986
  "panelBackgroundTransparency": "Panel Background Transparency",
21802
21987
  "questionBackgroundTransparency": "Question Background Transparency",
21803
21988
  questionPanel: "Question Panel",
@@ -21834,6 +22019,8 @@ var enStrings = {
21834
22019
  opacity: "Opacity",
21835
22020
  boxShadowBlur: "Blur",
21836
22021
  boxShadowSpread: "Spread",
22022
+ boxShadowDrop: "Drop",
22023
+ boxShadowInner: "Inner",
21837
22024
  questionShadow: "Question Panel Border / Shadow",
21838
22025
  editorShadow: "Editor Border / Shadow",
21839
22026
  names: {
@@ -22145,6 +22332,8 @@ var UndoRedoController = /** @class */ (function (_super) {
22145
22332
  }
22146
22333
  this.undoRedoManager = new _undo_redo_manager__WEBPACK_IMPORTED_MODULE_3__["UndoRedoManager"]();
22147
22334
  this.undoRedoManager.changesFinishedCallback = function (actions, isUndo) {
22335
+ if (_this.notifySurveyMoveItem(actions, isUndo))
22336
+ return;
22148
22337
  for (var i = actions.length - 1; i >= 0; i--) {
22149
22338
  var action = actions[i];
22150
22339
  if (!!action) {
@@ -22162,6 +22351,34 @@ var UndoRedoController = /** @class */ (function (_super) {
22162
22351
  _this.updateUndeRedoActions();
22163
22352
  };
22164
22353
  };
22354
+ UndoRedoController.prototype.notifySurveyMoveItem = function (actions, isUndo) {
22355
+ if (actions.length !== 2)
22356
+ false;
22357
+ var act1 = actions[0];
22358
+ var act2 = actions[1];
22359
+ if (!act1 || !act2)
22360
+ return false;
22361
+ var changes1 = act1.getChanges(isUndo);
22362
+ var changes2 = act2.getChanges(isUndo);
22363
+ if (changes1.object !== changes2.object || changes1.propertyName !== changes2.propertyName)
22364
+ return false;
22365
+ var act1Del = act1.getDeletedElement(isUndo);
22366
+ var act1Ins = act1.getInsertedElement(isUndo);
22367
+ var act2Del = act2.getDeletedElement(isUndo);
22368
+ var act2Ins = act2.getInsertedElement(isUndo);
22369
+ if (act1Del === act1Ins || (act1Del !== act2Ins && act1Ins !== act2Del))
22370
+ return false;
22371
+ var indexFrom = act1Del ? act1.getIndex() : act2.getIndex();
22372
+ var indexTo = act1Ins ? act1.getIndex() : act2.getIndex();
22373
+ this.creator.notifySurveyItemMoved({
22374
+ arrayName: changes1.propertyName,
22375
+ parent: changes1.object,
22376
+ element: act1Del ? act1Del : act1Ins,
22377
+ indexFrom: !isUndo ? indexFrom : indexTo,
22378
+ indexTo: !isUndo ? indexTo : indexFrom
22379
+ });
22380
+ return true;
22381
+ };
22165
22382
  UndoRedoController.prototype.selectElementAfterUndo = function () {
22166
22383
  this.selectElementAfterUndoCore(this.creator.selectedElement);
22167
22384
  };
@@ -22480,6 +22697,9 @@ var UndoRedoAction = /** @class */ (function () {
22480
22697
  newValue: isUndo ? this._oldValue : this._newValue
22481
22698
  };
22482
22699
  };
22700
+ UndoRedoAction.prototype.getDeletedElement = function (isUndo) { return undefined; };
22701
+ UndoRedoAction.prototype.getInsertedElement = function (isUndo) { return undefined; };
22702
+ UndoRedoAction.prototype.getIndex = function () { return -1; };
22483
22703
  UndoRedoAction.prototype.tryMerge = function (sender, propertyName, newValue) {
22484
22704
  if (sender !== this._sender || propertyName !== this._propertyName || newValue == this._oldValue)
22485
22705
  return false;
@@ -22525,6 +22745,15 @@ var UndoRedoArrayAction = /** @class */ (function () {
22525
22745
  newValue: this._itemsToAdd
22526
22746
  };
22527
22747
  };
22748
+ UndoRedoArrayAction.prototype.getDeletedElement = function (isUndo) { return this.getMovedElement(this._deletedItems, this._itemsToAdd, isUndo); };
22749
+ UndoRedoArrayAction.prototype.getInsertedElement = function (isUndo) { return this.getMovedElement(this._itemsToAdd, this._deletedItems, isUndo); };
22750
+ UndoRedoArrayAction.prototype.getIndex = function () { return this._index; };
22751
+ UndoRedoArrayAction.prototype.getMovedElement = function (items1, items2, isUndo) {
22752
+ var items = isUndo ? items2 : items1;
22753
+ if (Array.isArray(items) && items.length === 1)
22754
+ return items[0];
22755
+ return undefined;
22756
+ };
22528
22757
  UndoRedoArrayAction.prototype.tryMerge = function (sender, propertyName, newValue) {
22529
22758
  return false;
22530
22759
  };
@@ -22733,9 +22962,12 @@ var propertyGridCss = {
22733
22962
  small: "spg-row__question--small sd-row__question--small",
22734
22963
  control: "spg-input spg-dropdown sd-input sd-dropdown",
22735
22964
  filterStringInput: "sd-dropdown__filter-string-input spg-dropdown__filter-string-input",
22736
- selectWrapper: "",
22737
22965
  other: "spg-comment spg-question__other",
22738
- onError: "spg-input--error"
22966
+ onError: "spg-input--error",
22967
+ selectWrapper: "sv-dropdown_select-wrapper spg-dropdown_select-wrapper",
22968
+ chevronButton: "sd-dropdown_chevron-button spg-dropdown_chevron-button",
22969
+ chevronButtonSvg: "sd-dropdown_chevron-button-svg",
22970
+ chevronButtonIconId: "icon-chevron",
22739
22971
  },
22740
22972
  imagepicker: {
22741
22973
  root: "spg-imagepicker",
@@ -24114,38 +24346,39 @@ var ConditionEditor = /** @class */ (function (_super) {
24114
24346
  this.updateQuestionsWidth(panel);
24115
24347
  };
24116
24348
  ConditionEditor.prototype.onUpdateQuestionCssClasses = function (options) {
24117
- options.cssClasses.answered = "svc-logic-question--answered";
24118
- if (options.question.name === "conjunction") {
24119
- options.question.allowRootStyle = false;
24120
- options.cssClasses.control += " svc-logic-operator svc-logic-operator--conjunction ";
24121
- }
24122
- if (options.question.name === "questionName") {
24123
- options.question.allowRootStyle = false;
24124
- options.cssClasses.control += " svc-logic-operator svc-logic-operator--question";
24125
- options.cssClasses.error.root = "svc-logic-operator__error";
24126
- options.cssClasses.onError = "svc-logic-operator--error";
24127
- }
24128
- if (options.question.name === "operator") {
24129
- options.question.allowRootStyle = false;
24130
- options.cssClasses.control += " svc-logic-operator svc-logic-operator--operator";
24131
- }
24132
- if (options.question.name === "removeAction") {
24133
- options.question.allowRootStyle = false;
24134
- options.cssClasses.mainRoot += " svc-logic-condition-remove-question";
24135
- }
24136
- // options.cssClasses.mainRoot += "sd-question sd-row__question";
24137
- if (options.question.name === "questionValue" || options.question.isContentElement) {
24138
- Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assignDefaultV2Classes"])(options.cssClasses, options.question.getType());
24139
- options.cssClasses.mainRoot += " svc-logic-question-value sd-element--with-frame";
24140
- options.cssClasses.error.root = "svc-logic-operator__error";
24141
- }
24142
- if (options.question.name === "panel") {
24143
- options.cssClasses.root += " svc-logic-paneldynamic";
24144
- options.cssClasses.buttonAdd += " svc-logic-operator--operator";
24145
- options.cssClasses.iconRemove = "svc-icon-remove";
24146
- options.cssClasses.buttonRemove = "svc-logic-paneldynamic__button svc-logic-paneldynamic__remove-btn";
24147
- options.cssClasses.buttonRemoveRight = "svc-logic-paneldynamic__remove-btn--right";
24148
- options.cssClasses.buttonRemoveText = "svc-logic-paneldynamic__button-remove-text";
24349
+ var cssClasses = options.cssClasses;
24350
+ var question = options.question;
24351
+ cssClasses.answered = "svc-logic-question--answered";
24352
+ if (question.name === "conjunction") {
24353
+ question.allowRootStyle = false;
24354
+ cssClasses.control += " svc-logic-operator svc-logic-operator--conjunction ";
24355
+ }
24356
+ if (question.name === "questionName") {
24357
+ question.allowRootStyle = false;
24358
+ cssClasses.control += " svc-logic-operator svc-logic-operator--question";
24359
+ cssClasses.error.root = "svc-logic-operator__error";
24360
+ cssClasses.onError = "svc-logic-operator--error";
24361
+ }
24362
+ if (question.name === "operator") {
24363
+ question.allowRootStyle = false;
24364
+ cssClasses.control += " svc-logic-operator svc-logic-operator--operator";
24365
+ }
24366
+ if (question.name === "removeAction") {
24367
+ question.allowRootStyle = false;
24368
+ cssClasses.mainRoot += " svc-logic-condition-remove-question";
24369
+ }
24370
+ if (question.name === "questionValue" || question.isContentElement) {
24371
+ Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assignDefaultV2Classes"])(cssClasses, question.getType());
24372
+ cssClasses.mainRoot += " svc-logic-question-value sd-element--with-frame";
24373
+ cssClasses.error.root = "svc-logic-operator__error";
24374
+ }
24375
+ if (question.name === "panel") {
24376
+ cssClasses.root += " svc-logic-paneldynamic";
24377
+ cssClasses.buttonAdd += " svc-logic-operator--operator";
24378
+ cssClasses.iconRemove = "svc-icon-remove";
24379
+ cssClasses.buttonRemove = "svc-logic-paneldynamic__button svc-logic-paneldynamic__remove-btn";
24380
+ cssClasses.buttonRemoveRight = "svc-logic-paneldynamic__remove-btn--right";
24381
+ cssClasses.buttonRemoveText = "svc-logic-paneldynamic__button-remove-text";
24149
24382
  }
24150
24383
  };
24151
24384
  ConditionEditor.prototype.onValueChanged = function (options) {
@@ -24755,6 +24988,12 @@ var PropertyGridEditorCollection = {
24755
24988
  res.onCreated(obj, question, prop, options);
24756
24989
  }
24757
24990
  },
24991
+ onSetup: function (obj, question, prop, options) {
24992
+ var res = this.getEditor(prop);
24993
+ if (!!res && !!res.onSetup) {
24994
+ res.onSetup(obj, question, prop, options);
24995
+ }
24996
+ },
24758
24997
  validateValue: function (obj, question, prop, value) {
24759
24998
  var res = this.getEditor(prop);
24760
24999
  if (!!res && !!res.validateValue) {
@@ -25270,6 +25509,9 @@ var PropertyGridModel = /** @class */ (function () {
25270
25509
  return;
25271
25510
  new PropertyJSONGenerator(this.obj, this.options).setupObjPanel(page, false);
25272
25511
  this.survey.addPage(page);
25512
+ this.survey.getAllQuestions().forEach(function (q) {
25513
+ PropertyGridEditorCollection.onSetup(_this.obj, q, q.property, _this.options);
25514
+ });
25273
25515
  this.survey.checkErrorsMode = "onValueChanging";
25274
25516
  this.survey.onValueChanged.add(function (sender, options) {
25275
25517
  _this.onValueChanged(options);
@@ -25407,13 +25649,15 @@ var PropertyGridModel = /** @class */ (function () {
25407
25649
  };
25408
25650
  PropertyGridModel.prototype.validateQuestionValue = function (obj, question, prop, val) {
25409
25651
  if (question.isRequired && (survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isValueEmpty(val) || question["valueChangingEmpty"]))
25410
- return _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.propertyIsEmpty");
25652
+ return this.getErrorTextOnValidate(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.propertyIsEmpty"), prop.name, obj, val);
25411
25653
  if (this.isPropNameInValid(obj, prop, val) || question["nameHasError"])
25412
- return _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.propertyNameIsIncorrect");
25654
+ return this.getErrorTextOnValidate(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.propertyNameIsIncorrect"), prop.name, obj, val);
25413
25655
  var editorError = PropertyGridEditorCollection.validateValue(obj, question, prop, val);
25414
- if (!!editorError)
25415
- return editorError;
25416
- return this.options.onGetErrorTextOnValidationCallback(prop.name, obj, val);
25656
+ return this.getErrorTextOnValidate(editorError, prop.name, obj, val);
25657
+ };
25658
+ PropertyGridModel.prototype.getErrorTextOnValidate = function (defaultError, propName, obj, val) {
25659
+ var customError = this.options.onGetErrorTextOnValidationCallback(propName, obj, val);
25660
+ return !!customError ? customError : defaultError;
25417
25661
  };
25418
25662
  PropertyGridModel.prototype.onValidateQuestion = function (options) {
25419
25663
  var q = options.question;
@@ -26249,6 +26493,13 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
26249
26493
  };
26250
26494
  this.setupMatrixQuestion(obj, question, prop);
26251
26495
  };
26496
+ PropertyGridEditorMatrix.prototype.onSetup = function (obj, question, prop, options) {
26497
+ var matrix = question;
26498
+ if (matrix.allowRowsDragAndDrop && matrix.dragDropMatrixRows) {
26499
+ matrix.dragDropMatrixRows.onDragStart.add(function () { options.startUndoRedoTransaction(); });
26500
+ matrix.dragDropMatrixRows.onDragEnd.add(function () { options.stopUndoRedoTransaction(); });
26501
+ }
26502
+ };
26252
26503
  PropertyGridEditorMatrix.prototype.initializeAcceptedTypes = function (obj, cellQuestion) {
26253
26504
  if (obj.getType() === "imagepicker" && cellQuestion.name == "imageLink" && cellQuestion.getType() == "fileedit") {
26254
26505
  obj.registerFunctionOnPropertyValueChanged("contentMode", function (newValue) {
@@ -30144,12 +30395,16 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["SvgRegistry"].registerIconsFromFolder(
30144
30395
  /*!***************************!*\
30145
30396
  !*** ./src/textWorker.ts ***!
30146
30397
  \***************************/
30147
- /*! exports provided: SurveyTextWorker */
30398
+ /*! exports provided: SurveyTextWorkerError, SurveyTextWorkerParserError, SurveyTextWorkerJsonError, SurveyTextWorker, JsonDuplicateNameError */
30148
30399
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
30149
30400
 
30150
30401
  "use strict";
30151
30402
  __webpack_require__.r(__webpack_exports__);
30403
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorkerError", function() { return SurveyTextWorkerError; });
30404
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorkerParserError", function() { return SurveyTextWorkerParserError; });
30405
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorkerJsonError", function() { return SurveyTextWorkerJsonError; });
30152
30406
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorker", function() { return SurveyTextWorker; });
30407
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JsonDuplicateNameError", function() { return JsonDuplicateNameError; });
30153
30408
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
30154
30409
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
30155
30410
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
@@ -30167,6 +30422,68 @@ var SurveyForTextWorker = /** @class */ (function (_super) {
30167
30422
  }
30168
30423
  return SurveyForTextWorker;
30169
30424
  }(survey_core__WEBPACK_IMPORTED_MODULE_1__["SurveyModel"]));
30425
+ var SurveyTextWorkerError = /** @class */ (function () {
30426
+ function SurveyTextWorkerError(at, text) {
30427
+ this.at = at;
30428
+ this.text = text;
30429
+ this.rowAt = -1;
30430
+ this.columnAt = -1;
30431
+ }
30432
+ return SurveyTextWorkerError;
30433
+ }());
30434
+
30435
+ var SurveyTextWorkerParserError = /** @class */ (function (_super) {
30436
+ Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyTextWorkerParserError, _super);
30437
+ function SurveyTextWorkerParserError() {
30438
+ return _super !== null && _super.apply(this, arguments) || this;
30439
+ }
30440
+ SurveyTextWorkerParserError.prototype.getErrorType = function () { return "parseerror"; };
30441
+ return SurveyTextWorkerParserError;
30442
+ }(SurveyTextWorkerError));
30443
+
30444
+ var SurveyTextWorkerJsonError = /** @class */ (function (_super) {
30445
+ Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyTextWorkerJsonError, _super);
30446
+ function SurveyTextWorkerJsonError(jsonError) {
30447
+ var _this = _super.call(this, jsonError.at, jsonError.getFullDescription()) || this;
30448
+ _this.elementStart = jsonError.at;
30449
+ _this.elementEnd = jsonError.end;
30450
+ //this.element = jsonError.element;
30451
+ _this.errorType = jsonError.type;
30452
+ _this.propertyName = jsonError["propertyName"];
30453
+ return _this;
30454
+ }
30455
+ SurveyTextWorkerJsonError.prototype.getErrorType = function () { return this.errorType; };
30456
+ SurveyTextWorkerJsonError.prototype.correctAt = function (text) {
30457
+ if (this.at < 0)
30458
+ return;
30459
+ if (this.propertyName && this.errorType === "unknownproperty") {
30460
+ this.at = this.getCorrectAtForUnknowProperty(text);
30461
+ }
30462
+ if (this.errorType === "duplicatename") {
30463
+ this.at = this.getCorrectAtForDuplicateName(text);
30464
+ }
30465
+ };
30466
+ SurveyTextWorkerJsonError.prototype.getCorrectAtForUnknowProperty = function (text) {
30467
+ var newAt = this.getNewIndex(text, this.propertyName);
30468
+ return newAt > -1 ? newAt : this.at;
30469
+ };
30470
+ SurveyTextWorkerJsonError.prototype.getCorrectAtForDuplicateName = function (text) {
30471
+ var newAt = this.getNewIndex(text, "name:");
30472
+ if (newAt < 0) {
30473
+ newAt = this.getNewIndex(text, "\"name\":");
30474
+ }
30475
+ return newAt > -1 ? newAt : this.at;
30476
+ };
30477
+ SurveyTextWorkerJsonError.prototype.getNewIndex = function (text, findText) {
30478
+ var index = text.indexOf(findText, this.at);
30479
+ if (index > -1 && (this.elementEnd < 0 || index < this.elementEnd)) {
30480
+ return index;
30481
+ }
30482
+ return -1;
30483
+ };
30484
+ return SurveyTextWorkerJsonError;
30485
+ }(SurveyTextWorkerError));
30486
+
30170
30487
  var SurveyTextWorker = /** @class */ (function () {
30171
30488
  function SurveyTextWorker(text) {
30172
30489
  this.text = text;
@@ -30191,32 +30508,27 @@ var SurveyTextWorker = /** @class */ (function () {
30191
30508
  configurable: true
30192
30509
  });
30193
30510
  SurveyTextWorker.prototype.process = function () {
30511
+ var _this = this;
30194
30512
  try {
30195
30513
  this.jsonValue = new _json5__WEBPACK_IMPORTED_MODULE_2__["SurveyJSON5"](1).parse(this.text);
30196
30514
  }
30197
30515
  catch (error) {
30198
- this.errors.push({
30199
- pos: { start: error.at, end: -1 },
30200
- text: error.message,
30201
- });
30516
+ this.errors.push(new SurveyTextWorkerParserError(error.at, error.message));
30202
30517
  }
30203
30518
  if (this.jsonValue != null) {
30204
30519
  this.updateJsonPositions(this.jsonValue);
30205
- var pureJsonValue = new _json5__WEBPACK_IMPORTED_MODULE_2__["SurveyJSON5"]().parse(this.text);
30206
- this.surveyValue = new SurveyForTextWorker(pureJsonValue);
30207
- if (this.surveyValue.jsonErrors != null) {
30208
- for (var i = 0; i < this.surveyValue.jsonErrors.length; i++) {
30209
- var error = this.surveyValue.jsonErrors[i];
30210
- this.errors.push({
30211
- pos: { start: error.at, end: -1 },
30212
- text: error.getFullDescription(),
30213
- });
30520
+ this.surveyValue = new SurveyForTextWorker(this.jsonValue);
30521
+ var jsonErrors = this.surveyValue.jsonErrors;
30522
+ if (Array.isArray(jsonErrors)) {
30523
+ for (var i = 0; i < jsonErrors.length; i++) {
30524
+ var error = new SurveyTextWorkerJsonError(jsonErrors[i]);
30525
+ error.correctAt(this.text);
30526
+ this.errors.push(error);
30214
30527
  }
30215
30528
  }
30529
+ this.getDuplicatedNamesErrors().forEach(function (error) { return _this.errors.push(error); });
30216
30530
  }
30217
- this.surveyObjects = this.createSurveyObjects();
30218
- this.setEditorPositionByChartAt(this.surveyObjects);
30219
- this.setEditorPositionByChartAt(this.errors);
30531
+ this.setErrorsPositionByChartAt();
30220
30532
  };
30221
30533
  SurveyTextWorker.prototype.updateJsonPositions = function (jsonObj) {
30222
30534
  jsonObj["pos"]["self"] = jsonObj;
@@ -30228,41 +30540,25 @@ var SurveyTextWorker = /** @class */ (function () {
30228
30540
  }
30229
30541
  }
30230
30542
  };
30231
- SurveyTextWorker.prototype.createSurveyObjects = function () {
30232
- var result = [];
30233
- if (this.surveyValue == null)
30234
- return result;
30235
- for (var i = 0; i < this.surveyValue.pages.length; i++) {
30236
- var page = this.surveyValue.pages[i];
30237
- if (i == 0 && !page["pos"]) {
30238
- page["pos"] = this.surveyValue["pos"];
30239
- }
30240
- result.push(page);
30241
- for (var j = 0; j < page.questions.length; j++) {
30242
- result.push(page.questions[j]);
30243
- }
30244
- }
30245
- return result;
30246
- };
30247
- SurveyTextWorker.prototype.setEditorPositionByChartAt = function (objects) {
30248
- if (objects == null || objects.length == 0)
30543
+ SurveyTextWorker.prototype.setErrorsPositionByChartAt = function () {
30544
+ if (this.errors.length === 0)
30249
30545
  return;
30546
+ this.errors.sort(function (el1, el2) {
30547
+ if (el1.at > el2.at)
30548
+ return 1;
30549
+ if (el1.at < el2.at)
30550
+ return -1;
30551
+ return 0;
30552
+ });
30250
30553
  var position = { row: 0, column: 0 };
30251
- var atObjectsArray = this.getAtArray(objects);
30252
30554
  var startAt = 0;
30253
- for (var i = 0; i < atObjectsArray.length; i++) {
30254
- var at = atObjectsArray[i].at;
30555
+ for (var i = 0; i < this.errors.length; i++) {
30556
+ var at = this.errors[i].at;
30255
30557
  position = this.getPostionByChartAt(position, startAt, at);
30256
- var obj = atObjectsArray[i].obj;
30257
- if (!obj.position)
30258
- obj.position = {};
30259
- if (at == obj.pos.start) {
30260
- obj.position.start = position;
30261
- }
30262
- else {
30263
- if (at == obj.pos.end) {
30264
- obj.position.end = position;
30265
- }
30558
+ var error = this.errors[i];
30559
+ if (at == error.at) {
30560
+ error.columnAt = position.column;
30561
+ error.rowAt = position.row;
30266
30562
  }
30267
30563
  startAt = at;
30268
30564
  }
@@ -30282,29 +30578,58 @@ var SurveyTextWorker = /** @class */ (function () {
30282
30578
  }
30283
30579
  return result;
30284
30580
  };
30285
- SurveyTextWorker.prototype.getAtArray = function (objects) {
30286
- var result = [];
30287
- for (var i = 0; i < objects.length; i++) {
30288
- var obj = objects[i];
30289
- var pos = obj.pos;
30290
- if (!pos)
30291
- continue;
30292
- result.push({ at: pos.start, obj: obj });
30293
- if (pos.end > 0) {
30294
- result.push({ at: pos.end, obj: obj });
30295
- }
30296
- }
30297
- return result.sort(function (el1, el2) {
30298
- if (el1.at > el2.at)
30299
- return 1;
30300
- if (el1.at < el2.at)
30301
- return -1;
30302
- return 0;
30581
+ SurveyTextWorker.prototype.getDuplicatedNamesErrors = function () {
30582
+ var _this = this;
30583
+ var res = [];
30584
+ this.getDuplicatedElements().forEach(function (el) {
30585
+ var error = new SurveyTextWorkerJsonError(_this.createDuplicatedError(el));
30586
+ error.correctAt(_this.text);
30587
+ if (error)
30588
+ res.push(error);
30303
30589
  });
30590
+ return res;
30591
+ };
30592
+ SurveyTextWorker.prototype.getDuplicatedElements = function () {
30593
+ var _this = this;
30594
+ var res = [];
30595
+ var names = {};
30596
+ this.survey.pages.forEach(function (p) { return _this.checkDuplicatedElement(p, names, res); });
30597
+ this.survey.getAllPanels().forEach(function (p) { return _this.checkDuplicatedElement(p, names, res); });
30598
+ this.survey.getAllQuestions().forEach(function (q) { return _this.checkDuplicatedElement(q, names, res); });
30599
+ return res;
30600
+ };
30601
+ SurveyTextWorker.prototype.checkDuplicatedElement = function (el, names, duplicates) {
30602
+ var name = el["name"];
30603
+ if (names[name]) {
30604
+ duplicates.push(el);
30605
+ }
30606
+ else {
30607
+ names[name] = true;
30608
+ }
30609
+ };
30610
+ SurveyTextWorker.prototype.createDuplicatedError = function (el) {
30611
+ var pos = el["pos"];
30612
+ if (!pos)
30613
+ return undefined;
30614
+ var error = new survey_core__WEBPACK_IMPORTED_MODULE_1__["JsonError"]("duplicatename", "The name: '" + el["name"] + "' is duplicated.");
30615
+ error.at = pos.start;
30616
+ error.end = pos.end;
30617
+ error.element = el;
30618
+ return error;
30304
30619
  };
30305
30620
  return SurveyTextWorker;
30306
30621
  }());
30307
30622
 
30623
+ var JsonDuplicateNameError = /** @class */ (function (_super) {
30624
+ Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(JsonDuplicateNameError, _super);
30625
+ function JsonDuplicateNameError(el) {
30626
+ var _this = _super.call(this, "duplicatename", "The name: '" + el["name"] + "' is duplicated.") || this;
30627
+ _this.element = el;
30628
+ return _this;
30629
+ }
30630
+ return JsonDuplicateNameError;
30631
+ }(survey_core__WEBPACK_IMPORTED_MODULE_1__["JsonError"]));
30632
+
30308
30633
 
30309
30634
 
30310
30635
  /***/ }),