survey-js-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-js-ui.mjs +259 -205
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +365 -174
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +1 -1
- package/survey-js-ui.min.js.LICENSE.txt +17 -1
- package/typings/survey-react-ui/src/components/breadcrumbs/breadcrumbs.d.ts +15 -0
- package/typings/survey-react-ui/src/reactquestion.d.ts +3 -1
- package/typings/survey-react-ui/src/reactquestion_file.d.ts +0 -2
- package/typings/survey-react-ui/src/reactquestion_matrixdynamic.d.ts +6 -1
- package/typings/survey-react-ui/src/reactquestion_paneldynamic.d.ts +8 -6
- package/typings/survey-react-ui/src/reactquestion_rating.d.ts +1 -1
- package/typings/survey-react-ui/src/reactquestion_singleinputsummary.d.ts +12 -0
package/survey-js-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
|
*/
|
|
@@ -23,7 +23,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
23
23
|
/***/ (function(module) {
|
|
24
24
|
|
|
25
25
|
/*!
|
|
26
|
-
* surveyjs - Survey JavaScript library v2.0.
|
|
26
|
+
* surveyjs - Survey JavaScript library v2.0.6
|
|
27
27
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
28
28
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
29
29
|
*/
|
|
@@ -66,9 +66,11 @@ var map = {
|
|
|
66
66
|
"./close-24x24.svg": "./src/images-v1/close-24x24.svg",
|
|
67
67
|
"./collapse-16x16.svg": "./src/images-v1/collapse-16x16.svg",
|
|
68
68
|
"./collapsedetails-16x16.svg": "./src/images-v1/collapsedetails-16x16.svg",
|
|
69
|
+
"./delete-16x16.svg": "./src/images-v1/delete-16x16.svg",
|
|
69
70
|
"./delete-24x24.svg": "./src/images-v1/delete-24x24.svg",
|
|
70
71
|
"./drag-24x24.svg": "./src/images-v1/drag-24x24.svg",
|
|
71
72
|
"./draghorizontal-24x16.svg": "./src/images-v1/draghorizontal-24x16.svg",
|
|
73
|
+
"./editsmall-16x16.svg": "./src/images-v1/editsmall-16x16.svg",
|
|
72
74
|
"./expand-16x16.svg": "./src/images-v1/expand-16x16.svg",
|
|
73
75
|
"./expanddetails-16x16.svg": "./src/images-v1/expanddetails-16x16.svg",
|
|
74
76
|
"./file-72x72.svg": "./src/images-v1/file-72x72.svg",
|
|
@@ -365,6 +367,16 @@ module.exports = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
365
367
|
|
|
366
368
|
/***/ }),
|
|
367
369
|
|
|
370
|
+
/***/ "./src/images-v1/delete-16x16.svg":
|
|
371
|
+
/*!****************************************!*\
|
|
372
|
+
!*** ./src/images-v1/delete-16x16.svg ***!
|
|
373
|
+
\****************************************/
|
|
374
|
+
/***/ ((module) => {
|
|
375
|
+
|
|
376
|
+
module.exports = "<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>"
|
|
377
|
+
|
|
378
|
+
/***/ }),
|
|
379
|
+
|
|
368
380
|
/***/ "./src/images-v1/delete-24x24.svg":
|
|
369
381
|
/*!****************************************!*\
|
|
370
382
|
!*** ./src/images-v1/delete-24x24.svg ***!
|
|
@@ -395,6 +407,16 @@ module.exports = "<svg viewBox=\"0 0 24 16\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
395
407
|
|
|
396
408
|
/***/ }),
|
|
397
409
|
|
|
410
|
+
/***/ "./src/images-v1/editsmall-16x16.svg":
|
|
411
|
+
/*!*******************************************!*\
|
|
412
|
+
!*** ./src/images-v1/editsmall-16x16.svg ***!
|
|
413
|
+
\*******************************************/
|
|
414
|
+
/***/ ((module) => {
|
|
415
|
+
|
|
416
|
+
module.exports = "<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>"
|
|
417
|
+
|
|
418
|
+
/***/ }),
|
|
419
|
+
|
|
398
420
|
/***/ "./src/images-v1/expand-16x16.svg":
|
|
399
421
|
/*!****************************************!*\
|
|
400
422
|
!*** ./src/images-v1/expand-16x16.svg ***!
|
|
@@ -721,7 +743,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
721
743
|
/******/ var __webpack_module_cache__ = {};
|
|
722
744
|
/******/
|
|
723
745
|
/******/ // The require function
|
|
724
|
-
/******/ function
|
|
746
|
+
/******/ function __nested_webpack_require_51423__(moduleId) {
|
|
725
747
|
/******/ // Check if module is in cache
|
|
726
748
|
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
727
749
|
/******/ if (cachedModule !== undefined) {
|
|
@@ -735,7 +757,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
735
757
|
/******/ };
|
|
736
758
|
/******/
|
|
737
759
|
/******/ // Execute the module function
|
|
738
|
-
/******/ __webpack_modules__[moduleId](module, module.exports,
|
|
760
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_51423__);
|
|
739
761
|
/******/
|
|
740
762
|
/******/ // Return the exports of the module
|
|
741
763
|
/******/ return module.exports;
|
|
@@ -745,9 +767,9 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
745
767
|
/******/ /* webpack/runtime/define property getters */
|
|
746
768
|
/******/ (() => {
|
|
747
769
|
/******/ // define getter functions for harmony exports
|
|
748
|
-
/******/
|
|
770
|
+
/******/ __nested_webpack_require_51423__.d = (exports, definition) => {
|
|
749
771
|
/******/ for(var key in definition) {
|
|
750
|
-
/******/ if(
|
|
772
|
+
/******/ if(__nested_webpack_require_51423__.o(definition, key) && !__nested_webpack_require_51423__.o(exports, key)) {
|
|
751
773
|
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
752
774
|
/******/ }
|
|
753
775
|
/******/ }
|
|
@@ -756,13 +778,13 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
756
778
|
/******/
|
|
757
779
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
758
780
|
/******/ (() => {
|
|
759
|
-
/******/
|
|
781
|
+
/******/ __nested_webpack_require_51423__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
760
782
|
/******/ })();
|
|
761
783
|
/******/
|
|
762
784
|
/******/ /* webpack/runtime/make namespace object */
|
|
763
785
|
/******/ (() => {
|
|
764
786
|
/******/ // define __esModule on exports
|
|
765
|
-
/******/
|
|
787
|
+
/******/ __nested_webpack_require_51423__.r = (exports) => {
|
|
766
788
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
767
789
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
768
790
|
/******/ }
|
|
@@ -778,13 +800,13 @@ var __nested_webpack_exports__ = {};
|
|
|
778
800
|
/*!************************!*\
|
|
779
801
|
!*** ./src/iconsV1.ts ***!
|
|
780
802
|
\************************/
|
|
781
|
-
|
|
782
|
-
/* harmony export */
|
|
803
|
+
__nested_webpack_require_51423__.r(__nested_webpack_exports__);
|
|
804
|
+
/* harmony export */ __nested_webpack_require_51423__.d(__nested_webpack_exports__, {
|
|
783
805
|
/* harmony export */ icons: () => (/* binding */ icons)
|
|
784
806
|
/* harmony export */ });
|
|
785
807
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
786
808
|
//@ts-ignore
|
|
787
|
-
var path =
|
|
809
|
+
var path = __nested_webpack_require_51423__("./src/images-v1 sync recursive \\.svg$");
|
|
788
810
|
var icons = {};
|
|
789
811
|
path.keys().forEach(function (key) {
|
|
790
812
|
icons[key.substring(2, key.length - 4).toLowerCase()] = path(key);
|
|
@@ -808,7 +830,7 @@ path.keys().forEach(function (key) {
|
|
|
808
830
|
/***/ (function(module) {
|
|
809
831
|
|
|
810
832
|
/*!
|
|
811
|
-
* surveyjs - Survey JavaScript library v2.0.
|
|
833
|
+
* surveyjs - Survey JavaScript library v2.0.6
|
|
812
834
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
813
835
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
814
836
|
*/
|
|
@@ -851,9 +873,11 @@ var map = {
|
|
|
851
873
|
"./close-24x24.svg": "./src/images-v2/close-24x24.svg",
|
|
852
874
|
"./collapse-16x16.svg": "./src/images-v2/collapse-16x16.svg",
|
|
853
875
|
"./collapsedetails-16x16.svg": "./src/images-v2/collapsedetails-16x16.svg",
|
|
876
|
+
"./delete-16x16.svg": "./src/images-v2/delete-16x16.svg",
|
|
854
877
|
"./delete-24x24.svg": "./src/images-v2/delete-24x24.svg",
|
|
855
878
|
"./drag-24x24.svg": "./src/images-v2/drag-24x24.svg",
|
|
856
879
|
"./draghorizontal-24x16.svg": "./src/images-v2/draghorizontal-24x16.svg",
|
|
880
|
+
"./editsmall-16x16.svg": "./src/images-v2/editsmall-16x16.svg",
|
|
857
881
|
"./expand-16x16.svg": "./src/images-v2/expand-16x16.svg",
|
|
858
882
|
"./expanddetails-16x16.svg": "./src/images-v2/expanddetails-16x16.svg",
|
|
859
883
|
"./file-72x72.svg": "./src/images-v2/file-72x72.svg",
|
|
@@ -1150,6 +1174,16 @@ module.exports = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1150
1174
|
|
|
1151
1175
|
/***/ }),
|
|
1152
1176
|
|
|
1177
|
+
/***/ "./src/images-v2/delete-16x16.svg":
|
|
1178
|
+
/*!****************************************!*\
|
|
1179
|
+
!*** ./src/images-v2/delete-16x16.svg ***!
|
|
1180
|
+
\****************************************/
|
|
1181
|
+
/***/ ((module) => {
|
|
1182
|
+
|
|
1183
|
+
module.exports = "<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>"
|
|
1184
|
+
|
|
1185
|
+
/***/ }),
|
|
1186
|
+
|
|
1153
1187
|
/***/ "./src/images-v2/delete-24x24.svg":
|
|
1154
1188
|
/*!****************************************!*\
|
|
1155
1189
|
!*** ./src/images-v2/delete-24x24.svg ***!
|
|
@@ -1180,6 +1214,16 @@ module.exports = "<svg viewBox=\"0 0 24 16\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1180
1214
|
|
|
1181
1215
|
/***/ }),
|
|
1182
1216
|
|
|
1217
|
+
/***/ "./src/images-v2/editsmall-16x16.svg":
|
|
1218
|
+
/*!*******************************************!*\
|
|
1219
|
+
!*** ./src/images-v2/editsmall-16x16.svg ***!
|
|
1220
|
+
\*******************************************/
|
|
1221
|
+
/***/ ((module) => {
|
|
1222
|
+
|
|
1223
|
+
module.exports = "<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>"
|
|
1224
|
+
|
|
1225
|
+
/***/ }),
|
|
1226
|
+
|
|
1183
1227
|
/***/ "./src/images-v2/expand-16x16.svg":
|
|
1184
1228
|
/*!****************************************!*\
|
|
1185
1229
|
!*** ./src/images-v2/expand-16x16.svg ***!
|
|
@@ -1506,7 +1550,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1506
1550
|
/******/ var __webpack_module_cache__ = {};
|
|
1507
1551
|
/******/
|
|
1508
1552
|
/******/ // The require function
|
|
1509
|
-
/******/ function
|
|
1553
|
+
/******/ function __nested_webpack_require_64535__(moduleId) {
|
|
1510
1554
|
/******/ // Check if module is in cache
|
|
1511
1555
|
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
1512
1556
|
/******/ if (cachedModule !== undefined) {
|
|
@@ -1520,7 +1564,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1520
1564
|
/******/ };
|
|
1521
1565
|
/******/
|
|
1522
1566
|
/******/ // Execute the module function
|
|
1523
|
-
/******/ __webpack_modules__[moduleId](module, module.exports,
|
|
1567
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_64535__);
|
|
1524
1568
|
/******/
|
|
1525
1569
|
/******/ // Return the exports of the module
|
|
1526
1570
|
/******/ return module.exports;
|
|
@@ -1530,9 +1574,9 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1530
1574
|
/******/ /* webpack/runtime/define property getters */
|
|
1531
1575
|
/******/ (() => {
|
|
1532
1576
|
/******/ // define getter functions for harmony exports
|
|
1533
|
-
/******/
|
|
1577
|
+
/******/ __nested_webpack_require_64535__.d = (exports, definition) => {
|
|
1534
1578
|
/******/ for(var key in definition) {
|
|
1535
|
-
/******/ if(
|
|
1579
|
+
/******/ if(__nested_webpack_require_64535__.o(definition, key) && !__nested_webpack_require_64535__.o(exports, key)) {
|
|
1536
1580
|
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
1537
1581
|
/******/ }
|
|
1538
1582
|
/******/ }
|
|
@@ -1541,13 +1585,13 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1541
1585
|
/******/
|
|
1542
1586
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1543
1587
|
/******/ (() => {
|
|
1544
|
-
/******/
|
|
1588
|
+
/******/ __nested_webpack_require_64535__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
1545
1589
|
/******/ })();
|
|
1546
1590
|
/******/
|
|
1547
1591
|
/******/ /* webpack/runtime/make namespace object */
|
|
1548
1592
|
/******/ (() => {
|
|
1549
1593
|
/******/ // define __esModule on exports
|
|
1550
|
-
/******/
|
|
1594
|
+
/******/ __nested_webpack_require_64535__.r = (exports) => {
|
|
1551
1595
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1552
1596
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1553
1597
|
/******/ }
|
|
@@ -1563,13 +1607,13 @@ var __nested_webpack_exports__ = {};
|
|
|
1563
1607
|
/*!************************!*\
|
|
1564
1608
|
!*** ./src/iconsV2.ts ***!
|
|
1565
1609
|
\************************/
|
|
1566
|
-
|
|
1567
|
-
/* harmony export */
|
|
1610
|
+
__nested_webpack_require_64535__.r(__nested_webpack_exports__);
|
|
1611
|
+
/* harmony export */ __nested_webpack_require_64535__.d(__nested_webpack_exports__, {
|
|
1568
1612
|
/* harmony export */ icons: () => (/* binding */ icons)
|
|
1569
1613
|
/* harmony export */ });
|
|
1570
1614
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1571
1615
|
//@ts-ignore
|
|
1572
|
-
var path =
|
|
1616
|
+
var path = __nested_webpack_require_64535__("./src/images-v2 sync recursive \\.svg$");
|
|
1573
1617
|
var icons = {};
|
|
1574
1618
|
path.keys().forEach(function (key) {
|
|
1575
1619
|
icons[key.substring(2, key.length - 4).toLowerCase()] = path(key);
|
|
@@ -2124,7 +2168,7 @@ var SurveyQuestionBoolean = /** @class */ (function (_super) {
|
|
|
2124
2168
|
var cssClasses = this.question.cssClasses;
|
|
2125
2169
|
var itemClass = this.question.getItemCss();
|
|
2126
2170
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.root, onKeyDown: this.handleOnKeyDown },
|
|
2127
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: itemClass
|
|
2171
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: itemClass },
|
|
2128
2172
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
|
2129
2173
|
? ""
|
|
2130
2174
|
: 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 }),
|
|
@@ -2567,6 +2611,91 @@ var BrandInfo = /** @class */ (function (_super) {
|
|
|
2567
2611
|
|
|
2568
2612
|
|
|
2569
2613
|
|
|
2614
|
+
/***/ }),
|
|
2615
|
+
|
|
2616
|
+
/***/ "../survey-react-ui/src/components/breadcrumbs/breadcrumbs.tsx":
|
|
2617
|
+
/*!*********************************************************************!*\
|
|
2618
|
+
!*** ../survey-react-ui/src/components/breadcrumbs/breadcrumbs.tsx ***!
|
|
2619
|
+
\*********************************************************************/
|
|
2620
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2621
|
+
|
|
2622
|
+
"use strict";
|
|
2623
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2624
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2625
|
+
/* harmony export */ SurveyBreadcrumbs: () => (/* binding */ SurveyBreadcrumbs)
|
|
2626
|
+
/* harmony export */ });
|
|
2627
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
|
|
2628
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
2629
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
|
|
2630
|
+
/* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../svg-icon/svg-icon */ "../survey-react-ui/src/components/svg-icon/svg-icon.tsx");
|
|
2631
|
+
/* harmony import */ var _action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../action-bar/action-bar-item */ "../survey-react-ui/src/components/action-bar/action-bar-item.tsx");
|
|
2632
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
2633
|
+
var extendStatics = function (d, b) {
|
|
2634
|
+
extendStatics = Object.setPrototypeOf ||
|
|
2635
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2636
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
2637
|
+
return extendStatics(d, b);
|
|
2638
|
+
};
|
|
2639
|
+
return function (d, b) {
|
|
2640
|
+
if (typeof b !== "function" && b !== null)
|
|
2641
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2642
|
+
extendStatics(d, b);
|
|
2643
|
+
function __() { this.constructor = d; }
|
|
2644
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2645
|
+
};
|
|
2646
|
+
})();
|
|
2647
|
+
|
|
2648
|
+
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
|
|
2652
|
+
var SurveyBreadcrumbs = /** @class */ (function (_super) {
|
|
2653
|
+
__extends(SurveyBreadcrumbs, _super);
|
|
2654
|
+
function SurveyBreadcrumbs(props) {
|
|
2655
|
+
return _super.call(this, props) || this;
|
|
2656
|
+
}
|
|
2657
|
+
SurveyBreadcrumbs.prototype.getStateElement = function () {
|
|
2658
|
+
return this.props.model;
|
|
2659
|
+
};
|
|
2660
|
+
Object.defineProperty(SurveyBreadcrumbs.prototype, "items", {
|
|
2661
|
+
get: function () {
|
|
2662
|
+
return this.props.model.actions;
|
|
2663
|
+
},
|
|
2664
|
+
enumerable: false,
|
|
2665
|
+
configurable: true
|
|
2666
|
+
});
|
|
2667
|
+
Object.defineProperty(SurveyBreadcrumbs.prototype, "css", {
|
|
2668
|
+
get: function () {
|
|
2669
|
+
return this.props.css;
|
|
2670
|
+
},
|
|
2671
|
+
enumerable: false,
|
|
2672
|
+
configurable: true
|
|
2673
|
+
});
|
|
2674
|
+
SurveyBreadcrumbs.prototype.renderElement = function () {
|
|
2675
|
+
if (!this.items || !this.items.length)
|
|
2676
|
+
return null;
|
|
2677
|
+
var items = this.renderItems();
|
|
2678
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.breadcrumbsRoot }, items));
|
|
2679
|
+
};
|
|
2680
|
+
SurveyBreadcrumbs.prototype.renderItems = function () {
|
|
2681
|
+
var _this = this;
|
|
2682
|
+
var result = [];
|
|
2683
|
+
this.items.concat([]).forEach(function (item, itemIndex) {
|
|
2684
|
+
if (itemIndex) {
|
|
2685
|
+
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" }));
|
|
2686
|
+
}
|
|
2687
|
+
result.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_4__.SurveyAction, { key: item.renderedId, item: item }));
|
|
2688
|
+
});
|
|
2689
|
+
return result;
|
|
2690
|
+
};
|
|
2691
|
+
return SurveyBreadcrumbs;
|
|
2692
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
2693
|
+
|
|
2694
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_1__.ReactElementFactory.Instance.registerElement("sv-breadcrumbs", function (props) {
|
|
2695
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyBreadcrumbs, props);
|
|
2696
|
+
});
|
|
2697
|
+
|
|
2698
|
+
|
|
2570
2699
|
/***/ }),
|
|
2571
2700
|
|
|
2572
2701
|
/***/ "../survey-react-ui/src/components/character-counter.tsx":
|
|
@@ -2907,8 +3036,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2907
3036
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
|
|
2908
3037
|
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
|
|
2909
3038
|
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
2910
|
-
/* harmony import */ var
|
|
2911
|
-
/* harmony import */ var _file_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./file-page */ "../survey-react-ui/src/components/file/file-page.tsx");
|
|
3039
|
+
/* harmony import */ var _file_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./file-page */ "../survey-react-ui/src/components/file/file-page.tsx");
|
|
2912
3040
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
2913
3041
|
var extendStatics = function (d, b) {
|
|
2914
3042
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -2928,7 +3056,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
2928
3056
|
|
|
2929
3057
|
|
|
2930
3058
|
|
|
2931
|
-
|
|
2932
3059
|
var SurveyFilePreview = /** @class */ (function (_super) {
|
|
2933
3060
|
__extends(SurveyFilePreview, _super);
|
|
2934
3061
|
function SurveyFilePreview() {
|
|
@@ -2952,8 +3079,7 @@ var SurveyFilePreview = /** @class */ (function (_super) {
|
|
|
2952
3079
|
};
|
|
2953
3080
|
SurveyFilePreview.prototype.renderElement = function () {
|
|
2954
3081
|
var _this = this;
|
|
2955
|
-
var content = this.question.
|
|
2956
|
-
: 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 })); });
|
|
3082
|
+
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 })); });
|
|
2957
3083
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.fileList || undefined }, content);
|
|
2958
3084
|
};
|
|
2959
3085
|
SurveyFilePreview.prototype.canRender = function () {
|
|
@@ -4744,9 +4870,9 @@ var RatingItemSmiley = /** @class */ (function (_super) {
|
|
|
4744
4870
|
}
|
|
4745
4871
|
RatingItemSmiley.prototype.render = function () {
|
|
4746
4872
|
var _this = this;
|
|
4747
|
-
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); } },
|
|
4873
|
+
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 },
|
|
4748
4874
|
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 }),
|
|
4749
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: "auto", iconName: this.question.getItemSmileyIconName(this.item.itemValue)
|
|
4875
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: "auto", iconName: this.question.getItemSmileyIconName(this.item.itemValue) })));
|
|
4750
4876
|
};
|
|
4751
4877
|
return RatingItemSmiley;
|
|
4752
4878
|
}(_rating_item__WEBPACK_IMPORTED_MODULE_3__.RatingItemBase));
|
|
@@ -4799,10 +4925,10 @@ var RatingItemStar = /** @class */ (function (_super) {
|
|
|
4799
4925
|
}
|
|
4800
4926
|
RatingItemStar.prototype.render = function () {
|
|
4801
4927
|
var _this = this;
|
|
4802
|
-
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); } },
|
|
4928
|
+
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 },
|
|
4803
4929
|
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 }),
|
|
4804
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "sv-star", size: "auto", iconName: this.question.itemStarIcon
|
|
4805
|
-
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
|
|
4930
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "sv-star", size: "auto", iconName: this.question.itemStarIcon }),
|
|
4931
|
+
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 })));
|
|
4806
4932
|
};
|
|
4807
4933
|
return RatingItemStar;
|
|
4808
4934
|
}(_rating_item__WEBPACK_IMPORTED_MODULE_3__.RatingItemBase));
|
|
@@ -5519,7 +5645,7 @@ var TitleContent = /** @class */ (function (_super) {
|
|
|
5519
5645
|
});
|
|
5520
5646
|
TitleContent.prototype.render = function () {
|
|
5521
5647
|
if (this.element.isTitleRenderedAsString)
|
|
5522
|
-
return _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.SurveyElementBase.renderLocString(this.element.
|
|
5648
|
+
return _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.SurveyElementBase.renderLocString(this.element.locRenderedTitle);
|
|
5523
5649
|
var spans = this.renderTitleSpans(this.element.getTitleOwner(), this.cssClasses);
|
|
5524
5650
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, spans);
|
|
5525
5651
|
};
|
|
@@ -5541,7 +5667,7 @@ var TitleContent = /** @class */ (function (_super) {
|
|
|
5541
5667
|
spans.push(this.renderRequireText(element));
|
|
5542
5668
|
spans.push(getSpaceSpan("req-sp"));
|
|
5543
5669
|
}
|
|
5544
|
-
spans.push(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.SurveyElementBase.renderLocString(element.
|
|
5670
|
+
spans.push(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.SurveyElementBase.renderLocString(element.locRenderedTitle, null, "q_title"));
|
|
5545
5671
|
if (element.isRequireTextAfterTitle) {
|
|
5546
5672
|
spans.push(getSpaceSpan("req-sp"));
|
|
5547
5673
|
spans.push(this.renderRequireText(element));
|
|
@@ -8106,6 +8232,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8106
8232
|
/* harmony import */ var _reactquestion_comment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_comment */ "../survey-react-ui/src/reactquestion_comment.tsx");
|
|
8107
8233
|
/* harmony import */ var _custom_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./custom-widget */ "../survey-react-ui/src/custom-widget.tsx");
|
|
8108
8234
|
/* harmony import */ var _element_header__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./element-header */ "../survey-react-ui/src/element-header.tsx");
|
|
8235
|
+
/* harmony import */ var _reactquestion_singleinputsummary__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./reactquestion_singleinputsummary */ "../survey-react-ui/src/reactquestion_singleinputsummary.tsx");
|
|
8236
|
+
/* harmony import */ var _components_breadcrumbs_breadcrumbs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/breadcrumbs/breadcrumbs */ "../survey-react-ui/src/components/breadcrumbs/breadcrumbs.tsx");
|
|
8109
8237
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
8110
8238
|
var extendStatics = function (d, b) {
|
|
8111
8239
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -8128,6 +8256,8 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
8128
8256
|
|
|
8129
8257
|
|
|
8130
8258
|
|
|
8259
|
+
|
|
8260
|
+
|
|
8131
8261
|
var SurveyQuestion = /** @class */ (function (_super) {
|
|
8132
8262
|
__extends(SurveyQuestion, _super);
|
|
8133
8263
|
function SurveyQuestion(props) {
|
|
@@ -8211,21 +8341,13 @@ var SurveyQuestion = /** @class */ (function (_super) {
|
|
|
8211
8341
|
};
|
|
8212
8342
|
var cssClasses = question.cssClasses;
|
|
8213
8343
|
var questionRender = this.renderQuestion();
|
|
8214
|
-
var errorsTop = this.question.showErrorOnTop
|
|
8215
|
-
? this.renderErrors(cssClasses, "top")
|
|
8216
|
-
: null;
|
|
8217
|
-
var errorsBottom = this.question.showErrorOnBottom
|
|
8218
|
-
? this.renderErrors(cssClasses, "bottom")
|
|
8219
|
-
: null;
|
|
8220
8344
|
var comment = question && question.hasComment ? this.renderComment(cssClasses) : null;
|
|
8221
8345
|
var descriptionUnderInput = question.hasDescriptionUnderInput
|
|
8222
8346
|
? this.renderDescription()
|
|
8223
8347
|
: null;
|
|
8224
8348
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: question.cssContent || undefined, style: contentStyle, role: "presentation" },
|
|
8225
|
-
errorsTop,
|
|
8226
8349
|
questionRender,
|
|
8227
8350
|
comment,
|
|
8228
|
-
errorsBottom,
|
|
8229
8351
|
descriptionUnderInput));
|
|
8230
8352
|
};
|
|
8231
8353
|
SurveyQuestion.prototype.renderElement = function () {
|
|
@@ -8241,15 +8363,30 @@ var SurveyQuestion = /** @class */ (function (_super) {
|
|
|
8241
8363
|
? this.renderErrors(cssClasses, "")
|
|
8242
8364
|
: null;
|
|
8243
8365
|
var rootStyle = question.getRootStyle();
|
|
8244
|
-
var
|
|
8366
|
+
var singleBreadcrumbs = question.singleInputHasActions ? this.renderSingleInputBreadcrumbs(question, cssClasses) : undefined;
|
|
8367
|
+
var singleSummary = question.singleInputSummary ? this.renderSingleInputSummary(question, cssClasses) : undefined;
|
|
8368
|
+
var singleInput = singleSummary || (question.singleInputQuestion ? this.renderSingleInputQuestion(question, cssClasses) : undefined);
|
|
8369
|
+
var questionContent = singleInput || this.wrapQuestionContent(this.renderQuestionContent());
|
|
8245
8370
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
|
|
8246
8371
|
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 },
|
|
8372
|
+
singleBreadcrumbs,
|
|
8247
8373
|
errorsAboveQuestion,
|
|
8248
8374
|
headerTop,
|
|
8249
8375
|
questionContent,
|
|
8250
8376
|
headerBottom,
|
|
8251
8377
|
errorsBelowQuestion)));
|
|
8252
8378
|
};
|
|
8379
|
+
SurveyQuestion.prototype.renderSingleInputQuestion = function (question, cssClasses) {
|
|
8380
|
+
var singleQuestion = question.singleInputQuestion;
|
|
8381
|
+
var key = singleQuestion.id;
|
|
8382
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestion, { key: key, element: singleQuestion, creator: this.creator, css: cssClasses });
|
|
8383
|
+
};
|
|
8384
|
+
SurveyQuestion.prototype.renderSingleInputBreadcrumbs = function (question, cssClasses) {
|
|
8385
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_breadcrumbs_breadcrumbs__WEBPACK_IMPORTED_MODULE_8__.SurveyBreadcrumbs, { model: question.singleInputActions, css: cssClasses });
|
|
8386
|
+
};
|
|
8387
|
+
SurveyQuestion.prototype.renderSingleInputSummary = function (question, cssClasses) {
|
|
8388
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_singleinputsummary__WEBPACK_IMPORTED_MODULE_7__.SurveyQuestionSigleInputSummary, { summary: question.singleInputSummary, creator: this.creator, css: cssClasses });
|
|
8389
|
+
};
|
|
8253
8390
|
SurveyQuestion.prototype.wrapElement = function (element) {
|
|
8254
8391
|
var survey = this.question.survey;
|
|
8255
8392
|
var wrapper = null;
|
|
@@ -8279,6 +8416,8 @@ var SurveyQuestion = /** @class */ (function (_super) {
|
|
|
8279
8416
|
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 })));
|
|
8280
8417
|
};
|
|
8281
8418
|
SurveyQuestion.prototype.renderHeader = function (question) {
|
|
8419
|
+
if (question.singleInputHideHeader)
|
|
8420
|
+
return null;
|
|
8282
8421
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_element_header__WEBPACK_IMPORTED_MODULE_6__.SurveyElementHeader, { element: question });
|
|
8283
8422
|
};
|
|
8284
8423
|
SurveyQuestion.prototype.renderErrors = function (cssClasses, location) {
|
|
@@ -8318,13 +8457,6 @@ var SurveyElementErrors = /** @class */ (function (_super) {
|
|
|
8318
8457
|
enumerable: false,
|
|
8319
8458
|
configurable: true
|
|
8320
8459
|
});
|
|
8321
|
-
Object.defineProperty(SurveyElementErrors.prototype, "location", {
|
|
8322
|
-
get: function () {
|
|
8323
|
-
return this.props.location;
|
|
8324
|
-
},
|
|
8325
|
-
enumerable: false,
|
|
8326
|
-
configurable: true
|
|
8327
|
-
});
|
|
8328
8460
|
SurveyElementErrors.prototype.getState = function (prevState) {
|
|
8329
8461
|
if (prevState === void 0) { prevState = null; }
|
|
8330
8462
|
return !prevState ? { error: 0 } : { error: prevState.error + 1 };
|
|
@@ -8732,8 +8864,9 @@ var SurveyQuestionCheckbox = /** @class */ (function (_super) {
|
|
|
8732
8864
|
if (this.question.blockedRow) {
|
|
8733
8865
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
|
|
8734
8866
|
}
|
|
8735
|
-
else
|
|
8867
|
+
else {
|
|
8736
8868
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, this.getItems(cssClasses, this.question.bodyItems));
|
|
8869
|
+
}
|
|
8737
8870
|
};
|
|
8738
8871
|
SurveyQuestionCheckbox.prototype.getItems = function (cssClasses, choices) {
|
|
8739
8872
|
var renderedItems = [];
|
|
@@ -9726,13 +9859,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9726
9859
|
/* harmony export */ });
|
|
9727
9860
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
|
|
9728
9861
|
/* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "../survey-react-ui/src/components/action-bar/action-bar.tsx");
|
|
9729
|
-
/* harmony import */ var
|
|
9730
|
-
/* harmony import */ var
|
|
9731
|
-
/* harmony import */ var
|
|
9732
|
-
/* harmony import */ var
|
|
9733
|
-
/* harmony import */ var
|
|
9734
|
-
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
9735
|
-
/* harmony import */ var _components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/file/file-choose-button */ "../survey-react-ui/src/components/file/file-choose-button.tsx");
|
|
9862
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
|
|
9863
|
+
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_factory */ "../survey-react-ui/src/reactquestion_factory.tsx");
|
|
9864
|
+
/* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/loading-indicator */ "../survey-react-ui/src/components/loading-indicator.tsx");
|
|
9865
|
+
/* harmony import */ var _components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/action-bar/action-bar-item */ "../survey-react-ui/src/components/action-bar/action-bar-item.tsx");
|
|
9866
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
9736
9867
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
9737
9868
|
var extendStatics = function (d, b) {
|
|
9738
9869
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -9755,9 +9886,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
9755
9886
|
|
|
9756
9887
|
|
|
9757
9888
|
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
// import { ReactElementFactory, SurveyFileChooseButton } from "../entries/react-ui-model";
|
|
9761
9889
|
var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
9762
9890
|
__extends(SurveyQuestionFile, _super);
|
|
9763
9891
|
function SurveyQuestionFile(props) {
|
|
@@ -9776,8 +9904,6 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
9776
9904
|
var loadingIndicator = this.question.showLoadingIndicator ? this.renderLoadingIndicator() : null;
|
|
9777
9905
|
var video = this.question.isPlayingVideo ? this.renderVideo() : null;
|
|
9778
9906
|
var fileDecorator = this.question.showFileDecorator ? this.renderFileDecorator() : null;
|
|
9779
|
-
var clearButton = this.question.showRemoveButton ? this.renderClearButton(this.question.cssClasses.removeButton) : null;
|
|
9780
|
-
var clearButtonBottom = this.question.showRemoveButtonBottom ? this.renderClearButton(this.question.cssClasses.removeButtonBottom) : null;
|
|
9781
9907
|
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;
|
|
9782
9908
|
var fileInput;
|
|
9783
9909
|
if (this.question.isReadOnlyAttr) {
|
|
@@ -9798,48 +9924,33 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
9798
9924
|
fileDecorator,
|
|
9799
9925
|
loadingIndicator,
|
|
9800
9926
|
video,
|
|
9801
|
-
clearButton,
|
|
9802
9927
|
preview,
|
|
9803
|
-
clearButtonBottom,
|
|
9804
9928
|
fileNavigator)));
|
|
9805
9929
|
};
|
|
9806
9930
|
SurveyQuestionFile.prototype.renderFileDecorator = function () {
|
|
9807
|
-
var chooseButton = this.question.showChooseButton ? this.renderChooseButton() : null;
|
|
9808
9931
|
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;
|
|
9809
|
-
var noFileChosen = this.question.isEmpty() ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.question.cssClasses.noFileChosen }, this.question.noFileChosenCaption)) : null;
|
|
9810
9932
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getFileDecoratorCss() },
|
|
9811
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)),
|
|
9812
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.wrapper },
|
|
9813
|
-
chooseButton,
|
|
9814
|
-
actionsContainer,
|
|
9815
|
-
noFileChosen)));
|
|
9816
|
-
};
|
|
9817
|
-
SurveyQuestionFile.prototype.renderChooseButton = function () {
|
|
9818
|
-
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_8__.SurveyFileChooseButton, { data: { question: this.question } });
|
|
9819
|
-
};
|
|
9820
|
-
SurveyQuestionFile.prototype.renderClearButton = function (className) {
|
|
9821
|
-
return !this.question.isUploading ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { type: "button", onClick: this.question.doClean, className: className },
|
|
9822
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, this.question.clearButtonCaption),
|
|
9823
|
-
(!!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;
|
|
9933
|
+
this.question.showDragAreaPlaceholder ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)) : false,
|
|
9934
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.wrapper }, actionsContainer)));
|
|
9824
9935
|
};
|
|
9825
9936
|
SurveyQuestionFile.prototype.renderPreview = function () {
|
|
9826
|
-
return
|
|
9937
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_6__.ReactElementFactory.Instance.createElement("sv-file-preview", { question: this.question });
|
|
9827
9938
|
};
|
|
9828
9939
|
SurveyQuestionFile.prototype.renderLoadingIndicator = function () {
|
|
9829
9940
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.loadingIndicator },
|
|
9830
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
9941
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__.LoadingIndicatorComponent, null));
|
|
9831
9942
|
};
|
|
9832
9943
|
SurveyQuestionFile.prototype.renderVideo = function () {
|
|
9833
9944
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.videoContainer },
|
|
9834
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
9835
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
9945
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.changeCameraAction }),
|
|
9946
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.closeCameraAction }),
|
|
9836
9947
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("video", { autoPlay: true, playsInline: true, id: this.question.videoId, className: this.question.cssClasses.video }),
|
|
9837
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
9948
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_5__.SurveyAction, { item: this.question.takePictureAction })));
|
|
9838
9949
|
};
|
|
9839
9950
|
return SurveyQuestionFile;
|
|
9840
|
-
}(
|
|
9951
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionElementBase));
|
|
9841
9952
|
|
|
9842
|
-
|
|
9953
|
+
_reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.registerQuestion("file", function (props) {
|
|
9843
9954
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionFile, props);
|
|
9844
9955
|
});
|
|
9845
9956
|
|
|
@@ -10012,14 +10123,14 @@ var SurveyQuestionMatrix = /** @class */ (function (_super) {
|
|
|
10012
10123
|
var key = "row-" + row.name + "-" + i;
|
|
10013
10124
|
rows.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixRow, { key: key, question: this.question, cssClasses: cssClasses, row: row, isFirst: i == 0 }));
|
|
10014
10125
|
}
|
|
10015
|
-
var header = !this.question.showHeader ? null : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("thead",
|
|
10126
|
+
var header = !this.question.showHeader ? null : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("thead", { role: "presentation" },
|
|
10016
10127
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr", null,
|
|
10017
10128
|
rowsTH,
|
|
10018
10129
|
headers)));
|
|
10019
10130
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
|
|
10020
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset",
|
|
10021
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("legend", { className: "sv-
|
|
10022
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("table", { className: this.question.getTableCss() },
|
|
10131
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset", { role: "radiogroup" },
|
|
10132
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("legend", { className: "sv-visuallyhidden" }, this.question.locTitle.renderedHtml),
|
|
10133
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("table", { className: this.question.getTableCss(), role: "presentation" },
|
|
10023
10134
|
header,
|
|
10024
10135
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody", null, rows)))));
|
|
10025
10136
|
};
|
|
@@ -10494,10 +10605,7 @@ var SurveyQuestionMatrixDropdownBase = /** @class */ (function (_super) {
|
|
|
10494
10605
|
};
|
|
10495
10606
|
SurveyQuestionMatrixDropdownBase.prototype.renderTableDiv = function () {
|
|
10496
10607
|
var _this = this;
|
|
10497
|
-
|
|
10498
|
-
? { overflowX: "scroll" }
|
|
10499
|
-
: {};
|
|
10500
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { style: divStyle, className: this.question.cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
|
|
10608
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
|
|
10501
10609
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixTable, { question: this.question, creator: this.creator, wrapCell: function (cell, element, reason) { return _this.wrapCell(cell, element, reason); } })));
|
|
10502
10610
|
};
|
|
10503
10611
|
return SurveyQuestionMatrixDropdownBase;
|
|
@@ -10623,7 +10731,7 @@ var SurveyQuestionMatrixDropdownCell = /** @class */ (function (_super) {
|
|
|
10623
10731
|
row: this.cell.row,
|
|
10624
10732
|
column: this.cell.cell.column,
|
|
10625
10733
|
};
|
|
10626
|
-
this.question.survey.matrixAfterCellRender(
|
|
10734
|
+
this.question.survey.matrixAfterCellRender(options);
|
|
10627
10735
|
this.question.afterRenderCore(el);
|
|
10628
10736
|
}
|
|
10629
10737
|
};
|
|
@@ -10702,7 +10810,8 @@ var SurveyQuestionMatrixDropdownCell = /** @class */ (function (_super) {
|
|
|
10702
10810
|
__webpack_require__.r(__webpack_exports__);
|
|
10703
10811
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10704
10812
|
/* harmony export */ SurveyQuestionMatrixDynamic: () => (/* binding */ SurveyQuestionMatrixDynamic),
|
|
10705
|
-
/* harmony export */ SurveyQuestionMatrixDynamicAddButton: () => (/* binding */ SurveyQuestionMatrixDynamicAddButton)
|
|
10813
|
+
/* harmony export */ SurveyQuestionMatrixDynamicAddButton: () => (/* binding */ SurveyQuestionMatrixDynamicAddButton),
|
|
10814
|
+
/* harmony export */ SurveyQuestionMatrixDynamicPlaceholder: () => (/* binding */ SurveyQuestionMatrixDynamicPlaceholder)
|
|
10706
10815
|
/* harmony export */ });
|
|
10707
10816
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
|
|
10708
10817
|
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactquestion_factory */ "../survey-react-ui/src/reactquestion_factory.tsx");
|
|
@@ -10768,12 +10877,7 @@ var SurveyQuestionMatrixDynamic = /** @class */ (function (_super) {
|
|
|
10768
10877
|
return this.renderAddRowButton(cssClasses);
|
|
10769
10878
|
};
|
|
10770
10879
|
SurveyQuestionMatrixDynamic.prototype.renderNoRowsContent = function (cssClasses) {
|
|
10771
|
-
|
|
10772
|
-
var textDiv = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.noRowsText }, text);
|
|
10773
|
-
var btn = this.matrix.renderedTable.showAddRow ? this.renderAddRowButton(cssClasses, true) : undefined;
|
|
10774
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.noRowsSection },
|
|
10775
|
-
textDiv,
|
|
10776
|
-
btn));
|
|
10880
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement("sv-placeholder-matrixdynamic", { cssClasses: cssClasses, question: this.matrix });
|
|
10777
10881
|
};
|
|
10778
10882
|
SurveyQuestionMatrixDynamic.prototype.renderAddRowButton = function (cssClasses, isEmptySection) {
|
|
10779
10883
|
if (isEmptySection === void 0) { isEmptySection = false; }
|
|
@@ -10816,9 +10920,32 @@ var SurveyQuestionMatrixDynamicAddButton = /** @class */ (function (_super) {
|
|
|
10816
10920
|
return SurveyQuestionMatrixDynamicAddButton;
|
|
10817
10921
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_4__.ReactSurveyElement));
|
|
10818
10922
|
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10923
|
+
var SurveyQuestionMatrixDynamicPlaceholder = /** @class */ (function (_super) {
|
|
10924
|
+
__extends(SurveyQuestionMatrixDynamicPlaceholder, _super);
|
|
10925
|
+
function SurveyQuestionMatrixDynamicPlaceholder(props) {
|
|
10926
|
+
return _super.call(this, props) || this;
|
|
10927
|
+
}
|
|
10928
|
+
SurveyQuestionMatrixDynamicPlaceholder.prototype.renderElement = function () {
|
|
10929
|
+
var cssClasses = this.props.cssClasses;
|
|
10930
|
+
var matrix = this.props.question;
|
|
10931
|
+
var showAddButton = matrix.renderedTable.showAddRow;
|
|
10932
|
+
var text = this.renderLocString(matrix.locNoRowsText);
|
|
10933
|
+
var textDiv = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.noRowsText }, text);
|
|
10934
|
+
var btn = showAddButton ? this.renderAddRowButton(cssClasses, matrix) : undefined;
|
|
10935
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.noRowsSection },
|
|
10936
|
+
textDiv,
|
|
10937
|
+
btn));
|
|
10938
|
+
};
|
|
10939
|
+
SurveyQuestionMatrixDynamicPlaceholder.prototype.renderAddRowButton = function (cssClasses, question) {
|
|
10940
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn", {
|
|
10941
|
+
question: question, cssClasses: cssClasses, isEmptySection: true
|
|
10942
|
+
});
|
|
10943
|
+
};
|
|
10944
|
+
return SurveyQuestionMatrixDynamicPlaceholder;
|
|
10945
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_4__.ReactSurveyElement));
|
|
10946
|
+
|
|
10947
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn", function (props) { return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixDynamicAddButton, props); });
|
|
10948
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("sv-placeholder-matrixdynamic", function (props) { return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionMatrixDynamicPlaceholder, props); });
|
|
10822
10949
|
|
|
10823
10950
|
|
|
10824
10951
|
/***/ }),
|
|
@@ -10982,17 +11109,15 @@ _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instanc
|
|
|
10982
11109
|
__webpack_require__.r(__webpack_exports__);
|
|
10983
11110
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10984
11111
|
/* harmony export */ SurveyQuestionPanelDynamic: () => (/* binding */ SurveyQuestionPanelDynamic),
|
|
10985
|
-
/* harmony export */ SurveyQuestionPanelDynamicItem: () => (/* binding */ SurveyQuestionPanelDynamicItem)
|
|
11112
|
+
/* harmony export */ SurveyQuestionPanelDynamicItem: () => (/* binding */ SurveyQuestionPanelDynamicItem),
|
|
11113
|
+
/* harmony export */ SurveyQuestionPanelDynamicPlaceholder: () => (/* binding */ SurveyQuestionPanelDynamicPlaceholder)
|
|
10986
11114
|
/* harmony export */ });
|
|
10987
11115
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
|
|
10988
11116
|
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
|
|
10989
11117
|
/* harmony import */ var _panel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./panel */ "../survey-react-ui/src/panel.tsx");
|
|
10990
11118
|
/* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_factory */ "../survey-react-ui/src/reactquestion_factory.tsx");
|
|
10991
11119
|
/* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "../survey-react-ui/src/components/action-bar/action-bar.tsx");
|
|
10992
|
-
/* harmony import */ var
|
|
10993
|
-
/* harmony import */ var _components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/paneldynamic-actions/paneldynamic-prev-btn */ "../survey-react-ui/src/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");
|
|
10994
|
-
/* harmony import */ var _components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/paneldynamic-actions/paneldynamic-progress-text */ "../survey-react-ui/src/components/paneldynamic-actions/paneldynamic-progress-text.tsx");
|
|
10995
|
-
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
11120
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
10996
11121
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
10997
11122
|
var extendStatics = function (d, b) {
|
|
10998
11123
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -11015,8 +11140,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
11015
11140
|
|
|
11016
11141
|
|
|
11017
11142
|
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
11143
|
var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
|
|
11021
11144
|
__extends(SurveyQuestionPanelDynamic, _super);
|
|
11022
11145
|
function SurveyQuestionPanelDynamic(props) {
|
|
@@ -11057,70 +11180,29 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
|
|
|
11057
11180
|
SurveyQuestionPanelDynamic.prototype.renderElement = function () {
|
|
11058
11181
|
var _this = this;
|
|
11059
11182
|
var panels = [];
|
|
11183
|
+
var cssClasses = this.question.cssClasses;
|
|
11060
11184
|
this.question.renderedPanels.forEach(function (panel, index) {
|
|
11061
|
-
panels.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionPanelDynamicItem, { key: panel.id, element: panel, question: _this.question, index: index, cssClasses:
|
|
11185
|
+
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 }));
|
|
11062
11186
|
});
|
|
11063
|
-
var
|
|
11064
|
-
? this.
|
|
11065
|
-
: null;
|
|
11066
|
-
var navTop = this.question.isProgressTopShowing
|
|
11067
|
-
? this.renderNavigator()
|
|
11068
|
-
: null;
|
|
11069
|
-
var navBottom = this.question.isProgressBottomShowing
|
|
11070
|
-
? this.renderNavigator()
|
|
11187
|
+
var rangeTop = this.question.isRangeShowing && this.question.isProgressTopShowing
|
|
11188
|
+
? this.renderRange()
|
|
11071
11189
|
: null;
|
|
11072
11190
|
var navV2 = this.renderNavigatorV2();
|
|
11073
|
-
var noEntriesPlaceholder = this.renderPlaceholder();
|
|
11074
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className:
|
|
11191
|
+
var noEntriesPlaceholder = this.renderPlaceholder(cssClasses);
|
|
11192
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.root },
|
|
11075
11193
|
this.question.hasTabbedMenu ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getTabsContainerCss() },
|
|
11076
11194
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_4__.SurveyActionBar, { model: this.question.tabbedMenu })) : null,
|
|
11077
11195
|
noEntriesPlaceholder,
|
|
11078
|
-
|
|
11196
|
+
rangeTop,
|
|
11079
11197
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.panelsContainer }, panels),
|
|
11080
|
-
navBottom,
|
|
11081
|
-
btnAdd,
|
|
11082
11198
|
navV2));
|
|
11083
11199
|
};
|
|
11084
|
-
SurveyQuestionPanelDynamic.prototype.renderNavigator = function () {
|
|
11085
|
-
if (!this.question["showLegacyNavigation"]) {
|
|
11086
|
-
if (this.question.isRangeShowing && this.question.isProgressTopShowing) {
|
|
11087
|
-
return this.renderRange();
|
|
11088
|
-
}
|
|
11089
|
-
else {
|
|
11090
|
-
return null;
|
|
11091
|
-
}
|
|
11092
|
-
}
|
|
11093
|
-
var range = this.question.isRangeShowing ? this.renderRange() : null;
|
|
11094
|
-
var btnPrev = this.rendrerPrevButton();
|
|
11095
|
-
var btnNext = this.rendrerNextButton();
|
|
11096
|
-
var btnAdd = this.renderAddRowButton();
|
|
11097
|
-
var progressClass = this.question.isProgressTopShowing
|
|
11098
|
-
? this.question.cssClasses.progressTop
|
|
11099
|
-
: this.question.cssClasses.progressBottom;
|
|
11100
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: progressClass },
|
|
11101
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { style: { clear: "both" } },
|
|
11102
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progressContainer },
|
|
11103
|
-
btnPrev,
|
|
11104
|
-
range,
|
|
11105
|
-
btnNext),
|
|
11106
|
-
btnAdd,
|
|
11107
|
-
this.renderProgressText())));
|
|
11108
|
-
};
|
|
11109
|
-
SurveyQuestionPanelDynamic.prototype.renderProgressText = function () {
|
|
11110
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_7__.SurveyQuestionPanelDynamicProgressText, { data: { question: this.question } }));
|
|
11111
|
-
};
|
|
11112
|
-
SurveyQuestionPanelDynamic.prototype.rendrerPrevButton = function () {
|
|
11113
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_6__.SurveyQuestionPanelDynamicPrevButton, { data: { question: this.question } }));
|
|
11114
|
-
};
|
|
11115
|
-
SurveyQuestionPanelDynamic.prototype.rendrerNextButton = function () {
|
|
11116
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_5__.SurveyQuestionPanelDynamicNextButton, { data: { question: this.question } }));
|
|
11117
|
-
};
|
|
11118
11200
|
SurveyQuestionPanelDynamic.prototype.renderRange = function () {
|
|
11119
11201
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progress },
|
|
11120
11202
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.progressBar, style: { width: this.question.progress }, role: "progressbar" })));
|
|
11121
11203
|
};
|
|
11122
11204
|
SurveyQuestionPanelDynamic.prototype.renderAddRowButton = function () {
|
|
11123
|
-
return
|
|
11205
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn", {
|
|
11124
11206
|
data: { question: this.question }
|
|
11125
11207
|
});
|
|
11126
11208
|
};
|
|
@@ -11134,12 +11216,9 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
|
|
|
11134
11216
|
this.question.footerToolbar.visibleActions.length ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.footerButtonsContainer },
|
|
11135
11217
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_4__.SurveyActionBar, { model: this.question.footerToolbar }))) : null));
|
|
11136
11218
|
};
|
|
11137
|
-
SurveyQuestionPanelDynamic.prototype.renderPlaceholder = function () {
|
|
11138
|
-
if (this.question.getShowNoEntriesPlaceholder())
|
|
11139
|
-
return
|
|
11140
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, this.renderLocString(this.question.locNoEntriesText)),
|
|
11141
|
-
this.renderAddRowButton()));
|
|
11142
|
-
}
|
|
11219
|
+
SurveyQuestionPanelDynamic.prototype.renderPlaceholder = function (cssClasses) {
|
|
11220
|
+
if (this.question.getShowNoEntriesPlaceholder())
|
|
11221
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-placeholder-paneldynamic", { cssClasses: cssClasses, question: this.question });
|
|
11143
11222
|
return null;
|
|
11144
11223
|
};
|
|
11145
11224
|
return SurveyQuestionPanelDynamic;
|
|
@@ -11185,7 +11264,7 @@ var SurveyQuestionPanelDynamicItem = /** @class */ (function (_super) {
|
|
|
11185
11264
|
SurveyQuestionPanelDynamicItem.prototype.renderButton = function () {
|
|
11186
11265
|
if (!this.question.canRenderRemovePanelOnRight(this.panel))
|
|
11187
11266
|
return null;
|
|
11188
|
-
return
|
|
11267
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn", {
|
|
11189
11268
|
data: { question: this.question, panel: this.panel }
|
|
11190
11269
|
});
|
|
11191
11270
|
};
|
|
@@ -11195,6 +11274,27 @@ var SurveyQuestionPanelDynamicItem = /** @class */ (function (_super) {
|
|
|
11195
11274
|
_reactquestion_factory__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.registerQuestion("paneldynamic", function (props) {
|
|
11196
11275
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionPanelDynamic, props);
|
|
11197
11276
|
});
|
|
11277
|
+
var SurveyQuestionPanelDynamicPlaceholder = /** @class */ (function (_super) {
|
|
11278
|
+
__extends(SurveyQuestionPanelDynamicPlaceholder, _super);
|
|
11279
|
+
function SurveyQuestionPanelDynamicPlaceholder(props) {
|
|
11280
|
+
return _super.call(this, props) || this;
|
|
11281
|
+
}
|
|
11282
|
+
SurveyQuestionPanelDynamicPlaceholder.prototype.renderElement = function () {
|
|
11283
|
+
var cssClasses = this.props.cssClasses;
|
|
11284
|
+
var question = this.props.question;
|
|
11285
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.noEntriesPlaceholder },
|
|
11286
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, this.renderLocString(question.locNoEntriesText)),
|
|
11287
|
+
this.renderAddRowButton(question)));
|
|
11288
|
+
};
|
|
11289
|
+
SurveyQuestionPanelDynamicPlaceholder.prototype.renderAddRowButton = function (question) {
|
|
11290
|
+
return _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn", {
|
|
11291
|
+
data: { question: question }
|
|
11292
|
+
});
|
|
11293
|
+
};
|
|
11294
|
+
return SurveyQuestionPanelDynamicPlaceholder;
|
|
11295
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElement));
|
|
11296
|
+
|
|
11297
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.registerElement("sv-placeholder-paneldynamic", function (props) { return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionPanelDynamicPlaceholder, props); });
|
|
11198
11298
|
|
|
11199
11299
|
|
|
11200
11300
|
/***/ }),
|
|
@@ -11291,8 +11391,9 @@ var SurveyQuestionRadiogroup = /** @class */ (function (_super) {
|
|
|
11291
11391
|
if (this.question.blockedRow) {
|
|
11292
11392
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
|
|
11293
11393
|
}
|
|
11294
|
-
else
|
|
11394
|
+
else {
|
|
11295
11395
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, this.getItems(cssClasses, this.question.bodyItems));
|
|
11396
|
+
}
|
|
11296
11397
|
};
|
|
11297
11398
|
SurveyQuestionRadiogroup.prototype.getItems = function (cssClasses, choices) {
|
|
11298
11399
|
var items = [];
|
|
@@ -11673,7 +11774,7 @@ var SurveyQuestionRankingItem = /** @class */ (function (_super) {
|
|
|
11673
11774
|
};
|
|
11674
11775
|
SurveyQuestionRankingItem.prototype.renderElement = function () {
|
|
11675
11776
|
var itemContent = _element_factory__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement(this.question.itemComponent, { item: this.item, cssClasses: this.cssClasses });
|
|
11676
|
-
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 },
|
|
11777
|
+
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 },
|
|
11677
11778
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { tabIndex: -1, style: { outline: "none" } },
|
|
11678
11779
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.cssClasses.itemGhostNode }),
|
|
11679
11780
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.cssClasses.itemContent },
|
|
@@ -11810,6 +11911,96 @@ _reactquestion_factory__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instanc
|
|
|
11810
11911
|
});
|
|
11811
11912
|
|
|
11812
11913
|
|
|
11914
|
+
/***/ }),
|
|
11915
|
+
|
|
11916
|
+
/***/ "../survey-react-ui/src/reactquestion_singleinputsummary.tsx":
|
|
11917
|
+
/*!*******************************************************************!*\
|
|
11918
|
+
!*** ../survey-react-ui/src/reactquestion_singleinputsummary.tsx ***!
|
|
11919
|
+
\*******************************************************************/
|
|
11920
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
11921
|
+
|
|
11922
|
+
"use strict";
|
|
11923
|
+
__webpack_require__.r(__webpack_exports__);
|
|
11924
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11925
|
+
/* harmony export */ SurveyQuestionSigleInputSummary: () => (/* binding */ SurveyQuestionSigleInputSummary)
|
|
11926
|
+
/* harmony export */ });
|
|
11927
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
|
|
11928
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
|
|
11929
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./element-factory */ "../survey-react-ui/src/element-factory.tsx");
|
|
11930
|
+
/* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "../survey-react-ui/src/components/svg-icon/svg-icon.tsx");
|
|
11931
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
11932
|
+
var extendStatics = function (d, b) {
|
|
11933
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11934
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11935
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
11936
|
+
return extendStatics(d, b);
|
|
11937
|
+
};
|
|
11938
|
+
return function (d, b) {
|
|
11939
|
+
if (typeof b !== "function" && b !== null)
|
|
11940
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11941
|
+
extendStatics(d, b);
|
|
11942
|
+
function __() { this.constructor = d; }
|
|
11943
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11944
|
+
};
|
|
11945
|
+
})();
|
|
11946
|
+
|
|
11947
|
+
|
|
11948
|
+
|
|
11949
|
+
|
|
11950
|
+
var SurveyQuestionSigleInputSummary = /** @class */ (function (_super) {
|
|
11951
|
+
__extends(SurveyQuestionSigleInputSummary, _super);
|
|
11952
|
+
function SurveyQuestionSigleInputSummary(props) {
|
|
11953
|
+
return _super.call(this, props) || this;
|
|
11954
|
+
}
|
|
11955
|
+
Object.defineProperty(SurveyQuestionSigleInputSummary.prototype, "css", {
|
|
11956
|
+
get: function () {
|
|
11957
|
+
return this.props.css;
|
|
11958
|
+
},
|
|
11959
|
+
enumerable: false,
|
|
11960
|
+
configurable: true
|
|
11961
|
+
});
|
|
11962
|
+
Object.defineProperty(SurveyQuestionSigleInputSummary.prototype, "summary", {
|
|
11963
|
+
get: function () {
|
|
11964
|
+
return this.props.summary;
|
|
11965
|
+
},
|
|
11966
|
+
enumerable: false,
|
|
11967
|
+
configurable: true
|
|
11968
|
+
});
|
|
11969
|
+
SurveyQuestionSigleInputSummary.prototype.renderElement = function () {
|
|
11970
|
+
if (!this.summary)
|
|
11971
|
+
return null;
|
|
11972
|
+
return this.summary.isEmpty() ? this.renderNoItems() : this.renderItems();
|
|
11973
|
+
};
|
|
11974
|
+
SurveyQuestionSigleInputSummary.prototype.renderItems = function () {
|
|
11975
|
+
var _this = this;
|
|
11976
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.summary }, this.summary.items.map(function (item, index) { return _this.renderItem(item, index); })));
|
|
11977
|
+
};
|
|
11978
|
+
SurveyQuestionSigleInputSummary.prototype.renderNoItems = function () {
|
|
11979
|
+
var q = this.summary.question;
|
|
11980
|
+
var placeholder = _element_factory__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement("sv-placeholder-" + q.getTemplate(), { cssClasses: this.css, question: q });
|
|
11981
|
+
return placeholder || react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, this.renderLocString(this.summary.noEntry));
|
|
11982
|
+
};
|
|
11983
|
+
SurveyQuestionSigleInputSummary.prototype.renderItem = function (item, index) {
|
|
11984
|
+
var btnEdit = item.btnEdit ?
|
|
11985
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: this.css.summaryRowActionEdit, onClick: function () { return item.btnEdit.action(); }, title: item.btnEdit.title },
|
|
11986
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-editsmall-16x16", iconSize: "auto" })) : null;
|
|
11987
|
+
var btnDelete = item.showRemove && item.btnRemove ?
|
|
11988
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: this.css.summaryRowActionDelete, onClick: function () { return item.btnRemove.action(); }, title: item.btnRemove.title },
|
|
11989
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-delete-16x16", iconSize: "auto" })) : null;
|
|
11990
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.summaryRow, key: index },
|
|
11991
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.summaryRowContent }, this.renderLocString(item.locText)),
|
|
11992
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.css.summaryRowActions },
|
|
11993
|
+
btnEdit,
|
|
11994
|
+
btnDelete));
|
|
11995
|
+
};
|
|
11996
|
+
return SurveyQuestionSigleInputSummary;
|
|
11997
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElement));
|
|
11998
|
+
|
|
11999
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("sv-singleinput-summary", function (props) {
|
|
12000
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyQuestionSigleInputSummary, props);
|
|
12001
|
+
});
|
|
12002
|
+
|
|
12003
|
+
|
|
11813
12004
|
/***/ }),
|
|
11814
12005
|
|
|
11815
12006
|
/***/ "../survey-react-ui/src/reactquestion_tagbox.tsx":
|
|
@@ -11950,7 +12141,7 @@ var SurveyQuestionText = /** @class */ (function (_super) {
|
|
|
11950
12141
|
// disabled={this.isDisplayMode}
|
|
11951
12142
|
disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: inputClass, type: this.question.inputType,
|
|
11952
12143
|
//ref={this.controlRef}
|
|
11953
|
-
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 }),
|
|
12144
|
+
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 }),
|
|
11954
12145
|
counter));
|
|
11955
12146
|
};
|
|
11956
12147
|
SurveyQuestionText.prototype.renderElement = function () {
|
|
@@ -12366,7 +12557,7 @@ var SurveyQuestionSignaturePad = /** @class */ (function (_super) {
|
|
|
12366
12557
|
SurveyQuestionSignaturePad.prototype.renderBackgroundImage = function () {
|
|
12367
12558
|
if (!this.question.backgroundImage)
|
|
12368
12559
|
return null;
|
|
12369
|
-
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("img", { className: this.question.cssClasses.backgroundImage, src: this.question.backgroundImage, style: { width: this.question.renderedCanvasWidth } });
|
|
12560
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("img", { className: this.question.cssClasses.backgroundImage, src: this.question.backgroundImage, style: { width: this.question.renderedCanvasWidth }, role: "presentation" });
|
|
12370
12561
|
};
|
|
12371
12562
|
SurveyQuestionSignaturePad.prototype.renderLoadingIndicator = function () {
|
|
12372
12563
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.loadingIndicator },
|
|
@@ -13290,7 +13481,7 @@ var preact = react__WEBPACK_IMPORTED_MODULE_0__;
|
|
|
13290
13481
|
|
|
13291
13482
|
|
|
13292
13483
|
|
|
13293
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.0.
|
|
13484
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.0.6"), "survey-js-ui");
|
|
13294
13485
|
|
|
13295
13486
|
})();
|
|
13296
13487
|
|