survey-react-ui 2.0.4 → 2.0.6
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/fesm/survey-react-ui.mjs +259 -205
- package/fesm/survey-react-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-react-ui.js +307 -156
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +1 -1
- package/survey-react-ui.min.js.LICENSE.txt +1 -1
- package/typings/src/components/breadcrumbs/breadcrumbs.d.ts +15 -0
- package/typings/src/reactquestion.d.ts +3 -1
- package/typings/src/reactquestion_file.d.ts +0 -2
- package/typings/src/reactquestion_matrixdynamic.d.ts +6 -1
- package/typings/src/reactquestion_paneldynamic.d.ts +8 -6
- package/typings/src/reactquestion_rating.d.ts +1 -1
- package/typings/src/reactquestion_singleinputsummary.d.ts +12 -0
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.0.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.0.6
|
|
3
3
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28
28
|
/* harmony export */ icons: () => (/* binding */ iconsV1)
|
|
29
29
|
/* harmony export */ });
|
|
30
30
|
/*!
|
|
31
|
-
* surveyjs - Survey JavaScript library v2.0.
|
|
31
|
+
* surveyjs - Survey JavaScript library v2.0.6
|
|
32
32
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
33
33
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
34
34
|
*/
|
|
@@ -58,9 +58,11 @@ var iconsV1 = {
|
|
|
58
58
|
"close-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M13.4101 12L20.7001 4.71C21.0901 4.32 21.0901 3.69 20.7001 3.3C20.3101 2.91 19.6801 2.91 19.2901 3.3L12.0001 10.59L4.71006 3.29C4.32006 2.9 3.68006 2.9 3.29006 3.29C2.90006 3.68 2.90006 4.32 3.29006 4.71L10.5801 12L3.29006 19.29C2.90006 19.68 2.90006 20.31 3.29006 20.7C3.49006 20.9 3.74006 20.99 4.00006 20.99C4.26006 20.99 4.51006 20.89 4.71006 20.7L12.0001 13.41L19.2901 20.7C19.4901 20.9 19.7401 20.99 20.0001 20.99C20.2601 20.99 20.5101 20.89 20.7101 20.7C21.1001 20.31 21.1001 19.68 20.7101 19.29L13.4201 12H13.4101Z\"></path></svg>",
|
|
59
59
|
"collapse-16x16": "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M2 6L3 5L8 10L13 5L14 6L8 12L2 6Z\"></path></svg>",
|
|
60
60
|
"collapsedetails-16x16": "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M13 7H3V9H13V7Z\"></path></svg>",
|
|
61
|
+
"delete-16x16": "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M15 2H14H11V1C11 0.4 10.6 0 10 0H7C6.4 0 6 0.4 6 1V2H3H2V4H3V14C3 15.1 3.9 16 5 16H12C13.1 16 14 15.1 14 14V4H15V2ZM7 1H10V2H7V1ZM12 14H5V4H12V14ZM7 13H6V5H7V13ZM9 13H8V5H9V13ZM11 13H10V5H11V13Z\"></path></svg>",
|
|
61
62
|
"delete-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z\"></path></svg>",
|
|
62
63
|
"drag-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16ZM9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16Z\"></path></svg>",
|
|
63
64
|
"draghorizontal-24x16": "<svg viewBox=\"0 0 24 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M18 9C19.1 9 20 9.9 20 11C20 12.1 19.1 13 18 13C16.9 13 16 12.1 16 11C16 9.9 16.9 9 18 9ZM20 5C20 3.9 19.1 3 18 3C16.9 3 16 3.9 16 5C16 6.1 16.9 7 18 7C19.1 7 20 6.1 20 5ZM14 11C14 9.9 13.1 9 12 9C10.9 9 10 9.9 10 11C10 12.1 10.9 13 12 13C13.1 13 14 12.1 14 11ZM14 5C14 3.9 13.1 3 12 3C10.9 3 10 3.9 10 5C10 6.1 10.9 7 12 7C13.1 7 14 6.1 14 5ZM8 11C8 9.9 7.1 9 6 9C4.9 9 4 9.9 4 11C4 12.1 4.9 13 6 13C7.1 13 8 12.1 8 11ZM8 5C8 3.9 7.1 3 6 3C4.9 3 4 3.9 4 5C4 6.1 4.9 7 6 7C7.1 7 8 6.1 8 5Z\"></path></svg>",
|
|
65
|
+
"editsmall-16x16": "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M13.59 4.5884L11.42 2.4184C11.03 2.0284 10.52 1.8284 10.01 1.8284C9.5 1.8284 8.99 2.0284 8.6 2.4184L3.76 7.2384C2.63 8.3684 2 9.8884 2 11.4784V12.9884C2 13.5384 2.45 13.9884 3 13.9884H4.51C6.1 13.9884 7.63 13.3584 8.75 12.2284L13.58 7.3984C14.36 6.6184 14.36 5.3484 13.58 4.5684L13.59 4.5884ZM7.35 10.8284C6.59 11.5884 5.59 11.9984 4.52 11.9984H4.01V11.4884C4.01 10.4184 4.43 9.4184 5.18 8.6584L7.72 6.1184L9.89 8.2884L7.35 10.8284ZM11.3 6.8784L9.13 4.7084L10.01 3.8284L12.18 5.9984L11.3 6.8784Z\"></path></svg>",
|
|
64
66
|
"expand-16x16": "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M6 14L5 13L10 8L5 3L6 2L12 8L6 14Z\"></path></svg>",
|
|
65
67
|
"expanddetails-16x16": "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z\"></path></svg>",
|
|
66
68
|
"file-72x72": "<svg viewBox=\"0 0 72 72\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z\"></path></svg>",
|
|
@@ -112,7 +114,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
112
114
|
/* harmony export */ icons: () => (/* binding */ iconsV2)
|
|
113
115
|
/* harmony export */ });
|
|
114
116
|
/*!
|
|
115
|
-
* surveyjs - Survey JavaScript library v2.0.
|
|
117
|
+
* surveyjs - Survey JavaScript library v2.0.6
|
|
116
118
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
117
119
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
118
120
|
*/
|
|
@@ -142,9 +144,11 @@ var iconsV2 = {
|
|
|
142
144
|
"close-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M19.5275 18.4675C19.8175 18.7575 19.8175 19.2375 19.5275 19.5275C19.3775 19.6775 19.1875 19.7475 18.9975 19.7475C18.8075 19.7475 18.6175 19.6775 18.4675 19.5275L11.9975 13.0575L5.5275 19.5275C5.3775 19.6775 5.1875 19.7475 4.9975 19.7475C4.8075 19.7475 4.6175 19.6775 4.4675 19.5275C4.1775 19.2375 4.1775 18.7575 4.4675 18.4675L10.9375 11.9975L4.4675 5.5275C4.1775 5.2375 4.1775 4.7575 4.4675 4.4675C4.7575 4.1775 5.2375 4.1775 5.5275 4.4675L11.9975 10.9375L18.4675 4.4675C18.7575 4.1775 19.2375 4.1775 19.5275 4.4675C19.8175 4.7575 19.8175 5.2375 19.5275 5.5275L13.0575 11.9975L19.5275 18.4675Z\"></path></svg>",
|
|
143
145
|
"collapse-16x16": "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z\"></path></svg>",
|
|
144
146
|
"collapsedetails-16x16": "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z\"></path></svg>",
|
|
147
|
+
"delete-16x16": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><path d=\"M13 3.25H10.75V3C10.75 2.04 9.96 1.25 9 1.25H7C6.04 1.25 5.25 2.04 5.25 3V3.25H3C2.59 3.25 2.25 3.59 2.25 4C2.25 4.41 2.59 4.75 3 4.75H3.25V13C3.25 13.96 4.04 14.75 5 14.75H11C11.96 14.75 12.75 13.96 12.75 13V4.75H13C13.41 4.75 13.75 4.41 13.75 4C13.75 3.59 13.41 3.25 13 3.25ZM6.75 3C6.75 2.86 6.86 2.75 7 2.75H9C9.14 2.75 9.25 2.86 9.25 3V3.25H6.75V3ZM11.25 13C11.25 13.14 11.14 13.25 11 13.25H5C4.86 13.25 4.75 13.14 4.75 13V4.75H11.25V13ZM9.25 6.25C9.66 6.25 10 6.59 10 7V11C10 11.41 9.66 11.75 9.25 11.75C8.84 11.75 8.5 11.41 8.5 11V7C8.5 6.59 8.84 6.25 9.25 6.25ZM7.5 7V11C7.5 11.41 7.16 11.75 6.75 11.75C6.34 11.75 6 11.41 6 11V7C6 6.59 6.34 6.25 6.75 6.25C7.16 6.25 7.5 6.59 7.5 7Z\"></path></svg>",
|
|
145
148
|
"delete-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12.75 9V17C12.75 17.41 12.41 17.75 12 17.75C11.59 17.75 11.25 17.41 11.25 17V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9ZM14.25 9V17C14.25 17.41 14.59 17.75 15 17.75C15.41 17.75 15.75 17.41 15.75 17V9C15.75 8.59 15.41 8.25 15 8.25C14.59 8.25 14.25 8.59 14.25 9ZM9 8.25C8.59 8.25 8.25 8.59 8.25 9V17C8.25 17.41 8.59 17.75 9 17.75C9.41 17.75 9.75 17.41 9.75 17V9C9.75 8.59 9.41 8.25 9 8.25ZM20.75 6C20.75 6.41 20.41 6.75 20 6.75H18.75V18C18.75 19.52 17.52 20.75 16 20.75H8C6.48 20.75 5.25 19.52 5.25 18V6.75H4C3.59 6.75 3.25 6.41 3.25 6C3.25 5.59 3.59 5.25 4 5.25H8.25V4C8.25 3.04 9.04 2.25 10 2.25H14C14.96 2.25 15.75 3.04 15.75 4V5.25H20C20.41 5.25 20.75 5.59 20.75 6ZM9.75 5.25H14.25V4C14.25 3.86 14.14 3.75 14 3.75H10C9.86 3.75 9.75 3.86 9.75 4V5.25ZM17.25 6.75H6.75V18C6.75 18.69 7.31 19.25 8 19.25H16C16.69 19.25 17.25 18.69 17.25 18V6.75Z\"></path></svg>",
|
|
146
149
|
"drag-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M14.5 8.75C15.19 8.75 15.75 8.19 15.75 7.5C15.75 6.81 15.19 6.25 14.5 6.25C13.81 6.25 13.25 6.81 13.25 7.5C13.25 8.19 13.81 8.75 14.5 8.75ZM14.5 7.25C14.64 7.25 14.75 7.36 14.75 7.5C14.75 7.78 14.25 7.78 14.25 7.5C14.25 7.36 14.36 7.25 14.5 7.25ZM9.5 6.25C8.81 6.25 8.25 6.81 8.25 7.5C8.25 8.19 8.81 8.75 9.5 8.75C10.19 8.75 10.75 8.19 10.75 7.5C10.75 6.81 10.19 6.25 9.5 6.25ZM9.25 7.5C9.25 7.36 9.36 7.25 9.5 7.25C9.64 7.25 9.75 7.36 9.75 7.5C9.75 7.78 9.25 7.78 9.25 7.5ZM14.5 11.25C13.81 11.25 13.25 11.81 13.25 12.5C13.25 13.19 13.81 13.75 14.5 13.75C15.19 13.75 15.75 13.19 15.75 12.5C15.75 11.81 15.19 11.25 14.5 11.25ZM14.25 12.5C14.25 12.36 14.36 12.25 14.5 12.25C14.64 12.25 14.75 12.36 14.75 12.5C14.75 12.78 14.25 12.78 14.25 12.5ZM9.5 11.25C8.81 11.25 8.25 11.81 8.25 12.5C8.25 13.19 8.81 13.75 9.5 13.75C10.19 13.75 10.75 13.19 10.75 12.5C10.75 11.81 10.19 11.25 9.5 11.25ZM9.25 12.5C9.25 12.36 9.36 12.25 9.5 12.25C9.64 12.25 9.75 12.36 9.75 12.5C9.75 12.78 9.25 12.78 9.25 12.5ZM14.5 16.25C13.81 16.25 13.25 16.81 13.25 17.5C13.25 18.19 13.81 18.75 14.5 18.75C15.19 18.75 15.75 18.19 15.75 17.5C15.75 16.81 15.19 16.25 14.5 16.25ZM14.25 17.5C14.25 17.36 14.36 17.25 14.5 17.25C14.64 17.25 14.75 17.36 14.75 17.5C14.75 17.78 14.25 17.78 14.25 17.5ZM9.5 16.25C8.81 16.25 8.25 16.81 8.25 17.5C8.25 18.19 8.81 18.75 9.5 18.75C10.19 18.75 10.75 18.19 10.75 17.5C10.75 16.81 10.19 16.25 9.5 16.25ZM9.25 17.5C9.25 17.36 9.36 17.25 9.5 17.25C9.64 17.25 9.75 17.36 9.75 17.5C9.75 17.78 9.25 17.78 9.25 17.5Z\"></path></svg>",
|
|
147
150
|
"draghorizontal-24x16": "<svg viewBox=\"0 0 24 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M17.5 9.25C16.81 9.25 16.25 9.81 16.25 10.5C16.25 11.19 16.81 11.75 17.5 11.75C18.19 11.75 18.75 11.19 18.75 10.5C18.75 9.81 18.19 9.25 17.5 9.25ZM17.25 10.5C17.25 10.36 17.36 10.25 17.5 10.25C17.64 10.25 17.75 10.36 17.75 10.5C17.75 10.78 17.25 10.78 17.25 10.5ZM17.5 6.75C18.19 6.75 18.75 6.19 18.75 5.5C18.75 4.81 18.19 4.25 17.5 4.25C16.81 4.25 16.25 4.81 16.25 5.5C16.25 6.19 16.81 6.75 17.5 6.75ZM17.5 5.25C17.64 5.25 17.75 5.36 17.75 5.5C17.75 5.78 17.25 5.78 17.25 5.5C17.25 5.36 17.36 5.25 17.5 5.25ZM12.5 9.25C11.81 9.25 11.25 9.81 11.25 10.5C11.25 11.19 11.81 11.75 12.5 11.75C13.19 11.75 13.75 11.19 13.75 10.5C13.75 9.81 13.19 9.25 12.5 9.25ZM12.25 10.5C12.25 10.36 12.36 10.25 12.5 10.25C12.64 10.25 12.75 10.36 12.75 10.5C12.75 10.78 12.25 10.78 12.25 10.5ZM12.5 4.25C11.81 4.25 11.25 4.81 11.25 5.5C11.25 6.19 11.81 6.75 12.5 6.75C13.19 6.75 13.75 6.19 13.75 5.5C13.75 4.81 13.19 4.25 12.5 4.25ZM12.25 5.5C12.25 5.36 12.36 5.25 12.5 5.25C12.64 5.25 12.75 5.36 12.75 5.5C12.75 5.78 12.25 5.78 12.25 5.5ZM7.5 9.25C6.81 9.25 6.25 9.81 6.25 10.5C6.25 11.19 6.81 11.75 7.5 11.75C8.19 11.75 8.75 11.19 8.75 10.5C8.75 9.81 8.19 9.25 7.5 9.25ZM7.25 10.5C7.25 10.36 7.36 10.25 7.5 10.25C7.64 10.25 7.75 10.36 7.75 10.5C7.75 10.78 7.25 10.78 7.25 10.5ZM7.5 4.25C6.81 4.25 6.25 4.81 6.25 5.5C6.25 6.19 6.81 6.75 7.5 6.75C8.19 6.75 8.75 6.19 8.75 5.5C8.75 4.81 8.19 4.25 7.5 4.25ZM7.25 5.5C7.25 5.36 7.36 5.25 7.5 5.25C7.64 5.25 7.75 5.36 7.75 5.5C7.75 5.78 7.25 5.78 7.25 5.5Z\"></path></svg>",
|
|
151
|
+
"editsmall-16x16": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><path d=\"M13.1209 3.05249L12.9509 2.88249C11.8809 1.81249 10.1309 1.81249 9.06089 2.88249L3.47089 8.46249C3.37089 8.56249 3.31089 8.68249 3.27089 8.81249L2.27089 12.8125C2.21089 13.0625 2.28089 13.3425 2.47089 13.5225C2.61089 13.6625 2.80089 13.7425 3.00089 13.7425C3.06089 13.7425 3.12089 13.7425 3.18089 13.7225L7.18089 12.7225C7.31089 12.6925 7.43089 12.6225 7.53089 12.5225L13.1209 6.93249C14.1909 5.86249 14.1909 4.11249 13.1209 3.04249V3.05249ZM6.62089 11.3125L4.04089 11.9625L4.69089 9.38249L8.01089 6.06249L9.95089 8.00249L6.63089 11.3225L6.62089 11.3125ZM12.0609 5.87249L11.0009 6.93249L9.06089 4.99249L10.1209 3.93249C10.6109 3.44249 11.4009 3.44249 11.8909 3.93249L12.0609 4.10249C12.5509 4.59249 12.5509 5.38249 12.0609 5.87249Z\"></path></svg>",
|
|
148
152
|
"expand-16x16": "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z\"></path></svg>",
|
|
149
153
|
"expanddetails-16x16": "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z\"></path></svg>",
|
|
150
154
|
"file-72x72": "<svg viewBox=\"0 0 72 72\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z\"></path></svg>",
|
|
@@ -722,7 +726,7 @@ var SurveyQuestionBoolean = /** @class */ (function (_super) {
|
|
|
722
726
|
var cssClasses = this.question.cssClasses;
|
|
723
727
|
var itemClass = this.question.getItemCss();
|
|
724
728
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.root, onKeyDown: this.handleOnKeyDown },
|
|
725
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: itemClass
|
|
729
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: itemClass },
|
|
726
730
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
|
727
731
|
? ""
|
|
728
732
|
: this.question.booleanValue, id: this.question.inputId, className: cssClasses.control, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.booleanValue || false, onChange: this.handleOnChange, role: this.question.a11y_input_ariaRole, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }),
|
|
@@ -1167,6 +1171,91 @@ var BrandInfo = /** @class */ (function (_super) {
|
|
|
1167
1171
|
|
|
1168
1172
|
|
|
1169
1173
|
|
|
1174
|
+
/***/ }),
|
|
1175
|
+
|
|
1176
|
+
/***/ "./src/components/breadcrumbs/breadcrumbs.tsx":
|
|
1177
|
+
/*!****************************************************!*\
|
|
1178
|
+
!*** ./src/components/breadcrumbs/breadcrumbs.tsx ***!
|
|
1179
|
+
\****************************************************/
|
|
1180
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1181
|
+
|
|
1182
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1183
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1184
|
+
/* harmony export */ SurveyBreadcrumbs: () => (/* binding */ SurveyBreadcrumbs)
|
|
1185
|
+
/* harmony export */ });
|
|
1186
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
1187
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1188
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../element-factory */ "./src/element-factory.tsx");
|
|
1189
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../reactquestion_element */ "./src/reactquestion_element.tsx");
|
|
1190
|
+
/* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../svg-icon/svg-icon */ "./src/components/svg-icon/svg-icon.tsx");
|
|
1191
|
+
/* harmony import */ var _action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../action-bar/action-bar-item */ "./src/components/action-bar/action-bar-item.tsx");
|
|
1192
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
1193
|
+
var extendStatics = function (d, b) {
|
|
1194
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1195
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1196
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
1197
|
+
return extendStatics(d, b);
|
|
1198
|
+
};
|
|
1199
|
+
return function (d, b) {
|
|
1200
|
+
if (typeof b !== "function" && b !== null)
|
|
1201
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1202
|
+
extendStatics(d, b);
|
|
1203
|
+
function __() { this.constructor = d; }
|
|
1204
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1205
|
+
};
|
|
1206
|
+
})();
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
var SurveyBreadcrumbs = /** @class */ (function (_super) {
|
|
1213
|
+
__extends(SurveyBreadcrumbs, _super);
|
|
1214
|
+
function SurveyBreadcrumbs(props) {
|
|
1215
|
+
return _super.call(this, props) || this;
|
|
1216
|
+
}
|
|
1217
|
+
SurveyBreadcrumbs.prototype.getStateElement = function () {
|
|
1218
|
+
return this.props.model;
|
|
1219
|
+
};
|
|
1220
|
+
Object.defineProperty(SurveyBreadcrumbs.prototype, "items", {
|
|
1221
|
+
get: function () {
|
|
1222
|
+
return this.props.model.actions;
|
|
1223
|
+
},
|
|
1224
|
+
enumerable: false,
|
|
1225
|
+
configurable: true
|
|
1226
|
+
});
|
|
1227
|
+
Object.defineProperty(SurveyBreadcrumbs.prototype, "css", {
|
|
1228
|
+
get: function () {
|
|
1229
|
+
return this.props.css;
|
|
1230
|
+
},
|
|
1231
|
+
enumerable: false,
|
|
1232
|
+
configurable: true
|
|
1233
|
+
});
|
|
1234
|
+
SurveyBreadcrumbs.prototype.renderElement = function () {
|
|
1235
|
+
if (!this.items || !this.items.length)
|
|
1236
|
+
return null;
|
|
1237
|
+
var items = this.renderItems();
|
|
1238
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.breadcrumbsRoot }, items));
|
|
1239
|
+
};
|
|
1240
|
+
SurveyBreadcrumbs.prototype.renderItems = function () {
|
|
1241
|
+
var _this = this;
|
|
1242
|
+
var result = [];
|
|
1243
|
+
this.items.concat([]).forEach(function (item, itemIndex) {
|
|
1244
|
+
if (itemIndex) {
|
|
1245
|
+
result.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { key: item.renderedId + "_separator", className: _this.css.breadcrumbsSeparator, iconName: "arrowright-16x16", size: "auto" }));
|
|
1246
|
+
}
|
|
1247
|
+
result.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_4__.SurveyAction, { key: item.renderedId, item: item }));
|
|
1248
|
+
});
|
|
1249
|
+
return result;
|
|
1250
|
+
};
|
|
1251
|
+
return SurveyBreadcrumbs;
|
|
1252
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
1253
|
+
|
|
1254
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_1__.ReactElementFactory.Instance.registerElement("sv-breadcrumbs", function (props) {
|
|
1255
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyBreadcrumbs, props);
|
|
1256
|
+
});
|
|
1257
|
+
|
|
1258
|
+
|
|
1170
1259
|
/***/ }),
|
|
1171
1260
|
|
|
1172
1261
|
/***/ "./src/components/character-counter.tsx":
|
|
@@ -1507,8 +1596,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1507
1596
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1508
1597
|
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../reactquestion_element */ "./src/reactquestion_element.tsx");
|
|
1509
1598
|
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../element-factory */ "./src/element-factory.tsx");
|
|
1510
|
-
/* harmony import */ var
|
|
1511
|
-
/* harmony import */ var _file_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./file-page */ "./src/components/file/file-page.tsx");
|
|
1599
|
+
/* harmony import */ var _file_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./file-page */ "./src/components/file/file-page.tsx");
|
|
1512
1600
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
1513
1601
|
var extendStatics = function (d, b) {
|
|
1514
1602
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -1528,7 +1616,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
1528
1616
|
|
|
1529
1617
|
|
|
1530
1618
|
|
|
1531
|
-
|
|
1532
1619
|
var SurveyFilePreview = /** @class */ (function (_super) {
|
|
1533
1620
|
__extends(SurveyFilePreview, _super);
|
|
1534
1621
|
function SurveyFilePreview() {
|
|
@@ -1552,8 +1639,7 @@ var SurveyFilePreview = /** @class */ (function (_super) {
|
|
|
1552
1639
|
};
|
|
1553
1640
|
SurveyFilePreview.prototype.renderElement = function () {
|
|
1554
1641
|
var _this = this;
|
|
1555
|
-
var content = this.question.
|
|
1556
|
-
: this.question.previewValue.map(function (item, index) { return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_file_item__WEBPACK_IMPORTED_MODULE_3__.SurveyFileItem, { item: item, question: _this.question, key: index })); });
|
|
1642
|
+
var content = this.question.renderedPages.map(function (page, index) { return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_file_page__WEBPACK_IMPORTED_MODULE_3__.SurveyFilePage, { page: page, question: _this.question, key: page.id })); });
|
|
1557
1643
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.fileList || undefined }, content);
|
|
1558
1644
|
};
|
|
1559
1645
|
SurveyFilePreview.prototype.canRender = function () {
|
|
@@ -3346,9 +3432,9 @@ var RatingItemSmiley = /** @class */ (function (_super) {
|
|
|
3346
3432
|
}
|
|
3347
3433
|
RatingItemSmiley.prototype.render = function () {
|
|
3348
3434
|
var _this = this;
|
|
3349
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { onMouseDown: this.handleOnMouseDown, style: this.question.getItemStyle(this.item.itemValue, this.item.highlight), className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); } },
|
|
3435
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { onMouseDown: this.handleOnMouseDown, style: this.question.getItemStyle(this.item.itemValue, this.item.highlight), className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); }, title: this.item.text },
|
|
3350
3436
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
|
3351
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: "auto", iconName: this.question.getItemSmileyIconName(this.item.itemValue)
|
|
3437
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: "auto", iconName: this.question.getItemSmileyIconName(this.item.itemValue) })));
|
|
3352
3438
|
};
|
|
3353
3439
|
return RatingItemSmiley;
|
|
3354
3440
|
}(_rating_item__WEBPACK_IMPORTED_MODULE_3__.RatingItemBase));
|
|
@@ -3401,10 +3487,10 @@ var RatingItemStar = /** @class */ (function (_super) {
|
|
|
3401
3487
|
}
|
|
3402
3488
|
RatingItemStar.prototype.render = function () {
|
|
3403
3489
|
var _this = this;
|
|
3404
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { onMouseDown: this.handleOnMouseDown, className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); } },
|
|
3490
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { onMouseDown: this.handleOnMouseDown, className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); }, title: this.item.text },
|
|
3405
3491
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
|
3406
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "sv-star", size: "auto", iconName: this.question.itemStarIcon
|
|
3407
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "sv-star-2", size: "auto", iconName: this.question.itemStarIconAlt
|
|
3492
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "sv-star", size: "auto", iconName: this.question.itemStarIcon }),
|
|
3493
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "sv-star-2", size: "auto", iconName: this.question.itemStarIconAlt })));
|
|
3408
3494
|
};
|
|
3409
3495
|
return RatingItemStar;
|
|
3410
3496
|
}(_rating_item__WEBPACK_IMPORTED_MODULE_3__.RatingItemBase));
|
|
@@ -4121,7 +4207,7 @@ var TitleContent = /** @class */ (function (_super) {
|
|
|
4121
4207
|
});
|
|
4122
4208
|
TitleContent.prototype.render = function () {
|
|
4123
4209
|
if (this.element.isTitleRenderedAsString)
|
|
4124
|
-
return _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.SurveyElementBase.renderLocString(this.element.
|
|
4210
|
+
return _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.SurveyElementBase.renderLocString(this.element.locRenderedTitle);
|
|
4125
4211
|
var spans = this.renderTitleSpans(this.element.getTitleOwner(), this.cssClasses);
|
|
4126
4212
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, spans);
|
|
4127
4213
|
};
|
|
@@ -4143,7 +4229,7 @@ var TitleContent = /** @class */ (function (_super) {
|
|
|
4143
4229
|
spans.push(this.renderRequireText(element));
|
|
4144
4230
|
spans.push(getSpaceSpan("req-sp"));
|
|
4145
4231
|
}
|
|
4146
|
-
spans.push(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.SurveyElementBase.renderLocString(element.
|
|
4232
|
+
spans.push(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.SurveyElementBase.renderLocString(element.locRenderedTitle, null, "q_title"));
|
|
4147
4233
|
if (element.isRequireTextAfterTitle) {
|
|
4148
4234
|
spans.push(getSpaceSpan("req-sp"));
|
|
4149
4235
|
spans.push(this.renderRequireText(element));
|
|
@@ -6705,6 +6791,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6705
6791
|
/* harmony import */ var _reactquestion_comment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_comment */ "./src/reactquestion_comment.tsx");
|
|
6706
6792
|
/* harmony import */ var _custom_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./custom-widget */ "./src/custom-widget.tsx");
|
|
6707
6793
|
/* harmony import */ var _element_header__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./element-header */ "./src/element-header.tsx");
|
|
6794
|
+
/* harmony import */ var _reactquestion_singleinputsummary__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./reactquestion_singleinputsummary */ "./src/reactquestion_singleinputsummary.tsx");
|
|
6795
|
+
/* harmony import */ var _components_breadcrumbs_breadcrumbs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/breadcrumbs/breadcrumbs */ "./src/components/breadcrumbs/breadcrumbs.tsx");
|
|
6708
6796
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
6709
6797
|
var extendStatics = function (d, b) {
|
|
6710
6798
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -6727,6 +6815,8 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
6727
6815
|
|
|
6728
6816
|
|
|
6729
6817
|
|
|
6818
|
+
|
|
6819
|
+
|
|
6730
6820
|
var SurveyQuestion = /** @class */ (function (_super) {
|
|
6731
6821
|
__extends(SurveyQuestion, _super);
|
|
6732
6822
|
function SurveyQuestion(props) {
|
|
@@ -6810,21 +6900,13 @@ var SurveyQuestion = /** @class */ (function (_super) {
|
|
|
6810
6900
|
};
|
|
6811
6901
|
var cssClasses = question.cssClasses;
|
|
6812
6902
|
var questionRender = this.renderQuestion();
|
|
6813
|
-
var errorsTop = this.question.showErrorOnTop
|
|
6814
|
-
? this.renderErrors(cssClasses, "top")
|
|
6815
|
-
: null;
|
|
6816
|
-
var errorsBottom = this.question.showErrorOnBottom
|
|
6817
|
-
? this.renderErrors(cssClasses, "bottom")
|
|
6818
|
-
: null;
|
|
6819
6903
|
var comment = question && question.hasComment ? this.renderComment(cssClasses) : null;
|
|
6820
6904
|
var descriptionUnderInput = question.hasDescriptionUnderInput
|
|
6821
6905
|
? this.renderDescription()
|
|
6822
6906
|
: null;
|
|
6823
6907
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: question.cssContent || undefined, style: contentStyle, role: "presentation" },
|
|
6824
|
-
errorsTop,
|
|
6825
6908
|
questionRender,
|
|
6826
6909
|
comment,
|
|
6827
|
-
errorsBottom,
|
|
6828
6910
|
descriptionUnderInput));
|
|
6829
6911
|
};
|
|
6830
6912
|
SurveyQuestion.prototype.renderElement = function () {
|
|
@@ -6840,15 +6922,30 @@ var SurveyQuestion = /** @class */ (function (_super) {
|
|
|
6840
6922
|
? this.renderErrors(cssClasses, "")
|
|
6841
6923
|
: null;
|
|
6842
6924
|
var rootStyle = question.getRootStyle();
|
|
6843
|
-
var
|
|
6925
|
+
var singleBreadcrumbs = question.singleInputHasActions ? this.renderSingleInputBreadcrumbs(question, cssClasses) : undefined;
|
|
6926
|
+
var singleSummary = question.singleInputSummary ? this.renderSingleInputSummary(question, cssClasses) : undefined;
|
|
6927
|
+
var singleInput = singleSummary || (question.singleInputQuestion ? this.renderSingleInputQuestion(question, cssClasses) : undefined);
|
|
6928
|
+
var questionContent = singleInput || this.wrapQuestionContent(this.renderQuestionContent());
|
|
6844
6929
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
|
|
6845
6930
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-label": this.question.ariaLabel, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded, "data-name": question.name },
|
|
6931
|
+
singleBreadcrumbs,
|
|
6846
6932
|
errorsAboveQuestion,
|
|
6847
6933
|
headerTop,
|
|
6848
6934
|
questionContent,
|
|
6849
6935
|
headerBottom,
|
|
6850
6936
|
errorsBelowQuestion)));
|
|
6851
6937
|
};
|
|
6938
|
+
SurveyQuestion.prototype.renderSingleInputQuestion = function (question, cssClasses) {
|
|
6939
|
+
var singleQuestion = question.singleInputQuestion;
|
|
6940
|
+
var key = singleQuestion.id;
|
|
6941
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestion, { key: key, element: singleQuestion, creator: this.creator, css: cssClasses });
|
|
6942
|
+
};
|
|
6943
|
+
SurveyQuestion.prototype.renderSingleInputBreadcrumbs = function (question, cssClasses) {
|
|
6944
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_breadcrumbs_breadcrumbs__WEBPACK_IMPORTED_MODULE_8__.SurveyBreadcrumbs, { model: question.singleInputActions, css: cssClasses });
|
|
6945
|
+
};
|
|
6946
|
+
SurveyQuestion.prototype.renderSingleInputSummary = function (question, cssClasses) {
|
|
6947
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_singleinputsummary__WEBPACK_IMPORTED_MODULE_7__.SurveyQuestionSigleInputSummary, { summary: question.singleInputSummary, creator: this.creator, css: cssClasses });
|
|
6948
|
+
};
|
|
6852
6949
|
SurveyQuestion.prototype.wrapElement = function (element) {
|
|
6853
6950
|
var survey = this.question.survey;
|
|
6854
6951
|
var wrapper = null;
|
|
@@ -6878,6 +6975,8 @@ var SurveyQuestion = /** @class */ (function (_super) {
|
|
|
6878
6975
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_comment__WEBPACK_IMPORTED_MODULE_4__.SurveyQuestionCommentItem, { question: this.question, cssClasses: cssClasses, otherCss: cssClasses.other, isDisplayMode: this.question.isInputReadOnly })));
|
|
6879
6976
|
};
|
|
6880
6977
|
SurveyQuestion.prototype.renderHeader = function (question) {
|
|
6978
|
+
if (question.singleInputHideHeader)
|
|
6979
|
+
return null;
|
|
6881
6980
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_element_header__WEBPACK_IMPORTED_MODULE_6__.SurveyElementHeader, { element: question });
|
|
6882
6981
|
};
|
|
6883
6982
|
SurveyQuestion.prototype.renderErrors = function (cssClasses, location) {
|
|
@@ -6917,13 +7016,6 @@ var SurveyElementErrors = /** @class */ (function (_super) {
|
|
|
6917
7016
|
enumerable: false,
|
|
6918
7017
|
configurable: true
|
|
6919
7018
|
});
|
|
6920
|
-
Object.defineProperty(SurveyElementErrors.prototype, "location", {
|
|
6921
|
-
get: function () {
|
|
6922
|
-
return this.props.location;
|
|
6923
|
-
},
|
|
6924
|
-
enumerable: false,
|
|
6925
|
-
configurable: true
|
|
6926
|
-
});
|
|
6927
7019
|
SurveyElementErrors.prototype.getState = function (prevState) {
|
|
6928
7020
|
if (prevState === void 0) { prevState = null; }
|
|
6929
7021
|
return !prevState ? { error: 0 } : { error: prevState.error + 1 };
|
|
@@ -7331,8 +7423,9 @@ var SurveyQuestionCheckbox = /** @class */ (function (_super) {
|
|
|
7331
7423
|
if (this.question.blockedRow) {
|
|
7332
7424
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
|
|
7333
7425
|
}
|
|
7334
|
-
else
|
|
7426
|
+
else {
|
|
7335
7427
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, this.getItems(cssClasses, this.question.bodyItems));
|
|
7428
|
+
}
|
|
7336
7429
|
};
|
|
7337
7430
|
SurveyQuestionCheckbox.prototype.getItems = function (cssClasses, choices) {
|
|
7338
7431
|
var renderedItems = [];
|
|
@@ -8324,13 +8417,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8324
8417
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8325
8418
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8326
8419
|
/* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "./src/components/action-bar/action-bar.tsx");
|
|
8327
|
-
/* harmony import */ var
|
|
8328
|
-
/* harmony import */ var
|
|
8329
|
-
/* harmony import */ var
|
|
8330
|
-
/* harmony import */ var
|
|
8331
|
-
/* harmony import */ var
|
|
8332
|
-
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
|
|
8333
|
-
/* harmony import */ var _components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/file/file-choose-button */ "./src/components/file/file-choose-button.tsx");
|
|
8420
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_element */ "./src/reactquestion_element.tsx");
|
|
8421
|
+
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/reactquestion_factory.tsx");
|
|
8422
|
+
/* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/loading-indicator */ "./src/components/loading-indicator.tsx");
|
|
8423
|
+
/* harmony import */ var _components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/action-bar/action-bar-item */ "./src/components/action-bar/action-bar-item.tsx");
|
|
8424
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
|
|
8334
8425
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
8335
8426
|
var extendStatics = function (d, b) {
|
|
8336
8427
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -8353,9 +8444,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
8353
8444
|
|
|
8354
8445
|
|
|
8355
8446
|
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
// import { ReactElementFactory, SurveyFileChooseButton } from "../entries/react-ui-model";
|
|
8359
8447
|
var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
8360
8448
|
__extends(SurveyQuestionFile, _super);
|
|
8361
8449
|
function SurveyQuestionFile(props) {
|
|
@@ -8374,8 +8462,6 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
8374
8462
|
var loadingIndicator = this.question.showLoadingIndicator ? this.renderLoadingIndicator() : null;
|
|
8375
8463
|
var video = this.question.isPlayingVideo ? this.renderVideo() : null;
|
|
8376
8464
|
var fileDecorator = this.question.showFileDecorator ? this.renderFileDecorator() : null;
|
|
8377
|
-
var clearButton = this.question.showRemoveButton ? this.renderClearButton(this.question.cssClasses.removeButton) : null;
|
|
8378
|
-
var clearButtonBottom = this.question.showRemoveButtonBottom ? this.renderClearButton(this.question.cssClasses.removeButtonBottom) : null;
|
|
8379
8465
|
var fileNavigator = this.question.fileNavigatorVisible ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__.SurveyActionBar, { model: this.question.fileNavigator })) : null;
|
|
8380
8466
|
var fileInput;
|
|
8381
8467
|
if (this.question.isReadOnlyAttr) {
|
|
@@ -8396,48 +8482,33 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
8396
8482
|
fileDecorator,
|
|
8397
8483
|
loadingIndicator,
|
|
8398
8484
|
video,
|
|
8399
|
-
clearButton,
|
|
8400
8485
|
preview,
|
|
8401
|
-
clearButtonBottom,
|
|
8402
8486
|
fileNavigator)));
|
|
8403
8487
|
};
|
|
8404
8488
|
SurveyQuestionFile.prototype.renderFileDecorator = function () {
|
|
8405
|
-
var chooseButton = this.question.showChooseButton ? this.renderChooseButton() : null;
|
|
8406
8489
|
var actionsContainer = this.question.actionsContainerVisible ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__.SurveyActionBar, { model: this.question.actionsContainer }) : null;
|
|
8407
|
-
var noFileChosen = this.question.isEmpty() ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.question.cssClasses.noFileChosen }, this.question.noFileChosenCaption)) : null;
|
|
8408
8490
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getFileDecoratorCss() },
|
|
8409
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)),
|
|
8410
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.wrapper },
|
|
8411
|
-
chooseButton,
|
|
8412
|
-
actionsContainer,
|
|
8413
|
-
noFileChosen)));
|
|
8414
|
-
};
|
|
8415
|
-
SurveyQuestionFile.prototype.renderChooseButton = function () {
|
|
8416
|
-
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_8__.SurveyFileChooseButton, { data: { question: this.question } });
|
|
8417
|
-
};
|
|
8418
|
-
SurveyQuestionFile.prototype.renderClearButton = function (className) {
|
|
8419
|
-
return !this.question.isUploading ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { type: "button", onClick: this.question.doClean, className: className },
|
|
8420
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, this.question.clearButtonCaption),
|
|
8421
|
-
(!!this.question.cssClasses.removeButtonIconId) ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.removeButtonIconId, size: "auto", title: this.question.clearButtonCaption }) : null)) : null;
|
|
8491
|
+
this.question.showDragAreaPlaceholder ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)) : false,
|
|
8492
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.wrapper }, actionsContainer)));
|
|
8422
8493
|
};
|
|
8423
8494
|
SurveyQuestionFile.prototype.renderPreview = function () {
|
|
8424
|
-
return
|
|
8495
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_6__.ReactElementFactory.Instance.createElement("sv-file-preview", { question: this.question });
|
|
8425
8496
|
};
|
|
8426
8497
|
SurveyQuestionFile.prototype.renderLoadingIndicator = function () {
|
|
8427
8498
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.loadingIndicator },
|
|
8428
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8499
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__.LoadingIndicatorComponent, null));
|
|
8429
8500
|
};
|
|
8430
8501
|
SurveyQuestionFile.prototype.renderVideo = function () {
|
|
8431
8502
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.videoContainer },
|
|
8432
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8433
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8503
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.changeCameraAction }),
|
|
8504
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.closeCameraAction }),
|
|
8434
8505
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("video", { autoPlay: true, playsInline: true, id: this.question.videoId, className: this.question.cssClasses.video }),
|
|
8435
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
8506
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.takePictureAction })));
|
|
8436
8507
|
};
|
|
8437
8508
|
return SurveyQuestionFile;
|
|
8438
|
-
}(
|
|
8509
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionElementBase));
|
|
8439
8510
|
|
|
8440
|
-
|
|
8511
|
+
_reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.registerQuestion("file", function (props) {
|
|
8441
8512
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionFile, props);
|
|
8442
8513
|
});
|
|
8443
8514
|
|
|
@@ -8610,14 +8681,14 @@ var SurveyQuestionMatrix = /** @class */ (function (_super) {
|
|
|
8610
8681
|
var key = "row-" + row.name + "-" + i;
|
|
8611
8682
|
rows.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixRow, { key: key, question: this.question, cssClasses: cssClasses, row: row, isFirst: i == 0 }));
|
|
8612
8683
|
}
|
|
8613
|
-
var header = !this.question.showHeader ? null : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("thead",
|
|
8684
|
+
var header = !this.question.showHeader ? null : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("thead", { role: "presentation" },
|
|
8614
8685
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr", null,
|
|
8615
8686
|
rowsTH,
|
|
8616
8687
|
headers)));
|
|
8617
8688
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
|
|
8618
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset",
|
|
8619
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("legend", { className: "sv-
|
|
8620
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("table", { className: this.question.getTableCss() },
|
|
8689
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset", { role: "radiogroup" },
|
|
8690
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("legend", { className: "sv-visuallyhidden" }, this.question.locTitle.renderedHtml),
|
|
8691
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("table", { className: this.question.getTableCss(), role: "presentation" },
|
|
8621
8692
|
header,
|
|
8622
8693
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody", null, rows)))));
|
|
8623
8694
|
};
|
|
@@ -9092,10 +9163,7 @@ var SurveyQuestionMatrixDropdownBase = /** @class */ (function (_super) {
|
|
|
9092
9163
|
};
|
|
9093
9164
|
SurveyQuestionMatrixDropdownBase.prototype.renderTableDiv = function () {
|
|
9094
9165
|
var _this = this;
|
|
9095
|
-
|
|
9096
|
-
? { overflowX: "scroll" }
|
|
9097
|
-
: {};
|
|
9098
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { style: divStyle, className: this.question.cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
|
|
9166
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
|
|
9099
9167
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixTable, { question: this.question, creator: this.creator, wrapCell: function (cell, element, reason) { return _this.wrapCell(cell, element, reason); } })));
|
|
9100
9168
|
};
|
|
9101
9169
|
return SurveyQuestionMatrixDropdownBase;
|
|
@@ -9221,7 +9289,7 @@ var SurveyQuestionMatrixDropdownCell = /** @class */ (function (_super) {
|
|
|
9221
9289
|
row: this.cell.row,
|
|
9222
9290
|
column: this.cell.cell.column,
|
|
9223
9291
|
};
|
|
9224
|
-
this.question.survey.matrixAfterCellRender(
|
|
9292
|
+
this.question.survey.matrixAfterCellRender(options);
|
|
9225
9293
|
this.question.afterRenderCore(el);
|
|
9226
9294
|
}
|
|
9227
9295
|
};
|
|
@@ -9299,7 +9367,8 @@ var SurveyQuestionMatrixDropdownCell = /** @class */ (function (_super) {
|
|
|
9299
9367
|
__webpack_require__.r(__webpack_exports__);
|
|
9300
9368
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9301
9369
|
/* harmony export */ SurveyQuestionMatrixDynamic: () => (/* binding */ SurveyQuestionMatrixDynamic),
|
|
9302
|
-
/* harmony export */ SurveyQuestionMatrixDynamicAddButton: () => (/* binding */ SurveyQuestionMatrixDynamicAddButton)
|
|
9370
|
+
/* harmony export */ SurveyQuestionMatrixDynamicAddButton: () => (/* binding */ SurveyQuestionMatrixDynamicAddButton),
|
|
9371
|
+
/* harmony export */ SurveyQuestionMatrixDynamicPlaceholder: () => (/* binding */ SurveyQuestionMatrixDynamicPlaceholder)
|
|
9303
9372
|
/* harmony export */ });
|
|
9304
9373
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9305
9374
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9366,12 +9435,7 @@ var SurveyQuestionMatrixDynamic = /** @class */ (function (_super) {
|
|
|
9366
9435
|
return this.renderAddRowButton(cssClasses);
|
|
9367
9436
|
};
|
|
9368
9437
|
SurveyQuestionMatrixDynamic.prototype.renderNoRowsContent = function (cssClasses) {
|
|
9369
|
-
|
|
9370
|
-
var textDiv = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.noRowsText }, text);
|
|
9371
|
-
var btn = this.matrix.renderedTable.showAddRow ? this.renderAddRowButton(cssClasses, true) : undefined;
|
|
9372
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.noRowsSection },
|
|
9373
|
-
textDiv,
|
|
9374
|
-
btn));
|
|
9438
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement("sv-placeholder-matrixdynamic", { cssClasses: cssClasses, question: this.matrix });
|
|
9375
9439
|
};
|
|
9376
9440
|
SurveyQuestionMatrixDynamic.prototype.renderAddRowButton = function (cssClasses, isEmptySection) {
|
|
9377
9441
|
if (isEmptySection === void 0) { isEmptySection = false; }
|
|
@@ -9414,9 +9478,32 @@ var SurveyQuestionMatrixDynamicAddButton = /** @class */ (function (_super) {
|
|
|
9414
9478
|
return SurveyQuestionMatrixDynamicAddButton;
|
|
9415
9479
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_4__.ReactSurveyElement));
|
|
9416
9480
|
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9481
|
+
var SurveyQuestionMatrixDynamicPlaceholder = /** @class */ (function (_super) {
|
|
9482
|
+
__extends(SurveyQuestionMatrixDynamicPlaceholder, _super);
|
|
9483
|
+
function SurveyQuestionMatrixDynamicPlaceholder(props) {
|
|
9484
|
+
return _super.call(this, props) || this;
|
|
9485
|
+
}
|
|
9486
|
+
SurveyQuestionMatrixDynamicPlaceholder.prototype.renderElement = function () {
|
|
9487
|
+
var cssClasses = this.props.cssClasses;
|
|
9488
|
+
var matrix = this.props.question;
|
|
9489
|
+
var showAddButton = matrix.renderedTable.showAddRow;
|
|
9490
|
+
var text = this.renderLocString(matrix.locNoRowsText);
|
|
9491
|
+
var textDiv = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.noRowsText }, text);
|
|
9492
|
+
var btn = showAddButton ? this.renderAddRowButton(cssClasses, matrix) : undefined;
|
|
9493
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.noRowsSection },
|
|
9494
|
+
textDiv,
|
|
9495
|
+
btn));
|
|
9496
|
+
};
|
|
9497
|
+
SurveyQuestionMatrixDynamicPlaceholder.prototype.renderAddRowButton = function (cssClasses, question) {
|
|
9498
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn", {
|
|
9499
|
+
question: question, cssClasses: cssClasses, isEmptySection: true
|
|
9500
|
+
});
|
|
9501
|
+
};
|
|
9502
|
+
return SurveyQuestionMatrixDynamicPlaceholder;
|
|
9503
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_4__.ReactSurveyElement));
|
|
9504
|
+
|
|
9505
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn", function (props) { return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixDynamicAddButton, props); });
|
|
9506
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("sv-placeholder-matrixdynamic", function (props) { return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixDynamicPlaceholder, props); });
|
|
9420
9507
|
|
|
9421
9508
|
|
|
9422
9509
|
/***/ }),
|
|
@@ -9579,7 +9666,8 @@ _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instanc
|
|
|
9579
9666
|
__webpack_require__.r(__webpack_exports__);
|
|
9580
9667
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9581
9668
|
/* harmony export */ SurveyQuestionPanelDynamic: () => (/* binding */ SurveyQuestionPanelDynamic),
|
|
9582
|
-
/* harmony export */ SurveyQuestionPanelDynamicItem: () => (/* binding */ SurveyQuestionPanelDynamicItem)
|
|
9669
|
+
/* harmony export */ SurveyQuestionPanelDynamicItem: () => (/* binding */ SurveyQuestionPanelDynamicItem),
|
|
9670
|
+
/* harmony export */ SurveyQuestionPanelDynamicPlaceholder: () => (/* binding */ SurveyQuestionPanelDynamicPlaceholder)
|
|
9583
9671
|
/* harmony export */ });
|
|
9584
9672
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9585
9673
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9587,10 +9675,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9587
9675
|
/* harmony import */ var _panel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./panel */ "./src/panel.tsx");
|
|
9588
9676
|
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/reactquestion_factory.tsx");
|
|
9589
9677
|
/* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "./src/components/action-bar/action-bar.tsx");
|
|
9590
|
-
/* harmony import */ var
|
|
9591
|
-
/* harmony import */ var _components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/paneldynamic-actions/paneldynamic-prev-btn */ "./src/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");
|
|
9592
|
-
/* harmony import */ var _components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/paneldynamic-actions/paneldynamic-progress-text */ "./src/components/paneldynamic-actions/paneldynamic-progress-text.tsx");
|
|
9593
|
-
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
|
|
9678
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
|
|
9594
9679
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
9595
9680
|
var extendStatics = function (d, b) {
|
|
9596
9681
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -9613,8 +9698,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
9613
9698
|
|
|
9614
9699
|
|
|
9615
9700
|
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
9701
|
var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
|
|
9619
9702
|
__extends(SurveyQuestionPanelDynamic, _super);
|
|
9620
9703
|
function SurveyQuestionPanelDynamic(props) {
|
|
@@ -9655,70 +9738,29 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
|
|
|
9655
9738
|
SurveyQuestionPanelDynamic.prototype.renderElement = function () {
|
|
9656
9739
|
var _this = this;
|
|
9657
9740
|
var panels = [];
|
|
9741
|
+
var cssClasses = this.question.cssClasses;
|
|
9658
9742
|
this.question.renderedPanels.forEach(function (panel, index) {
|
|
9659
|
-
panels.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionPanelDynamicItem, { key: panel.id, element: panel, question: _this.question, index: index, cssClasses:
|
|
9743
|
+
panels.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionPanelDynamicItem, { key: panel.id, element: panel, question: _this.question, index: index, cssClasses: cssClasses, isDisplayMode: _this.isDisplayMode, creator: _this.creator }));
|
|
9660
9744
|
});
|
|
9661
|
-
var
|
|
9662
|
-
? this.
|
|
9663
|
-
: null;
|
|
9664
|
-
var navTop = this.question.isProgressTopShowing
|
|
9665
|
-
? this.renderNavigator()
|
|
9666
|
-
: null;
|
|
9667
|
-
var navBottom = this.question.isProgressBottomShowing
|
|
9668
|
-
? this.renderNavigator()
|
|
9745
|
+
var rangeTop = this.question.isRangeShowing && this.question.isProgressTopShowing
|
|
9746
|
+
? this.renderRange()
|
|
9669
9747
|
: null;
|
|
9670
9748
|
var navV2 = this.renderNavigatorV2();
|
|
9671
|
-
var noEntriesPlaceholder = this.renderPlaceholder();
|
|
9672
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className:
|
|
9749
|
+
var noEntriesPlaceholder = this.renderPlaceholder(cssClasses);
|
|
9750
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.root },
|
|
9673
9751
|
this.question.hasTabbedMenu ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getTabsContainerCss() },
|
|
9674
9752
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_4__.SurveyActionBar, { model: this.question.tabbedMenu })) : null,
|
|
9675
9753
|
noEntriesPlaceholder,
|
|
9676
|
-
|
|
9754
|
+
rangeTop,
|
|
9677
9755
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.panelsContainer }, panels),
|
|
9678
|
-
navBottom,
|
|
9679
|
-
btnAdd,
|
|
9680
9756
|
navV2));
|
|
9681
9757
|
};
|
|
9682
|
-
SurveyQuestionPanelDynamic.prototype.renderNavigator = function () {
|
|
9683
|
-
if (!this.question["showLegacyNavigation"]) {
|
|
9684
|
-
if (this.question.isRangeShowing && this.question.isProgressTopShowing) {
|
|
9685
|
-
return this.renderRange();
|
|
9686
|
-
}
|
|
9687
|
-
else {
|
|
9688
|
-
return null;
|
|
9689
|
-
}
|
|
9690
|
-
}
|
|
9691
|
-
var range = this.question.isRangeShowing ? this.renderRange() : null;
|
|
9692
|
-
var btnPrev = this.rendrerPrevButton();
|
|
9693
|
-
var btnNext = this.rendrerNextButton();
|
|
9694
|
-
var btnAdd = this.renderAddRowButton();
|
|
9695
|
-
var progressClass = this.question.isProgressTopShowing
|
|
9696
|
-
? this.question.cssClasses.progressTop
|
|
9697
|
-
: this.question.cssClasses.progressBottom;
|
|
9698
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: progressClass },
|
|
9699
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { style: { clear: "both" } },
|
|
9700
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progressContainer },
|
|
9701
|
-
btnPrev,
|
|
9702
|
-
range,
|
|
9703
|
-
btnNext),
|
|
9704
|
-
btnAdd,
|
|
9705
|
-
this.renderProgressText())));
|
|
9706
|
-
};
|
|
9707
|
-
SurveyQuestionPanelDynamic.prototype.renderProgressText = function () {
|
|
9708
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_7__.SurveyQuestionPanelDynamicProgressText, { data: { question: this.question } }));
|
|
9709
|
-
};
|
|
9710
|
-
SurveyQuestionPanelDynamic.prototype.rendrerPrevButton = function () {
|
|
9711
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_6__.SurveyQuestionPanelDynamicPrevButton, { data: { question: this.question } }));
|
|
9712
|
-
};
|
|
9713
|
-
SurveyQuestionPanelDynamic.prototype.rendrerNextButton = function () {
|
|
9714
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_5__.SurveyQuestionPanelDynamicNextButton, { data: { question: this.question } }));
|
|
9715
|
-
};
|
|
9716
9758
|
SurveyQuestionPanelDynamic.prototype.renderRange = function () {
|
|
9717
9759
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progress },
|
|
9718
9760
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progressBar, style: { width: this.question.progress }, role: "progressbar" })));
|
|
9719
9761
|
};
|
|
9720
9762
|
SurveyQuestionPanelDynamic.prototype.renderAddRowButton = function () {
|
|
9721
|
-
return
|
|
9763
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn", {
|
|
9722
9764
|
data: { question: this.question }
|
|
9723
9765
|
});
|
|
9724
9766
|
};
|
|
@@ -9732,12 +9774,9 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
|
|
|
9732
9774
|
this.question.footerToolbar.visibleActions.length ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.footerButtonsContainer },
|
|
9733
9775
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_4__.SurveyActionBar, { model: this.question.footerToolbar }))) : null));
|
|
9734
9776
|
};
|
|
9735
|
-
SurveyQuestionPanelDynamic.prototype.renderPlaceholder = function () {
|
|
9736
|
-
if (this.question.getShowNoEntriesPlaceholder())
|
|
9737
|
-
return
|
|
9738
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, this.renderLocString(this.question.locNoEntriesText)),
|
|
9739
|
-
this.renderAddRowButton()));
|
|
9740
|
-
}
|
|
9777
|
+
SurveyQuestionPanelDynamic.prototype.renderPlaceholder = function (cssClasses) {
|
|
9778
|
+
if (this.question.getShowNoEntriesPlaceholder())
|
|
9779
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-placeholder-paneldynamic", { cssClasses: cssClasses, question: this.question });
|
|
9741
9780
|
return null;
|
|
9742
9781
|
};
|
|
9743
9782
|
return SurveyQuestionPanelDynamic;
|
|
@@ -9783,7 +9822,7 @@ var SurveyQuestionPanelDynamicItem = /** @class */ (function (_super) {
|
|
|
9783
9822
|
SurveyQuestionPanelDynamicItem.prototype.renderButton = function () {
|
|
9784
9823
|
if (!this.question.canRenderRemovePanelOnRight(this.panel))
|
|
9785
9824
|
return null;
|
|
9786
|
-
return
|
|
9825
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn", {
|
|
9787
9826
|
data: { question: this.question, panel: this.panel }
|
|
9788
9827
|
});
|
|
9789
9828
|
};
|
|
@@ -9793,6 +9832,27 @@ var SurveyQuestionPanelDynamicItem = /** @class */ (function (_super) {
|
|
|
9793
9832
|
_reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.registerQuestion("paneldynamic", function (props) {
|
|
9794
9833
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionPanelDynamic, props);
|
|
9795
9834
|
});
|
|
9835
|
+
var SurveyQuestionPanelDynamicPlaceholder = /** @class */ (function (_super) {
|
|
9836
|
+
__extends(SurveyQuestionPanelDynamicPlaceholder, _super);
|
|
9837
|
+
function SurveyQuestionPanelDynamicPlaceholder(props) {
|
|
9838
|
+
return _super.call(this, props) || this;
|
|
9839
|
+
}
|
|
9840
|
+
SurveyQuestionPanelDynamicPlaceholder.prototype.renderElement = function () {
|
|
9841
|
+
var cssClasses = this.props.cssClasses;
|
|
9842
|
+
var question = this.props.question;
|
|
9843
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.noEntriesPlaceholder },
|
|
9844
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, this.renderLocString(question.locNoEntriesText)),
|
|
9845
|
+
this.renderAddRowButton(question)));
|
|
9846
|
+
};
|
|
9847
|
+
SurveyQuestionPanelDynamicPlaceholder.prototype.renderAddRowButton = function (question) {
|
|
9848
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn", {
|
|
9849
|
+
data: { question: question }
|
|
9850
|
+
});
|
|
9851
|
+
};
|
|
9852
|
+
return SurveyQuestionPanelDynamicPlaceholder;
|
|
9853
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElement));
|
|
9854
|
+
|
|
9855
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.registerElement("sv-placeholder-paneldynamic", function (props) { return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionPanelDynamicPlaceholder, props); });
|
|
9796
9856
|
|
|
9797
9857
|
|
|
9798
9858
|
/***/ }),
|
|
@@ -9889,8 +9949,9 @@ var SurveyQuestionRadiogroup = /** @class */ (function (_super) {
|
|
|
9889
9949
|
if (this.question.blockedRow) {
|
|
9890
9950
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
|
|
9891
9951
|
}
|
|
9892
|
-
else
|
|
9952
|
+
else {
|
|
9893
9953
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, this.getItems(cssClasses, this.question.bodyItems));
|
|
9954
|
+
}
|
|
9894
9955
|
};
|
|
9895
9956
|
SurveyQuestionRadiogroup.prototype.getItems = function (cssClasses, choices) {
|
|
9896
9957
|
var items = [];
|
|
@@ -10271,7 +10332,7 @@ var SurveyQuestionRankingItem = /** @class */ (function (_super) {
|
|
|
10271
10332
|
};
|
|
10272
10333
|
SurveyQuestionRankingItem.prototype.renderElement = function () {
|
|
10273
10334
|
var itemContent = _element_factory__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement(this.question.itemComponent, { item: this.item, cssClasses: this.cssClasses });
|
|
10274
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { tabIndex: this.itemTabIndex, className: this.itemClass, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onPointerUp: this.handlePointerUp, "data-sv-drop-target-ranking-item": this.index },
|
|
10335
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.question.getItemId(this.item), tabIndex: this.itemTabIndex, className: this.itemClass, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onPointerUp: this.handlePointerUp, "data-sv-drop-target-ranking-item": this.index },
|
|
10275
10336
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { tabIndex: -1, style: { outline: "none" } },
|
|
10276
10337
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.cssClasses.itemGhostNode }),
|
|
10277
10338
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.cssClasses.itemContent },
|
|
@@ -10408,6 +10469,96 @@ _reactquestion_factory__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instanc
|
|
|
10408
10469
|
});
|
|
10409
10470
|
|
|
10410
10471
|
|
|
10472
|
+
/***/ }),
|
|
10473
|
+
|
|
10474
|
+
/***/ "./src/reactquestion_singleinputsummary.tsx":
|
|
10475
|
+
/*!**************************************************!*\
|
|
10476
|
+
!*** ./src/reactquestion_singleinputsummary.tsx ***!
|
|
10477
|
+
\**************************************************/
|
|
10478
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10479
|
+
|
|
10480
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10481
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10482
|
+
/* harmony export */ SurveyQuestionSigleInputSummary: () => (/* binding */ SurveyQuestionSigleInputSummary)
|
|
10483
|
+
/* harmony export */ });
|
|
10484
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
10485
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
10486
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactquestion_element */ "./src/reactquestion_element.tsx");
|
|
10487
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./element-factory */ "./src/element-factory.tsx");
|
|
10488
|
+
/* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "./src/components/svg-icon/svg-icon.tsx");
|
|
10489
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
10490
|
+
var extendStatics = function (d, b) {
|
|
10491
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10492
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10493
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10494
|
+
return extendStatics(d, b);
|
|
10495
|
+
};
|
|
10496
|
+
return function (d, b) {
|
|
10497
|
+
if (typeof b !== "function" && b !== null)
|
|
10498
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10499
|
+
extendStatics(d, b);
|
|
10500
|
+
function __() { this.constructor = d; }
|
|
10501
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10502
|
+
};
|
|
10503
|
+
})();
|
|
10504
|
+
|
|
10505
|
+
|
|
10506
|
+
|
|
10507
|
+
|
|
10508
|
+
var SurveyQuestionSigleInputSummary = /** @class */ (function (_super) {
|
|
10509
|
+
__extends(SurveyQuestionSigleInputSummary, _super);
|
|
10510
|
+
function SurveyQuestionSigleInputSummary(props) {
|
|
10511
|
+
return _super.call(this, props) || this;
|
|
10512
|
+
}
|
|
10513
|
+
Object.defineProperty(SurveyQuestionSigleInputSummary.prototype, "css", {
|
|
10514
|
+
get: function () {
|
|
10515
|
+
return this.props.css;
|
|
10516
|
+
},
|
|
10517
|
+
enumerable: false,
|
|
10518
|
+
configurable: true
|
|
10519
|
+
});
|
|
10520
|
+
Object.defineProperty(SurveyQuestionSigleInputSummary.prototype, "summary", {
|
|
10521
|
+
get: function () {
|
|
10522
|
+
return this.props.summary;
|
|
10523
|
+
},
|
|
10524
|
+
enumerable: false,
|
|
10525
|
+
configurable: true
|
|
10526
|
+
});
|
|
10527
|
+
SurveyQuestionSigleInputSummary.prototype.renderElement = function () {
|
|
10528
|
+
if (!this.summary)
|
|
10529
|
+
return null;
|
|
10530
|
+
return this.summary.isEmpty() ? this.renderNoItems() : this.renderItems();
|
|
10531
|
+
};
|
|
10532
|
+
SurveyQuestionSigleInputSummary.prototype.renderItems = function () {
|
|
10533
|
+
var _this = this;
|
|
10534
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.summary }, this.summary.items.map(function (item, index) { return _this.renderItem(item, index); })));
|
|
10535
|
+
};
|
|
10536
|
+
SurveyQuestionSigleInputSummary.prototype.renderNoItems = function () {
|
|
10537
|
+
var q = this.summary.question;
|
|
10538
|
+
var placeholder = _element_factory__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement("sv-placeholder-" + q.getTemplate(), { cssClasses: this.css, question: q });
|
|
10539
|
+
return placeholder || react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, this.renderLocString(this.summary.noEntry));
|
|
10540
|
+
};
|
|
10541
|
+
SurveyQuestionSigleInputSummary.prototype.renderItem = function (item, index) {
|
|
10542
|
+
var btnEdit = item.btnEdit ?
|
|
10543
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: this.css.summaryRowActionEdit, onClick: function () { return item.btnEdit.action(); }, title: item.btnEdit.title },
|
|
10544
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-editsmall-16x16", iconSize: "auto" })) : null;
|
|
10545
|
+
var btnDelete = item.showRemove && item.btnRemove ?
|
|
10546
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: this.css.summaryRowActionDelete, onClick: function () { return item.btnRemove.action(); }, title: item.btnRemove.title },
|
|
10547
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-delete-16x16", iconSize: "auto" })) : null;
|
|
10548
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.summaryRow, key: index },
|
|
10549
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.summaryRowContent }, this.renderLocString(item.locText)),
|
|
10550
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.summaryRowActions },
|
|
10551
|
+
btnEdit,
|
|
10552
|
+
btnDelete));
|
|
10553
|
+
};
|
|
10554
|
+
return SurveyQuestionSigleInputSummary;
|
|
10555
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElement));
|
|
10556
|
+
|
|
10557
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("sv-singleinput-summary", function (props) {
|
|
10558
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionSigleInputSummary, props);
|
|
10559
|
+
});
|
|
10560
|
+
|
|
10561
|
+
|
|
10411
10562
|
/***/ }),
|
|
10412
10563
|
|
|
10413
10564
|
/***/ "./src/reactquestion_tagbox.tsx":
|
|
@@ -10548,7 +10699,7 @@ var SurveyQuestionText = /** @class */ (function (_super) {
|
|
|
10548
10699
|
// disabled={this.isDisplayMode}
|
|
10549
10700
|
disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: inputClass, type: this.question.inputType,
|
|
10550
10701
|
//ref={this.controlRef}
|
|
10551
|
-
ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: function (event) { _this.question.onBlur(event); }, onFocus: function (event) { _this.question.onFocus(event); }, onChange: this.question.onChange, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }),
|
|
10702
|
+
ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: function (event) { _this.question.onBlur(event); }, onFocus: function (event) { _this.question.onFocus(event); }, onChange: this.question.onChange, onClick: this.question.readOnlyBlocker, onPointerDown: this.question.readOnlyBlocker, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }),
|
|
10552
10703
|
counter));
|
|
10553
10704
|
};
|
|
10554
10705
|
SurveyQuestionText.prototype.renderElement = function () {
|
|
@@ -10963,7 +11114,7 @@ var SurveyQuestionSignaturePad = /** @class */ (function (_super) {
|
|
|
10963
11114
|
SurveyQuestionSignaturePad.prototype.renderBackgroundImage = function () {
|
|
10964
11115
|
if (!this.question.backgroundImage)
|
|
10965
11116
|
return null;
|
|
10966
|
-
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("img", { className: this.question.cssClasses.backgroundImage, src: this.question.backgroundImage, style: { width: this.question.renderedCanvasWidth } });
|
|
11117
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("img", { className: this.question.cssClasses.backgroundImage, src: this.question.backgroundImage, style: { width: this.question.renderedCanvasWidth }, role: "presentation" });
|
|
10967
11118
|
};
|
|
10968
11119
|
SurveyQuestionSignaturePad.prototype.renderLoadingIndicator = function () {
|
|
10969
11120
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.loadingIndicator },
|
|
@@ -11656,7 +11807,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11656
11807
|
|
|
11657
11808
|
|
|
11658
11809
|
|
|
11659
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.0.
|
|
11810
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.0.6"), "survey-react-ui");
|
|
11660
11811
|
|
|
11661
11812
|
})();
|
|
11662
11813
|
|