survey-creator-core 1.9.89 → 1.9.91
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 +224 -93
- package/survey-creator-core.fontless.css +223 -92
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +12 -12
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +1837 -514
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +13 -13
- package/survey-creator-core.min.js +3 -3
- package/typings/components/item-value.d.ts +1 -0
- package/typings/components/page.d.ts +5 -2
- package/typings/components/question-rating.d.ts +1 -0
- package/typings/components/question.d.ts +1 -1
- package/typings/components/simulator.d.ts +0 -1
- package/typings/components/string-editor.d.ts +1 -0
- package/typings/components/tabs/theme-custom-questions/boxshadow-settings.d.ts +2 -0
- package/typings/components/tabs/theme-custom-questions/color-settings.d.ts +1 -0
- package/typings/components/tabs/theme-custom-questions/element-settings.d.ts +1 -0
- package/typings/components/tabs/theme-custom-questions/font-settings.d.ts +1 -0
- package/typings/components/tabs/theme-plugin.d.ts +3 -0
- package/typings/components/tabs/theme.d.ts +18 -39
- package/typings/creator-base.d.ts +21 -2
- package/typings/creator-settings.d.ts +4 -0
- package/typings/custom-questions/question-color.d.ts +10 -1
- package/typings/editorLocalization.d.ts +13 -0
- package/typings/entries/index.d.ts +4 -0
- package/typings/localization/english.d.ts +13 -0
- package/typings/property-grid/matrices.d.ts +1 -0
- package/typings/property-grid-theme/property-grid.d.ts +3 -1
- package/typings/survey-elements.d.ts +44 -0
- package/typings/utils/utils.d.ts +23 -0
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.9.
|
|
2
|
+
* SurveyJS Creator v1.9.91
|
|
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
|
|
@@ -102,6 +102,17 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
102
102
|
/************************************************************************/
|
|
103
103
|
/******/ ({
|
|
104
104
|
|
|
105
|
+
/***/ "./imported-themes.json":
|
|
106
|
+
/*!******************************!*\
|
|
107
|
+
!*** ./imported-themes.json ***!
|
|
108
|
+
\******************************/
|
|
109
|
+
/*! exports provided: default, contrast, plain, simple, blank, double, bulk, pseudo-3d, playful, ultra, default-dark, contrast-dark, plain-dark, simple-dark, blank-dark, double-dark, bulk-dark, pseudo-3d-dark, playful-dark, ultra-dark, default-lw, contrast-lw, plain-lw, simple-lw, double-lw, bulk-lw, pseudo-3d-lw, playful-lw, ultra-lw, default-dark-lw, contrast-dark-lw, plain-dark-lw, simple-dark-lw, double-dark-lw, bulk-dark-lw, pseudo-3d-dark-lw, ultra-dark-lw, dark-designer */
|
|
110
|
+
/***/ (function(module) {
|
|
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-forecolor\":\"rgba(0, 0, 0, 0.91)\",\"--sjs-general-forecolor-light\":\"rgba(0, 0, 0, 0.45)\",\"--sjs-general-dim-forecolor\":\"rgba(0, 0, 0, 0.91)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 0.45)\",\"--sjs-primary-backcolor\":\"rgba(25, 179, 148, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(25, 179, 148, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(20, 164, 139, 1)\",\"--sjs-primary-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-secondary-backcolor\":\"rgba(255, 152, 20, 1)\",\"--sjs-secondary-backcolor-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-secondary-backcolor-semi-light\":\"rgba(255, 152, 20, 0.25)\",\"--sjs-secondary-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-secondary-forecolor-light\":\"rgba(255, 255, 255, 0.25)\",\"--sjs-shadow-small\":\"0px 1px 2px 0px rgba(0, 0, 0, 0.15)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.1)\",\"--sjs-shadow-inner\":\"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15)\",\"--sjs-border-light\":\"rgba(0, 0, 0, 0.09)\",\"--sjs-border-default\":\"rgba(0, 0, 0, 0.16)\",\"--sjs-border-inside\":\"rgba(0, 0, 0, 0.16)\",\"--sjs-special-red\":\"rgba(229, 10, 62, 1)\",\"--sjs-special-red-light\":\"rgba(229, 10, 62, 0.1)\",\"--sjs-special-red-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-special-green\":\"rgba(25, 179, 148, 1)\",\"--sjs-special-green-light\":\"rgba(25, 179, 148, 0.1)\",\"--sjs-special-green-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-special-blue\":\"rgba(67, 127, 217, 1)\",\"--sjs-special-blue-light\":\"rgba(67, 127, 217, 0.1)\",\"--sjs-special-blue-forecolor\":\"rgba(255, 255, 255, 1)\",\"--sjs-special-yellow\":\"rgba(255, 152, 20, 1)\",\"--sjs-special-yellow-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-special-yellow-forecolor\":\"rgba(255, 255, 255, 1)\"},\"contrast\":{\"--sjs-general-backcolor-dark\":\"rgba(228, 228, 228, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(224, 224, 224, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(238, 238, 238, 1)\",\"--sjs-general-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-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-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-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-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-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-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-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-forecolor\":\"rgba(255, 255, 255, 0.78)\",\"--sjs-general-forecolor-light\":\"rgba(255, 255, 255, 0.42)\",\"--sjs-general-dim-forecolor\":\"rgba(255, 255, 255, 0.79)\",\"--sjs-general-dim-forecolor-light\":\"rgba(255, 255, 255, 0.45)\",\"--sjs-primary-backcolor\":\"rgba(255, 152, 20, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(255, 255, 255, 0.07)\",\"--sjs-primary-backcolor-dark\":\"rgba(255, 170, 24, 1)\",\"--sjs-primary-forecolor\":\"rgba(32, 32, 32, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\",\"--sjs-secondary-backcolor\":\"rgba(255, 152, 20, 1)\",\"--sjs-secondary-backcolor-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-secondary-backcolor-semi-light\":\"rgba(255, 152, 20, 0.25)\",\"--sjs-secondary-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-secondary-forecolor-light\":\"rgba(48, 48, 48, 0.25)\",\"--sjs-shadow-small\":\"0px 1px 2px 0px rgba(0, 0, 0, 0.35)\",\"--sjs-shadow-medium\":\"0px 2px 6px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-shadow-large\":\"0px 8px 16px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-shadow-inner\":\"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.2)\",\"--sjs-border-light\":\"rgba(255, 255, 255, 0.08)\",\"--sjs-border-default\":\"rgba(255, 255, 255, 0.12)\",\"--sjs-border-inside\":\"rgba(255, 255, 255, 0.08)\",\"--sjs-special-red\":\"rgba(254, 76, 108, 1)\",\"--sjs-special-red-light\":\"rgba(254, 76, 108, 0.1)\",\"--sjs-special-red-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-special-green\":\"rgba(36, 197, 164, 1)\",\"--sjs-special-green-light\":\"rgba(36, 197, 164, 0.1)\",\"--sjs-special-green-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-special-blue\":\"rgba(91, 151, 242, 1)\",\"--sjs-special-blue-light\":\"rgba(91, 151, 242, 0.1)\",\"--sjs-special-blue-forecolor\":\"rgba(48, 48, 48, 1)\",\"--sjs-special-yellow\":\"rgba(255, 152, 20, 1)\",\"--sjs-special-yellow-light\":\"rgba(255, 152, 20, 0.1)\",\"--sjs-special-yellow-forecolor\":\"rgba(48, 48, 48, 1)\"},\"contrast-dark\":{\"--sjs-general-backcolor-dark\":\"rgba(58, 58, 58, 1)\",\"--sjs-general-backcolor-dim\":\"rgba(27, 27, 27, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(33, 33, 33, 1)\",\"--sjs-general-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-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-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-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-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-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-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-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-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)\"},\"simple-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(246, 246, 246, 1)\"},\"double-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(245, 245, 245, 1)\"},\"bulk-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\"},\"pseudo-3d-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(0, 0, 0, 0.91)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 0.45)\"},\"playful-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(248, 248, 248, 1)\"},\"ultra-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 255, 255, 1)\"},\"default-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\"},\"contrast-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\",\"--sjs-general-backcolor-dim-light\":\"rgba(33, 33, 33, 1)\"},\"plain-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(43, 48, 63, 1)\"},\"simple-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(48, 48, 48, 1)\"},\"double-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(52, 52, 52, 1)\"},\"bulk-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(39, 40, 50, 1)\"},\"pseudo-3d-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(53, 55, 63, 1)\"},\"ultra-dark-lw\":{\"--sjs-general-backcolor-dim\":\"rgba(255, 216, 77, 1)\",\"--sjs-general-dim-forecolor\":\"rgba(0, 0, 0, 1)\",\"--sjs-general-dim-forecolor-light\":\"rgba(0, 0, 0, 1)\"},\"dark-designer\":{\"--sjs-primary-backcolor\":\"rgba(36, 197, 164, 1)\",\"--sjs-primary-backcolor-light\":\"rgba(36, 197, 164, 0.1)\",\"--sjs-primary-backcolor-dark\":\"rgba(44, 206, 173, 1)\",\"--sjs-base-unit\":\"8px\",\"--sjs-corner-radius\":\"4px\"}}");
|
|
113
|
+
|
|
114
|
+
/***/ }),
|
|
115
|
+
|
|
105
116
|
/***/ "./node_modules/papaparse/papaparse.min.js":
|
|
106
117
|
/*!*************************************************!*\
|
|
107
118
|
!*** ./node_modules/papaparse/papaparse.min.js ***!
|
|
@@ -683,7 +694,7 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
683
694
|
_this.dragDropHelper.startDrag(pointerDownEvent, _this.item, _this.question, currentTarget);
|
|
684
695
|
};
|
|
685
696
|
_this.handleDragDropGhostPositionChanged = function () {
|
|
686
|
-
_this.ghostPosition = _this.
|
|
697
|
+
_this.ghostPosition = _this.getGhostPosition(_this.item);
|
|
687
698
|
_this.isDragDropGhost = _this.item === _this.dragDropHelper.draggedElement;
|
|
688
699
|
if (_this.item === _this.dragDropHelper.prevDropTarget) {
|
|
689
700
|
_this.isDragDropMoveDown = _this.item.isDragDropMoveDown;
|
|
@@ -771,6 +782,11 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
771
782
|
_super.prototype.dispose.call(this);
|
|
772
783
|
this.dragDropHelper.onGhostPositionChanged.remove(this.handleDragDropGhostPositionChanged);
|
|
773
784
|
};
|
|
785
|
+
ItemValueWrapperViewModel.prototype.getGhostPosition = function (item) {
|
|
786
|
+
if (this.dragDropHelper.dropTarget !== item)
|
|
787
|
+
return null;
|
|
788
|
+
return this.dragDropHelper.isBottom ? "bottom" : "top";
|
|
789
|
+
};
|
|
774
790
|
Object.defineProperty(ItemValueWrapperViewModel.prototype, "isDraggable", {
|
|
775
791
|
get: function () {
|
|
776
792
|
return this.isDraggableItem(this.item);
|
|
@@ -1602,6 +1618,7 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1602
1618
|
"description"
|
|
1603
1619
|
]);
|
|
1604
1620
|
currentPage.name = _survey_helper__WEBPACK_IMPORTED_MODULE_4__["SurveyHelper"].getNewPageName(_this.creator.survey.pages);
|
|
1621
|
+
_this.dragTypeOverMe = null;
|
|
1605
1622
|
return true;
|
|
1606
1623
|
})) {
|
|
1607
1624
|
_this.creator.survey.currentPage = currentPage;
|
|
@@ -1623,6 +1640,7 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1623
1640
|
var _this = this;
|
|
1624
1641
|
_super.prototype.attachElement.call(this, surveyElement);
|
|
1625
1642
|
if (!!this.page) {
|
|
1643
|
+
this.dragTypeOverMe = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.page.dragTypeOverMe; });
|
|
1626
1644
|
this.page["surveyChangedCallback"] = function () {
|
|
1627
1645
|
_this.isPageLive = !!_this.page.survey;
|
|
1628
1646
|
};
|
|
@@ -1686,12 +1704,12 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1686
1704
|
enumerable: false,
|
|
1687
1705
|
configurable: true
|
|
1688
1706
|
});
|
|
1689
|
-
PageAdorner.prototype.addNewQuestion = function (model, event) {
|
|
1707
|
+
PageAdorner.prototype.addNewQuestion = function (model, event, type) {
|
|
1690
1708
|
var _this = this;
|
|
1691
1709
|
this.creator.addNewQuestionInPage(function (type) {
|
|
1692
1710
|
_this.addGhostPage(false);
|
|
1693
1711
|
_this.creator.survey.currentPage = _this.page;
|
|
1694
|
-
}, null, this.currentAddQuestionType || _creator_settings__WEBPACK_IMPORTED_MODULE_5__["settings"].designer.defaultAddQuestionType);
|
|
1712
|
+
}, null, type || this.currentAddQuestionType || _creator_settings__WEBPACK_IMPORTED_MODULE_5__["settings"].designer.defaultAddQuestionType);
|
|
1695
1713
|
};
|
|
1696
1714
|
PageAdorner.prototype.select = function (model, event) {
|
|
1697
1715
|
if (!model.isGhost) {
|
|
@@ -1710,12 +1728,17 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1710
1728
|
};
|
|
1711
1729
|
Object.defineProperty(PageAdorner.prototype, "css", {
|
|
1712
1730
|
get: function () {
|
|
1731
|
+
var result = "";
|
|
1732
|
+
if (!!this.dragTypeOverMe && this.page.elements.length === 0 && this.creator.survey.pages.length > 0) {
|
|
1733
|
+
result = "svc-page--drag-over-empty";
|
|
1734
|
+
}
|
|
1713
1735
|
if (this.isGhost) {
|
|
1714
|
-
return "svc-page__content--new";
|
|
1736
|
+
return result + " svc-page__content--new";
|
|
1715
1737
|
}
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1738
|
+
if (this.creator.isElementSelected(this.page)) {
|
|
1739
|
+
result += " svc-page__content--selected";
|
|
1740
|
+
}
|
|
1741
|
+
return result;
|
|
1719
1742
|
},
|
|
1720
1743
|
enumerable: false,
|
|
1721
1744
|
configurable: true
|
|
@@ -1739,6 +1762,30 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1739
1762
|
enumerable: false,
|
|
1740
1763
|
configurable: true
|
|
1741
1764
|
});
|
|
1765
|
+
Object.defineProperty(PageAdorner.prototype, "footerActionsBar", {
|
|
1766
|
+
get: function () {
|
|
1767
|
+
var _this = this;
|
|
1768
|
+
if (!this._footerActionsBar) {
|
|
1769
|
+
this._footerActionsBar = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ActionContainer"]();
|
|
1770
|
+
this._footerActionsBar.containerCss = "svc-page__footer";
|
|
1771
|
+
this._footerActionsBar.cssClasses = {
|
|
1772
|
+
item: "svc-btn",
|
|
1773
|
+
itemTitle: "svc-text svc-text--normal svc-text--bold"
|
|
1774
|
+
};
|
|
1775
|
+
var footerActions = [{
|
|
1776
|
+
css: "svc-add-new-question-action",
|
|
1777
|
+
visible: (new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.showAddQuestionButton; })),
|
|
1778
|
+
component: "svc-add-new-question-btn",
|
|
1779
|
+
data: this
|
|
1780
|
+
}];
|
|
1781
|
+
footerActions = this.creator.getUpdatedPageAdornerFooterActions(this, footerActions);
|
|
1782
|
+
this.footerActionsBar.setItems(footerActions);
|
|
1783
|
+
}
|
|
1784
|
+
return this._footerActionsBar;
|
|
1785
|
+
},
|
|
1786
|
+
enumerable: false,
|
|
1787
|
+
configurable: true
|
|
1788
|
+
});
|
|
1742
1789
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
1743
1790
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
1744
1791
|
], PageAdorner.prototype, "isSelected", void 0);
|
|
@@ -1748,6 +1795,9 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1748
1795
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
1749
1796
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "" })
|
|
1750
1797
|
], PageAdorner.prototype, "currentAddQuestionType", void 0);
|
|
1798
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
1799
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: null })
|
|
1800
|
+
], PageAdorner.prototype, "dragTypeOverMe", void 0);
|
|
1751
1801
|
return PageAdorner;
|
|
1752
1802
|
}(_action_container_view_model__WEBPACK_IMPORTED_MODULE_2__["SurveyElementAdornerBase"]));
|
|
1753
1803
|
|
|
@@ -2126,7 +2176,7 @@ var QuestionRatingAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2126
2176
|
};
|
|
2127
2177
|
Object.defineProperty(QuestionRatingAdornerViewModel.prototype, "allowAdd", {
|
|
2128
2178
|
get: function () {
|
|
2129
|
-
return
|
|
2179
|
+
return this.canAddOrRemove();
|
|
2130
2180
|
},
|
|
2131
2181
|
enumerable: false,
|
|
2132
2182
|
configurable: true
|
|
@@ -2151,9 +2201,14 @@ var QuestionRatingAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2151
2201
|
QuestionRatingAdornerViewModel.allowRemoveForElement = function (element) {
|
|
2152
2202
|
return element.rateCount > 2;
|
|
2153
2203
|
};
|
|
2204
|
+
QuestionRatingAdornerViewModel.prototype.canAddOrRemove = function () {
|
|
2205
|
+
return this.creator.isCanModifyProperty(this.element, "rateValues") &&
|
|
2206
|
+
this.creator.isCanModifyProperty(this.element, "rateCount") &&
|
|
2207
|
+
(!this.element.autoGenerate || this.creator.isCanModifyProperty(this.element, "rateMax"));
|
|
2208
|
+
};
|
|
2154
2209
|
Object.defineProperty(QuestionRatingAdornerViewModel.prototype, "allowRemove", {
|
|
2155
2210
|
get: function () {
|
|
2156
|
-
return
|
|
2211
|
+
return this.canAddOrRemove();
|
|
2157
2212
|
},
|
|
2158
2213
|
enumerable: false,
|
|
2159
2214
|
configurable: true
|
|
@@ -2263,12 +2318,6 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2263
2318
|
}
|
|
2264
2319
|
_this.checkActionProperties();
|
|
2265
2320
|
_this.dragOrClickHelper = new survey_core__WEBPACK_IMPORTED_MODULE_1__["DragOrClickHelper"](_this.startDragSurveyElement);
|
|
2266
|
-
_this.dragTypeOverMe = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
2267
|
-
var element = _this.surveyElement.getType() === "paneldynamic" ?
|
|
2268
|
-
_this.surveyElement.template :
|
|
2269
|
-
_this.surveyElement;
|
|
2270
|
-
return element.dragTypeOverMe;
|
|
2271
|
-
});
|
|
2272
2321
|
_string_editor__WEBPACK_IMPORTED_MODULE_7__["StringItemsNavigatorBase"].setQuestion(_this);
|
|
2273
2322
|
return _this;
|
|
2274
2323
|
}
|
|
@@ -2314,18 +2363,30 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2314
2363
|
else {
|
|
2315
2364
|
result = result.replace(" svc-question__content--drag-over-inside", "");
|
|
2316
2365
|
}
|
|
2317
|
-
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].MultilineLeft) {
|
|
2366
|
+
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].MultilineLeft || this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Left) {
|
|
2318
2367
|
result += " svc-question__content--drag-over-left";
|
|
2319
2368
|
}
|
|
2320
2369
|
else {
|
|
2321
2370
|
result = result.replace(" svc-question__content--drag-over-left", "");
|
|
2322
2371
|
}
|
|
2323
|
-
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].MultilineRight) {
|
|
2372
|
+
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].MultilineRight || this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Right) {
|
|
2324
2373
|
result += " svc-question__content--drag-over-right";
|
|
2325
2374
|
}
|
|
2326
2375
|
else {
|
|
2327
2376
|
result = result.replace(" svc-question__content--drag-over-right", "");
|
|
2328
2377
|
}
|
|
2378
|
+
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Top) {
|
|
2379
|
+
result += " svc-question__content--drag-over-top";
|
|
2380
|
+
}
|
|
2381
|
+
else {
|
|
2382
|
+
result = result.replace(" svc-question__content--drag-over-top", "");
|
|
2383
|
+
}
|
|
2384
|
+
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom) {
|
|
2385
|
+
result += " svc-question__content--drag-over-bottom";
|
|
2386
|
+
}
|
|
2387
|
+
else {
|
|
2388
|
+
result = result.replace(" svc-question__content--drag-over-bottom", "");
|
|
2389
|
+
}
|
|
2329
2390
|
return result;
|
|
2330
2391
|
};
|
|
2331
2392
|
Object.defineProperty(QuestionAdornerViewModel.prototype, "isDragMe", {
|
|
@@ -2335,6 +2396,13 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2335
2396
|
enumerable: false,
|
|
2336
2397
|
configurable: true
|
|
2337
2398
|
});
|
|
2399
|
+
Object.defineProperty(QuestionAdornerViewModel.prototype, "dragTypeOverMe", {
|
|
2400
|
+
get: function () {
|
|
2401
|
+
return this.element.dragTypeOverMe;
|
|
2402
|
+
},
|
|
2403
|
+
enumerable: false,
|
|
2404
|
+
configurable: true
|
|
2405
|
+
});
|
|
2338
2406
|
QuestionAdornerViewModel.prototype.dispose = function () {
|
|
2339
2407
|
this.surveyElement.unRegisterFunctionOnPropertyValueChanged("isRequired", "isRequiredAdorner");
|
|
2340
2408
|
this.surveyElement.unRegisterFunctionOnPropertyValueChanged("inputType", "inputTypeAdorner");
|
|
@@ -2568,9 +2636,6 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2568
2636
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
2569
2637
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "" })
|
|
2570
2638
|
], QuestionAdornerViewModel.prototype, "currentAddQuestionType", void 0);
|
|
2571
|
-
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
2572
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
2573
|
-
], QuestionAdornerViewModel.prototype, "dragTypeOverMe", void 0);
|
|
2574
2639
|
return QuestionAdornerViewModel;
|
|
2575
2640
|
}(_action_container_view_model__WEBPACK_IMPORTED_MODULE_5__["SurveyElementAdornerBase"]));
|
|
2576
2641
|
|
|
@@ -2841,8 +2906,11 @@ var RowViewModel = /** @class */ (function (_super) {
|
|
|
2841
2906
|
this.row.elements[0].name === "sv-drag-drop-ghost-survey-element-name") {
|
|
2842
2907
|
result += ghostClass;
|
|
2843
2908
|
}
|
|
2844
|
-
|
|
2845
|
-
result
|
|
2909
|
+
if (this.row.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Top) {
|
|
2910
|
+
result += " svc-row--drag-over-top";
|
|
2911
|
+
}
|
|
2912
|
+
if (this.row.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom) {
|
|
2913
|
+
result += " svc-row--drag-over-bottom";
|
|
2846
2914
|
}
|
|
2847
2915
|
return result;
|
|
2848
2916
|
},
|
|
@@ -3312,9 +3380,6 @@ var SurveySimulatorModel = /** @class */ (function (_super) {
|
|
|
3312
3380
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
3313
3381
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
|
|
3314
3382
|
], SurveySimulatorModel.prototype, "simulatorScaleEnabled", void 0);
|
|
3315
|
-
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
3316
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: {} })
|
|
3317
|
-
], SurveySimulatorModel.prototype, "themeVariables", void 0);
|
|
3318
3383
|
return SurveySimulatorModel;
|
|
3319
3384
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["Base"]));
|
|
3320
3385
|
|
|
@@ -3980,6 +4045,15 @@ var StringEditorViewModelBase = /** @class */ (function (_super) {
|
|
|
3980
4045
|
event.stopImmediatePropagation();
|
|
3981
4046
|
event.preventDefault();
|
|
3982
4047
|
};
|
|
4048
|
+
StringEditorViewModelBase.prototype.onPaste = function (event) {
|
|
4049
|
+
if (this.editAsText) {
|
|
4050
|
+
event.preventDefault();
|
|
4051
|
+
// get text representation of clipboard
|
|
4052
|
+
var text = event.clipboardData.getData("text/plain");
|
|
4053
|
+
// insert text manually
|
|
4054
|
+
document.execCommand("insertHTML", false, text);
|
|
4055
|
+
}
|
|
4056
|
+
};
|
|
3983
4057
|
StringEditorViewModelBase.prototype.onKeyDown = function (event) {
|
|
3984
4058
|
if (event.keyCode === 13) {
|
|
3985
4059
|
this.blurEditor();
|
|
@@ -4372,13 +4446,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4372
4446
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../editorLocalization */ "./src/editorLocalization.ts");
|
|
4373
4447
|
/* harmony import */ var _pages_controller__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../pages-controller */ "./src/pages-controller.ts");
|
|
4374
4448
|
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../survey-helper */ "./src/survey-helper.ts");
|
|
4449
|
+
/* harmony import */ var _survey_elements__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../survey-elements */ "./src/survey-elements.ts");
|
|
4375
4450
|
|
|
4376
4451
|
|
|
4377
4452
|
|
|
4378
|
-
__webpack_require__(/*! ./designer.scss */ "./src/components/tabs/designer.scss");
|
|
4379
4453
|
|
|
4380
4454
|
|
|
4381
4455
|
|
|
4456
|
+
__webpack_require__(/*! ./designer.scss */ "./src/components/tabs/designer.scss");
|
|
4382
4457
|
var initialSettingsAllowShowEmptyTitleInDesignMode = survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].allowShowEmptyTitleInDesignMode;
|
|
4383
4458
|
var TabDesignerViewModel = /** @class */ (function (_super) {
|
|
4384
4459
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TabDesignerViewModel, _super);
|
|
@@ -4414,7 +4489,7 @@ var TabDesignerViewModel = /** @class */ (function (_super) {
|
|
|
4414
4489
|
newPage.num = this.survey.pages.length + 1;
|
|
4415
4490
|
newPage.onPropertyChanged.add(checkNewElementHandler);
|
|
4416
4491
|
this.newPage = newPage;
|
|
4417
|
-
|
|
4492
|
+
_survey_elements__WEBPACK_IMPORTED_MODULE_5__["DragDropSurveyElements"].newGhostPage = newPage;
|
|
4418
4493
|
};
|
|
4419
4494
|
Object.defineProperty(TabDesignerViewModel.prototype, "canShowNewPage", {
|
|
4420
4495
|
get: function () {
|
|
@@ -5467,8 +5542,22 @@ var LogicActionTriggerModel = /** @class */ (function (_super) {
|
|
|
5467
5542
|
LogicActionTriggerModel.prototype.updateCurrentLogicAction = function (survey) {
|
|
5468
5543
|
var createNewAction = !this.initialLogicAction || this.initialLogicAction.logicType != this.logicType;
|
|
5469
5544
|
if (!createNewAction) {
|
|
5470
|
-
this.initialLogicAction.element
|
|
5545
|
+
var el = this.initialLogicAction.element;
|
|
5546
|
+
var srcJson = this.panelObj.toJSON();
|
|
5547
|
+
var srcKeys = Object.keys(srcJson);
|
|
5548
|
+
var destKeys = Object.keys(el.toJSON());
|
|
5549
|
+
var propsToDelete = [];
|
|
5550
|
+
for (var i = 0; i < destKeys.length; i++) {
|
|
5551
|
+
var key = destKeys[i];
|
|
5552
|
+
if (srcKeys.indexOf(key) < 0) {
|
|
5553
|
+
propsToDelete.push(key);
|
|
5554
|
+
}
|
|
5555
|
+
}
|
|
5556
|
+
el.fromJSON(srcJson);
|
|
5471
5557
|
this.currentLogicAction = this.initialLogicAction;
|
|
5558
|
+
for (var i = 0; i < propsToDelete.length; i++) {
|
|
5559
|
+
el[propsToDelete[i]] = undefined;
|
|
5560
|
+
}
|
|
5472
5561
|
return false;
|
|
5473
5562
|
}
|
|
5474
5563
|
this.currentLogicAction = new _logic_items__WEBPACK_IMPORTED_MODULE_4__["SurveyLogicAction"](this.logicType, this.panelObj, survey);
|
|
@@ -7764,6 +7853,9 @@ var SurveyLogicTypes = /** @class */ (function () {
|
|
|
7764
7853
|
dependedOnPropertyName: "setToName",
|
|
7765
7854
|
questionNames: ["setToName"],
|
|
7766
7855
|
getDisplayText: function (element, formatStr, lt) {
|
|
7856
|
+
if (survey_core__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isValueEmpty(element["setValue"])) {
|
|
7857
|
+
formatStr = getLogicString("trigger_setvalueEmptyText");
|
|
7858
|
+
}
|
|
7767
7859
|
return formatStr["format"](lt.formatElName(element["setToName"]), element["setValue"]);
|
|
7768
7860
|
},
|
|
7769
7861
|
},
|
|
@@ -9624,6 +9716,294 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9624
9716
|
|
|
9625
9717
|
|
|
9626
9718
|
|
|
9719
|
+
/***/ }),
|
|
9720
|
+
|
|
9721
|
+
/***/ "./src/components/tabs/theme-custom-questions/boxshadow-settings.ts":
|
|
9722
|
+
/*!**************************************************************************!*\
|
|
9723
|
+
!*** ./src/components/tabs/theme-custom-questions/boxshadow-settings.ts ***!
|
|
9724
|
+
\**************************************************************************/
|
|
9725
|
+
/*! exports provided: createBoxShadow, parseBoxShadow */
|
|
9726
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9727
|
+
|
|
9728
|
+
"use strict";
|
|
9729
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9730
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createBoxShadow", function() { return createBoxShadow; });
|
|
9731
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseBoxShadow", function() { return parseBoxShadow; });
|
|
9732
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../editorLocalization */ "./src/editorLocalization.ts");
|
|
9733
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
9734
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
9735
|
+
|
|
9736
|
+
|
|
9737
|
+
survey_core__WEBPACK_IMPORTED_MODULE_1__["ComponentCollection"].Instance.add({
|
|
9738
|
+
name: "boxshadowsettings",
|
|
9739
|
+
showInToolbox: false,
|
|
9740
|
+
questionJSON: {
|
|
9741
|
+
"type": "paneldynamic",
|
|
9742
|
+
"panelCount": 1,
|
|
9743
|
+
//temp
|
|
9744
|
+
"maxPanelCount": 1,
|
|
9745
|
+
"minPanelCount": 1,
|
|
9746
|
+
"templateElements": [
|
|
9747
|
+
{
|
|
9748
|
+
"type": "spinedit",
|
|
9749
|
+
"name": "x",
|
|
9750
|
+
"unit": "px",
|
|
9751
|
+
"title": Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_0__["getLocString"])("theme.boxShadowX"),
|
|
9752
|
+
"titleLocation": "left",
|
|
9753
|
+
"min": 0,
|
|
9754
|
+
},
|
|
9755
|
+
{
|
|
9756
|
+
"type": "spinedit",
|
|
9757
|
+
"name": "y",
|
|
9758
|
+
"unit": "px",
|
|
9759
|
+
"min": 0,
|
|
9760
|
+
"startWithNewLine": false,
|
|
9761
|
+
"title": Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_0__["getLocString"])("theme.boxShadowY"),
|
|
9762
|
+
"titleLocation": "left"
|
|
9763
|
+
},
|
|
9764
|
+
{
|
|
9765
|
+
"type": "spinedit",
|
|
9766
|
+
"name": "blur",
|
|
9767
|
+
"unit": "px",
|
|
9768
|
+
"title": Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_0__["getLocString"])("theme.boxShadowBlur"),
|
|
9769
|
+
"min": 0,
|
|
9770
|
+
"titleLocation": "left"
|
|
9771
|
+
},
|
|
9772
|
+
{
|
|
9773
|
+
"type": "spinedit",
|
|
9774
|
+
"name": "spread",
|
|
9775
|
+
"unit": "px",
|
|
9776
|
+
"min": 0,
|
|
9777
|
+
"startWithNewLine": false,
|
|
9778
|
+
"title": Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_0__["getLocString"])("theme.boxShadowSpread"),
|
|
9779
|
+
"titleLocation": "left"
|
|
9780
|
+
},
|
|
9781
|
+
{
|
|
9782
|
+
"type": "colorsettings",
|
|
9783
|
+
"name": "color",
|
|
9784
|
+
"titleLocation": "hidden"
|
|
9785
|
+
},
|
|
9786
|
+
{
|
|
9787
|
+
"type": "buttongroup",
|
|
9788
|
+
"name": "isInset",
|
|
9789
|
+
"titleLocation": "hidden",
|
|
9790
|
+
"choices": [{ text: "Drop", value: false }, { text: "Inner", value: true }]
|
|
9791
|
+
}
|
|
9792
|
+
]
|
|
9793
|
+
},
|
|
9794
|
+
onCreated: function (question) {
|
|
9795
|
+
question.valueFromDataCallback = function (value) { return typeof value == "string" ? parseBoxShadow(value) : value; };
|
|
9796
|
+
question.valueToDataCallback = function (value) { return !!value ? (typeof value == "string" ? value : createBoxShadow(Array.isArray(value) ? value : [value])) : ""; };
|
|
9797
|
+
question.contentQuestion.panels.forEach(function (p) { return p.questions.forEach(function (q) { return q.allowRootStyle = false; }); });
|
|
9798
|
+
},
|
|
9799
|
+
});
|
|
9800
|
+
function createBoxShadow(value) {
|
|
9801
|
+
return value.map((function (val) { return "" + (val.isInset == true ? "inset " : "") + val.x + "px " + val.y + "px " + val.blur + "px " + val.spread + "px " + val.color; })).join(", ");
|
|
9802
|
+
}
|
|
9803
|
+
function parseBoxShadow(value) {
|
|
9804
|
+
return value.split(/,(?![^(]*\))/).map(function (value) {
|
|
9805
|
+
var color = value.match(/#[a-zA-Z0-9]+|rgba?\(.*?\)/);
|
|
9806
|
+
var isInset = value.indexOf("inset") > -1;
|
|
9807
|
+
var res = {};
|
|
9808
|
+
if (isInset) {
|
|
9809
|
+
value = value.replace("inset", "");
|
|
9810
|
+
}
|
|
9811
|
+
if (!!color) {
|
|
9812
|
+
res["color"] = color[0];
|
|
9813
|
+
}
|
|
9814
|
+
var values = value.replace(/\s+/g, " ").replace(/^\s|\s$/g, "").split(" ");
|
|
9815
|
+
res["x"] = parseInt(values[0]) || 0;
|
|
9816
|
+
res["y"] = parseInt(values[1]) || 0;
|
|
9817
|
+
res["blur"] = parseInt(values[2]) || 0;
|
|
9818
|
+
res["spread"] = parseInt(values[3]) || 0;
|
|
9819
|
+
res["isInset"] = isInset;
|
|
9820
|
+
return res;
|
|
9821
|
+
});
|
|
9822
|
+
}
|
|
9823
|
+
|
|
9824
|
+
|
|
9825
|
+
/***/ }),
|
|
9826
|
+
|
|
9827
|
+
/***/ "./src/components/tabs/theme-custom-questions/color-settings.ts":
|
|
9828
|
+
/*!**********************************************************************!*\
|
|
9829
|
+
!*** ./src/components/tabs/theme-custom-questions/color-settings.ts ***!
|
|
9830
|
+
\**********************************************************************/
|
|
9831
|
+
/*! exports provided: createColor */
|
|
9832
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9833
|
+
|
|
9834
|
+
"use strict";
|
|
9835
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9836
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createColor", function() { return createColor; });
|
|
9837
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
9838
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
9839
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../editorLocalization */ "./src/editorLocalization.ts");
|
|
9840
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utils/utils */ "./src/utils/utils.ts");
|
|
9841
|
+
|
|
9842
|
+
|
|
9843
|
+
|
|
9844
|
+
survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
|
|
9845
|
+
name: "colorsettings",
|
|
9846
|
+
showInToolbox: false,
|
|
9847
|
+
elementsJSON: [
|
|
9848
|
+
{
|
|
9849
|
+
name: "color",
|
|
9850
|
+
type: "color",
|
|
9851
|
+
titleLocation: "hidden",
|
|
9852
|
+
},
|
|
9853
|
+
{
|
|
9854
|
+
name: "opacity",
|
|
9855
|
+
startWithNewLine: false,
|
|
9856
|
+
type: "spinedit",
|
|
9857
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.opacity"),
|
|
9858
|
+
min: 0,
|
|
9859
|
+
max: 100,
|
|
9860
|
+
unit: "%",
|
|
9861
|
+
titleLocation: "left"
|
|
9862
|
+
}
|
|
9863
|
+
],
|
|
9864
|
+
onCreated: function (question) {
|
|
9865
|
+
question.valueFromDataCallback = function (newValue) { return typeof newValue == "string" ? Object(_utils_utils__WEBPACK_IMPORTED_MODULE_2__["parseColor"])(newValue) : newValue; };
|
|
9866
|
+
question.valueToDataCallback = function (newValue) { return !!newValue ? (typeof newValue == "string" ? newValue : createColor(newValue)) : ""; };
|
|
9867
|
+
question.contentPanel.questions.forEach(function (q) { return q.allowRootStyle = false; });
|
|
9868
|
+
}
|
|
9869
|
+
});
|
|
9870
|
+
function createColor(value) {
|
|
9871
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_2__["ingectAlpha"])(value.color, value.opacity / 100);
|
|
9872
|
+
}
|
|
9873
|
+
|
|
9874
|
+
|
|
9875
|
+
/***/ }),
|
|
9876
|
+
|
|
9877
|
+
/***/ "./src/components/tabs/theme-custom-questions/element-settings.ts":
|
|
9878
|
+
/*!************************************************************************!*\
|
|
9879
|
+
!*** ./src/components/tabs/theme-custom-questions/element-settings.ts ***!
|
|
9880
|
+
\************************************************************************/
|
|
9881
|
+
/*! no exports provided */
|
|
9882
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9883
|
+
|
|
9884
|
+
"use strict";
|
|
9885
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9886
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
9887
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
9888
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../editorLocalization */ "./src/editorLocalization.ts");
|
|
9889
|
+
|
|
9890
|
+
|
|
9891
|
+
survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
|
|
9892
|
+
name: "elementsettings",
|
|
9893
|
+
showInToolbox: false,
|
|
9894
|
+
elementsJSON: [
|
|
9895
|
+
{
|
|
9896
|
+
type: "color",
|
|
9897
|
+
name: "backcolor",
|
|
9898
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.backcolor"),
|
|
9899
|
+
titleLocation: "left",
|
|
9900
|
+
descriptionLocation: "hidden"
|
|
9901
|
+
},
|
|
9902
|
+
{
|
|
9903
|
+
type: "color",
|
|
9904
|
+
name: "hovercolor",
|
|
9905
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.hovercolor"),
|
|
9906
|
+
titleLocation: "left",
|
|
9907
|
+
descriptionLocation: "hidden"
|
|
9908
|
+
},
|
|
9909
|
+
{
|
|
9910
|
+
type: "spinedit",
|
|
9911
|
+
name: "corner",
|
|
9912
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.cornerRadius"),
|
|
9913
|
+
titleLocation: "left",
|
|
9914
|
+
descriptionLocation: "hidden",
|
|
9915
|
+
unit: "px",
|
|
9916
|
+
defaultValue: 4,
|
|
9917
|
+
min: 0
|
|
9918
|
+
},
|
|
9919
|
+
{
|
|
9920
|
+
type: "expression",
|
|
9921
|
+
name: "cornerRadius",
|
|
9922
|
+
expression: "{composite.corner}+\"px\"",
|
|
9923
|
+
visible: false
|
|
9924
|
+
}
|
|
9925
|
+
],
|
|
9926
|
+
onInit: function () {
|
|
9927
|
+
},
|
|
9928
|
+
onCreated: function (question) {
|
|
9929
|
+
},
|
|
9930
|
+
onValueChanged: function (question, name, newValue) {
|
|
9931
|
+
},
|
|
9932
|
+
});
|
|
9933
|
+
|
|
9934
|
+
|
|
9935
|
+
/***/ }),
|
|
9936
|
+
|
|
9937
|
+
/***/ "./src/components/tabs/theme-custom-questions/font-settings.ts":
|
|
9938
|
+
/*!*********************************************************************!*\
|
|
9939
|
+
!*** ./src/components/tabs/theme-custom-questions/font-settings.ts ***!
|
|
9940
|
+
\*********************************************************************/
|
|
9941
|
+
/*! no exports provided */
|
|
9942
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9943
|
+
|
|
9944
|
+
"use strict";
|
|
9945
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9946
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
9947
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
9948
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../editorLocalization */ "./src/editorLocalization.ts");
|
|
9949
|
+
|
|
9950
|
+
|
|
9951
|
+
survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
|
|
9952
|
+
name: "fontsettings",
|
|
9953
|
+
showInToolbox: false,
|
|
9954
|
+
elementsJSON: [
|
|
9955
|
+
{
|
|
9956
|
+
type: "dropdown",
|
|
9957
|
+
name: "family",
|
|
9958
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.fontFamily"),
|
|
9959
|
+
titleLocation: "left",
|
|
9960
|
+
descriptionLocation: "hidden",
|
|
9961
|
+
choices: ["Open Sans", "Arial"],
|
|
9962
|
+
defaultValue: "Open Sans",
|
|
9963
|
+
allowClear: false
|
|
9964
|
+
},
|
|
9965
|
+
{
|
|
9966
|
+
type: "buttongroup",
|
|
9967
|
+
name: "weight",
|
|
9968
|
+
titleLocation: "hidden",
|
|
9969
|
+
descriptionLocation: "hidden",
|
|
9970
|
+
choices: [
|
|
9971
|
+
{ value: "400", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.fontWeightRegular") },
|
|
9972
|
+
{ value: "500", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.fontWeightHeavy") },
|
|
9973
|
+
{ value: "600", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.fontWeightSemiBold") },
|
|
9974
|
+
{ value: "700", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.fontWeightBold") },
|
|
9975
|
+
],
|
|
9976
|
+
defaultValue: "400"
|
|
9977
|
+
},
|
|
9978
|
+
{
|
|
9979
|
+
type: "color",
|
|
9980
|
+
name: "color",
|
|
9981
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.color"),
|
|
9982
|
+
titleLocation: "left",
|
|
9983
|
+
// choices: ["#00FFFF", "#00FFFF"],
|
|
9984
|
+
descriptionLocation: "hidden"
|
|
9985
|
+
},
|
|
9986
|
+
{
|
|
9987
|
+
type: "spinedit",
|
|
9988
|
+
name: "size",
|
|
9989
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.size"),
|
|
9990
|
+
titleLocation: "left",
|
|
9991
|
+
descriptionLocation: "hidden",
|
|
9992
|
+
unit: "px",
|
|
9993
|
+
min: 0,
|
|
9994
|
+
}
|
|
9995
|
+
],
|
|
9996
|
+
onInit: function () {
|
|
9997
|
+
},
|
|
9998
|
+
onCreated: function (question) {
|
|
9999
|
+
var color = question.contentPanel.getQuestionByName("color");
|
|
10000
|
+
color.visible = question.name !== "surveyTitle";
|
|
10001
|
+
},
|
|
10002
|
+
onValueChanged: function (question, name, newValue) {
|
|
10003
|
+
},
|
|
10004
|
+
});
|
|
10005
|
+
|
|
10006
|
+
|
|
9627
10007
|
/***/ }),
|
|
9628
10008
|
|
|
9629
10009
|
/***/ "./src/components/tabs/theme-plugin.ts":
|
|
@@ -9688,6 +10068,8 @@ var TabThemePlugin = /** @class */ (function () {
|
|
|
9688
10068
|
this.sidebarTab.model = this.model.themeEditorSurvey;
|
|
9689
10069
|
this.sidebarTab.componentName = "survey-widget";
|
|
9690
10070
|
this.creator.sidebar.activeTab = this.sidebarTab.id;
|
|
10071
|
+
this.importAction.visible = true;
|
|
10072
|
+
this.exportAction.visible = true;
|
|
9691
10073
|
};
|
|
9692
10074
|
TabThemePlugin.prototype.update = function () {
|
|
9693
10075
|
var _this = this;
|
|
@@ -9717,6 +10099,8 @@ var TabThemePlugin = /** @class */ (function () {
|
|
|
9717
10099
|
}
|
|
9718
10100
|
this.sidebarTab.visible = false;
|
|
9719
10101
|
this.testAgainAction.visible = false;
|
|
10102
|
+
this.importAction.visible = false;
|
|
10103
|
+
this.exportAction.visible = false;
|
|
9720
10104
|
this.invisibleToggleAction && (this.invisibleToggleAction.visible = false);
|
|
9721
10105
|
return true;
|
|
9722
10106
|
};
|
|
@@ -9805,6 +10189,43 @@ var TabThemePlugin = /** @class */ (function () {
|
|
|
9805
10189
|
iconName: "icon-arrow-right_16x16",
|
|
9806
10190
|
visible: false
|
|
9807
10191
|
});
|
|
10192
|
+
this.importAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
10193
|
+
id: "svc-theme-import",
|
|
10194
|
+
iconName: "icon-load",
|
|
10195
|
+
locTitleName: "ed.themeImportButton",
|
|
10196
|
+
locTooltipName: "ed.themeImportButton",
|
|
10197
|
+
visible: false,
|
|
10198
|
+
mode: "small",
|
|
10199
|
+
component: "sv-action-bar-item",
|
|
10200
|
+
needSeparator: true,
|
|
10201
|
+
action: function () {
|
|
10202
|
+
if (!document)
|
|
10203
|
+
return;
|
|
10204
|
+
if (!_this.inputFileElement) {
|
|
10205
|
+
_this.inputFileElement = document.createElement("input");
|
|
10206
|
+
_this.inputFileElement.type = "file";
|
|
10207
|
+
_this.inputFileElement.style.display = "none";
|
|
10208
|
+
_this.inputFileElement.onchange = function () {
|
|
10209
|
+
_this.model.importFromFileUI(_this.inputFileElement);
|
|
10210
|
+
};
|
|
10211
|
+
}
|
|
10212
|
+
_this.inputFileElement.click();
|
|
10213
|
+
}
|
|
10214
|
+
});
|
|
10215
|
+
items.push(this.importAction);
|
|
10216
|
+
this.exportAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
10217
|
+
id: "svc-theme-export",
|
|
10218
|
+
iconName: "icon-download",
|
|
10219
|
+
locTitleName: "ed.themeExportButton",
|
|
10220
|
+
locTooltipName: "ed.themeExportButton",
|
|
10221
|
+
visible: false,
|
|
10222
|
+
mode: "small",
|
|
10223
|
+
component: "sv-action-bar-item",
|
|
10224
|
+
action: function () {
|
|
10225
|
+
_this.model.exportToFileUI();
|
|
10226
|
+
}
|
|
10227
|
+
});
|
|
10228
|
+
items.push(this.exportAction);
|
|
9808
10229
|
return items;
|
|
9809
10230
|
};
|
|
9810
10231
|
TabThemePlugin.prototype.addFooterActions = function () {
|
|
@@ -9851,6 +10272,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9851
10272
|
/* harmony import */ var _property_grid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../property-grid */ "./src/property-grid/index.ts");
|
|
9852
10273
|
/* harmony import */ var _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../property-grid-theme/property-grid */ "./src/property-grid-theme/property-grid.ts");
|
|
9853
10274
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
10275
|
+
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../creator-settings */ "./src/creator-settings.ts");
|
|
10276
|
+
|
|
9854
10277
|
|
|
9855
10278
|
|
|
9856
10279
|
|
|
@@ -9859,140 +10282,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9859
10282
|
|
|
9860
10283
|
|
|
9861
10284
|
__webpack_require__(/*! ./theme.scss */ "./src/components/tabs/theme.scss");
|
|
9862
|
-
var Themes =
|
|
9863
|
-
"default-light": {
|
|
9864
|
-
"--sjs-primary-backcolor": "#19b394",
|
|
9865
|
-
"--background": "#ffffff",
|
|
9866
|
-
"--background-dim": "#f3f3f3",
|
|
9867
|
-
"--background-dim-light": "#f9f9f9",
|
|
9868
|
-
"--sjs-general-forecolor": "rgba(0, 0, 0, 0.91)",
|
|
9869
|
-
"--sjs-general-forecolor-light": "rgba(0, 0, 0, 0.45);",
|
|
9870
|
-
"--sjs-general-dim-forecolor": "rgba(0, 0, 0, 0.91);",
|
|
9871
|
-
"--sjs-general-dim-forecolor-light": "rgba(0, 0, 0, 0.45);",
|
|
9872
|
-
"--sjs-editor-background": "#f9f9f9",
|
|
9873
|
-
"--sjs-question-background": "#ffffff",
|
|
9874
|
-
"--sjs-primary-forecolor": "#ffffff",
|
|
9875
|
-
"--foreground": "#161616",
|
|
9876
|
-
"--base-unit": "8px",
|
|
9877
|
-
"--sjs-corner-radius": "4px"
|
|
9878
|
-
},
|
|
9879
|
-
"default-dark": {
|
|
9880
|
-
"--sjs-primary-backcolor": "#1ab7fa",
|
|
9881
|
-
"--background": "#555555",
|
|
9882
|
-
"--background-dim": "#4d4d4d",
|
|
9883
|
-
"--background-dim-light": "#4d4d4d",
|
|
9884
|
-
"--sjs-general-forecolor": "rgba(255, 255, 255, 0.78)",
|
|
9885
|
-
"--sjs-general-forecolor-light": "rgba(255, 255, 255, 0.42)",
|
|
9886
|
-
"--sjs-general-dim-forecolor": "rgba(255, 255, 255, 0.79)",
|
|
9887
|
-
"--sjs-general-dim-forecolor-light": "rgba(255, 255, 255, 0.45)",
|
|
9888
|
-
"--sjs-editor-background": "#4d4d4d",
|
|
9889
|
-
"--sjs-question-background": "#555555",
|
|
9890
|
-
"--sjs-primary-forecolor": "#ffffff",
|
|
9891
|
-
"--foreground": "#ededed",
|
|
9892
|
-
"--base-unit": "8px",
|
|
9893
|
-
"--sjs-corner-radius": "4px"
|
|
9894
|
-
}
|
|
9895
|
-
};
|
|
9896
|
-
survey_core__WEBPACK_IMPORTED_MODULE_2__["ComponentCollection"].Instance.add({
|
|
9897
|
-
name: "fontsettings",
|
|
9898
|
-
showInToolbox: false,
|
|
9899
|
-
elementsJSON: [
|
|
9900
|
-
{
|
|
9901
|
-
type: "dropdown",
|
|
9902
|
-
name: "family",
|
|
9903
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontFamily"),
|
|
9904
|
-
titleLocation: "left",
|
|
9905
|
-
descriptionLocation: "hidden",
|
|
9906
|
-
choices: ["Open Sans", "Arial"],
|
|
9907
|
-
defaultValue: "Open Sans",
|
|
9908
|
-
allowClear: false
|
|
9909
|
-
},
|
|
9910
|
-
{
|
|
9911
|
-
type: "buttongroup",
|
|
9912
|
-
name: "weight",
|
|
9913
|
-
titleLocation: "hidden",
|
|
9914
|
-
descriptionLocation: "hidden",
|
|
9915
|
-
choices: [
|
|
9916
|
-
{ value: "400", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontWeightRegular") },
|
|
9917
|
-
{ value: "500", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontWeightSemiBold") },
|
|
9918
|
-
{ value: "700", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontWeightBold") },
|
|
9919
|
-
],
|
|
9920
|
-
defaultValue: "400"
|
|
9921
|
-
},
|
|
9922
|
-
{
|
|
9923
|
-
type: "color",
|
|
9924
|
-
name: "color",
|
|
9925
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.color"),
|
|
9926
|
-
titleLocation: "left",
|
|
9927
|
-
descriptionLocation: "hidden"
|
|
9928
|
-
},
|
|
9929
|
-
{
|
|
9930
|
-
type: "spinedit",
|
|
9931
|
-
name: "size",
|
|
9932
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.size"),
|
|
9933
|
-
titleLocation: "left",
|
|
9934
|
-
descriptionLocation: "hidden",
|
|
9935
|
-
unit: "px",
|
|
9936
|
-
min: 0,
|
|
9937
|
-
}
|
|
9938
|
-
],
|
|
9939
|
-
onInit: function () {
|
|
9940
|
-
},
|
|
9941
|
-
onCreated: function (question) {
|
|
9942
|
-
var color = question.contentPanel.getQuestionByName("color");
|
|
9943
|
-
color.visible = question.name !== "surveyTitle";
|
|
9944
|
-
},
|
|
9945
|
-
onValueChanged: function (question, name, newValue) {
|
|
9946
|
-
},
|
|
9947
|
-
});
|
|
9948
|
-
survey_core__WEBPACK_IMPORTED_MODULE_2__["ComponentCollection"].Instance.add({
|
|
9949
|
-
name: "elementsettings",
|
|
9950
|
-
showInToolbox: false,
|
|
9951
|
-
elementsJSON: [
|
|
9952
|
-
{
|
|
9953
|
-
type: "color",
|
|
9954
|
-
name: "backcolor",
|
|
9955
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backcolor"),
|
|
9956
|
-
titleLocation: "left",
|
|
9957
|
-
descriptionLocation: "hidden"
|
|
9958
|
-
},
|
|
9959
|
-
{
|
|
9960
|
-
type: "color",
|
|
9961
|
-
name: "hovercolor",
|
|
9962
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.hovercolor"),
|
|
9963
|
-
titleLocation: "left",
|
|
9964
|
-
descriptionLocation: "hidden"
|
|
9965
|
-
},
|
|
9966
|
-
{
|
|
9967
|
-
type: "spinedit",
|
|
9968
|
-
name: "corner",
|
|
9969
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.cornerRadius"),
|
|
9970
|
-
titleLocation: "left",
|
|
9971
|
-
descriptionLocation: "hidden",
|
|
9972
|
-
unit: "px",
|
|
9973
|
-
defaultValue: 4,
|
|
9974
|
-
min: 0
|
|
9975
|
-
},
|
|
9976
|
-
{
|
|
9977
|
-
type: "expression",
|
|
9978
|
-
name: "cornerRadius",
|
|
9979
|
-
expression: "{composite.corner}+\"px\"",
|
|
9980
|
-
visible: false
|
|
9981
|
-
}, {
|
|
9982
|
-
type: "text",
|
|
9983
|
-
name: "border",
|
|
9984
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.borderDecoration"),
|
|
9985
|
-
titleLocation: "left",
|
|
9986
|
-
descriptionLocation: "hidden"
|
|
9987
|
-
}
|
|
9988
|
-
],
|
|
9989
|
-
onInit: function () {
|
|
9990
|
-
},
|
|
9991
|
-
onCreated: function (question) {
|
|
9992
|
-
},
|
|
9993
|
-
onValueChanged: function (question, name, newValue) {
|
|
9994
|
-
},
|
|
9995
|
-
});
|
|
10285
|
+
var Themes = __webpack_require__(/*! ../../../imported-themes.json */ "./imported-themes.json");
|
|
9996
10286
|
var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
9997
10287
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ThemeSurveyTabViewModel, _super);
|
|
9998
10288
|
function ThemeSurveyTabViewModel(surveyProvider, startTheme) {
|
|
@@ -10001,10 +10291,36 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10001
10291
|
_this.surveyProvider = surveyProvider;
|
|
10002
10292
|
_this.startTheme = startTheme;
|
|
10003
10293
|
_this.pages = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ActionContainer"]();
|
|
10294
|
+
_this.themeChanges = {};
|
|
10295
|
+
_this.colorCalculator = new _utils_utils__WEBPACK_IMPORTED_MODULE_6__["ColorCalculator"]();
|
|
10004
10296
|
_this.simulator = new _simulator__WEBPACK_IMPORTED_MODULE_1__["SurveySimulatorModel"]();
|
|
10297
|
+
_this.loadTheme(_this.surveyProvider.theme);
|
|
10005
10298
|
_this.themeEditorSurveyValue = _this.createThemeEditorSurvey();
|
|
10299
|
+
var self = _this;
|
|
10300
|
+
_this.exportToFileUI = function () {
|
|
10301
|
+
self.exportToFile(_creator_settings__WEBPACK_IMPORTED_MODULE_7__["settings"].theme.exportFileName);
|
|
10302
|
+
};
|
|
10303
|
+
_this.importFromFileUI = function (el) {
|
|
10304
|
+
if (el.files.length < 1)
|
|
10305
|
+
return;
|
|
10306
|
+
self.importFromFile(el.files[0]);
|
|
10307
|
+
el.value = "";
|
|
10308
|
+
};
|
|
10006
10309
|
return _this;
|
|
10007
10310
|
}
|
|
10311
|
+
ThemeSurveyTabViewModel.prototype.getFullThemeName = function (_themeName) {
|
|
10312
|
+
if (this.themePalette === "light") {
|
|
10313
|
+
return _themeName || this.themeName;
|
|
10314
|
+
}
|
|
10315
|
+
return (_themeName || this.themeName) + "-" + this.themePalette;
|
|
10316
|
+
};
|
|
10317
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "themeVariables", {
|
|
10318
|
+
get: function () {
|
|
10319
|
+
return Themes[this.getFullThemeName()];
|
|
10320
|
+
},
|
|
10321
|
+
enumerable: false,
|
|
10322
|
+
configurable: true
|
|
10323
|
+
});
|
|
10008
10324
|
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "activeLanguage", {
|
|
10009
10325
|
get: function () {
|
|
10010
10326
|
return this.getPropertyValue("activeLanguage", this.survey.locale || survey_core__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].defaultLocale);
|
|
@@ -10046,10 +10362,32 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10046
10362
|
enumerable: false,
|
|
10047
10363
|
configurable: true
|
|
10048
10364
|
});
|
|
10365
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "currentTheme", {
|
|
10366
|
+
get: function () {
|
|
10367
|
+
return this.surveyProvider.theme;
|
|
10368
|
+
},
|
|
10369
|
+
enumerable: false,
|
|
10370
|
+
configurable: true
|
|
10371
|
+
});
|
|
10372
|
+
ThemeSurveyTabViewModel.prototype.loadTheme = function (theme) {
|
|
10373
|
+
this.themeName = theme["themeName"];
|
|
10374
|
+
this.themePalette = theme["themePalette"];
|
|
10375
|
+
this.themeMode = theme.isCompact ? "lightweight" : undefined;
|
|
10376
|
+
var fullThemeName = this.getFullThemeName();
|
|
10377
|
+
if (!Themes[fullThemeName]) {
|
|
10378
|
+
Themes[fullThemeName] = theme;
|
|
10379
|
+
var themeSelector = this.themeEditorSurveyValue.getQuestionByName("themeName");
|
|
10380
|
+
themeSelector.choices = themeSelector.choices.concat(new survey_core__WEBPACK_IMPORTED_MODULE_2__["ItemValue"](theme["themeName"]));
|
|
10381
|
+
}
|
|
10382
|
+
var themeVariables = {};
|
|
10383
|
+
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assign"])(themeVariables, this.themeVariables, theme.cssVariables);
|
|
10384
|
+
theme.cssVariables = themeVariables;
|
|
10385
|
+
};
|
|
10049
10386
|
ThemeSurveyTabViewModel.prototype.updateSimulatorSurvey = function (json, theme) {
|
|
10050
10387
|
var newSurvey = this.surveyProvider.createSurvey(json || {}, "theme");
|
|
10051
10388
|
newSurvey.setCss(theme, false);
|
|
10052
10389
|
this.simulator.survey = newSurvey;
|
|
10390
|
+
this.setThemeToSurvey();
|
|
10053
10391
|
if (this.onSurveyCreatedCallback)
|
|
10054
10392
|
this.onSurveyCreatedCallback(this.survey);
|
|
10055
10393
|
var self = this;
|
|
@@ -10083,6 +10421,35 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10083
10421
|
self.updatePageItem(options.page);
|
|
10084
10422
|
});
|
|
10085
10423
|
};
|
|
10424
|
+
ThemeSurveyTabViewModel.prototype.exportToFile = function (fileName) {
|
|
10425
|
+
if (!window)
|
|
10426
|
+
return;
|
|
10427
|
+
var data = JSON.stringify(this.currentTheme, null, 4);
|
|
10428
|
+
var blob = new Blob([data], { type: "application/json" });
|
|
10429
|
+
if (window.navigator["msSaveOrOpenBlob"]) {
|
|
10430
|
+
window.navigator["msSaveBlob"](blob, fileName);
|
|
10431
|
+
}
|
|
10432
|
+
else {
|
|
10433
|
+
var elem = window.document.createElement("a");
|
|
10434
|
+
elem.href = window.URL.createObjectURL(blob);
|
|
10435
|
+
elem.download = fileName;
|
|
10436
|
+
document.body.appendChild(elem);
|
|
10437
|
+
elem.click();
|
|
10438
|
+
document.body.removeChild(elem);
|
|
10439
|
+
}
|
|
10440
|
+
};
|
|
10441
|
+
ThemeSurveyTabViewModel.prototype.importFromFile = function (file) {
|
|
10442
|
+
var _this = this;
|
|
10443
|
+
var fileReader = new FileReader();
|
|
10444
|
+
fileReader.onload = function (e) {
|
|
10445
|
+
var theme = JSON.parse(fileReader.result);
|
|
10446
|
+
_this.surveyProvider.theme = theme;
|
|
10447
|
+
_this.loadTheme(theme);
|
|
10448
|
+
_this.loadThemeIntoPropertyGrid(_this.themeEditorSurvey);
|
|
10449
|
+
_this.initializeColorCalculator();
|
|
10450
|
+
};
|
|
10451
|
+
fileReader.readAsText(file);
|
|
10452
|
+
};
|
|
10086
10453
|
ThemeSurveyTabViewModel.prototype.setJSON = function (json, currTheme) {
|
|
10087
10454
|
this.json = json;
|
|
10088
10455
|
if (json != null) {
|
|
@@ -10263,6 +10630,9 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10263
10630
|
this.nextPageAction.css = isNextEnabled ? "sv-action-bar-item--secondary" : "";
|
|
10264
10631
|
this.nextPageAction.enabled = isNextEnabled;
|
|
10265
10632
|
};
|
|
10633
|
+
ThemeSurveyTabViewModel.prototype.initializeColorCalculator = function () {
|
|
10634
|
+
this.colorCalculator.initialize(this.currentTheme.cssVariables["--sjs-primary-backcolor"], this.currentTheme.cssVariables["--sjs-primary-backcolor-light"], this.currentTheme.cssVariables["--sjs-primary-backcolor-dark"]);
|
|
10635
|
+
};
|
|
10266
10636
|
ThemeSurveyTabViewModel.prototype.createThemeEditorSurvey = function () {
|
|
10267
10637
|
var _this = this;
|
|
10268
10638
|
var json = this.getThemeEditorSurveyJSON();
|
|
@@ -10272,67 +10642,99 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10272
10642
|
var themeBuilderCss = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_5__["propertyGridCss"]);
|
|
10273
10643
|
themeBuilderCss.root += " spg-theme-builder-root";
|
|
10274
10644
|
themeEditorSurvey.css = themeBuilderCss;
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
themeEditorSurvey.getQuestionByName("editorPanel").contentPanel.getQuestionByName("backcolor").value = this.themeVariables["--background-dim-light"];
|
|
10645
|
+
this.loadThemeIntoPropertyGrid(themeEditorSurvey);
|
|
10646
|
+
this.initializeColorCalculator();
|
|
10278
10647
|
themeEditorSurvey.onValueChanged.add(function (sender, options) {
|
|
10279
10648
|
var _a, _b;
|
|
10649
|
+
_this.themeChanges[options.name] = options.value;
|
|
10280
10650
|
if (["themeName", "themeMode", "themePalette"].indexOf(options.name) !== -1) {
|
|
10281
10651
|
_this[options.name] = options.value;
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
var
|
|
10292
|
-
|
|
10652
|
+
_this.initializeColorCalculator();
|
|
10653
|
+
if (options.name === "themeMode") {
|
|
10654
|
+
_this.survey["isCompact"] = options.value === "lightweight";
|
|
10655
|
+
_this.surveyProvider.theme.isCompact = options.value === "lightweight";
|
|
10656
|
+
}
|
|
10657
|
+
else {
|
|
10658
|
+
_this.surveyProvider.theme["themeName"] = _this.themeName;
|
|
10659
|
+
_this.surveyProvider.theme["themePalette"] = _this.themePalette;
|
|
10660
|
+
}
|
|
10661
|
+
var newTheme_1 = {};
|
|
10662
|
+
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assign"])(newTheme_1, Themes[_this.getFullThemeName("default")], Themes[_this.getFullThemeName()]);
|
|
10663
|
+
if (_this.survey["isCompact"]) {
|
|
10664
|
+
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assign"])(newTheme_1, Themes[_this.getFullThemeName() + "-lw"]);
|
|
10665
|
+
}
|
|
10666
|
+
themeEditorSurvey.mergeData(newTheme_1);
|
|
10667
|
+
_this.surveyProvider.theme.cssVariables = newTheme_1;
|
|
10668
|
+
_this.setThemeToSurvey();
|
|
10669
|
+
return;
|
|
10293
10670
|
}
|
|
10294
10671
|
if (["backgroundImage", "backgroundImageFit"].indexOf(options.name) !== -1) {
|
|
10295
10672
|
_this.survey[options.name] = options.value;
|
|
10673
|
+
_this.surveyProvider.theme[options.name] = options.value;
|
|
10296
10674
|
return;
|
|
10297
10675
|
}
|
|
10298
10676
|
if (options.name === "backgroundOpacity") {
|
|
10299
10677
|
_this.survey.backgroundOpacity = options.value / 100;
|
|
10678
|
+
_this.surveyProvider.theme.backgroundOpacity = options.value / 100;
|
|
10300
10679
|
return;
|
|
10301
10680
|
}
|
|
10302
|
-
if (options.name === "
|
|
10303
|
-
_this.
|
|
10304
|
-
|
|
10681
|
+
if (options.name === "--sjs-primary-backcolor") {
|
|
10682
|
+
_this.colorCalculator.calculateColors(options.value);
|
|
10683
|
+
_this.themeChanges["--sjs-primary-backcolor"] = options.value;
|
|
10684
|
+
_this.themeChanges["--sjs-primary-backcolor-light"] = _this.colorCalculator.colorSettings.newColorLight;
|
|
10685
|
+
_this.themeChanges["--sjs-primary-backcolor-dark"] = _this.colorCalculator.colorSettings.newColorDark;
|
|
10686
|
+
_this.themeEditorSurvey.setValue("--sjs-primary-backcolor-light", _this.colorCalculator.colorSettings.newColorLight);
|
|
10687
|
+
_this.themeEditorSurvey.setValue("--sjs-primary-backcolor-dark", _this.colorCalculator.colorSettings.newColorDark);
|
|
10688
|
+
}
|
|
10689
|
+
if (options.name === "questionBackgroundTransparency" || options.name === "editorPanel") {
|
|
10690
|
+
var baseColor = themeEditorSurvey.getValue("--sjs-general-backcolor-dim-light");
|
|
10691
|
+
var questionBackgroundTransparencyValue = themeEditorSurvey.getValue("questionBackgroundTransparency");
|
|
10692
|
+
_this.themeChanges["--sjs-editor-background"] = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["ingectAlpha"])(baseColor, questionBackgroundTransparencyValue / 100);
|
|
10693
|
+
}
|
|
10694
|
+
if (options.name === "panelBackgroundTransparency" || options.name === "questionPanel") {
|
|
10695
|
+
var baseColor = themeEditorSurvey.getValue("--sjs-general-backcolor");
|
|
10696
|
+
var panelBackgroundTransparencyValue = themeEditorSurvey.getValue("panelBackgroundTransparency");
|
|
10697
|
+
_this.themeChanges["--sjs-question-background"] = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["ingectAlpha"])(baseColor, panelBackgroundTransparencyValue / 100);
|
|
10305
10698
|
}
|
|
10306
|
-
var _data = sender.data;
|
|
10307
10699
|
if (((_a = options.question) === null || _a === void 0 ? void 0 : _a.getType()) === "fontsettings") {
|
|
10308
10700
|
Object.keys(options.value).forEach(function (key) {
|
|
10309
10701
|
var _a;
|
|
10310
10702
|
var innerQ = options.question.contentPanel.getQuestionByName(key);
|
|
10311
|
-
|
|
10703
|
+
_this.themeChanges["--sjs-font-" + options.name.toLocaleLowerCase() + "-" + key] = options.value[key] + (((_a = innerQ.unit) === null || _a === void 0 ? void 0 : _a.toString()) || "");
|
|
10312
10704
|
});
|
|
10313
10705
|
}
|
|
10314
10706
|
if (((_b = options.question) === null || _b === void 0 ? void 0 : _b.getType()) === "elementsettings") {
|
|
10315
10707
|
Object.keys(options.value).forEach(function (key) {
|
|
10316
10708
|
if (key === "corner")
|
|
10317
10709
|
return;
|
|
10318
|
-
|
|
10710
|
+
_this.themeChanges["--sjs-" + options.name.toLocaleLowerCase() + "-" + key] = options.value[key];
|
|
10319
10711
|
});
|
|
10320
10712
|
}
|
|
10321
|
-
|
|
10713
|
+
var newTheme = {};
|
|
10714
|
+
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assign"])(newTheme, _this.surveyProvider.theme.cssVariables, _this.themeChanges);
|
|
10715
|
+
_this.surveyProvider.theme.cssVariables = newTheme;
|
|
10716
|
+
_this.setThemeToSurvey();
|
|
10322
10717
|
});
|
|
10323
|
-
themeEditorSurvey.getAllQuestions().
|
|
10718
|
+
themeEditorSurvey.getAllQuestions().forEach(function (q) { return q.allowRootStyle = false; });
|
|
10324
10719
|
themeEditorSurvey.onQuestionCreated.add(function (_, opt) {
|
|
10325
10720
|
opt.question.allowRootStyle = false;
|
|
10326
10721
|
});
|
|
10327
10722
|
return themeEditorSurvey;
|
|
10328
10723
|
};
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10724
|
+
ThemeSurveyTabViewModel.prototype.loadThemeIntoPropertyGrid = function (themeEditorSurvey) {
|
|
10725
|
+
themeEditorSurvey.mergeData(this.surveyProvider.theme.cssVariables);
|
|
10726
|
+
themeEditorSurvey.setValue("themeName", this.themeName);
|
|
10727
|
+
themeEditorSurvey.setValue("themeMode", this.themeMode);
|
|
10728
|
+
themeEditorSurvey.setValue("themePalette", this.themePalette);
|
|
10729
|
+
themeEditorSurvey.getQuestionByName("questionPanel").contentPanel.getQuestionByName("backcolor").value = this.currentTheme.cssVariables["--sjs-general-backcolor"];
|
|
10730
|
+
themeEditorSurvey.getQuestionByName("editorPanel").contentPanel.getQuestionByName("backcolor").value = this.currentTheme.cssVariables["--sjs-general-backcolor-dim-light"];
|
|
10731
|
+
};
|
|
10732
|
+
ThemeSurveyTabViewModel.prototype.setThemeToSurvey = function (theme) {
|
|
10733
|
+
if (!!theme) {
|
|
10734
|
+
this.surveyProvider.theme = theme;
|
|
10735
|
+
}
|
|
10736
|
+
this.survey.applyTheme(this.surveyProvider.theme);
|
|
10737
|
+
};
|
|
10336
10738
|
ThemeSurveyTabViewModel.prototype.getThemeEditorSurveyJSON = function () {
|
|
10337
10739
|
var themeEditorSurveyJSON = {
|
|
10338
10740
|
"clearInvisibleValues": "none",
|
|
@@ -10349,7 +10751,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10349
10751
|
name: "themeName",
|
|
10350
10752
|
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themeName"),
|
|
10351
10753
|
descriptionLocation: "hidden",
|
|
10352
|
-
choices: ["default", "contrast", "plain", "simple", "blank", "double", "ultra"],
|
|
10754
|
+
choices: ["default", "contrast", "plain", "simple", "blank", "double", "bulk", "pseudo-3d", "playful", "ultra"],
|
|
10353
10755
|
defaultValue: "default",
|
|
10354
10756
|
allowClear: false
|
|
10355
10757
|
},
|
|
@@ -10393,7 +10795,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10393
10795
|
},
|
|
10394
10796
|
{
|
|
10395
10797
|
type: "color",
|
|
10396
|
-
name: "--
|
|
10798
|
+
name: "--sjs-general-backcolor-dim",
|
|
10397
10799
|
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundDimColor"),
|
|
10398
10800
|
descriptionLocation: "hidden",
|
|
10399
10801
|
defaultValue: "#f3f3f3"
|
|
@@ -10407,6 +10809,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10407
10809
|
type: "fileedit",
|
|
10408
10810
|
name: "backgroundImage",
|
|
10409
10811
|
titleLocation: "hidden",
|
|
10812
|
+
acceptedTypes: "image/*",
|
|
10410
10813
|
placeholder: "Browse..."
|
|
10411
10814
|
},
|
|
10412
10815
|
{
|
|
@@ -10501,7 +10904,7 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10501
10904
|
},
|
|
10502
10905
|
{
|
|
10503
10906
|
type: "expression",
|
|
10504
|
-
name: "--base-unit",
|
|
10907
|
+
name: "--sjs-base-unit",
|
|
10505
10908
|
expression: "{commonScale}*8/100+\"px\"",
|
|
10506
10909
|
visible: false
|
|
10507
10910
|
},
|
|
@@ -10533,11 +10936,66 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10533
10936
|
elements: [
|
|
10534
10937
|
{
|
|
10535
10938
|
type: "color",
|
|
10536
|
-
name: "--
|
|
10939
|
+
name: "--sjs-general-backcolor-dim",
|
|
10537
10940
|
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundDimColor"),
|
|
10538
10941
|
descriptionLocation: "hidden",
|
|
10539
10942
|
defaultValue: "#f3f3f3"
|
|
10540
10943
|
}, {
|
|
10944
|
+
type: "panel",
|
|
10945
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.accentBackground"),
|
|
10946
|
+
elements: [
|
|
10947
|
+
{
|
|
10948
|
+
type: "color",
|
|
10949
|
+
name: "--sjs-primary-backcolor",
|
|
10950
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryDefaultColor"),
|
|
10951
|
+
titleLocation: "left",
|
|
10952
|
+
descriptionLocation: "hidden",
|
|
10953
|
+
defaultValue: "#19B394"
|
|
10954
|
+
},
|
|
10955
|
+
{
|
|
10956
|
+
type: "color",
|
|
10957
|
+
name: "--sjs-primary-backcolor-dark",
|
|
10958
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryDarkColor"),
|
|
10959
|
+
titleLocation: "left",
|
|
10960
|
+
descriptionLocation: "hidden",
|
|
10961
|
+
defaultValue: "#14A48B"
|
|
10962
|
+
},
|
|
10963
|
+
{
|
|
10964
|
+
type: "color",
|
|
10965
|
+
name: "--sjs-primary-backcolor-light",
|
|
10966
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryLightColor"),
|
|
10967
|
+
titleLocation: "left",
|
|
10968
|
+
descriptionLocation: "hidden",
|
|
10969
|
+
defaultValue: "#E8F7F4"
|
|
10970
|
+
}
|
|
10971
|
+
]
|
|
10972
|
+
}, {
|
|
10973
|
+
type: "panel",
|
|
10974
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.accentForeground"),
|
|
10975
|
+
elements: [
|
|
10976
|
+
{
|
|
10977
|
+
type: "color",
|
|
10978
|
+
name: "--sjs-primary-forecolor",
|
|
10979
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolor"),
|
|
10980
|
+
titleLocation: "left",
|
|
10981
|
+
descriptionLocation: "hidden",
|
|
10982
|
+
defaultValue: "#ffffff"
|
|
10983
|
+
},
|
|
10984
|
+
{
|
|
10985
|
+
type: "color",
|
|
10986
|
+
name: "--sjs-primary-forecolor-light",
|
|
10987
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolorLight"),
|
|
10988
|
+
titleLocation: "left",
|
|
10989
|
+
descriptionLocation: "hidden",
|
|
10990
|
+
defaultValue: "#ffffff"
|
|
10991
|
+
}
|
|
10992
|
+
]
|
|
10993
|
+
}
|
|
10994
|
+
]
|
|
10995
|
+
}, {
|
|
10996
|
+
type: "panel",
|
|
10997
|
+
elements: [
|
|
10998
|
+
{
|
|
10541
10999
|
type: "fontSettings",
|
|
10542
11000
|
name: "surveyTitle",
|
|
10543
11001
|
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.surveyTitle"),
|
|
@@ -10579,12 +11037,26 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10579
11037
|
defaultValue: {
|
|
10580
11038
|
backcolor: "#ffffff",
|
|
10581
11039
|
hovercolor: "#f8f8f8",
|
|
10582
|
-
corner: 4
|
|
10583
|
-
border: "0 1 2 rgba(0, 0, 0, 0.15)"
|
|
11040
|
+
corner: 4
|
|
10584
11041
|
}
|
|
10585
|
-
},
|
|
11042
|
+
},
|
|
11043
|
+
{
|
|
11044
|
+
type: "boxshadowsettings",
|
|
11045
|
+
name: "--sjs-shadow-small",
|
|
11046
|
+
descriptionLocation: "hidden",
|
|
11047
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionShadow"),
|
|
11048
|
+
defaultValue: {
|
|
11049
|
+
x: 0,
|
|
11050
|
+
y: 1,
|
|
11051
|
+
blur: 2,
|
|
11052
|
+
spread: 0,
|
|
11053
|
+
isInset: false,
|
|
11054
|
+
color: "rgba(0, 0, 0, 0.15)"
|
|
11055
|
+
}
|
|
11056
|
+
},
|
|
11057
|
+
{
|
|
10586
11058
|
type: "expression",
|
|
10587
|
-
name: "--
|
|
11059
|
+
name: "--sjs-general-backcolor",
|
|
10588
11060
|
expression: "{questionPanel.backcolor}",
|
|
10589
11061
|
visible: false
|
|
10590
11062
|
}, {
|
|
@@ -10594,7 +11066,8 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10594
11066
|
descriptionLocation: "hidden",
|
|
10595
11067
|
defaultValue: {
|
|
10596
11068
|
color: "#161616",
|
|
10597
|
-
|
|
11069
|
+
weight: "600",
|
|
11070
|
+
size: 16,
|
|
10598
11071
|
}
|
|
10599
11072
|
}, {
|
|
10600
11073
|
type: "fontSettings",
|
|
@@ -10610,86 +11083,46 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10610
11083
|
}, {
|
|
10611
11084
|
type: "panel",
|
|
10612
11085
|
elements: [
|
|
10613
|
-
{
|
|
10614
|
-
type: "elementSettings",
|
|
10615
|
-
name: "editorPanel",
|
|
10616
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.editorPanel"),
|
|
10617
|
-
descriptionLocation: "hidden",
|
|
10618
|
-
defaultValue: {
|
|
10619
|
-
backcolor: "#ffffff",
|
|
10620
|
-
hovercolor: "#f8f8f8",
|
|
10621
|
-
corner: 4
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
type: "
|
|
10626
|
-
name: "--
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
color: "
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
type: "
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
},
|
|
10654
|
-
{
|
|
10655
|
-
type: "color",
|
|
10656
|
-
name: "--sjs-primary-backcolor-dark",
|
|
10657
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryDarkColor"),
|
|
10658
|
-
titleLocation: "left",
|
|
10659
|
-
descriptionLocation: "hidden",
|
|
10660
|
-
defaultValue: "#14A48B"
|
|
10661
|
-
},
|
|
10662
|
-
{
|
|
10663
|
-
type: "color",
|
|
10664
|
-
name: "--sjs-primary-backcolor-light",
|
|
10665
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryLightColor"),
|
|
10666
|
-
titleLocation: "left",
|
|
10667
|
-
descriptionLocation: "hidden",
|
|
10668
|
-
defaultValue: "#e8f7f4"
|
|
10669
|
-
}
|
|
10670
|
-
]
|
|
10671
|
-
}, {
|
|
10672
|
-
type: "panel",
|
|
10673
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.accentForeground"),
|
|
10674
|
-
elements: [
|
|
10675
|
-
{
|
|
10676
|
-
type: "color",
|
|
10677
|
-
name: "--sjs-primary-forecolor",
|
|
10678
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolor"),
|
|
10679
|
-
titleLocation: "left",
|
|
10680
|
-
descriptionLocation: "hidden",
|
|
10681
|
-
defaultValue: "#ffffff"
|
|
10682
|
-
},
|
|
10683
|
-
{
|
|
10684
|
-
type: "color",
|
|
10685
|
-
name: "--sjs-primary-forecolor-light",
|
|
10686
|
-
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolorLight"),
|
|
10687
|
-
titleLocation: "left",
|
|
10688
|
-
descriptionLocation: "hidden",
|
|
10689
|
-
defaultValue: "#ffffff"
|
|
10690
|
-
}
|
|
10691
|
-
]
|
|
10692
|
-
}]
|
|
11086
|
+
{
|
|
11087
|
+
type: "elementSettings",
|
|
11088
|
+
name: "editorPanel",
|
|
11089
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.editorPanel"),
|
|
11090
|
+
descriptionLocation: "hidden",
|
|
11091
|
+
defaultValue: {
|
|
11092
|
+
backcolor: "#ffffff",
|
|
11093
|
+
hovercolor: "#f8f8f8",
|
|
11094
|
+
corner: 4
|
|
11095
|
+
}
|
|
11096
|
+
},
|
|
11097
|
+
{
|
|
11098
|
+
type: "boxshadowsettings",
|
|
11099
|
+
name: "--sjs-shadow-inner",
|
|
11100
|
+
descriptionLocation: "hidden",
|
|
11101
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.editorShadow"),
|
|
11102
|
+
defaultValue: {
|
|
11103
|
+
x: 0,
|
|
11104
|
+
y: 1,
|
|
11105
|
+
blur: 2,
|
|
11106
|
+
spread: 0,
|
|
11107
|
+
isInset: true,
|
|
11108
|
+
color: "rgba(0, 0, 0, 0.15)"
|
|
11109
|
+
}
|
|
11110
|
+
}, {
|
|
11111
|
+
type: "expression",
|
|
11112
|
+
name: "--sjs-general-backcolor-dim-light",
|
|
11113
|
+
expression: "{editorPanel.backcolor}",
|
|
11114
|
+
visible: false
|
|
11115
|
+
}, {
|
|
11116
|
+
type: "fontSettings",
|
|
11117
|
+
name: "editorFont",
|
|
11118
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.editorFont"),
|
|
11119
|
+
descriptionLocation: "hidden",
|
|
11120
|
+
defaultValue: {
|
|
11121
|
+
color: "#161616",
|
|
11122
|
+
size: 16
|
|
11123
|
+
}
|
|
11124
|
+
}
|
|
11125
|
+
]
|
|
10693
11126
|
}, {
|
|
10694
11127
|
type: "panel",
|
|
10695
11128
|
elements: [{
|
|
@@ -10718,15 +11151,6 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10718
11151
|
]
|
|
10719
11152
|
}]
|
|
10720
11153
|
};
|
|
10721
|
-
// Object.keys(this.themeVariables).forEach(varName => {
|
|
10722
|
-
// themeEditorSurveyJSON.elements[1].elements[0].elements.push(<any>{
|
|
10723
|
-
// type: "text",
|
|
10724
|
-
// inputType: varName.indexOf("-unit") === -1 ? "color" : undefined,
|
|
10725
|
-
// title: editorLocalization.getString("theme." + varName),
|
|
10726
|
-
// name: varName,
|
|
10727
|
-
// defaultValue: this.themeVariables[varName]
|
|
10728
|
-
// });
|
|
10729
|
-
// });
|
|
10730
11154
|
return themeEditorSurveyJSON;
|
|
10731
11155
|
};
|
|
10732
11156
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
@@ -10782,17 +11206,11 @@ var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
10782
11206
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "light" })
|
|
10783
11207
|
], ThemeSurveyTabViewModel.prototype, "themePalette", void 0);
|
|
10784
11208
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
10785
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "
|
|
11209
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "panels" })
|
|
10786
11210
|
], ThemeSurveyTabViewModel.prototype, "themeMode", void 0);
|
|
10787
11211
|
return ThemeSurveyTabViewModel;
|
|
10788
11212
|
}(survey_core__WEBPACK_IMPORTED_MODULE_2__["Base"]));
|
|
10789
11213
|
|
|
10790
|
-
function ingectAlpha(baseColor, alpha) {
|
|
10791
|
-
var r = parseInt(baseColor.slice(1, 3), 16);
|
|
10792
|
-
var g = parseInt(baseColor.slice(3, 5), 16);
|
|
10793
|
-
var b = parseInt(baseColor.slice(5, 7), 16);
|
|
10794
|
-
return "rgba(" + r + ", " + g + ", " + b + ", " + alpha + ")";
|
|
10795
|
-
}
|
|
10796
11214
|
|
|
10797
11215
|
|
|
10798
11216
|
/***/ }),
|
|
@@ -12132,7 +12550,7 @@ var Translation = /** @class */ (function (_super) {
|
|
|
12132
12550
|
};
|
|
12133
12551
|
Translation.prototype.createStringsSurvey = function () {
|
|
12134
12552
|
var _this = this;
|
|
12135
|
-
var json = { autoGrowComment: true };
|
|
12553
|
+
var json = { autoGrowComment: true, allowResizeComment: false };
|
|
12136
12554
|
Object(_property_grid_index__WEBPACK_IMPORTED_MODULE_5__["setSurveyJSONForPropertyGrid"])(json, false);
|
|
12137
12555
|
var survey = this.options.createSurvey(json, "translation_strings");
|
|
12138
12556
|
survey.lazyRendering = true;
|
|
@@ -12800,6 +13218,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12800
13218
|
/* harmony import */ var _src_components_tabs_translation__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../src/components/tabs/translation */ "./src/components/tabs/translation.ts");
|
|
12801
13219
|
/* harmony import */ var _components_string_editor__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/string-editor */ "./src/components/string-editor.ts");
|
|
12802
13220
|
/* harmony import */ var _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/tabs/theme-plugin */ "./src/components/tabs/theme-plugin.ts");
|
|
13221
|
+
/* harmony import */ var _survey_elements__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./survey-elements */ "./src/survey-elements.ts");
|
|
13222
|
+
|
|
13223
|
+
|
|
13224
|
+
|
|
12803
13225
|
|
|
12804
13226
|
|
|
12805
13227
|
|
|
@@ -12829,8 +13251,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12829
13251
|
__webpack_require__(/*! ./components/creator.scss */ "./src/components/creator.scss");
|
|
12830
13252
|
__webpack_require__(/*! ./components/string-editor.scss */ "./src/components/string-editor.scss");
|
|
12831
13253
|
__webpack_require__(/*! ./creator-theme/creator.scss */ "./src/creator-theme/creator.scss");
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
13254
|
//Obsolete
|
|
12835
13255
|
var CreatorAction = /** @class */ (function (_super) {
|
|
12836
13256
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreatorAction, _super);
|
|
@@ -13268,6 +13688,21 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
13268
13688
|
*- options.page the new survey Page object.
|
|
13269
13689
|
*/
|
|
13270
13690
|
_this.onPageAdded = new CreatorEvent();
|
|
13691
|
+
/**
|
|
13692
|
+
* An event that is raised when Survey Creator renders action buttons under each page on the design surface. Use this event to add, remove, or modify the buttons.
|
|
13693
|
+
*
|
|
13694
|
+
* Parameters:
|
|
13695
|
+
*
|
|
13696
|
+
* - `sender`: `CreatorBase`\
|
|
13697
|
+
* A Survey Creator instance that raised the event.
|
|
13698
|
+
* - `options.actions`: [`IAction[]`](/form-library/documentation/api-reference/iaction)\
|
|
13699
|
+
* An array of actions. You can add or remove actions from this array.
|
|
13700
|
+
* - `options.page`: [`PageModel`](/form-library/documentation/api-reference/page-model)\
|
|
13701
|
+
* A page for which the event is raised.
|
|
13702
|
+
* - `options.addNewQuestion(type)`: Method\
|
|
13703
|
+
* Adds a new question of a specified [`type`](/form-library/documentation/api-reference/question#getType) to the page.
|
|
13704
|
+
*/
|
|
13705
|
+
_this.onGetPageActions = new CreatorEvent();
|
|
13271
13706
|
/**
|
|
13272
13707
|
* The event is fired when the survey creator is initialized and a survey object (Survey.Survey) is created.
|
|
13273
13708
|
*- sender the survey creator object that fires the event
|
|
@@ -13486,6 +13921,7 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
13486
13921
|
* Default value: `"defaultV2"`
|
|
13487
13922
|
*/
|
|
13488
13923
|
_this.themeForPreview = "defaultV2";
|
|
13924
|
+
_this.theme = { cssVariables: {} };
|
|
13489
13925
|
_this._allowModifyPages = true;
|
|
13490
13926
|
/**
|
|
13491
13927
|
* Obsolete. Use the [`showDefaultLanguageInPreviewTab`](https://surveyjs.io/Documentation/Survey-Creator?id=surveycreator#showDefaultLanguageInPreviewTab) property instead.
|
|
@@ -14490,9 +14926,9 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
14490
14926
|
};
|
|
14491
14927
|
CreatorBase.prototype.initDragDropSurveyElements = function () {
|
|
14492
14928
|
var _this = this;
|
|
14493
|
-
|
|
14929
|
+
_survey_elements__WEBPACK_IMPORTED_MODULE_25__["DragDropSurveyElements"].restrictDragQuestionBetweenPages =
|
|
14494
14930
|
_creator_settings__WEBPACK_IMPORTED_MODULE_2__["settings"].dragDrop.restrictDragQuestionBetweenPages;
|
|
14495
|
-
this.dragDropSurveyElements = new
|
|
14931
|
+
this.dragDropSurveyElements = new _survey_elements__WEBPACK_IMPORTED_MODULE_25__["DragDropSurveyElements"](null, this);
|
|
14496
14932
|
var isDraggedFromToolbox = false;
|
|
14497
14933
|
this.dragDropSurveyElements.onDragStart.add(function (sender, options) {
|
|
14498
14934
|
var panel = sender.dropTarget.parent;
|
|
@@ -15813,6 +16249,15 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
15813
16249
|
popupModel: popupModel
|
|
15814
16250
|
};
|
|
15815
16251
|
};
|
|
16252
|
+
CreatorBase.prototype.getUpdatedPageAdornerFooterActions = function (pageAdorner, actions) {
|
|
16253
|
+
var options = {
|
|
16254
|
+
page: pageAdorner.page,
|
|
16255
|
+
addNewQuestion: function (type) { pageAdorner.addNewQuestion(pageAdorner, undefined, type); },
|
|
16256
|
+
actions: actions
|
|
16257
|
+
};
|
|
16258
|
+
this.onGetPageActions.fire(this, options);
|
|
16259
|
+
return options.actions;
|
|
16260
|
+
};
|
|
15816
16261
|
CreatorBase.prototype.addNewQuestionInPage = function (beforeAdd, panel, type) {
|
|
15817
16262
|
if (panel === void 0) { panel = null; }
|
|
15818
16263
|
if (type === void 0) { type = null; }
|
|
@@ -16403,6 +16848,9 @@ var settings = {
|
|
|
16403
16848
|
*/
|
|
16404
16849
|
exportFileName: "survey_translation.csv"
|
|
16405
16850
|
},
|
|
16851
|
+
theme: {
|
|
16852
|
+
exportFileName: "survey_theme.json"
|
|
16853
|
+
},
|
|
16406
16854
|
operators: {
|
|
16407
16855
|
empty: [],
|
|
16408
16856
|
notempty: [],
|
|
@@ -16485,6 +16933,7 @@ var settings = {
|
|
|
16485
16933
|
choices: ["Item 1", "Item 2", "Item 3"]
|
|
16486
16934
|
},
|
|
16487
16935
|
imagepicker: {
|
|
16936
|
+
imageFit: "cover",
|
|
16488
16937
|
choices: [
|
|
16489
16938
|
{
|
|
16490
16939
|
value: "Image 1",
|
|
@@ -16627,15 +17076,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16627
17076
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
16628
17077
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
16629
17078
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
17079
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
17080
|
+
|
|
16630
17081
|
|
|
16631
17082
|
|
|
16632
17083
|
var QuestionColorModel = /** @class */ (function (_super) {
|
|
16633
17084
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(QuestionColorModel, _super);
|
|
16634
|
-
function QuestionColorModel() {
|
|
16635
|
-
|
|
17085
|
+
function QuestionColorModel(name) {
|
|
17086
|
+
var _this = _super.call(this, name) || this;
|
|
17087
|
+
_this.createItemValues("choices");
|
|
17088
|
+
_this.registerFunctionOnPropertyValueChanged("choices", function () {
|
|
17089
|
+
_this.updateChoices();
|
|
17090
|
+
});
|
|
17091
|
+
return _this;
|
|
16636
17092
|
}
|
|
16637
17093
|
QuestionColorModel.prototype.getCorrectedValue = function (newValue) {
|
|
16638
|
-
newValue = newValue !== null && newValue !== void 0 ? newValue : "";
|
|
17094
|
+
newValue = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_2__["parseColor"])(newValue !== null && newValue !== void 0 ? newValue : "").color;
|
|
16639
17095
|
newValue = (newValue.match(/#(\d|\w){1,6}/) || ["#000000"])[0];
|
|
16640
17096
|
if (newValue.length === 4) {
|
|
16641
17097
|
for (var i = 1; i < 4; i++) {
|
|
@@ -16694,6 +17150,68 @@ var QuestionColorModel = /** @class */ (function (_super) {
|
|
|
16694
17150
|
_super.prototype.onSurveyValueChanged.call(this, newValue);
|
|
16695
17151
|
this.updateRenderedValue();
|
|
16696
17152
|
};
|
|
17153
|
+
Object.defineProperty(QuestionColorModel.prototype, "dropdownAction", {
|
|
17154
|
+
get: function () {
|
|
17155
|
+
if (!this._dropdownAction) {
|
|
17156
|
+
this._dropdownAction = this.createDropdownAction();
|
|
17157
|
+
}
|
|
17158
|
+
return this._dropdownAction;
|
|
17159
|
+
},
|
|
17160
|
+
enumerable: false,
|
|
17161
|
+
configurable: true
|
|
17162
|
+
});
|
|
17163
|
+
Object.defineProperty(QuestionColorModel.prototype, "choices", {
|
|
17164
|
+
get: function () {
|
|
17165
|
+
return this.getPropertyValue("choices");
|
|
17166
|
+
},
|
|
17167
|
+
set: function (newValue) {
|
|
17168
|
+
this.setPropertyValue("choices", newValue);
|
|
17169
|
+
},
|
|
17170
|
+
enumerable: false,
|
|
17171
|
+
configurable: true
|
|
17172
|
+
});
|
|
17173
|
+
Object.defineProperty(QuestionColorModel.prototype, "showDropdownAction", {
|
|
17174
|
+
get: function () {
|
|
17175
|
+
return !this.isValueEmpty(this.choices);
|
|
17176
|
+
},
|
|
17177
|
+
enumerable: false,
|
|
17178
|
+
configurable: true
|
|
17179
|
+
});
|
|
17180
|
+
QuestionColorModel.prototype.createDropdownAction = function () {
|
|
17181
|
+
var _this = this;
|
|
17182
|
+
var action = Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["createDropdownActionModelAdvanced"])({
|
|
17183
|
+
iconName: this.cssClasses.colorDropdownIcon
|
|
17184
|
+
}, {
|
|
17185
|
+
onSelectionChanged: function (item) {
|
|
17186
|
+
_this.value = item.value;
|
|
17187
|
+
},
|
|
17188
|
+
items: this.choices
|
|
17189
|
+
}, {
|
|
17190
|
+
showPointer: false,
|
|
17191
|
+
verticalPosition: "bottom",
|
|
17192
|
+
horizontalPosition: "center"
|
|
17193
|
+
});
|
|
17194
|
+
var popupModel = action.popupModel;
|
|
17195
|
+
var listModel = popupModel.contentComponentData.model;
|
|
17196
|
+
listModel.cssClasses = {
|
|
17197
|
+
itemBody: listModel.cssClasses.itemBody + " " + this.cssClasses.colorItem
|
|
17198
|
+
};
|
|
17199
|
+
popupModel.setWidthByTarget = true;
|
|
17200
|
+
popupModel.positionMode = "fixed";
|
|
17201
|
+
listModel.isItemSelected = function (itemValue) { return itemValue.value == _this.value; };
|
|
17202
|
+
action.cssClasses = { item: this.cssClasses.colorDropdown };
|
|
17203
|
+
return action;
|
|
17204
|
+
};
|
|
17205
|
+
QuestionColorModel.prototype.updateChoices = function () {
|
|
17206
|
+
this.dropdownAction.popupModel.contentComponentData.model.setItems(this.choices);
|
|
17207
|
+
};
|
|
17208
|
+
Object.defineProperty(QuestionColorModel.prototype, "itemComponent", {
|
|
17209
|
+
get: function () {
|
|
17210
|
+
return "color-item";
|
|
17211
|
+
},
|
|
17212
|
+
enumerable: false,
|
|
17213
|
+
configurable: true
|
|
17214
|
+
});
|
|
16697
17215
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
16698
17216
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
16699
17217
|
], QuestionColorModel.prototype, "unit", void 0);
|
|
@@ -16704,7 +17222,8 @@ var QuestionColorModel = /** @class */ (function (_super) {
|
|
|
16704
17222
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["QuestionTextModel"]));
|
|
16705
17223
|
|
|
16706
17224
|
survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("color", [
|
|
16707
|
-
"unit"
|
|
17225
|
+
"unit",
|
|
17226
|
+
"choices:itemvalue[]"
|
|
16708
17227
|
], function () { return new QuestionColorModel(""); }, "text");
|
|
16709
17228
|
survey_core__WEBPACK_IMPORTED_MODULE_1__["QuestionFactory"].Instance.registerQuestion("color", function (name) {
|
|
16710
17229
|
return new QuestionColorModel(name);
|
|
@@ -17472,7 +17991,7 @@ var __spreadArray = function (to, from) {
|
|
|
17472
17991
|
/*!******************************!*\
|
|
17473
17992
|
!*** ./src/entries/index.ts ***!
|
|
17474
17993
|
\******************************/
|
|
17475
|
-
/*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, CreatorAction, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorEvent, CreatorBase, SurveyCreatorModel, StylesManager, initializeDesignTimeSurveyModel, editableStringRendererName, getElementWrapperComponentName, getQuestionContentWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, isTextInput, registerAdorner, removeAdorners, CreatorResponsivityManager, EmbedModel, TabEmbedPlugin, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, Themes, ThemeSurveyTabViewModel, TabThemePlugin, initLogicOperator, LogicEvent, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, translationCss, TabTranslationPlugin, initialSettingsAllowShowEmptyTitleInDesignMode, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageAdorner, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringItemsNavigatorBase, StringEditorConnector, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, EditorLocalization, getLocString, SurveyJSON5, QuestionSpinEditorModel, QuestionColorModel, QuestionFileEditorModel, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridLinkEditor, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorker, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SidebarModel, SidebarTabModel, getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, imageMimeTypes, getAcceptedTypesByContentMode, getQuestionFromObj, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
|
|
17994
|
+
/*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, CreatorAction, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorEvent, CreatorBase, SurveyCreatorModel, StylesManager, initializeDesignTimeSurveyModel, editableStringRendererName, getElementWrapperComponentName, getQuestionContentWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, isTextInput, registerAdorner, removeAdorners, CreatorResponsivityManager, EmbedModel, TabEmbedPlugin, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, createColor, createBoxShadow, parseBoxShadow, Themes, ThemeSurveyTabViewModel, TabThemePlugin, initLogicOperator, LogicEvent, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, translationCss, TabTranslationPlugin, initialSettingsAllowShowEmptyTitleInDesignMode, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageAdorner, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringItemsNavigatorBase, StringEditorConnector, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, EditorLocalization, getLocString, SurveyJSON5, QuestionSpinEditorModel, QuestionColorModel, QuestionFileEditorModel, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridLinkEditor, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorker, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SidebarModel, SidebarTabModel, getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, imageMimeTypes, getAcceptedTypesByContentMode, getQuestionFromObj, ingectAlpha, convertRgbaToString, parseRgbaFromString, parseColor, HSBToRGB, RGBToHSB, assign, ColorCalculator, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
|
|
17476
17995
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
17477
17996
|
|
|
17478
17997
|
"use strict";
|
|
@@ -17563,345 +18082,371 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17563
18082
|
/* harmony import */ var _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components/tabs/test-plugin */ "./src/components/tabs/test-plugin.ts");
|
|
17564
18083
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTestPlugin", function() { return _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_10__["TabTestPlugin"]; });
|
|
17565
18084
|
|
|
17566
|
-
/* harmony import */ var
|
|
17567
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18085
|
+
/* harmony import */ var _components_tabs_theme_custom_questions_color_settings__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../components/tabs/theme-custom-questions/color-settings */ "./src/components/tabs/theme-custom-questions/color-settings.ts");
|
|
18086
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createColor", function() { return _components_tabs_theme_custom_questions_color_settings__WEBPACK_IMPORTED_MODULE_11__["createColor"]; });
|
|
18087
|
+
|
|
18088
|
+
/* harmony import */ var _components_tabs_theme_custom_questions_boxshadow_settings__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../components/tabs/theme-custom-questions/boxshadow-settings */ "./src/components/tabs/theme-custom-questions/boxshadow-settings.ts");
|
|
18089
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createBoxShadow", function() { return _components_tabs_theme_custom_questions_boxshadow_settings__WEBPACK_IMPORTED_MODULE_12__["createBoxShadow"]; });
|
|
18090
|
+
|
|
18091
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseBoxShadow", function() { return _components_tabs_theme_custom_questions_boxshadow_settings__WEBPACK_IMPORTED_MODULE_12__["parseBoxShadow"]; });
|
|
17568
18092
|
|
|
17569
|
-
/* harmony
|
|
18093
|
+
/* harmony import */ var _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../components/tabs/theme-custom-questions/font-settings */ "./src/components/tabs/theme-custom-questions/font-settings.ts");
|
|
18094
|
+
/* empty/unused harmony star reexport *//* harmony import */ var _components_tabs_theme_custom_questions_element_settings__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../components/tabs/theme-custom-questions/element-settings */ "./src/components/tabs/theme-custom-questions/element-settings.ts");
|
|
18095
|
+
/* empty/unused harmony star reexport *//* harmony import */ var _components_tabs_theme__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../components/tabs/theme */ "./src/components/tabs/theme.ts");
|
|
18096
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Themes", function() { return _components_tabs_theme__WEBPACK_IMPORTED_MODULE_15__["Themes"]; });
|
|
17570
18097
|
|
|
17571
|
-
/* harmony
|
|
17572
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabThemePlugin", function() { return _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_12__["TabThemePlugin"]; });
|
|
18098
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeSurveyTabViewModel", function() { return _components_tabs_theme__WEBPACK_IMPORTED_MODULE_15__["ThemeSurveyTabViewModel"]; });
|
|
17573
18099
|
|
|
17574
|
-
/* harmony import */ var
|
|
17575
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18100
|
+
/* harmony import */ var _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../components/tabs/theme-plugin */ "./src/components/tabs/theme-plugin.ts");
|
|
18101
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabThemePlugin", function() { return _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_16__["TabThemePlugin"]; });
|
|
17576
18102
|
|
|
17577
|
-
/* harmony
|
|
18103
|
+
/* harmony import */ var _components_tabs_logic__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../components/tabs/logic */ "./src/components/tabs/logic.ts");
|
|
18104
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initLogicOperator", function() { return _components_tabs_logic__WEBPACK_IMPORTED_MODULE_17__["initLogicOperator"]; });
|
|
17578
18105
|
|
|
17579
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18106
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogicEvent", function() { return _components_tabs_logic__WEBPACK_IMPORTED_MODULE_17__["LogicEvent"]; });
|
|
17580
18107
|
|
|
17581
|
-
/* harmony
|
|
17582
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItemBase", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_14__["TranslationItemBase"]; });
|
|
18108
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return _components_tabs_logic__WEBPACK_IMPORTED_MODULE_17__["SurveyLogic"]; });
|
|
17583
18109
|
|
|
17584
|
-
/* harmony
|
|
18110
|
+
/* harmony import */ var _components_tabs_translation__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../components/tabs/translation */ "./src/components/tabs/translation.ts");
|
|
18111
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItemBase", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_18__["TranslationItemBase"]; });
|
|
17585
18112
|
|
|
17586
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18113
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItemString", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_18__["TranslationItemString"]; });
|
|
17587
18114
|
|
|
17588
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18115
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItem", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_18__["TranslationItem"]; });
|
|
17589
18116
|
|
|
17590
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18117
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationGroup", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_18__["TranslationGroup"]; });
|
|
17591
18118
|
|
|
17592
|
-
/* harmony
|
|
17593
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "translationCss", function() { return _components_tabs_translation_theme__WEBPACK_IMPORTED_MODULE_15__["translationCss"]; });
|
|
18119
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Translation", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_18__["Translation"]; });
|
|
17594
18120
|
|
|
17595
|
-
/* harmony import */ var
|
|
17596
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18121
|
+
/* harmony import */ var _components_tabs_translation_theme__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../components/tabs/translation-theme */ "./src/components/tabs/translation-theme.ts");
|
|
18122
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "translationCss", function() { return _components_tabs_translation_theme__WEBPACK_IMPORTED_MODULE_19__["translationCss"]; });
|
|
17597
18123
|
|
|
17598
|
-
/* harmony import */ var
|
|
17599
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18124
|
+
/* harmony import */ var _components_tabs_translation_plugin__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../components/tabs/translation-plugin */ "./src/components/tabs/translation-plugin.ts");
|
|
18125
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTranslationPlugin", function() { return _components_tabs_translation_plugin__WEBPACK_IMPORTED_MODULE_20__["TabTranslationPlugin"]; });
|
|
17600
18126
|
|
|
17601
|
-
/* harmony
|
|
18127
|
+
/* harmony import */ var _components_tabs_designer__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../components/tabs/designer */ "./src/components/tabs/designer.ts");
|
|
18128
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initialSettingsAllowShowEmptyTitleInDesignMode", function() { return _components_tabs_designer__WEBPACK_IMPORTED_MODULE_21__["initialSettingsAllowShowEmptyTitleInDesignMode"]; });
|
|
17602
18129
|
|
|
17603
|
-
/* harmony
|
|
17604
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabDesignerPlugin", function() { return _components_tabs_designer_plugin__WEBPACK_IMPORTED_MODULE_18__["TabDesignerPlugin"]; });
|
|
18130
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabDesignerViewModel", function() { return _components_tabs_designer__WEBPACK_IMPORTED_MODULE_21__["TabDesignerViewModel"]; });
|
|
17605
18131
|
|
|
17606
|
-
/* harmony import */ var
|
|
17607
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18132
|
+
/* harmony import */ var _components_tabs_designer_plugin__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../components/tabs/designer-plugin */ "./src/components/tabs/designer-plugin.ts");
|
|
18133
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabDesignerPlugin", function() { return _components_tabs_designer_plugin__WEBPACK_IMPORTED_MODULE_22__["TabDesignerPlugin"]; });
|
|
17608
18134
|
|
|
17609
|
-
/* harmony import */ var
|
|
17610
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18135
|
+
/* harmony import */ var _components_tabs_logic_ui__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../components/tabs/logic-ui */ "./src/components/tabs/logic-ui.ts");
|
|
18136
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return _components_tabs_logic_ui__WEBPACK_IMPORTED_MODULE_23__["SurveyLogicUI"]; });
|
|
17611
18137
|
|
|
17612
|
-
/* harmony import */ var
|
|
17613
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18138
|
+
/* harmony import */ var _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../components/tabs/logic-plugin */ "./src/components/tabs/logic-plugin.ts");
|
|
18139
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabLogicPlugin", function() { return _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_24__["TabLogicPlugin"]; });
|
|
17614
18140
|
|
|
17615
|
-
/* harmony import */ var
|
|
17616
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18141
|
+
/* harmony import */ var _components_tabs_logic_theme__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../components/tabs/logic-theme */ "./src/components/tabs/logic-theme.ts");
|
|
18142
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "logicCss", function() { return _components_tabs_logic_theme__WEBPACK_IMPORTED_MODULE_25__["logicCss"]; });
|
|
17617
18143
|
|
|
17618
|
-
/* harmony import */ var
|
|
17619
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18144
|
+
/* harmony import */ var _components_toolbox_toolbox_tool__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../components/toolbox/toolbox-tool */ "./src/components/toolbox/toolbox-tool.ts");
|
|
18145
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return _components_toolbox_toolbox_tool__WEBPACK_IMPORTED_MODULE_26__["ToolboxToolViewModel"]; });
|
|
17620
18146
|
|
|
17621
|
-
/* harmony import */ var
|
|
17622
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18147
|
+
/* harmony import */ var _components_page_navigator_page_navigator__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../components/page-navigator/page-navigator */ "./src/components/page-navigator/page-navigator.ts");
|
|
18148
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageNavigatorViewModel", function() { return _components_page_navigator_page_navigator__WEBPACK_IMPORTED_MODULE_27__["PageNavigatorViewModel"]; });
|
|
17623
18149
|
|
|
17624
|
-
/* harmony import */ var
|
|
17625
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18150
|
+
/* harmony import */ var _components_page__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../components/page */ "./src/components/page.ts");
|
|
18151
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageAdorner", function() { return _components_page__WEBPACK_IMPORTED_MODULE_28__["PageAdorner"]; });
|
|
17626
18152
|
|
|
17627
|
-
/* harmony import */ var
|
|
17628
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18153
|
+
/* harmony import */ var _components_row__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../components/row */ "./src/components/row.ts");
|
|
18154
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RowViewModel", function() { return _components_row__WEBPACK_IMPORTED_MODULE_29__["RowViewModel"]; });
|
|
17629
18155
|
|
|
17630
|
-
/* harmony import */ var
|
|
17631
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18156
|
+
/* harmony import */ var _components_question__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../components/question */ "./src/components/question.ts");
|
|
18157
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionAdornerViewModel", function() { return _components_question__WEBPACK_IMPORTED_MODULE_30__["QuestionAdornerViewModel"]; });
|
|
17632
18158
|
|
|
17633
|
-
/* harmony import */ var
|
|
17634
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18159
|
+
/* harmony import */ var _components_question_dropdown__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../components/question-dropdown */ "./src/components/question-dropdown.ts");
|
|
18160
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionDropdownAdornerViewModel", function() { return _components_question_dropdown__WEBPACK_IMPORTED_MODULE_31__["QuestionDropdownAdornerViewModel"]; });
|
|
17635
18161
|
|
|
17636
|
-
/* harmony import */ var
|
|
17637
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18162
|
+
/* harmony import */ var _components_question_image__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../components/question-image */ "./src/components/question-image.ts");
|
|
18163
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionImageAdornerViewModel", function() { return _components_question_image__WEBPACK_IMPORTED_MODULE_32__["QuestionImageAdornerViewModel"]; });
|
|
17638
18164
|
|
|
17639
|
-
/* harmony import */ var
|
|
17640
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18165
|
+
/* harmony import */ var _components_question_rating__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../components/question-rating */ "./src/components/question-rating.ts");
|
|
18166
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionRatingAdornerViewModel", function() { return _components_question_rating__WEBPACK_IMPORTED_MODULE_33__["QuestionRatingAdornerViewModel"]; });
|
|
17641
18167
|
|
|
17642
|
-
/* harmony import */ var
|
|
17643
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18168
|
+
/* harmony import */ var _components_item_value__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../components/item-value */ "./src/components/item-value.ts");
|
|
18169
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemValueWrapperViewModel", function() { return _components_item_value__WEBPACK_IMPORTED_MODULE_34__["ItemValueWrapperViewModel"]; });
|
|
17644
18170
|
|
|
17645
|
-
/* harmony import */ var
|
|
17646
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18171
|
+
/* harmony import */ var _components_image_item_value__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../components/image-item-value */ "./src/components/image-item-value.ts");
|
|
18172
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageItemValueWrapperViewModel", function() { return _components_image_item_value__WEBPACK_IMPORTED_MODULE_35__["ImageItemValueWrapperViewModel"]; });
|
|
17647
18173
|
|
|
17648
|
-
/* harmony
|
|
18174
|
+
/* harmony import */ var _components_matrix_cell__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../components/matrix-cell */ "./src/components/matrix-cell.ts");
|
|
18175
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixCellWrapperEditSurvey", function() { return _components_matrix_cell__WEBPACK_IMPORTED_MODULE_36__["MatrixCellWrapperEditSurvey"]; });
|
|
17649
18176
|
|
|
17650
|
-
/* harmony
|
|
17651
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveySimulatorModel", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_33__["SurveySimulatorModel"]; });
|
|
18177
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixCellWrapperViewModel", function() { return _components_matrix_cell__WEBPACK_IMPORTED_MODULE_36__["MatrixCellWrapperViewModel"]; });
|
|
17652
18178
|
|
|
17653
|
-
/* harmony
|
|
18179
|
+
/* harmony import */ var _components_simulator__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../components/simulator */ "./src/components/simulator.ts");
|
|
18180
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveySimulatorModel", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_37__["SurveySimulatorModel"]; });
|
|
17654
18181
|
|
|
17655
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18182
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MONITOR_DPI", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_37__["DEFAULT_MONITOR_DPI"]; });
|
|
17656
18183
|
|
|
17657
|
-
/* harmony
|
|
17658
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyResultsItemModel", function() { return _components_results__WEBPACK_IMPORTED_MODULE_34__["SurveyResultsItemModel"]; });
|
|
18184
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "simulatorDevices", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_37__["simulatorDevices"]; });
|
|
17659
18185
|
|
|
17660
|
-
/* harmony
|
|
18186
|
+
/* harmony import */ var _components_results__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../components/results */ "./src/components/results.ts");
|
|
18187
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyResultsItemModel", function() { return _components_results__WEBPACK_IMPORTED_MODULE_38__["SurveyResultsItemModel"]; });
|
|
17661
18188
|
|
|
17662
|
-
/* harmony
|
|
17663
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImageViewModel", function() { return _components_header_logo_image__WEBPACK_IMPORTED_MODULE_35__["LogoImageViewModel"]; });
|
|
18189
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyResultsModel", function() { return _components_results__WEBPACK_IMPORTED_MODULE_38__["SurveyResultsModel"]; });
|
|
17664
18190
|
|
|
17665
|
-
/* harmony import */ var
|
|
17666
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18191
|
+
/* harmony import */ var _components_header_logo_image__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../components/header/logo-image */ "./src/components/header/logo-image.ts");
|
|
18192
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImageViewModel", function() { return _components_header_logo_image__WEBPACK_IMPORTED_MODULE_39__["LogoImageViewModel"]; });
|
|
17667
18193
|
|
|
17668
|
-
/* harmony
|
|
18194
|
+
/* harmony import */ var _components_string_editor__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../components/string-editor */ "./src/components/string-editor.ts");
|
|
18195
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringItemsNavigatorBase", function() { return _components_string_editor__WEBPACK_IMPORTED_MODULE_40__["StringItemsNavigatorBase"]; });
|
|
17669
18196
|
|
|
17670
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18197
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringEditorConnector", function() { return _components_string_editor__WEBPACK_IMPORTED_MODULE_40__["StringEditorConnector"]; });
|
|
17671
18198
|
|
|
17672
|
-
/* harmony
|
|
17673
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionEmbeddedSurveyModel", function() { return _components_embedded_survey__WEBPACK_IMPORTED_MODULE_37__["QuestionEmbeddedSurveyModel"]; });
|
|
18199
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringEditorViewModelBase", function() { return _components_string_editor__WEBPACK_IMPORTED_MODULE_40__["StringEditorViewModelBase"]; });
|
|
17674
18200
|
|
|
17675
|
-
/* harmony import */ var
|
|
17676
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18201
|
+
/* harmony import */ var _components_embedded_survey__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../components/embedded-survey */ "./src/components/embedded-survey.ts");
|
|
18202
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionEmbeddedSurveyModel", function() { return _components_embedded_survey__WEBPACK_IMPORTED_MODULE_41__["QuestionEmbeddedSurveyModel"]; });
|
|
18203
|
+
|
|
18204
|
+
/* harmony import */ var _components_link_value__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../components/link-value */ "./src/components/link-value.ts");
|
|
18205
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionLinkValueModel", function() { return _components_link_value__WEBPACK_IMPORTED_MODULE_42__["QuestionLinkValueModel"]; });
|
|
17677
18206
|
|
|
17678
18207
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EditorLocalization", function() { return _editorLocalization__WEBPACK_IMPORTED_MODULE_1__["EditorLocalization"]; });
|
|
17679
18208
|
|
|
17680
18209
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLocString", function() { return _editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"]; });
|
|
17681
18210
|
|
|
17682
|
-
/* harmony import */ var
|
|
17683
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyJSON5", function() { return
|
|
18211
|
+
/* harmony import */ var _json5__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../json5 */ "./src/json5.ts");
|
|
18212
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyJSON5", function() { return _json5__WEBPACK_IMPORTED_MODULE_43__["SurveyJSON5"]; });
|
|
18213
|
+
|
|
18214
|
+
/* harmony import */ var _custom_questions_question_spin_editor__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../custom-questions/question-spin-editor */ "./src/custom-questions/question-spin-editor.ts");
|
|
18215
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionSpinEditorModel", function() { return _custom_questions_question_spin_editor__WEBPACK_IMPORTED_MODULE_44__["QuestionSpinEditorModel"]; });
|
|
18216
|
+
|
|
18217
|
+
/* harmony import */ var _custom_questions_question_color__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../custom-questions/question-color */ "./src/custom-questions/question-color.ts");
|
|
18218
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionColorModel", function() { return _custom_questions_question_color__WEBPACK_IMPORTED_MODULE_45__["QuestionColorModel"]; });
|
|
18219
|
+
|
|
18220
|
+
/* harmony import */ var _custom_questions_question_file__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../custom-questions/question-file */ "./src/custom-questions/question-file.ts");
|
|
18221
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionFileEditorModel", function() { return _custom_questions_question_file__WEBPACK_IMPORTED_MODULE_46__["QuestionFileEditorModel"]; });
|
|
17684
18222
|
|
|
17685
|
-
/* harmony import */ var
|
|
17686
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18223
|
+
/* harmony import */ var _property_grid__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../property-grid */ "./src/property-grid/index.ts");
|
|
18224
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setSurveyJSONForPropertyGrid", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["setSurveyJSONForPropertyGrid"]; });
|
|
17687
18225
|
|
|
17688
|
-
/* harmony
|
|
17689
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionColorModel", function() { return _custom_questions_question_color__WEBPACK_IMPORTED_MODULE_41__["QuestionColorModel"]; });
|
|
18226
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyEditorSetupValue", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyEditorSetupValue"]; });
|
|
17690
18227
|
|
|
17691
|
-
/* harmony
|
|
17692
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionFileEditorModel", function() { return _custom_questions_question_file__WEBPACK_IMPORTED_MODULE_42__["QuestionFileEditorModel"]; });
|
|
18228
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorCollection"]; });
|
|
17693
18229
|
|
|
17694
|
-
/* harmony
|
|
17695
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setSurveyJSONForPropertyGrid", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["setSurveyJSONForPropertyGrid"]; });
|
|
18230
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTitleActionsCreator", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridTitleActionsCreator"]; });
|
|
17696
18231
|
|
|
17697
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18232
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyJSONGenerator", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyJSONGenerator"]; });
|
|
17698
18233
|
|
|
17699
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18234
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridModel", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridModel"]; });
|
|
17700
18235
|
|
|
17701
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18236
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditor"]; });
|
|
17702
18237
|
|
|
17703
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18238
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBoolean", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorBoolean"]; });
|
|
17704
18239
|
|
|
17705
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18240
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringBase", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorStringBase"]; });
|
|
17706
18241
|
|
|
17707
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18242
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorString", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorString"]; });
|
|
17708
18243
|
|
|
17709
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18244
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridLinkEditor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridLinkEditor"]; });
|
|
17710
18245
|
|
|
17711
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18246
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorNumber", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorNumber"]; });
|
|
17712
18247
|
|
|
17713
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18248
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorImageSize", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorImageSize"]; });
|
|
17714
18249
|
|
|
17715
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18250
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorText", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorText"]; });
|
|
17716
18251
|
|
|
17717
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18252
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorHtml", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorHtml"]; });
|
|
17718
18253
|
|
|
17719
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18254
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorColor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorColor"]; });
|
|
17720
18255
|
|
|
17721
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18256
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringArray", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorStringArray"]; });
|
|
17722
18257
|
|
|
17723
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18258
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorDropdown", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorDropdown"]; });
|
|
17724
18259
|
|
|
17725
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18260
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorSet", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorSet"]; });
|
|
17726
18261
|
|
|
17727
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18262
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorPage", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorPage"]; });
|
|
17728
18263
|
|
|
17729
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18264
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestion", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorQuestion"]; });
|
|
17730
18265
|
|
|
17731
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18266
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionSelectBase", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorQuestionSelectBase"]; });
|
|
17732
18267
|
|
|
17733
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18268
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionValue", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorQuestionValue"]; });
|
|
17734
18269
|
|
|
17735
|
-
/* harmony
|
|
18270
|
+
/* harmony import */ var _property_grid_condition__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../property-grid/condition */ "./src/property-grid/condition.ts");
|
|
18271
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorExpression", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_48__["PropertyGridEditorExpression"]; });
|
|
17736
18272
|
|
|
17737
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18273
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCondition", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_48__["PropertyGridEditorCondition"]; });
|
|
17738
18274
|
|
|
17739
|
-
/* harmony
|
|
18275
|
+
/* harmony import */ var _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../property-grid/matrices */ "./src/property-grid/matrices.ts");
|
|
18276
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrix", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrix"]; });
|
|
17740
18277
|
|
|
17741
|
-
/* harmony
|
|
17742
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorExpression", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_44__["PropertyGridEditorExpression"]; });
|
|
18278
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixItemValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrixItemValues"]; });
|
|
17743
18279
|
|
|
17744
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18280
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixRateValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrixRateValues"]; });
|
|
17745
18281
|
|
|
17746
|
-
/* harmony
|
|
17747
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrix", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrix"]; });
|
|
18282
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixColumns", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrixColumns"]; });
|
|
17748
18283
|
|
|
17749
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18284
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixPages", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrixPages"]; });
|
|
17750
18285
|
|
|
17751
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18286
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixCalculatedValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrixCalculatedValues"]; });
|
|
17752
18287
|
|
|
17753
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18288
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixHtmlConditions", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrixHtmlConditions"]; });
|
|
17754
18289
|
|
|
17755
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18290
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixUrlConditions", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrixUrlConditions"]; });
|
|
17756
18291
|
|
|
17757
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18292
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMutlipleTextItems", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrixMutlipleTextItems"]; });
|
|
17758
18293
|
|
|
17759
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18294
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMultipleTypes", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrixMultipleTypes"]; });
|
|
17760
18295
|
|
|
17761
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18296
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixValidators", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrixValidators"]; });
|
|
17762
18297
|
|
|
17763
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18298
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixTriggers", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorMatrixTriggers"]; });
|
|
17764
18299
|
|
|
17765
|
-
/* harmony
|
|
18300
|
+
/* harmony import */ var _property_grid_bindings__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../property-grid/bindings */ "./src/property-grid/bindings.ts");
|
|
18301
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBindings", function() { return _property_grid_bindings__WEBPACK_IMPORTED_MODULE_50__["PropertyGridEditorBindings"]; });
|
|
17766
18302
|
|
|
17767
|
-
/* harmony
|
|
18303
|
+
/* harmony import */ var _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../property-grid/property-grid-view-model */ "./src/property-grid/property-grid-view-model.ts");
|
|
18304
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridViewModel", function() { return _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_51__["PropertyGridViewModel"]; });
|
|
17768
18305
|
|
|
17769
|
-
/* harmony
|
|
18306
|
+
/* harmony import */ var _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../property-grid/object-selector */ "./src/property-grid/object-selector.ts");
|
|
18307
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorItem", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_52__["ObjectSelectorItem"]; });
|
|
17770
18308
|
|
|
17771
|
-
/* harmony
|
|
17772
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBindings", function() { return _property_grid_bindings__WEBPACK_IMPORTED_MODULE_46__["PropertyGridEditorBindings"]; });
|
|
18309
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelector", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_52__["ObjectSelector"]; });
|
|
17773
18310
|
|
|
17774
|
-
/* harmony
|
|
17775
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridViewModel", function() { return _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_47__["PropertyGridViewModel"]; });
|
|
18311
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorModel", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_52__["ObjectSelectorModel"]; });
|
|
17776
18312
|
|
|
17777
|
-
/* harmony import */ var
|
|
17778
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18313
|
+
/* harmony import */ var _property_grid_restfull__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../property-grid/restfull */ "./src/property-grid/restfull.ts");
|
|
18314
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionRestfull", function() { return _property_grid_restfull__WEBPACK_IMPORTED_MODULE_53__["PropertyGridEditorQuestionRestfull"]; });
|
|
17779
18315
|
|
|
17780
|
-
/* harmony
|
|
18316
|
+
/* harmony import */ var _property_grid_values__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../property-grid/values */ "./src/property-grid/values.ts");
|
|
18317
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditorBase", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_54__["PropertyGridValueEditorBase"]; });
|
|
17781
18318
|
|
|
17782
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18319
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridCellsEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_54__["PropertyGridCellsEditor"]; });
|
|
17783
18320
|
|
|
17784
|
-
/* harmony
|
|
17785
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionRestfull", function() { return _property_grid_restfull__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorQuestionRestfull"]; });
|
|
18321
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_54__["PropertyGridValueEditor"]; });
|
|
17786
18322
|
|
|
17787
|
-
/* harmony
|
|
17788
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditorBase", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridValueEditorBase"]; });
|
|
18323
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridRowValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_54__["PropertyGridRowValueEditor"]; });
|
|
17789
18324
|
|
|
17790
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18325
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridPanelValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_54__["PropertyGridPanelValueEditor"]; });
|
|
17791
18326
|
|
|
17792
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18327
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_54__["PropertyGridTriggerValueEditor"]; });
|
|
17793
18328
|
|
|
17794
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18329
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueInLogicEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_54__["PropertyGridTriggerValueInLogicEditor"]; });
|
|
17795
18330
|
|
|
17796
|
-
/* harmony
|
|
18331
|
+
/* harmony import */ var _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../property-grid-theme/property-grid */ "./src/property-grid-theme/property-grid.ts");
|
|
18332
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyGridCss", function() { return _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_55__["propertyGridCss"]; });
|
|
17797
18333
|
|
|
17798
|
-
/* harmony
|
|
18334
|
+
/* harmony import */ var _questionconverter__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../questionconverter */ "./src/questionconverter.ts");
|
|
18335
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionConverter", function() { return _questionconverter__WEBPACK_IMPORTED_MODULE_56__["QuestionConverter"]; });
|
|
17799
18336
|
|
|
17800
|
-
/* harmony
|
|
18337
|
+
/* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../svgbundle */ "./src/svgbundle.ts");
|
|
18338
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return _svgbundle__WEBPACK_IMPORTED_MODULE_57__["svgBundle"]; });
|
|
17801
18339
|
|
|
17802
|
-
/* harmony import */ var
|
|
17803
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18340
|
+
/* harmony import */ var _textWorker__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../textWorker */ "./src/textWorker.ts");
|
|
18341
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorker", function() { return _textWorker__WEBPACK_IMPORTED_MODULE_58__["SurveyTextWorker"]; });
|
|
17804
18342
|
|
|
17805
|
-
/* harmony import */ var
|
|
17806
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18343
|
+
/* harmony import */ var _toolbox__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../toolbox */ "./src/toolbox.ts");
|
|
18344
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxCategory", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_59__["QuestionToolboxCategory"]; });
|
|
17807
18345
|
|
|
17808
|
-
/* harmony
|
|
17809
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return _svgbundle__WEBPACK_IMPORTED_MODULE_53__["svgBundle"]; });
|
|
18346
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxItem", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_59__["QuestionToolboxItem"]; });
|
|
17810
18347
|
|
|
17811
|
-
/* harmony
|
|
17812
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorker", function() { return _textWorker__WEBPACK_IMPORTED_MODULE_54__["SurveyTextWorker"]; });
|
|
18348
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolbox", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_59__["QuestionToolbox"]; });
|
|
17813
18349
|
|
|
17814
|
-
/* harmony import */ var
|
|
17815
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18350
|
+
/* harmony import */ var _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../components/side-bar/side-bar-model */ "./src/components/side-bar/side-bar-model.ts");
|
|
18351
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarModel", function() { return _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_60__["SidebarModel"]; });
|
|
17816
18352
|
|
|
17817
|
-
/* harmony
|
|
18353
|
+
/* harmony import */ var _components_side_bar_side_bar_tab_model__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../components/side-bar/side-bar-tab-model */ "./src/components/side-bar/side-bar-tab-model.ts");
|
|
18354
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarTabModel", function() { return _components_side_bar_side_bar_tab_model__WEBPACK_IMPORTED_MODULE_61__["SidebarTabModel"]; });
|
|
17818
18355
|
|
|
17819
|
-
/* harmony
|
|
18356
|
+
/* harmony import */ var _utils_events__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../utils/events */ "./src/utils/events.ts");
|
|
18357
|
+
/* empty/unused harmony star reexport *//* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
18358
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["getNextItemValue"]; });
|
|
17820
18359
|
|
|
17821
|
-
/* harmony
|
|
17822
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarModel", function() { return _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_56__["SidebarModel"]; });
|
|
18360
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemText", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["getNextItemText"]; });
|
|
17823
18361
|
|
|
17824
|
-
/* harmony
|
|
17825
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarTabModel", function() { return _components_side_bar_side_bar_tab_model__WEBPACK_IMPORTED_MODULE_57__["SidebarTabModel"]; });
|
|
18362
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["getNextValue"]; });
|
|
17826
18363
|
|
|
17827
|
-
/* harmony
|
|
17828
|
-
/* empty/unused harmony star reexport *//* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
17829
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getNextItemValue"]; });
|
|
18364
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findParentNode", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["findParentNode"]; });
|
|
17830
18365
|
|
|
17831
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18366
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "focusFirstControl", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["focusFirstControl"]; });
|
|
17832
18367
|
|
|
17833
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18368
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFirstNonTextElement", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["getFirstNonTextElement"]; });
|
|
17834
18369
|
|
|
17835
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18370
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNodesFromKoComponentInfo", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["getNodesFromKoComponentInfo"]; });
|
|
17836
18371
|
|
|
17837
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18372
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyExists", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["propertyExists"]; });
|
|
17838
18373
|
|
|
17839
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18374
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPropertyVisible", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["isPropertyVisible"]; });
|
|
17840
18375
|
|
|
17841
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18376
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toggleHovered", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["toggleHovered"]; });
|
|
17842
18377
|
|
|
17843
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18378
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clearNewLines", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["clearNewLines"]; });
|
|
17844
18379
|
|
|
17845
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18380
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["select"]; });
|
|
17846
18381
|
|
|
17847
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18382
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyObject", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["copyObject"]; });
|
|
17848
18383
|
|
|
17849
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18384
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyCssClasses", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["copyCssClasses"]; });
|
|
17850
18385
|
|
|
17851
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18386
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assignDefaultV2Classes", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["assignDefaultV2Classes"]; });
|
|
17852
18387
|
|
|
17853
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18388
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "wrapTextByCurlyBraces", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["wrapTextByCurlyBraces"]; });
|
|
17854
18389
|
|
|
17855
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18390
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["capitalize"]; });
|
|
17856
18391
|
|
|
17857
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18392
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "notShortCircuitAnd", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["notShortCircuitAnd"]; });
|
|
17858
18393
|
|
|
17859
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18394
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "imageMimeTypes", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["imageMimeTypes"]; });
|
|
17860
18395
|
|
|
17861
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18396
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getAcceptedTypesByContentMode", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["getAcceptedTypesByContentMode"]; });
|
|
17862
18397
|
|
|
17863
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18398
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getQuestionFromObj", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["getQuestionFromObj"]; });
|
|
17864
18399
|
|
|
17865
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18400
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ingectAlpha", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["ingectAlpha"]; });
|
|
17866
18401
|
|
|
17867
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18402
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "convertRgbaToString", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["convertRgbaToString"]; });
|
|
17868
18403
|
|
|
17869
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18404
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseRgbaFromString", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["parseRgbaFromString"]; });
|
|
17870
18405
|
|
|
17871
|
-
/* harmony
|
|
17872
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return _question_editor_definition__WEBPACK_IMPORTED_MODULE_60__["SurveyQuestionEditorDefinition"]; });
|
|
18406
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseColor", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["parseColor"]; });
|
|
17873
18407
|
|
|
17874
|
-
/* harmony
|
|
17875
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjType", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_61__["ObjType"]; });
|
|
18408
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HSBToRGB", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["HSBToRGB"]; });
|
|
17876
18409
|
|
|
17877
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18410
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RGBToHSB", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["RGBToHSB"]; });
|
|
17878
18411
|
|
|
17879
|
-
/* harmony
|
|
17880
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeManager", function() { return _utils_resizer__WEBPACK_IMPORTED_MODULE_62__["ResizeManager"]; });
|
|
18412
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assign", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["assign"]; });
|
|
17881
18413
|
|
|
17882
|
-
/* harmony
|
|
17883
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoPlugin", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_63__["UndoRedoPlugin"]; });
|
|
18414
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorCalculator", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_63__["ColorCalculator"]; });
|
|
17884
18415
|
|
|
17885
|
-
/* harmony
|
|
18416
|
+
/* harmony import */ var _question_editor_definition__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../question-editor/definition */ "./src/question-editor/definition.ts");
|
|
18417
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return _question_editor_definition__WEBPACK_IMPORTED_MODULE_64__["SurveyQuestionEditorDefinition"]; });
|
|
17886
18418
|
|
|
17887
|
-
/* harmony
|
|
18419
|
+
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
18420
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjType", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_65__["ObjType"]; });
|
|
17888
18421
|
|
|
17889
|
-
/* harmony
|
|
17890
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoManager", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_64__["UndoRedoManager"]; });
|
|
18422
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHelper", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_65__["SurveyHelper"]; });
|
|
17891
18423
|
|
|
17892
|
-
/* harmony
|
|
18424
|
+
/* harmony import */ var _utils_resizer__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../utils/resizer */ "./src/utils/resizer.ts");
|
|
18425
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeManager", function() { return _utils_resizer__WEBPACK_IMPORTED_MODULE_66__["ResizeManager"]; });
|
|
17893
18426
|
|
|
17894
|
-
/* harmony
|
|
18427
|
+
/* harmony import */ var _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ../plugins/undo-redo */ "./src/plugins/undo-redo/index.ts");
|
|
18428
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoPlugin", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_67__["UndoRedoPlugin"]; });
|
|
17895
18429
|
|
|
17896
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18430
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "undoRedoTransaction", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_67__["undoRedoTransaction"]; });
|
|
17897
18431
|
|
|
17898
|
-
/* harmony
|
|
17899
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PagesController", function() { return _pages_controller__WEBPACK_IMPORTED_MODULE_65__["PagesController"]; });
|
|
18432
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ignoreUndoRedo", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_67__["ignoreUndoRedo"]; });
|
|
17900
18433
|
|
|
17901
|
-
/* harmony import */ var
|
|
17902
|
-
/* harmony
|
|
18434
|
+
/* harmony import */ var _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ../plugins/undo-redo/undo-redo-manager */ "./src/plugins/undo-redo/undo-redo-manager.ts");
|
|
18435
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoManager", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_68__["UndoRedoManager"]; });
|
|
18436
|
+
|
|
18437
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transaction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_68__["Transaction"]; });
|
|
18438
|
+
|
|
18439
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoAction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_68__["UndoRedoAction"]; });
|
|
18440
|
+
|
|
18441
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoArrayAction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_68__["UndoRedoArrayAction"]; });
|
|
18442
|
+
|
|
18443
|
+
/* harmony import */ var _pages_controller__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ../pages-controller */ "./src/pages-controller.ts");
|
|
18444
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PagesController", function() { return _pages_controller__WEBPACK_IMPORTED_MODULE_69__["PagesController"]; });
|
|
18445
|
+
|
|
18446
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
18447
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_70___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_70__);
|
|
17903
18448
|
var Version;
|
|
17904
|
-
Version = "" + "1.9.
|
|
18449
|
+
Version = "" + "1.9.91";
|
|
17905
18450
|
//should be loaded before other styles for easier override
|
|
17906
18451
|
__webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
|
|
17907
18452
|
|
|
@@ -17941,6 +18486,10 @@ __webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-but
|
|
|
17941
18486
|
|
|
17942
18487
|
|
|
17943
18488
|
|
|
18489
|
+
|
|
18490
|
+
|
|
18491
|
+
|
|
18492
|
+
|
|
17944
18493
|
|
|
17945
18494
|
|
|
17946
18495
|
|
|
@@ -17985,8 +18534,8 @@ __webpack_require__(/*! ../property-grid-theme/property-grid.scss */ "./src/prop
|
|
|
17985
18534
|
__webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
|
|
17986
18535
|
__webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
17987
18536
|
|
|
17988
|
-
|
|
17989
|
-
Object(
|
|
18537
|
+
survey_core__WEBPACK_IMPORTED_MODULE_70__["settings"].supportCreatorV2 = true;
|
|
18538
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_70__["checkLibraryVersion"])("" + "1.9.91", "survey-creator-core");
|
|
17990
18539
|
|
|
17991
18540
|
|
|
17992
18541
|
/***/ }),
|
|
@@ -18243,6 +18792,7 @@ var map = {
|
|
|
18243
18792
|
"./collapse-detail_16x16.svg": "./src/images/collapse-detail_16x16.svg",
|
|
18244
18793
|
"./collapse-panel.svg": "./src/images/collapse-panel.svg",
|
|
18245
18794
|
"./collapse_16x16.svg": "./src/images/collapse_16x16.svg",
|
|
18795
|
+
"./color-picker.svg": "./src/images/color-picker.svg",
|
|
18246
18796
|
"./comment.svg": "./src/images/comment.svg",
|
|
18247
18797
|
"./default.svg": "./src/images/default.svg",
|
|
18248
18798
|
"./delete_16x16.svg": "./src/images/delete_16x16.svg",
|
|
@@ -18553,6 +19103,17 @@ module.exports = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
18553
19103
|
|
|
18554
19104
|
/***/ }),
|
|
18555
19105
|
|
|
19106
|
+
/***/ "./src/images/color-picker.svg":
|
|
19107
|
+
/*!*************************************!*\
|
|
19108
|
+
!*** ./src/images/color-picker.svg ***!
|
|
19109
|
+
\*************************************/
|
|
19110
|
+
/*! no static exports found */
|
|
19111
|
+
/***/ (function(module, exports) {
|
|
19112
|
+
|
|
19113
|
+
module.exports = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.31 15.0002C2.69 15.0002 2.11 14.7602 1.68 14.3202C0.780005 13.4202 0.780005 11.9502 1.68 11.0502L2.45 10.2802C2.45 10.1802 2.44 10.0802 2.44 9.98023C2.44 9.02023 2.81 8.12023 3.49 7.44023L5.6 5.33023C5.37 5.04023 5.25 4.68023 5.25 4.31023C5.25 3.86023 5.42 3.44023 5.74 3.12023C6.06 2.80023 6.48 2.63023 6.92 2.63023C7.29 2.63023 7.65 2.75023 7.94 2.98023L8.88 2.04023C9.56 1.36023 10.46 0.990234 11.41 0.990234C12.36 0.990234 13.27 1.36023 13.95 2.04023C14.63 2.72023 15 3.62023 15 4.58023C15 5.54023 14.63 6.44023 13.95 7.12023L12.94 8.13023C13.04 8.34023 13.09 8.58023 13.09 8.82023C13.09 9.27023 12.92 9.69023 12.6 10.0002C12.28 10.3102 11.86 10.4902 11.42 10.4902C11.18 10.4902 10.94 10.4402 10.73 10.3402L8.56 12.5102C7.88 13.1902 6.98 13.5602 6.03 13.5602C5.93 13.5602 5.83 13.5602 5.73 13.5402L4.97 14.3002C4.53 14.7402 3.95 14.9802 3.34 14.9802L3.31 15.0002Z\" fill=\"black\" fill-opacity=\"0.15\"></path><path d=\"M14.0001 4.57969C14.0001 3.88969 13.7301 3.23969 13.2401 2.74969C12.2301 1.73969 10.5901 1.73969 9.58006 2.74969L7.94006 4.38969L7.39006 3.83969C7.13006 3.57969 6.70006 3.57969 6.44006 3.83969C6.18006 4.09969 6.18006 4.52969 6.44006 4.78969L6.99006 5.33969L4.18006 8.14969C3.69006 8.63969 3.42006 9.28969 3.42006 9.97969C3.42006 10.1997 3.46006 10.4097 3.51006 10.6197L2.38006 11.7497C1.87006 12.2597 1.87006 13.0897 2.38006 13.6097C2.64006 13.8697 2.97006 13.9897 3.31006 13.9897C3.65006 13.9897 3.98006 13.8597 4.24006 13.6097L5.37006 12.4797C5.58006 12.5297 5.79006 12.5697 6.01006 12.5697C6.70006 12.5697 7.35006 12.2997 7.84006 11.8097L10.6501 8.99969L10.9401 9.28969C11.0701 9.41969 11.2401 9.48969 11.4201 9.48969C11.6001 9.48969 11.7701 9.41969 11.9001 9.28969C12.1601 9.02969 12.1601 8.59969 11.9001 8.33969L11.6101 8.04969L13.2501 6.40969C13.7401 5.91969 14.0101 5.26969 14.0101 4.57969H14.0001ZM6.89006 10.8597C6.42006 11.3297 5.61006 11.3297 5.14006 10.8597C4.91006 10.6297 4.78006 10.3197 4.78006 9.98969C4.78006 9.65969 4.91006 9.34969 5.14006 9.11969L7.95006 6.30969L9.70006 8.05969L6.89006 10.8697V10.8597Z\"></path></svg>"
|
|
19114
|
+
|
|
19115
|
+
/***/ }),
|
|
19116
|
+
|
|
18556
19117
|
/***/ "./src/images/comment.svg":
|
|
18557
19118
|
/*!********************************!*\
|
|
18558
19119
|
!*** ./src/images/comment.svg ***!
|
|
@@ -20162,6 +20723,8 @@ var enStrings = {
|
|
|
20162
20723
|
translationImportFromSCVButton: "Import from CSV",
|
|
20163
20724
|
translationMergeLocaleWithDefault: "Merge {0} with default locale",
|
|
20164
20725
|
translationPlaceHolder: "Translation...",
|
|
20726
|
+
themeExportButton: "Export",
|
|
20727
|
+
themeImportButton: "Import",
|
|
20165
20728
|
bold: "Bold",
|
|
20166
20729
|
italic: "Italic",
|
|
20167
20730
|
underline: "Underline",
|
|
@@ -20220,6 +20783,7 @@ var enStrings = {
|
|
|
20220
20783
|
column_requireText: "make column {0} of question {1} required",
|
|
20221
20784
|
trigger_completeText: "survey becomes completed",
|
|
20222
20785
|
trigger_setvalueText: "set into question: {0} value {1}",
|
|
20786
|
+
trigger_setvalueEmptyText: "clear question value: {0}",
|
|
20223
20787
|
trigger_copyvalueText: "copy into question: {0} value from question {1}",
|
|
20224
20788
|
trigger_skipText: "survey skip to the question {0}",
|
|
20225
20789
|
trigger_runExpressionText1: "run expression: '{0}'",
|
|
@@ -20474,6 +21038,7 @@ var enStrings = {
|
|
|
20474
21038
|
maxTextLength: "Maximum answer length (in characters)",
|
|
20475
21039
|
maxOthersLength: "Maximum comment length (in characters)",
|
|
20476
21040
|
autoGrowComment: "Auto-expand comment area if necessary",
|
|
21041
|
+
allowResizeComment: "Allow users to resize text areas",
|
|
20477
21042
|
textUpdateMode: "Update text question value",
|
|
20478
21043
|
focusOnFirstError: "Set focus on the first invalid answer",
|
|
20479
21044
|
checkErrorsMode: "Run validation",
|
|
@@ -20954,6 +21519,7 @@ var enStrings = {
|
|
|
20954
21519
|
navigationDescription: "Navigation description",
|
|
20955
21520
|
longTap: "Long tap",
|
|
20956
21521
|
autoGrow: "Auto grow",
|
|
21522
|
+
allowResize: "Allow resizing",
|
|
20957
21523
|
acceptCarriageReturn: "Accept carriage return",
|
|
20958
21524
|
displayMode: "Display mode",
|
|
20959
21525
|
rateType: "Rate type",
|
|
@@ -21018,13 +21584,21 @@ var enStrings = {
|
|
|
21018
21584
|
color: "Color",
|
|
21019
21585
|
size: "Size",
|
|
21020
21586
|
fontWeightRegular: "Regular",
|
|
21587
|
+
fontWeightHeavy: "Heavy",
|
|
21021
21588
|
fontWeightSemiBold: "Semi-Bold",
|
|
21022
21589
|
fontWeightBold: "Bold",
|
|
21023
21590
|
scale: "Scale",
|
|
21024
21591
|
cornerRadius: "Corner Radius",
|
|
21025
21592
|
surveyTitle: "Survey Title Font",
|
|
21026
21593
|
pageTitle: "Page Title Font",
|
|
21027
|
-
pageDescription: "Page Description Font"
|
|
21594
|
+
pageDescription: "Page Description Font",
|
|
21595
|
+
boxShadowX: "X",
|
|
21596
|
+
boxShadowY: "Y",
|
|
21597
|
+
opacity: "Opacity",
|
|
21598
|
+
boxShadowBlur: "Blur",
|
|
21599
|
+
boxShadowSpread: "Spread",
|
|
21600
|
+
questionShadow: "Question Panel Border / Shadow",
|
|
21601
|
+
editorShadow: "Editor Border / Shadow"
|
|
21028
21602
|
},
|
|
21029
21603
|
};
|
|
21030
21604
|
// Uncomment the line below if you create a custom dictionary.
|
|
@@ -21486,8 +22060,10 @@ var UndoRedoManager = /** @class */ (function () {
|
|
|
21486
22060
|
if (transaction.isEmpty())
|
|
21487
22061
|
return;
|
|
21488
22062
|
this._cutOffTail();
|
|
21489
|
-
this._transactions.
|
|
21490
|
-
|
|
22063
|
+
if (this._transactions[this._currentTransactionIndex] !== transaction) {
|
|
22064
|
+
this._transactions.push(transaction);
|
|
22065
|
+
this._currentTransactionIndex++;
|
|
22066
|
+
}
|
|
21491
22067
|
this.canUndoRedoCallback();
|
|
21492
22068
|
};
|
|
21493
22069
|
UndoRedoManager.prototype._getCurrentTransaction = function () {
|
|
@@ -22045,7 +22621,9 @@ var propertyGridCss = {
|
|
|
22045
22621
|
colorInput: "spg-color-editor__color-input",
|
|
22046
22622
|
control: "spg-color-editor__input spg-input-container__input",
|
|
22047
22623
|
colorDropdown: "spg-input__edit-button",
|
|
22048
|
-
|
|
22624
|
+
colorDropdownIcon: "icon-drop-down-arrow",
|
|
22625
|
+
colorItem: "spg-color-editor__color-item",
|
|
22626
|
+
swatchIcon: "icon-color-picker"
|
|
22049
22627
|
},
|
|
22050
22628
|
fileedit: {
|
|
22051
22629
|
root: "spg-input spg-input-container spg-file-edit",
|
|
@@ -25368,6 +25946,19 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
25368
25946
|
this.initializePlaceholder(rowObj, q, options.columnName);
|
|
25369
25947
|
q.property = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findProperty(rowObj.getType(), options.columnName);
|
|
25370
25948
|
};
|
|
25949
|
+
PropertyGridEditorMatrix.prototype.onMatrixCellValueChanged = function (obj, options) {
|
|
25950
|
+
var column = options.question.getColumnByName(options.columnName);
|
|
25951
|
+
if (!column || !column.isUnique)
|
|
25952
|
+
return;
|
|
25953
|
+
options.question.visibleRows.forEach(function (row) {
|
|
25954
|
+
if (row !== options.row) {
|
|
25955
|
+
var q = row.getQuestionByColumnName(options.columnName);
|
|
25956
|
+
if (!!q && q.errors.length > 0) {
|
|
25957
|
+
q.hasErrors();
|
|
25958
|
+
}
|
|
25959
|
+
}
|
|
25960
|
+
});
|
|
25961
|
+
};
|
|
25371
25962
|
PropertyGridEditorMatrix.prototype.updateMatixActionsClasses = function (actions) {
|
|
25372
25963
|
actions.forEach(function (action) {
|
|
25373
25964
|
action.innerCss = (action.innerCss || "") + " spg-action-button--muted";
|
|
@@ -25756,6 +26347,7 @@ var PropertyGridEditorMatrixItemValues = /** @class */ (function (_super) {
|
|
|
25756
26347
|
}
|
|
25757
26348
|
};
|
|
25758
26349
|
PropertyGridEditorMatrixItemValues.prototype.onMatrixCellValueChanged = function (obj, options) {
|
|
26350
|
+
_super.prototype.onMatrixCellValueChanged.call(this, obj, options);
|
|
25759
26351
|
if (obj instanceof survey_core__WEBPACK_IMPORTED_MODULE_1__["QuestionRatingModel"] && options.columnName == "icon") {
|
|
25760
26352
|
//options.cellQuestion.html = "<svg style='fill: red'><use xlink:href=\"#" + options.cellQuestion.value + "\"></use></svg>";
|
|
25761
26353
|
options.cellQuestion.html = options.cellQuestion.value;
|
|
@@ -25999,13 +26591,12 @@ var PropertyGridEditorMatrixMultipleTypes = /** @class */ (function (_super) {
|
|
|
25999
26591
|
}
|
|
26000
26592
|
};
|
|
26001
26593
|
PropertyGridEditorMatrixMultipleTypes.prototype.onMatrixCellValueChanged = function (obj, options) {
|
|
26002
|
-
|
|
26594
|
+
_super.prototype.onMatrixCellValueChanged.call(this, obj, options);
|
|
26595
|
+
if (options.columnName !== this.getObjTypeName())
|
|
26003
26596
|
return;
|
|
26004
|
-
}
|
|
26005
26597
|
var index = options.question.visibleRows.indexOf(options.row);
|
|
26006
|
-
if (index < 0)
|
|
26598
|
+
if (index < 0)
|
|
26007
26599
|
return;
|
|
26008
|
-
}
|
|
26009
26600
|
var isDetailPanelShowing = options.row.isDetailPanelShowing;
|
|
26010
26601
|
var objJSON = options.row.editingObj.toJSON();
|
|
26011
26602
|
delete objJSON.type;
|
|
@@ -26937,6 +27528,7 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
26937
27528
|
{ name: "maxLength", tab: "validation" },
|
|
26938
27529
|
{ name: "textUpdateMode", tab: "data" },
|
|
26939
27530
|
{ name: "autoGrow", tab: "layout" },
|
|
27531
|
+
{ name: "allowResize", tab: "layout" },
|
|
26940
27532
|
]
|
|
26941
27533
|
},
|
|
26942
27534
|
file: {
|
|
@@ -27451,6 +28043,7 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
27451
28043
|
{ name: "maxTextLength", tab: "question" },
|
|
27452
28044
|
{ name: "maxOthersLength", tab: "question" },
|
|
27453
28045
|
{ name: "autoGrowComment", tab: "question" },
|
|
28046
|
+
{ name: "allowResizeComment", tab: "question" },
|
|
27454
28047
|
{ name: "showPageTitles", tab: "pages" },
|
|
27455
28048
|
{ name: "showPageNumbers", tab: "pages" },
|
|
27456
28049
|
{ name: "calculatedValues", tab: "logic" },
|
|
@@ -28197,6 +28790,629 @@ var SelectionHistory = /** @class */ (function (_super) {
|
|
|
28197
28790
|
|
|
28198
28791
|
|
|
28199
28792
|
|
|
28793
|
+
/***/ }),
|
|
28794
|
+
|
|
28795
|
+
/***/ "./src/survey-elements.ts":
|
|
28796
|
+
/*!********************************!*\
|
|
28797
|
+
!*** ./src/survey-elements.ts ***!
|
|
28798
|
+
\********************************/
|
|
28799
|
+
/*! exports provided: calculateIsEdge, calculateIsSide, calculateDragOverLocation, DragDropSurveyElements */
|
|
28800
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
28801
|
+
|
|
28802
|
+
"use strict";
|
|
28803
|
+
__webpack_require__.r(__webpack_exports__);
|
|
28804
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateIsEdge", function() { return calculateIsEdge; });
|
|
28805
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateIsSide", function() { return calculateIsSide; });
|
|
28806
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateDragOverLocation", function() { return calculateDragOverLocation; });
|
|
28807
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DragDropSurveyElements", function() { return DragDropSurveyElements; });
|
|
28808
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
28809
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
28810
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
28811
|
+
|
|
28812
|
+
|
|
28813
|
+
function calculateIsEdge(dropTargetNode, clientY) {
|
|
28814
|
+
var rect = dropTargetNode.getBoundingClientRect();
|
|
28815
|
+
return clientY - rect.top <= DragDropSurveyElements.edgeHeight || rect.bottom - clientY <= DragDropSurveyElements.edgeHeight;
|
|
28816
|
+
}
|
|
28817
|
+
function calculateIsSide(dropTargetNode, clientX) {
|
|
28818
|
+
var rect = dropTargetNode.getBoundingClientRect();
|
|
28819
|
+
return clientX - rect.left <= DragDropSurveyElements.edgeHeight || rect.right - clientX <= DragDropSurveyElements.edgeHeight;
|
|
28820
|
+
}
|
|
28821
|
+
function calculateDragOverLocation(clientX, clientY, dropTargetNode) {
|
|
28822
|
+
var rect = dropTargetNode.getBoundingClientRect();
|
|
28823
|
+
var tg = rect.height / rect.width;
|
|
28824
|
+
var dx = clientX - rect.x;
|
|
28825
|
+
var dy = clientY - rect.y;
|
|
28826
|
+
if (dy >= tg * dx) {
|
|
28827
|
+
if (dy >= -tg * dx + rect.height) {
|
|
28828
|
+
return survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom;
|
|
28829
|
+
}
|
|
28830
|
+
else {
|
|
28831
|
+
return survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Left;
|
|
28832
|
+
}
|
|
28833
|
+
}
|
|
28834
|
+
else {
|
|
28835
|
+
if (dy >= -tg * dx + rect.height) {
|
|
28836
|
+
return survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Right;
|
|
28837
|
+
}
|
|
28838
|
+
else {
|
|
28839
|
+
return survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Top;
|
|
28840
|
+
}
|
|
28841
|
+
}
|
|
28842
|
+
}
|
|
28843
|
+
var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
28844
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DragDropSurveyElements, _super);
|
|
28845
|
+
function DragDropSurveyElements() {
|
|
28846
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
28847
|
+
_this.isEdge = false;
|
|
28848
|
+
_this.isSide = false;
|
|
28849
|
+
_this.prevIsEdge = null;
|
|
28850
|
+
// protected ghostSurveyElement: IElement = null;
|
|
28851
|
+
_this.dragOverIndicatorElement = null;
|
|
28852
|
+
_this.isDraggedElementSelected = false;
|
|
28853
|
+
_this.doBanDropHere = function () {
|
|
28854
|
+
_this.removeDragOverMarker(_this.dragOverIndicatorElement);
|
|
28855
|
+
_this.removeDragOverMarker(_this.dropTarget);
|
|
28856
|
+
};
|
|
28857
|
+
_this.doDrop = function () {
|
|
28858
|
+
if (!_this.dropTarget)
|
|
28859
|
+
return;
|
|
28860
|
+
var page = _this.parentElement;
|
|
28861
|
+
var dragged = _this.draggedElement;
|
|
28862
|
+
var src = _this.draggedElement;
|
|
28863
|
+
var dest = _this.dropTarget;
|
|
28864
|
+
var row = page.dragDropFindRow(dest);
|
|
28865
|
+
var targetIndex = _this.getElementIndexInPanel(dest, row);
|
|
28866
|
+
if (_this.dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Right || _this.dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom) {
|
|
28867
|
+
targetIndex++;
|
|
28868
|
+
}
|
|
28869
|
+
var elementsToSetSWNL = [];
|
|
28870
|
+
var elementsToResetSWNL = [];
|
|
28871
|
+
var srcRow = src && src.parent && src.parent.dragDropFindRow(src);
|
|
28872
|
+
if (srcRow && srcRow.elements.length > 1) {
|
|
28873
|
+
elementsToSetSWNL.push(src);
|
|
28874
|
+
if (srcRow.elements[0] === src) {
|
|
28875
|
+
elementsToSetSWNL.push(srcRow.elements[1]);
|
|
28876
|
+
}
|
|
28877
|
+
}
|
|
28878
|
+
if (!!row) {
|
|
28879
|
+
var dragOverIndicator = _this.dragOverIndicatorElement || _this.dropTarget;
|
|
28880
|
+
var dragOverLocation = dragOverIndicator.dragTypeOverMe;
|
|
28881
|
+
if (dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Left) {
|
|
28882
|
+
elementsToResetSWNL.push(dest);
|
|
28883
|
+
if (row.elements.indexOf(dest) === 0 || row.elements.indexOf(src) === 0 && row.elements.indexOf(dest) === 1) {
|
|
28884
|
+
elementsToSetSWNL.push(dragged);
|
|
28885
|
+
}
|
|
28886
|
+
else {
|
|
28887
|
+
elementsToResetSWNL.push(dragged);
|
|
28888
|
+
}
|
|
28889
|
+
}
|
|
28890
|
+
else if (dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Right) {
|
|
28891
|
+
elementsToResetSWNL.push(dragged);
|
|
28892
|
+
if (row.elements.indexOf(dest) === 0) {
|
|
28893
|
+
elementsToSetSWNL.push(dragged);
|
|
28894
|
+
}
|
|
28895
|
+
}
|
|
28896
|
+
else if (row.elements.length > 1) {
|
|
28897
|
+
elementsToSetSWNL.push(dragged);
|
|
28898
|
+
if (dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Top) {
|
|
28899
|
+
targetIndex = _this.getElementIndexInPanel(row.elements[0], row);
|
|
28900
|
+
}
|
|
28901
|
+
else if (dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom) {
|
|
28902
|
+
targetIndex = _this.getElementIndexInPanel(row.elements[row.elements.length - 1], row) + 1;
|
|
28903
|
+
}
|
|
28904
|
+
}
|
|
28905
|
+
else {
|
|
28906
|
+
elementsToSetSWNL.push(dragged);
|
|
28907
|
+
}
|
|
28908
|
+
}
|
|
28909
|
+
if (!!src && !!src.parent) {
|
|
28910
|
+
page.survey.startMovingQuestion();
|
|
28911
|
+
var isSamePanel = !!row && row.panel == src.parent;
|
|
28912
|
+
if (isSamePanel) {
|
|
28913
|
+
_this.moveElementInPanel(row.panel, src, dragged, targetIndex);
|
|
28914
|
+
row.panel.updateRows();
|
|
28915
|
+
targetIndex = -1;
|
|
28916
|
+
}
|
|
28917
|
+
else {
|
|
28918
|
+
src.parent.removeElement(src);
|
|
28919
|
+
}
|
|
28920
|
+
}
|
|
28921
|
+
if (!_this.isEdge && !_this.isSide && (dest.isPanel || dest.isPage)) {
|
|
28922
|
+
dest.addElement(dragged);
|
|
28923
|
+
dest.updateRows();
|
|
28924
|
+
}
|
|
28925
|
+
else if (!!row && targetIndex > -1) {
|
|
28926
|
+
row.panel.addElement(dragged, targetIndex);
|
|
28927
|
+
row.panel.updateRows();
|
|
28928
|
+
}
|
|
28929
|
+
page.survey.stopMovingQuestion();
|
|
28930
|
+
elementsToSetSWNL.map(function (e) { e.startWithNewLine = true; });
|
|
28931
|
+
elementsToResetSWNL.map(function (e) { e.startWithNewLine = false; });
|
|
28932
|
+
return dragged;
|
|
28933
|
+
};
|
|
28934
|
+
return _this;
|
|
28935
|
+
// protected removeGhostElementFromSurvey(): void {
|
|
28936
|
+
// const dropTarget = this.prevDropTarget || this.dropTarget;
|
|
28937
|
+
// if (!!dropTarget) {
|
|
28938
|
+
// dropTarget.dragTypeOverMe = null;
|
|
28939
|
+
// }
|
|
28940
|
+
// if (!!this.parentElement) this.parentElement.dragDropFinish(true);
|
|
28941
|
+
// }
|
|
28942
|
+
// private insertRealElementIntoSurvey() {
|
|
28943
|
+
// this.removeGhostElementFromSurvey();
|
|
28944
|
+
// const isTargetRowMultiple = this.calcTargetRowMultiple();
|
|
28945
|
+
// // ghost new page
|
|
28946
|
+
// if (this.dropTarget.isPage && (<any>this.dropTarget)["_isGhost"]) {
|
|
28947
|
+
// (<any>this.dropTarget)["_addGhostPageViewModel"]();
|
|
28948
|
+
// }
|
|
28949
|
+
// // EO ghost new page
|
|
28950
|
+
// //TODO need for dragDrop helper in library
|
|
28951
|
+
// const json = new JsonObject().toJsonObject(this.draggedElement);
|
|
28952
|
+
// json["type"] = this.draggedElement.getType();
|
|
28953
|
+
// const fakeTargetElement = this.createFakeTargetElement(
|
|
28954
|
+
// this.draggedElement.name,
|
|
28955
|
+
// json
|
|
28956
|
+
// );
|
|
28957
|
+
// //
|
|
28958
|
+
// this.parentElement.dragDropStart(
|
|
28959
|
+
// this.draggedElement,
|
|
28960
|
+
// fakeTargetElement,
|
|
28961
|
+
// DragDropSurveyElements.nestedPanelDepth
|
|
28962
|
+
// );
|
|
28963
|
+
// this.parentElement.dragDropMoveTo(
|
|
28964
|
+
// this.dropTarget,
|
|
28965
|
+
// isTargetRowMultiple ? this.isRight : this.isBottom,
|
|
28966
|
+
// this.isEdge
|
|
28967
|
+
// );
|
|
28968
|
+
// const newElement = this.parentElement.dragDropFinish();
|
|
28969
|
+
// return newElement;
|
|
28970
|
+
// }
|
|
28971
|
+
// private createFakeTargetElement(elementName: string, json: any): any {
|
|
28972
|
+
// if (!elementName || !json) return null;
|
|
28973
|
+
// var targetElement = null;
|
|
28974
|
+
// targetElement = Serializer.createClass(json["type"]);
|
|
28975
|
+
// new JsonObject().toObject(json, targetElement);
|
|
28976
|
+
// targetElement.name = elementName;
|
|
28977
|
+
// if (targetElement["setSurveyImpl"]) {
|
|
28978
|
+
// targetElement["setSurveyImpl"](this.survey);
|
|
28979
|
+
// } else {
|
|
28980
|
+
// targetElement["setData"](this.survey);
|
|
28981
|
+
// }
|
|
28982
|
+
// targetElement.renderWidth = "100%";
|
|
28983
|
+
// return targetElement;
|
|
28984
|
+
// }
|
|
28985
|
+
// private createGhostSurveyElement(isMultipleRowDrag = false): any {
|
|
28986
|
+
// let className = "sv-drag-drop-ghost";
|
|
28987
|
+
// let minWidth = "300px";
|
|
28988
|
+
// if (isMultipleRowDrag) {
|
|
28989
|
+
// minWidth = "4px";
|
|
28990
|
+
// className += " sv-drag-drop-ghost--vertical";
|
|
28991
|
+
// }
|
|
28992
|
+
// const json: any = {
|
|
28993
|
+
// type: "html",
|
|
28994
|
+
// minWidth,
|
|
28995
|
+
// name: DragDropSurveyElements.ghostSurveyElementName,
|
|
28996
|
+
// html: `<div class="${className}"></div>`,
|
|
28997
|
+
// };
|
|
28998
|
+
// const element = <any>this.createElementFromJson(json);
|
|
28999
|
+
// element.startWithNewLine = !isMultipleRowDrag;
|
|
29000
|
+
// if (isMultipleRowDrag) {
|
|
29001
|
+
// element.maxWidth = "4px";
|
|
29002
|
+
// element.renderWidth = "0px";
|
|
29003
|
+
// element.paddingRight = "0px";
|
|
29004
|
+
// element.paddingLeft = "0px";
|
|
29005
|
+
// }
|
|
29006
|
+
// return element;
|
|
29007
|
+
// }
|
|
29008
|
+
}
|
|
29009
|
+
Object.defineProperty(DragDropSurveyElements.prototype, "draggedElementType", {
|
|
29010
|
+
get: function () {
|
|
29011
|
+
return "survey-element";
|
|
29012
|
+
},
|
|
29013
|
+
enumerable: false,
|
|
29014
|
+
configurable: true
|
|
29015
|
+
});
|
|
29016
|
+
// private isRight: boolean;
|
|
29017
|
+
// protected prevIsRight: boolean;
|
|
29018
|
+
DragDropSurveyElements.prototype.startDragToolboxItem = function (event, draggedElementJson, toolboxItemTitle) {
|
|
29019
|
+
var preventSaveTargetNode = true;
|
|
29020
|
+
var draggedElement = this.createElementFromJson(draggedElementJson);
|
|
29021
|
+
draggedElement.toolboxItemTitle = toolboxItemTitle;
|
|
29022
|
+
this.startDrag(event, draggedElement, null, null, preventSaveTargetNode);
|
|
29023
|
+
};
|
|
29024
|
+
DragDropSurveyElements.prototype.startDragSurveyElement = function (event, draggedElement, isElementSelected) {
|
|
29025
|
+
this.isDraggedElementSelected = isElementSelected;
|
|
29026
|
+
this.startDrag(event, draggedElement);
|
|
29027
|
+
};
|
|
29028
|
+
DragDropSurveyElements.prototype.getShortcutText = function (draggedElement) {
|
|
29029
|
+
return draggedElement.toolboxItemTitle || _super.prototype.getShortcutText.call(this, draggedElement);
|
|
29030
|
+
};
|
|
29031
|
+
DragDropSurveyElements.prototype.createDraggedElementShortcut = function (text, draggedElementNode, event) {
|
|
29032
|
+
var draggedElementShortcut = document.createElement("div");
|
|
29033
|
+
var textSpan = document.createElement("span");
|
|
29034
|
+
textSpan.className = "svc-dragged-element-shortcut__text";
|
|
29035
|
+
textSpan.innerText = text;
|
|
29036
|
+
draggedElementShortcut.appendChild(this.createDraggedElementIcon());
|
|
29037
|
+
draggedElementShortcut.appendChild(textSpan);
|
|
29038
|
+
draggedElementShortcut.className = this.getDraggedElementClass();
|
|
29039
|
+
return draggedElementShortcut;
|
|
29040
|
+
};
|
|
29041
|
+
DragDropSurveyElements.prototype.createDraggedElementIcon = function () {
|
|
29042
|
+
var span = document.createElement("span");
|
|
29043
|
+
var type = this.draggedElement.getType();
|
|
29044
|
+
var svgString = "<svg class=\"sv-svg-icon\" role=\"img\" style=\"width: 24px; height: 24px;\"><use xlink:href=\"#icon-" + type + "\"></use></svg>";
|
|
29045
|
+
span.className = "svc-dragged-element-shortcut__icon";
|
|
29046
|
+
span.innerHTML = svgString;
|
|
29047
|
+
return span;
|
|
29048
|
+
};
|
|
29049
|
+
DragDropSurveyElements.prototype.getDraggedElementClass = function () {
|
|
29050
|
+
var result = "svc-dragged-element-shortcut";
|
|
29051
|
+
if (this.isDraggedElementSelected)
|
|
29052
|
+
result += " svc-dragged-element-shortcut--selected";
|
|
29053
|
+
return result;
|
|
29054
|
+
};
|
|
29055
|
+
DragDropSurveyElements.prototype.createElementFromJson = function (json) {
|
|
29056
|
+
var element = this.createNewElement(json);
|
|
29057
|
+
if (element["setSurveyImpl"]) {
|
|
29058
|
+
element["setSurveyImpl"](this.survey);
|
|
29059
|
+
}
|
|
29060
|
+
else {
|
|
29061
|
+
element["setData"](this.survey);
|
|
29062
|
+
}
|
|
29063
|
+
element.renderWidth = "100%";
|
|
29064
|
+
return element;
|
|
29065
|
+
};
|
|
29066
|
+
DragDropSurveyElements.prototype.createNewElement = function (json) {
|
|
29067
|
+
var newElement = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].createClass(json["type"]);
|
|
29068
|
+
new survey_core__WEBPACK_IMPORTED_MODULE_1__["JsonObject"]().toObject(json, newElement);
|
|
29069
|
+
return newElement;
|
|
29070
|
+
};
|
|
29071
|
+
DragDropSurveyElements.prototype.findDropTargetNodeByDragOverNode = function (dragOverNode) {
|
|
29072
|
+
var ghostRow = dragOverNode.closest(".svc-row--ghost");
|
|
29073
|
+
if (!!ghostRow) {
|
|
29074
|
+
var ghostDataAttrSelector = "[data-sv-drop-target-survey-element='sv-drag-drop-ghost-survey-element-name']";
|
|
29075
|
+
var ghostNode = dragOverNode.closest(ghostDataAttrSelector) || dragOverNode.querySelector(ghostDataAttrSelector);
|
|
29076
|
+
if (!!ghostNode) {
|
|
29077
|
+
return ghostNode;
|
|
29078
|
+
}
|
|
29079
|
+
}
|
|
29080
|
+
var dropTargetNode = dragOverNode.closest(this.dropTargetDataAttributeName);
|
|
29081
|
+
return dropTargetNode;
|
|
29082
|
+
};
|
|
29083
|
+
DragDropSurveyElements.prototype.getDropTargetByDataAttributeValue = function (dataAttributeValue, dropTargetNode, event) {
|
|
29084
|
+
this.removeDragOverMarker(this.dragOverIndicatorElement);
|
|
29085
|
+
this.dragOverIndicatorElement = null;
|
|
29086
|
+
if (!dataAttributeValue) {
|
|
29087
|
+
// panel dynamic
|
|
29088
|
+
var nearestDropTargetElement = dropTargetNode.parentElement.closest(this.dropTargetDataAttributeName);
|
|
29089
|
+
dataAttributeValue = this.getDataAttributeValueByNode(nearestDropTargetElement);
|
|
29090
|
+
}
|
|
29091
|
+
if (!dataAttributeValue) {
|
|
29092
|
+
throw new Error("Can't find drop target survey element name");
|
|
29093
|
+
}
|
|
29094
|
+
if (dataAttributeValue === DragDropSurveyElements.ghostSurveyElementName) {
|
|
29095
|
+
return this.prevDropTarget;
|
|
29096
|
+
}
|
|
29097
|
+
// drop to new page
|
|
29098
|
+
if (dataAttributeValue === "newGhostPage") {
|
|
29099
|
+
return DragDropSurveyElements.newGhostPage;
|
|
29100
|
+
}
|
|
29101
|
+
// drop to page
|
|
29102
|
+
var page = this.survey.getPageByName(dataAttributeValue);
|
|
29103
|
+
if (page) {
|
|
29104
|
+
if (page.elements.length !== 0) {
|
|
29105
|
+
// TODO we can't drop on not empty page directly for now
|
|
29106
|
+
return null;
|
|
29107
|
+
}
|
|
29108
|
+
return page;
|
|
29109
|
+
}
|
|
29110
|
+
// drop to question or panel
|
|
29111
|
+
var dropTarget;
|
|
29112
|
+
var dragOverElement;
|
|
29113
|
+
this.survey.pages.forEach(function (page) {
|
|
29114
|
+
var question = page.getElementByName(dataAttributeValue);
|
|
29115
|
+
if (question) {
|
|
29116
|
+
dropTarget = question;
|
|
29117
|
+
dragOverElement = question;
|
|
29118
|
+
}
|
|
29119
|
+
});
|
|
29120
|
+
// drop to paneldynamic
|
|
29121
|
+
if (dropTarget.getType() === "paneldynamic" && !this.isEdge && !this.isSide) {
|
|
29122
|
+
dropTarget = dropTarget.template;
|
|
29123
|
+
}
|
|
29124
|
+
// drop to matrix detail panel
|
|
29125
|
+
if ((dropTarget.getType() === "matrixdropdown" || dropTarget.getType() === "matrixdynamic") && dropTarget.detailPanelMode !== "none" && !this.isEdge && !this.isSide) {
|
|
29126
|
+
dropTarget = dropTarget.detailPanel;
|
|
29127
|
+
}
|
|
29128
|
+
// drop to panel
|
|
29129
|
+
else if (dropTarget.isPanel) {
|
|
29130
|
+
dropTarget = this.getPanelDropTarget(dropTargetNode, dropTarget, event);
|
|
29131
|
+
}
|
|
29132
|
+
// drop to question
|
|
29133
|
+
//question inside paneldymanic
|
|
29134
|
+
if (!dropTarget.page) {
|
|
29135
|
+
var nearestDropTargetPageElement = dropTargetNode.parentElement.closest("[data-sv-drop-target-page]");
|
|
29136
|
+
dataAttributeValue = nearestDropTargetPageElement.dataset.svDropTargetPage;
|
|
29137
|
+
var page_1 = this.survey.getPageByName(dataAttributeValue);
|
|
29138
|
+
dropTarget.__page = page_1;
|
|
29139
|
+
}
|
|
29140
|
+
this.dragOverIndicatorElement = dragOverElement;
|
|
29141
|
+
return dropTarget;
|
|
29142
|
+
// EO drop to question or panel
|
|
29143
|
+
};
|
|
29144
|
+
DragDropSurveyElements.prototype.isDropTargetValid = function (dropTarget, dropTargetNode) {
|
|
29145
|
+
if (!dropTarget)
|
|
29146
|
+
return false;
|
|
29147
|
+
if (dropTarget === this.draggedElement)
|
|
29148
|
+
return false;
|
|
29149
|
+
if (this.draggedElement.getType() === "paneldynamic" && dropTarget === this.draggedElement.template) {
|
|
29150
|
+
return false;
|
|
29151
|
+
}
|
|
29152
|
+
if (DragDropSurveyElements.restrictDragQuestionBetweenPages &&
|
|
29153
|
+
this.shouldRestricDragQuestionBetweenPages(dropTarget)) {
|
|
29154
|
+
return false;
|
|
29155
|
+
}
|
|
29156
|
+
return true;
|
|
29157
|
+
};
|
|
29158
|
+
// protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean {
|
|
29159
|
+
// return false;
|
|
29160
|
+
// }
|
|
29161
|
+
// protected calculateIsBottom(
|
|
29162
|
+
// clientY: number,
|
|
29163
|
+
// dropTargetNode?: HTMLElement
|
|
29164
|
+
// ): boolean {
|
|
29165
|
+
// // we shouldn't reculc isBottom if drag over ghost survey element
|
|
29166
|
+
// if (this.getDataAttributeValueByNode(dropTargetNode) === DragDropSurveyElements.ghostSurveyElementName) {
|
|
29167
|
+
// return this.isBottom;
|
|
29168
|
+
// }
|
|
29169
|
+
// const middle = this.calculateVerticalMiddleOfHTMLElement(dropTargetNode);
|
|
29170
|
+
// return clientY >= middle;
|
|
29171
|
+
// }
|
|
29172
|
+
// protected calculateIsRight(
|
|
29173
|
+
// clientX: number,
|
|
29174
|
+
// dropTargetNode?: HTMLElement
|
|
29175
|
+
// ): boolean {
|
|
29176
|
+
// // we shouldn't reculc isBottom if drag over ghost survey element
|
|
29177
|
+
// if (this.getDataAttributeValueByNode(dropTargetNode) === DragDropSurveyElements.ghostSurveyElementName) {
|
|
29178
|
+
// return this.isRight;
|
|
29179
|
+
// }
|
|
29180
|
+
// const middle = this.calculateHorizontalMiddleOfHTMLElement(dropTargetNode);
|
|
29181
|
+
// return clientX >= middle;
|
|
29182
|
+
// }
|
|
29183
|
+
// protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean {
|
|
29184
|
+
// // if (this.dropTarget === this.ghostSurveyElement) return true;
|
|
29185
|
+
// return (
|
|
29186
|
+
// this.dropTarget === this.prevDropTarget && newIsBottom === this.isBottom
|
|
29187
|
+
// && this.isEdge === this.prevIsEdge && this.isRight === this.prevIsRight
|
|
29188
|
+
// );
|
|
29189
|
+
// }
|
|
29190
|
+
DragDropSurveyElements.prototype.shouldRestricDragQuestionBetweenPages = function (dropTarget) {
|
|
29191
|
+
var oldPage = this.draggedElement["page"];
|
|
29192
|
+
var newPage = dropTarget.isPage ? dropTarget : dropTarget["page"];
|
|
29193
|
+
// if oldPage === null then it is drop from the toolbox
|
|
29194
|
+
return oldPage && oldPage !== newPage;
|
|
29195
|
+
};
|
|
29196
|
+
DragDropSurveyElements.prototype.getPanelDropTarget = function (HTMLElement, dropTarget, event) {
|
|
29197
|
+
var isEdge = this.isEdge;
|
|
29198
|
+
if (!isEdge && dropTarget.questions.length !== 0) {
|
|
29199
|
+
HTMLElement = this.findDeepestDropTargetChild(HTMLElement);
|
|
29200
|
+
dropTarget = this.getDropTargetByNode(HTMLElement, event);
|
|
29201
|
+
}
|
|
29202
|
+
return dropTarget;
|
|
29203
|
+
};
|
|
29204
|
+
DragDropSurveyElements.prototype.findDeepestDropTargetChild = function (parent) {
|
|
29205
|
+
var selector = this.dropTargetDataAttributeName;
|
|
29206
|
+
var result = parent;
|
|
29207
|
+
while (!!parent) {
|
|
29208
|
+
result = parent;
|
|
29209
|
+
parent = parent.querySelector(selector);
|
|
29210
|
+
}
|
|
29211
|
+
return result;
|
|
29212
|
+
};
|
|
29213
|
+
DragDropSurveyElements.prototype.dragOverCore = function (dropTarget, dragOverLocation, isEdge, isSide) {
|
|
29214
|
+
if (isEdge === void 0) { isEdge = false; }
|
|
29215
|
+
if (isSide === void 0) { isSide = false; }
|
|
29216
|
+
this.removeDragOverMarker(this.dragOverIndicatorElement);
|
|
29217
|
+
this.removeDragOverMarker(this.dropTarget);
|
|
29218
|
+
if (dropTarget === this.draggedElement) {
|
|
29219
|
+
this.allowDropHere = false;
|
|
29220
|
+
return;
|
|
29221
|
+
}
|
|
29222
|
+
this.dropTarget = dropTarget;
|
|
29223
|
+
this.dragOverLocation = dragOverLocation;
|
|
29224
|
+
this.isEdge = isEdge;
|
|
29225
|
+
this.isSide = isSide;
|
|
29226
|
+
this.parentElement = this.dropTarget.isPage
|
|
29227
|
+
? this.dropTarget
|
|
29228
|
+
: (this.dropTarget.page || this.dropTarget.__page);
|
|
29229
|
+
var dragOverIndicator = this.dragOverIndicatorElement || this.dropTarget;
|
|
29230
|
+
if (!this.isEdge && !this.isSide && this.isDragOverInsideEmptyPanel()) {
|
|
29231
|
+
dragOverIndicator.dragTypeOverMe = survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].InsideEmptyPanel;
|
|
29232
|
+
}
|
|
29233
|
+
else {
|
|
29234
|
+
var row = this.parentElement.dragDropFindRow(dragOverIndicator);
|
|
29235
|
+
if (!!row && row.elements.length > 1 && (this.dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Top || this.dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom)) {
|
|
29236
|
+
row.dragTypeOverMe = this.dragOverLocation;
|
|
29237
|
+
this.dragOverIndicatorElement = row;
|
|
29238
|
+
}
|
|
29239
|
+
else {
|
|
29240
|
+
dragOverIndicator.dragTypeOverMe = this.dragOverLocation;
|
|
29241
|
+
}
|
|
29242
|
+
}
|
|
29243
|
+
};
|
|
29244
|
+
DragDropSurveyElements.prototype.dragOver = function (event) {
|
|
29245
|
+
var dropTargetNode = this.findDropTargetNodeFromPoint(event.clientX, event.clientY);
|
|
29246
|
+
if (!dropTargetNode) {
|
|
29247
|
+
this.banDropHere();
|
|
29248
|
+
return;
|
|
29249
|
+
}
|
|
29250
|
+
this.isEdge = calculateIsEdge(dropTargetNode, event.clientY);
|
|
29251
|
+
this.isSide = calculateIsSide(dropTargetNode, event.clientX);
|
|
29252
|
+
var dropTarget = this.getDropTargetByNode(dropTargetNode, event);
|
|
29253
|
+
var isDropTargetValid = this.isDropTargetValid(dropTarget, dropTargetNode);
|
|
29254
|
+
if (!isDropTargetValid) {
|
|
29255
|
+
this.banDropHere();
|
|
29256
|
+
return;
|
|
29257
|
+
}
|
|
29258
|
+
this.allowDropHere = true;
|
|
29259
|
+
var dragOverLocation = calculateDragOverLocation(event.clientX, event.clientY, dropTargetNode);
|
|
29260
|
+
this.dragOverCore(dropTarget, dragOverLocation, this.isEdge, this.isSide);
|
|
29261
|
+
};
|
|
29262
|
+
// protected doDragOver(dropTargetNode?: HTMLElement, event?: PointerEvent): void {
|
|
29263
|
+
// this.isRight = this.calculateIsRight(event.clientX, dropTargetNode);
|
|
29264
|
+
// }
|
|
29265
|
+
// protected afterDragOver(dropTargetNode: HTMLElement, event: PointerEvent): void {
|
|
29266
|
+
// this.prevIsEdge = this.isEdge;
|
|
29267
|
+
// this.prevIsRight = this.isRight;
|
|
29268
|
+
// this.insertGhostElementIntoSurvey();
|
|
29269
|
+
// }
|
|
29270
|
+
DragDropSurveyElements.prototype.onStartDrag = function () {
|
|
29271
|
+
// this.ghostSurveyElement = this.createGhostSurveyElement();
|
|
29272
|
+
this.draggedElement.isDragMe = true;
|
|
29273
|
+
};
|
|
29274
|
+
// protected doBanDropHere = (): void => {
|
|
29275
|
+
// this.removeGhostElementFromSurvey();
|
|
29276
|
+
// this.isEdge = null;
|
|
29277
|
+
// };
|
|
29278
|
+
DragDropSurveyElements.prototype.getElementIndexInPanel = function (target, row) {
|
|
29279
|
+
if (!row)
|
|
29280
|
+
return -1;
|
|
29281
|
+
var index = row.elements.indexOf(target);
|
|
29282
|
+
if (row.index == 0)
|
|
29283
|
+
return index;
|
|
29284
|
+
var prevRow = row.panel.rows[row.index - 1];
|
|
29285
|
+
var prevElement = prevRow.elements[prevRow.elements.length - 1];
|
|
29286
|
+
return index + row.panel.elements.indexOf(prevElement) + 1;
|
|
29287
|
+
};
|
|
29288
|
+
DragDropSurveyElements.prototype.moveElementInPanel = function (panel, src, target, targetIndex) {
|
|
29289
|
+
var srcIndex = src.parent.elements.indexOf(src);
|
|
29290
|
+
if (targetIndex > srcIndex) {
|
|
29291
|
+
targetIndex--;
|
|
29292
|
+
}
|
|
29293
|
+
if (src === target && srcIndex === targetIndex) {
|
|
29294
|
+
return;
|
|
29295
|
+
}
|
|
29296
|
+
panel.removeElement(src);
|
|
29297
|
+
panel.addElement(target, targetIndex);
|
|
29298
|
+
};
|
|
29299
|
+
// protected doDrop = (): any => {
|
|
29300
|
+
// if (this.dropTarget) {
|
|
29301
|
+
// (<HTMLElement>document.activeElement).blur();
|
|
29302
|
+
// (<HTMLElement>settings.environment.root.activeElement).blur();
|
|
29303
|
+
// return this.insertRealElementIntoSurvey();
|
|
29304
|
+
// }
|
|
29305
|
+
// return null;
|
|
29306
|
+
// };
|
|
29307
|
+
DragDropSurveyElements.prototype.removeDragOverMarker = function (dropTarget) {
|
|
29308
|
+
var _a;
|
|
29309
|
+
if (!!dropTarget) {
|
|
29310
|
+
dropTarget.dragTypeOverMe = null;
|
|
29311
|
+
}
|
|
29312
|
+
var row = (_a = this.parentElement) === null || _a === void 0 ? void 0 : _a.dragDropFindRow(dropTarget);
|
|
29313
|
+
if (!!row) {
|
|
29314
|
+
row.dragTypeOverMe = null;
|
|
29315
|
+
}
|
|
29316
|
+
};
|
|
29317
|
+
DragDropSurveyElements.prototype.clear = function () {
|
|
29318
|
+
this.isEdge = null;
|
|
29319
|
+
this.isSide = null;
|
|
29320
|
+
this.removeDragOverMarker(this.prevDropTarget);
|
|
29321
|
+
this.removeDragOverMarker(this.dropTarget);
|
|
29322
|
+
this.removeDragOverMarker(this.dragOverIndicatorElement);
|
|
29323
|
+
if (!!this.draggedElement) {
|
|
29324
|
+
this.draggedElement.isDragMe = false;
|
|
29325
|
+
}
|
|
29326
|
+
_super.prototype.clear.call(this);
|
|
29327
|
+
};
|
|
29328
|
+
// protected doClear = (): void => {
|
|
29329
|
+
// // this.removeGhostElementFromSurvey();
|
|
29330
|
+
// this.isEdge = null;
|
|
29331
|
+
// this.isSide = null;
|
|
29332
|
+
// // this.ghostSurveyElement = null;
|
|
29333
|
+
// this.removeDragOverMarker(this.prevDropTarget);
|
|
29334
|
+
// this.removeDragOverMarker(this.dropTarget);
|
|
29335
|
+
// this.removeDragOverMarker(this.dragOverIndicatorElement);
|
|
29336
|
+
// if (!!this.draggedElement) {
|
|
29337
|
+
// this.draggedElement.isDragMe = false;
|
|
29338
|
+
// }
|
|
29339
|
+
// // this.isRight = null;
|
|
29340
|
+
// };
|
|
29341
|
+
// protected insertGhostElementIntoSurvey(): boolean {
|
|
29342
|
+
// this.removeGhostElementFromSurvey();
|
|
29343
|
+
// let isTargetRowMultiple = this.calcTargetRowMultiple();
|
|
29344
|
+
// this.ghostSurveyElement = this.createGhostSurveyElement(isTargetRowMultiple);
|
|
29345
|
+
// this.ghostSurveyElement.name =
|
|
29346
|
+
// DragDropSurveyElements.ghostSurveyElementName; // TODO why do we need setup it manually see createGhostSurveyElement method
|
|
29347
|
+
// this.parentElement = this.dropTarget.isPage
|
|
29348
|
+
// ? this.dropTarget
|
|
29349
|
+
// : ((<any>this.dropTarget).page || (<any>this.dropTarget).__page);
|
|
29350
|
+
// if (this.isDragOverInsideEmptyPanel()) {
|
|
29351
|
+
// this.dropTarget.dragTypeOverMe = DragTypeOverMeEnum.InsideEmptyPanel;
|
|
29352
|
+
// return;
|
|
29353
|
+
// }
|
|
29354
|
+
// if (!this.isEdge && isTargetRowMultiple) {
|
|
29355
|
+
// this.dropTarget.dragTypeOverMe = this.isRight ?
|
|
29356
|
+
// DragTypeOverMeEnum.MultilineRight :
|
|
29357
|
+
// DragTypeOverMeEnum.MultilineLeft;
|
|
29358
|
+
// return;
|
|
29359
|
+
// }
|
|
29360
|
+
// this.parentElement.dragDropStart(
|
|
29361
|
+
// this.draggedElement,
|
|
29362
|
+
// this.ghostSurveyElement,
|
|
29363
|
+
// DragDropSurveyElements.nestedPanelDepth
|
|
29364
|
+
// );
|
|
29365
|
+
// const result = this.parentElement.dragDropMoveTo(
|
|
29366
|
+
// this.dropTarget,
|
|
29367
|
+
// isTargetRowMultiple ? this.isRight : this.isBottom,
|
|
29368
|
+
// this.isEdge
|
|
29369
|
+
// );
|
|
29370
|
+
// return result;
|
|
29371
|
+
// }
|
|
29372
|
+
// private calcTargetRowMultiple() {
|
|
29373
|
+
// const targetParent = this.getTargetParent(this.dropTarget);
|
|
29374
|
+
// let targetRow: any = this.getTargetRow(this.dropTarget);
|
|
29375
|
+
// const isTargetRowMultiple = targetRow && targetRow.elements.length > 1;
|
|
29376
|
+
// const isTemplatePanelInPanelDynamic = targetParent.isPanel && !targetParent.name;
|
|
29377
|
+
// if (this.isEdge && isTargetRowMultiple && !isTemplatePanelInPanelDynamic) {
|
|
29378
|
+
// targetParent.__page = this.dropTarget.page || this.dropTarget.__page;
|
|
29379
|
+
// this.dropTarget = targetParent;
|
|
29380
|
+
// return false;
|
|
29381
|
+
// }
|
|
29382
|
+
// return isTargetRowMultiple;
|
|
29383
|
+
// }
|
|
29384
|
+
DragDropSurveyElements.prototype.getTargetParent = function (dropTarget) {
|
|
29385
|
+
var targetParent = dropTarget.isPage || dropTarget.isPanel ? dropTarget : dropTarget.parent;
|
|
29386
|
+
if (dropTarget.getType() === "paneldynamic") {
|
|
29387
|
+
targetParent = dropTarget.templateValue;
|
|
29388
|
+
}
|
|
29389
|
+
return targetParent;
|
|
29390
|
+
};
|
|
29391
|
+
DragDropSurveyElements.prototype.getTargetRow = function (dropTarget) {
|
|
29392
|
+
var targetParent = this.getTargetParent(dropTarget);
|
|
29393
|
+
var targetRow;
|
|
29394
|
+
targetParent.rows.forEach(function (row) {
|
|
29395
|
+
if (row.elements.indexOf(dropTarget) !== -1) {
|
|
29396
|
+
targetRow = row;
|
|
29397
|
+
}
|
|
29398
|
+
});
|
|
29399
|
+
return targetRow;
|
|
29400
|
+
};
|
|
29401
|
+
DragDropSurveyElements.prototype.isDragOverInsideEmptyPanel = function () {
|
|
29402
|
+
var isEmptyPanel = this.dropTarget.isPanel && this.dropTarget.questions.length === 0;
|
|
29403
|
+
var isDragOverInside = !this.isEdge && !this.isSide;
|
|
29404
|
+
return isEmptyPanel && isDragOverInside;
|
|
29405
|
+
};
|
|
29406
|
+
DragDropSurveyElements.newGhostPage = null;
|
|
29407
|
+
DragDropSurveyElements.restrictDragQuestionBetweenPages = false;
|
|
29408
|
+
DragDropSurveyElements.edgeHeight = 30;
|
|
29409
|
+
DragDropSurveyElements.nestedPanelDepth = -1;
|
|
29410
|
+
DragDropSurveyElements.ghostSurveyElementName = "sv-drag-drop-ghost-survey-element-name"; // before renaming use globa search (we have also css selectors)
|
|
29411
|
+
return DragDropSurveyElements;
|
|
29412
|
+
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["DragDropCore"]));
|
|
29413
|
+
|
|
29414
|
+
|
|
29415
|
+
|
|
28200
29416
|
/***/ }),
|
|
28201
29417
|
|
|
28202
29418
|
/***/ "./src/survey-helper.ts":
|
|
@@ -29785,7 +31001,7 @@ var ResizeManager = /** @class */ (function () {
|
|
|
29785
31001
|
/*!****************************!*\
|
|
29786
31002
|
!*** ./src/utils/utils.ts ***!
|
|
29787
31003
|
\****************************/
|
|
29788
|
-
/*! exports provided: getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, imageMimeTypes, getAcceptedTypesByContentMode, getQuestionFromObj */
|
|
31004
|
+
/*! exports provided: getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, imageMimeTypes, getAcceptedTypesByContentMode, getQuestionFromObj, ingectAlpha, convertRgbaToString, parseRgbaFromString, parseColor, HSBToRGB, RGBToHSB, assign, ColorCalculator */
|
|
29789
31005
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29790
31006
|
|
|
29791
31007
|
"use strict";
|
|
@@ -29811,6 +31027,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29811
31027
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "imageMimeTypes", function() { return imageMimeTypes; });
|
|
29812
31028
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAcceptedTypesByContentMode", function() { return getAcceptedTypesByContentMode; });
|
|
29813
31029
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getQuestionFromObj", function() { return getQuestionFromObj; });
|
|
31030
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ingectAlpha", function() { return ingectAlpha; });
|
|
31031
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertRgbaToString", function() { return convertRgbaToString; });
|
|
31032
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseRgbaFromString", function() { return parseRgbaFromString; });
|
|
31033
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseColor", function() { return parseColor; });
|
|
31034
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HSBToRGB", function() { return HSBToRGB; });
|
|
31035
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RGBToHSB", function() { return RGBToHSB; });
|
|
31036
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assign", function() { return assign; });
|
|
31037
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorCalculator", function() { return ColorCalculator; });
|
|
29814
31038
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
29815
31039
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
29816
31040
|
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../creator-settings */ "./src/creator-settings.ts");
|
|
@@ -30132,6 +31356,105 @@ function getAcceptedTypesByContentMode(contentMode) {
|
|
|
30132
31356
|
function getQuestionFromObj(obj) {
|
|
30133
31357
|
return (obj instanceof survey_core__WEBPACK_IMPORTED_MODULE_0__["MatrixDropdownColumn"]) ? obj.templateQuestion : obj;
|
|
30134
31358
|
}
|
|
31359
|
+
function ingectAlpha(baseColor, alpha) {
|
|
31360
|
+
if (!!baseColor && alpha !== undefined) {
|
|
31361
|
+
var r = parseInt(baseColor.slice(1, 3), 16);
|
|
31362
|
+
var g = parseInt(baseColor.slice(3, 5), 16);
|
|
31363
|
+
var b = parseInt(baseColor.slice(5, 7), 16);
|
|
31364
|
+
return "rgba(" + r + ", " + g + ", " + b + ", " + alpha + ")";
|
|
31365
|
+
}
|
|
31366
|
+
}
|
|
31367
|
+
function convertRgbaToString(rgbValues, alpha) {
|
|
31368
|
+
return "rgba(" + rgbValues[0] + ", " + rgbValues[1] + ", " + rgbValues[2] + ", " + alpha + ")";
|
|
31369
|
+
}
|
|
31370
|
+
function parseRgbaFromString(value) {
|
|
31371
|
+
var matchRgb = value.match(/\((.*)\)/);
|
|
31372
|
+
if (matchRgb) {
|
|
31373
|
+
return matchRgb[1].split(",").map(function (i) { return parseFloat(i); });
|
|
31374
|
+
}
|
|
31375
|
+
else {
|
|
31376
|
+
return [];
|
|
31377
|
+
}
|
|
31378
|
+
}
|
|
31379
|
+
function parseColor(value) {
|
|
31380
|
+
var rgbValues = parseRgbaFromString(value);
|
|
31381
|
+
if (rgbValues.length !== 0) {
|
|
31382
|
+
var opacity = 1;
|
|
31383
|
+
if (rgbValues.length == 4) {
|
|
31384
|
+
opacity = rgbValues.pop();
|
|
31385
|
+
}
|
|
31386
|
+
var color = rgbValues.reduce(function (res, color) {
|
|
31387
|
+
var hex = color.toString(16);
|
|
31388
|
+
return res + (hex.length == 1 ? "0" + hex : hex);
|
|
31389
|
+
}, "#");
|
|
31390
|
+
return { color: color, opacity: opacity * 100 };
|
|
31391
|
+
}
|
|
31392
|
+
else {
|
|
31393
|
+
return { color: value, opacity: 100 };
|
|
31394
|
+
}
|
|
31395
|
+
}
|
|
31396
|
+
function HSBToRGB(h, s, b) {
|
|
31397
|
+
s /= 100;
|
|
31398
|
+
b /= 100;
|
|
31399
|
+
var k = function (n) { return (n + h / 60) % 6; };
|
|
31400
|
+
var f = function (n) { return b * (1 - s * Math.max(0, Math.min(k(n), 4 - k(n), 1))); };
|
|
31401
|
+
return [Math.round(255 * f(5)), Math.round(255 * f(3)), Math.round(255 * f(1))];
|
|
31402
|
+
}
|
|
31403
|
+
function RGBToHSB(r, g, b) {
|
|
31404
|
+
r /= 255;
|
|
31405
|
+
g /= 255;
|
|
31406
|
+
b /= 255;
|
|
31407
|
+
var v = Math.max(r, g, b), n = v - Math.min(r, g, b);
|
|
31408
|
+
var h = n === 0 ? 0 : n && v === r ? (g - b) / n : v === g ? 2 + (b - r) / n : 4 + (r - g) / n;
|
|
31409
|
+
return [60 * (h < 0 ? h + 6 : h), v && (n / v) * 100, v * 100];
|
|
31410
|
+
}
|
|
31411
|
+
function assign() {
|
|
31412
|
+
var objects = [];
|
|
31413
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
31414
|
+
objects[_i] = arguments[_i];
|
|
31415
|
+
}
|
|
31416
|
+
if (objects.length <= 1) {
|
|
31417
|
+
return;
|
|
31418
|
+
}
|
|
31419
|
+
if (objects.length == 2) {
|
|
31420
|
+
Object.keys(objects[1]).forEach(function (key) { return objects[0][key] = objects[1][key]; });
|
|
31421
|
+
return;
|
|
31422
|
+
}
|
|
31423
|
+
for (var i = 1; i < objects.length; i++) {
|
|
31424
|
+
assign(objects[0], objects[i]);
|
|
31425
|
+
}
|
|
31426
|
+
}
|
|
31427
|
+
var ColorCalculator = /** @class */ (function () {
|
|
31428
|
+
function ColorCalculator() {
|
|
31429
|
+
this.colorSettings = { baseColorAlpha: 1, darkColorAlpha: 1, lightColorAlpha: 1, deltaDarkColor: 0, deltaLightColor: 0, newColorLight: "", newColorDark: "" };
|
|
31430
|
+
}
|
|
31431
|
+
ColorCalculator.prototype.initialize = function (baseColor, lightColor, darkColor) {
|
|
31432
|
+
var primaryColorRgba = parseRgbaFromString(baseColor);
|
|
31433
|
+
var primaryColorDarkRgba = parseRgbaFromString(darkColor);
|
|
31434
|
+
var primaryColorLightRgba = parseRgbaFromString(lightColor);
|
|
31435
|
+
this.colorSettings.baseColorAlpha = primaryColorRgba[3];
|
|
31436
|
+
this.colorSettings.darkColorAlpha = primaryColorDarkRgba[3];
|
|
31437
|
+
this.colorSettings.lightColorAlpha = primaryColorLightRgba[3];
|
|
31438
|
+
var primaryColorHSB = RGBToHSB(primaryColorRgba[0], primaryColorRgba[1], primaryColorRgba[2]);
|
|
31439
|
+
var primaryColorDarkHSB = RGBToHSB(primaryColorDarkRgba[0], primaryColorDarkRgba[1], primaryColorDarkRgba[2]);
|
|
31440
|
+
var primaryColorLightHSB = RGBToHSB(primaryColorLightRgba[0], primaryColorLightRgba[1], primaryColorLightRgba[2]);
|
|
31441
|
+
this.colorSettings.deltaDarkColor = primaryColorHSB[2] - primaryColorDarkHSB[2];
|
|
31442
|
+
this.colorSettings.deltaLightColor = primaryColorHSB[2] - primaryColorLightHSB[2];
|
|
31443
|
+
};
|
|
31444
|
+
ColorCalculator.prototype.calculateColors = function (newColor) {
|
|
31445
|
+
var newColorRbg = parseRgbaFromString(newColor);
|
|
31446
|
+
if (newColorRbg.length === 0) {
|
|
31447
|
+
newColorRbg = parseRgbaFromString(ingectAlpha(newColor, 1));
|
|
31448
|
+
}
|
|
31449
|
+
var newColorHsb = RGBToHSB(newColorRbg[0], newColorRbg[1], newColorRbg[2]);
|
|
31450
|
+
var newPrimaryColorDarkRGB = HSBToRGB(newColorHsb[0], newColorHsb[1], newColorHsb[2] - this.colorSettings.deltaDarkColor);
|
|
31451
|
+
var newPrimaryColorLightRGB = HSBToRGB(newColorHsb[0], newColorHsb[1], newColorHsb[2] - this.colorSettings.deltaLightColor);
|
|
31452
|
+
this.colorSettings.newColorLight = convertRgbaToString(newPrimaryColorLightRGB, this.colorSettings.lightColorAlpha);
|
|
31453
|
+
this.colorSettings.newColorDark = convertRgbaToString(newPrimaryColorDarkRGB, this.colorSettings.darkColorAlpha);
|
|
31454
|
+
};
|
|
31455
|
+
return ColorCalculator;
|
|
31456
|
+
}());
|
|
31457
|
+
|
|
30135
31458
|
|
|
30136
31459
|
|
|
30137
31460
|
/***/ }),
|