survey-react 1.10.5 → 1.11.1

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.10.5
2
+ * surveyjs - Survey JavaScript library v1.11.1
3
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
  */
@@ -483,6 +483,18 @@ sv-popup {
483
483
  height: 0;
484
484
  }
485
485
 
486
+ .sv-popup.sv-popup-inner {
487
+ height: 0;
488
+ }
489
+
490
+ .sv-popup-inner > .sv-popup__container {
491
+ margin-top: calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))));
492
+ }
493
+
494
+ .sv-list__item--with-icon .sv-popup-inner > .sv-popup__container {
495
+ margin-top: calc(-0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
496
+ }
497
+
486
498
  .sv-popup__container {
487
499
  background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
488
500
  box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
@@ -533,6 +545,10 @@ sv-popup {
533
545
  padding-bottom: 2px;
534
546
  }
535
547
 
548
+ .sv-popup--modal .sv-popup__body-footer .sv-footer-action-bar {
549
+ overflow: visible;
550
+ }
551
+
536
552
  .sv-popup--confirm-delete .sv-popup__shadow {
537
553
  height: initial;
538
554
  }
@@ -640,6 +656,7 @@ sv-popup {
640
656
  display: flex;
641
657
  flex-direction: column;
642
658
  min-height: 0;
659
+ position: relative;
643
660
  }
644
661
 
645
662
  .sv-popup--show-pointer.sv-popup--top .sv-popup__pointer {
@@ -1732,6 +1749,7 @@ sv-brand-info, .sv-brand-info {
1732
1749
  }
1733
1750
 
1734
1751
  .sv-list__item-body {
1752
+ position: relative;
1735
1753
  width: 100%;
1736
1754
  align-items: center;
1737
1755
  box-sizing: border-box;
@@ -1768,15 +1786,16 @@ sv-brand-info, .sv-brand-info {
1768
1786
  .sv-list__item:focus {
1769
1787
  outline: none;
1770
1788
  }
1771
- .sv-list__item:hover .sv-list__item-body,
1772
- .sv-list__item:focus .sv-list__item-body {
1789
+
1790
+ .sv-list__item:focus .sv-list__item-body,
1791
+ .sv-list__item--hovered > .sv-list__item-body {
1773
1792
  background-color: var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)));
1774
1793
  }
1775
1794
 
1776
1795
  .sv-list__item--with-icon.sv-list__item--with-icon {
1777
1796
  padding: 0;
1778
1797
  }
1779
- .sv-list__item--with-icon.sv-list__item--with-icon .sv-list__item-body {
1798
+ .sv-list__item--with-icon.sv-list__item--with-icon > .sv-list__item-body {
1780
1799
  padding-top: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1781
1800
  padding-bottom: calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1782
1801
  gap: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -1796,6 +1815,19 @@ sv-brand-info, .sv-brand-info {
1796
1815
  fill: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
1797
1816
  }
1798
1817
 
1818
+ .sv-list-item__marker-icon {
1819
+ position: absolute;
1820
+ right: var(--sjs-base-unit, var(--base-unit, 8px));
1821
+ flex-shrink: 0;
1822
+ padding: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1823
+ }
1824
+ .sv-list-item__marker-icon svg {
1825
+ display: block;
1826
+ }
1827
+ .sv-list-item__marker-icon use {
1828
+ fill: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
1829
+ }
1830
+
1799
1831
  [dir=rtl] .sv-list__item-icon,
1800
1832
  [style*="direction:rtl"] .sv-list__item-icon,
1801
1833
  [style*="direction: rtl"] .sv-list__item-icon {
@@ -1812,11 +1844,11 @@ sv-brand-info, .sv-brand-info {
1812
1844
  display: none;
1813
1845
  }
1814
1846
 
1815
- .sv-list__item.sv-list__item--selected .sv-list__item-body,
1816
- .sv-list__item.sv-list__item--selected:hover .sv-list__item-body,
1817
- .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,
1818
- .sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,
1819
- li:focus .sv-list__item.sv-list__item--selected .sv-list__item-body {
1847
+ .sv-list__item.sv-list__item--selected > .sv-list__item-body,
1848
+ .sv-list__item.sv-list__item--selected:hover > .sv-list__item-body,
1849
+ .sv-list__item.sv-list__item--selected.sv-list__item--focused > .sv-list__item-body,
1850
+ .sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused > .sv-list__item-body,
1851
+ li:focus .sv-list__item.sv-list__item--selected > .sv-list__item-body {
1820
1852
  background-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
1821
1853
  color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
1822
1854
  font-weight: 600;
@@ -1828,6 +1860,13 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-body {
1828
1860
  li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1829
1861
  fill: var(--sjs-general-backcolor, var(--background, #fff));
1830
1862
  }
1863
+ .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use,
1864
+ .sv-list__item.sv-list__item--selected:hover .sv-list-item__marker-icon use,
1865
+ .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,
1866
+ .sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list-item__marker-icon use,
1867
+ li:focus .sv-list__item.sv-list__item--selected .sv-list-item__marker-icon use {
1868
+ fill: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
1869
+ }
1831
1870
 
1832
1871
  .sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body,
1833
1872
  .sv-multi-select-list .sv-list__item.sv-list__item--selected:hover .sv-list__item-body {
@@ -2330,6 +2369,11 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2330
2369
  position: relative;
2331
2370
  }
2332
2371
 
2372
+ .sd-question--no-pointer-events .sd-selectbase label,
2373
+ .sd-question--no-pointer-events .sd-rating label {
2374
+ pointer-events: none;
2375
+ }
2376
+
2333
2377
  .sd-element__erbox--above-element {
2334
2378
  margin-bottom: var(--sjs-base-unit, var(--base-unit, 8px));
2335
2379
  }
@@ -2755,6 +2799,19 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
2755
2799
  width: calc(100% - 4 * var(--sjs-base-unit, var(--base-unit, 8px)));
2756
2800
  height: calc(1.5 * (var(--sjs-internal-font-editorfont-size)));
2757
2801
  }
2802
+ .sd-input[type=time].sd-text__character-counter:focus-within,
2803
+ .sd-input[type=date].sd-text__character-counter:focus-within,
2804
+ .sd-input[type=datetime-local].sd-text__character-counter:focus-within,
2805
+ .sd-input[type=week].sd-text__character-counter:focus-within,
2806
+ .sd-input[type=month].sd-text__character-counter:focus-within,
2807
+ .sd-input[type=tel].sd-text__character-counter:focus-within,
2808
+ .sd-input[type=password].sd-text__character-counter:focus-within,
2809
+ .sd-input[type=url].sd-text__character-counter:focus-within,
2810
+ .sd-input[type=email].sd-text__character-counter:focus-within,
2811
+ .sd-input[type=color].sd-text__character-counter:focus-within,
2812
+ .sd-input[type=range].sd-text__character-counter:focus-within {
2813
+ width: calc(100% - 10 * var(--sjs-base-unit, var(--base-unit, 8px)));
2814
+ }
2758
2815
 
2759
2816
  .sd-input[type=range]::-webkit-slider-runnable-track {
2760
2817
  background-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
@@ -3475,6 +3532,10 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3475
3532
  overflow-x: visible;
3476
3533
  }
3477
3534
 
3535
+ .sd-question--table .sd-question__header--location--left {
3536
+ z-index: 12;
3537
+ }
3538
+
3478
3539
  .sd-table-wrapper {
3479
3540
  display: flex;
3480
3541
  margin: 0 calc(-1 * var(--sd-base-padding));
@@ -3666,11 +3727,18 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3666
3727
  margin-top: var(--sd-base-vertical-padding);
3667
3728
  --animate-margin: var(--sd-base-vertical-padding);
3668
3729
  }
3730
+ .sd-page__title ~ .sd-page__row.sd-row.sd-row--fade-in.sd-row--fade-in,
3731
+ .sd-page__description ~ .sd-page__row.sd-row.sd-row--fade-in.sd-row--fade-in {
3732
+ margin-top: 0;
3733
+ }
3669
3734
 
3670
3735
  .sd-row.sd-page__row:not(.sd-row--compact) ~ .sd-row.sd-page__row:not(.sd-row--compact) {
3671
3736
  margin-top: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3672
3737
  --animate-margin: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3673
3738
  }
3739
+ .sd-row.sd-page__row:not(.sd-row--compact) ~ .sd-page__row.sd-row.sd-row--fade-in.sd-row--fade-in {
3740
+ margin-top: 0;
3741
+ }
3674
3742
 
3675
3743
  .sd-row--multiple {
3676
3744
  row-gap: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -3734,16 +3802,25 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3734
3802
  margin-top: var(--animate-margin);
3735
3803
  }
3736
3804
  }
3805
+ .sd-row.sd-row--fade-in {
3806
+ margin-top: 0;
3807
+ }
3808
+
3737
3809
  .sd-row--fade-in {
3738
3810
  animation-fill-mode: forwards;
3739
3811
  animation-name: fadeIn, moveInWithOverflow, marginFadeIn;
3740
3812
  min-height: 0 !important;
3741
3813
  opacity: 0;
3814
+ height: 0;
3742
3815
  animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
3743
3816
  animation-delay: var(--sjs-row-fade-in-delay, 150ms), 0s, 0s;
3744
3817
  animation-duration: var(--sjs-row-fade-in-duration, 500ms), var(--sjs-row-move-in-duration, 150ms), var(--sjs-row-move-in-duration, 150ms);
3745
3818
  }
3746
3819
 
3820
+ .sd-row--delayed-fade-in {
3821
+ animation-delay: calc(var(--sjs-row-fade-in-delay, 150ms) + var(--sjs-row-fade-in-animation-delay, 400ms)), var(--sjs-row-fade-in-animation-delay, 400ms), var(--sjs-row-fade-in-animation-delay, 400ms);
3822
+ }
3823
+
3747
3824
  .sd-row--fade-out {
3748
3825
  animation-name: fadeIn, moveInWithOverflow, marginFadeIn;
3749
3826
  animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
@@ -4918,6 +4995,11 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
4918
4995
  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));
4919
4996
  }
4920
4997
 
4998
+ .sd-input.sd-dropdown.sd-input--readonly {
4999
+ box-shadow: none;
5000
+ transition: none;
5001
+ }
5002
+
4921
5003
  .sd-dropdown__filter-string-input {
4922
5004
  --sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));
4923
5005
  position: absolute;
@@ -5498,6 +5580,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5498
5580
  .sd-expression {
5499
5581
  color: var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));
5500
5582
  font-size: var(--sjs-font-size, 16px);
5583
+ white-space: break-spaces;
5501
5584
  }
5502
5585
 
5503
5586
  .sd-question__content--left .sd-expression {
@@ -5621,11 +5704,11 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5621
5704
  white-space: nowrap;
5622
5705
  }
5623
5706
 
5624
- .sd-boolean--checked .sd-boolean__thumb {
5707
+ .sd-boolean--checked:not(.sd-boolean--exchanged) .sd-boolean__thumb {
5625
5708
  margin-left: 50%;
5626
5709
  }
5627
5710
 
5628
- .sd-boolean--exchanged .sd-boolean__thumb {
5711
+ .sd-boolean--exchanged:not(.sd-boolean--checked) .sd-boolean__thumb {
5629
5712
  margin-left: calc(50% + 0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5630
5713
  }
5631
5714
  .sd-boolean--exchanged.sd-boolean:not(.sd-boolean--checked):not(sd-boolean--indeterminate) .sd-boolean__label--false, .sd-boolean--exchanged.sd-boolean.sd-boolean--checked .sd-boolean__label--true {
@@ -6246,16 +6329,18 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
6246
6329
  min-height: 100%;
6247
6330
  width: calc(12 * (var(--sjs-base-unit, var(--base-unit, 8px))));
6248
6331
  margin: 0;
6332
+ cursor: pointer;
6249
6333
  }
6250
6334
  .sd-file__preview-item .sd-file__default-image {
6251
6335
  width: calc(7 * (var(--sjs-base-unit, var(--base-unit, 8px))));
6252
6336
  height: calc(8.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
6253
6337
  }
6254
- .sd-file__preview-item img:hover + .sd-file__remove-file-button,
6255
- .sd-file__preview-item svg:hover + .sd-file__remove-file-button,
6256
- .sd-file__preview-item .sd-file__remove-file-button:hover {
6338
+ .sd-file__preview-item:hover .sd-file__remove-file-button {
6257
6339
  opacity: 1;
6258
6340
  }
6341
+ .sd-file__preview-item:hover .sd-file__sign a {
6342
+ text-decoration: underline;
6343
+ }
6259
6344
 
6260
6345
  .sd-file__sign {
6261
6346
  margin-top: var(--sjs-base-unit, var(--base-unit, 8px));
@@ -6285,12 +6370,18 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
6285
6370
  display: block;
6286
6371
  opacity: 0;
6287
6372
  position: absolute;
6288
- left: 50%;
6289
- top: 50%;
6373
+ left: 100%;
6374
+ top: 0;
6290
6375
  transform: translate(-50%, -50%);
6291
6376
  transition: opacity var(--sjs-transition-duration, 150ms);
6292
6377
  }
6293
6378
 
6379
+ .sd-file__image-wrapper--default-image .sd-file__remove-file-button {
6380
+ left: 50%;
6381
+ top: 50%;
6382
+ transform: translate(calc(3.5 * var(--sjs-base-unit, var(--base-unit, 8px)) - 50% - 1.5px), calc(-4.25 * var(--sjs-base-unit, var(--base-unit, 8px)) - 50% + 1.5px));
6383
+ }
6384
+
6294
6385
  .sd-file__decorator--error {
6295
6386
  background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
6296
6387
  }
@@ -6319,7 +6410,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
6319
6410
  background: transparent;
6320
6411
  }
6321
6412
 
6322
- .sd-file--single img:hover + .sd-file__remove-file-button {
6413
+ .sd-file--single .sd-file__preview-item .sd-file__remove-file-button {
6323
6414
  display: none;
6324
6415
  }
6325
6416
 
@@ -7058,6 +7149,33 @@ svg.sd-action--icon {
7058
7149
  opacity: 0.25;
7059
7150
  }
7060
7151
 
7152
+ .sd-context-btn--small {
7153
+ padding: var(--sjs-base-unit, var(--base-unit, 8px));
7154
+ }
7155
+ .sd-context-btn--small svg {
7156
+ width: var(--sjs-internal-font-editorfont-size);
7157
+ height: var(--sjs-internal-font-editorfont-size);
7158
+ }
7159
+
7160
+ .sd-context-btn--with-border {
7161
+ border: 1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, 0.16)));
7162
+ }
7163
+
7164
+ .sd-context-btn--colorful:focus,
7165
+ .sd-context-btn--colorful:hover {
7166
+ border-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
7167
+ background: linear-gradient(var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1))), var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)))), linear-gradient(var(--sjs-general-backcolor, var(--background, #fff)), var(--sjs-general-backcolor, var(--background, #fff)));
7168
+ }
7169
+ .sd-context-btn--colorful:focus.sd-context-btn--with-border,
7170
+ .sd-context-btn--colorful:hover.sd-context-btn--with-border {
7171
+ border-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
7172
+ }
7173
+ .sd-context-btn--colorful:focus.sd-context-btn--negative,
7174
+ .sd-context-btn--colorful:hover.sd-context-btn--negative {
7175
+ border-color: var(--sjs-special-red, var(--red, #e60a3e));
7176
+ background: linear-gradient(var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1))), var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)))), linear-gradient(var(--sjs-general-backcolor, var(--background, #fff)), var(--sjs-general-backcolor, var(--background, #fff)));
7177
+ }
7178
+
7061
7179
  :root {
7062
7180
  --sjs-transition-duration: 150ms;
7063
7181
  }
@@ -7315,6 +7433,7 @@ svg.sd-action--icon {
7315
7433
  z-index: -1;
7316
7434
  border: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) solid transparent;
7317
7435
  border-radius: 50%;
7436
+ box-sizing: content-box;
7318
7437
  }
7319
7438
  .sd-progress-buttons__list li:hover .sd-progress-buttons__button {
7320
7439
  color: var(--sjs-primary-backcolor, var(--primary, #19b394));
@@ -7508,6 +7627,18 @@ svg.sd-action--icon {
7508
7627
  background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
7509
7628
  }
7510
7629
 
7630
+ .sd-title + .sv-components-row > .sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile),
7631
+ .sd-title ~ .sv-components-row > .sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile) {
7632
+ margin-top: 2px;
7633
+ }
7634
+
7635
+ .sv_progress-toc.sv_progress-toc--sticky {
7636
+ position: sticky;
7637
+ height: auto;
7638
+ overflow-y: auto;
7639
+ top: 0;
7640
+ }
7641
+
7511
7642
  .sd-list {
7512
7643
  padding-right: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7513
7644
  padding-left: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -7954,7 +8085,7 @@ sv-components-container,
7954
8085
  padding-top: calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7955
8086
  }
7956
8087
  .sd-root-modern.sd-root-modern--mobile .sd-table:not(.sd-matrix__table) tfoot tr::before {
7957
- top: calc(-2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
8088
+ background-color: transparent;
7958
8089
  }
7959
8090
  .sd-root-modern.sd-root-modern--mobile .sd-table:not(.sd-table--has-footer) .sd-table__row:last-of-type .sd-table__cell-action--show-detail-mobile,
7960
8091
  .sd-root-modern.sd-root-modern--mobile .sd-table:not(.sd-table--has-footer) .sd-table__row:last-of-type .sd-table__cell-action--remove-row {
@@ -7984,6 +8115,9 @@ sv-components-container,
7984
8115
  .sd-root-modern.sd-root-modern--mobile .sd-matrix__cell {
7985
8116
  margin-top: 0;
7986
8117
  }
8118
+ .sd-root-modern.sd-root-modern--mobile .sd-table__cell--footer:not(.sd-question--answered) {
8119
+ display: none;
8120
+ }
7987
8121
  .sd-root-modern.sd-root-modern--mobile .sd-table__cell::before {
7988
8122
  padding-bottom: var(--sjs-base-unit, var(--base-unit, 8px));
7989
8123
  content: attr(data-responsive-title);