survey-react 1.9.121 → 1.9.123
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 +5 -1
- package/defaultV2.css +126 -26
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +1 -8
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.css.map +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +666 -666
- package/survey.react.js +399 -243
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# SurveyJS Form Library for React
|
2
2
|
|
3
|
+
|
4
|
+
<video src="https://github.com/surveyjs/survey-library/assets/22315929/b24a68bf-d703-4096-835b-752f5f610aa6"></video>
|
5
|
+
|
6
|
+
|
3
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.
|
4
8
|
|
5
9
|
> **NOTE**: This package contains a legacy Knockout-dependent version of SurveyJS Form Library for React. We recommend using a new [native implementation of SurveyJS React Form Library](https://www.npmjs.com/package/survey-react-ui). For information on how to integrate it into your application, refer to the following tutorial: [Add a Survey to a React Application](https://surveyjs.io/form-library/documentation/get-started-react).
|
@@ -17,4 +21,4 @@ Refer to instructions in the root README file: [Build the SurveyJS Form Library
|
|
17
21
|
|
18
22
|
## Licensing
|
19
23
|
|
20
|
-
SurveyJS Form Library is distributed under the [MIT license](https://github.com/surveyjs/survey-library/blob/master/LICENSE).
|
24
|
+
SurveyJS Form Library is distributed under the [MIT license](https://github.com/surveyjs/survey-library/blob/master/LICENSE).
|
package/defaultV2.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.123
|
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
|
*/
|
@@ -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 {
|
@@ -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
|
}
|
@@ -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: " ";
|
@@ -3337,6 +3354,61 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
3337
3354
|
flex-wrap: wrap;
|
3338
3355
|
min-width: 0;
|
3339
3356
|
}
|
3357
|
+
.sd-rating.sd-rating--labels-top fieldset {
|
3358
|
+
padding-top: calc(4.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
3359
|
+
position: relative;
|
3360
|
+
}
|
3361
|
+
.sd-rating.sd-rating--labels-top fieldset .sd-rating__min-text {
|
3362
|
+
position: absolute;
|
3363
|
+
margin: 0;
|
3364
|
+
left: 0;
|
3365
|
+
top: 0;
|
3366
|
+
border: 0;
|
3367
|
+
}
|
3368
|
+
.sd-rating.sd-rating--labels-top fieldset .sd-rating__max-text {
|
3369
|
+
position: absolute;
|
3370
|
+
margin: 0;
|
3371
|
+
right: 0;
|
3372
|
+
top: 0;
|
3373
|
+
border: 0;
|
3374
|
+
}
|
3375
|
+
.sd-rating.sd-rating--labels-bottom fieldset {
|
3376
|
+
padding-bottom: calc(4.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
3377
|
+
position: relative;
|
3378
|
+
}
|
3379
|
+
.sd-rating.sd-rating--labels-bottom fieldset .sd-rating__min-text {
|
3380
|
+
position: absolute;
|
3381
|
+
margin: 0;
|
3382
|
+
left: 0;
|
3383
|
+
bottom: 0;
|
3384
|
+
border: 0;
|
3385
|
+
}
|
3386
|
+
.sd-rating.sd-rating--labels-bottom fieldset .sd-rating__max-text {
|
3387
|
+
position: absolute;
|
3388
|
+
margin: 0;
|
3389
|
+
right: 0;
|
3390
|
+
bottom: 0;
|
3391
|
+
border: 0;
|
3392
|
+
}
|
3393
|
+
.sd-rating.sd-rating--labels-diagonal fieldset {
|
3394
|
+
padding-top: calc(4.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
3395
|
+
padding-bottom: calc(4.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
3396
|
+
position: relative;
|
3397
|
+
}
|
3398
|
+
.sd-rating.sd-rating--labels-diagonal fieldset .sd-rating__min-text {
|
3399
|
+
position: absolute;
|
3400
|
+
margin: 0;
|
3401
|
+
left: 0;
|
3402
|
+
top: 0;
|
3403
|
+
border: 0;
|
3404
|
+
}
|
3405
|
+
.sd-rating.sd-rating--labels-diagonal fieldset .sd-rating__max-text {
|
3406
|
+
position: absolute;
|
3407
|
+
margin: 0;
|
3408
|
+
right: 0;
|
3409
|
+
bottom: 0;
|
3410
|
+
border: 0;
|
3411
|
+
}
|
3340
3412
|
|
3341
3413
|
.sd-rating--small {
|
3342
3414
|
min-height: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
@@ -4308,7 +4380,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4308
4380
|
|
4309
4381
|
.sd-question__content--left .sd-expression {
|
4310
4382
|
line-height: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4311
|
-
|
4383
|
+
padding: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) 0;
|
4312
4384
|
}
|
4313
4385
|
|
4314
4386
|
.sd-progress {
|
@@ -4742,8 +4814,12 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4742
4814
|
box-sizing: border-box;
|
4743
4815
|
justify-content: center;
|
4744
4816
|
align-items: center;
|
4745
|
-
padding: 0 calc(8 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4746
4817
|
border: 1px dashed var(--sjs-border-default, var(--border, #d6d6d6));
|
4818
|
+
container-type: inline-size;
|
4819
|
+
}
|
4820
|
+
|
4821
|
+
.sd-file--answered .sd-file__decorator {
|
4822
|
+
container-type: unset;
|
4747
4823
|
}
|
4748
4824
|
|
4749
4825
|
.sd-file__decorator--drag {
|
@@ -4760,13 +4836,35 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4760
4836
|
.sd-file__drag-area-placeholder {
|
4761
4837
|
--sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));
|
4762
4838
|
text-align: center;
|
4763
|
-
word-break: break-word;
|
4764
4839
|
white-space: normal;
|
4765
4840
|
color: var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, 0.45)));
|
4766
4841
|
font-size: var(--sjs-internal-font-editorfont-size);
|
4767
4842
|
line-height: calc(1.5 * (var(--sjs-internal-font-editorfont-size)));
|
4843
|
+
padding: 0 calc(8 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4768
4844
|
}
|
4769
4845
|
|
4846
|
+
@container (max-width: 496px) {
|
4847
|
+
.sd-file__drag-area-placeholder {
|
4848
|
+
padding: 0 var(--sjs-base-unit, var(--base-unit, 8px));
|
4849
|
+
}
|
4850
|
+
}
|
4851
|
+
@container (max-width: 176px) {
|
4852
|
+
.sd-file__drag-area-placeholder {
|
4853
|
+
display: none;
|
4854
|
+
}
|
4855
|
+
.sd-file__decorator .sd-action {
|
4856
|
+
padding: var(--sjs-base-unit, var(--base-unit, 8px));
|
4857
|
+
}
|
4858
|
+
.sd-file__decorator .sd-action .sv-svg-icon {
|
4859
|
+
margin-left: 0;
|
4860
|
+
}
|
4861
|
+
.sd-file__decorator .sd-file__actions-container {
|
4862
|
+
flex-direction: column;
|
4863
|
+
}
|
4864
|
+
.sd-file__decorator .sd-file__actions-container span {
|
4865
|
+
display: none;
|
4866
|
+
}
|
4867
|
+
}
|
4770
4868
|
.sd-root-modern--mobile .sd-file__decorator {
|
4771
4869
|
padding: 0 calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4772
4870
|
}
|
@@ -4790,6 +4888,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4790
4888
|
|
4791
4889
|
.sd-file__wrapper {
|
4792
4890
|
width: max-content;
|
4891
|
+
max-width: 100%;
|
4793
4892
|
}
|
4794
4893
|
|
4795
4894
|
.sd-question--answered .sd-file__drag-area-placeholder {
|
@@ -4798,6 +4897,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4798
4897
|
|
4799
4898
|
.sd-file__actions-container {
|
4800
4899
|
margin-top: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
4900
|
+
flex-wrap: wrap;
|
4901
|
+
justify-content: center;
|
4801
4902
|
}
|
4802
4903
|
.sd-file__actions-container .sv-action--hidden {
|
4803
4904
|
display: none;
|
@@ -5411,7 +5512,6 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
5411
5512
|
max-width: 30%;
|
5412
5513
|
padding-right: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
|
5413
5514
|
border-right: 1px solid var(--sjs-border-default, var(--border, #d6d6d6));
|
5414
|
-
word-break: break-word;
|
5415
5515
|
white-space: normal;
|
5416
5516
|
color: var(--sjs-font-editorfont-placeholdercolor, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
|
5417
5517
|
}
|