survey-creator-core 1.12.16 → 1.12.17
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/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js.LICENSE.txt +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js.LICENSE.txt +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js.LICENSE.txt +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js.LICENSE.txt +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js.LICENSE.txt +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js.LICENSE.txt +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js.LICENSE.txt +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js.LICENSE.txt +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js.LICENSE.txt +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js.LICENSE.txt +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js.LICENSE.txt +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js.LICENSE.txt +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js.LICENSE.txt +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js.LICENSE.txt +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js.LICENSE.txt +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js.LICENSE.txt +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js.LICENSE.txt +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.min.js.LICENSE.txt +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js.LICENSE.txt +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js.LICENSE.txt +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js.LICENSE.txt +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js.LICENSE.txt +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js.LICENSE.txt +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js.LICENSE.txt +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js.LICENSE.txt +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js.LICENSE.txt +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js.LICENSE.txt +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js.LICENSE.txt +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js.LICENSE.txt +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js.LICENSE.txt +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +111 -84
- package/survey-creator-core.fontless.css +110 -83
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +17 -17
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +798 -695
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +18 -18
- package/survey-creator-core.min.js +1 -1
- package/survey-creator-core.min.js.LICENSE.txt +1 -1
- package/themes/default-contrast.js +43 -9
- package/themes/default-contrast.js.map +1 -1
- package/themes/default-contrast.min.js +1 -1
- package/themes/default-contrast.min.js.LICENSE.txt +1 -1
- package/themes/default-dark.js +45 -11
- package/themes/default-dark.js.map +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +1 -1
- package/themes/default-light.js +35 -1
- package/themes/default-light.js.map +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/default-light.min.js.LICENSE.txt +1 -1
- package/themes/index.js +53 -19
- package/themes/index.js.map +1 -1
- package/themes/index.min.js +1 -1
- package/themes/index.min.js.LICENSE.txt +1 -1
- package/themes/themes/default.d.ts +68 -0
- package/typings/components/tabs/designer.d.ts +2 -1
- package/typings/components/tabs/json-editor-ace.d.ts +1 -0
- package/typings/components/tabs/json-editor-plugin.d.ts +1 -1
- package/typings/components/tabs/theme-plugin.d.ts +1 -1
- package/typings/creator-base.d.ts +22 -9
- package/typings/creator-options.d.ts +15 -3
- package/typings/creator-responsivity-manager.d.ts +1 -0
- package/typings/creator-settings.d.ts +0 -2
- package/typings/entries/index.d.ts +3 -0
- package/typings/property-grid/condition-survey.d.ts +0 -1
- package/typings/themes/default.d.ts +68 -0
- package/typings/utils/color-utils.d.ts +24 -0
- package/typings/utils/creator-utils.d.ts +10 -0
- package/typings/utils/html-element-utils.d.ts +7 -0
- package/typings/utils/utils.d.ts +0 -41
|
@@ -284,6 +284,8 @@ declare const Theme: {
|
|
|
284
284
|
"--ctr-actionbar-button-padding-top-medium-text": string;
|
|
285
285
|
"--ctr-actionbar-button-padding-bottom-medium-text": string;
|
|
286
286
|
"--ctr-actionbar-button-text-color-disabled": string;
|
|
287
|
+
"--ctr-actionbar-button-border-color-selected": string;
|
|
288
|
+
"--ctr-actionbar-button-border-width-selected": string;
|
|
287
289
|
"--ctr-list-item-gap": string;
|
|
288
290
|
"--ctr-list-item-padding-left": string;
|
|
289
291
|
"--ctr-list-item-padding-right": string;
|
|
@@ -349,6 +351,7 @@ declare const Theme: {
|
|
|
349
351
|
"--ctr-toolbox-item-padding-right": string;
|
|
350
352
|
"--ctr-toolbox-item-padding-top": string;
|
|
351
353
|
"--ctr-toolbox-item-padding-bottom": string;
|
|
354
|
+
"--ctr-toolbox-item-gap": string;
|
|
352
355
|
"--ctr-toolbox-item-corner-radius": string;
|
|
353
356
|
"--ctr-toolbox-item-padding-right-no-text": string;
|
|
354
357
|
"--ctr-toolbox-item-border-color-floating": string;
|
|
@@ -385,10 +388,12 @@ declare const Theme: {
|
|
|
385
388
|
"--ctr-button-background-color-hovered": string;
|
|
386
389
|
"--ctr-button-text-color-disabled": string;
|
|
387
390
|
"--ctr-button-background-color-danger": string;
|
|
391
|
+
"--ctr-button-background-color-danger-hovered": string;
|
|
388
392
|
"--ctr-button-border-color-focused": string;
|
|
389
393
|
"--ctr-button-border-width-focused": string;
|
|
390
394
|
"--ctr-button-background-color-cta": string;
|
|
391
395
|
"--ctr-button-background-color-cta-hovered": string;
|
|
396
|
+
"--ctr-button-text-color-danger": string;
|
|
392
397
|
"--ctr-button-text-color-cta": string;
|
|
393
398
|
"--ctr-collapse-button-icon-width": string;
|
|
394
399
|
"--ctr-collapse-button-icon-height": string;
|
|
@@ -467,6 +472,7 @@ declare const Theme: {
|
|
|
467
472
|
"--ctr-string-table-row-padding-bottom": string;
|
|
468
473
|
"--ctr-string-table-row-background-color": string;
|
|
469
474
|
"--ctr-string-table-row-border-color": string;
|
|
475
|
+
"--ctr-string-table-row-border-width-bottom": string;
|
|
470
476
|
"--ctr-string-table-row-text-color-title": string;
|
|
471
477
|
"--ctr-string-table-row-expand-button-icon-color-default": string;
|
|
472
478
|
"--ctr-string-table-header-background-color": string;
|
|
@@ -519,6 +525,17 @@ declare const Theme: {
|
|
|
519
525
|
"--ctr-data-table-row-padding-top-header": string;
|
|
520
526
|
"--ctr-data-table-row-padding-bottom-header": string;
|
|
521
527
|
"--ctr-data-table-row-background-color-drop-spot": string;
|
|
528
|
+
"--ctr-string-table-row-text-color": string;
|
|
529
|
+
"--ctr-string-table-title-background-color": string;
|
|
530
|
+
"--ctr-string-table-title-border-color": string;
|
|
531
|
+
"--ctr-string-table-title-border-width-bottom": string;
|
|
532
|
+
"--ctr-string-table-title-padding-left": string;
|
|
533
|
+
"--ctr-string-table-title-padding-right": string;
|
|
534
|
+
"--ctr-string-table-title-padding-top": string;
|
|
535
|
+
"--ctr-string-table-title-padding-bottom": string;
|
|
536
|
+
"--ctr-string-table-corner-radius": string;
|
|
537
|
+
"--ctr-string-table-title-actionbar-gap": string;
|
|
538
|
+
"--ctr-string-table-title-caption-color": string;
|
|
522
539
|
"--ctr-error-message-background-color": string;
|
|
523
540
|
"--ctr-error-message-corner-radius": string;
|
|
524
541
|
"--ctr-error-message-gap": string;
|
|
@@ -763,6 +780,8 @@ declare const Theme: {
|
|
|
763
780
|
"--ctr-survey-header-text-title-color-placeholder": string;
|
|
764
781
|
"--ctr-survey-header-text-description-color-placeholder": string;
|
|
765
782
|
"--ctr-survey-header-text-margin-left-mobile-logo-placeholder": string;
|
|
783
|
+
"--ctr-survey-radio-button-group-show-more-button-margin-left": string;
|
|
784
|
+
"--ctr-survey-radio-button-group-show-more-button-margin-top": string;
|
|
766
785
|
"--lbr-question-panel-corner-radius": string;
|
|
767
786
|
"--ctr-survey-question-panel-border-color-selected": string;
|
|
768
787
|
"--ctr-survey-question-panel-border-width-selected": string;
|
|
@@ -795,6 +814,11 @@ declare const Theme: {
|
|
|
795
814
|
"--lbr-question-panel-padding-top": string;
|
|
796
815
|
"--ctr-survey-question-panel-padding-bottom-selected": string;
|
|
797
816
|
"--lbr-page-header-padding-bottom": string;
|
|
817
|
+
"--ctr-string-table-shadow-offset-x": string;
|
|
818
|
+
"--ctr-string-table-shadow-offset-y": string;
|
|
819
|
+
"--ctr-string-table-shadow-blur": string;
|
|
820
|
+
"--ctr-string-table-shadow-spread": string;
|
|
821
|
+
"--ctr-string-table-shadow-color": string;
|
|
798
822
|
"--ctr-list-search-padding-left": string;
|
|
799
823
|
"--ctr-list-search-padding-right": string;
|
|
800
824
|
"--ctr-list-search-padding-top": string;
|
|
@@ -814,6 +838,11 @@ declare const Theme: {
|
|
|
814
838
|
"--ctr-surface-gap": string;
|
|
815
839
|
"--ctr-expression-item-padding-left-button": string;
|
|
816
840
|
"--ctr-expression-item-padding-right-button": string;
|
|
841
|
+
"--ctr-preview-device-background-color": string;
|
|
842
|
+
"--ctr-preview-device-border-color": string;
|
|
843
|
+
"--ctr-preview-device-border-width": string;
|
|
844
|
+
"--ctr-preview-device-shadow-2-color": string;
|
|
845
|
+
"--ctr-preview-device-corner-radius": string;
|
|
817
846
|
"--ctr-toolbox-shadow-floating-1-offset-x": string;
|
|
818
847
|
"--ctr-toolbox-shadow-floating-2-offset-x": string;
|
|
819
848
|
"--ctr-toolbox-shadow-floating-1-offset-y": string;
|
|
@@ -824,6 +853,7 @@ declare const Theme: {
|
|
|
824
853
|
"--ctr-toolbox-shadow-floating-2-spread": string;
|
|
825
854
|
"--ctr-toolbox-shadow-floating-2-color": string;
|
|
826
855
|
"--ctr-toolbox-shadow-floating-1-color": string;
|
|
856
|
+
"--ctr-string-table-background-color": string;
|
|
827
857
|
"--ctr-toolbox-item-padding-left-submenu": string;
|
|
828
858
|
"--ctr-toolbox-item-padding-top-submenu": string;
|
|
829
859
|
"--ctr-toolbox-item-padding-bottom-submenu": string;
|
|
@@ -901,6 +931,10 @@ declare const Theme: {
|
|
|
901
931
|
"--ctr-popup-shadow-3-spread": string;
|
|
902
932
|
"--ctr-popup-shadow-3-color": string;
|
|
903
933
|
"--lbr-shadow-inner-color": string;
|
|
934
|
+
"--ctr-code-viewer-text-margin-left-results-table": string;
|
|
935
|
+
"--ctr-code-viewer-text-margin-right-results-table": string;
|
|
936
|
+
"--ctr-code-viewer-text-margin-top-results-table": string;
|
|
937
|
+
"--ctr-code-viewer-text-margin-bottom-results-table": string;
|
|
904
938
|
"--ctr-toolbox-item-background-color-submenu": string;
|
|
905
939
|
"--ctr-toolbox-item-text-color-submenu": string;
|
|
906
940
|
"--ctr-toolbox-min-width": string;
|
|
@@ -1381,6 +1415,8 @@ export declare const Default: {
|
|
|
1381
1415
|
"--ctr-actionbar-button-padding-top-medium-text": string;
|
|
1382
1416
|
"--ctr-actionbar-button-padding-bottom-medium-text": string;
|
|
1383
1417
|
"--ctr-actionbar-button-text-color-disabled": string;
|
|
1418
|
+
"--ctr-actionbar-button-border-color-selected": string;
|
|
1419
|
+
"--ctr-actionbar-button-border-width-selected": string;
|
|
1384
1420
|
"--ctr-list-item-gap": string;
|
|
1385
1421
|
"--ctr-list-item-padding-left": string;
|
|
1386
1422
|
"--ctr-list-item-padding-right": string;
|
|
@@ -1446,6 +1482,7 @@ export declare const Default: {
|
|
|
1446
1482
|
"--ctr-toolbox-item-padding-right": string;
|
|
1447
1483
|
"--ctr-toolbox-item-padding-top": string;
|
|
1448
1484
|
"--ctr-toolbox-item-padding-bottom": string;
|
|
1485
|
+
"--ctr-toolbox-item-gap": string;
|
|
1449
1486
|
"--ctr-toolbox-item-corner-radius": string;
|
|
1450
1487
|
"--ctr-toolbox-item-padding-right-no-text": string;
|
|
1451
1488
|
"--ctr-toolbox-item-border-color-floating": string;
|
|
@@ -1482,10 +1519,12 @@ export declare const Default: {
|
|
|
1482
1519
|
"--ctr-button-background-color-hovered": string;
|
|
1483
1520
|
"--ctr-button-text-color-disabled": string;
|
|
1484
1521
|
"--ctr-button-background-color-danger": string;
|
|
1522
|
+
"--ctr-button-background-color-danger-hovered": string;
|
|
1485
1523
|
"--ctr-button-border-color-focused": string;
|
|
1486
1524
|
"--ctr-button-border-width-focused": string;
|
|
1487
1525
|
"--ctr-button-background-color-cta": string;
|
|
1488
1526
|
"--ctr-button-background-color-cta-hovered": string;
|
|
1527
|
+
"--ctr-button-text-color-danger": string;
|
|
1489
1528
|
"--ctr-button-text-color-cta": string;
|
|
1490
1529
|
"--ctr-collapse-button-icon-width": string;
|
|
1491
1530
|
"--ctr-collapse-button-icon-height": string;
|
|
@@ -1564,6 +1603,7 @@ export declare const Default: {
|
|
|
1564
1603
|
"--ctr-string-table-row-padding-bottom": string;
|
|
1565
1604
|
"--ctr-string-table-row-background-color": string;
|
|
1566
1605
|
"--ctr-string-table-row-border-color": string;
|
|
1606
|
+
"--ctr-string-table-row-border-width-bottom": string;
|
|
1567
1607
|
"--ctr-string-table-row-text-color-title": string;
|
|
1568
1608
|
"--ctr-string-table-row-expand-button-icon-color-default": string;
|
|
1569
1609
|
"--ctr-string-table-header-background-color": string;
|
|
@@ -1616,6 +1656,17 @@ export declare const Default: {
|
|
|
1616
1656
|
"--ctr-data-table-row-padding-top-header": string;
|
|
1617
1657
|
"--ctr-data-table-row-padding-bottom-header": string;
|
|
1618
1658
|
"--ctr-data-table-row-background-color-drop-spot": string;
|
|
1659
|
+
"--ctr-string-table-row-text-color": string;
|
|
1660
|
+
"--ctr-string-table-title-background-color": string;
|
|
1661
|
+
"--ctr-string-table-title-border-color": string;
|
|
1662
|
+
"--ctr-string-table-title-border-width-bottom": string;
|
|
1663
|
+
"--ctr-string-table-title-padding-left": string;
|
|
1664
|
+
"--ctr-string-table-title-padding-right": string;
|
|
1665
|
+
"--ctr-string-table-title-padding-top": string;
|
|
1666
|
+
"--ctr-string-table-title-padding-bottom": string;
|
|
1667
|
+
"--ctr-string-table-corner-radius": string;
|
|
1668
|
+
"--ctr-string-table-title-actionbar-gap": string;
|
|
1669
|
+
"--ctr-string-table-title-caption-color": string;
|
|
1619
1670
|
"--ctr-error-message-background-color": string;
|
|
1620
1671
|
"--ctr-error-message-corner-radius": string;
|
|
1621
1672
|
"--ctr-error-message-gap": string;
|
|
@@ -1860,6 +1911,8 @@ export declare const Default: {
|
|
|
1860
1911
|
"--ctr-survey-header-text-title-color-placeholder": string;
|
|
1861
1912
|
"--ctr-survey-header-text-description-color-placeholder": string;
|
|
1862
1913
|
"--ctr-survey-header-text-margin-left-mobile-logo-placeholder": string;
|
|
1914
|
+
"--ctr-survey-radio-button-group-show-more-button-margin-left": string;
|
|
1915
|
+
"--ctr-survey-radio-button-group-show-more-button-margin-top": string;
|
|
1863
1916
|
"--lbr-question-panel-corner-radius": string;
|
|
1864
1917
|
"--ctr-survey-question-panel-border-color-selected": string;
|
|
1865
1918
|
"--ctr-survey-question-panel-border-width-selected": string;
|
|
@@ -1892,6 +1945,11 @@ export declare const Default: {
|
|
|
1892
1945
|
"--lbr-question-panel-padding-top": string;
|
|
1893
1946
|
"--ctr-survey-question-panel-padding-bottom-selected": string;
|
|
1894
1947
|
"--lbr-page-header-padding-bottom": string;
|
|
1948
|
+
"--ctr-string-table-shadow-offset-x": string;
|
|
1949
|
+
"--ctr-string-table-shadow-offset-y": string;
|
|
1950
|
+
"--ctr-string-table-shadow-blur": string;
|
|
1951
|
+
"--ctr-string-table-shadow-spread": string;
|
|
1952
|
+
"--ctr-string-table-shadow-color": string;
|
|
1895
1953
|
"--ctr-list-search-padding-left": string;
|
|
1896
1954
|
"--ctr-list-search-padding-right": string;
|
|
1897
1955
|
"--ctr-list-search-padding-top": string;
|
|
@@ -1911,6 +1969,11 @@ export declare const Default: {
|
|
|
1911
1969
|
"--ctr-surface-gap": string;
|
|
1912
1970
|
"--ctr-expression-item-padding-left-button": string;
|
|
1913
1971
|
"--ctr-expression-item-padding-right-button": string;
|
|
1972
|
+
"--ctr-preview-device-background-color": string;
|
|
1973
|
+
"--ctr-preview-device-border-color": string;
|
|
1974
|
+
"--ctr-preview-device-border-width": string;
|
|
1975
|
+
"--ctr-preview-device-shadow-2-color": string;
|
|
1976
|
+
"--ctr-preview-device-corner-radius": string;
|
|
1914
1977
|
"--ctr-toolbox-shadow-floating-1-offset-x": string;
|
|
1915
1978
|
"--ctr-toolbox-shadow-floating-2-offset-x": string;
|
|
1916
1979
|
"--ctr-toolbox-shadow-floating-1-offset-y": string;
|
|
@@ -1921,6 +1984,7 @@ export declare const Default: {
|
|
|
1921
1984
|
"--ctr-toolbox-shadow-floating-2-spread": string;
|
|
1922
1985
|
"--ctr-toolbox-shadow-floating-2-color": string;
|
|
1923
1986
|
"--ctr-toolbox-shadow-floating-1-color": string;
|
|
1987
|
+
"--ctr-string-table-background-color": string;
|
|
1924
1988
|
"--ctr-toolbox-item-padding-left-submenu": string;
|
|
1925
1989
|
"--ctr-toolbox-item-padding-top-submenu": string;
|
|
1926
1990
|
"--ctr-toolbox-item-padding-bottom-submenu": string;
|
|
@@ -1998,6 +2062,10 @@ export declare const Default: {
|
|
|
1998
2062
|
"--ctr-popup-shadow-3-spread": string;
|
|
1999
2063
|
"--ctr-popup-shadow-3-color": string;
|
|
2000
2064
|
"--lbr-shadow-inner-color": string;
|
|
2065
|
+
"--ctr-code-viewer-text-margin-left-results-table": string;
|
|
2066
|
+
"--ctr-code-viewer-text-margin-right-results-table": string;
|
|
2067
|
+
"--ctr-code-viewer-text-margin-top-results-table": string;
|
|
2068
|
+
"--ctr-code-viewer-text-margin-bottom-results-table": string;
|
|
2001
2069
|
"--ctr-toolbox-item-background-color-submenu": string;
|
|
2002
2070
|
"--ctr-toolbox-item-text-color-submenu": string;
|
|
2003
2071
|
"--ctr-toolbox-min-width": string;
|
|
@@ -37,7 +37,8 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
37
37
|
get placeholderText(): string;
|
|
38
38
|
get placeholderTitleText(): string;
|
|
39
39
|
get placeholderDescriptionText(): string;
|
|
40
|
-
get
|
|
40
|
+
get showSurfaceToolbar(): boolean;
|
|
41
|
+
get showSurfaceTools(): boolean;
|
|
41
42
|
private isUpdatingNewPage;
|
|
42
43
|
onDesignerSurveyPropertyChanged(obj: Base, propName: string): void;
|
|
43
44
|
private calculateDesignerCss;
|
|
@@ -10,6 +10,7 @@ export declare class AceJsonEditorModel extends JsonEditorBaseModel {
|
|
|
10
10
|
protected getText(): string;
|
|
11
11
|
protected setText(value: string): void;
|
|
12
12
|
init(aceEditor: any): void;
|
|
13
|
+
onPluginActivate(): void;
|
|
13
14
|
private updateUndoRedoState;
|
|
14
15
|
protected onTextChanged(): void;
|
|
15
16
|
private createAnnotations;
|
|
@@ -2,7 +2,7 @@ import { Base, ListModel, Action } from "survey-core";
|
|
|
2
2
|
import { SurveyCreatorModel } from "../../creator-base";
|
|
3
3
|
import { ICreatorPlugin } from "../../creator-settings";
|
|
4
4
|
import { SurveyTextWorkerError } from "../../textWorker";
|
|
5
|
-
import { saveToFileHandler } from "../../utils/utils";
|
|
5
|
+
import { saveToFileHandler } from "../../utils/html-element-utils";
|
|
6
6
|
export declare abstract class JsonEditorBaseModel extends Base {
|
|
7
7
|
protected creator: SurveyCreatorModel;
|
|
8
8
|
isJSONChanged: boolean;
|
|
@@ -2,7 +2,7 @@ import { Action, ITheme, EventBase } from "survey-core";
|
|
|
2
2
|
import { SurveyCreatorModel } from "../../creator-base";
|
|
3
3
|
import { ICreatorPlugin } from "../../creator-settings";
|
|
4
4
|
import { ThemeTabViewModel } from "./theme-builder";
|
|
5
|
-
import { saveToFileHandler } from "../../utils/utils";
|
|
5
|
+
import { saveToFileHandler } from "../../utils/html-element-utils";
|
|
6
6
|
import { PropertyGridModel } from "../../property-grid";
|
|
7
7
|
import { ThemeModel } from "./theme-model";
|
|
8
8
|
/**
|
|
@@ -124,6 +124,19 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
124
124
|
private _showOneCategoryInPropertyGrid;
|
|
125
125
|
get showOneCategoryInPropertyGrid(): boolean;
|
|
126
126
|
set showOneCategoryInPropertyGrid(newValue: boolean);
|
|
127
|
+
/**
|
|
128
|
+
* Specifies how users navigate categories in the Property Grid.
|
|
129
|
+
*
|
|
130
|
+
* Accepted values:
|
|
131
|
+
*
|
|
132
|
+
* - `"accordion"` (default)
|
|
133
|
+
* The Property Grid displays a stacked list of categories that users can expand or collapse to reveal nested properties.
|
|
134
|
+
*
|
|
135
|
+
* - `"buttons"`
|
|
136
|
+
* The Property Grid displays the properties of a currently selected category. Users can switch between categories using buttons on the right side of the Property Grid.
|
|
137
|
+
*/
|
|
138
|
+
get propertyGridNavigationMode(): "buttons" | "accordion";
|
|
139
|
+
set propertyGridNavigationMode(newValue: "buttons" | "accordion");
|
|
127
140
|
get allowEditSurveyTitle(): boolean;
|
|
128
141
|
set allowEditSurveyTitle(val: boolean);
|
|
129
142
|
/**
|
|
@@ -152,7 +165,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
152
165
|
/**
|
|
153
166
|
* Specifies a default device for survey preview in the Preview tab.
|
|
154
167
|
*
|
|
155
|
-
*
|
|
168
|
+
* Accepted values:
|
|
156
169
|
*
|
|
157
170
|
* - `"desktop"` (default)
|
|
158
171
|
* - `"iPhoneSE"`
|
|
@@ -168,7 +181,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
168
181
|
/**
|
|
169
182
|
* Specifies the orientation of the selected device in the Preview tab.
|
|
170
183
|
*
|
|
171
|
-
*
|
|
184
|
+
* Accepted values:
|
|
172
185
|
*
|
|
173
186
|
* - `"landscape"` (default)
|
|
174
187
|
* - `"portrait"`
|
|
@@ -859,7 +872,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
859
872
|
/**
|
|
860
873
|
* Gets or sets the currently displayed tab.
|
|
861
874
|
*
|
|
862
|
-
*
|
|
875
|
+
* Accepted values:
|
|
863
876
|
*
|
|
864
877
|
* - [`"designer"`](#showDesignerTab)
|
|
865
878
|
* - [`"test"`](#showPreviewTab)
|
|
@@ -1093,7 +1106,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1093
1106
|
/**
|
|
1094
1107
|
* Indicates the state of Survey Creator.
|
|
1095
1108
|
*
|
|
1096
|
-
*
|
|
1109
|
+
* Accepted values:
|
|
1097
1110
|
*
|
|
1098
1111
|
* - `""` - Survey Creator doesn't have unsaved changes.
|
|
1099
1112
|
* - `"modified"` - Survey Creator has unsaved changes.
|
|
@@ -1323,7 +1336,6 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1323
1336
|
onValueChangingCallback(options: any): void;
|
|
1324
1337
|
onGetElementEditorTitleCallback(obj: Base, title: string): string;
|
|
1325
1338
|
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[], variables: string[]): string;
|
|
1326
|
-
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
1327
1339
|
isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean;
|
|
1328
1340
|
onLogicGetTitleCallback(expression: string, expressionText: string, text: string, logicItem: any): string;
|
|
1329
1341
|
getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
|
|
@@ -1404,6 +1416,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1404
1416
|
resetResponsivityManager(): void;
|
|
1405
1417
|
showHeaderInEmptySurvey: any;
|
|
1406
1418
|
allowShowPageNavigator: any;
|
|
1419
|
+
allowShowSurfaceToolbar: any;
|
|
1407
1420
|
private showPageNavigatorValue;
|
|
1408
1421
|
get showPageNavigator(): boolean;
|
|
1409
1422
|
set showPageNavigator(val: boolean);
|
|
@@ -1418,7 +1431,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1418
1431
|
/**
|
|
1419
1432
|
* Specifies the Toolbox location.
|
|
1420
1433
|
*
|
|
1421
|
-
*
|
|
1434
|
+
* Accepted values:
|
|
1422
1435
|
*
|
|
1423
1436
|
* - `"left"` (default) - Displays the Toolbox on the left side of the design surface.
|
|
1424
1437
|
* - `"right"` - Displays the Toolbox on the right side of the design surface.
|
|
@@ -1432,7 +1445,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1432
1445
|
/**
|
|
1433
1446
|
* Specifies the position of the sidebar that displays the Property Grid. Applies only when [`showSidebar`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#showSidebar) is `true`.
|
|
1434
1447
|
*
|
|
1435
|
-
*
|
|
1448
|
+
* Accepted values:
|
|
1436
1449
|
*
|
|
1437
1450
|
* - `"right"` (default) - Displays the sidebar on the right side of the design surface.
|
|
1438
1451
|
* - `"left"` - Displays the sidebar on the left side of the design surface.
|
|
@@ -1442,7 +1455,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1442
1455
|
/**
|
|
1443
1456
|
* Specifies the visibility of the buttons that expand and collapse survey elements on the design surface.
|
|
1444
1457
|
*
|
|
1445
|
-
*
|
|
1458
|
+
* Accepted values:
|
|
1446
1459
|
*
|
|
1447
1460
|
* - `"onhover"` (default) - Displays an expand/collapse button when a survey element is hovered over or selected.
|
|
1448
1461
|
* - `"always"` - Displays the expand/collapse buttons permanently.
|
|
@@ -1464,7 +1477,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1464
1477
|
};
|
|
1465
1478
|
creatorTheme: ICreatorTheme;
|
|
1466
1479
|
preferredColorPalette: string;
|
|
1467
|
-
|
|
1480
|
+
applyCreatorTheme(theme: ICreatorTheme): void;
|
|
1468
1481
|
syncTheme(theme: ICreatorTheme, isLight?: boolean): void;
|
|
1469
1482
|
allowDragPages: boolean;
|
|
1470
1483
|
collapsePagesOnDrag: boolean;
|
|
@@ -232,7 +232,7 @@ export interface ICreatorOptions {
|
|
|
232
232
|
/**
|
|
233
233
|
* Specifies a default device for survey preview in the Preview tab.
|
|
234
234
|
*
|
|
235
|
-
*
|
|
235
|
+
* Accepted values:
|
|
236
236
|
*
|
|
237
237
|
* - `"desktop"` (default)
|
|
238
238
|
* - `"iPhoneSE"`
|
|
@@ -248,7 +248,7 @@ export interface ICreatorOptions {
|
|
|
248
248
|
/**
|
|
249
249
|
* Specifies the orientation of the selected device in the Preview tab.
|
|
250
250
|
*
|
|
251
|
-
*
|
|
251
|
+
* Accepted values:
|
|
252
252
|
* - `"landscape"` (default)
|
|
253
253
|
* - `"portrait"`
|
|
254
254
|
*/
|
|
@@ -290,7 +290,7 @@ export interface ICreatorOptions {
|
|
|
290
290
|
/**
|
|
291
291
|
* Specifies the visibility of the buttons that expand and collapse survey elements on the design surface.
|
|
292
292
|
*
|
|
293
|
-
*
|
|
293
|
+
* Accepted values:
|
|
294
294
|
*
|
|
295
295
|
* - `"onhover"` (default) - Displays an expand/collapse button when a survey element is hovered over or selected.
|
|
296
296
|
* - `"always"` - Displays the expand/collapse buttons permanently.
|
|
@@ -325,4 +325,16 @@ export interface ICreatorOptions {
|
|
|
325
325
|
* @see expandCollapseButtonVisibility
|
|
326
326
|
*/
|
|
327
327
|
collapseQuestions?: boolean;
|
|
328
|
+
/**
|
|
329
|
+
* Specifies how users navigate categories in the Property Grid.
|
|
330
|
+
*
|
|
331
|
+
* Accepted values:
|
|
332
|
+
*
|
|
333
|
+
* - `"accordion"` (default)
|
|
334
|
+
* The Property Grid displays a stacked list of categories that users can expand or collapse to reveal nested properties.
|
|
335
|
+
*
|
|
336
|
+
* - `"buttons"`
|
|
337
|
+
* The Property Grid displays the properties of a currently selected category. Users can switch between categories using buttons on the right side of the Property Grid.
|
|
338
|
+
*/
|
|
339
|
+
propertyGridNavigationMode?: "buttons" | "accordion";
|
|
328
340
|
}
|
|
@@ -12,6 +12,7 @@ export declare class CreatorResponsivityManager {
|
|
|
12
12
|
private resetMobileView;
|
|
13
13
|
private procesShowToolbox;
|
|
14
14
|
private procesShowPageNavigator;
|
|
15
|
+
private procesShowSurfaceToolbar;
|
|
15
16
|
private findCorrectParent;
|
|
16
17
|
constructor(container: HTMLDivElement, creator: SurveyCreatorModel);
|
|
17
18
|
private _process;
|
|
@@ -219,7 +219,6 @@ export interface ISurveyCreatorOptions {
|
|
|
219
219
|
stopUndoRedoTransaction(): void;
|
|
220
220
|
createSurvey(json: any, reason: string, model?: any, callback?: (survey: SurveyModel) => void, area?: string): SurveyModel;
|
|
221
221
|
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[], variables: string[]): string;
|
|
222
|
-
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
223
222
|
isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean;
|
|
224
223
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
225
224
|
getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
|
|
@@ -283,7 +282,6 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
283
282
|
stopUndoRedoTransaction(): void;
|
|
284
283
|
createSurvey(json: any, reason: string, model?: any, callback?: (survey: SurveyModel) => void, area?: string): SurveyModel;
|
|
285
284
|
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[], variables: string[]): string;
|
|
286
|
-
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
287
285
|
isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean;
|
|
288
286
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
289
287
|
getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
|
|
@@ -81,6 +81,9 @@ export * from "../components/side-bar/tab-control-model";
|
|
|
81
81
|
export * from "../components/switcher/switcher";
|
|
82
82
|
export * from "../utils/events";
|
|
83
83
|
export * from "../utils/utils";
|
|
84
|
+
export * from "../utils/html-element-utils";
|
|
85
|
+
export * from "../utils/color-utils";
|
|
86
|
+
export * from "../utils/creator-utils";
|
|
84
87
|
export { MenuButton } from "../utils/actions";
|
|
85
88
|
export * from "../question-editor/definition";
|
|
86
89
|
export * from "../question-editor/properties";
|
|
@@ -118,7 +118,6 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
118
118
|
private onPanelValueChanged;
|
|
119
119
|
private onUpdateQuestionCssClasses;
|
|
120
120
|
private onValueChanged;
|
|
121
|
-
private setTitle;
|
|
122
121
|
private showTextEditor;
|
|
123
122
|
private showBuilder;
|
|
124
123
|
private getCanShowBuilder;
|