survey-react 1.12.2 → 1.12.4
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/defaultV2.css +65 -50
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +69 -84
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +59 -24
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +102 -42
- package/survey.react.js +624 -279
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/defaultV2.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.4
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -465,6 +465,16 @@ button.sv-action-bar-item {
|
|
465
465
|
position: absolute;
|
466
466
|
z-index: 10000;
|
467
467
|
font-family: var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));
|
468
|
+
min-width: 100px;
|
469
|
+
max-width: 400px;
|
470
|
+
}
|
471
|
+
.sv-drag-drop-choices-shortcut .sv-ranking-item {
|
472
|
+
height: calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
473
|
+
}
|
474
|
+
.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,
|
475
|
+
.sv-drag-drop-choices-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor {
|
476
|
+
overflow: hidden;
|
477
|
+
white-space: nowrap;
|
468
478
|
}
|
469
479
|
|
470
480
|
.sv-drag-drop-choices-shortcut__content.sv-drag-drop-choices-shortcut__content {
|
@@ -513,18 +523,12 @@ sv-popup {
|
|
513
523
|
|
514
524
|
.sv-popup__container {
|
515
525
|
background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
|
516
|
-
box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
|
526
|
+
box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
|
517
527
|
border-radius: var(--sjs-corner-radius, 4px);
|
518
528
|
position: absolute;
|
519
529
|
padding: 0;
|
520
530
|
}
|
521
531
|
|
522
|
-
.sv-popup__shadow {
|
523
|
-
width: 100%;
|
524
|
-
height: 100%;
|
525
|
-
border-radius: var(--sjs-corner-radius, 4px);
|
526
|
-
}
|
527
|
-
|
528
532
|
.sv-popup__body-content {
|
529
533
|
background-color: var(--sjs-general-backcolor, var(--background, #fff));
|
530
534
|
border-radius: var(--sjs-corner-radius, 4px);
|
@@ -551,23 +555,17 @@ sv-popup {
|
|
551
555
|
display: flex;
|
552
556
|
}
|
553
557
|
|
554
|
-
.sv-popup--modal > .sv-popup__container > .sv-
|
555
|
-
box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
|
558
|
+
.sv-popup--modal > .sv-popup__container > .sv-popup__body-content {
|
556
559
|
background-color: var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9));
|
557
560
|
padding: calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
558
561
|
height: auto;
|
559
|
-
|
560
|
-
.sv-popup--modal > .sv-popup__container > .sv-popup__shadow > .sv-popup__body-content .sv-popup__body-footer {
|
561
|
-
padding-bottom: 2px;
|
562
|
+
gap: calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
562
563
|
}
|
563
564
|
|
564
565
|
.sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar {
|
565
566
|
overflow: visible;
|
566
567
|
}
|
567
568
|
|
568
|
-
.sv-popup--confirm-delete .sv-popup__shadow {
|
569
|
-
height: initial;
|
570
|
-
}
|
571
569
|
.sv-popup--confirm-delete .sv-popup__container {
|
572
570
|
border-radius: var(--sjs-base-unit, var(--base-unit, 8px));
|
573
571
|
}
|
@@ -579,7 +577,6 @@ sv-popup {
|
|
579
577
|
}
|
580
578
|
.sv-popup--confirm-delete .sv-popup__body-header {
|
581
579
|
color: var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, 0.91)));
|
582
|
-
margin-bottom: 0;
|
583
580
|
align-self: self-start;
|
584
581
|
/* UI/Default */
|
585
582
|
font-family: var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));
|
@@ -593,7 +590,6 @@ sv-popup {
|
|
593
590
|
display: none;
|
594
591
|
}
|
595
592
|
.sv-popup--confirm-delete .sv-popup__body-footer {
|
596
|
-
padding-bottom: 0;
|
597
593
|
max-width: max-content;
|
598
594
|
}
|
599
595
|
.sv-popup--confirm-delete .sv-popup__body-footer .sv-action-bar {
|
@@ -612,6 +608,7 @@ sv-popup {
|
|
612
608
|
width: 100%;
|
613
609
|
padding-top: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
614
610
|
border: unset;
|
611
|
+
box-shadow: unset;
|
615
612
|
box-sizing: content-box;
|
616
613
|
}
|
617
614
|
.sv-popup--overlay .sv-popup__body-content {
|
@@ -619,32 +616,27 @@ sv-popup {
|
|
619
616
|
max-width: 100vw;
|
620
617
|
border-radius: calc(4 * (var(--sjs-corner-radius, 4px))) calc(4 * (var(--sjs-corner-radius, 4px))) 0px 0px;
|
621
618
|
background: var(--sjs-general-backcolor, var(--background, #fff));
|
622
|
-
box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
|
623
619
|
padding: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
624
620
|
height: calc(100% - 1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
625
621
|
}
|
626
622
|
.sv-popup--overlay .sv-popup__scrolling-content {
|
627
623
|
height: calc(100% - 10 * var(--base-unit, 8px));
|
628
624
|
}
|
629
|
-
.sv-popup--overlay .sv-popup__body-footer {
|
630
|
-
margin-top: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
631
|
-
}
|
632
625
|
.sv-popup--overlay .sv-popup__body-footer .sv-action-bar {
|
633
626
|
width: 100%;
|
634
627
|
}
|
635
628
|
.sv-popup--overlay .sv-popup__body-footer-item {
|
636
629
|
width: 100%;
|
637
630
|
}
|
631
|
+
.sv-popup--overlay .sv-popup__body-footer .sv-action {
|
632
|
+
flex: 1 0 0;
|
633
|
+
}
|
638
634
|
.sv-popup--overlay .sv-popup__button.sv-popup__button {
|
639
635
|
background-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
|
640
636
|
border: 2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));
|
641
637
|
color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
|
642
638
|
}
|
643
639
|
|
644
|
-
.sv-popup--overlay .sv-popup__body-footer .sv-action {
|
645
|
-
flex: 1 0 0;
|
646
|
-
}
|
647
|
-
|
648
640
|
.sv-popup--modal .sv-popup__scrolling-content {
|
649
641
|
padding: 2px;
|
650
642
|
margin: -2px;
|
@@ -719,23 +711,17 @@ sv-popup {
|
|
719
711
|
line-height: calc(2 * (var(--sjs-font-size, 16px)));
|
720
712
|
font-style: normal;
|
721
713
|
font-weight: 700;
|
722
|
-
margin-bottom: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
723
714
|
color: var(--sjs-general-forecolor, var(--foreground, #161616));
|
724
715
|
}
|
725
716
|
|
726
717
|
.sv-popup__body-footer {
|
727
718
|
display: flex;
|
728
|
-
margin-top: calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
729
719
|
}
|
730
720
|
|
731
721
|
.sv-popup__body-footer .sv-action-bar {
|
732
722
|
gap: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
733
723
|
}
|
734
724
|
|
735
|
-
.sv-popup__button {
|
736
|
-
margin: calc(0.25 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
737
|
-
}
|
738
|
-
|
739
725
|
.sv-popup--modal .sv-list__filter,
|
740
726
|
.sv-popup--overlay .sv-list__filter {
|
741
727
|
padding-top: var(--sjs-base-unit, var(--base-unit, 8px));
|
@@ -748,16 +734,13 @@ sv-popup {
|
|
748
734
|
.sv-popup--dropdown .sv-list__filter {
|
749
735
|
margin-bottom: var(--sjs-base-unit, var(--base-unit, 8px));
|
750
736
|
}
|
751
|
-
.sv-popup--dropdown .sv-popup__shadow {
|
752
|
-
box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));
|
753
|
-
}
|
754
737
|
.sv-popup--dropdown .sv-popup__body-content {
|
755
738
|
background-color: var(--sjs-general-backcolor, var(--background, #fff));
|
756
739
|
padding: var(--sjs-base-unit, var(--base-unit, 8px)) 0;
|
757
740
|
height: 100%;
|
758
741
|
}
|
759
742
|
|
760
|
-
.sv-popup--dropdown > .sv-popup__container > .sv-
|
743
|
+
.sv-popup--dropdown > .sv-popup__container > .sv-popup__body-content .sv-list {
|
761
744
|
background-color: transparent;
|
762
745
|
}
|
763
746
|
|
@@ -770,6 +753,7 @@ sv-popup {
|
|
770
753
|
|
771
754
|
.sv-popup--overlay .sv-popup__body-content {
|
772
755
|
background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
|
756
|
+
gap: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
773
757
|
}
|
774
758
|
|
775
759
|
.sv-popup--dropdown-overlay {
|
@@ -790,7 +774,6 @@ sv-popup {
|
|
790
774
|
box-shadow: none;
|
791
775
|
padding: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
792
776
|
border-radius: calc(12.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
793
|
-
margin: 0;
|
794
777
|
}
|
795
778
|
.sv-popup--dropdown-overlay .sv-popup__container {
|
796
779
|
max-height: calc(var(--sv-popup-overlay-height, 100vh));
|
@@ -799,10 +782,10 @@ sv-popup {
|
|
799
782
|
}
|
800
783
|
.sv-popup--dropdown-overlay .sv-popup__body-content {
|
801
784
|
height: calc(var(--sv-popup-overlay-height, 100vh));
|
785
|
+
gap: 0;
|
802
786
|
}
|
803
787
|
.sv-popup--dropdown-overlay .sv-popup__body-footer {
|
804
788
|
background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
|
805
|
-
margin-top: 0;
|
806
789
|
padding-top: var(--sjs-base-unit, var(--base-unit, 8px));
|
807
790
|
padding-bottom: var(--sjs-base-unit, var(--base-unit, 8px));
|
808
791
|
border-top: 1px solid var(--sjs-border-light, var(--border-light, #eaeaea));
|
@@ -931,7 +914,7 @@ sv-popup {
|
|
931
914
|
max-width: var(--sv-popup-overlay-max-width);
|
932
915
|
border-radius: var(--sjs-corner-radius, 4px);
|
933
916
|
overflow: hidden;
|
934
|
-
|
917
|
+
box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
|
935
918
|
}
|
936
919
|
.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__content,
|
937
920
|
.sv-popup--dropdown-overlay.sv-popup--tablet .sv-popup__scrolling-content,
|
@@ -1477,12 +1460,13 @@ sv-brand-info,
|
|
1477
1460
|
line-height: calc(1.5 * (var(--sjs-internal-font-editorfont-size)));
|
1478
1461
|
margin: 0 calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1479
1462
|
overflow-wrap: break-word;
|
1480
|
-
word-break:
|
1463
|
+
word-break: normal;
|
1481
1464
|
align-self: self-start;
|
1482
1465
|
padding-top: var(--sjs-base-unit, var(--base-unit, 8px));
|
1483
1466
|
padding-bottom: var(--sjs-base-unit, var(--base-unit, 8px));
|
1484
1467
|
}
|
1485
|
-
.sv-ranking-item__text .sv-string-viewer
|
1468
|
+
.sv-ranking-item__text .sv-string-viewer,
|
1469
|
+
.sv-ranking-item__text .sv-string-editor {
|
1486
1470
|
overflow: initial;
|
1487
1471
|
white-space: pre-line;
|
1488
1472
|
}
|
@@ -1527,7 +1511,8 @@ sv-brand-info,
|
|
1527
1511
|
.sv-ranking-item--ghost {
|
1528
1512
|
height: calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1529
1513
|
}
|
1530
|
-
.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-viewer
|
1514
|
+
.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-viewer,
|
1515
|
+
.sv-ranking-item--ghost .sv-ranking-item__text .sv-string-editor {
|
1531
1516
|
white-space: unset;
|
1532
1517
|
}
|
1533
1518
|
|
@@ -1623,7 +1608,8 @@ sv-brand-info,
|
|
1623
1608
|
.sv-ranking-shortcut .sv-ranking-item {
|
1624
1609
|
height: calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1625
1610
|
}
|
1626
|
-
.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer
|
1611
|
+
.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-viewer,
|
1612
|
+
.sv-ranking-shortcut .sv-ranking-item .sv-ranking-item__text .sv-string-editor {
|
1627
1613
|
overflow: hidden;
|
1628
1614
|
white-space: nowrap;
|
1629
1615
|
}
|
@@ -1757,6 +1743,32 @@ sv-brand-info,
|
|
1757
1743
|
left: initial;
|
1758
1744
|
}
|
1759
1745
|
|
1746
|
+
.sv-ranking--select-to-rank-swap-areas {
|
1747
|
+
flex-direction: row-reverse;
|
1748
|
+
}
|
1749
|
+
.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--to .sv-ranking-item {
|
1750
|
+
padding-left: 0;
|
1751
|
+
left: -24px !important;
|
1752
|
+
}
|
1753
|
+
.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item {
|
1754
|
+
padding-left: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1755
|
+
left: 0;
|
1756
|
+
}
|
1757
|
+
.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--from .sv-ranking-item__ghost.sv-ranking-item__ghost {
|
1758
|
+
left: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1759
|
+
}
|
1760
|
+
.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking__container-placeholder {
|
1761
|
+
padding-right: calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1762
|
+
padding-left: 0;
|
1763
|
+
}
|
1764
|
+
.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--to .sv-ranking-item__ghost.sv-ranking-item__ghost {
|
1765
|
+
right: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1766
|
+
}
|
1767
|
+
.sv-ranking--select-to-rank-swap-areas .sv-ranking__container--empty.sv-ranking__container--from .sv-ranking__container-placeholder {
|
1768
|
+
padding-left: calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1769
|
+
padding-right: 0;
|
1770
|
+
}
|
1771
|
+
|
1760
1772
|
:root {
|
1761
1773
|
--sjs-transition-duration: 150ms;
|
1762
1774
|
}
|
@@ -1813,7 +1825,7 @@ sv-brand-info,
|
|
1813
1825
|
line-height: calc(1.5 * (var(--sjs-font-size, 16px)));
|
1814
1826
|
cursor: pointer;
|
1815
1827
|
overflow: hidden;
|
1816
|
-
text-align:
|
1828
|
+
text-align: start;
|
1817
1829
|
text-overflow: ellipsis;
|
1818
1830
|
white-space: nowrap;
|
1819
1831
|
transition: background-color var(--sjs-transition-duration, 150ms), color var(--sjs-transition-duration, 150ms);
|
@@ -2129,6 +2141,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use {
|
|
2129
2141
|
from {
|
2130
2142
|
overflow: hidden;
|
2131
2143
|
height: var(--animation-height-from);
|
2144
|
+
min-height: var(--animation-height-from);
|
2132
2145
|
margin-top: 0;
|
2133
2146
|
margin-bottom: 0;
|
2134
2147
|
padding-top: 0;
|
@@ -2145,6 +2158,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use {
|
|
2145
2158
|
border-top-width: var(--animation-border-top-width);
|
2146
2159
|
border-bottom-width: var(--animation-border-bottom-width);
|
2147
2160
|
height: var(--animation-height-to);
|
2161
|
+
min-height: var(--animation-height-to);
|
2148
2162
|
}
|
2149
2163
|
to {
|
2150
2164
|
overflow: visible;
|
@@ -2155,6 +2169,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use {
|
|
2155
2169
|
border-top-width: var(--animation-border-top-width);
|
2156
2170
|
border-bottom-width: var(--animation-border-bottom-width);
|
2157
2171
|
height: var(--animation-height-to);
|
2172
|
+
min-height: var(--animation-height-to);
|
2158
2173
|
}
|
2159
2174
|
}
|
2160
2175
|
@keyframes moveIn {
|
@@ -2188,10 +2203,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use {
|
|
2188
2203
|
opacity: 0.25;
|
2189
2204
|
}
|
2190
2205
|
|
2191
|
-
.sd-element__title.sd-element__title--hidden {
|
2192
|
-
display: none;
|
2193
|
-
}
|
2194
|
-
|
2195
2206
|
.sd-root--readonly .sd-element__title.sd-element__title--disabled {
|
2196
2207
|
opacity: 1;
|
2197
2208
|
}
|
@@ -3392,6 +3403,10 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3392
3403
|
.sd-question:not(.sd-question--mobile) .sd-table--alternate-rows .sd-table__row:nth-of-type(odd) td:first-of-type .sd-item:not(.sd-item--error).sd-item--checked .sd-item__decorator {
|
3393
3404
|
background-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
|
3394
3405
|
}
|
3406
|
+
.sd-question:not(.sd-question--mobile) .sd-table--alternate-rows .sd-table__row:nth-of-type(odd) > td.sd-table__cell:not(.sd-table__cell--actions) .sd-item:not(.sd-item--error).sd-item--checked .sd-item__control:focus + .sd-item__decorator,
|
3407
|
+
.sd-question:not(.sd-question--mobile) .sd-table--alternate-rows .sd-table__row:nth-of-type(odd) td:first-of-type .sd-item:not(.sd-item--error).sd-item--checked .sd-item__control:focus + .sd-item__decorator {
|
3408
|
+
background-color: var(--sjs-general-backcolor, var(--background, #fff));
|
3409
|
+
}
|
3395
3410
|
.sd-question:not(.sd-question--mobile) .sd-table--alternate-rows .sd-table__row:nth-of-type(odd) > td.sd-table__cell:not(.sd-table__cell--actions) .sd-item:not(.sd-item--error).sd-item--readonly.sd-item--checked .sd-item__decorator,
|
3396
3411
|
.sd-question:not(.sd-question--mobile) .sd-table--alternate-rows .sd-table__row:nth-of-type(odd) td:first-of-type .sd-item:not(.sd-item--error).sd-item--readonly.sd-item--checked .sd-item__decorator {
|
3397
3412
|
background-color: var(--sjs-general-backcolor, var(--background, #fff));
|
@@ -4273,7 +4288,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
4273
4288
|
color: var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));
|
4274
4289
|
white-space: normal;
|
4275
4290
|
width: 100%;
|
4276
|
-
text-align:
|
4291
|
+
text-align: start;
|
4277
4292
|
min-width: 0;
|
4278
4293
|
}
|
4279
4294
|
.sd-item__control-label .sv-string-viewer {
|
@@ -5565,7 +5580,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
5565
5580
|
max-width: 100%;
|
5566
5581
|
width: auto;
|
5567
5582
|
height: 100%;
|
5568
|
-
text-align:
|
5583
|
+
text-align: start;
|
5569
5584
|
cursor: text;
|
5570
5585
|
pointer-events: none;
|
5571
5586
|
color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
|