survey-react 1.9.103 → 1.9.104

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,8 +1,9 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.103
2
+ * surveyjs - Survey JavaScript library v1.9.104
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
  */
6
+ @charset "UTF-8";
6
7
  /* cyrillic-ext */
7
8
  @font-face {
8
9
  font-family: "Open Sans";
@@ -1652,6 +1653,9 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
1652
1653
  .sd-element__title .sv-string-viewer {
1653
1654
  white-space: normal;
1654
1655
  }
1656
+ .sd-element__title .sv-string-viewer::before {
1657
+ content: "​";
1658
+ }
1655
1659
 
1656
1660
  .sd-element__num {
1657
1661
  float: left;
@@ -2050,7 +2054,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2050
2054
  }
2051
2055
 
2052
2056
  .sd-input::placeholder {
2053
- color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
2057
+ color: var(--sjs-font-editorfont-placeholdercolor, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
2054
2058
  -webkit-user-select: none;
2055
2059
  -moz-user-select: none;
2056
2060
  -ms-user-select: none;
@@ -2282,7 +2286,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2282
2286
  }
2283
2287
 
2284
2288
  .sd-matrixdynamic__footer {
2285
- padding-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
2289
+ padding-top: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));
2286
2290
  }
2287
2291
 
2288
2292
  .sd-action.sd-matrixdynamic__remove-btn {
@@ -2332,19 +2336,43 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2332
2336
  .sd-table {
2333
2337
  width: 100%;
2334
2338
  background: var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));
2335
- border-collapse: collapse;
2339
+ border-collapse: separate;
2340
+ border-spacing: 0;
2336
2341
  white-space: normal;
2337
2342
  }
2343
+ .sd-table > thead > tr > th {
2344
+ border-top: 0;
2345
+ border-bottom: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px))) solid transparent;
2346
+ }
2347
+
2348
+ .sd-table__cell {
2349
+ border-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) solid transparent;
2350
+ border-bottom: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) solid transparent;
2351
+ background-clip: padding-box;
2352
+ }
2353
+
2354
+ .sd-table__row:first-of-type > .sd-table__cell {
2355
+ border-top: 0;
2356
+ }
2357
+
2358
+ .sd-table__row:last-of-type > .sd-table__cell {
2359
+ border-bottom: 0;
2360
+ }
2338
2361
 
2339
2362
  .sd-table--align-top .sd-table__cell {
2340
2363
  vertical-align: top;
2341
2364
  }
2342
2365
 
2366
+ .sd-table--no-header {
2367
+ padding-top: calc(3 * var(--sjs-base-unit, var(--base-unit, 8px)));
2368
+ }
2369
+
2343
2370
  .sd-table--alternate-rows {
2344
- margin: 0 8px;
2371
+ margin-left: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
2372
+ margin-right: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
2345
2373
  width: calc(100% - 2 * var(--sjs-base-unit, var(--base-unit, 8px)));
2346
2374
  }
2347
- .sd-table--alternate-rows .sd-table__cell:first-of-type {
2375
+ .sd-table--alternate-rows .sd-table__cell:not(.sd-table__cell--header):first-of-type {
2348
2376
  padding-left: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));
2349
2377
  }
2350
2378
  .sd-table--alternate-rows .sd-table__cell:last-of-type {
@@ -2354,6 +2382,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2354
2382
  .sd-table--alternate-rows .sd-table__row:nth-of-type(odd) td:first-of-type {
2355
2383
  background-color: var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9));
2356
2384
  }
2385
+ .sd-table--alternate-rows .sd-table__row:nth-of-type(odd) > td.sd-matrix__text--checked,
2386
+ .sd-table--alternate-rows .sd-table__row:nth-of-type(odd) td:first-of-type.sd-matrix__text--checked {
2387
+ background-color: var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));
2388
+ }
2357
2389
  .sd-table--alternate-rows .sd-table__row:nth-of-type(odd) > td .sd-input,
2358
2390
  .sd-table--alternate-rows .sd-table__row:nth-of-type(odd) td:first-of-type .sd-input {
2359
2391
  background-color: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
@@ -2375,12 +2407,16 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2375
2407
  font-weight: normal;
2376
2408
  font-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
2377
2409
  line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
2378
- padding: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
2410
+ padding: 0 calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
2379
2411
  color: var(--sjs-general-forecolor, var(--foreground, #161616));
2380
2412
  text-align: center;
2381
2413
  }
2414
+ .sd-table__cell:not(.sd-table__cell--empty):not(.sd-table__cell--actions):not(:empty) {
2415
+ min-width: calc(14 * var(--sjs-base-unit, var(--base-unit, 8px)));
2416
+ }
2382
2417
 
2383
2418
  .sd-table__cell--error {
2419
+ border: none;
2384
2420
  padding: 0 calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
2385
2421
  }
2386
2422
  .sd-table__cell--error .sd-question__erbox--outside-question {
@@ -2419,14 +2455,14 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2419
2455
  }
2420
2456
 
2421
2457
  .sd-table__cell--header span {
2422
- font-size: calc(1 * var(--sjs-font-size, 16px));
2423
- line-height: calc(1.5 * var(--sjs-font-size, 16px));
2458
+ font-size: var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px))));
2459
+ line-height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
2424
2460
  }
2425
2461
 
2426
2462
  .sd-table__cell--header {
2427
2463
  font-weight: 600;
2428
2464
  vertical-align: top;
2429
- padding: calc(1.5 * var(--sjs-base-unit, var(--base-unit, 8px))) calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) calc(2.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
2465
+ padding: calc(1.5 * var(--sjs-base-unit, var(--base-unit, 8px))) calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
2430
2466
  }
2431
2467
  .sd-table__cell--header:not(.sd-table__cell--empty) {
2432
2468
  min-width: calc(14 * var(--sjs-base-unit, var(--base-unit, 8px)));
@@ -2437,6 +2473,11 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2437
2473
  width: calc(14 * var(--sjs-base-unit, var(--base-unit, 8px)));
2438
2474
  }
2439
2475
 
2476
+ .sd-matrixdropdown .sd-table__cell--header.sd-table__cell--action {
2477
+ min-width: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));
2478
+ width: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));
2479
+ }
2480
+
2440
2481
  .sd-matrixdropdown .sd-table__cell--header:not(.sd-table__cell--empty) {
2441
2482
  min-width: calc(14 * var(--sjs-base-unit, var(--base-unit, 8px)));
2442
2483
  width: calc(14 * var(--sjs-base-unit, var(--base-unit, 8px)));
@@ -2451,7 +2492,9 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2451
2492
  }
2452
2493
 
2453
2494
  .sd-table__cell--detail-panel {
2454
- padding: 0 calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
2495
+ border-top: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) solid transparent;
2496
+ padding: calc(3 * var(--sjs-base-unit, var(--base-unit, 8px))) calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) calc(4 * var(--sjs-base-unit, var(--base-unit, 8px)));
2497
+ border-bottom: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) solid transparent;
2455
2498
  }
2456
2499
 
2457
2500
  .sd-table__cell--actions .sv-action-bar,
@@ -2460,7 +2503,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2460
2503
  }
2461
2504
 
2462
2505
  .sd-table__cell--actions:not(.sd-table__cell--vertical) {
2463
- width: 0;
2506
+ width: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
2507
+ }
2508
+ .sd-table__cell--actions:not(.sd-table__cell--vertical):not(.sd-table__cell--drag):first-of-type {
2509
+ padding-left: 0;
2464
2510
  }
2465
2511
 
2466
2512
  .sd-table__cell--detail-button {
@@ -2477,7 +2523,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2477
2523
  fill: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
2478
2524
  }
2479
2525
  .sd-table__cell--detail-button:hover {
2480
- background: var(--sjs-special-green-light, var(--green-light, rgba(25, 179, 148, 0.1)));
2526
+ background: var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));
2481
2527
  }
2482
2528
  .sd-table__cell--detail-button:hover svg {
2483
2529
  fill: var(--sjs-primary-backcolor, var(--primary, #19b394));
@@ -2494,7 +2540,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2494
2540
  font-weight: 600;
2495
2541
  text-align: left;
2496
2542
  min-width: calc(12 * var(--sjs-base-unit, var(--base-unit, 8px)));
2497
- padding: calc(2.5 * var(--sjs-base-unit, var(--base-unit, 8px))) calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
2543
+ padding: calc(1.5 * var(--sjs-base-unit, var(--base-unit, 8px))) calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
2498
2544
  }
2499
2545
 
2500
2546
  .sd-matrixdynamic__content .sd-table__question-wrapper {
@@ -2514,7 +2560,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2514
2560
  .sd-matrix__cell:first-of-type,
2515
2561
  .sd-matrix tr > td:first-of-type {
2516
2562
  position: sticky;
2517
- background: var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));
2563
+ background-color: var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));
2518
2564
  z-index: 12;
2519
2565
  }
2520
2566
  .sd-table__cell--actions:not(.sd-table__cell--vertical):first-of-type,
@@ -2575,7 +2621,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2575
2621
  left: 0;
2576
2622
  }
2577
2623
  .sd-question--table > .sd-question__content {
2578
- padding-top: calc(2.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
2624
+ padding-top: calc(2 * var(--sjs-base-unit, var(--base-unit, 8px)));
2579
2625
  min-width: min-content;
2580
2626
  }
2581
2627
  .sd-question--table:not(.sd-element--with-frame) {
@@ -2602,6 +2648,10 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2602
2648
  margin: auto;
2603
2649
  }
2604
2650
 
2651
+ .sd-table.sd-matrixdynamic {
2652
+ table-layout: auto;
2653
+ }
2654
+
2605
2655
  .sd-page {
2606
2656
  position: relative;
2607
2657
  display: flex;
@@ -2834,7 +2884,7 @@ li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use {
2834
2884
 
2835
2885
  .sd-item__control:focus + .sd-item__decorator {
2836
2886
  box-shadow: 0 0 0 2px var(--sjs-primary-backcolor, var(--primary, #19b394));
2837
- background: var(--sjs-general-backcolor, var(--background, #fff));
2887
+ background: var(--sjs-questionpanel-backcolor, var(--sjs-question-background, var(--sjs-general-backcolor, var(--background, #fff))));
2838
2888
  outline: none;
2839
2889
  }
2840
2890
 
@@ -3400,6 +3450,8 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3400
3450
 
3401
3451
  .sd-dropdown_clean-button {
3402
3452
  display: flex;
3453
+ justify-content: center;
3454
+ align-items: center;
3403
3455
  padding: 0 calc(1 * var(--sjs-base-unit, var(--base-unit, 8px)));
3404
3456
  margin: auto 0;
3405
3457
  }
@@ -3416,9 +3468,10 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3416
3468
  padding-inline-end: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
3417
3469
  }
3418
3470
 
3471
+ .sd-dropdown_chevron-button-svg,
3419
3472
  .sd-dropdown_clean-button-svg {
3420
- width: calc(3 * var(--sjs-base-unit, var(--base-unit, 8px)));
3421
- height: calc(3 * var(--sjs-base-unit, var(--base-unit, 8px)));
3473
+ width: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
3474
+ height: calc(1.5 * var(--sjs-font-editorfont-size, calc(1 * var(--sjs-font-size, var(--sjs-font-size, 16px)))));
3422
3475
  }
3423
3476
 
3424
3477
  .sd-input.sd-dropdown:focus-within {
@@ -3453,12 +3506,10 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3453
3506
  }
3454
3507
 
3455
3508
  .sd-dropdown--empty:not(.sd-input--disabled) .sd-dropdown__filter-string-input::placeholder {
3456
- color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
3509
+ color: var(--sjs-font-editorfont-placeholdercolor, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
3457
3510
  }
3458
3511
 
3459
3512
  .sd-dropdown__filter-string-input::placeholder {
3460
- font-family: var(--font-family, var(--font-family));
3461
- font-size: calc(1 * var(--sjs-font-size, 16px));
3462
3513
  color: var(--sjs-general-forecolor, var(--foreground, #161616));
3463
3514
  width: 100%;
3464
3515
  max-width: 100%;
@@ -3466,12 +3517,11 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3466
3517
  text-overflow: ellipsis;
3467
3518
  white-space: nowrap;
3468
3519
  display: inline-block;
3469
- line-height: calc(1.5 * var(--sjs-font-size, 16px));
3470
3520
  appearance: none;
3471
3521
  }
3472
3522
 
3473
3523
  .sd-dropdown__hint-prefix {
3474
- color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
3524
+ color: var(--sjs-font-editorfont-placeholdercolor, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
3475
3525
  }
3476
3526
  .sd-dropdown__hint-prefix span {
3477
3527
  white-space: pre;
@@ -3479,7 +3529,7 @@ legend + sv-ng-rating-item + .sd-rating__item-smiley {
3479
3529
 
3480
3530
  .sd-dropdown__hint-suffix {
3481
3531
  display: flex;
3482
- color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
3532
+ color: var(--sjs-font-editorfont-placeholdercolor, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)));
3483
3533
  }
3484
3534
  .sd-dropdown__hint-suffix span {
3485
3535
  white-space: pre;
@@ -5298,12 +5348,13 @@ body {
5298
5348
  background-color: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
5299
5349
  }
5300
5350
 
5301
- .sv-popup.sv-popup--dropdown .sv-popup__shadow {
5351
+ .sv-popup.sv-popup--dropdown.sv-popup--dropdown .sv-popup__shadow {
5302
5352
  box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));
5303
5353
  }
5304
- .sv-popup.sv-popup--dropdown .sv-popup__body-content {
5354
+ .sv-popup.sv-popup--dropdown.sv-popup--dropdown .sv-popup__body-content {
5305
5355
  background-color: var(--sjs-general-backcolor, var(--background, #fff));
5306
5356
  padding: calc(1 * var(--sjs-base-unit, var(--base-unit, 8px))) 0;
5357
+ height: 100%;
5307
5358
  }
5308
5359
 
5309
5360
  .sv-popup.sv-popup--modal .sv-popup__body-content {