survey-creator-react 1.9.6-beta.1 → 1.9.7-beta.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.
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * SurveyJS Creator React v1.9.6-beta.1
2
+ * SurveyJS Creator React v1.9.7-beta.1
3
3
  * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
6
6
  */
7
7
  /*!
8
- * SurveyJS Creator v1.9.6-beta.1
8
+ * SurveyJS Creator v1.9.7-beta.1
9
9
  * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
10
10
  * Github: https://github.com/surveyjs/survey-creator
11
11
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -778,19 +778,17 @@ svc-tab-test {
778
778
  outline: none;
779
779
  box-shadow: none; }
780
780
 
781
- .svc-logic-operator.svc-logic-operator--conjunction {
782
- background-color: var(--primary-light, rgba(25, 179, 148, 0.1)); }
783
- .svc-logic-operator.svc-logic-operator--conjunction:hover, .svc-logic-operator.svc-logic-operator--conjunction:focus {
784
- background-color: var(--primary, #19b394); }
785
-
786
781
  .svc-logic-operator.svc-logic-operator--question {
787
782
  background-color: var(--blue-light, rgba(67, 127, 217, 0.1)); }
788
783
  .svc-logic-operator.svc-logic-operator--question:hover, .svc-logic-operator.svc-logic-operator--question:focus {
789
784
  background-color: var(--blue, #437FD9); }
790
785
 
786
+ .svc-logic-operator.svc-logic-operator--conjunction,
791
787
  .svc-logic-operator.svc-logic-operator--operator {
792
788
  background-color: var(--secondary-back-light, rgba(255, 152, 20, 0.1)); }
793
- .svc-logic-operator.svc-logic-operator--operator:hover, .svc-logic-operator.svc-logic-operator--operator:focus {
789
+ .svc-logic-operator.svc-logic-operator--conjunction:hover, .svc-logic-operator.svc-logic-operator--conjunction:focus,
790
+ .svc-logic-operator.svc-logic-operator--operator:hover,
791
+ .svc-logic-operator.svc-logic-operator--operator:focus {
794
792
  background-color: var(--secondary, #ff9814); }
795
793
 
796
794
  .svc-logic-operator.svc-logic-operator--action {
@@ -996,11 +994,25 @@ svc-tab-designer {
996
994
  margin-left: auto;
997
995
  margin-right: auto; }
998
996
  .svc-tab-designer .sd-container-modern.sd-container-modern--static {
999
- max-width: calc(102 * var(--base-unit, 8px)); }
997
+ max-width: calc(84 * var(--base-unit, 8px)); }
1000
998
  .svc-tab-designer .sd-container-modern.sd-container-modern--responsive {
1001
999
  max-width: initial;
1002
1000
  padding: 0 calc(1 * var(--base-unit, 8px)); }
1003
1001
 
1002
+ .svc-designer__placeholder-container {
1003
+ position: absolute;
1004
+ top: 35%; }
1005
+
1006
+ .svc-designer-placeholder-page {
1007
+ margin-top: calc(2 * var(--base-unit, 8px)); }
1008
+
1009
+ .svc-designer-placeholder-page .svc-page__add-new-question {
1010
+ width: calc(33 * var(--base-unit, 8px));
1011
+ margin: auto; }
1012
+
1013
+ .svc-designer-placeholder-page .svc-row--ghost {
1014
+ display: none; }
1015
+
1004
1016
  /* latin */
1005
1017
  @font-face {
1006
1018
  font-family: "Open Sans";
@@ -1168,7 +1180,8 @@ survey-creator,
1168
1180
  width: 100%;
1169
1181
  height: 100%;
1170
1182
  overflow: hidden;
1171
- position: relative; }
1183
+ position: relative;
1184
+ min-height: var(--tab-min-height, 600px); }
1172
1185
 
1173
1186
  .svc-creator__toolbox--right.svc-creator-tab {
1174
1187
  flex-direction: row-reverse; }
@@ -1374,9 +1387,6 @@ survey-creator,
1374
1387
  left: calc(-0.7 * var(--base-unit, 8px));
1375
1388
  right: calc(-0.7 * var(--base-unit, 8px)); }
1376
1389
 
1377
- .sd-table__cell:first-child .svc-string-editor {
1378
- margin-left: calc(1 * var(--base-unit, 8px)); }
1379
-
1380
1390
  /* latin */
1381
1391
  @font-face {
1382
1392
  font-family: "Open Sans";
@@ -1499,11 +1509,17 @@ svc-page-navigator,
1499
1509
  height: calc(5.5 * var(--base-unit, 8px));
1500
1510
  min-height: calc(5.5 * var(--base-unit, 8px)); }
1501
1511
 
1502
- survey-creator .svc-page-navigator__selector:hover, survey-creator .svc-page-navigator__selector:focus, .svc-creator .svc-page-navigator__selector:hover, .svc-creator .svc-page-navigator__selector:focus {
1512
+ survey-creator .svc-page-navigator__selector:hover, survey-creator .svc-page-navigator__selector:focus,
1513
+ .svc-creator .svc-page-navigator__selector:hover,
1514
+ .svc-creator .svc-page-navigator__selector:focus {
1503
1515
  outline: none; }
1504
- survey-creator .svc-page-navigator__selector:hover .svc-page-navigator__navigator-icon, survey-creator .svc-page-navigator__selector:focus .svc-page-navigator__navigator-icon, .svc-creator .svc-page-navigator__selector:hover .svc-page-navigator__navigator-icon, .svc-creator .svc-page-navigator__selector:focus .svc-page-navigator__navigator-icon {
1516
+ survey-creator .svc-page-navigator__selector:hover .svc-page-navigator__navigator-icon, survey-creator .svc-page-navigator__selector:focus .svc-page-navigator__navigator-icon,
1517
+ .svc-creator .svc-page-navigator__selector:hover .svc-page-navigator__navigator-icon,
1518
+ .svc-creator .svc-page-navigator__selector:focus .svc-page-navigator__navigator-icon {
1505
1519
  background-color: var(--primary-light, rgba(25, 179, 148, 0.1)); }
1506
- survey-creator .svc-page-navigator__selector:hover .svc-page-navigator__navigator-icon use, survey-creator .svc-page-navigator__selector:focus .svc-page-navigator__navigator-icon use, .svc-creator .svc-page-navigator__selector:hover .svc-page-navigator__navigator-icon use, .svc-creator .svc-page-navigator__selector:focus .svc-page-navigator__navigator-icon use {
1520
+ survey-creator .svc-page-navigator__selector:hover .svc-page-navigator__navigator-icon use, survey-creator .svc-page-navigator__selector:focus .svc-page-navigator__navigator-icon use,
1521
+ .svc-creator .svc-page-navigator__selector:hover .svc-page-navigator__navigator-icon use,
1522
+ .svc-creator .svc-page-navigator__selector:focus .svc-page-navigator__navigator-icon use {
1507
1523
  fill: var(--primary, #19b394); }
1508
1524
 
1509
1525
  .svc-page-navigator__selector--opened {
@@ -1528,8 +1544,7 @@ survey-creator .svc-page-navigator__selector:hover, survey-creator .svc-page-nav
1528
1544
  right: calc(1 * var(--base-unit, 8px)); }
1529
1545
 
1530
1546
  .svc-creator__toolbox--right .svc-tab-designer--with-page-navigator {
1531
- padding-right: 0;
1532
- padding-left: calc(6.5 * var(--base-unit, 8px)); }
1547
+ padding-right: 0; }
1533
1548
 
1534
1549
  .svc-creator__toolbox--right .svc-tab-designer__page-navigator {
1535
1550
  right: unset;
@@ -2294,7 +2309,9 @@ svc-question .sv-action-bar,
2294
2309
  margin-right: calc(1 * var(--base-unit, 8px));
2295
2310
  height: calc(4 * var(--base-unit, 8px));
2296
2311
  box-sizing: border-box;
2297
- flex-shrink: 0; }
2312
+ flex-shrink: 0;
2313
+ min-width: 72px;
2314
+ justify-content: end; }
2298
2315
 
2299
2316
  .svc-item-value-controls__button {
2300
2317
  border-radius: 50%;
@@ -2320,11 +2337,12 @@ sv-svg-icon.svc-item-value-controls__button {
2320
2337
 
2321
2338
  .svc-item-value-controls__drag {
2322
2339
  padding: calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px));
2323
- cursor: move; }
2340
+ cursor: move;
2341
+ opacity: 0.25; }
2324
2342
  .svc-item-value-controls__drag .svc-item-value-controls__drag-icon {
2325
2343
  visibility: hidden; }
2326
2344
  .svc-item-value-controls__drag use {
2327
- fill: var(--primary, #19b394); }
2345
+ fill: var(--foreground, #161616); }
2328
2346
 
2329
2347
  .svc-item-value-controls__remove {
2330
2348
  float: right; }
@@ -2351,14 +2369,14 @@ sv-svg-icon.svc-item-value-controls__button {
2351
2369
  .sv-string-editor {
2352
2370
  cursor: text; }
2353
2371
 
2354
- .svc-item-value--new {
2355
- margin-left: 0; }
2356
- .svc-item-value--new .svc-item-value__item .sd-item__control-label {
2357
- color: var(--foreground-light, #909090); }
2358
- .svc-item-value--new .svc-item-value__item .sd-item__decorator {
2359
- opacity: 0.35; }
2360
- .svc-item-value--new .sv-ranking-item__index {
2361
- background: var(--background-for-editors, #f9f9f9); }
2372
+ .svc-item-value--new .svc-item-value__item .sd-item__control-label {
2373
+ color: var(--foreground-light, #909090); }
2374
+
2375
+ .svc-item-value--new .svc-item-value__item .sd-item__decorator {
2376
+ opacity: 0.35; }
2377
+
2378
+ .svc-item-value--new .sv-ranking-item__index {
2379
+ background: var(--background-for-editors, #f9f9f9); }
2362
2380
 
2363
2381
  .sv-ranking .svc-item-value-wrapper {
2364
2382
  align-items: center; }
@@ -2460,18 +2478,18 @@ sv-svg-icon.svc-item-value-controls__button {
2460
2478
  top: calc(50% - 3 * var(--base-unit, 8px));
2461
2479
  left: calc(50% - 3 * var(--base-unit, 8px)); }
2462
2480
 
2463
- .svc-question__content--selected .svc-image-item-value-controls {
2464
- display: block; }
2481
+ .svc-image-item-value-controls {
2482
+ display: flex; }
2465
2483
 
2466
2484
  .svc-image-item-value-controls__button {
2467
- display: inline-block;
2485
+ display: block;
2468
2486
  background-color: var(--background, #fff);
2469
2487
  border-radius: 50%;
2470
2488
  width: calc(6 * var(--base-unit, 8px));
2471
2489
  height: calc(6 * var(--base-unit, 8px));
2472
2490
  cursor: pointer; }
2473
2491
  .svc-image-item-value-controls__button:not(:last-child) {
2474
- margin-right: calc(0.5 * var(--base-unit, 8px)); }
2492
+ margin-right: calc(1 * var(--base-unit, 8px)); }
2475
2493
  .svc-image-item-value-controls__button .sv-svg-icon {
2476
2494
  margin-top: calc(50% - 1.5 * var(--base-unit, 8px));
2477
2495
  margin-left: calc(50% - 1.5 * var(--base-unit, 8px)); }
@@ -2649,75 +2667,76 @@ sv-svg-icon.svc-item-value-controls__button {
2649
2667
  :root {
2650
2668
  --font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; }
2651
2669
 
2652
- .svd_test_results {
2653
- padding: 1em; }
2654
- .svd_test_results .svd_results_text {
2655
- padding: 1em;
2656
- white-space: pre-wrap;
2657
- width: 100%;
2658
- overflow: auto; }
2659
- .svd_test_results .svd_results_table {
2660
- padding: 1em;
2661
- width: 100%;
2662
- overflow: auto; }
2663
- .svd_test_results .svd_results_table table {
2664
- border-collapse: collapse;
2665
- width: 100%; }
2666
- .svd_test_results .svd_results_table table .survey-result-marker {
2670
+ .svd-test-results {
2671
+ font-family: var(--font-family);
2672
+ width: 80%;
2673
+ margin: auto;
2674
+ margin-bottom: calc(5 * var(--base-unit, 8px));
2675
+ background-color: var(--background, #fff);
2676
+ box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
2677
+ border-radius: 10px; }
2678
+ .svd-test-results .svd-test-results__header {
2679
+ display: flex;
2680
+ justify-content: space-between;
2681
+ align-items: center;
2682
+ padding: calc(1 * var(--base-unit, 8px)) calc(4 * var(--base-unit, 8px));
2683
+ font-size: calc(2 * var(--base-unit, 8px));
2684
+ color: var(--foreground-light, #909090);
2685
+ border-bottom: 2px solid var(--background-dim, #f3f3f3); }
2686
+ .svd-test-results .svd-test-results__header .svd-test-results__header-text {
2687
+ margin: 0; }
2688
+ .svd-test-results .svd-test-results__header .svd-test-results__header-types {
2689
+ display: flex; }
2690
+ .svd-test-results .svd-test-results__text {
2691
+ display: flex;
2692
+ padding: calc(2 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));
2693
+ width: calc(100% - calcSize(6));
2694
+ overflow: auto;
2695
+ user-select: text;
2696
+ white-space: pre-wrap; }
2697
+ .svd-test-results .svd-test-results__table {
2698
+ width: 100%; }
2699
+ .svd-test-results .svd-test-results__table table {
2700
+ width: 100%;
2701
+ border-collapse: collapse; }
2702
+ .svd-test-results .svd-test-results__table table .svd-test-results__marker {
2667
2703
  position: absolute;
2668
- left: 1em;
2669
- top: 0.5em;
2670
- transition: transform 0.2s ease-in-out; }
2671
- .svd_test_results .svd_results_table table .survey-result-marker.survey-result-marker--expanded {
2704
+ top: calc(1.5 * var(--base-unit, 8px)); }
2705
+ .svd-test-results .svd-test-results__table table .svd-test-results__marker .sv-svg-icon {
2706
+ transition: transform 0.2s ease-in-out; }
2707
+ .svd-test-results .svd-test-results__table table .svd-test-results__marker .sv-svg-icon use {
2708
+ fill: var(--foreground-light, #909090); }
2709
+ .svd-test-results .svd-test-results__table table .svd-test-results__marker.svd-test-results__marker--expanded .sv-svg-icon {
2710
+ transform-origin: center;
2672
2711
  transform: rotate(90deg); }
2673
- .svd_test_results .svd_results_table table .survey-result-value {
2674
- word-break: break-all; }
2675
- .svd_test_results .svd_results_table table tr {
2676
- vertical-align: top; }
2677
- .svd_test_results .svd_results_table table th,
2678
- .svd_test_results .svd_results_table table td {
2679
- border: 1px solid;
2680
- padding: 0.5em 1em;
2712
+ .svd-test-results .svd-test-results__table table th {
2713
+ padding: calc(1 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px));
2714
+ background-color: var(--background-dim, #f3f3f3);
2715
+ text-align: left;
2716
+ font-weight: 600;
2717
+ font-size: 12px;
2718
+ color: var(--foreground-light, #909090); }
2719
+ .svd-test-results .svd-test-results__table table th:nth-child(1) {
2720
+ padding-left: calc(4 * var(--base-unit, 8px)); }
2721
+ .svd-test-results .svd-test-results__table table td {
2722
+ padding: calc(1 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px));
2681
2723
  max-width: calc(50 * var(--base-unit, 8px));
2682
- overflow: auto; }
2683
- .svd_test_results .svd_results_table table th:nth-child(1),
2684
- .svd_test_results .svd_results_table table td:nth-child(1) {
2724
+ overflow: auto;
2725
+ border-top: 2px solid var(--background-dim, #f3f3f3);
2726
+ user-select: text; }
2727
+ .svd-test-results .svd-test-results__table table td:nth-child(1) {
2685
2728
  position: relative;
2686
- width: 30%;
2687
- font-weight: 500;
2688
- padding-left: 2em; }
2689
- .svd_test_results .svd_results_table table th:nth-child(2),
2690
- .svd_test_results .svd_results_table table td:nth-child(2) {
2691
- width: 20%; }
2692
- .svd_test_results .svd_results_table table th:nth-child(3),
2693
- .svd_test_results .svd_results_table table td:nth-child(3) {
2694
- width: 20%; }
2695
- .svd_test_results .svd_results_table table th:nth-child(4),
2696
- .svd_test_results .svd_results_table table td:nth-child(4) {
2697
- width: 30%;
2698
- font-weight: 500; }
2699
-
2700
- .nav-tabs {
2701
- margin-bottom: 0;
2702
- padding: 0;
2703
- line-height: 2.5em; }
2704
-
2705
- .nav-item {
2706
- display: inline-block;
2707
- margin-left: -3px; }
2708
- .nav-item:first-child {
2709
- margin-left: 0; }
2710
-
2711
- .nav-link {
2712
- border-radius: 0;
2713
- border-top-left-radius: calc(0.25 * var(--base-unit, 8px));
2714
- border-top-right-radius: calc(0.25 * var(--base-unit, 8px));
2715
- padding: 0.5em 1em;
2716
- text-align: center; }
2717
- .nav-link.active {
2718
- border: calc(0.125 * var(--base-unit, 8px)) solid var(--border, #d6d6d6);
2719
- border-color: var(--border, #d6d6d6);
2720
- border-bottom-color: transparent; }
2729
+ width: 50%;
2730
+ font-weight: 600; }
2731
+ .svd-test-results .svd-test-results__table table td:nth-child(2) {
2732
+ width: 50%;
2733
+ padding-right: calc(4 * var(--base-unit, 8px)); }
2734
+ .svd-test-results .svd-test-results__table table .survey-result-value {
2735
+ word-break: break-all; }
2736
+ .svd-test-results .svd-test-results__table table tr {
2737
+ vertical-align: top; }
2738
+ .svd-test-results .svd-test-results__table table tr .svd-test-results__node-value {
2739
+ color: var(--foreground-light, #909090); }
2721
2740
 
2722
2741
  /* latin */
2723
2742
  @font-face {
@@ -3066,6 +3085,11 @@ sv-svg-icon.svc-item-value-controls__button {
3066
3085
  align-items: center;
3067
3086
  margin-right: 0;
3068
3087
  margin-left: calc(-1.5 * var(--base-unit, 8px)); }
3088
+ .svc-toolbox__item-banner .svc-toolbox__item-icon {
3089
+ position: absolute;
3090
+ display: block;
3091
+ left: calc(1.5 * var(--base-unit, 8px));
3092
+ top: calc(1 * var(--base-unit, 8px)); }
3069
3093
  .svc-toolbox__item-banner .svc-toolbox__item-title {
3070
3094
  color: var(--foreground, #161616); }
3071
3095
  .svc-toolbox__item-banner .sv-svg-icon use {
@@ -3078,6 +3102,10 @@ sv-svg-icon.svc-item-value-controls__button {
3078
3102
  padding-left: calc(2 * var(--base-unit, 8px));
3079
3103
  margin-left: 0;
3080
3104
  margin-right: calc(-1.5 * var(--base-unit, 8px)); }
3105
+ .svc-creator__toolbox--right .svc-toolbox__item:hover .svc-toolbox__item-banner .svc-toolbox__item-title,
3106
+ .svc-creator__toolbox--right .svc-toolbox__item:focus .svc-toolbox__item-banner .svc-toolbox__item-title {
3107
+ padding-left: calc(1 * var(--base-unit, 8px));
3108
+ padding-right: calc(4 * var(--base-unit, 8px)); }
3081
3109
 
3082
3110
  .svc-creator__toolbox--right .svc-toolbox__item {
3083
3111
  flex-direction: row-reverse; }
@@ -3091,6 +3119,10 @@ sv-svg-icon.svc-item-value-controls__button {
3091
3119
  .svc-creator__toolbox--right .svc-toolbox__category {
3092
3120
  align-items: flex-end; }
3093
3121
 
3122
+ .svc-creator__toolbox--right .svc-toolbox__item-banner .svc-toolbox__item-icon {
3123
+ left: auto;
3124
+ right: calc(1.5 * var(--base-unit, 8px)); }
3125
+
3094
3126
  .svc-toolbox__item-title {
3095
3127
  font-family: var(--font-family);
3096
3128
  font-style: normal;
@@ -3109,6 +3141,9 @@ sv-svg-icon.svc-item-value-controls__button {
3109
3141
  padding-left: calc(1.5 * var(--base-unit, 8px));
3110
3142
  padding-right: calc(2 * var(--base-unit, 8px));
3111
3143
  opacity: 1; }
3144
+ .svc-toolbox__item:hover .svc-toolbox__item-banner .svc-toolbox__item-title,
3145
+ .svc-toolbox__item:focus .svc-toolbox__item-banner .svc-toolbox__item-title {
3146
+ padding-left: calc(4 * var(--base-unit, 8px)); }
3112
3147
 
3113
3148
  .svc-toolbox:not(.svc-toolbox--compact) .svc-toolbox__item:not(.sv-dots):focus,
3114
3149
  .svc-toolbox:not(.svc-toolbox--compact) .svc-toolbox__item:not(.sv-dots):hover {
@@ -3214,7 +3249,8 @@ sv-svg-icon.svc-item-value-controls__button {
3214
3249
 
3215
3250
  svc-toolbox {
3216
3251
  display: flex;
3217
- flex-direction: column; }
3252
+ flex-direction: column;
3253
+ position: absolute; }
3218
3254
 
3219
3255
  .svc-toolbox {
3220
3256
  height: 100%;
@@ -3396,7 +3432,8 @@ svc-toolbox {
3396
3432
  top: 0;
3397
3433
  bottom: 0;
3398
3434
  right: 0;
3399
- left: 0; }
3435
+ left: 0;
3436
+ z-index: 9000; }
3400
3437
  .svc-flyout-side-bar .svc-side-bar__wrapper {
3401
3438
  z-index: 10000;
3402
3439
  position: absolute;