survey-react 1.9.107 → 1.9.108
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 +95 -53
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +4 -1
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +328 -272
- package/survey.react.js +832 -460
- 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.108
|
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
|
*/
|
@@ -391,6 +391,9 @@ button.sv-action-bar-item {
|
|
391
391
|
overflow: hidden;
|
392
392
|
visibility: hidden;
|
393
393
|
}
|
394
|
+
.sv-action--hidden .sv-action__content {
|
395
|
+
min-width: fit-content;
|
396
|
+
}
|
394
397
|
|
395
398
|
.sv-action__content {
|
396
399
|
display: flex;
|
@@ -2113,6 +2116,15 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
|
|
2113
2116
|
display: flex;
|
2114
2117
|
}
|
2115
2118
|
|
2119
|
+
.sd-input[type=time],
|
2120
|
+
.sd-input[type=date],
|
2121
|
+
.sd-input[type=datetime-local],
|
2122
|
+
.sd-input[type=week],
|
2123
|
+
.sd-input[type=month],
|
2124
|
+
.sd-input[type=tel],
|
2125
|
+
.sd-input[type=password],
|
2126
|
+
.sd-input[type=url],
|
2127
|
+
.sd-input[type=email],
|
2116
2128
|
.sd-input[type=color],
|
2117
2129
|
.sd-input[type=range] {
|
2118
2130
|
box-sizing: content-box;
|
@@ -3635,6 +3647,12 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
3635
3647
|
white-space: pre;
|
3636
3648
|
}
|
3637
3649
|
|
3650
|
+
.sd-input--disabled .sv-string-viewer {
|
3651
|
+
max-width: 100%;
|
3652
|
+
overflow: hidden;
|
3653
|
+
text-overflow: ellipsis;
|
3654
|
+
}
|
3655
|
+
|
3638
3656
|
.sv-popup.sv-popup--dropdown.sv-popup--dropdown .sd-list__item-body {
|
3639
3657
|
line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
3640
3658
|
font-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
|
@@ -4213,6 +4231,10 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4213
4231
|
border: none;
|
4214
4232
|
}
|
4215
4233
|
|
4234
|
+
.sd-paneldynamic__separator:only-child {
|
4235
|
+
display: none;
|
4236
|
+
}
|
4237
|
+
|
4216
4238
|
.sd-paneldynamic__panel-wrapper {
|
4217
4239
|
padding-bottom: calc(1 * var(--sd-base-padding));
|
4218
4240
|
}
|
@@ -4417,16 +4439,19 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4417
4439
|
}
|
4418
4440
|
|
4419
4441
|
.sd-file {
|
4420
|
-
min-height: calc(36 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4421
4442
|
position: relative;
|
4422
4443
|
font-size: calc(1 * var(--sjs-font-size, 16px));
|
4423
4444
|
line-height: calc(1.5 * var(--sjs-font-size, 16px));
|
4445
|
+
min-height: calc(36 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4446
|
+
box-sizing: border-box;
|
4447
|
+
padding: 0 calc(6 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4424
4448
|
}
|
4425
4449
|
.sd-file .sv-action-bar {
|
4426
4450
|
padding: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) 0;
|
4427
4451
|
justify-content: center;
|
4428
4452
|
position: absolute;
|
4429
4453
|
width: 100%;
|
4454
|
+
left: 0;
|
4430
4455
|
bottom: 0;
|
4431
4456
|
}
|
4432
4457
|
.sd-file .sv-action-bar .sv-action-bar-item {
|
@@ -4436,6 +4461,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4436
4461
|
}
|
4437
4462
|
.sd-file .sv-action-bar #fileIndex .sv-action-bar-item {
|
4438
4463
|
padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px))) 0;
|
4464
|
+
font-weight: 600;
|
4439
4465
|
}
|
4440
4466
|
.sd-file .sv-action-bar #fileIndex .sv-action-bar-item:hover {
|
4441
4467
|
background-color: var(--sjs-general-backcolor, var(--background, #fff));
|
@@ -4448,19 +4474,22 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4448
4474
|
display: flex;
|
4449
4475
|
flex-direction: column;
|
4450
4476
|
position: absolute;
|
4477
|
+
position: absolute;
|
4478
|
+
left: calc(0 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4451
4479
|
width: 100%;
|
4452
4480
|
height: 100%;
|
4453
4481
|
box-sizing: border-box;
|
4454
|
-
border: 1px dashed var(--sjs-border-default, var(--border, #d6d6d6));
|
4455
4482
|
justify-content: center;
|
4456
4483
|
align-items: center;
|
4484
|
+
padding: 0 calc(8 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4485
|
+
border: 1px dashed var(--sjs-border-default, var(--border, #d6d6d6));
|
4457
4486
|
}
|
4458
4487
|
|
4459
4488
|
.sd-file__decorator--drag {
|
4489
|
+
z-index: 1;
|
4460
4490
|
border: 1px solid var(--sjs-primary-backcolor, var(--primary, #19b394));
|
4461
|
-
box-shadow: inset 0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
4462
4491
|
background: var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));
|
4463
|
-
|
4492
|
+
box-shadow: inset 0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));
|
4464
4493
|
}
|
4465
4494
|
|
4466
4495
|
.sd-file__no-file-chosen {
|
@@ -4468,7 +4497,6 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4468
4497
|
}
|
4469
4498
|
|
4470
4499
|
.sd-file__drag-area-placeholder {
|
4471
|
-
padding: 0 calc(8 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4472
4500
|
text-align: center;
|
4473
4501
|
word-break: break-word;
|
4474
4502
|
white-space: normal;
|
@@ -4477,7 +4505,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4477
4505
|
line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
|
4478
4506
|
}
|
4479
4507
|
|
4480
|
-
.sd-root-modern--mobile .sd-
|
4508
|
+
.sd-root-modern--mobile .sd-file__decorator {
|
4481
4509
|
padding: 0 calc(4 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4482
4510
|
}
|
4483
4511
|
|
@@ -4527,16 +4555,15 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4527
4555
|
}
|
4528
4556
|
|
4529
4557
|
.sd-file__list {
|
4530
|
-
overflow: auto;
|
4531
4558
|
display: flex;
|
4559
|
+
gap: calc(4 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4532
4560
|
box-sizing: content-box;
|
4533
4561
|
flex-direction: row;
|
4534
4562
|
align-items: stretch;
|
4535
|
-
justify-content:
|
4563
|
+
justify-content: center;
|
4536
4564
|
padding: calc(10.5 * var(--sjs-base-unit, var(--base-unit, 8px))) 0;
|
4537
4565
|
min-height: calc(15 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4538
4566
|
max-height: calc(15 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
4539
|
-
position: absolute;
|
4540
4567
|
width: 100%;
|
4541
4568
|
}
|
4542
4569
|
|
@@ -4546,7 +4573,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4546
4573
|
align-items: center;
|
4547
4574
|
flex-direction: column;
|
4548
4575
|
min-height: 100%;
|
4549
|
-
margin: 0
|
4576
|
+
margin: 0;
|
4550
4577
|
}
|
4551
4578
|
.sd-file__preview .sd-file__default-image {
|
4552
4579
|
width: calc(7 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
@@ -4622,6 +4649,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4622
4649
|
margin: 0;
|
4623
4650
|
}
|
4624
4651
|
.sd-file--single-image .sd-file__list {
|
4652
|
+
position: absolute;
|
4653
|
+
left: 0;
|
4625
4654
|
padding: 0;
|
4626
4655
|
height: 100%;
|
4627
4656
|
max-height: 100%;
|
@@ -4657,7 +4686,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
|
|
4657
4686
|
}
|
4658
4687
|
|
4659
4688
|
.sd-file__drag-area {
|
4660
|
-
position:
|
4689
|
+
position: static;
|
4661
4690
|
width: 100%;
|
4662
4691
|
height: 100%;
|
4663
4692
|
}
|
@@ -5627,47 +5656,6 @@ sv-components-container,
|
|
5627
5656
|
.sd-root-modern.sd-root-modern--mobile .sd-header__text {
|
5628
5657
|
min-width: 100%;
|
5629
5658
|
}
|
5630
|
-
.sd-root-modern.sd-root-modern--mobile .sd-multipletext__cell {
|
5631
|
-
display: block;
|
5632
|
-
}
|
5633
|
-
.sd-root-modern.sd-root-modern--mobile .sd-multipletext__cell:not(:first-of-type) {
|
5634
|
-
padding-left: 0;
|
5635
|
-
padding-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5636
|
-
}
|
5637
|
-
.sd-root-modern.sd-root-modern--mobile .sd-multipletext__cell :not(:last-of-type) {
|
5638
|
-
padding-bottom: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5639
|
-
}
|
5640
|
-
.sd-root-modern.sd-root-modern--mobile .sd-multipletext__item-container {
|
5641
|
-
flex-direction: column;
|
5642
|
-
}
|
5643
|
-
.sd-root-modern.sd-root-modern--mobile .sd-multipletext__item-title {
|
5644
|
-
height: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5645
|
-
padding-right: 0;
|
5646
|
-
border-right: none;
|
5647
|
-
margin-bottom: 0;
|
5648
|
-
margin-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5649
|
-
width: 100%;
|
5650
|
-
max-width: none;
|
5651
|
-
}
|
5652
|
-
.sd-root-modern.sd-root-modern--mobile .sd-multipletext__item-title span {
|
5653
|
-
font-size: calc(0.75 * var(--sjs-font-size, 16px));
|
5654
|
-
line-height: calc(1 * var(--sjs-font-size, 16px));
|
5655
|
-
}
|
5656
|
-
.sd-root-modern.sd-root-modern--mobile .sd-multipletext__item {
|
5657
|
-
width: 100%;
|
5658
|
-
}
|
5659
|
-
.sd-root-modern.sd-root-modern--mobile .sd-multipletext__item .sd-input {
|
5660
|
-
padding-right: 0;
|
5661
|
-
padding-left: 0;
|
5662
|
-
margin-top: 0;
|
5663
|
-
margin-bottom: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5664
|
-
}
|
5665
|
-
.sd-root-modern.sd-root-modern--mobile .sd-selectbase--multi-column {
|
5666
|
-
flex-direction: column;
|
5667
|
-
}
|
5668
|
-
.sd-root-modern.sd-root-modern--mobile .sd-selectbase--multi-column .sd-selectbase__column:not(:last-child) {
|
5669
|
-
padding-right: 0;
|
5670
|
-
}
|
5671
5659
|
.sd-root-modern.sd-root-modern--mobile .sd-question.sd-question--table > .sd-question__content {
|
5672
5660
|
padding-top: 0;
|
5673
5661
|
}
|
@@ -5794,6 +5782,60 @@ sv-components-container,
|
|
5794
5782
|
margin-right: 0;
|
5795
5783
|
}
|
5796
5784
|
|
5785
|
+
.sd-multipletext--mobile .sd-multipletext__cell {
|
5786
|
+
display: block;
|
5787
|
+
}
|
5788
|
+
.sd-multipletext--mobile .sd-multipletext__cell:not(:first-of-type) {
|
5789
|
+
padding-left: 0;
|
5790
|
+
padding-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5791
|
+
}
|
5792
|
+
.sd-multipletext--mobile .sd-multipletext__cell :not(:last-of-type) {
|
5793
|
+
padding-bottom: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5794
|
+
}
|
5795
|
+
.sd-multipletext--mobile .sd-multipletext__item-container {
|
5796
|
+
padding-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5797
|
+
padding-bottom: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
|
5798
|
+
}
|
5799
|
+
.sd-multipletext--mobile .sd-multipletext__item-title {
|
5800
|
+
max-width: none;
|
5801
|
+
border-right: none;
|
5802
|
+
width: 100%;
|
5803
|
+
padding: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) 0;
|
5804
|
+
margin: 0;
|
5805
|
+
}
|
5806
|
+
.sd-multipletext--mobile .sd-multipletext__item {
|
5807
|
+
flex-basis: 0;
|
5808
|
+
}
|
5809
|
+
.sd-multipletext--mobile .sd-multipletext__item .sd-input {
|
5810
|
+
padding: 0;
|
5811
|
+
margin: 0;
|
5812
|
+
}
|
5813
|
+
.sd-multipletext--mobile .sd-multipletext__item-container--answered,
|
5814
|
+
.sd-multipletext--mobile .sd-multipletext__item-container--allow-focus:focus-within {
|
5815
|
+
flex-direction: column;
|
5816
|
+
}
|
5817
|
+
.sd-multipletext--mobile .sd-multipletext__item-container--answered .sd-multipletext__item-title,
|
5818
|
+
.sd-multipletext--mobile .sd-multipletext__item-container--allow-focus:focus-within .sd-multipletext__item-title {
|
5819
|
+
padding: 0;
|
5820
|
+
}
|
5821
|
+
.sd-multipletext--mobile .sd-multipletext__item-container--answered .sd-multipletext__item-title span,
|
5822
|
+
.sd-multipletext--mobile .sd-multipletext__item-container--allow-focus:focus-within .sd-multipletext__item-title span {
|
5823
|
+
font-size: calc(0.75 * var(--sjs-font-size, 16px));
|
5824
|
+
line-height: calc(1 * var(--sjs-font-size, 16px));
|
5825
|
+
}
|
5826
|
+
.sd-multipletext--mobile .sd-multipletext__item-container--answered .sd-multipletext__item,
|
5827
|
+
.sd-multipletext--mobile .sd-multipletext__item-container--allow-focus:focus-within .sd-multipletext__item {
|
5828
|
+
flex-basis: auto;
|
5829
|
+
width: 100%;
|
5830
|
+
}
|
5831
|
+
|
5832
|
+
.sd-selectbase--mobile .sd-selectbase--multi-column {
|
5833
|
+
flex-direction: column;
|
5834
|
+
}
|
5835
|
+
.sd-selectbase--mobile .sd-selectbase--multi-column .sd-selectbase__column:not(:last-child) {
|
5836
|
+
padding-right: 0;
|
5837
|
+
}
|
5838
|
+
|
5797
5839
|
body {
|
5798
5840
|
--sv-defaultV2-mark: true;
|
5799
5841
|
}
|