survey-react 1.9.108 → 1.9.110
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 +191 -31
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +5 -4
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +2 -1
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +459 -19
- package/survey.react.js +2229 -435
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/defaultV2.css
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.110
|
3
3
|
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
6
|
-
@charset "UTF-8";
|
7
6
|
/* cyrillic-ext */
|
8
7
|
@font-face {
|
9
8
|
font-family: "Open Sans";
|
@@ -534,7 +533,7 @@ sv-popup {
|
|
534
533
|
background: var(--sjs-general-backcolor, var(--background, #fff));
|
535
534
|
box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
|
536
535
|
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)));
|
537
|
-
height: calc(100% -
|
536
|
+
height: calc(100% - 1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
538
537
|
}
|
539
538
|
.sv-popup--overlay.sv-popup--overlay .sv-popup__scrolling-content {
|
540
539
|
height: calc(100% - 10 * var(--base-unit, 8px));
|
@@ -974,6 +973,7 @@ sv-popup {
|
|
974
973
|
background-color: #f7f7f7;
|
975
974
|
border-bottom: 1px solid #ebebeb;
|
976
975
|
border-radius: calc(1 * var(--sjs-corner-radius, 4px)) calc(1 * var(--sjs-corner-radius, 4px)) 0 0;
|
976
|
+
display: flex;
|
977
977
|
}
|
978
978
|
|
979
979
|
.sv_window_content {
|
@@ -1664,9 +1664,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
1664
1664
|
.sd-element__title .sv-string-viewer {
|
1665
1665
|
white-space: normal;
|
1666
1666
|
}
|
1667
|
-
.sd-element__title .sv-string-viewer::before {
|
1668
|
-
content: "";
|
1669
|
-
}
|
1670
1667
|
|
1671
1668
|
.sd-element__num {
|
1672
1669
|
float: left;
|
@@ -2029,6 +2026,11 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
2029
2026
|
max-width: 100%;
|
2030
2027
|
}
|
2031
2028
|
|
2029
|
+
.sd-question__title--empty .sv-string-viewer {
|
2030
|
+
display: inline-block;
|
2031
|
+
height: calc(3 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
2032
|
+
}
|
2033
|
+
|
2032
2034
|
.sd-input {
|
2033
2035
|
-webkit-appearance: none;
|
2034
2036
|
-moz-appearance: none;
|
@@ -2889,9 +2891,11 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
2889
2891
|
background-color: var(--sjs-general-backcolor, var(--background, #fff));
|
2890
2892
|
}
|
2891
2893
|
|
2894
|
+
.sd-root-modern .sv-conver__content .sd-header__text h3,
|
2892
2895
|
.sd-root-modern .sd-container-modern__title .sd-header__text h3 {
|
2893
2896
|
margin: 0;
|
2894
2897
|
}
|
2898
|
+
.sd-root-modern .sv-conver__content .sd-description,
|
2895
2899
|
.sd-root-modern .sd-container-modern__title .sd-description {
|
2896
2900
|
margin: 0;
|
2897
2901
|
color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
|
@@ -2958,7 +2962,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
2958
2962
|
box-shadow: var(--sjs-shadow-inner, inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
|
2959
2963
|
border: none;
|
2960
2964
|
flex-shrink: 0;
|
2961
|
-
margin-top: calc((
|
2965
|
+
margin-top: calc((1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))) - 3 * var(--sjs-base-unit, var(--base-unit, 8px))) / 2);
|
2962
2966
|
}
|
2963
2967
|
|
2964
2968
|
.sd-item--checked .sd-item__decorator {
|
@@ -4511,11 +4515,20 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4511
4515
|
|
4512
4516
|
.sd-file__choose-btn--text {
|
4513
4517
|
display: block;
|
4514
|
-
margin-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4515
4518
|
font-weight: 600;
|
4516
4519
|
color: var(--sjs-primary-backcolor, var(--primary, #19b394));
|
4517
4520
|
cursor: pointer;
|
4518
4521
|
}
|
4522
|
+
.sd-file__choose-btn--text .sv-svg-icon {
|
4523
|
+
margin-left: calc(-1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4524
|
+
width: 24px;
|
4525
|
+
height: 24px;
|
4526
|
+
fill: var(--sjs-primary-backcolor, var(--primary, #19b394));
|
4527
|
+
}
|
4528
|
+
|
4529
|
+
.sd-file__choose-btn--icon > span {
|
4530
|
+
display: none;
|
4531
|
+
}
|
4519
4532
|
|
4520
4533
|
.sd-file__wrapper {
|
4521
4534
|
width: max-content;
|
@@ -4525,33 +4538,27 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4525
4538
|
display: none;
|
4526
4539
|
}
|
4527
4540
|
|
4528
|
-
.sd-
|
4541
|
+
.sd-file__actions-container {
|
4542
|
+
margin-top: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4543
|
+
}
|
4544
|
+
.sd-file__actions-container .sv-action--hidden {
|
4529
4545
|
display: none;
|
4530
4546
|
}
|
4531
4547
|
|
4532
|
-
.sd-
|
4548
|
+
.sd-file--answered .sd-file__actions-container {
|
4533
4549
|
z-index: 2;
|
4534
|
-
|
4535
|
-
|
4536
|
-
display: none;
|
4550
|
+
margin-top: 0;
|
4551
|
+
gap: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4537
4552
|
}
|
4538
4553
|
|
4539
|
-
.sd-
|
4540
|
-
.sd-file__clean-btn {
|
4554
|
+
.sd-file--answered .sd-file__actions-container {
|
4541
4555
|
top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4556
|
+
right: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4542
4557
|
position: absolute;
|
4543
4558
|
}
|
4544
4559
|
|
4545
|
-
.sd-
|
4546
|
-
|
4547
|
-
inset-inline-end: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4548
|
-
}
|
4549
|
-
.sd-file__clean-btn span:first-child {
|
4550
|
-
display: none;
|
4551
|
-
}
|
4552
|
-
|
4553
|
-
.sd-file__choose-btn--icon {
|
4554
|
-
inset-inline-end: calc((1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))))) + (5 * var(--sjs-base-unit, var(--base-unit, 8px))));
|
4560
|
+
.sd-file--chose-btn--as .sd-file--answered .sd-file__actions-container {
|
4561
|
+
inset-inline-end: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))) + 5 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4555
4562
|
}
|
4556
4563
|
|
4557
4564
|
.sd-file__list {
|
@@ -4637,7 +4644,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4637
4644
|
display: none;
|
4638
4645
|
}
|
4639
4646
|
|
4640
|
-
.sd-file--mobile .sd-file__list {
|
4647
|
+
.sd-file--mobile:first-child .sd-file__list {
|
4641
4648
|
height: calc(100% - 4 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4642
4649
|
}
|
4643
4650
|
|
@@ -4691,6 +4698,63 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4691
4698
|
height: 100%;
|
4692
4699
|
}
|
4693
4700
|
|
4701
|
+
.sd-file__change-camera-button {
|
4702
|
+
position: absolute;
|
4703
|
+
z-index: 2;
|
4704
|
+
left: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4705
|
+
top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4706
|
+
}
|
4707
|
+
|
4708
|
+
.sd-file__close-camera-button {
|
4709
|
+
position: absolute;
|
4710
|
+
z-index: 2;
|
4711
|
+
right: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4712
|
+
top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4713
|
+
}
|
4714
|
+
|
4715
|
+
.sd-context-btn.sd-file__take-picture-button {
|
4716
|
+
background-color: var(--sjs-special-red, var(--red, #e60a3e));
|
4717
|
+
position: absolute;
|
4718
|
+
bottom: 16px;
|
4719
|
+
left: 50%;
|
4720
|
+
transform: translateX(-50%);
|
4721
|
+
padding: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4722
|
+
}
|
4723
|
+
.sd-context-btn.sd-file__take-picture-button .sv-svg-icon {
|
4724
|
+
height: calc(4 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4725
|
+
width: calc(4 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4726
|
+
}
|
4727
|
+
.sd-context-btn.sd-file__take-picture-button .sv-svg-icon use {
|
4728
|
+
fill: var(--sjs-general-backcolor, var(--background, #fff));
|
4729
|
+
}
|
4730
|
+
.sd-context-btn.sd-file__take-picture-button:hover, .sd-context-btn.sd-file__take-picture-button:focus {
|
4731
|
+
box-shadow: 0 0 0 2px var(--sjs-special-red, var(--red, #e60a3e));
|
4732
|
+
}
|
4733
|
+
|
4734
|
+
.sd-file__video-container {
|
4735
|
+
background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
|
4736
|
+
position: absolute;
|
4737
|
+
top: 0;
|
4738
|
+
left: 0;
|
4739
|
+
width: 100%;
|
4740
|
+
height: 100%;
|
4741
|
+
}
|
4742
|
+
|
4743
|
+
.sd-file__loading-indicator {
|
4744
|
+
width: 100%;
|
4745
|
+
height: 100%;
|
4746
|
+
box-sizing: border-box;
|
4747
|
+
position: absolute;
|
4748
|
+
border: 1px dashed var(--sjs-border-default, var(--border, #d6d6d6));
|
4749
|
+
left: 0;
|
4750
|
+
}
|
4751
|
+
.sd-file__loading-indicator .sd-loading-indicator {
|
4752
|
+
position: absolute;
|
4753
|
+
left: 50%;
|
4754
|
+
top: 50%;
|
4755
|
+
transform: translate(-50%, -50%);
|
4756
|
+
}
|
4757
|
+
|
4694
4758
|
.sd-hidden {
|
4695
4759
|
display: none !important;
|
4696
4760
|
}
|
@@ -4818,7 +4882,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4818
4882
|
padding-top: calc(4 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4819
4883
|
}
|
4820
4884
|
.sd-body.sd-body--responsive.sd-body--with-timer {
|
4821
|
-
max-width: calc(100% + var(--sd-timer-size) *
|
4885
|
+
max-width: calc(100% + var(--sd-timer-size) * -1.4444444444 + 6 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4822
4886
|
margin-left: auto;
|
4823
4887
|
margin-right: auto;
|
4824
4888
|
}
|
@@ -5087,6 +5151,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
5087
5151
|
.sd-action {
|
5088
5152
|
appearance: none;
|
5089
5153
|
border: none;
|
5154
|
+
display: flex;
|
5155
|
+
gap: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5090
5156
|
background: transparent;
|
5091
5157
|
padding: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) calc(3 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5092
5158
|
color: var(--sjs-primary-backcolor, var(--primary, #19b394));
|
@@ -5107,6 +5173,16 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
5107
5173
|
padding: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5108
5174
|
}
|
5109
5175
|
|
5176
|
+
.sd-action__icon {
|
5177
|
+
margin-left: calc(-1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5178
|
+
}
|
5179
|
+
.sd-action__icon use {
|
5180
|
+
fill: var(--sjs-primary-backcolor, var(--primary, #19b394));
|
5181
|
+
}
|
5182
|
+
|
5183
|
+
.sd-action--icon .sd-action__icon {
|
5184
|
+
margin-left: 0;
|
5185
|
+
}
|
5110
5186
|
.sd-action--icon use {
|
5111
5187
|
fill: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
|
5112
5188
|
}
|
@@ -5138,10 +5214,6 @@ svg.sd-action--icon {
|
|
5138
5214
|
.sd-action:not(.sd-action--pressed):focus.sd-action--negative {
|
5139
5215
|
background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
|
5140
5216
|
}
|
5141
|
-
.sd-action:not(.sd-action--pressed):hover.sd-action--negative.sd-action--icon use,
|
5142
|
-
.sd-action:not(.sd-action--pressed):focus.sd-action--negative.sd-action--icon use {
|
5143
|
-
fill: var(--sjs-special-red, var(--red, #e60a3e));
|
5144
|
-
}
|
5145
5217
|
.sd-action:not(.sd-action--pressed):hover:active,
|
5146
5218
|
.sd-action:not(.sd-action--pressed):focus:active {
|
5147
5219
|
opacity: 0.5;
|
@@ -5174,6 +5246,9 @@ svg.sd-action--icon {
|
|
5174
5246
|
outline: none;
|
5175
5247
|
cursor: pointer;
|
5176
5248
|
}
|
5249
|
+
.sd-context-btn .sv-svg-icon {
|
5250
|
+
margin: 0;
|
5251
|
+
}
|
5177
5252
|
.sd-context-btn svg {
|
5178
5253
|
display: block;
|
5179
5254
|
width: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
@@ -5546,6 +5621,91 @@ svg.sd-action--icon {
|
|
5546
5621
|
font-size: calc(0.75 * var(--sjs-font-size, 16px));
|
5547
5622
|
}
|
5548
5623
|
|
5624
|
+
.sv-cover {
|
5625
|
+
padding: calc(5 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5626
|
+
box-sizing: border-box;
|
5627
|
+
position: relative;
|
5628
|
+
}
|
5629
|
+
|
5630
|
+
.sv-conver__without-background {
|
5631
|
+
padding-bottom: 0;
|
5632
|
+
}
|
5633
|
+
|
5634
|
+
.sv-conver__content {
|
5635
|
+
height: 100%;
|
5636
|
+
position: relative;
|
5637
|
+
display: grid;
|
5638
|
+
gap: 0;
|
5639
|
+
grid-auto-columns: 1fr 1fr 1fr;
|
5640
|
+
grid-auto-rows: 1fr 1fr 1fr;
|
5641
|
+
}
|
5642
|
+
|
5643
|
+
.sv-conver__content--static {
|
5644
|
+
max-width: calc(80 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5645
|
+
margin-left: auto;
|
5646
|
+
margin-right: auto;
|
5647
|
+
}
|
5648
|
+
|
5649
|
+
.sv-cover__background-image {
|
5650
|
+
width: 100%;
|
5651
|
+
height: 100%;
|
5652
|
+
position: absolute;
|
5653
|
+
top: 0;
|
5654
|
+
left: 0;
|
5655
|
+
right: 0;
|
5656
|
+
border: 0;
|
5657
|
+
background-position-x: center;
|
5658
|
+
}
|
5659
|
+
|
5660
|
+
.sv-cover__background-image--contain {
|
5661
|
+
background-repeat: no-repeat;
|
5662
|
+
}
|
5663
|
+
|
5664
|
+
.sv-cover__cell {
|
5665
|
+
position: relative;
|
5666
|
+
}
|
5667
|
+
|
5668
|
+
.sv-cover__cell-content {
|
5669
|
+
display: flex;
|
5670
|
+
flex-direction: column;
|
5671
|
+
position: absolute;
|
5672
|
+
width: max-content;
|
5673
|
+
top: 0;
|
5674
|
+
bottom: 0;
|
5675
|
+
}
|
5676
|
+
|
5677
|
+
.sv-cover__cell--left .sv-cover__cell-content {
|
5678
|
+
left: 0;
|
5679
|
+
}
|
5680
|
+
|
5681
|
+
.sv-cover__cell--right .sv-cover__cell-content {
|
5682
|
+
right: 0;
|
5683
|
+
}
|
5684
|
+
|
5685
|
+
.sv-cover__logo {
|
5686
|
+
display: flex;
|
5687
|
+
}
|
5688
|
+
|
5689
|
+
.sv-cover__title {
|
5690
|
+
display: flex;
|
5691
|
+
}
|
5692
|
+
|
5693
|
+
.sv-cover__title .sd-title {
|
5694
|
+
color: var(--sjs-general-dim-forecolor, rgba(0, 0, 0, 0.91));
|
5695
|
+
font-family: var(--sjs-font-surveytitle-family, var(--font-family));
|
5696
|
+
font-size: var(--sjs-font-surveytitle-size, calc(2 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
5697
|
+
font-weight: var(--sjs-font-surveytitle-weight, 700);
|
5698
|
+
line-height: calc(1.25 * var(--sjs-font-surveytitle-size, calc(2 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
5699
|
+
}
|
5700
|
+
|
5701
|
+
.sv-cover__description {
|
5702
|
+
display: flex;
|
5703
|
+
}
|
5704
|
+
|
5705
|
+
.sv-cover__description .sd-description {
|
5706
|
+
color: var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, 0.45));
|
5707
|
+
}
|
5708
|
+
|
5549
5709
|
@keyframes rotationAnimation {
|
5550
5710
|
from {
|
5551
5711
|
rotate: 0deg;
|