survey-creator-core 1.9.87 → 1.9.89

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 (33) 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 +209 -68
  5. package/survey-creator-core.fontless.css +208 -67
  6. package/survey-creator-core.fontless.css.map +1 -1
  7. package/survey-creator-core.fontless.min.css +15 -11
  8. package/survey-creator-core.i18n.js +5 -1
  9. package/survey-creator-core.i18n.js.map +1 -1
  10. package/survey-creator-core.i18n.min.js +2 -2
  11. package/survey-creator-core.js +1747 -295
  12. package/survey-creator-core.js.map +1 -1
  13. package/survey-creator-core.min.css +16 -12
  14. package/survey-creator-core.min.js +3 -3
  15. package/typings/components/header/logo-image.d.ts +1 -0
  16. package/typings/components/image-item-value.d.ts +1 -0
  17. package/typings/components/matrix-cell.d.ts +1 -1
  18. package/typings/components/question-image.d.ts +10 -1
  19. package/typings/components/question.d.ts +2 -0
  20. package/typings/components/simulator.d.ts +1 -0
  21. package/typings/components/tabs/theme-plugin.d.ts +25 -0
  22. package/typings/components/tabs/theme.d.ts +85 -0
  23. package/typings/creator-base.d.ts +7 -0
  24. package/typings/creator-options.d.ts +1 -0
  25. package/typings/creator-settings.d.ts +4 -1
  26. package/typings/editorLocalization.d.ts +69 -0
  27. package/typings/entries/index.d.ts +2 -0
  28. package/typings/localization/english.d.ts +69 -0
  29. package/typings/plugins/undo-redo/undo-redo-manager.d.ts +2 -0
  30. package/typings/property-grid/index.d.ts +7 -0
  31. package/typings/property-grid/matrices.d.ts +1 -0
  32. package/typings/toolbox.d.ts +1 -0
  33. package/typings/utils/utils.d.ts +4 -1
@@ -1,9 +1,33 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.87
2
+ * SurveyJS Creator v1.9.89
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
6
6
  */
7
+ .svc-context-container {
8
+ display: flex;
9
+ gap: calc(1 * var(--base-unit, 8px));
10
+ width: max-content; }
11
+
12
+ .svc-context-button {
13
+ display: block;
14
+ box-sizing: border-box;
15
+ background-color: var(--background, #fff);
16
+ border-radius: 50%;
17
+ width: calc(6 * var(--base-unit, 8px));
18
+ height: calc(6 * var(--base-unit, 8px));
19
+ cursor: pointer;
20
+ padding: calc(1.5 * var(--base-unit, 8px));
21
+ outline: none; }
22
+ .svc-context-button use {
23
+ fill: var(--foreground-light, #909090); }
24
+
25
+ .svc-context-button:hover use, .svc-context-button:focus use {
26
+ fill: var(--primary, #19b394); }
27
+
28
+ .svc-context-button--danger:hover use, .svc-context-button--danger:focus use {
29
+ fill: var(--red, #e60a3e); }
30
+
7
31
  .svc-embed-tab__content {
8
32
  padding: calc(2 * var(--base-unit, 8px));
9
33
  font-family: var(--font-family); }
@@ -92,7 +116,8 @@ svc-tab-json-editor-textarea {
92
116
  transform-origin: 0 0;
93
117
  top: 50%;
94
118
  left: 50%;
95
- transform: scale(1.26) translate(-50%, -50%); }
119
+ transform: scale(1.26) translate(-50%, -50%);
120
+ overflow: overlay; }
96
121
 
97
122
  .svd-simulator-wrapper {
98
123
  margin: 0 auto;
@@ -167,10 +192,7 @@ svc-tab-json-editor-textarea {
167
192
  .svd-simulator-content {
168
193
  display: flex;
169
194
  justify-content: center;
170
- width: 100%;
171
- height: 100%;
172
- overflow: auto;
173
- overflow-y: overlay; }
195
+ width: 100%; }
174
196
 
175
197
  @media screen and (-webkit-min-device-pixel-ratio: 0) {
176
198
  ::i-block-chrome,
@@ -183,7 +205,7 @@ svc-tab-test {
183
205
  background: var(--background-dim, #f3f3f3); }
184
206
 
185
207
  .svc-test-tab__content .svc-plugin-tab__content {
186
- overflow-y: auto; }
208
+ overflow-y: overlay; }
187
209
  .svc-test-tab__content .svc-plugin-tab__content .sv-root-modern .sv-completedpage,
188
210
  .svc-test-tab__content .svc-plugin-tab__content .sv_default_css .sv_completed_page {
189
211
  margin: 0;
@@ -236,9 +258,6 @@ svc-tab-test {
236
258
  color: var(--foreground, #161616);
237
259
  display: inline-block; }
238
260
 
239
- .svc-test-tab__content.svc-creator-tab__content--with-toolbar .sd-body__navigation {
240
- padding-bottom: calc(8 * var(--base-unit, 8px)); }
241
-
242
261
  .svc-test-tab__content .sd-body--empty {
243
262
  font-family: var(--font-family);
244
263
  font-style: normal;
@@ -826,8 +845,6 @@ svc-tab-designer {
826
845
  box-sizing: border-box;
827
846
  margin-left: auto;
828
847
  margin-right: auto; }
829
- .svc-tab-designer .sd-container-modern .sd-container-modern__title {
830
- gap: 0; }
831
848
  .svc-tab-designer .sd-container-modern.sd-container-modern--static {
832
849
  max-width: calc(84 * var(--base-unit, 8px)); }
833
850
  .svc-tab-designer .sd-container-modern.sd-container-modern--responsive {
@@ -1092,18 +1109,20 @@ survey-creator,
1092
1109
 
1093
1110
  .svc-string-editor {
1094
1111
  position: static; }
1095
- .svc-string-editor [contenteditable] {
1112
+ .svc-string-editor [contenteditable="true"] {
1096
1113
  user-select: text;
1097
1114
  -webkit-user-select: text; }
1098
1115
  .svc-string-editor .sv-string-editor {
1099
1116
  position: relative;
1100
1117
  outline: none;
1101
- white-space: pre-wrap;
1102
1118
  word-break: break-word;
1103
1119
  z-index: 12; }
1104
1120
  .svc-string-editor .sv-string-editor[aria-placeholder]:empty:before {
1105
1121
  content: attr(aria-placeholder);
1106
1122
  color: var(--foreground-light, #909090); }
1123
+ .svc-string-editor .sv-string-editor--html,
1124
+ .svc-string-editor .sv-string-editor:focus-within {
1125
+ white-space: pre-wrap; }
1107
1126
  .svc-string-editor.svc-string-editor--hidden {
1108
1127
  display: none; }
1109
1128
 
@@ -1270,6 +1289,78 @@ survey-creator,
1270
1289
  opacity: 0.25;
1271
1290
  color: var(--foreground, #161616); }
1272
1291
 
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
+
1273
1364
  svc-page-navigator,
1274
1365
  .svc-page-navigator {
1275
1366
  display: flex;
@@ -1924,28 +2015,18 @@ svc-question .sv-action-bar,
1924
2015
  display: none; }
1925
2016
 
1926
2017
  .svc-question__content--selected .svc-image-question-controls {
1927
- display: block; }
1928
-
1929
- .svc-image-question-controls__button {
1930
- display: inline-block;
1931
- background-color: var(--background, #fff);
1932
- border-radius: 50%;
1933
- width: calc(6 * var(--base-unit, 8px));
1934
- height: calc(6 * var(--base-unit, 8px));
1935
- cursor: pointer; }
1936
- .svc-image-question-controls__button:not(:last-child) {
1937
- margin-right: calc(0.5 * var(--base-unit, 8px)); }
1938
- .svc-image-question-controls__button .sv-svg-icon {
1939
- margin-top: calc(50% - 1.5 * var(--base-unit, 8px));
1940
- margin-left: calc(50% - 1.5 * var(--base-unit, 8px)); }
1941
- .svc-image-question-controls__button use {
1942
- fill: var(--foreground-light, #909090); }
1943
- .svc-image-question-controls__button:hover use {
1944
- fill: var(--primary, #19b394); }
2018
+ display: flex; }
1945
2019
 
1946
- .svc-question__content--image {
2020
+ .svc-question__content--image:not(.svc-question__content--empty) {
1947
2021
  padding: calc(4 * var(--base-unit, 8px)) 0 calc(8 * var(--base-unit, 8px)) 0; }
1948
2022
 
2023
+ .svc-question__content--image.svc-question__content--empty .sd-file,
2024
+ .svc-question__content--image.svc-question__content--empty sv-ng-file-question {
2025
+ width: 100%; }
2026
+
2027
+ .svc-question__content--image.svc-question__content--empty .sd-question--image {
2028
+ display: none; }
2029
+
1949
2030
  .svc-rating-question-controls {
1950
2031
  position: absolute; }
1951
2032
 
@@ -1959,6 +2040,11 @@ svc-question .sv-action-bar,
1959
2040
  margin-inline-start: calc(9 * var(--base-unit, 8px));
1960
2041
  width: calc(100% - 9 * var(--base-unit, 8px)); }
1961
2042
 
2043
+ .svc-question__content .sd-question--table .sd-rating {
2044
+ margin-inline-start: 0;
2045
+ width: fit-content;
2046
+ margin: auto; }
2047
+
1962
2048
  .svc-question__content .svc-rating-question-controls {
1963
2049
  display: flex;
1964
2050
  width: calc(8 * var(--base-unit, 8px));
@@ -1974,12 +2060,16 @@ svc-question .sv-action-bar,
1974
2060
  display: flex;
1975
2061
  gap: calc(1 * var(--base-unit, 8px));
1976
2062
  align-items: center;
1977
- margin-left: calc(-5 * var(--base-unit, 8px));
1978
- min-width: calc(27 * var(--base-unit, 8px)); }
2063
+ margin-left: calc(-5 * var(--base-unit, 8px)); }
1979
2064
 
1980
2065
  .svc-question__dropdown-choice .svc-item-value-wrapper,
1981
2066
  .sd-selectbase .svc-item-value-wrapper {
1982
- align-items: flex-start; }
2067
+ align-items: flex-start;
2068
+ min-width: calc(28 * var(--base-unit, 8px)); }
2069
+
2070
+ .svc-question__dropdown-choice .svc-item-value__item,
2071
+ .sd-selectbase .svc-item-value__item {
2072
+ padding-right: calc(1 * var(--base-unit, 8px)); }
1983
2073
 
1984
2074
  .svc-question__content .sd-selectbase__column:not(.sd-imagepicker__column):not(:first-of-type) {
1985
2075
  margin-left: calc(5 * var(--base-unit, 8px)); }
@@ -2070,7 +2160,11 @@ svc-question .sv-action-bar,
2070
2160
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAACCAYAAABhYU3QAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAaSURBVHgBjcABDQAACAKwa2X6b1Tghxi8UQEkAAB3NR3N2gAAAABJRU5ErkJggg==); }
2071
2161
 
2072
2162
  .sv-ranking .svc-item-value-wrapper {
2073
- align-items: center; }
2163
+ align-items: center;
2164
+ min-width: calc(27 * var(--base-unit, 8px)); }
2165
+
2166
+ .sv-ranking .svc-item-value__item {
2167
+ padding-right: 0; }
2074
2168
 
2075
2169
  .svc-item-value__item .sv-ranking-item__content {
2076
2170
  padding-left: 0; }
@@ -2150,34 +2244,9 @@ svc-question .sv-action-bar,
2150
2244
  top: calc(50% - 3 * var(--base-unit, 8px));
2151
2245
  left: calc(50% - 3 * var(--base-unit, 8px)); }
2152
2246
 
2153
- .svc-image-item-value-controls {
2154
- display: flex; }
2155
-
2156
- .svc-image-item-value-controls__button {
2157
- display: block;
2158
- background-color: var(--background, #fff);
2159
- border-radius: 50%;
2160
- width: calc(6 * var(--base-unit, 8px));
2161
- height: calc(6 * var(--base-unit, 8px));
2162
- cursor: pointer;
2163
- outline: none; }
2164
- .svc-image-item-value-controls__button:not(:last-child) {
2165
- margin-right: calc(1 * var(--base-unit, 8px)); }
2166
- .svc-image-item-value-controls__button .sv-svg-icon {
2167
- margin-top: calc(50% - 1.5 * var(--base-unit, 8px));
2168
- margin-left: calc(50% - 1.5 * var(--base-unit, 8px)); }
2169
- .svc-image-item-value-controls__button use {
2170
- fill: var(--foreground-light, #909090); }
2171
-
2172
2247
  .svc-image-item-value--new .svc-image-item-value-controls__button {
2173
2248
  background-color: transparent; }
2174
2249
 
2175
- .svc-image-item-value-controls__choose-file:hover use, .svc-image-item-value-controls__choose-file:focus use {
2176
- fill: var(--primary, #19b394); }
2177
-
2178
- .svc-image-item-value-controls__remove:hover use, .svc-image-item-value-controls__remove:focus use {
2179
- fill: var(--red, #e60a3e); }
2180
-
2181
2250
  .svc-image-item-value-controls__add use {
2182
2251
  fill: var(--primary, #19b394); }
2183
2252
 
@@ -2194,15 +2263,15 @@ svc-question .sv-action-bar,
2194
2263
  .svc-image-item-value__item .sd-imagepicker__item.sd-imagepicker__item {
2195
2264
  width: 100%; }
2196
2265
 
2197
- .svc-question__content--selected .svc-image-item-value-wrapper:hover .svc-image-item-value-controls__drag-area-indicator {
2198
- display: block; }
2199
-
2200
2266
  .svc-image-item-value-controls__drag-area-indicator {
2267
+ display: none;
2201
2268
  cursor: move;
2202
2269
  position: absolute;
2203
2270
  top: calc(1 * var(--base-unit, 8px));
2204
- left: calc(1 * var(--base-unit, 8px));
2205
- display: none; }
2271
+ left: calc(1 * var(--base-unit, 8px)); }
2272
+
2273
+ .svc-question__content--selected .svc-image-item-value-wrapper:hover .svc-image-item-value-controls__drag-area-indicator {
2274
+ display: block; }
2206
2275
 
2207
2276
  .svc-image-item-value-wrapper--ghost .svc-image-item-value-wrapper__ghost {
2208
2277
  display: block; }
@@ -2350,6 +2419,10 @@ svc-question .sv-action-bar,
2350
2419
  .svd-test-results .svd-test-results__table table tr .svd-test-results__node-value {
2351
2420
  color: var(--foreground-light, #909090); }
2352
2421
 
2422
+ .svc-designer-header .sd-container-modern__title {
2423
+ gap: 0;
2424
+ column-gap: calc(6 * var(--base-unit, 8px)); }
2425
+
2353
2426
  .svc-logo-image {
2354
2427
  position: relative;
2355
2428
  justify-content: flex-end;
@@ -2388,6 +2461,29 @@ svc-question .sv-action-bar,
2388
2461
  .svc-logo-image-placeholder use {
2389
2462
  fill: var(--foreground-light, #909090); }
2390
2463
 
2464
+ .svc-logo-image-container {
2465
+ position: relative; }
2466
+ .svc-logo-image-container .sd-logo {
2467
+ margin: 0; }
2468
+
2469
+ .svc-logo-image-controls {
2470
+ opacity: 0;
2471
+ width: max-content;
2472
+ position: absolute;
2473
+ top: 50%;
2474
+ left: 50%;
2475
+ transform: translate(-50%, -50%); }
2476
+
2477
+ .svc-logo-image-container {
2478
+ cursor: default; }
2479
+
2480
+ .svc-logo-image-container:not(.svc-logo-image-container--editable) .svc-logo-image-controls {
2481
+ display: none; }
2482
+
2483
+ .svc-logo-image-container--editable:focus-within .svc-logo-image-controls,
2484
+ .svc-logo-image-container--editable:hover .svc-logo-image-controls {
2485
+ opacity: 1; }
2486
+
2391
2487
  .svc-question-link__set-button {
2392
2488
  font-weight: 600;
2393
2489
  cursor: pointer; }
@@ -3475,6 +3571,51 @@ button.spg-action-button--large {
3475
3571
  .spg-link {
3476
3572
  display: flex; }
3477
3573
 
3574
+ .spg-theme-builder-root .sv-button-group {
3575
+ overflow: hidden; }
3576
+
3577
+ .spg-theme-builder-root .spg-question__header--location--left {
3578
+ width: max-content;
3579
+ flex: 0 0; }
3580
+ .spg-theme-builder-root .spg-question__header--location--left .spg-question__title {
3581
+ white-space: nowrap;
3582
+ overflow: hidden;
3583
+ text-overflow: ellipsis; }
3584
+
3585
+ .spg-theme-builder-root .spg-panel__content .spg-panel__content {
3586
+ padding: 0;
3587
+ padding-bottom: calc(5 * var(--base-unit, 8px));
3588
+ box-shadow: none; }
3589
+ .spg-theme-builder-root .spg-panel__content .spg-panel__content .spg-panel__title {
3590
+ background-color: transparent;
3591
+ box-shadow: none;
3592
+ padding: calc(1 * var(--base-unit, 8px)) 0; }
3593
+ .spg-theme-builder-root .spg-panel__content .spg-panel__content::after {
3594
+ content: " ";
3595
+ display: block;
3596
+ position: relative;
3597
+ left: calc(-4 * var(--base-unit, 8px));
3598
+ top: calc(5 * var(--base-unit, 8px));
3599
+ width: calc(8 * var(--base-unit, 8px) + 100%);
3600
+ height: 1px;
3601
+ background-color: var(--border, #d6d6d6); }
3602
+ .spg-theme-builder-root .spg-panel__content .spg-panel__content > .spg-row:first-of-type {
3603
+ margin-top: 0; }
3604
+
3605
+ .spg-theme-builder-root .spg-panel__content .spg-panel__content .spg-panel__content {
3606
+ padding-bottom: 0; }
3607
+ .spg-theme-builder-root .spg-panel__content .spg-panel__content .spg-panel__content::after {
3608
+ content: none; }
3609
+ .spg-theme-builder-root .spg-panel__content .spg-panel__content .spg-panel__content .spg-row {
3610
+ margin-top: calc(1 * var(--base-unit, 8px)); }
3611
+ .spg-theme-builder-root .spg-panel__content .spg-panel__content .spg-panel__content .spg-row:first-of-type {
3612
+ margin-top: 0; }
3613
+
3614
+ .spg-theme-builder-root .spg-panel__content .spg-row:last-of-type .spg-panel__content {
3615
+ padding-bottom: 0; }
3616
+ .spg-theme-builder-root .spg-panel__content .spg-row:last-of-type .spg-panel__content::after {
3617
+ content: none; }
3618
+
3478
3619
  .spg-root-modern {
3479
3620
  width: 100%;
3480
3621
  border-right: 1px solid var(--border, #d6d6d6);