survey-creator-core 1.9.99 → 1.9.101
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.
- package/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +52 -5
- package/survey-creator-core.fontless.css +51 -4
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +6 -6
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +458 -312
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +7 -7
- package/survey-creator-core.min.js +3 -3
- package/typings/components/tabs/json-editor-ace.d.ts +1 -0
- package/typings/components/tabs/json-editor-plugin.d.ts +8 -2
- package/typings/components/tabs/json-editor-textarea.d.ts +2 -0
- package/typings/creator-base.d.ts +79 -60
- package/typings/creator-options.d.ts +1 -1
- package/typings/creator-settings.d.ts +2 -0
- package/typings/editorLocalization.d.ts +9 -8
- package/typings/localization/english.d.ts +9 -8
- package/typings/property-grid/matrices.d.ts +3 -3
- package/typings/survey-helper.d.ts +2 -1
- package/typings/textWorker.d.ts +16 -3
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.9.
|
|
2
|
+
* SurveyJS Creator v1.9.101
|
|
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
|
|
@@ -106,10 +106,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
106
106
|
/*!******************************!*\
|
|
107
107
|
!*** ./imported-themes.json ***!
|
|
108
108
|
\******************************/
|
|
109
|
-
/*! exports provided: default,
|
|
109
|
+
/*! exports provided: default, sharp, borderless, flat, plain, doubleborder, layered, solid, threedimensional, contrast, default-dark, sharp-dark, borderless-dark, flat-dark, plain-dark, doubleborder-dark, layered-dark, solid-dark, threedimensional-dark, contrast-dark, default-lw, sharp-lw, borderless-lw, flat-lw, doubleborder-lw, layered-lw, solid-lw, threedimensional-lw, contrast-lw, default-dark-lw, sharp-dark-lw, borderless-dark-lw, flat-dark-lw, doubleborder-dark-lw, layered-dark-lw, solid-dark-lw, contrast-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-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\"}}");
|
|
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)\"},\"sharp\":{\"--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)\"},\"borderless\":{\"--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)\"},\"flat\":{\"--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)\"},\"plain\":{\"--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)\"},\"doubleborder\":{\"--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)\"},\"layered\":{\"--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)\"},\"solid\":{\"--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)\"},\"threedimensional\":{\"--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)\"},\"contrast\":{\"--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)\"},\"sharp-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)\"},\"borderless-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)\"},\"flat-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)\"},\"plain-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)\"},\"doubleborder-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)\"},\"layered-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)\"},\"solid-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)\"},\"threedimensional-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)\"},\"contrast-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)\"},\"sharp-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(238, 238, 238, 1)\"},\"borderless-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)\"},\"flat-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(246, 246, 246, 1)\"},\"doubleborder-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(245, 245, 245, 1)\"},\"layered-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\"},\"solid-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)\"},\"threedimensional-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(248, 248, 248, 1)\"},\"contrast-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\"},\"default-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\"},\"sharp-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(33, 33, 33, 1)\"},\"borderless-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(43, 48, 63, 1)\"},\"flat-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\"},\"doubleborder-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(52, 52, 52, 1)\"},\"layered-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(39, 40, 50, 1)\"},\"solid-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(53, 55, 63, 1)\"},\"contrast-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
|
|
|
@@ -1193,13 +1193,20 @@ var MatrixCellWrapperViewModel = /** @class */ (function (_super) {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
MatrixCellWrapperViewModel.prototype.editQuestion = function (model, event) {
|
|
1195
1195
|
var editSurvey = new MatrixCellWrapperEditSurvey(model.creator, model.question);
|
|
1196
|
-
survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1196
|
+
survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].showDialog({
|
|
1197
|
+
componentName: "svc-question-editor-content",
|
|
1198
|
+
data: {
|
|
1199
|
+
survey: editSurvey.survey,
|
|
1200
|
+
creator: this.creator
|
|
1201
|
+
},
|
|
1202
|
+
onApply: function () {
|
|
1203
|
+
editSurvey.apply();
|
|
1204
|
+
return true;
|
|
1205
|
+
},
|
|
1206
|
+
cssClass: "svc-matrix-cell__popup",
|
|
1207
|
+
title: model.question.name,
|
|
1208
|
+
displayMode: this.creator.isMobileView ? "overlay" : "popup"
|
|
1209
|
+
}, model.creator.rootElement);
|
|
1203
1210
|
event.stopPropagation();
|
|
1204
1211
|
model.creator.selectElement(model.column);
|
|
1205
1212
|
};
|
|
@@ -5151,7 +5158,15 @@ var AceJsonEditorModel = /** @class */ (function (_super) {
|
|
|
5151
5158
|
return annotations;
|
|
5152
5159
|
};
|
|
5153
5160
|
AceJsonEditorModel.prototype.setErrors = function (errors) {
|
|
5161
|
+
var _this = this;
|
|
5162
|
+
_super.prototype.setErrors.call(this, errors);
|
|
5154
5163
|
this.aceEditor.getSession().setAnnotations(this.createAnnotations(errors));
|
|
5164
|
+
setTimeout(function () { return _this.aceEditor.resize(); });
|
|
5165
|
+
};
|
|
5166
|
+
AceJsonEditorModel.prototype.gotoError = function (at, row, column) {
|
|
5167
|
+
this.aceEditor.focus();
|
|
5168
|
+
this.aceEditor.renderer.scrollCursorIntoView({ row: row + 1, column: column + 1 }, 0.5);
|
|
5169
|
+
this.aceEditor.gotoLine(row + 1, column + 1);
|
|
5155
5170
|
};
|
|
5156
5171
|
AceJsonEditorModel.prototype.onEditorActivated = function () {
|
|
5157
5172
|
this.aceEditor.getSession().getUndoManager().markClean();
|
|
@@ -5206,6 +5221,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5206
5221
|
|
|
5207
5222
|
|
|
5208
5223
|
|
|
5224
|
+
var maxErrorLength = 150;
|
|
5209
5225
|
var JsonEditorBaseModel = /** @class */ (function (_super) {
|
|
5210
5226
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(JsonEditorBaseModel, _super);
|
|
5211
5227
|
function JsonEditorBaseModel(creator) {
|
|
@@ -5249,6 +5265,61 @@ var JsonEditorBaseModel = /** @class */ (function (_super) {
|
|
|
5249
5265
|
}
|
|
5250
5266
|
}
|
|
5251
5267
|
};
|
|
5268
|
+
Object.defineProperty(JsonEditorBaseModel.prototype, "errorList", {
|
|
5269
|
+
get: function () {
|
|
5270
|
+
var _this = this;
|
|
5271
|
+
if (!this.errorListValue) {
|
|
5272
|
+
this.errorListValue = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ListModel"]([], function (action) {
|
|
5273
|
+
var error = action.data;
|
|
5274
|
+
if (!!error)
|
|
5275
|
+
_this.gotoError(error.at, error.rowAt, error.columnAt);
|
|
5276
|
+
}, false);
|
|
5277
|
+
this.errorListValue.searchEnabled = false;
|
|
5278
|
+
this.errorListValue.cssClasses = {
|
|
5279
|
+
item: "svc-json-errors__item",
|
|
5280
|
+
itemIcon: "svc-json-error__icon",
|
|
5281
|
+
itemBody: "svc-json-error",
|
|
5282
|
+
itemsContainer: "svc-json-errors"
|
|
5283
|
+
};
|
|
5284
|
+
this.errorListValue.hasVerticalScroller = true;
|
|
5285
|
+
}
|
|
5286
|
+
return this.errorListValue;
|
|
5287
|
+
},
|
|
5288
|
+
enumerable: false,
|
|
5289
|
+
configurable: true
|
|
5290
|
+
});
|
|
5291
|
+
JsonEditorBaseModel.prototype.setErrors = function (errors) {
|
|
5292
|
+
var hasErrors = errors.length > 0;
|
|
5293
|
+
if (hasErrors) {
|
|
5294
|
+
var actions_1 = [];
|
|
5295
|
+
this.createErrorActions(errors).forEach(function (action) { return actions_1.push(action); });
|
|
5296
|
+
this.errorList.setItems(actions_1);
|
|
5297
|
+
}
|
|
5298
|
+
this.hasErrors = hasErrors;
|
|
5299
|
+
};
|
|
5300
|
+
JsonEditorBaseModel.prototype.gotoError = function (at, row, column) { };
|
|
5301
|
+
JsonEditorBaseModel.prototype.createErrorActions = function (errors) {
|
|
5302
|
+
var res = [];
|
|
5303
|
+
var counter = 1;
|
|
5304
|
+
errors.forEach(function (error) {
|
|
5305
|
+
var line = error.rowAt > -1 ? "Line: " + (error.rowAt + 1) + ". " : "";
|
|
5306
|
+
var title = error.text;
|
|
5307
|
+
if (title.length > maxErrorLength + 3) {
|
|
5308
|
+
title = title.substring(0, maxErrorLength) + "...";
|
|
5309
|
+
}
|
|
5310
|
+
title = line + title;
|
|
5311
|
+
var at = error.at;
|
|
5312
|
+
res.push(new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
5313
|
+
id: "error_" + counter++,
|
|
5314
|
+
title: title,
|
|
5315
|
+
tooltip: error.text,
|
|
5316
|
+
iconName: "icon-error",
|
|
5317
|
+
iconSize: 16,
|
|
5318
|
+
data: error
|
|
5319
|
+
}));
|
|
5320
|
+
});
|
|
5321
|
+
return res;
|
|
5322
|
+
};
|
|
5252
5323
|
JsonEditorBaseModel.prototype.processErrors = function (text) {
|
|
5253
5324
|
var textWorker = new _textWorker__WEBPACK_IMPORTED_MODULE_2__["SurveyTextWorker"](text);
|
|
5254
5325
|
this.setErrors(textWorker.errors);
|
|
@@ -5261,6 +5332,9 @@ var JsonEditorBaseModel = /** @class */ (function (_super) {
|
|
|
5261
5332
|
configurable: true
|
|
5262
5333
|
});
|
|
5263
5334
|
JsonEditorBaseModel.updateTextTimeout = 1000;
|
|
5335
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
5336
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
5337
|
+
], JsonEditorBaseModel.prototype, "hasErrors", void 0);
|
|
5264
5338
|
return JsonEditorBaseModel;
|
|
5265
5339
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["Base"]));
|
|
5266
5340
|
|
|
@@ -5357,6 +5431,14 @@ var TextareaJsonEditorModel = /** @class */ (function (_super) {
|
|
|
5357
5431
|
this.processErrors(value);
|
|
5358
5432
|
this.isProcessingImmediately = false;
|
|
5359
5433
|
};
|
|
5434
|
+
TextareaJsonEditorModel.prototype.gotoError = function (at, row, column) {
|
|
5435
|
+
if (!this.textElement)
|
|
5436
|
+
return;
|
|
5437
|
+
var el = this.textElement;
|
|
5438
|
+
el.selectionStart = at;
|
|
5439
|
+
el.selectionEnd = at;
|
|
5440
|
+
el.focus();
|
|
5441
|
+
};
|
|
5360
5442
|
Object.defineProperty(TextareaJsonEditorModel.prototype, "errorButtonText", {
|
|
5361
5443
|
get: function () {
|
|
5362
5444
|
return this.canShowErrors ? Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])("ed.jsonHideErrors") : Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])("ed.jsonShowErrors");
|
|
@@ -5395,7 +5477,9 @@ var TextareaJsonEditorModel = /** @class */ (function (_super) {
|
|
|
5395
5477
|
_super.prototype.onTextChanged.call(this);
|
|
5396
5478
|
};
|
|
5397
5479
|
TextareaJsonEditorModel.prototype.setErrors = function (errors) {
|
|
5480
|
+
//TODO Remove this line and then the function
|
|
5398
5481
|
this._errors = errors;
|
|
5482
|
+
_super.prototype.setErrors.call(this, errors);
|
|
5399
5483
|
};
|
|
5400
5484
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
5401
5485
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "", onSet: function (_, target) { return target.onTextChanged(); } })
|
|
@@ -8248,18 +8332,24 @@ var SurveyLogicUI = /** @class */ (function (_super) {
|
|
|
8248
8332
|
return false;
|
|
8249
8333
|
};
|
|
8250
8334
|
SurveyLogicUI.prototype.confirmLeavingOnError = function (onLeaving, onStaying) {
|
|
8251
|
-
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].
|
|
8335
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].showDialog)
|
|
8252
8336
|
return false;
|
|
8253
8337
|
var locStr = new survey_core__WEBPACK_IMPORTED_MODULE_1__["LocalizableString"](undefined);
|
|
8254
8338
|
locStr.text = this.getLocString("ed.lg.uncompletedRule_text");
|
|
8255
|
-
var popupModel = survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8339
|
+
var popupModel = survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].showDialog({
|
|
8340
|
+
componentName: "sv-string-viewer",
|
|
8341
|
+
data: { locStr: locStr, locString: locStr, model: locStr },
|
|
8342
|
+
onApply: function () {
|
|
8343
|
+
onLeaving();
|
|
8344
|
+
return true;
|
|
8345
|
+
},
|
|
8346
|
+
onCancel: function () {
|
|
8347
|
+
onStaying();
|
|
8348
|
+
return true;
|
|
8349
|
+
},
|
|
8350
|
+
title: this.getLocString("ed.lg.uncompletedRule_title"),
|
|
8351
|
+
displayMode: "popup"
|
|
8352
|
+
}, this.options.rootElement);
|
|
8263
8353
|
var toolbar = popupModel.footerToolbar;
|
|
8264
8354
|
var applyBtn = toolbar.getActionById("apply");
|
|
8265
8355
|
var cancelBtn = toolbar.getActionById("cancel");
|
|
@@ -10504,7 +10594,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10504
10594
|
|
|
10505
10595
|
__webpack_require__(/*! ./theme.scss */ "./src/components/tabs/theme.scss");
|
|
10506
10596
|
var Themes = __webpack_require__(/*! ../../../imported-themes.json */ "./imported-themes.json");
|
|
10507
|
-
var PredefinedThemes = ["default", "
|
|
10597
|
+
var PredefinedThemes = ["default", "sharp", "borderless", "flat", "plain", "doubleborder", "layered", "solid", "threedimensional", "contrast"];
|
|
10508
10598
|
var PredefinedColors = {
|
|
10509
10599
|
light: {
|
|
10510
10600
|
teal: "rgba(11, 128, 128, 1)",
|
|
@@ -10989,6 +11079,10 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10989
11079
|
_this.blockThemeChangedNotifications -= 1;
|
|
10990
11080
|
_this.setThemeToSurvey();
|
|
10991
11081
|
});
|
|
11082
|
+
themeEditorSurvey.onUploadFiles.add(function (_, options) {
|
|
11083
|
+
var callback = function (status, data) { return options.callback(status, [{ content: data, file: options.files[0] }]); };
|
|
11084
|
+
_this.surveyProvider.uploadFiles(options.files, undefined, callback);
|
|
11085
|
+
});
|
|
10992
11086
|
themeEditorSurvey.getAllQuestions().forEach(function (q) { return q.allowRootStyle = false; });
|
|
10993
11087
|
themeEditorSurvey.onQuestionCreated.add(function (_, opt) {
|
|
10994
11088
|
opt.question.allowRootStyle = false;
|
|
@@ -11024,6 +11118,15 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
11024
11118
|
Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("questionTitle"), newCssVariables, newCssVariables["--sjs-general-forecolor"]);
|
|
11025
11119
|
Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("questionDescription"), newCssVariables, newCssVariables["--sjs-general-forecolor-light"]);
|
|
11026
11120
|
Object(_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_8__["fontsettingsFromCssVariable"])(themeEditorSurvey.getQuestionByName("editorFont"), newCssVariables);
|
|
11121
|
+
if (!!newCssVariables["--sjs-corner-radius"]) {
|
|
11122
|
+
themeEditorSurvey.getQuestionByName("cornerRadius").value = parseFloat(newCssVariables["--sjs-corner-radius"]);
|
|
11123
|
+
}
|
|
11124
|
+
if (!!newCssVariables["--sjs-base-unit"]) {
|
|
11125
|
+
themeEditorSurvey.getQuestionByName("commonScale").value = parseFloat(newCssVariables["--sjs-base-unit"]) * 100 / 8;
|
|
11126
|
+
}
|
|
11127
|
+
if (!!newCssVariables["--sjs-font-size"]) {
|
|
11128
|
+
themeEditorSurvey.getQuestionByName("commonFontSize").value = parseFloat(newCssVariables["--sjs-font-size"]) * 100 / 16;
|
|
11129
|
+
}
|
|
11027
11130
|
themeEditorSurvey.getAllQuestions().forEach(function (question) {
|
|
11028
11131
|
if (["color", "colorsettings"].indexOf(question.getType()) !== -1) {
|
|
11029
11132
|
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)); });
|
|
@@ -11042,6 +11145,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
11042
11145
|
ThemeSurveyTabViewModel.prototype.getThemeEditorSurveyJSON = function () {
|
|
11043
11146
|
var themeEditorSurveyJSON = {
|
|
11044
11147
|
"clearInvisibleValues": "none",
|
|
11148
|
+
questionErrorLocation: "bottom",
|
|
11045
11149
|
elements: [{
|
|
11046
11150
|
type: "panel",
|
|
11047
11151
|
state: "expanded",
|
|
@@ -11103,8 +11207,10 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
11103
11207
|
elements: [
|
|
11104
11208
|
{
|
|
11105
11209
|
type: "fileedit",
|
|
11210
|
+
storeDataAsText: false,
|
|
11106
11211
|
name: "backgroundImage",
|
|
11107
11212
|
titleLocation: "hidden",
|
|
11213
|
+
maxSize: this.surveyProvider.onUploadFile.isEmpty ? 65536 : undefined,
|
|
11108
11214
|
acceptedTypes: "image/*",
|
|
11109
11215
|
placeholder: "Browse..."
|
|
11110
11216
|
},
|
|
@@ -11183,7 +11289,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
11183
11289
|
},
|
|
11184
11290
|
{
|
|
11185
11291
|
type: "spinedit",
|
|
11186
|
-
name: "
|
|
11292
|
+
name: "commonFontSize",
|
|
11187
11293
|
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontSize"),
|
|
11188
11294
|
descriptionLocation: "hidden",
|
|
11189
11295
|
unit: "%",
|
|
@@ -11194,7 +11300,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
11194
11300
|
{
|
|
11195
11301
|
type: "expression",
|
|
11196
11302
|
name: "--sjs-font-size",
|
|
11197
|
-
expression: "{
|
|
11303
|
+
expression: "{commonFontSize}*16/100+\"px\"",
|
|
11198
11304
|
visible: false
|
|
11199
11305
|
},
|
|
11200
11306
|
]
|
|
@@ -13458,6 +13564,7 @@ var ToolboxToolViewModel = /** @class */ (function (_super) {
|
|
|
13458
13564
|
_this.creator.clickToolboxItem(_this.item.json);
|
|
13459
13565
|
};
|
|
13460
13566
|
_this.onPointerUp = function (pointerUpEvent) {
|
|
13567
|
+
_this.creator.onDragDropItemEnd();
|
|
13461
13568
|
_this._node.classList.remove("svc-toolbox__tool--pressed");
|
|
13462
13569
|
_this._node = null;
|
|
13463
13570
|
document.removeEventListener("pointerup", _this.onPointerUp);
|
|
@@ -13486,6 +13593,7 @@ var ToolboxToolViewModel = /** @class */ (function (_super) {
|
|
|
13486
13593
|
this._node = pointerDownEvent.currentTarget;
|
|
13487
13594
|
this._node.classList.add("svc-toolbox__tool--pressed");
|
|
13488
13595
|
document.addEventListener("pointerup", this.onPointerUp);
|
|
13596
|
+
this.creator.onDragDropItemStart();
|
|
13489
13597
|
};
|
|
13490
13598
|
Object.defineProperty(ToolboxToolViewModel.prototype, "dragDropHelper", {
|
|
13491
13599
|
get: function () {
|
|
@@ -13593,7 +13701,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13593
13701
|
|
|
13594
13702
|
|
|
13595
13703
|
|
|
13596
|
-
|
|
13597
13704
|
|
|
13598
13705
|
|
|
13599
13706
|
__webpack_require__(/*! ./components/creator.scss */ "./src/components/creator.scss");
|
|
@@ -13985,58 +14092,61 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
13985
14092
|
*/
|
|
13986
14093
|
_this.onLogicItemDisplayText = new CreatorEvent();
|
|
13987
14094
|
/**
|
|
13988
|
-
*
|
|
13989
|
-
|
|
13990
|
-
*
|
|
13991
|
-
|
|
13992
|
-
*
|
|
14095
|
+
* An event that is raised when users modify survey or theme settings.
|
|
14096
|
+
*
|
|
14097
|
+
* Parameters:
|
|
14098
|
+
*
|
|
14099
|
+
* - `sender`: `CreatorBase`\
|
|
14100
|
+
* A Survey Creator instance that raised the event.
|
|
14101
|
+
*
|
|
14102
|
+
* - `options.type`: `"ADDED_FROM_TOOLBOX"` | `"PAGE_ADDED"` | `"PAGE_MOVED"` | `"QUESTION_CONVERTED"` | `"QUESTION_CHANGED_BY_EDITOR"` | `"PROPERTY_CHANGED"` | `"ELEMENT_REORDERED"` | `"OBJECT_DELETED"` | `"VIEW_TYPE_CHANGED"` | `"DO_DROP"` | `"TRANSLATIONS_CHANGED"` | `"JSON_EDITOR"` | `"THEME_MODIFIED"`\
|
|
14103
|
+
* A value that indicates the modification.
|
|
13993
14104
|
*
|
|
13994
|
-
|
|
13995
|
-
*- options.question: newly added question
|
|
14105
|
+
* Depending on the `options.type` value, the `options` object contains parameters listed below:
|
|
13996
14106
|
*
|
|
13997
|
-
|
|
13998
|
-
|
|
14107
|
+
* `options.type`: `"ADDED_FROM_TOOLBOX"`\
|
|
14108
|
+
* - `options.question` - An added question.
|
|
13999
14109
|
*
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
*- options.indexFrom: pevious index
|
|
14003
|
-
*- options.indexTo: new index
|
|
14110
|
+
* `options.type`: `"PAGE_ADDED"`\
|
|
14111
|
+
* - `options.newValue` - An added page.
|
|
14004
14112
|
*
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14113
|
+
* `options.type`: `"PAGE_MOVED"`\
|
|
14114
|
+
* - `options.page` - A moved page.
|
|
14115
|
+
* - `options.indexFrom` - A previous index.
|
|
14116
|
+
* - `options.indexTo` - A current index.
|
|
14009
14117
|
*
|
|
14010
|
-
|
|
14011
|
-
|
|
14118
|
+
* `options.type`: `"QUESTION_CONVERTED"`\
|
|
14119
|
+
* - `options.className` - The name of a class to which a question has been converted.
|
|
14120
|
+
* - `options.oldValue` - An object of a previous class.
|
|
14121
|
+
* - `options.newValue` - An object of a class specified by `options.className`.
|
|
14012
14122
|
*
|
|
14013
|
-
|
|
14014
|
-
|
|
14015
|
-
*- options.target: the object containing the changed property
|
|
14016
|
-
*- options.oldValue: the previous value of the changed property
|
|
14017
|
-
*- options.newValue: the new value of the changed property
|
|
14123
|
+
* `options.type`: `"QUESTION_CHANGED_BY_EDITOR"`\
|
|
14124
|
+
* - `options.question` - A question that has been edited in a pop-up editor.
|
|
14018
14125
|
*
|
|
14019
|
-
|
|
14020
|
-
|
|
14021
|
-
|
|
14022
|
-
|
|
14023
|
-
|
|
14024
|
-
*- options.indexTo: moved to index
|
|
14126
|
+
* `options.type`: `"PROPERTY_CHANGED"`\
|
|
14127
|
+
* - `options.name` - The name of the changed property.
|
|
14128
|
+
* - `options.target` - An object that contains the changed property.
|
|
14129
|
+
* - `options.oldValue` - A previous value of the changed property.
|
|
14130
|
+
* - `options.newValue` - A new value of the changed property.
|
|
14025
14131
|
*
|
|
14026
|
-
|
|
14027
|
-
|
|
14132
|
+
* `options.type`: `"ELEMENT_REORDERED"`\
|
|
14133
|
+
* - `options.arrayName` - The name of the changed array.
|
|
14134
|
+
* - `options.parent` - An object that contains the changed array.
|
|
14135
|
+
* - `options.element` - A reordered element.
|
|
14136
|
+
* - `options.indexFrom` - A previous index.
|
|
14137
|
+
* - `options.indexTo` - A current index.
|
|
14028
14138
|
*
|
|
14029
|
-
|
|
14030
|
-
|
|
14139
|
+
* `options.type`: `"OBJECT_DELETED"`\
|
|
14140
|
+
* - `options.target` - A deleted object.
|
|
14031
14141
|
*
|
|
14032
|
-
|
|
14033
|
-
|
|
14034
|
-
*- options.source: the source dragged object
|
|
14035
|
-
*- options.target: the drop target
|
|
14036
|
-
*- options.newElement: a new element. It is defined if a user drops question or panel from the toolbox
|
|
14142
|
+
* `options.type`: `"VIEW_TYPE_CHANGED"`\
|
|
14143
|
+
* - `options.newType` - A current view: `"editor"` or `"designer"`.
|
|
14037
14144
|
*
|
|
14038
|
-
|
|
14039
|
-
|
|
14145
|
+
* `options.type`: `"DO_DROP"`\
|
|
14146
|
+
* - `options.page` - A parent page of the dragged element.
|
|
14147
|
+
* - `options.source` - A dragged element.
|
|
14148
|
+
* - `options.target` - A drop target.
|
|
14149
|
+
* - `options.newElement` - A new element. This parameter is defined only if users drag a question or panel from the Toolbox.
|
|
14040
14150
|
*/
|
|
14041
14151
|
_this.onModified = new CreatorEvent();
|
|
14042
14152
|
/**
|
|
@@ -14516,6 +14626,25 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
14516
14626
|
enumerable: false,
|
|
14517
14627
|
configurable: true
|
|
14518
14628
|
});
|
|
14629
|
+
Object.defineProperty(CreatorBase.prototype, "haveCommercialLicense", {
|
|
14630
|
+
/**
|
|
14631
|
+
* Removes the Free Trial bar.
|
|
14632
|
+
*
|
|
14633
|
+
* Default value: `false`
|
|
14634
|
+
*
|
|
14635
|
+
* > You can enable this property only if you have a Survey Creator commercial license. It is illegal to enable this property without a license.
|
|
14636
|
+
*/
|
|
14637
|
+
get: function () {
|
|
14638
|
+
if (!!survey_core__WEBPACK_IMPORTED_MODULE_1__["hasLicense"] && Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["hasLicense"])(1))
|
|
14639
|
+
return true;
|
|
14640
|
+
return this.getPropertyValue("haveCommercialLicense", false);
|
|
14641
|
+
},
|
|
14642
|
+
set: function (val) {
|
|
14643
|
+
this.setPropertyValue("haveCommercialLicense", val);
|
|
14644
|
+
},
|
|
14645
|
+
enumerable: false,
|
|
14646
|
+
configurable: true
|
|
14647
|
+
});
|
|
14519
14648
|
Object.defineProperty(CreatorBase.prototype, "licenseText", {
|
|
14520
14649
|
get: function () {
|
|
14521
14650
|
return this.getLocString("survey.license");
|
|
@@ -15462,6 +15591,12 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
15462
15591
|
}
|
|
15463
15592
|
return !!classInfo && classInfo.name === typeName;
|
|
15464
15593
|
};
|
|
15594
|
+
CreatorBase.prototype.onDragDropItemStart = function () {
|
|
15595
|
+
this.addNewElementReason = "DROPPED_FROM_TOOLBOX";
|
|
15596
|
+
};
|
|
15597
|
+
CreatorBase.prototype.onDragDropItemEnd = function () {
|
|
15598
|
+
this.addNewElementReason = undefined;
|
|
15599
|
+
};
|
|
15465
15600
|
CreatorBase.prototype.doOnQuestionAdded = function (question, parentPanel) {
|
|
15466
15601
|
question.name = this.generateUniqueName(question, question.name);
|
|
15467
15602
|
var page = this.getPageByElement(question);
|
|
@@ -15870,7 +16005,7 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
15870
16005
|
var index = !!question["parent"]
|
|
15871
16006
|
? question["parent"].elements.indexOf(question) + 1
|
|
15872
16007
|
: -1;
|
|
15873
|
-
this.doClickQuestionCore(newElement, "ELEMENT_COPIED", index);
|
|
16008
|
+
this.doClickQuestionCore(newElement, "ELEMENT_COPIED", index, question["parent"]);
|
|
15874
16009
|
return newElement;
|
|
15875
16010
|
};
|
|
15876
16011
|
Object.defineProperty(CreatorBase.prototype, "selectedElement", {
|
|
@@ -16284,6 +16419,22 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
16284
16419
|
});
|
|
16285
16420
|
}
|
|
16286
16421
|
};
|
|
16422
|
+
Object.defineProperty(CreatorBase.prototype, "rootElement", {
|
|
16423
|
+
get: function () {
|
|
16424
|
+
return this._rootElementValue;
|
|
16425
|
+
},
|
|
16426
|
+
enumerable: false,
|
|
16427
|
+
configurable: true
|
|
16428
|
+
});
|
|
16429
|
+
CreatorBase.prototype.setRootElement = function (element) {
|
|
16430
|
+
this._rootElementValue = element;
|
|
16431
|
+
this.initKeyboardShortcuts(element);
|
|
16432
|
+
this.initResponsivityManager(element);
|
|
16433
|
+
};
|
|
16434
|
+
CreatorBase.prototype.unsubscribeRootElement = function () {
|
|
16435
|
+
this.removeKeyboardShortcuts(this._rootElementValue);
|
|
16436
|
+
this.resetResponsivityManager();
|
|
16437
|
+
};
|
|
16287
16438
|
CreatorBase.prototype.initKeyboardShortcuts = function (rootNode) {
|
|
16288
16439
|
if (!!rootNode) {
|
|
16289
16440
|
rootNode.addEventListener("keydown", this.onKeyDownHandler);
|
|
@@ -16622,8 +16773,11 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
16622
16773
|
};
|
|
16623
16774
|
Object.defineProperty(CreatorBase.prototype, "saveThemeFunc", {
|
|
16624
16775
|
/**
|
|
16625
|
-
*
|
|
16626
|
-
*
|
|
16776
|
+
* A function that is called each time users click the [Save button](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#showSaveButton) or [auto-save](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#isAutoSave) is triggered to save a theme JSON object.
|
|
16777
|
+
*
|
|
16778
|
+
* For more information, refer to the [Save and Load Custom Themes](/survey-creator/documentation/theme-editor#save-and-load-custom-themes) help topic.
|
|
16779
|
+
* @see showThemeTab
|
|
16780
|
+
* @see saveSurveyFunc
|
|
16627
16781
|
*/
|
|
16628
16782
|
get: function () {
|
|
16629
16783
|
return this.saveThemeFuncValue;
|
|
@@ -16636,8 +16790,10 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
16636
16790
|
});
|
|
16637
16791
|
Object.defineProperty(CreatorBase.prototype, "saveSurveyFunc", {
|
|
16638
16792
|
/**
|
|
16639
|
-
*
|
|
16640
|
-
*
|
|
16793
|
+
* A function that is called each time users click the [Save button](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#showSaveButton) or [auto-save](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#isAutoSave) is triggered to save a survey JSON schema.
|
|
16794
|
+
*
|
|
16795
|
+
* For more information, refer to the Save and Load Survey Model Schemas help topic for your framework: [Angular](https://surveyjs.io/survey-creator/documentation/get-started-angular#save-and-load-survey-model-schemas) | [Vue](https://surveyjs.io/survey-creator/documentation/get-started-vue#save-and-load-survey-model-schemas) | [React](https://surveyjs.io/survey-creator/documentation/get-started-react#save-and-load-survey-model-schemas) | [Knockout / jQuery](https://surveyjs.io/survey-creator/documentation/get-started-knockout-jquery).
|
|
16796
|
+
* @see saveThemeFunc
|
|
16641
16797
|
*/
|
|
16642
16798
|
get: function () {
|
|
16643
16799
|
return this.saveSurveyFuncValue;
|
|
@@ -16842,9 +16998,6 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
16842
16998
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
16843
16999
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
16844
17000
|
], CreatorBase.prototype, "inplaceEditForValues", void 0);
|
|
16845
|
-
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
16846
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
16847
|
-
], CreatorBase.prototype, "haveCommercialLicense", void 0);
|
|
16848
17001
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
16849
17002
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
16850
17003
|
], CreatorBase.prototype, "isAutoSave", void 0);
|
|
@@ -18965,7 +19118,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18965
19118
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
18966
19119
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_70___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_70__);
|
|
18967
19120
|
var Version;
|
|
18968
|
-
Version = "" + "1.9.
|
|
19121
|
+
Version = "" + "1.9.101";
|
|
18969
19122
|
//should be loaded before other styles for easier override
|
|
18970
19123
|
__webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
|
|
18971
19124
|
|
|
@@ -19054,7 +19207,7 @@ __webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
|
|
|
19054
19207
|
__webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
19055
19208
|
|
|
19056
19209
|
survey_core__WEBPACK_IMPORTED_MODULE_70__["settings"].supportCreatorV2 = true;
|
|
19057
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_70__["checkLibraryVersion"])("" + "1.9.
|
|
19210
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_70__["checkLibraryVersion"])("" + "1.9.101", "survey-creator-core");
|
|
19058
19211
|
|
|
19059
19212
|
|
|
19060
19213
|
/***/ }),
|
|
@@ -19331,6 +19484,7 @@ var map = {
|
|
|
19331
19484
|
"./edit.svg": "./src/images/edit.svg",
|
|
19332
19485
|
"./edit_16x16.svg": "./src/images/edit_16x16.svg",
|
|
19333
19486
|
"./editing-finish.svg": "./src/images/editing-finish.svg",
|
|
19487
|
+
"./error.svg": "./src/images/error.svg",
|
|
19334
19488
|
"./expand-detail-light_16x16.svg": "./src/images/expand-detail-light_16x16.svg",
|
|
19335
19489
|
"./expand-detail_16x16.svg": "./src/images/expand-detail_16x16.svg",
|
|
19336
19490
|
"./expand-panel.svg": "./src/images/expand-panel.svg",
|
|
@@ -19843,6 +19997,17 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
19843
19997
|
|
|
19844
19998
|
/***/ }),
|
|
19845
19999
|
|
|
20000
|
+
/***/ "./src/images/error.svg":
|
|
20001
|
+
/*!******************************!*\
|
|
20002
|
+
!*** ./src/images/error.svg ***!
|
|
20003
|
+
\******************************/
|
|
20004
|
+
/*! no static exports found */
|
|
20005
|
+
/***/ (function(module, exports) {
|
|
20006
|
+
|
|
20007
|
+
module.exports = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_19289_560924)\"><path d=\"M8 0C3.58 0 0 3.58 0 8C0 12.42 3.58 16 8 16C12.42 16 16 12.42 16 8C16 3.58 12.42 0 8 0ZM8 14C4.69 14 2 11.31 2 8C2 4.69 4.69 2 8 2C11.31 2 14 4.69 14 8C14 11.31 11.31 14 8 14ZM11.41 6L9.41 8L11.41 10L10 11.41L8 9.41L6 11.41L4.59 10L6.59 8L4.59 6L6 4.59L8 6.59L10 4.59L11.41 6Z\"></path></g><defs><clipPath id=\"clip0_19289_560924\"><rect width=\"16\" height=\"16\" fill=\"transparent\"></rect></clipPath></defs></svg>"
|
|
20008
|
+
|
|
20009
|
+
/***/ }),
|
|
20010
|
+
|
|
19846
20011
|
/***/ "./src/images/expand-detail-light_16x16.svg":
|
|
19847
20012
|
/*!**************************************************!*\
|
|
19848
20013
|
!*** ./src/images/expand-detail-light_16x16.svg ***!
|
|
@@ -21636,6 +21801,7 @@ var enStrings = {
|
|
|
21636
21801
|
maxErrorText: "\"Value exceeds maximum\" error message",
|
|
21637
21802
|
otherErrorText: "\"Empty comment\" error message",
|
|
21638
21803
|
keyDuplicationError: "\"Non-unique key value\" error message",
|
|
21804
|
+
minSelectedChoices: "Minimum selected choices",
|
|
21639
21805
|
maxSelectedChoices: "Maximum selected choices",
|
|
21640
21806
|
showClearButton: "Show the Clear button",
|
|
21641
21807
|
showNumber: "Show panel number",
|
|
@@ -22140,15 +22306,15 @@ var enStrings = {
|
|
|
22140
22306
|
editorShadow: "Input element shadow effects",
|
|
22141
22307
|
names: {
|
|
22142
22308
|
"default": "Default",
|
|
22143
|
-
"
|
|
22309
|
+
"sharp": "Sharp",
|
|
22310
|
+
"borderless": "Borderless",
|
|
22311
|
+
"flat": "Flat",
|
|
22144
22312
|
"plain": "Plain",
|
|
22145
|
-
"
|
|
22146
|
-
"
|
|
22147
|
-
"
|
|
22148
|
-
"
|
|
22149
|
-
"
|
|
22150
|
-
"playful": "Playful",
|
|
22151
|
-
"ultra": "Ultra"
|
|
22313
|
+
"doubleborder": "Double Border",
|
|
22314
|
+
"layered": "Layered",
|
|
22315
|
+
"solid": "Solid",
|
|
22316
|
+
"threedimensional": "3D",
|
|
22317
|
+
"contrast": "Contrast"
|
|
22152
22318
|
},
|
|
22153
22319
|
colors: {
|
|
22154
22320
|
teal: "Teal",
|
|
@@ -25984,22 +26150,30 @@ var PropertyGridEditor = /** @class */ (function () {
|
|
|
25984
26150
|
if (question.isReadOnly) {
|
|
25985
26151
|
surveyPropertyEditor.editSurvey.mode = "display";
|
|
25986
26152
|
}
|
|
25987
|
-
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].
|
|
26153
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].showDialog)
|
|
25988
26154
|
return surveyPropertyEditor;
|
|
25989
26155
|
var prevCurrentLocale = survey_core__WEBPACK_IMPORTED_MODULE_1__["surveyLocalization"].currentLocale;
|
|
25990
26156
|
var locale = _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].currentLocale;
|
|
25991
26157
|
survey_core__WEBPACK_IMPORTED_MODULE_1__["surveyLocalization"].currentLocale = locale;
|
|
25992
|
-
var popupModel = survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].
|
|
25993
|
-
|
|
25994
|
-
|
|
25995
|
-
|
|
25996
|
-
|
|
25997
|
-
|
|
25998
|
-
|
|
25999
|
-
|
|
26000
|
-
|
|
26001
|
-
|
|
26002
|
-
|
|
26158
|
+
var popupModel = survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].showDialog({
|
|
26159
|
+
componentName: "survey",
|
|
26160
|
+
data: {
|
|
26161
|
+
survey: surveyPropertyEditor.editSurvey,
|
|
26162
|
+
model: surveyPropertyEditor.editSurvey
|
|
26163
|
+
},
|
|
26164
|
+
onApply: function () {
|
|
26165
|
+
_this.onModalPropertyEditorClosed(editor, property, question, options, "apply");
|
|
26166
|
+
onClose && onClose("apply");
|
|
26167
|
+
return surveyPropertyEditor.apply();
|
|
26168
|
+
},
|
|
26169
|
+
onCancel: function () {
|
|
26170
|
+
_this.onModalPropertyEditorClosed(editor, property, question, options, "cancel");
|
|
26171
|
+
onClose && onClose("cancel");
|
|
26172
|
+
},
|
|
26173
|
+
cssClass: "sv-property-editor",
|
|
26174
|
+
title: question.title,
|
|
26175
|
+
displayMode: options.isMobileView ? "overlay" : "popup"
|
|
26176
|
+
}, options.rootElement);
|
|
26003
26177
|
if (question.isReadOnly) {
|
|
26004
26178
|
var applyBtn = popupModel.footerToolbar.getActionById("apply");
|
|
26005
26179
|
if (!!applyBtn) {
|
|
@@ -26747,14 +26921,15 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
26747
26921
|
var newName = PropertyGridEditorMatrix.getNewColumnName(matrix.value, keyPropName, baseValue);
|
|
26748
26922
|
keyValue = newName;
|
|
26749
26923
|
}
|
|
26750
|
-
var
|
|
26924
|
+
var obj = matrix.obj;
|
|
26925
|
+
var item = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].createClass(this.getDefaultClassName(obj, prop), json);
|
|
26751
26926
|
if (!!keyValue) {
|
|
26752
26927
|
item[keyPropName] = keyValue;
|
|
26753
26928
|
}
|
|
26754
26929
|
if (!!this.getObjTypeName()) {
|
|
26755
26930
|
item[this.getObjTypeName()] = item.getType();
|
|
26756
26931
|
}
|
|
26757
|
-
var arr =
|
|
26932
|
+
var arr = obj[prop.name];
|
|
26758
26933
|
if (survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].isDescendantOf(item.getType(), "itemvalue")) {
|
|
26759
26934
|
item.text = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["getNextItemText"])(arr);
|
|
26760
26935
|
}
|
|
@@ -26764,7 +26939,7 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
26764
26939
|
}
|
|
26765
26940
|
return item;
|
|
26766
26941
|
};
|
|
26767
|
-
PropertyGridEditorMatrix.prototype.getDefaultClassName = function (prop) {
|
|
26942
|
+
PropertyGridEditorMatrix.prototype.getDefaultClassName = function (obj, prop) {
|
|
26768
26943
|
return prop.className;
|
|
26769
26944
|
};
|
|
26770
26945
|
PropertyGridEditorMatrix.prototype.getBaseValue = function (prop) {
|
|
@@ -27342,8 +27517,16 @@ var PropertyGridEditorMatrixValidators = /** @class */ (function (_super) {
|
|
|
27342
27517
|
PropertyGridEditorMatrixValidators.prototype.getObjTypeName = function () {
|
|
27343
27518
|
return "validatorType";
|
|
27344
27519
|
};
|
|
27345
|
-
PropertyGridEditorMatrixValidators.prototype.getDefaultClassName = function (prop) {
|
|
27346
|
-
|
|
27520
|
+
PropertyGridEditorMatrixValidators.prototype.getDefaultClassName = function (obj, prop) {
|
|
27521
|
+
var res = "expression";
|
|
27522
|
+
var question = obj;
|
|
27523
|
+
if (!!question.getSupportedValidators) {
|
|
27524
|
+
var validators = question.getSupportedValidators();
|
|
27525
|
+
if (validators.length > 0 && validators.indexOf(res) < 0) {
|
|
27526
|
+
res = validators[0];
|
|
27527
|
+
}
|
|
27528
|
+
}
|
|
27529
|
+
return res + "validator";
|
|
27347
27530
|
};
|
|
27348
27531
|
PropertyGridEditorMatrixValidators.prototype.getChoices = function (obj) {
|
|
27349
27532
|
var names = this.getSupportedValidators(obj);
|
|
@@ -27383,7 +27566,7 @@ var PropertyGridEditorMatrixTriggers = /** @class */ (function (_super) {
|
|
|
27383
27566
|
PropertyGridEditorMatrixTriggers.prototype.getObjTypeName = function () {
|
|
27384
27567
|
return "triggerType";
|
|
27385
27568
|
};
|
|
27386
|
-
PropertyGridEditorMatrixTriggers.prototype.getDefaultClassName = function (prop) {
|
|
27569
|
+
PropertyGridEditorMatrixTriggers.prototype.getDefaultClassName = function (obj, prop) {
|
|
27387
27570
|
var classes = this.getAvailableTriggers().map(function (tr) { return tr.name; });
|
|
27388
27571
|
if (!classes.length)
|
|
27389
27572
|
return prop.name;
|
|
@@ -28383,6 +28566,7 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
28383
28566
|
properties: [
|
|
28384
28567
|
{ name: "showSelectAllItem", tab: "choices" },
|
|
28385
28568
|
{ name: "selectAllText", tab: "choices" },
|
|
28569
|
+
{ name: "minSelectedChoices", tab: "choices" },
|
|
28386
28570
|
{ name: "maxSelectedChoices", tab: "choices" },
|
|
28387
28571
|
{ name: "separateSpecialChoices", tab: "choices" },
|
|
28388
28572
|
]
|
|
@@ -28527,6 +28711,7 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
28527
28711
|
{ name: "showSelectAllItem", tab: "choices" },
|
|
28528
28712
|
{ name: "showNoneItem", tab: "choices" },
|
|
28529
28713
|
{ name: "noneText", tab: "choices" },
|
|
28714
|
+
{ name: "minSelectedChoices", tab: "choices" },
|
|
28530
28715
|
{ name: "maxSelectedChoices", tab: "choices" },
|
|
28531
28716
|
{ name: "selectAllText", tab: "choices" },
|
|
28532
28717
|
{ name: "choicesVisibleIf", tab: "logic" },
|
|
@@ -29614,9 +29799,9 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
29614
29799
|
elementsToSetSWNL.push(srcRow.elements[1]);
|
|
29615
29800
|
}
|
|
29616
29801
|
}
|
|
29802
|
+
var dragOverIndicator = _this.dragOverIndicatorElement || _this.dropTarget;
|
|
29803
|
+
var dragOverLocation = dragOverIndicator.dragTypeOverMe;
|
|
29617
29804
|
if (!!row) {
|
|
29618
|
-
var dragOverIndicator = _this.dragOverIndicatorElement || _this.dropTarget;
|
|
29619
|
-
var dragOverLocation = dragOverIndicator.dragTypeOverMe;
|
|
29620
29805
|
if (dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Left) {
|
|
29621
29806
|
elementsToResetSWNL.push(dest);
|
|
29622
29807
|
if (row.elements.indexOf(dest) === 0 || row.elements.indexOf(src) === 0 && row.elements.indexOf(dest) === 1) {
|
|
@@ -29645,9 +29830,10 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
29645
29830
|
elementsToSetSWNL.push(dragged);
|
|
29646
29831
|
}
|
|
29647
29832
|
}
|
|
29833
|
+
var isTargetIsContainer = dest.isPanel || dest.isPage;
|
|
29648
29834
|
if (!!src && !!src.parent) {
|
|
29649
29835
|
page.survey.startMovingQuestion();
|
|
29650
|
-
var isSamePanel = !!row && row.panel == src.parent;
|
|
29836
|
+
var isSamePanel = !(isTargetIsContainer && dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].InsideEmptyPanel) && !!row && row.panel == src.parent;
|
|
29651
29837
|
if (isSamePanel) {
|
|
29652
29838
|
_this.moveElementInPanel(row.panel, src, dragged, targetIndex);
|
|
29653
29839
|
row.panel.updateRows();
|
|
@@ -29657,7 +29843,7 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
29657
29843
|
src.parent.removeElement(src);
|
|
29658
29844
|
}
|
|
29659
29845
|
}
|
|
29660
|
-
if (!_this.isEdge && !_this.isSide &&
|
|
29846
|
+
if (!_this.isEdge && !_this.isSide && isTargetIsContainer) {
|
|
29661
29847
|
dest.addElement(dragged);
|
|
29662
29848
|
dest.updateRows();
|
|
29663
29849
|
}
|
|
@@ -29671,79 +29857,6 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
29671
29857
|
return dragged;
|
|
29672
29858
|
};
|
|
29673
29859
|
return _this;
|
|
29674
|
-
// protected removeGhostElementFromSurvey(): void {
|
|
29675
|
-
// const dropTarget = this.prevDropTarget || this.dropTarget;
|
|
29676
|
-
// if (!!dropTarget) {
|
|
29677
|
-
// dropTarget.dragTypeOverMe = null;
|
|
29678
|
-
// }
|
|
29679
|
-
// if (!!this.parentElement) this.parentElement.dragDropFinish(true);
|
|
29680
|
-
// }
|
|
29681
|
-
// private insertRealElementIntoSurvey() {
|
|
29682
|
-
// this.removeGhostElementFromSurvey();
|
|
29683
|
-
// const isTargetRowMultiple = this.calcTargetRowMultiple();
|
|
29684
|
-
// // ghost new page
|
|
29685
|
-
// if (this.dropTarget.isPage && (<any>this.dropTarget)["_isGhost"]) {
|
|
29686
|
-
// (<any>this.dropTarget)["_addGhostPageViewModel"]();
|
|
29687
|
-
// }
|
|
29688
|
-
// // EO ghost new page
|
|
29689
|
-
// //TODO need for dragDrop helper in library
|
|
29690
|
-
// const json = new JsonObject().toJsonObject(this.draggedElement);
|
|
29691
|
-
// json["type"] = this.draggedElement.getType();
|
|
29692
|
-
// const fakeTargetElement = this.createFakeTargetElement(
|
|
29693
|
-
// this.draggedElement.name,
|
|
29694
|
-
// json
|
|
29695
|
-
// );
|
|
29696
|
-
// //
|
|
29697
|
-
// this.parentElement.dragDropStart(
|
|
29698
|
-
// this.draggedElement,
|
|
29699
|
-
// fakeTargetElement,
|
|
29700
|
-
// DragDropSurveyElements.nestedPanelDepth
|
|
29701
|
-
// );
|
|
29702
|
-
// this.parentElement.dragDropMoveTo(
|
|
29703
|
-
// this.dropTarget,
|
|
29704
|
-
// isTargetRowMultiple ? this.isRight : this.isBottom,
|
|
29705
|
-
// this.isEdge
|
|
29706
|
-
// );
|
|
29707
|
-
// const newElement = this.parentElement.dragDropFinish();
|
|
29708
|
-
// return newElement;
|
|
29709
|
-
// }
|
|
29710
|
-
// private createFakeTargetElement(elementName: string, json: any): any {
|
|
29711
|
-
// if (!elementName || !json) return null;
|
|
29712
|
-
// var targetElement = null;
|
|
29713
|
-
// targetElement = Serializer.createClass(json["type"]);
|
|
29714
|
-
// new JsonObject().toObject(json, targetElement);
|
|
29715
|
-
// targetElement.name = elementName;
|
|
29716
|
-
// if (targetElement["setSurveyImpl"]) {
|
|
29717
|
-
// targetElement["setSurveyImpl"](this.survey);
|
|
29718
|
-
// } else {
|
|
29719
|
-
// targetElement["setData"](this.survey);
|
|
29720
|
-
// }
|
|
29721
|
-
// targetElement.renderWidth = "100%";
|
|
29722
|
-
// return targetElement;
|
|
29723
|
-
// }
|
|
29724
|
-
// private createGhostSurveyElement(isMultipleRowDrag = false): any {
|
|
29725
|
-
// let className = "sv-drag-drop-ghost";
|
|
29726
|
-
// let minWidth = "300px";
|
|
29727
|
-
// if (isMultipleRowDrag) {
|
|
29728
|
-
// minWidth = "4px";
|
|
29729
|
-
// className += " sv-drag-drop-ghost--vertical";
|
|
29730
|
-
// }
|
|
29731
|
-
// const json: any = {
|
|
29732
|
-
// type: "html",
|
|
29733
|
-
// minWidth,
|
|
29734
|
-
// name: DragDropSurveyElements.ghostSurveyElementName,
|
|
29735
|
-
// html: `<div class="${className}"></div>`,
|
|
29736
|
-
// };
|
|
29737
|
-
// const element = <any>this.createElementFromJson(json);
|
|
29738
|
-
// element.startWithNewLine = !isMultipleRowDrag;
|
|
29739
|
-
// if (isMultipleRowDrag) {
|
|
29740
|
-
// element.maxWidth = "4px";
|
|
29741
|
-
// element.renderWidth = "0px";
|
|
29742
|
-
// element.paddingRight = "0px";
|
|
29743
|
-
// element.paddingLeft = "0px";
|
|
29744
|
-
// }
|
|
29745
|
-
// return element;
|
|
29746
|
-
// }
|
|
29747
29860
|
}
|
|
29748
29861
|
Object.defineProperty(DragDropSurveyElements.prototype, "draggedElementType", {
|
|
29749
29862
|
get: function () {
|
|
@@ -29894,38 +30007,6 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
29894
30007
|
}
|
|
29895
30008
|
return true;
|
|
29896
30009
|
};
|
|
29897
|
-
// protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean {
|
|
29898
|
-
// return false;
|
|
29899
|
-
// }
|
|
29900
|
-
// protected calculateIsBottom(
|
|
29901
|
-
// clientY: number,
|
|
29902
|
-
// dropTargetNode?: HTMLElement
|
|
29903
|
-
// ): boolean {
|
|
29904
|
-
// // we shouldn't reculc isBottom if drag over ghost survey element
|
|
29905
|
-
// if (this.getDataAttributeValueByNode(dropTargetNode) === DragDropSurveyElements.ghostSurveyElementName) {
|
|
29906
|
-
// return this.isBottom;
|
|
29907
|
-
// }
|
|
29908
|
-
// const middle = this.calculateVerticalMiddleOfHTMLElement(dropTargetNode);
|
|
29909
|
-
// return clientY >= middle;
|
|
29910
|
-
// }
|
|
29911
|
-
// protected calculateIsRight(
|
|
29912
|
-
// clientX: number,
|
|
29913
|
-
// dropTargetNode?: HTMLElement
|
|
29914
|
-
// ): boolean {
|
|
29915
|
-
// // we shouldn't reculc isBottom if drag over ghost survey element
|
|
29916
|
-
// if (this.getDataAttributeValueByNode(dropTargetNode) === DragDropSurveyElements.ghostSurveyElementName) {
|
|
29917
|
-
// return this.isRight;
|
|
29918
|
-
// }
|
|
29919
|
-
// const middle = this.calculateHorizontalMiddleOfHTMLElement(dropTargetNode);
|
|
29920
|
-
// return clientX >= middle;
|
|
29921
|
-
// }
|
|
29922
|
-
// protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean {
|
|
29923
|
-
// // if (this.dropTarget === this.ghostSurveyElement) return true;
|
|
29924
|
-
// return (
|
|
29925
|
-
// this.dropTarget === this.prevDropTarget && newIsBottom === this.isBottom
|
|
29926
|
-
// && this.isEdge === this.prevIsEdge && this.isRight === this.prevIsRight
|
|
29927
|
-
// );
|
|
29928
|
-
// }
|
|
29929
30010
|
DragDropSurveyElements.prototype.shouldRestricDragQuestionBetweenPages = function (dropTarget) {
|
|
29930
30011
|
var oldPage = this.draggedElement["page"];
|
|
29931
30012
|
var newPage = dropTarget.isPage ? dropTarget : dropTarget["page"];
|
|
@@ -29998,22 +30079,10 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
29998
30079
|
var dragOverLocation = calculateDragOverLocation(event.clientX, event.clientY, dropTargetNode);
|
|
29999
30080
|
this.dragOverCore(dropTarget, dragOverLocation, this.isEdge, this.isSide);
|
|
30000
30081
|
};
|
|
30001
|
-
// protected doDragOver(dropTargetNode?: HTMLElement, event?: PointerEvent): void {
|
|
30002
|
-
// this.isRight = this.calculateIsRight(event.clientX, dropTargetNode);
|
|
30003
|
-
// }
|
|
30004
|
-
// protected afterDragOver(dropTargetNode: HTMLElement, event: PointerEvent): void {
|
|
30005
|
-
// this.prevIsEdge = this.isEdge;
|
|
30006
|
-
// this.prevIsRight = this.isRight;
|
|
30007
|
-
// this.insertGhostElementIntoSurvey();
|
|
30008
|
-
// }
|
|
30009
30082
|
DragDropSurveyElements.prototype.onStartDrag = function () {
|
|
30010
30083
|
// this.ghostSurveyElement = this.createGhostSurveyElement();
|
|
30011
30084
|
this.draggedElement.isDragMe = true;
|
|
30012
30085
|
};
|
|
30013
|
-
// protected doBanDropHere = (): void => {
|
|
30014
|
-
// this.removeGhostElementFromSurvey();
|
|
30015
|
-
// this.isEdge = null;
|
|
30016
|
-
// };
|
|
30017
30086
|
DragDropSurveyElements.prototype.getElementIndexInPanel = function (target, row) {
|
|
30018
30087
|
if (!row)
|
|
30019
30088
|
return -1;
|
|
@@ -30035,14 +30104,6 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
30035
30104
|
panel.removeElement(src);
|
|
30036
30105
|
panel.addElement(target, targetIndex);
|
|
30037
30106
|
};
|
|
30038
|
-
// protected doDrop = (): any => {
|
|
30039
|
-
// if (this.dropTarget) {
|
|
30040
|
-
// (<HTMLElement>document.activeElement).blur();
|
|
30041
|
-
// (<HTMLElement>settings.environment.root.activeElement).blur();
|
|
30042
|
-
// return this.insertRealElementIntoSurvey();
|
|
30043
|
-
// }
|
|
30044
|
-
// return null;
|
|
30045
|
-
// };
|
|
30046
30107
|
DragDropSurveyElements.prototype.removeDragOverMarker = function (dropTarget) {
|
|
30047
30108
|
var _a;
|
|
30048
30109
|
if (!!dropTarget) {
|
|
@@ -30064,62 +30125,6 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
30064
30125
|
}
|
|
30065
30126
|
_super.prototype.clear.call(this);
|
|
30066
30127
|
};
|
|
30067
|
-
// protected doClear = (): void => {
|
|
30068
|
-
// // this.removeGhostElementFromSurvey();
|
|
30069
|
-
// this.isEdge = null;
|
|
30070
|
-
// this.isSide = null;
|
|
30071
|
-
// // this.ghostSurveyElement = null;
|
|
30072
|
-
// this.removeDragOverMarker(this.prevDropTarget);
|
|
30073
|
-
// this.removeDragOverMarker(this.dropTarget);
|
|
30074
|
-
// this.removeDragOverMarker(this.dragOverIndicatorElement);
|
|
30075
|
-
// if (!!this.draggedElement) {
|
|
30076
|
-
// this.draggedElement.isDragMe = false;
|
|
30077
|
-
// }
|
|
30078
|
-
// // this.isRight = null;
|
|
30079
|
-
// };
|
|
30080
|
-
// protected insertGhostElementIntoSurvey(): boolean {
|
|
30081
|
-
// this.removeGhostElementFromSurvey();
|
|
30082
|
-
// let isTargetRowMultiple = this.calcTargetRowMultiple();
|
|
30083
|
-
// this.ghostSurveyElement = this.createGhostSurveyElement(isTargetRowMultiple);
|
|
30084
|
-
// this.ghostSurveyElement.name =
|
|
30085
|
-
// DragDropSurveyElements.ghostSurveyElementName; // TODO why do we need setup it manually see createGhostSurveyElement method
|
|
30086
|
-
// this.parentElement = this.dropTarget.isPage
|
|
30087
|
-
// ? this.dropTarget
|
|
30088
|
-
// : ((<any>this.dropTarget).page || (<any>this.dropTarget).__page);
|
|
30089
|
-
// if (this.isDragOverInsideEmptyPanel()) {
|
|
30090
|
-
// this.dropTarget.dragTypeOverMe = DragTypeOverMeEnum.InsideEmptyPanel;
|
|
30091
|
-
// return;
|
|
30092
|
-
// }
|
|
30093
|
-
// if (!this.isEdge && isTargetRowMultiple) {
|
|
30094
|
-
// this.dropTarget.dragTypeOverMe = this.isRight ?
|
|
30095
|
-
// DragTypeOverMeEnum.MultilineRight :
|
|
30096
|
-
// DragTypeOverMeEnum.MultilineLeft;
|
|
30097
|
-
// return;
|
|
30098
|
-
// }
|
|
30099
|
-
// this.parentElement.dragDropStart(
|
|
30100
|
-
// this.draggedElement,
|
|
30101
|
-
// this.ghostSurveyElement,
|
|
30102
|
-
// DragDropSurveyElements.nestedPanelDepth
|
|
30103
|
-
// );
|
|
30104
|
-
// const result = this.parentElement.dragDropMoveTo(
|
|
30105
|
-
// this.dropTarget,
|
|
30106
|
-
// isTargetRowMultiple ? this.isRight : this.isBottom,
|
|
30107
|
-
// this.isEdge
|
|
30108
|
-
// );
|
|
30109
|
-
// return result;
|
|
30110
|
-
// }
|
|
30111
|
-
// private calcTargetRowMultiple() {
|
|
30112
|
-
// const targetParent = this.getTargetParent(this.dropTarget);
|
|
30113
|
-
// let targetRow: any = this.getTargetRow(this.dropTarget);
|
|
30114
|
-
// const isTargetRowMultiple = targetRow && targetRow.elements.length > 1;
|
|
30115
|
-
// const isTemplatePanelInPanelDynamic = targetParent.isPanel && !targetParent.name;
|
|
30116
|
-
// if (this.isEdge && isTargetRowMultiple && !isTemplatePanelInPanelDynamic) {
|
|
30117
|
-
// targetParent.__page = this.dropTarget.page || this.dropTarget.__page;
|
|
30118
|
-
// this.dropTarget = targetParent;
|
|
30119
|
-
// return false;
|
|
30120
|
-
// }
|
|
30121
|
-
// return isTargetRowMultiple;
|
|
30122
|
-
// }
|
|
30123
30128
|
DragDropSurveyElements.prototype.getTargetParent = function (dropTarget) {
|
|
30124
30129
|
var targetParent = dropTarget.isPage || dropTarget.isPanel ? dropTarget : dropTarget.parent;
|
|
30125
30130
|
if (dropTarget.getType() === "paneldynamic") {
|
|
@@ -30184,6 +30189,16 @@ var ObjType;
|
|
|
30184
30189
|
var SurveyHelper = /** @class */ (function () {
|
|
30185
30190
|
function SurveyHelper() {
|
|
30186
30191
|
}
|
|
30192
|
+
SurveyHelper.getNewElementName = function (el) {
|
|
30193
|
+
var survey = el.getSurvey();
|
|
30194
|
+
if (!survey)
|
|
30195
|
+
return el.name;
|
|
30196
|
+
if (el.isPage)
|
|
30197
|
+
return this.getNewPageName(survey.pages);
|
|
30198
|
+
if (el.isPanel)
|
|
30199
|
+
return this.getNewPanelName(survey.getAllPanels());
|
|
30200
|
+
return this.getNewQuestionName(survey.getAllQuestions());
|
|
30201
|
+
};
|
|
30187
30202
|
SurveyHelper.getNewPageName = function (objs) {
|
|
30188
30203
|
return SurveyHelper.getNewName(objs, _editorLocalization__WEBPACK_IMPORTED_MODULE_1__["editorLocalization"].getString("ed.newPageName"));
|
|
30189
30204
|
};
|
|
@@ -30543,7 +30558,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30543
30558
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
30544
30559
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
30545
30560
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
30546
|
-
/* harmony import */ var
|
|
30561
|
+
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./survey-helper */ "./src/survey-helper.ts");
|
|
30562
|
+
/* harmony import */ var _json5__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./json5 */ "./src/json5.ts");
|
|
30563
|
+
|
|
30547
30564
|
|
|
30548
30565
|
|
|
30549
30566
|
|
|
@@ -30557,6 +30574,20 @@ var SurveyForTextWorker = /** @class */ (function (_super) {
|
|
|
30557
30574
|
}
|
|
30558
30575
|
return SurveyForTextWorker;
|
|
30559
30576
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["SurveyModel"]));
|
|
30577
|
+
var SurveyTextWorkerJsonErrorFixerBase = /** @class */ (function () {
|
|
30578
|
+
function SurveyTextWorkerJsonErrorFixerBase() {
|
|
30579
|
+
}
|
|
30580
|
+
SurveyTextWorkerJsonErrorFixerBase.prototype.getCorrectAt = function (text, at, end) {
|
|
30581
|
+
return at;
|
|
30582
|
+
};
|
|
30583
|
+
Object.defineProperty(SurveyTextWorkerJsonErrorFixerBase.prototype, "isFixable", {
|
|
30584
|
+
get: function () { return false; },
|
|
30585
|
+
enumerable: false,
|
|
30586
|
+
configurable: true
|
|
30587
|
+
});
|
|
30588
|
+
SurveyTextWorkerJsonErrorFixerBase.prototype.fixError = function (text, start, end) { return text; };
|
|
30589
|
+
return SurveyTextWorkerJsonErrorFixerBase;
|
|
30590
|
+
}());
|
|
30560
30591
|
var SurveyTextWorkerError = /** @class */ (function () {
|
|
30561
30592
|
function SurveyTextWorkerError(at, text) {
|
|
30562
30593
|
this.at = at;
|
|
@@ -30564,6 +30595,25 @@ var SurveyTextWorkerError = /** @class */ (function () {
|
|
|
30564
30595
|
this.rowAt = -1;
|
|
30565
30596
|
this.columnAt = -1;
|
|
30566
30597
|
}
|
|
30598
|
+
Object.defineProperty(SurveyTextWorkerError.prototype, "isFixable", {
|
|
30599
|
+
get: function () { return this.fixer.isFixable; },
|
|
30600
|
+
enumerable: false,
|
|
30601
|
+
configurable: true
|
|
30602
|
+
});
|
|
30603
|
+
SurveyTextWorkerError.prototype.fixError = function (text) { return text; };
|
|
30604
|
+
Object.defineProperty(SurveyTextWorkerError.prototype, "fixer", {
|
|
30605
|
+
get: function () {
|
|
30606
|
+
if (!this.fixerValue) {
|
|
30607
|
+
this.fixerValue = this.createFixer();
|
|
30608
|
+
}
|
|
30609
|
+
return this.fixerValue;
|
|
30610
|
+
},
|
|
30611
|
+
enumerable: false,
|
|
30612
|
+
configurable: true
|
|
30613
|
+
});
|
|
30614
|
+
SurveyTextWorkerError.prototype.createFixer = function () {
|
|
30615
|
+
return new SurveyTextWorkerJsonErrorFixerBase();
|
|
30616
|
+
};
|
|
30567
30617
|
return SurveyTextWorkerError;
|
|
30568
30618
|
}());
|
|
30569
30619
|
|
|
@@ -30576,45 +30626,140 @@ var SurveyTextWorkerParserError = /** @class */ (function (_super) {
|
|
|
30576
30626
|
return SurveyTextWorkerParserError;
|
|
30577
30627
|
}(SurveyTextWorkerError));
|
|
30578
30628
|
|
|
30629
|
+
var SurveyTextWorkerJsonErrorFixer = /** @class */ (function (_super) {
|
|
30630
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyTextWorkerJsonErrorFixer, _super);
|
|
30631
|
+
function SurveyTextWorkerJsonErrorFixer(element, jsonObj) {
|
|
30632
|
+
var _this = _super.call(this) || this;
|
|
30633
|
+
_this.element = element;
|
|
30634
|
+
_this.jsonObj = jsonObj;
|
|
30635
|
+
return _this;
|
|
30636
|
+
}
|
|
30637
|
+
SurveyTextWorkerJsonErrorFixer.prototype.getNewIndex = function (text, findText, at, end) {
|
|
30638
|
+
var index = text.indexOf(findText, at);
|
|
30639
|
+
if (index > -1 && (end < 0 || index < end)) {
|
|
30640
|
+
return index;
|
|
30641
|
+
}
|
|
30642
|
+
return -1;
|
|
30643
|
+
};
|
|
30644
|
+
SurveyTextWorkerJsonErrorFixer.prototype.fixError = function (text, start, end) {
|
|
30645
|
+
var content = text.substring(start, end + 1);
|
|
30646
|
+
var json = JSON.parse(content);
|
|
30647
|
+
this.updatedJsonObjOnFix(json);
|
|
30648
|
+
return this.replaceJson(text, start, end, json);
|
|
30649
|
+
};
|
|
30650
|
+
SurveyTextWorkerJsonErrorFixer.prototype.updatedJsonObjOnFix = function (json) {
|
|
30651
|
+
};
|
|
30652
|
+
SurveyTextWorkerJsonErrorFixer.prototype.replaceJson = function (text, start, end, json) {
|
|
30653
|
+
var newContent = JSON.stringify(json);
|
|
30654
|
+
return text.substring(0, start) + newContent + text.substring(end + 1);
|
|
30655
|
+
};
|
|
30656
|
+
return SurveyTextWorkerJsonErrorFixer;
|
|
30657
|
+
}(SurveyTextWorkerJsonErrorFixerBase));
|
|
30658
|
+
var SurveyTextWorkerJsonUnknownPropertyErrorFixer = /** @class */ (function (_super) {
|
|
30659
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyTextWorkerJsonUnknownPropertyErrorFixer, _super);
|
|
30660
|
+
function SurveyTextWorkerJsonUnknownPropertyErrorFixer(element, jsonObj, propertyName) {
|
|
30661
|
+
var _this = _super.call(this, element, jsonObj) || this;
|
|
30662
|
+
_this.element = element;
|
|
30663
|
+
_this.jsonObj = jsonObj;
|
|
30664
|
+
_this.propertyName = propertyName;
|
|
30665
|
+
return _this;
|
|
30666
|
+
}
|
|
30667
|
+
Object.defineProperty(SurveyTextWorkerJsonUnknownPropertyErrorFixer.prototype, "isFixable", {
|
|
30668
|
+
get: function () { return !!this.propertyName; },
|
|
30669
|
+
enumerable: false,
|
|
30670
|
+
configurable: true
|
|
30671
|
+
});
|
|
30672
|
+
SurveyTextWorkerJsonUnknownPropertyErrorFixer.prototype.getCorrectAt = function (text, at, end) {
|
|
30673
|
+
var propName = this.propertyName;
|
|
30674
|
+
if (!propName)
|
|
30675
|
+
return at;
|
|
30676
|
+
return this.getNewIndex(text, this.propertyName, at, end);
|
|
30677
|
+
};
|
|
30678
|
+
SurveyTextWorkerJsonUnknownPropertyErrorFixer.prototype.updatedJsonObjOnFix = function (json) {
|
|
30679
|
+
if (!!this.propertyName) {
|
|
30680
|
+
delete json[this.propertyName];
|
|
30681
|
+
}
|
|
30682
|
+
};
|
|
30683
|
+
return SurveyTextWorkerJsonUnknownPropertyErrorFixer;
|
|
30684
|
+
}(SurveyTextWorkerJsonErrorFixer));
|
|
30685
|
+
var SurveyTextWorkerJsonDuplicateNameErrorFixer = /** @class */ (function (_super) {
|
|
30686
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyTextWorkerJsonDuplicateNameErrorFixer, _super);
|
|
30687
|
+
function SurveyTextWorkerJsonDuplicateNameErrorFixer() {
|
|
30688
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
30689
|
+
}
|
|
30690
|
+
Object.defineProperty(SurveyTextWorkerJsonDuplicateNameErrorFixer.prototype, "isFixable", {
|
|
30691
|
+
get: function () { return true; },
|
|
30692
|
+
enumerable: false,
|
|
30693
|
+
configurable: true
|
|
30694
|
+
});
|
|
30695
|
+
SurveyTextWorkerJsonDuplicateNameErrorFixer.prototype.getCorrectAt = function (text, at, end) {
|
|
30696
|
+
var newAt = this.getNewIndex(text, "name:", at, end);
|
|
30697
|
+
if (newAt > at)
|
|
30698
|
+
return newAt;
|
|
30699
|
+
return this.getNewIndex(text, "\"name\":", at, end);
|
|
30700
|
+
};
|
|
30701
|
+
SurveyTextWorkerJsonDuplicateNameErrorFixer.prototype.updatedJsonObjOnFix = function (json) {
|
|
30702
|
+
json["name"] = _survey_helper__WEBPACK_IMPORTED_MODULE_2__["SurveyHelper"].getNewElementName(this.element);
|
|
30703
|
+
};
|
|
30704
|
+
return SurveyTextWorkerJsonDuplicateNameErrorFixer;
|
|
30705
|
+
}(SurveyTextWorkerJsonErrorFixer));
|
|
30706
|
+
var SurveyTextWorkerJsonRequiredPropertyErrorFixer = /** @class */ (function (_super) {
|
|
30707
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyTextWorkerJsonRequiredPropertyErrorFixer, _super);
|
|
30708
|
+
function SurveyTextWorkerJsonRequiredPropertyErrorFixer(element, jsonObj, propertyName) {
|
|
30709
|
+
var _this = _super.call(this, element, jsonObj) || this;
|
|
30710
|
+
_this.element = element;
|
|
30711
|
+
_this.jsonObj = jsonObj;
|
|
30712
|
+
_this.propertyName = propertyName;
|
|
30713
|
+
return _this;
|
|
30714
|
+
}
|
|
30715
|
+
Object.defineProperty(SurveyTextWorkerJsonRequiredPropertyErrorFixer.prototype, "isFixable", {
|
|
30716
|
+
get: function () { return this.propertyName === "name"; },
|
|
30717
|
+
enumerable: false,
|
|
30718
|
+
configurable: true
|
|
30719
|
+
});
|
|
30720
|
+
SurveyTextWorkerJsonRequiredPropertyErrorFixer.prototype.updatedJsonObjOnFix = function (json) {
|
|
30721
|
+
var name = this.element["name"];
|
|
30722
|
+
if (!name)
|
|
30723
|
+
name = _survey_helper__WEBPACK_IMPORTED_MODULE_2__["SurveyHelper"].getNewElementName(this.element);
|
|
30724
|
+
json["name"] = name;
|
|
30725
|
+
};
|
|
30726
|
+
return SurveyTextWorkerJsonRequiredPropertyErrorFixer;
|
|
30727
|
+
}(SurveyTextWorkerJsonErrorFixer));
|
|
30579
30728
|
var SurveyTextWorkerJsonError = /** @class */ (function (_super) {
|
|
30580
30729
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyTextWorkerJsonError, _super);
|
|
30581
30730
|
function SurveyTextWorkerJsonError(jsonError) {
|
|
30582
30731
|
var _this = _super.call(this, jsonError.at, jsonError.getFullDescription()) || this;
|
|
30583
30732
|
_this.elementStart = jsonError.at;
|
|
30584
30733
|
_this.elementEnd = jsonError.end;
|
|
30585
|
-
|
|
30734
|
+
_this.element = jsonError.element;
|
|
30586
30735
|
_this.errorType = jsonError.type;
|
|
30587
30736
|
_this.propertyName = jsonError["propertyName"];
|
|
30737
|
+
_this.jsonObj = jsonError.jsonObj;
|
|
30588
30738
|
return _this;
|
|
30589
30739
|
}
|
|
30740
|
+
SurveyTextWorkerJsonError.prototype.createFixer = function () {
|
|
30741
|
+
if (this.errorType === "unknownproperty")
|
|
30742
|
+
return new SurveyTextWorkerJsonUnknownPropertyErrorFixer(this.element, this.jsonObj, this.propertyName);
|
|
30743
|
+
if (this.errorType === "duplicatename")
|
|
30744
|
+
return new SurveyTextWorkerJsonDuplicateNameErrorFixer(this.element, this.jsonObj);
|
|
30745
|
+
if (this.errorType === "requiredproperty")
|
|
30746
|
+
return new SurveyTextWorkerJsonRequiredPropertyErrorFixer(this.element, this.jsonObj, this.propertyName);
|
|
30747
|
+
return _super.prototype.createFixer.call(this);
|
|
30748
|
+
};
|
|
30590
30749
|
SurveyTextWorkerJsonError.prototype.getErrorType = function () { return this.errorType; };
|
|
30750
|
+
Object.defineProperty(SurveyTextWorkerJsonError.prototype, "isFixable", {
|
|
30751
|
+
get: function () { return this.fixer.isFixable && this.elementStart > -1 && this.elementEnd > this.elementStart; },
|
|
30752
|
+
enumerable: false,
|
|
30753
|
+
configurable: true
|
|
30754
|
+
});
|
|
30591
30755
|
SurveyTextWorkerJsonError.prototype.correctAt = function (text) {
|
|
30592
|
-
|
|
30593
|
-
|
|
30594
|
-
|
|
30595
|
-
this.at = this.getCorrectAtForUnknowProperty(text);
|
|
30596
|
-
}
|
|
30597
|
-
if (this.errorType === "duplicatename") {
|
|
30598
|
-
this.at = this.getCorrectAtForDuplicateName(text);
|
|
30756
|
+
var newAt = this.fixer.getCorrectAt(text, this.at, this.elementEnd);
|
|
30757
|
+
if (newAt > -1) {
|
|
30758
|
+
this.at = newAt;
|
|
30599
30759
|
}
|
|
30600
30760
|
};
|
|
30601
|
-
SurveyTextWorkerJsonError.prototype.
|
|
30602
|
-
|
|
30603
|
-
return newAt > -1 ? newAt : this.at;
|
|
30604
|
-
};
|
|
30605
|
-
SurveyTextWorkerJsonError.prototype.getCorrectAtForDuplicateName = function (text) {
|
|
30606
|
-
var newAt = this.getNewIndex(text, "name:");
|
|
30607
|
-
if (newAt < 0) {
|
|
30608
|
-
newAt = this.getNewIndex(text, "\"name\":");
|
|
30609
|
-
}
|
|
30610
|
-
return newAt > -1 ? newAt : this.at;
|
|
30611
|
-
};
|
|
30612
|
-
SurveyTextWorkerJsonError.prototype.getNewIndex = function (text, findText) {
|
|
30613
|
-
var index = text.indexOf(findText, this.at);
|
|
30614
|
-
if (index > -1 && (this.elementEnd < 0 || index < this.elementEnd)) {
|
|
30615
|
-
return index;
|
|
30616
|
-
}
|
|
30617
|
-
return -1;
|
|
30761
|
+
SurveyTextWorkerJsonError.prototype.fixError = function (text) {
|
|
30762
|
+
return this.fixer.fixError(text, this.elementStart, this.elementEnd);
|
|
30618
30763
|
};
|
|
30619
30764
|
return SurveyTextWorkerJsonError;
|
|
30620
30765
|
}(SurveyTextWorkerError));
|
|
@@ -30645,7 +30790,7 @@ var SurveyTextWorker = /** @class */ (function () {
|
|
|
30645
30790
|
SurveyTextWorker.prototype.process = function () {
|
|
30646
30791
|
var _this = this;
|
|
30647
30792
|
try {
|
|
30648
|
-
this.jsonValue = new
|
|
30793
|
+
this.jsonValue = new _json5__WEBPACK_IMPORTED_MODULE_3__["SurveyJSON5"](1).parse(this.text);
|
|
30649
30794
|
}
|
|
30650
30795
|
catch (error) {
|
|
30651
30796
|
this.errors.push(new SurveyTextWorkerParserError(error.at, error.message));
|
|
@@ -30752,6 +30897,7 @@ var SurveyTextWorker = /** @class */ (function () {
|
|
|
30752
30897
|
error.element = el;
|
|
30753
30898
|
return error;
|
|
30754
30899
|
};
|
|
30900
|
+
SurveyTextWorker.newLineChar = "\n";
|
|
30755
30901
|
return SurveyTextWorker;
|
|
30756
30902
|
}());
|
|
30757
30903
|
|