survey-react 1.9.77 → 1.9.79

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.77
2
+ * surveyjs - Survey JavaScript library v1.9.79
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
  */
@@ -544,9 +544,6 @@ sv-popup {
544
544
  padding: 0;
545
545
  border-radius: 0;
546
546
  }
547
- .sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer .sv-action-bar {
548
- justify-content: flex-end;
549
- }
550
547
  .sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer .sv-action-bar .sv-action {
551
548
  width: auto;
552
549
  }
@@ -655,6 +652,7 @@ sv-popup {
655
652
 
656
653
  .sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__body-content {
657
654
  --sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--base-unit, 8px) * 8);
655
+ --sv-popup-overlay-max-width: calc(100% - var(--base-unit, 8px) * 8);
658
656
  position: absolute;
659
657
  transform: translate(-50%, -50%);
660
658
  left: 50%;
@@ -662,7 +660,9 @@ sv-popup {
662
660
  max-height: var(--sv-popup-overlay-max-height);
663
661
  min-height: min(var(--sv-popup-overlay-max-height), 31 * var(--base-unit, 8px));
664
662
  height: auto;
665
- max-width: calc(40 * var(--base-unit, 8px));
663
+ width: auto;
664
+ min-width: min(40 * var(--base-unit, 8px), var(--sv-popup-overlay-max-width));
665
+ max-width: var(--sv-popup-overlay-max-width);
666
666
  border-radius: calc(0.5 * var(--base-unit, 8px));
667
667
  overflow: hidden;
668
668
  margin: 0;
@@ -906,6 +906,7 @@ sv-popup {
906
906
  .sv-ranking {
907
907
  outline: none;
908
908
  user-select: none;
909
+ -webkit-user-select: none;
909
910
  }
910
911
 
911
912
  .sv-ranking-item {
@@ -1294,9 +1295,8 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1294
1295
  position: absolute;
1295
1296
  left: 50%;
1296
1297
  bottom: calc(3 * var(--base-unit, 8px));
1297
- transform: translate(-50%, 0);
1298
1298
  background: var(--background, #fff);
1299
- opacity: 0.75;
1299
+ opacity: 0;
1300
1300
  padding: calc(3 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));
1301
1301
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
1302
1302
  border-radius: calc(1 * var(--base-unit, 8px));
@@ -1307,17 +1307,43 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1307
1307
  font-family: var(--font-family, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif);
1308
1308
  font-size: calc(2 * var(--base-unit, 8px));
1309
1309
  line-height: calc(3 * var(--base-unit, 8px));
1310
- white-space: nowrap;
1311
1310
  display: flex;
1312
1311
  flex-direction: row;
1313
1312
  justify-content: center;
1314
1313
  align-items: center;
1314
+ transform: translateX(-50%) translateY(calc(3 * var(--base-unit, 8px)));
1315
+ transition-timing-function: ease-in;
1316
+ transition-property: transform, opacity;
1317
+ transition-delay: 0.25s;
1318
+ transition: 0.5s;
1319
+ }
1320
+
1321
+ .sv-save-data_root.sv-save-data_root--shown {
1322
+ transition-timing-function: ease-out;
1323
+ transition-property: transform, opacity;
1324
+ transform: translateX(-50%) translateY(0);
1325
+ transition-delay: 0.25s;
1326
+ opacity: 0.75;
1327
+ }
1328
+
1329
+ .sv-save-data_root span {
1330
+ display: flex;
1331
+ flex-grow: 1;
1332
+ }
1333
+ .sv-save-data_root .sv-action-bar {
1334
+ display: flex;
1335
+ flex-grow: 0;
1336
+ flex-shrink: 0;
1337
+ }
1338
+
1339
+ .sv-save-data_root--shown.sv-save-data_success,
1340
+ .sv-save-data_root--shown.sv-save-data_error {
1341
+ opacity: 1;
1315
1342
  }
1316
1343
 
1317
1344
  .sv-save-data_root.sv-save-data_error {
1318
1345
  background-color: var(--red, #e60a3e);
1319
1346
  color: var(--background, #fff);
1320
- opacity: 1;
1321
1347
  font-weight: 600;
1322
1348
  padding: calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));
1323
1349
  gap: calc(6 * var(--base-unit, 8px));
@@ -1346,7 +1372,6 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1346
1372
  .sv-save-data_root.sv-save-data_success {
1347
1373
  background-color: var(--primary, #19b394);
1348
1374
  color: #ffffff;
1349
- opacity: 1;
1350
1375
  font-weight: 600;
1351
1376
  }
1352
1377
 
@@ -1542,13 +1567,16 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1542
1567
 
1543
1568
  .sd-element__num {
1544
1569
  float: left;
1545
- padding: calc(0.625 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px)) calc(0.375 * var(--base-unit, 8px));
1546
- width: calc(4 * var(--base-unit, 8px));
1570
+ padding-top: calc(0.625 * var(--base-unit, 8px));
1571
+ padding-bottom: calc(0.375 * var(--base-unit, 8px));
1572
+ padding-inline-start: 0;
1573
+ padding-inline-end: calc(1 * var(--base-unit, 8px));
1574
+ width: calc(5 * var(--base-unit, 8px));
1547
1575
  font-size: calc(1.5 * var(--base-unit, 8px));
1548
1576
  line-height: calc(2 * var(--base-unit, 8px));
1549
1577
  color: var(--foreground-light, #909090);
1550
- margin-inline-start: calc(-4 * var(--base-unit, 8px));
1551
- text-align: right;
1578
+ margin-inline-start: calc(-5 * var(--base-unit, 8px));
1579
+ text-align: end;
1552
1580
  box-sizing: border-box;
1553
1581
  white-space: nowrap;
1554
1582
  flex-shrink: 0;
@@ -1564,14 +1592,14 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1564
1592
  float: right;
1565
1593
  }
1566
1594
 
1567
- .sd-element__title--expandable .sd-element__num {
1595
+ .sd-element__title--num-inline .sd-element__num {
1568
1596
  float: none;
1569
- margin-left: 0;
1597
+ margin-inline-start: 0;
1570
1598
  width: auto;
1571
- padding-left: 0;
1572
- padding-right: 0;
1599
+ padding-inline-start: 0;
1600
+ padding-inline-end: 0;
1573
1601
  }
1574
- .sd-element__title--expandable .sd-element__num + span {
1602
+ .sd-element__title--num-inline .sd-element__num + span {
1575
1603
  float: none;
1576
1604
  width: auto;
1577
1605
  }
@@ -1602,6 +1630,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1602
1630
  position: relative;
1603
1631
  }
1604
1632
 
1633
+ .sd-question__description {
1634
+ font-size: calc(2 * var(--base-unit, 8px));
1635
+ }
1636
+
1605
1637
  .sd-question__erbox {
1606
1638
  padding: calc(1 * var(--base-unit, 8px)) calc(1.5 * var(--base-unit, 8px));
1607
1639
  border-radius: calc(0.5 * var(--base-unit, 8px));
@@ -2719,18 +2751,21 @@ legend + sv-ng-rating-item + .sd-rating__item {
2719
2751
  .sd-rating__item-star svg {
2720
2752
  stroke: var(--border, #d6d6d6);
2721
2753
  fill: none;
2754
+ width: calc(6 * var(--base-unit, 8px));
2755
+ height: calc(6 * var(--base-unit, 8px));
2756
+ display: block;
2722
2757
  }
2723
2758
  .sd-rating__item-star .sv-star-2 {
2724
2759
  display: none;
2725
2760
  }
2726
2761
 
2727
2762
  .sd-rating__item-star--selected svg {
2728
- stroke: var(--primary, #19b394);
2763
+ stroke: none;
2729
2764
  fill: var(--primary, #19b394);
2730
2765
  }
2731
2766
 
2732
2767
  .sd-rating__item-star--error svg {
2733
- stroke: var(--red-light, rgba(230, 10, 62, 0.1));
2768
+ stroke: none;
2734
2769
  fill: var(--red-light, rgba(230, 10, 62, 0.1));
2735
2770
  }
2736
2771
 
@@ -2743,7 +2778,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
2743
2778
  }
2744
2779
 
2745
2780
  .sd-rating__item-star--selected.sd-rating__item-star--disabled svg {
2746
- stroke: var(--border, #d6d6d6);
2781
+ stroke: none;
2747
2782
  fill: var(--border, #d6d6d6);
2748
2783
  }
2749
2784
 
@@ -2753,7 +2788,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
2753
2788
  }
2754
2789
 
2755
2790
  .sd-rating__item-star--unhighlighted svg {
2756
- stroke: var(--border, #d6d6d6);
2791
+ stroke: none;
2757
2792
  fill: var(--border, #d6d6d6);
2758
2793
  }
2759
2794
 
@@ -2945,6 +2980,15 @@ legend + sv-ng-rating-item + .sd-rating__item {
2945
2980
  appearance: none;
2946
2981
  }
2947
2982
 
2983
+ .sd-dropdown__hint-prefix {
2984
+ color: var(--foreground-light, #909090);
2985
+ }
2986
+
2987
+ .sd-dropdown__hint-suffix {
2988
+ display: flex;
2989
+ color: var(--foreground-light, #909090);
2990
+ }
2991
+
2948
2992
  [dir=rtl] .sd-dropdown,
2949
2993
  [style*="direction:rtl"] .sd-dropdown,
2950
2994
  [style*="direction: rtl"] .sd-dropdown {
@@ -3082,7 +3126,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
3082
3126
  .sd-imagepicker__item img,
3083
3127
  .sd-imagepicker__item .sd-imagepicker__image-container > div {
3084
3128
  border-radius: calc(0.5 * var(--base-unit, 8px));
3085
- background-color: var(--background-dim, #f3f3f3);
3129
+ background-color: var(--background-dim-light, #f9f9f9);
3086
3130
  }
3087
3131
 
3088
3132
  .sd-imagepicker__item-decorator {
@@ -3154,6 +3198,7 @@ legend + sv-ng-rating-item + .sd-rating__item {
3154
3198
  .sd-imagepicker__no-image {
3155
3199
  display: flex;
3156
3200
  background-color: var(--background-dim-light, #f9f9f9);
3201
+ inset-block-start: 0;
3157
3202
  }
3158
3203
 
3159
3204
  .sd-imagepicker__no-image-svg {
@@ -3189,6 +3234,23 @@ legend + sv-ng-rating-item + .sd-rating__item {
3189
3234
  max-width: calc(80 * var(--base-unit, 8px));
3190
3235
  }
3191
3236
 
3237
+ .sd-image__no-image {
3238
+ background: var(--background-dim-light, #f9f9f9);
3239
+ min-width: calc(5 * var(--base-unit, 8px));
3240
+ min-height: calc(5 * var(--base-unit, 8px));
3241
+ width: 100%;
3242
+ height: 100%;
3243
+ position: absolute;
3244
+ inset-block-start: 0;
3245
+ display: flex;
3246
+ align-items: center;
3247
+ justify-content: center;
3248
+ }
3249
+
3250
+ .sd-image__no-image use {
3251
+ fill: var(--foreground-light, #909090);
3252
+ }
3253
+
3192
3254
  .sd-html {
3193
3255
  white-space: initial;
3194
3256
  }
@@ -4266,10 +4328,10 @@ sv-components-container,
4266
4328
 
4267
4329
  .sd-root-modern.sd-root-modern--mobile .sd-element__num {
4268
4330
  float: none;
4269
- margin-left: 0;
4331
+ margin-inline-start: 0;
4270
4332
  width: auto;
4271
- padding-left: 0;
4272
- padding-right: 0;
4333
+ padding-inline-start: 0;
4334
+ padding-inline-end: 0;
4273
4335
  }
4274
4336
  .sd-root-modern.sd-root-modern--mobile .sd-element__num + span {
4275
4337
  float: none;