survey-react 1.9.101 → 1.9.102
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 +102 -21
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +9 -5
- 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 +921 -33
- package/survey.react.js +2242 -827
- 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.9.
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.102
|
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
|
*/
|
@@ -470,6 +470,7 @@ sv-popup {
|
|
470
470
|
|
471
471
|
.sv-popup__container {
|
472
472
|
box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
|
473
|
+
border-radius: calc(1 * var(--sjs-corner-radius, 4px));
|
473
474
|
position: absolute;
|
474
475
|
padding: 0;
|
475
476
|
}
|
@@ -477,7 +478,7 @@ sv-popup {
|
|
477
478
|
.sv-popup__shadow {
|
478
479
|
width: 100%;
|
479
480
|
height: 100%;
|
480
|
-
border-radius: calc(
|
481
|
+
border-radius: calc(1 * var(--sjs-corner-radius, 4px));
|
481
482
|
}
|
482
483
|
|
483
484
|
.sv-popup__body-content {
|
@@ -1122,8 +1123,8 @@ sv-popup {
|
|
1122
1123
|
text-overflow: ellipsis;
|
1123
1124
|
white-space: nowrap;
|
1124
1125
|
color: var(--sjs-general-forecolor, var(--foreground, #161616));
|
1125
|
-
font-size: calc(1 * var(--sjs-font-size, 16px));
|
1126
|
-
line-height: calc(1.5 * var(--sjs-font-size, 16px));
|
1126
|
+
font-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
1127
|
+
line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
1127
1128
|
margin: 0 calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
1128
1129
|
}
|
1129
1130
|
|
@@ -1388,6 +1389,7 @@ sv-popup {
|
|
1388
1389
|
|
1389
1390
|
.sv-list__item-icon {
|
1390
1391
|
float: left;
|
1392
|
+
flex-shrink: 0;
|
1391
1393
|
width: calc(3 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
1392
1394
|
height: calc(3 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
1393
1395
|
}
|
@@ -1863,7 +1865,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
1863
1865
|
}
|
1864
1866
|
|
1865
1867
|
.sd-question__erbox--above-question {
|
1866
|
-
border-radius: calc(1 * var(--sjs-corner-radius, 4px)) calc(1 * var(--sjs-corner-radius, 4px)) 0 0;
|
1867
1868
|
margin-bottom: calc(var(--sd-base-vertical-padding) - var(--sjs-base-unit, var(--base-unit, 8px)));
|
1868
1869
|
}
|
1869
1870
|
|
@@ -1871,6 +1872,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
1871
1872
|
margin-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
1872
1873
|
}
|
1873
1874
|
|
1875
|
+
.sd-element--with-frame > .sd-question__erbox--above-question {
|
1876
|
+
border-radius: calc(1 * var(--sjs-corner-radius, 4px)) calc(1 * var(--sjs-corner-radius, 4px)) 0 0;
|
1877
|
+
}
|
1878
|
+
|
1874
1879
|
.sd-element--with-frame > .sd-question__erbox--below-question {
|
1875
1880
|
position: relative;
|
1876
1881
|
margin-top: 0;
|
@@ -1990,8 +1995,8 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
1990
1995
|
gap: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
1991
1996
|
justify-content: center;
|
1992
1997
|
min-height: calc(24 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
1993
|
-
|
1994
|
-
font-size
|
1998
|
+
font-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
1999
|
+
line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
1995
2000
|
color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
|
1996
2001
|
}
|
1997
2002
|
.sd-question__placeholder > div .sv-string-viewer, .sd-question__placeholder > span .sv-string-viewer {
|
@@ -2217,6 +2222,8 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
2217
2222
|
|
2218
2223
|
.sjs_sp_placeholder {
|
2219
2224
|
color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
|
2225
|
+
font-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
2226
|
+
line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
2220
2227
|
}
|
2221
2228
|
|
2222
2229
|
.sjs_sp_container {
|
@@ -2366,13 +2373,30 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
2366
2373
|
|
2367
2374
|
.sd-table__cell {
|
2368
2375
|
font-weight: normal;
|
2369
|
-
font-size: calc(1 * var(--sjs-font-size, 16px));
|
2370
|
-
line-height: calc(1.5 * var(--sjs-font-size, 16px));
|
2376
|
+
font-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
2377
|
+
line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
2371
2378
|
padding: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
2372
2379
|
color: var(--sjs-general-forecolor, var(--foreground, #161616));
|
2373
2380
|
text-align: center;
|
2374
2381
|
}
|
2375
2382
|
|
2383
|
+
.sd-table__cell--error {
|
2384
|
+
padding: 0 calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
2385
|
+
}
|
2386
|
+
.sd-table__cell--error .sd-question__erbox--outside-question {
|
2387
|
+
margin: 0;
|
2388
|
+
}
|
2389
|
+
|
2390
|
+
.sd-table__cell--error-top {
|
2391
|
+
vertical-align: bottom;
|
2392
|
+
padding-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
2393
|
+
}
|
2394
|
+
|
2395
|
+
.sd-table__cell--error-bottom {
|
2396
|
+
vertical-align: top;
|
2397
|
+
padding-bottom: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
2398
|
+
}
|
2399
|
+
|
2376
2400
|
.sd-table__cell--item .sd-selectbase__item {
|
2377
2401
|
text-align: center;
|
2378
2402
|
}
|
@@ -2388,6 +2412,17 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
2388
2412
|
opacity: 1;
|
2389
2413
|
}
|
2390
2414
|
|
2415
|
+
.sd-table__cell--header .sv-vue-title-additional-div,
|
2416
|
+
.sd-table__cell--header {
|
2417
|
+
font-size: 0;
|
2418
|
+
line-height: 0;
|
2419
|
+
}
|
2420
|
+
|
2421
|
+
.sd-table__cell--header span {
|
2422
|
+
font-size: calc(1 * var(--sjs-font-size, 16px));
|
2423
|
+
line-height: calc(1.5 * var(--sjs-font-size, 16px));
|
2424
|
+
}
|
2425
|
+
|
2391
2426
|
.sd-table__cell--header {
|
2392
2427
|
font-weight: 600;
|
2393
2428
|
vertical-align: top;
|
@@ -2721,10 +2756,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
2721
2756
|
|
2722
2757
|
.sd-root-modern .sd-container-modern__title .sd-header__text h3 {
|
2723
2758
|
margin: 0;
|
2724
|
-
color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
|
2725
2759
|
}
|
2726
2760
|
.sd-root-modern .sd-container-modern__title .sd-description {
|
2727
2761
|
margin: 0;
|
2762
|
+
color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
|
2728
2763
|
}
|
2729
2764
|
|
2730
2765
|
.sd-title .sv-title-actions {
|
@@ -2757,7 +2792,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
2757
2792
|
font-style: normal;
|
2758
2793
|
font-family: var(--sjs-font-questiondescription-family, var(--font-family));
|
2759
2794
|
font-weight: var(--sjs-font-questiondescription-weight, 400);
|
2760
|
-
color: var(--sjs-font-questiondescription-color, var(--sjs-general-
|
2795
|
+
color: var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, 0.45)));
|
2761
2796
|
font-size: var(--sjs-font-questiondescription-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
2762
2797
|
line-height: calc(1.5 * var(--sjs-font-questiondescription-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
2763
2798
|
white-space: normal;
|
@@ -2813,7 +2848,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
2813
2848
|
.sd-item__control-label {
|
2814
2849
|
font-family: var(--sjs-font-editorfont-family, var(--font-family));
|
2815
2850
|
font-style: normal;
|
2816
|
-
font-weight:
|
2851
|
+
font-weight: var(--sjs-font-editorfont-weight, 400);
|
2817
2852
|
line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
2818
2853
|
font-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
2819
2854
|
color: var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, 0.91)));
|
@@ -3005,7 +3040,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
3005
3040
|
|
3006
3041
|
.sd-rating__item {
|
3007
3042
|
position: relative;
|
3008
|
-
background:
|
3043
|
+
background: var(--sjs-general-backcolor, var(--background, #fff));
|
3009
3044
|
box-shadow: var(--sjs-shadow-small, 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
|
3010
3045
|
border-radius: calc(12.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
3011
3046
|
white-space: nowrap;
|
@@ -3474,6 +3509,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
3474
3509
|
.sv-tagbox__item {
|
3475
3510
|
position: relative;
|
3476
3511
|
display: flex;
|
3512
|
+
align-items: center;
|
3477
3513
|
padding: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) calc(1.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
3478
3514
|
background-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
|
3479
3515
|
border-radius: calc(0.5 * var(--sjs-corner-radius, 4px));
|
@@ -3670,8 +3706,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
3670
3706
|
}
|
3671
3707
|
|
3672
3708
|
.sd-imagepicker__text {
|
3673
|
-
font-size: calc(1 * var(--sjs-font-size, 16px));
|
3674
|
-
line-height: calc(1.5 * var(--sjs-font-size, 16px));
|
3709
|
+
font-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
3710
|
+
line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
3675
3711
|
margin-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
3676
3712
|
color: var(--sjs-general-forecolor, var(--foreground, #161616));
|
3677
3713
|
}
|
@@ -3811,6 +3847,14 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
3811
3847
|
border-radius: calc(12.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
3812
3848
|
}
|
3813
3849
|
|
3850
|
+
.sd-boolean.sd-boolean--checked .sd-boolean__label--true,
|
3851
|
+
.sd-boolean:not(.sd-boolean--checked):not(sd-boolean--indeterminate) .sd-boolean__label--false {
|
3852
|
+
color: transparent;
|
3853
|
+
transition-duration: 0.15s;
|
3854
|
+
transition-property: color;
|
3855
|
+
transition-timing-function: linear;
|
3856
|
+
}
|
3857
|
+
|
3814
3858
|
.sd-boolean.sd-boolean--indeterminate .sd-boolean__switch {
|
3815
3859
|
display: none;
|
3816
3860
|
}
|
@@ -3948,7 +3992,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
3948
3992
|
}
|
3949
3993
|
|
3950
3994
|
.sd-paneldynamic__progress-text {
|
3951
|
-
font-size: calc(1 * var(--sjs-font-size, 16px));
|
3995
|
+
font-size: var(--sjs-font-questiontitle-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
3996
|
+
line-height: calc(1.5 * var(--sjs-font-questiontitle-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
3952
3997
|
color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
|
3953
3998
|
margin: 0;
|
3954
3999
|
margin-right: calc(3 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
@@ -4036,7 +4081,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4036
4081
|
background-color: transparent;
|
4037
4082
|
cursor: pointer;
|
4038
4083
|
font-family: var(--font-family, var(--font-family));
|
4039
|
-
font-size: calc(1 * var(--sjs-font-size, 16px));
|
4084
|
+
font-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
4085
|
+
line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
4040
4086
|
color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
|
4041
4087
|
overflow-x: hidden;
|
4042
4088
|
white-space: nowrap;
|
@@ -4158,6 +4204,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4158
4204
|
word-break: break-word;
|
4159
4205
|
white-space: normal;
|
4160
4206
|
color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
|
4207
|
+
font-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
4208
|
+
line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
4161
4209
|
}
|
4162
4210
|
|
4163
4211
|
.sd-file__choose-btn--text {
|
@@ -4343,6 +4391,15 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4343
4391
|
|
4344
4392
|
.sd-body__navigation .sd-btn {
|
4345
4393
|
padding: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px))) calc(8 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4394
|
+
font-size: var(--sjs-font-questiontitle-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
4395
|
+
line-height: calc(1.5 * var(--sjs-font-questiontitle-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
4396
|
+
}
|
4397
|
+
|
4398
|
+
.sd-root--compact .sd-body__navigation .sd-btn:not(.sd-btn--action) {
|
4399
|
+
background-color: var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9));
|
4400
|
+
}
|
4401
|
+
.sd-root--compact .sd-body__navigation .sd-btn:not(.sd-btn--action):hover {
|
4402
|
+
background-color: var(--sjs-editorpanel-hovercolor, var(--sjs-general-backcolor-dim-dark, rgb(243, 243, 243)));
|
4346
4403
|
}
|
4347
4404
|
|
4348
4405
|
.sd-root-modern--mobile .sd-body__navigation .sv-action:not(.sv-action--hidden),
|
@@ -4471,6 +4528,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4471
4528
|
}
|
4472
4529
|
|
4473
4530
|
.sd-root_background-image {
|
4531
|
+
background-position-x: center;
|
4474
4532
|
position: absolute;
|
4475
4533
|
top: 0;
|
4476
4534
|
bottom: 0;
|
@@ -4565,8 +4623,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4565
4623
|
font-weight: 600;
|
4566
4624
|
font-family: var(--font-family, var(--font-family));
|
4567
4625
|
font-style: normal;
|
4568
|
-
font-size: calc(1 * var(--sjs-font-size, 16px));
|
4569
|
-
line-height: calc(1.5 * var(--sjs-font-size, 16px));
|
4626
|
+
font-size: var(--sjs-font-questiontitle-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
4627
|
+
line-height: calc(1.5 * var(--sjs-font-questiontitle-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
4570
4628
|
outline: none;
|
4571
4629
|
}
|
4572
4630
|
|
@@ -5069,10 +5127,14 @@ sv-components-container,
|
|
5069
5127
|
padding-bottom: 0;
|
5070
5128
|
text-align: left;
|
5071
5129
|
}
|
5072
|
-
.sd-root-modern.sd-root-modern--mobile .sd-table__cell
|
5130
|
+
.sd-root-modern.sd-root-modern--mobile .sd-table__cell {
|
5073
5131
|
margin-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5074
5132
|
}
|
5075
|
-
.sd-root-modern.sd-root-modern--mobile .sd-table__cell:
|
5133
|
+
.sd-root-modern.sd-root-modern--mobile .sd-table__cell:first-of-type,
|
5134
|
+
.sd-root-modern.sd-root-modern--mobile .sd-matrix__cell {
|
5135
|
+
margin-top: 0;
|
5136
|
+
}
|
5137
|
+
.sd-root-modern.sd-root-modern--mobile .sd-table__cell::before {
|
5076
5138
|
padding-top: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5077
5139
|
padding-bottom: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5078
5140
|
content: attr(data-responsive-title);
|
@@ -5080,6 +5142,12 @@ sv-components-container,
|
|
5080
5142
|
display: block;
|
5081
5143
|
text-align: left;
|
5082
5144
|
}
|
5145
|
+
.sd-root-modern.sd-root-modern--mobile .sd-matrix__cell::before,
|
5146
|
+
.sd-root-modern.sd-root-modern--mobile .sd-table__cell--actions::before,
|
5147
|
+
.sd-root-modern.sd-root-modern--mobile .sd-table__cell--row-text::before,
|
5148
|
+
.sd-root-modern.sd-root-modern--mobile .sd-table__cell--error::before {
|
5149
|
+
content: none;
|
5150
|
+
}
|
5083
5151
|
.sd-root-modern.sd-root-modern--mobile .sd-table__cell.sd-table__cell--actions {
|
5084
5152
|
width: auto;
|
5085
5153
|
}
|
@@ -5115,6 +5183,19 @@ sv-components-container,
|
|
5115
5183
|
.sd-root-modern.sd-root-modern--mobile .sd-matrixdropdown.sd-table tr:last-child:after {
|
5116
5184
|
content: none;
|
5117
5185
|
}
|
5186
|
+
.sd-root-modern.sd-root-modern--mobile .sd-table__cell.sd-table__cell--error-top {
|
5187
|
+
margin-top: 0;
|
5188
|
+
}
|
5189
|
+
.sd-root-modern.sd-root-modern--mobile .sd-table__cell--error-top:first-of-type ~ .sd-table__cell:nth-of-type(2) {
|
5190
|
+
margin-top: 0;
|
5191
|
+
}
|
5192
|
+
.sd-root-modern.sd-root-modern--mobile .sd-table__cell--error-top .sd-question__erbox {
|
5193
|
+
margin-top: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5194
|
+
margin-bottom: calc(-2 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5195
|
+
}
|
5196
|
+
.sd-root-modern.sd-root-modern--mobile .sd-table__cell--error-top:first-of-type .sd-question__erbox {
|
5197
|
+
margin-bottom: calc(-1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5198
|
+
}
|
5118
5199
|
.sd-root-modern.sd-root-modern--mobile .sv-ranking-item__icon-container {
|
5119
5200
|
margin-left: 0;
|
5120
5201
|
margin-right: 0;
|