survey-react 1.9.122 → 1.9.124
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/README.md +1 -1
- package/defaultV2.css +79 -33
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +3 -3
- package/modern.css +2 -9
- package/modern.css.map +1 -1
- package/modern.min.css +3 -3
- package/package.json +1 -1
- package/survey.css +2 -2
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +656 -643
- package/survey.react.js +517 -273
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +4 -4
package/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# SurveyJS Form Library for React
|
2
2
|
|
3
3
|
|
4
|
-
https://github.com/surveyjs/survey-library/assets/22315929/
|
4
|
+
<video src="https://github.com/surveyjs/survey-library/assets/22315929/b24a68bf-d703-4096-835b-752f5f610aa6"></video>
|
5
5
|
|
6
6
|
|
7
7
|
SurveyJS Form Library is a free and open-source MIT-licensed JavaScript form builder library that allows you to design dynamic, data-driven, multi-language survey forms and run them in your web applications.
|
package/defaultV2.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
3
|
-
* Copyright (c) 2015-
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.124
|
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
|
*/
|
6
6
|
/* cyrillic-ext */
|
@@ -1880,6 +1880,14 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
1880
1880
|
border-radius: var(--sjs-corner-radius, 4px) var(--sjs-corner-radius, 4px) 0 0;
|
1881
1881
|
}
|
1882
1882
|
|
1883
|
+
.sd-question--left > .sd-element__erbox--above-element {
|
1884
|
+
margin-bottom: 0;
|
1885
|
+
}
|
1886
|
+
|
1887
|
+
.sd-element--with-frame.sd-question--left > .sd-element__erbox--above-element {
|
1888
|
+
margin-bottom: calc(1 * var(--sd-base-vertical-padding));
|
1889
|
+
}
|
1890
|
+
|
1883
1891
|
.sd-element--with-frame > .sd-question__erbox--below-question {
|
1884
1892
|
margin-top: auto;
|
1885
1893
|
border-radius: 0 0 var(--sjs-corner-radius, 4px) var(--sjs-corner-radius, 4px);
|
@@ -1932,7 +1940,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
1932
1940
|
.sd-question__header--location--left {
|
1933
1941
|
display: inline-block;
|
1934
1942
|
width: auto;
|
1935
|
-
max-width: 50%;
|
1936
1943
|
vertical-align: top;
|
1937
1944
|
margin-top: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1938
1945
|
}
|
@@ -1941,12 +1948,18 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
1941
1948
|
display: flex;
|
1942
1949
|
flex-wrap: wrap;
|
1943
1950
|
flex-direction: row;
|
1951
|
+
column-gap: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1952
|
+
row-gap: calc(0.25 * var(--sd-base-vertical-padding));
|
1944
1953
|
}
|
1945
1954
|
|
1946
1955
|
.sd-question__content--left {
|
1947
1956
|
display: inline-block;
|
1948
|
-
padding-left: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
1949
1957
|
flex: 1;
|
1958
|
+
margin-top: calc(0.25 * var(--sd-base-vertical-padding)) 0;
|
1959
|
+
}
|
1960
|
+
|
1961
|
+
.sd-element--with-frame > .sd-question__content--left {
|
1962
|
+
margin: 0;
|
1950
1963
|
}
|
1951
1964
|
|
1952
1965
|
.sd-question__required-text {
|
@@ -2107,7 +2120,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
2107
2120
|
padding-top: 0;
|
2108
2121
|
padding-bottom: 0;
|
2109
2122
|
}
|
2110
|
-
.sd-question--empty.sd-question--complex > .sd-question__content:first-
|
2123
|
+
.sd-question--empty.sd-question--complex > .sd-question__content:first-of-type {
|
2111
2124
|
padding-top: var(--sd-base-padding);
|
2112
2125
|
}
|
2113
2126
|
.sd-question--empty.sd-question--complex > .sd-question__header--location-top {
|
@@ -2132,10 +2145,14 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
|
|
2132
2145
|
color: var(--sjs-font-editorfont-color, var(--sjs-general-forecolor, rgba(0, 0, 0, 0.91)));
|
2133
2146
|
font-size: var(--sjs-internal-font-editorfont-size);
|
2134
2147
|
background-color: var(--sjs-editorpanel-backcolor, var(--sjs-editor-background, var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9))));
|
2135
|
-
box-shadow: var(--sjs-shadow-inner, inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
|
2136
2148
|
border: none;
|
2137
2149
|
border-radius: var(--sjs-editorpanel-cornerRadius, var(--sjs-corner-radius, 4px));
|
2138
2150
|
text-align: start;
|
2151
|
+
box-shadow: var(--sjs-shadow-inner, inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15)), 0 0 0 0px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
2152
|
+
}
|
2153
|
+
|
2154
|
+
.sd-input:focus {
|
2155
|
+
box-shadow: var(--sjs-shadow-inner-reset, inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)), 0 0 0 2px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
2139
2156
|
}
|
2140
2157
|
|
2141
2158
|
.sd-input.sd-input:focus {
|
@@ -2174,10 +2191,6 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
2174
2191
|
color: var(--sjs-general-forecolor, var(--foreground, #161616));
|
2175
2192
|
}
|
2176
2193
|
|
2177
|
-
.sd-input:focus {
|
2178
|
-
box-shadow: 0 0 0 2px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
2179
|
-
}
|
2180
|
-
|
2181
2194
|
.sd-input--error {
|
2182
2195
|
background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
|
2183
2196
|
}
|
@@ -2406,14 +2419,14 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
2406
2419
|
}
|
2407
2420
|
|
2408
2421
|
.sd-checkbox__svg {
|
2409
|
-
display:
|
2422
|
+
display: block;
|
2410
2423
|
width: calc(2.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
2411
2424
|
height: calc(2.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
2412
2425
|
}
|
2413
|
-
|
2414
|
-
|
2415
|
-
display: block;
|
2426
|
+
.sd-checkbox__svg use {
|
2427
|
+
fill: transparent;
|
2416
2428
|
}
|
2429
|
+
|
2417
2430
|
.sd-checkbox--checked .sd-checkbox__svg use {
|
2418
2431
|
fill: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
|
2419
2432
|
}
|
@@ -2538,10 +2551,10 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
2538
2551
|
padding-top: var(--sjs-base-unit, var(--base-unit, 8px));
|
2539
2552
|
margin-top: calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
2540
2553
|
}
|
2541
|
-
.sd-panel:not(.sd-panel--as-page) > .sd-panel__content .sd-question--table > .sd-question__header
|
2554
|
+
.sd-panel:not(.sd-panel--as-page) > .sd-panel__content .sd-question--table > .sd-question__header ~ .sd-question__content {
|
2542
2555
|
padding-top: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
2543
2556
|
}
|
2544
|
-
.sd-panel:not(.sd-panel--as-page) > .sd-panel__content .sd-question--table > .sd-question__header
|
2557
|
+
.sd-panel:not(.sd-panel--as-page) > .sd-panel__content .sd-question--table > .sd-question__header ~ .sd-question__content .sd-table--no-header {
|
2545
2558
|
padding-top: calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
2546
2559
|
}
|
2547
2560
|
.sd-panel:not(.sd-panel--as-page) > .sd-panel__content .sd-question--table > .sd-question__content .sd-table-wrapper .sd-table:not(.sd-table--no-header) {
|
@@ -2556,10 +2569,10 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
2556
2569
|
.sd-panel:not(.sd-panel--as-page) > .sd-panel__content > .sd-row:not(:first-of-type) .sd-question--table.sd-question--error-top > .sd-question__content .sd-table-wrapper .sd-table:not(.sd-table--no-header) {
|
2557
2570
|
margin-top: calc(0 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
2558
2571
|
}
|
2559
|
-
.sd-panel:not(.sd-panel--as-page) > .sd-panel__content .sd-question--table > .sd-question__header
|
2572
|
+
.sd-panel:not(.sd-panel--as-page) > .sd-panel__content .sd-question--table > .sd-question__header ~ .sd-question__content .sd-table-wrapper .sd-table:not(.sd-table--no-header) {
|
2560
2573
|
margin-top: var(--sjs-base-unit, var(--base-unit, 8px));
|
2561
2574
|
}
|
2562
|
-
.sd-panel:not(.sd-panel--as-page) > .sd-panel__content > .sd-row:not(:first-of-type) .sd-question--table > .sd-question__header
|
2575
|
+
.sd-panel:not(.sd-panel--as-page) > .sd-panel__content > .sd-row:not(:first-of-type) .sd-question--table > .sd-question__header ~ .sd-question__content .sd-table-wrapper .sd-table:not(.sd-table--no-header) {
|
2563
2576
|
margin-top: var(--sjs-base-unit, var(--base-unit, 8px));
|
2564
2577
|
}
|
2565
2578
|
|
@@ -3000,7 +3013,6 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3000
3013
|
color: var(--sjs-general-forecolor, var(--foreground, #161616));
|
3001
3014
|
flex-direction: row;
|
3002
3015
|
white-space: normal;
|
3003
|
-
word-break: break-word;
|
3004
3016
|
}
|
3005
3017
|
|
3006
3018
|
.sd-title.sd-container-modern__title {
|
@@ -3101,7 +3113,6 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3101
3113
|
font-size: var(--sjs-font-questiondescription-size, var(--sjs-font-size, 16px));
|
3102
3114
|
line-height: calc(1.5 * (var(--sjs-font-questiondescription-size, var(--sjs-font-size, 16px))));
|
3103
3115
|
white-space: normal;
|
3104
|
-
word-break: break-word;
|
3105
3116
|
}
|
3106
3117
|
|
3107
3118
|
.sd-description.sd-question__description--under-input {
|
@@ -3126,10 +3137,10 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3126
3137
|
height: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
3127
3138
|
box-sizing: border-box;
|
3128
3139
|
background-color: var(--sjs-editorpanel-backcolor, var(--sjs-editor-background, var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9))));
|
3129
|
-
box-shadow: var(--sjs-shadow-inner, inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
|
3130
3140
|
border: none;
|
3131
3141
|
flex-shrink: 0;
|
3132
3142
|
margin-top: calc((1.5 * (var(--sjs-internal-font-editorfont-size)) - 3 * (var(--sjs-base-unit, var(--base-unit, 8px)))) / 2);
|
3143
|
+
box-shadow: var(--sjs-shadow-inner, inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15)), 0 0 0 0px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
3133
3144
|
}
|
3134
3145
|
|
3135
3146
|
.sd-item--checked .sd-item__decorator {
|
@@ -3137,9 +3148,9 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3137
3148
|
}
|
3138
3149
|
|
3139
3150
|
.sd-item__control:focus + .sd-item__decorator {
|
3140
|
-
box-shadow: 0 0 0 2px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
3141
3151
|
background: var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));
|
3142
3152
|
outline: none;
|
3153
|
+
box-shadow: var(--sjs-shadow-inner-reset, inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)), 0 0 0 2px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
3143
3154
|
}
|
3144
3155
|
|
3145
3156
|
.sd-item--allowhover .sd-selectbase__label:hover .sd-item__decorator {
|
@@ -3160,7 +3171,6 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3160
3171
|
font-size: var(--sjs-internal-font-editorfont-size);
|
3161
3172
|
color: var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));
|
3162
3173
|
white-space: normal;
|
3163
|
-
word-break: break-word;
|
3164
3174
|
width: 100%;
|
3165
3175
|
text-align: left;
|
3166
3176
|
}
|
@@ -3214,7 +3224,6 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3214
3224
|
.sd-selectbase__column {
|
3215
3225
|
display: block;
|
3216
3226
|
box-sizing: border-box;
|
3217
|
-
word-break: break-word;
|
3218
3227
|
flex: 1 1 0px;
|
3219
3228
|
}
|
3220
3229
|
|
@@ -3231,14 +3240,14 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3231
3240
|
}
|
3232
3241
|
|
3233
3242
|
.sd-checkbox__svg {
|
3234
|
-
display:
|
3243
|
+
display: block;
|
3235
3244
|
width: calc(2.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
3236
3245
|
height: calc(2.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
3237
3246
|
}
|
3238
|
-
|
3239
|
-
|
3240
|
-
display: block;
|
3247
|
+
.sd-checkbox__svg use {
|
3248
|
+
fill: transparent;
|
3241
3249
|
}
|
3250
|
+
|
3242
3251
|
.sd-checkbox--checked .sd-checkbox__svg use {
|
3243
3252
|
fill: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
|
3244
3253
|
}
|
@@ -3254,6 +3263,14 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3254
3263
|
.sd-radio__decorator {
|
3255
3264
|
border-radius: 50%;
|
3256
3265
|
}
|
3266
|
+
.sd-radio__decorator:after {
|
3267
|
+
content: " ";
|
3268
|
+
display: block;
|
3269
|
+
width: var(--sjs-base-unit, var(--base-unit, 8px));
|
3270
|
+
height: var(--sjs-base-unit, var(--base-unit, 8px));
|
3271
|
+
border-radius: 50%;
|
3272
|
+
background-color: transparent;
|
3273
|
+
}
|
3257
3274
|
|
3258
3275
|
.sd-radio--checked .sd-radio__decorator:after {
|
3259
3276
|
content: " ";
|
@@ -4363,7 +4380,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4363
4380
|
|
4364
4381
|
.sd-question__content--left .sd-expression {
|
4365
4382
|
line-height: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4366
|
-
|
4383
|
+
padding: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) 0;
|
4367
4384
|
}
|
4368
4385
|
|
4369
4386
|
.sd-progress {
|
@@ -4690,7 +4707,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4690
4707
|
overflow-x: hidden;
|
4691
4708
|
white-space: nowrap;
|
4692
4709
|
}
|
4693
|
-
.sd-tab-item:hover {
|
4710
|
+
.sd-tab-item:hover, .sd-tab-item:focus-visible {
|
4711
|
+
outline: none;
|
4694
4712
|
box-shadow: inset 0px -2px 0px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
4695
4713
|
}
|
4696
4714
|
|
@@ -4797,8 +4815,12 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4797
4815
|
box-sizing: border-box;
|
4798
4816
|
justify-content: center;
|
4799
4817
|
align-items: center;
|
4800
|
-
padding: 0 calc(8 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4801
4818
|
border: 1px dashed var(--sjs-border-default, var(--border, #d6d6d6));
|
4819
|
+
container-type: inline-size;
|
4820
|
+
}
|
4821
|
+
|
4822
|
+
.sd-file--answered .sd-file__decorator {
|
4823
|
+
container-type: unset;
|
4802
4824
|
}
|
4803
4825
|
|
4804
4826
|
.sd-file__decorator--drag {
|
@@ -4815,13 +4837,35 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4815
4837
|
.sd-file__drag-area-placeholder {
|
4816
4838
|
--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));
|
4817
4839
|
text-align: center;
|
4818
|
-
word-break: break-word;
|
4819
4840
|
white-space: normal;
|
4820
4841
|
color: var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, 0.45)));
|
4821
4842
|
font-size: var(--sjs-internal-font-editorfont-size);
|
4822
4843
|
line-height: calc(1.5 * (var(--sjs-internal-font-editorfont-size)));
|
4844
|
+
padding: 0 calc(8 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4823
4845
|
}
|
4824
4846
|
|
4847
|
+
@container (max-width: 496px) {
|
4848
|
+
.sd-file__drag-area-placeholder {
|
4849
|
+
padding: 0 var(--sjs-base-unit, var(--base-unit, 8px));
|
4850
|
+
}
|
4851
|
+
}
|
4852
|
+
@container (max-width: 176px) {
|
4853
|
+
.sd-file__drag-area-placeholder {
|
4854
|
+
display: none;
|
4855
|
+
}
|
4856
|
+
.sd-file__decorator .sd-action {
|
4857
|
+
padding: var(--sjs-base-unit, var(--base-unit, 8px));
|
4858
|
+
}
|
4859
|
+
.sd-file__decorator .sd-action .sv-svg-icon {
|
4860
|
+
margin-left: 0;
|
4861
|
+
}
|
4862
|
+
.sd-file__decorator .sd-file__actions-container {
|
4863
|
+
flex-direction: column;
|
4864
|
+
}
|
4865
|
+
.sd-file__decorator .sd-file__actions-container span {
|
4866
|
+
display: none;
|
4867
|
+
}
|
4868
|
+
}
|
4825
4869
|
.sd-root-modern--mobile .sd-file__decorator {
|
4826
4870
|
padding: 0 calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4827
4871
|
}
|
@@ -4845,6 +4889,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4845
4889
|
|
4846
4890
|
.sd-file__wrapper {
|
4847
4891
|
width: max-content;
|
4892
|
+
max-width: 100%;
|
4848
4893
|
}
|
4849
4894
|
|
4850
4895
|
.sd-question--answered .sd-file__drag-area-placeholder {
|
@@ -4853,6 +4898,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4853
4898
|
|
4854
4899
|
.sd-file__actions-container {
|
4855
4900
|
margin-top: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4901
|
+
flex-wrap: wrap;
|
4902
|
+
justify-content: center;
|
4856
4903
|
}
|
4857
4904
|
.sd-file__actions-container .sv-action--hidden {
|
4858
4905
|
display: none;
|
@@ -5466,7 +5513,6 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
5466
5513
|
max-width: 30%;
|
5467
5514
|
padding-right: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
5468
5515
|
border-right: 1px solid var(--sjs-border-default, var(--border, #d6d6d6));
|
5469
|
-
word-break: break-word;
|
5470
5516
|
white-space: normal;
|
5471
5517
|
color: var(--sjs-font-editorfont-placeholdercolor, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
|
5472
5518
|
}
|