survey-creator-core 1.9.89 → 1.9.91

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.
Files changed (35) hide show
  1. package/fonts.fontless.css +1 -1
  2. package/fonts.fontless.min.css +1 -1
  3. package/package.json +2 -2
  4. package/survey-creator-core.css +224 -93
  5. package/survey-creator-core.fontless.css +223 -92
  6. package/survey-creator-core.fontless.css.map +1 -1
  7. package/survey-creator-core.fontless.min.css +12 -12
  8. package/survey-creator-core.i18n.js +1 -1
  9. package/survey-creator-core.i18n.min.js +1 -1
  10. package/survey-creator-core.js +1837 -514
  11. package/survey-creator-core.js.map +1 -1
  12. package/survey-creator-core.min.css +13 -13
  13. package/survey-creator-core.min.js +3 -3
  14. package/typings/components/item-value.d.ts +1 -0
  15. package/typings/components/page.d.ts +5 -2
  16. package/typings/components/question-rating.d.ts +1 -0
  17. package/typings/components/question.d.ts +1 -1
  18. package/typings/components/simulator.d.ts +0 -1
  19. package/typings/components/string-editor.d.ts +1 -0
  20. package/typings/components/tabs/theme-custom-questions/boxshadow-settings.d.ts +2 -0
  21. package/typings/components/tabs/theme-custom-questions/color-settings.d.ts +1 -0
  22. package/typings/components/tabs/theme-custom-questions/element-settings.d.ts +1 -0
  23. package/typings/components/tabs/theme-custom-questions/font-settings.d.ts +1 -0
  24. package/typings/components/tabs/theme-plugin.d.ts +3 -0
  25. package/typings/components/tabs/theme.d.ts +18 -39
  26. package/typings/creator-base.d.ts +21 -2
  27. package/typings/creator-settings.d.ts +4 -0
  28. package/typings/custom-questions/question-color.d.ts +10 -1
  29. package/typings/editorLocalization.d.ts +13 -0
  30. package/typings/entries/index.d.ts +4 -0
  31. package/typings/localization/english.d.ts +13 -0
  32. package/typings/property-grid/matrices.d.ts +1 -0
  33. package/typings/property-grid-theme/property-grid.d.ts +3 -1
  34. package/typings/survey-elements.d.ts +44 -0
  35. package/typings/utils/utils.d.ts +23 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.89
2
+ * SurveyJS Creator v1.9.91
3
3
  * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -874,7 +874,7 @@ svc-tab-designer {
874
874
  .svc-designer-placeholder-page {
875
875
  margin-top: calc(2 * var(--base-unit, 8px)); }
876
876
 
877
- .svc-designer-placeholder-page .svc-page__add-new-question {
877
+ .svc-designer-placeholder-page .svc-page__footer {
878
878
  width: calc(33 * var(--base-unit, 8px));
879
879
  margin: auto; }
880
880
 
@@ -898,7 +898,7 @@ svc-tab-designer {
898
898
  border: 0; }
899
899
  .svc-creator--mobile .svc-page__content .sd-page {
900
900
  padding: calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)); }
901
- .svc-creator--mobile .svc-page__content .svc-page__add-new-question {
901
+ .svc-creator--mobile .svc-page__content .svc-page__footer {
902
902
  margin-left: calc(2 * var(--base-unit, 8px));
903
903
  margin-right: calc(2 * var(--base-unit, 8px)); }
904
904
 
@@ -943,6 +943,78 @@ svc-tab-designer {
943
943
  .svc-creator--mobile .svc-page__content-actions .sv-action-bar .sv-action .sv-action__content .sv-action-bar-item__title--with-icon {
944
944
  display: none; }
945
945
 
946
+ svc-tab-test {
947
+ width: 100%;
948
+ height: 100%;
949
+ background: var(--background-dim, #f3f3f3); }
950
+
951
+ .svc-test-tab__content .svc-plugin-tab__content {
952
+ overflow-y: overlay; }
953
+ .svc-test-tab__content .svc-plugin-tab__content .sv-root-modern .sv-completedpage,
954
+ .svc-test-tab__content .svc-plugin-tab__content .sv_default_css .sv_completed_page {
955
+ margin: 0;
956
+ border: 0;
957
+ background-color: var(--background-dim, #f3f3f3); }
958
+ .svc-test-tab__content .svc-plugin-tab__content .sv_default_css .sv_body {
959
+ border: 0; }
960
+ .svc-test-tab__content .svc-plugin-tab__content .svc-preview__test-again {
961
+ width: calc(33 * var(--base-unit, 8px));
962
+ margin-left: auto;
963
+ margin-right: auto;
964
+ margin-bottom: 72px;
965
+ margin-top: 8px; }
966
+
967
+ .svc-creator-tab__content--with-toolbar.svc-test-tab__content .svc-plugin-tab__content {
968
+ height: calc(100% - calc(6 * var(--base-unit, 8px))); }
969
+
970
+ .svc-test-tab__content-actions {
971
+ position: relative; }
972
+ .svc-test-tab__content-actions .sv-action-bar {
973
+ padding: 0;
974
+ height: calc(6 * var(--base-unit, 8px));
975
+ background: var(--background, #fff);
976
+ border-top: 1px solid var(--border, #d6d6d6);
977
+ width: 100%;
978
+ position: absolute; }
979
+ .svc-test-tab__content-actions .sv-action-bar.sv-action-bar--pages {
980
+ left: 0;
981
+ right: 0;
982
+ justify-content: center;
983
+ gap: calc(1 * var(--base-unit, 8px)); }
984
+ .svc-test-tab__content-actions .sv-action-bar.sv-action-bar--pages .sv-action__content {
985
+ padding: 0; }
986
+ .svc-test-tab__content-actions .sv-action-bar.sv-action-bar--pages .sv-action-bar-item {
987
+ margin: 0; }
988
+ .svc-test-tab__content-actions .sv-action-bar-item {
989
+ font-family: var(--font-family);
990
+ font-style: normal;
991
+ font-weight: 600;
992
+ font-size: calc(1.5 * var(--base-unit, 8px));
993
+ line-height: calc(2 * var(--base-unit, 8px));
994
+ width: 100%;
995
+ height: calc(4 * var(--base-unit, 8px)); }
996
+ .svc-test-tab__content-actions .svc-page-selector {
997
+ max-width: 50%; }
998
+ .svc-test-tab__content-actions .svc-page-selector .sv-action-bar-item__title {
999
+ overflow: hidden;
1000
+ white-space: nowrap;
1001
+ text-overflow: ellipsis;
1002
+ color: var(--foreground, #161616);
1003
+ display: inline-block; }
1004
+
1005
+ .svc-test-tab__content .sd-body--empty {
1006
+ font-family: var(--font-family);
1007
+ font-style: normal;
1008
+ font-weight: 400;
1009
+ font-size: calc(2 * var(--base-unit, 8px));
1010
+ color: var(--foreground, #161616);
1011
+ width: 100%;
1012
+ position: absolute;
1013
+ top: 50%;
1014
+ transform: translateY(-50%);
1015
+ text-align: center;
1016
+ overflow: hidden; }
1017
+
946
1018
  .svc-notifier.svc-notifier--shown {
947
1019
  visibility: visible;
948
1020
  opacity: 0.75; }
@@ -1221,6 +1293,9 @@ survey-creator,
1221
1293
  .svc-string-editor.svc-string-editor--error:focus-within .svc-string-editor__border {
1222
1294
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1), 0px 0px 0px calc(0.25 * var(--base-unit, 8px)) var(--red, #e60a3e); }
1223
1295
 
1296
+ .sd-boolean .sv-string-editor:focus-within {
1297
+ white-space: nowrap; }
1298
+
1224
1299
  .sd-rating .sd-rating__item:focus-within {
1225
1300
  border: calc(0.25 * var(--base-unit, 8px)) solid var(--primary, #19b394); }
1226
1301
 
@@ -1289,78 +1364,6 @@ survey-creator,
1289
1364
  opacity: 0.25;
1290
1365
  color: var(--foreground, #161616); }
1291
1366
 
1292
- svc-tab-test {
1293
- width: 100%;
1294
- height: 100%;
1295
- background: var(--background-dim, #f3f3f3); }
1296
-
1297
- .svc-test-tab__content .svc-plugin-tab__content {
1298
- overflow-y: overlay; }
1299
- .svc-test-tab__content .svc-plugin-tab__content .sv-root-modern .sv-completedpage,
1300
- .svc-test-tab__content .svc-plugin-tab__content .sv_default_css .sv_completed_page {
1301
- margin: 0;
1302
- border: 0;
1303
- background-color: var(--background-dim, #f3f3f3); }
1304
- .svc-test-tab__content .svc-plugin-tab__content .sv_default_css .sv_body {
1305
- border: 0; }
1306
- .svc-test-tab__content .svc-plugin-tab__content .svc-preview__test-again {
1307
- width: calc(33 * var(--base-unit, 8px));
1308
- margin-left: auto;
1309
- margin-right: auto;
1310
- margin-bottom: 72px;
1311
- margin-top: 8px; }
1312
-
1313
- .svc-creator-tab__content--with-toolbar.svc-test-tab__content .svc-plugin-tab__content {
1314
- height: calc(100% - calc(6 * var(--base-unit, 8px))); }
1315
-
1316
- .svc-test-tab__content-actions {
1317
- position: relative; }
1318
- .svc-test-tab__content-actions .sv-action-bar {
1319
- padding: 0;
1320
- height: calc(6 * var(--base-unit, 8px));
1321
- background: var(--background, #fff);
1322
- border-top: 1px solid var(--border, #d6d6d6);
1323
- width: 100%;
1324
- position: absolute; }
1325
- .svc-test-tab__content-actions .sv-action-bar.sv-action-bar--pages {
1326
- left: 0;
1327
- right: 0;
1328
- justify-content: center;
1329
- gap: calc(1 * var(--base-unit, 8px)); }
1330
- .svc-test-tab__content-actions .sv-action-bar.sv-action-bar--pages .sv-action__content {
1331
- padding: 0; }
1332
- .svc-test-tab__content-actions .sv-action-bar.sv-action-bar--pages .sv-action-bar-item {
1333
- margin: 0; }
1334
- .svc-test-tab__content-actions .sv-action-bar-item {
1335
- font-family: var(--font-family);
1336
- font-style: normal;
1337
- font-weight: 600;
1338
- font-size: calc(1.5 * var(--base-unit, 8px));
1339
- line-height: calc(2 * var(--base-unit, 8px));
1340
- width: 100%;
1341
- height: calc(4 * var(--base-unit, 8px)); }
1342
- .svc-test-tab__content-actions .svc-page-selector {
1343
- max-width: 50%; }
1344
- .svc-test-tab__content-actions .svc-page-selector .sv-action-bar-item__title {
1345
- overflow: hidden;
1346
- white-space: nowrap;
1347
- text-overflow: ellipsis;
1348
- color: var(--foreground, #161616);
1349
- display: inline-block; }
1350
-
1351
- .svc-test-tab__content .sd-body--empty {
1352
- font-family: var(--font-family);
1353
- font-style: normal;
1354
- font-weight: 400;
1355
- font-size: calc(2 * var(--base-unit, 8px));
1356
- color: var(--foreground, #161616);
1357
- width: 100%;
1358
- position: absolute;
1359
- top: 50%;
1360
- transform: translateY(-50%);
1361
- text-align: center;
1362
- overflow: hidden; }
1363
-
1364
1367
  svc-page-navigator,
1365
1368
  .svc-page-navigator {
1366
1369
  display: flex;
@@ -1577,11 +1580,19 @@ svc-page {
1577
1580
  .svc-hovered.svc-page__content--selected .svc-page__content-actions {
1578
1581
  display: block; }
1579
1582
 
1580
- .svc-page__add-new-question {
1583
+ .svc-page__footer {
1584
+ overflow: visible;
1581
1585
  margin-left: calc(3 * var(--base-unit, 8px));
1582
- margin-right: calc(3 * var(--base-unit, 8px)); }
1583
- .svc-page__add-new-question .svc-text {
1584
- margin-left: calc(6 * var(--base-unit, 8px)); }
1586
+ margin-right: calc(3 * var(--base-unit, 8px));
1587
+ gap: calc(2 * var(--base-unit, 8px)); }
1588
+ .svc-page__footer .sv-action {
1589
+ flex: 1 1 0; }
1590
+ .svc-page__footer .svc-btn {
1591
+ flex-grow: 1;
1592
+ border: none; }
1593
+
1594
+ .svc-page__add-new-question .svc-text {
1595
+ margin-left: calc(6 * var(--base-unit, 8px)); }
1585
1596
 
1586
1597
  .svc-page__question-type-selector {
1587
1598
  appearance: none;
@@ -1602,8 +1613,18 @@ svc-page {
1602
1613
  .svc-page__question-type-selector:focus {
1603
1614
  background-color: var(--sjs-primary-backcolor-light, rgba(25, 179, 148, 0.1)); }
1604
1615
 
1616
+ .svc-page--drag-over-empty:after {
1617
+ content: " ";
1618
+ position: absolute;
1619
+ background: var(--secondary, #ff9814);
1620
+ left: calc(3 * var(--base-unit, 8px));
1621
+ bottom: calc(11 * var(--base-unit, 8px));
1622
+ width: calc(100% - 48px);
1623
+ height: 4px; }
1624
+
1605
1625
  .svc-row {
1606
- width: 100%; }
1626
+ width: 100%;
1627
+ position: relative; }
1607
1628
 
1608
1629
  .svc-row .sd-row--multiple {
1609
1630
  padding: calc(1 * var(--base-unit, 8px));
@@ -1639,6 +1660,32 @@ svc-page {
1639
1660
  margin-top: calc(2 * var(--base-unit, 8px));
1640
1661
  margin-bottom: calc(2 * var(--base-unit, 8px)); }
1641
1662
 
1663
+ .svc-row--drag-over-top:before {
1664
+ content: " ";
1665
+ position: absolute;
1666
+ left: 0;
1667
+ background: var(--secondary, #ff9814);
1668
+ top: 6px;
1669
+ width: 100%;
1670
+ height: 4px; }
1671
+
1672
+ .svc-row--drag-over-bottom:after {
1673
+ content: " ";
1674
+ position: absolute;
1675
+ left: 0;
1676
+ background: var(--secondary, #ff9814);
1677
+ bottom: -10px;
1678
+ width: 100%;
1679
+ height: 4px; }
1680
+
1681
+ .svc-question__content--panel .svc-row--drag-over-top:before,
1682
+ .sd-panel__content .svc-row--drag-over-top:before {
1683
+ top: -6px; }
1684
+
1685
+ .svc-question__content--panel .svc-row--drag-over-bottom:after,
1686
+ .sd-panel__content .svc-row--drag-over-bottom:after {
1687
+ bottom: -6px; }
1688
+
1642
1689
  svc-question {
1643
1690
  display: block;
1644
1691
  position: absolute;
@@ -1766,7 +1813,11 @@ svc-question {
1766
1813
  -moz-user-select: none;
1767
1814
  -webkit-user-select: none;
1768
1815
  -ms-user-select: none;
1769
- user-select: none; }
1816
+ user-select: none;
1817
+ max-width: 500px;
1818
+ overflow: hidden;
1819
+ white-space: nowrap;
1820
+ text-overflow: ellipsis; }
1770
1821
 
1771
1822
  .svc-dragged-element-shortcut .sv-svg-icon use {
1772
1823
  fill: var(--primary, #19b394); }
@@ -1814,6 +1865,34 @@ svc-question {
1814
1865
  height: 100%;
1815
1866
  width: 4px; }
1816
1867
 
1868
+ .svc-question__content--drag-over-top:before {
1869
+ content: " ";
1870
+ position: absolute;
1871
+ left: 0;
1872
+ background: var(--secondary, #ff9814);
1873
+ top: -12px;
1874
+ width: 100%;
1875
+ height: 4px; }
1876
+
1877
+ .svc-question__content--drag-over-bottom:before {
1878
+ content: " ";
1879
+ position: absolute;
1880
+ left: 0;
1881
+ background: var(--secondary, #ff9814);
1882
+ bottom: -12px;
1883
+ width: 100%;
1884
+ height: 4px; }
1885
+
1886
+ .svc-question__content--panel .sd-row > div:first-child .svc-question__content--drag-over-left,
1887
+ .sd-panel__content .sd-row > div:first-child .svc-question__content--drag-over-left {
1888
+ margin-left: 8px;
1889
+ width: calc(100% - 8px); }
1890
+
1891
+ .svc-question__content--panel .sd-row > div:last-child .svc-question__content--drag-over-right,
1892
+ .sd-panel__content .sd-row > div:last-child .svc-question__content--drag-over-right {
1893
+ margin-right: 8px;
1894
+ width: calc(100% - 8px); }
1895
+
1817
1896
  .svc-question__content-actions .sv-action-bar {
1818
1897
  box-sizing: border-box;
1819
1898
  padding: 0;
@@ -2030,7 +2109,7 @@ svc-question .sv-action-bar,
2030
2109
  .svc-rating-question-controls {
2031
2110
  position: absolute; }
2032
2111
 
2033
- .svc-question__content--selected-no-border .svc-rating-question-controls.svc-item-value-controls {
2112
+ .svc-question__content--in-popup .svc-rating-question-controls.svc-item-value-controls {
2034
2113
  display: flex; }
2035
2114
 
2036
2115
  .svc-question__content--selected .svc-rating-question-controls.svc-item-value-controls {
@@ -2315,7 +2394,8 @@ svc-question .sv-action-bar,
2315
2394
  display: none;
2316
2395
  position: absolute;
2317
2396
  top: calc(50% - 3 * var(--base-unit, 8px));
2318
- left: calc(50% - 3 * var(--base-unit, 8px)); }
2397
+ left: calc(50% - 3 * var(--base-unit, 8px));
2398
+ z-index: 2; }
2319
2399
 
2320
2400
  .svc-matrix-cell__question-controls-button {
2321
2401
  display: block;
@@ -2333,17 +2413,21 @@ svc-question .sv-action-bar,
2333
2413
  .svc-matrix-cell:hover .svc-matrix-cell__question-controls {
2334
2414
  display: block; }
2335
2415
 
2336
- .svc-question__content--selected-no-border {
2337
- padding: 0;
2416
+ .svc-question__content--in-popup {
2338
2417
  width: calc(100% - 25 * var(--base-unit, 8px));
2339
2418
  min-width: calc(70 * var(--base-unit, 8px));
2340
- box-shadow: none;
2341
- background-color: inherit; }
2419
+ padding: calc(5 * var(--base-unit, 8px)); }
2342
2420
 
2343
2421
  .svc-matrix-cell__popup .sv-popup__scrolling-content {
2344
2422
  margin-top: calc(1 * var(--base-unit, 8px));
2345
2423
  padding-top: 0; }
2346
2424
 
2425
+ .svc-matrix-cell__popup .svc-question__content {
2426
+ -moz-user-select: none;
2427
+ -webkit-user-select: none;
2428
+ -ms-user-select: none;
2429
+ user-select: none; }
2430
+
2347
2431
  .svc-question__content .sd-table__cell--detail-panel .svc-question__adorner {
2348
2432
  z-index: 13; }
2349
2433
 
@@ -3544,6 +3628,9 @@ button.spg-action-button--large {
3544
3628
  align-items: center;
3545
3629
  gap: calc(0.5 * var(--base-unit, 8px)); }
3546
3630
 
3631
+ .spg-color-editor__input {
3632
+ line-height: calc(3 * var(--base-unit, 8px)); }
3633
+
3547
3634
  .spg-color-editor__color-input {
3548
3635
  position: absolute;
3549
3636
  height: 1px;
@@ -3552,18 +3639,37 @@ button.spg-action-button--large {
3552
3639
  clip: rect(1px 1px 1px 1px);
3553
3640
  /* IE6, IE7 */
3554
3641
  clip: rect(1px, 1px, 1px, 1px);
3555
- left: calc(50%);
3556
- top: calc(100%);
3557
- transform: translate(-50%, -50%); }
3642
+ left: 0;
3643
+ top: 100%;
3644
+ transform: translateY(-50%); }
3645
+
3646
+ .spg-color-editor__color-item {
3647
+ display: flex;
3648
+ gap: calc(2 * var(--base-unit, 8px)); }
3649
+ .spg-color-editor__color-item .spg-color-editor__color-swatch {
3650
+ margin-left: 0; }
3558
3651
 
3559
3652
  .spg-color-editor__color-swatch {
3653
+ position: relative;
3560
3654
  flex-shrink: 0;
3561
3655
  flex-grow: 0;
3562
- border: 1px solid rgba(0, 0, 0, 0.16);
3563
3656
  border-radius: 3px;
3564
- width: calc(4.5 * var(--base-unit, 8px));
3657
+ width: calc(4 * var(--base-unit, 8px));
3565
3658
  height: calc(3 * var(--base-unit, 8px));
3659
+ box-sizing: border-box;
3660
+ border: 1px solid rgba(0, 0, 0, 0.16);
3566
3661
  margin-left: calc(1.5 * var(--base-unit, 8px)); }
3662
+ .spg-color-editor__color-swatch .sv-svg-icon {
3663
+ position: absolute;
3664
+ width: calc(2 * var(--base-unit, 8px));
3665
+ height: calc(2 * var(--base-unit, 8px));
3666
+ left: 50%;
3667
+ top: 50%;
3668
+ transform: translate(-50%, -50%);
3669
+ fill: var(--background, #fff); }
3670
+
3671
+ .spg-color-editor div:last-child {
3672
+ display: none; }
3567
3673
 
3568
3674
  .spg-file-edit__choose-button {
3569
3675
  position: relative; }
@@ -3571,6 +3677,31 @@ button.spg-action-button--large {
3571
3677
  .spg-link {
3572
3678
  display: flex; }
3573
3679
 
3680
+ .spg-theme-builder-root .spg-paneldynamic__separator {
3681
+ border: none;
3682
+ height: calc(2 * var(--base-unit, 8px));
3683
+ margin: 0; }
3684
+
3685
+ .spg-theme-builder-root .spg-paneldynamic__remove-btn {
3686
+ display: none; }
3687
+
3688
+ .spg-theme-builder-root .spg-row--multiple .spg-spin-editor .spg-input-container__buttons-container {
3689
+ display: none; }
3690
+
3691
+ .spg-theme-builder-root .spg-row--multiple .spg-question__header--location--left {
3692
+ min-width: auto; }
3693
+
3694
+ .spg-theme-builder-root .spg-row--multiple > div {
3695
+ flex: 1 1 0;
3696
+ min-width: calc(12.5 * var(--base-unit, 8px)); }
3697
+ .spg-theme-builder-root .spg-row--multiple > div input {
3698
+ min-width: 0; }
3699
+ .spg-theme-builder-root .spg-row--multiple > div .spg-question--location--left {
3700
+ height: calc(6 * var(--base-unit, 8px));
3701
+ box-sizing: border-box; }
3702
+ .spg-theme-builder-root .spg-row--multiple > div .spg-question--location--left .spg-input {
3703
+ height: auto; }
3704
+
3574
3705
  .spg-theme-builder-root .sv-button-group {
3575
3706
  overflow: hidden; }
3576
3707