survey-react 1.9.117 → 1.9.119

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.9.117
2
+ * surveyjs - Survey JavaScript library v1.9.119
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
  */
@@ -1676,11 +1676,14 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1676
1676
  opacity: 1;
1677
1677
  }
1678
1678
 
1679
+ .sv-save-data_root.sv-save-data_root--with-buttons {
1680
+ padding: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1681
+ }
1682
+
1679
1683
  .sv-save-data_root.sv-save-data_error {
1680
1684
  background-color: var(--sjs-special-red, var(--red, #e60a3e));
1681
1685
  color: var(--sjs-general-backcolor, var(--background, #fff));
1682
1686
  font-weight: 600;
1683
- padding: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1684
1687
  gap: calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1685
1688
  }
1686
1689
 
@@ -1837,6 +1840,8 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1837
1840
  padding-bottom: var(--sd-base-padding);
1838
1841
  background: var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));
1839
1842
  box-shadow: var(--sjs-shadow-small, 0px 1px 2px 0px rgba(0, 0, 0, 0.15));
1843
+ display: flex;
1844
+ flex-direction: column;
1840
1845
  }
1841
1846
 
1842
1847
  .sd-element--with-frame.sd-element--compact {
@@ -1850,26 +1855,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1850
1855
  position: relative;
1851
1856
  }
1852
1857
 
1853
- .sd-question__erbox {
1854
- display: block;
1855
- padding: var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1856
- border-radius: var(--sjs-corner-radius, 4px);
1857
- line-height: var(--sjs-font-size, 16px);
1858
- font-size: calc(0.75 * (var(--sjs-font-size, 16px)));
1859
- text-align: left;
1860
- color: var(--sjs-special-red, var(--red, #e60a3e));
1861
- font-weight: 600;
1862
- white-space: normal;
1863
- }
1864
-
1865
- .sd-question__erbox--outside-question {
1866
- width: 100%;
1867
- color: var(--sjs-special-red, var(--red, #e60a3e));
1868
- background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
1869
- box-sizing: border-box;
1870
- }
1871
-
1872
- .sd-question__erbox--above-question {
1858
+ .sd-element__erbox--above-element {
1873
1859
  margin-bottom: var(--sjs-base-unit, var(--base-unit, 8px));
1874
1860
  }
1875
1861
 
@@ -1886,13 +1872,13 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1886
1872
  margin-top: calc(0.25 * var(--sd-base-vertical-padding) + 0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
1887
1873
  }
1888
1874
 
1889
- .sd-element--with-frame > .sd-question__erbox--above-question {
1875
+ .sd-element--with-frame > .sd-element__erbox--above-element {
1890
1876
  margin-bottom: var(--sd-base-padding);
1891
1877
  border-radius: var(--sjs-corner-radius, 4px) var(--sjs-corner-radius, 4px) 0 0;
1892
1878
  }
1893
1879
 
1894
1880
  .sd-element--with-frame > .sd-question__erbox--below-question {
1895
- margin-top: var(--sd-base-padding);
1881
+ margin-top: auto;
1896
1882
  border-radius: 0 0 var(--sjs-corner-radius, 4px) var(--sjs-corner-radius, 4px);
1897
1883
  }
1898
1884
 
@@ -1926,7 +1912,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1926
1912
  .sd-element--with-frame.sd-question--error-bottom {
1927
1913
  padding-bottom: 0;
1928
1914
  }
1929
- .sd-element--with-frame > .sd-question__erbox--outside-question {
1915
+ .sd-element--with-frame.sd-question--error-bottom > .sd-question__content {
1916
+ margin-bottom: var(--sd-base-padding);
1917
+ }
1918
+ .sd-element--with-frame > .sd-element__erbox {
1930
1919
  margin-left: calc(-1 * var(--sd-base-padding));
1931
1920
  margin-right: calc(-1 * var(--sd-base-padding));
1932
1921
  width: calc(100% + 2 * var(--sd-base-padding));
@@ -1948,6 +1937,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1948
1937
  .sd-question--left {
1949
1938
  display: flex;
1950
1939
  flex-wrap: wrap;
1940
+ flex-direction: row;
1951
1941
  }
1952
1942
 
1953
1943
  .sd-question__content--left {
@@ -1998,6 +1988,21 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1998
1988
  height: calc(1.5 * (var(--sjs-font-questiontitle-size, var(--sjs-font-size, 16px))));
1999
1989
  }
2000
1990
 
1991
+ .sd-error {
1992
+ display: block;
1993
+ padding: var(--sjs-base-unit, var(--base-unit, 8px)) calc(1.5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
1994
+ border-radius: var(--sjs-corner-radius, 4px);
1995
+ line-height: var(--sjs-font-size, 16px);
1996
+ font-size: calc(0.75 * (var(--sjs-font-size, 16px)));
1997
+ font-weight: 600;
1998
+ text-align: left;
1999
+ color: var(--sjs-special-red, var(--red, #e60a3e));
2000
+ white-space: normal;
2001
+ width: 100%;
2002
+ background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
2003
+ box-sizing: border-box;
2004
+ }
2005
+
2001
2006
  .sd-element--expanded > .sd-element__header,
2002
2007
  .sd-element--collapsed > .sd-element__header {
2003
2008
  cursor: pointer;
@@ -2030,8 +2035,8 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2030
2035
  padding-top: 0;
2031
2036
  }
2032
2037
 
2033
- .sd-element--complex.sd-element--nested-with-borders > .sd-question__erbox--outside-question,
2034
- .sd-element--complex.sd-element--with-frame > .sd-question__erbox--outside-question {
2038
+ .sd-element--complex.sd-element--nested-with-borders > .sd-element__erbox,
2039
+ .sd-element--complex.sd-element--with-frame > .sd-element__erbox {
2035
2040
  margin-top: 0;
2036
2041
  margin-bottom: 0;
2037
2042
  }
@@ -2070,7 +2075,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2070
2075
  padding-top: calc(0.5 * var(--sd-base-vertical-padding));
2071
2076
  padding-bottom: calc(0.5 * var(--sd-base-vertical-padding));
2072
2077
  }
2073
- .sd-element--nested-with-borders > .sd-question__erbox--outside-question {
2078
+ .sd-element--nested-with-borders > .sd-element__erbox {
2074
2079
  margin-left: calc(-1 * var(--sd-base-padding));
2075
2080
  margin-right: calc(-1 * var(--sd-base-padding));
2076
2081
  width: calc(100% + 2 * var(--sd-base-padding));
@@ -2275,7 +2280,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
2275
2280
 
2276
2281
  .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header {
2277
2282
  padding-top: 0;
2278
- padding-bottom: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
2283
+ padding-bottom: calc(0.5 * var(--sd-base-vertical-padding) + var(--sjs-base-unit, var(--base-unit, 8px)));
2279
2284
  }
2280
2285
  .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header:after {
2281
2286
  content: none;
@@ -2306,10 +2311,21 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
2306
2311
  line-height: calc(1.5 * (var(--sjs-font-pagedescription-size, var(--sjs-font-size, 16px))));
2307
2312
  margin: 0 0 calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) 0;
2308
2313
  }
2314
+ .sd-panel.sd-panel--as-page > .sd-panel__header.sd-panel__header .sd-panel__required-text {
2315
+ display: none;
2316
+ }
2317
+ .sd-panel.sd-panel--as-page > .sd-panel__errbox {
2318
+ margin: 0 0 calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px)))) 0;
2319
+ padding: calc(0.5 * var(--sd-base-vertical-padding) + var(--sjs-base-unit, var(--base-unit, 8px))) var(--sd-base-padding);
2320
+ }
2309
2321
  .sd-panel.sd-panel--as-page > .sd-panel__content {
2310
2322
  padding-top: 0;
2311
2323
  }
2312
2324
 
2325
+ .sd-root--compact .sd-panel--as-page > .sd-panel__errbox {
2326
+ margin: 0 0 var(--sd-base-vertical-padding) 0;
2327
+ }
2328
+
2313
2329
  .sd-row ~ .sd-row .sd-panel--as-page {
2314
2330
  padding-top: calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
2315
2331
  }
@@ -2582,7 +2598,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
2582
2598
  border: none;
2583
2599
  padding: 0 var(--sjs-base-unit, var(--base-unit, 8px));
2584
2600
  }
2585
- .sd-table__cell--error .sd-question__erbox--outside-question {
2601
+ .sd-table__cell--error .sd-question__erbox {
2586
2602
  margin: 0;
2587
2603
  }
2588
2604
 
@@ -2652,6 +2668,15 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
2652
2668
  min-width: calc(18 * (var(--sjs-base-unit, var(--base-unit, 8px))));
2653
2669
  }
2654
2670
 
2671
+ .sd-table__cell--footer {
2672
+ text-align: right;
2673
+ }
2674
+
2675
+ .sd-table__cell--footer-total {
2676
+ font-weight: 600;
2677
+ text-align: left;
2678
+ }
2679
+
2655
2680
  .sd-table__cell--detail-panel {
2656
2681
  border-top: var(--sjs-base-unit, var(--base-unit, 8px)) solid transparent;
2657
2682
  padding: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px)))) var(--sjs-base-unit, var(--base-unit, 8px)) calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
@@ -2855,6 +2880,21 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
2855
2880
  margin: 0 0 calc(0.5 * (var(--sjs-base-unit, var(--base-unit, 8px)))) 0;
2856
2881
  }
2857
2882
 
2883
+ .sd-page__errbox {
2884
+ padding: calc(0.5 * var(--sd-base-vertical-padding) + var(--sjs-base-unit, var(--base-unit, 8px))) var(--sd-base-padding);
2885
+ }
2886
+
2887
+ .sd-page__title ~ .sd-page__errbox,
2888
+ .sd-page__description ~ .sd-page__errbox {
2889
+ margin-top: calc(0.5 * var(--sd-base-vertical-padding) + var(--sjs-base-unit, var(--base-unit, 8px)));
2890
+ margin-bottom: calc(-1 * (var(--sjs-base-unit, var(--base-unit, 8px))));
2891
+ }
2892
+
2893
+ .sd-root--compact .sd-page__title ~ .sd-page__errbox,
2894
+ .sd-root--compact .sd-page__description ~ .sd-page__errbox {
2895
+ margin-bottom: 0;
2896
+ }
2897
+
2858
2898
  .sd-row {
2859
2899
  display: flex;
2860
2900
  flex-direction: row;
@@ -3270,6 +3310,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3270
3310
  }
3271
3311
  .sd-rating.sd-rating--wrappable fieldset {
3272
3312
  flex-wrap: wrap;
3313
+ min-width: 0;
3273
3314
  }
3274
3315
 
3275
3316
  .sd-rating--small {
@@ -3295,7 +3336,7 @@ textarea.sd-input:disabled:not(.sd-input--disabled) {
3295
3336
  box-sizing: border-box;
3296
3337
  min-width: calc(6 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3297
3338
  text-align: center;
3298
- border: 2px solid transparent;
3339
+ border: none;
3299
3340
  color: var(--sjs-general-forecolor, var(--foreground, #161616));
3300
3341
  fill: var(--sjs-general-forecolor, var(--foreground, #161616));
3301
3342
  font-size: var(--sjs-font-size, 16px);
@@ -3315,7 +3356,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
3315
3356
  .sd-rating__item--error {
3316
3357
  background-color: var(--sjs-special-red-light, var(--red-light, rgba(230, 10, 62, 0.1)));
3317
3358
  box-shadow: 0px 1px 2px transparent;
3318
- border-color: transparent;
3359
+ border: none;
3319
3360
  }
3320
3361
 
3321
3362
  .sd-rating__item.sd-rating__item--disabled {
@@ -3327,7 +3368,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
3327
3368
  color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
3328
3369
  fill: var(--sjs-general-forecolor, var(--foreground, #161616));
3329
3370
  background-color: var(--background-semitransparent, rgba(144, 144, 144, 0.5));
3330
- border-color: transparent;
3371
+ border: none;
3331
3372
  }
3332
3373
 
3333
3374
  .sd-question--disabled .sd-rating__item-text {
@@ -3336,16 +3377,15 @@ legend + sv-ng-rating-item + .sd-rating__item {
3336
3377
 
3337
3378
  .sd-rating__item--allowhover:hover {
3338
3379
  background-color: var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)));
3339
- border-color: var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)));
3340
3380
  }
3341
3381
 
3342
3382
  .sd-rating__item:focus-within {
3343
- border-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
3383
+ border: 2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));
3344
3384
  }
3345
3385
 
3346
3386
  .sd-rating__item--selected {
3347
3387
  background-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
3348
- border-color: var(--sjs-primary-backcolor, var(--primary, #19b394));
3388
+ border: 2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));
3349
3389
  color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
3350
3390
  font-weight: 600;
3351
3391
  box-shadow: 0px 1px 2px transparent;
@@ -3539,11 +3579,12 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3539
3579
  font-size: var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)));
3540
3580
  line-height: calc(1.5 * (var(--sjs-mobile-font-editorfont-size, var(--sjs-font-editorfont-size, var(--sjs-font-size, 16px)))));
3541
3581
  display: inline-block;
3582
+ border: 2px solid transparent;
3583
+ box-sizing: border-box;
3542
3584
  }
3543
3585
  .sd-rating__item-text.sd-rating__item-text.sd-rating__min-text, .sd-rating__item-text.sd-rating__item-text.sd-rating__max-text {
3544
3586
  margin-top: calc(1.25 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3545
3587
  margin-bottom: calc(1.25 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3546
- border: 2px solid transparent;
3547
3588
  color: var(--sjs-font-questiondescription-color, var(--sjs-general-forecolor-light, rgba(0, 0, 0, 0.45)));
3548
3589
  }
3549
3590
  .sd-rating__item-text.sd-rating__item-text.sd-rating__min-text {
@@ -3561,9 +3602,45 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3561
3602
  min-width: calc(3 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3562
3603
  }
3563
3604
 
3605
+ .sd-rating--wrappable .sd-rating__item-text {
3606
+ max-width: 100%;
3607
+ }
3608
+ .sd-rating--wrappable .sd-rating__item-text .sv-string-viewer {
3609
+ max-width: 100%;
3610
+ text-overflow: ellipsis;
3611
+ overflow: hidden;
3612
+ display: block;
3613
+ }
3614
+
3615
+ .sd-rating__item:focus-within .sd-rating__item-text.sd-rating__item-text {
3616
+ border: none;
3617
+ }
3618
+
3564
3619
  .sd-rating__item--selected .sd-rating__item-text.sd-rating__item-text {
3565
3620
  color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
3566
3621
  font-weight: inherit;
3622
+ border: none;
3623
+ }
3624
+
3625
+ .sd-rating-dropdown-item {
3626
+ display: flex;
3627
+ width: 100%;
3628
+ justify-content: space-between;
3629
+ align-items: center;
3630
+ gap: calc(4 * (var(--sjs-base-unit, var(--base-unit, 8px))));
3631
+ }
3632
+
3633
+ .sd-rating-dropdown-item_description {
3634
+ color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
3635
+ font-family: var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));
3636
+ font-style: normal;
3637
+ font-weight: normal;
3638
+ font-size: calc(0.75 * (var(--sjs-font-size, 16px)));
3639
+ line-height: var(--sjs-font-size, 16px);
3640
+ }
3641
+
3642
+ .sv-list__item.sv-list__item--selected .sd-rating-dropdown-item_description {
3643
+ color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
3567
3644
  }
3568
3645
 
3569
3646
  .sv-ranking-item--error .sv-ranking-item__index {
@@ -3633,6 +3710,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3633
3710
  opacity: 1;
3634
3711
  display: flex;
3635
3712
  justify-content: space-between;
3713
+ word-spacing: normal;
3636
3714
  }
3637
3715
 
3638
3716
  .sd-dropdown[disabled] {
@@ -3710,6 +3788,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3710
3788
  position: absolute;
3711
3789
  left: 0;
3712
3790
  top: 0;
3791
+ bottom: 0;
3713
3792
  width: 100%;
3714
3793
  max-width: 100%;
3715
3794
  border: none;
@@ -3726,7 +3805,6 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3726
3805
  white-space: nowrap;
3727
3806
  display: inline-block;
3728
3807
  appearance: none;
3729
- height: 100%;
3730
3808
  }
3731
3809
 
3732
3810
  .sd-dropdown--empty:not(.sd-input--disabled) .sd-dropdown__filter-string-input::placeholder {
@@ -5330,7 +5408,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
5330
5408
  padding-bottom: 0;
5331
5409
  }
5332
5410
 
5333
- .sd-multipletext__cell--error .sd-question__erbox--outside-question {
5411
+ .sd-multipletext__cell--error .sd-question__erbox {
5334
5412
  margin: 0;
5335
5413
  }
5336
5414
 
@@ -5853,6 +5931,11 @@ svg.sd-action--icon {
5853
5931
  padding-bottom: 0;
5854
5932
  }
5855
5933
 
5934
+ .sd-root-modern--mobile .sv-header__overlap {
5935
+ margin-bottom: calc(-5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5936
+ padding-bottom: calc(2 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5937
+ }
5938
+
5856
5939
  .sv-header__content {
5857
5940
  padding: calc(5 * (var(--sjs-base-unit, var(--base-unit, 8px))));
5858
5941
  box-sizing: border-box;
@@ -5927,7 +6010,7 @@ svg.sd-action--icon {
5927
6010
  --header-title-font-size: var(--sjs-font-headertitle-size, calc(2 * (var(--sjs-font-size, 16px))));
5928
6011
  font-size: var(--header-title-font-size);
5929
6012
  line-height: calc(1.25 * (var(--header-title-font-size)));
5930
- color: var(--sjs-font-headertitle-color, var(--sjs-general-dim-forecolor, rgba(0, 0, 0, 0.91)));
6013
+ color: var(--sjs-font-headertitle-color, var(--sjs-primary-forecolor, var(--primary-foreground, #fff)));
5931
6014
  font-family: var(--sjs-font-headertitle-family, var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family))));
5932
6015
  font-weight: var(--sjs-font-headertitle-weight, 700);
5933
6016
  margin: 0;
@@ -5953,9 +6036,9 @@ svg.sd-action--icon {
5953
6036
  --header-description-font-size: var(--sjs-font-headerdescription-size, var(--sjs-font-size, 16px));
5954
6037
  font-size: var(--header-description-font-size);
5955
6038
  line-height: calc(1.5 * (var(--header-description-font-size)));
5956
- color: var(--sjs-font-headerdescription-color, var(--sjs-general-dim-forecolor-light, rgba(0, 0, 0, 0.45)));
6039
+ color: var(--sjs-font-headerdescription-color, var(--sjs-primary-forecolor, var(--primary-foreground, #fff)));
5957
6040
  font-family: var(--sjs-font-headerdescription-family, var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family))));
5958
- font-weight: var(--sjs-font-headerdescription-weight, 400);
6041
+ font-weight: var(--sjs-font-headerdescription-weight, 600);
5959
6042
  margin: 0;
5960
6043
  }
5961
6044