survey-react 1.10.6 → 1.11.2

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.6
2
+ * surveyjs - Survey JavaScript library v1.11.2
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
  }
@@ -3125,7 +3169,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3125
3169
  animation-fill-mode: forwards;
3126
3170
  }
3127
3171
  .sd-table__row--detail.sd-table__row--fade-in {
3128
- --fade-in-animation-duration: calc(var(--sjs--fade-in-duration, 500ms) + var(--sjs-matrix-detail-row-fade-in-delay, 150ms));
3172
+ --fade-in-animation-duration: calc(var(--sjs-matrix-detail-row-fade-in-duration, 500ms) + var(--sjs-matrix-detail-row-fade-in-delay, 150ms));
3129
3173
  animation-duration: max(var(--fade-in-animation-duration), var(--sjs-matrix-detail-row-move-in-duration, 150ms));
3130
3174
  }
3131
3175
  .sd-table__row--detail.sd-table__row--fade-in > td {
@@ -3133,7 +3177,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3133
3177
  animation-duration: var(--sjs-matrix-detail-row-move-in-duration, 150ms);
3134
3178
  }
3135
3179
  .sd-table__row--detail.sd-table__row--fade-in > td > div {
3136
- animation-duration: var(--sjs--fade-in-duration, 500ms), var(--sjs-matrix-detail-row-move-in-duration, 150ms);
3180
+ animation-duration: var(--sjs-matrix-detail-row-fade-in-duration, 500ms), var(--sjs-matrix-detail-row-move-in-duration, 150ms);
3137
3181
  animation-delay: var(--sjs-matrix-detail-row-fade-in-delay, 150ms), 0s;
3138
3182
  }
3139
3183
  .sd-table__row--detail.sd-table__row--fade-out {
@@ -3683,11 +3727,18 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3683
3727
  margin-top: var(--sd-base-vertical-padding);
3684
3728
  --animate-margin: var(--sd-base-vertical-padding);
3685
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
+ }
3686
3734
 
3687
3735
  .sd-row.sd-page__row:not(.sd-row--compact) ~ .sd-row.sd-page__row:not(.sd-row--compact) {
3688
3736
  margin-top: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3689
3737
  --animate-margin: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3690
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
+ }
3691
3742
 
3692
3743
  .sd-row--multiple {
3693
3744
  row-gap: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -3751,16 +3802,25 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3751
3802
  margin-top: var(--animate-margin);
3752
3803
  }
3753
3804
  }
3805
+ .sd-row.sd-row--fade-in {
3806
+ margin-top: 0;
3807
+ }
3808
+
3754
3809
  .sd-row--fade-in {
3755
3810
  animation-fill-mode: forwards;
3756
3811
  animation-name: fadeIn, moveInWithOverflow, marginFadeIn;
3757
3812
  min-height: 0 !important;
3758
3813
  opacity: 0;
3814
+ height: 0;
3759
3815
  animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
3760
3816
  animation-delay: var(--sjs-row-fade-in-delay, 150ms), 0s, 0s;
3761
3817
  animation-duration: var(--sjs-row-fade-in-duration, 500ms), var(--sjs-row-move-in-duration, 150ms), var(--sjs-row-move-in-duration, 150ms);
3762
3818
  }
3763
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
+
3764
3824
  .sd-row--fade-out {
3765
3825
  animation-name: fadeIn, moveInWithOverflow, marginFadeIn;
3766
3826
  animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
@@ -4935,6 +4995,11 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
4935
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));
4936
4996
  }
4937
4997
 
4998
+ .sd-input.sd-dropdown.sd-input--readonly {
4999
+ box-shadow: none;
5000
+ transition: none;
5001
+ }
5002
+
4938
5003
  .sd-dropdown__filter-string-input {
4939
5004
  --sjs-internal-font-editorfont-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));
4940
5005
  position: absolute;
@@ -4963,6 +5028,10 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
4963
5028
  color: var(--sjs-font-editorfont-placeholdercolor, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
4964
5029
  }
4965
5030
 
5031
+ .sd-dropdown--empty div {
5032
+ min-height: calc(1.5 * (var(--sjs-internal-font-editorfont-size)));
5033
+ }
5034
+
4966
5035
  .sd-dropdown__filter-string-input::placeholder {
4967
5036
  color: var(--sjs-general-forecolor, var(--foreground, #161616));
4968
5037
  width: 100%;
@@ -5515,6 +5584,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5515
5584
  .sd-expression {
5516
5585
  color: var(--sjs-font-questiontitle-color, var(--sjs-general-forecolor, var(--foreground, #161616)));
5517
5586
  font-size: var(--sjs-font-size, 16px);
5587
+ white-space: break-spaces;
5518
5588
  }
5519
5589
 
5520
5590
  .sd-question__content--left .sd-expression {
@@ -5638,11 +5708,11 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5638
5708
  white-space: nowrap;
5639
5709
  }
5640
5710
 
5641
- .sd-boolean--checked .sd-boolean__thumb {
5711
+ .sd-boolean--checked:not(.sd-boolean--exchanged) .sd-boolean__thumb {
5642
5712
  margin-left: 50%;
5643
5713
  }
5644
5714
 
5645
- .sd-boolean--exchanged .sd-boolean__thumb {
5715
+ .sd-boolean--exchanged:not(.sd-boolean--checked) .sd-boolean__thumb {
5646
5716
  margin-left: calc(50% + 0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5647
5717
  }
5648
5718
  .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 {
@@ -6263,16 +6333,18 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
6263
6333
  min-height: 100%;
6264
6334
  width: calc(12 * (var(--sjs-base-unit, var(--base-unit, 8px))));
6265
6335
  margin: 0;
6336
+ cursor: pointer;
6266
6337
  }
6267
6338
  .sd-file__preview-item .sd-file__default-image {
6268
6339
  width: calc(7 * (var(--sjs-base-unit, var(--base-unit, 8px))));
6269
6340
  height: calc(8.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
6270
6341
  }
6271
- .sd-file__preview-item img:hover + .sd-file__remove-file-button,
6272
- .sd-file__preview-item svg:hover + .sd-file__remove-file-button,
6273
- .sd-file__preview-item .sd-file__remove-file-button:hover {
6342
+ .sd-file__preview-item:hover .sd-file__remove-file-button {
6274
6343
  opacity: 1;
6275
6344
  }
6345
+ .sd-file__preview-item:hover .sd-file__sign a {
6346
+ text-decoration: underline;
6347
+ }
6276
6348
 
6277
6349
  .sd-file__sign {
6278
6350
  margin-top: var(--sjs-base-unit, var(--base-unit, 8px));
@@ -6302,12 +6374,18 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
6302
6374
  display: block;
6303
6375
  opacity: 0;
6304
6376
  position: absolute;
6305
- left: 50%;
6306
- top: 50%;
6377
+ left: 100%;
6378
+ top: 0;
6307
6379
  transform: translate(-50%, -50%);
6308
6380
  transition: opacity var(--sjs-transition-duration, 150ms);
6309
6381
  }
6310
6382
 
6383
+ .sd-file__image-wrapper--default-image .sd-file__remove-file-button {
6384
+ left: 50%;
6385
+ top: 50%;
6386
+ 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));
6387
+ }
6388
+
6311
6389
  .sd-file__decorator--error {
6312
6390
  background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
6313
6391
  }
@@ -6336,7 +6414,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
6336
6414
  background: transparent;
6337
6415
  }
6338
6416
 
6339
- .sd-file--single img:hover + .sd-file__remove-file-button {
6417
+ .sd-file--single .sd-file__preview-item .sd-file__remove-file-button {
6340
6418
  display: none;
6341
6419
  }
6342
6420
 
@@ -7075,6 +7153,43 @@ svg.sd-action--icon {
7075
7153
  opacity: 0.25;
7076
7154
  }
7077
7155
 
7156
+ .sd-context-btn--small {
7157
+ padding: var(--sjs-base-unit, var(--base-unit, 8px));
7158
+ }
7159
+ .sd-context-btn--small svg {
7160
+ width: var(--sjs-internal-font-editorfont-size);
7161
+ height: var(--sjs-internal-font-editorfont-size);
7162
+ }
7163
+
7164
+ .sd-context-btn--with-border {
7165
+ --box-shadow-color: var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, 0.16)));
7166
+ box-shadow: 0 0 0 1px var(--box-shadow-color);
7167
+ }
7168
+
7169
+ .sd-context-btn--colorful use {
7170
+ fill: var(--sjs-primary-backcolor, var(--primary, #19b394));
7171
+ }
7172
+ .sd-context-btn--colorful.sd-context-btn--negative use {
7173
+ fill: red;
7174
+ }
7175
+
7176
+ .sd-context-btn--colorful:focus,
7177
+ .sd-context-btn--colorful:hover {
7178
+ 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)));
7179
+ }
7180
+ .sd-context-btn--colorful:focus.sd-context-btn--negative,
7181
+ .sd-context-btn--colorful:hover.sd-context-btn--negative {
7182
+ 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)));
7183
+ }
7184
+ .sd-context-btn--colorful:focus.sd-context-btn--with-border,
7185
+ .sd-context-btn--colorful:hover.sd-context-btn--with-border {
7186
+ --box-shadow-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
7187
+ }
7188
+ .sd-context-btn--colorful:focus.sd-context-btn--with-border.sd-context-btn--negative,
7189
+ .sd-context-btn--colorful:hover.sd-context-btn--with-border.sd-context-btn--negative {
7190
+ --box-shadow-color: var(--sjs-special-red, var(--red, #e60a3e));
7191
+ }
7192
+
7078
7193
  :root {
7079
7194
  --sjs-transition-duration: 150ms;
7080
7195
  }
@@ -7332,6 +7447,7 @@ svg.sd-action--icon {
7332
7447
  z-index: -1;
7333
7448
  border: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) solid transparent;
7334
7449
  border-radius: 50%;
7450
+ box-sizing: content-box;
7335
7451
  }
7336
7452
  .sd-progress-buttons__list li:hover .sd-progress-buttons__button {
7337
7453
  color: var(--sjs-primary-backcolor, var(--primary, #19b394));
@@ -7525,6 +7641,18 @@ svg.sd-action--icon {
7525
7641
  background-color: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
7526
7642
  }
7527
7643
 
7644
+ .sd-title + .sv-components-row > .sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile),
7645
+ .sd-title ~ .sv-components-row > .sv-components-column .sv_progress-toc:not(.sv_progress-toc--mobile) {
7646
+ margin-top: 2px;
7647
+ }
7648
+
7649
+ .sv_progress-toc.sv_progress-toc--sticky {
7650
+ position: sticky;
7651
+ height: auto;
7652
+ overflow-y: auto;
7653
+ top: 0;
7654
+ }
7655
+
7528
7656
  .sd-list {
7529
7657
  padding-right: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
7530
7658
  padding-left: calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));