survey-creator-react 1.9.7-beta.1 → 1.9.8-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.
- package/package.json +1 -1
- package/survey-creator-react.css +33 -13
- package/survey-creator-react.d.ts +55 -27
- package/survey-creator-react.js +284 -182
- package/survey-creator-react.min.css +31 -11
- package/survey-creator-react.min.js +23 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creator library for React v1.9.
|
|
2
|
+
* Type definition for Survey Creator library for React v1.9.8-beta.1
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -294,7 +294,7 @@ export interface ISurveyCreatorToolboxItemProps {
|
|
|
294
294
|
export interface ISurveyCreatorToolboxProps {
|
|
295
295
|
model: any;
|
|
296
296
|
}
|
|
297
|
-
export interface
|
|
297
|
+
export interface ISidebarComponentProps {
|
|
298
298
|
model: any;
|
|
299
299
|
}
|
|
300
300
|
export interface ISurveyPageNavigatorProps {
|
|
@@ -795,6 +795,16 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
795
795
|
*/
|
|
796
796
|
onTranslationStringVisibility: Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
797
797
|
/*
|
|
798
|
+
* Use this event to define is the locale initially selected (default value) and ready for translaion or it is unselected.
|
|
799
|
+
*
|
|
800
|
+
* The event handler accepts the following arguments:
|
|
801
|
+
*
|
|
802
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
803
|
+
* - `options.locale` - the locale name, like 'en', 'de' and so on.
|
|
804
|
+
* - `options.isSelected` - it is true by default. Set it to false to make the translation unselected.
|
|
805
|
+
*/
|
|
806
|
+
onTranslationLocaleInitiallySelected: Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
807
|
+
/*
|
|
798
808
|
* This callback is used internally for providing survey JSON text.
|
|
799
809
|
*/
|
|
800
810
|
getSurveyJSONTextCallback: any;
|
|
@@ -922,16 +932,20 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
922
932
|
makeNewViewActive(viewName: string): boolean;
|
|
923
933
|
toolbox: QuestionToolbox;
|
|
924
934
|
get toolboxCategories(): any;
|
|
925
|
-
|
|
935
|
+
sidebar: SidebarModel;
|
|
926
936
|
updateToolboxIsCompact(newVal?: boolean): void;
|
|
927
937
|
onSurveyElementPropertyValueChanged(property: JsonObjectProperty, obj: any, newValue: any): void;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
938
|
+
showToolboxValue: boolean;
|
|
939
|
+
get showToolbox(): boolean;
|
|
940
|
+
set showToolbox(val: boolean);
|
|
941
|
+
showSidebarValue: boolean;
|
|
942
|
+
onShowSidebarVisiblityChanged: Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
932
943
|
/*
|
|
933
944
|
* Set this this property grid false to hide the property grid.
|
|
934
945
|
*/
|
|
946
|
+
get showSidebar(): boolean;
|
|
947
|
+
set showSidebar(val: boolean);
|
|
948
|
+
onShowPropertyGridVisiblityChanged: Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
935
949
|
get showPropertyGrid(): boolean;
|
|
936
950
|
set showPropertyGrid(val: boolean);
|
|
937
951
|
rightContainerActiveItem(name: string): void;
|
|
@@ -967,6 +981,10 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
967
981
|
*/
|
|
968
982
|
stopUndoRedoTransaction(): void;
|
|
969
983
|
/*
|
|
984
|
+
* Returns true if Creator is currently doing undo or redo opertaions
|
|
985
|
+
*/
|
|
986
|
+
get isProcessingUndoRedo(): boolean;
|
|
987
|
+
/*
|
|
970
988
|
* This method performs undo uperation if possible.
|
|
971
989
|
*/
|
|
972
990
|
undo(): void;
|
|
@@ -1166,17 +1184,21 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
1166
1184
|
showPageNavigator: any;
|
|
1167
1185
|
showTabs: any;
|
|
1168
1186
|
showToolbar: any;
|
|
1187
|
+
allowCollapseSidebar: any;
|
|
1169
1188
|
isMobileView: any;
|
|
1170
1189
|
toolboxLocation: any;
|
|
1171
|
-
|
|
1190
|
+
sidebarLocation: "left" | "right";
|
|
1172
1191
|
selectFromStringEditor: boolean;
|
|
1173
1192
|
}
|
|
1174
1193
|
export declare class CreatorResponsivityManager {
|
|
1175
1194
|
constructor(container: any, creator: any);
|
|
1176
1195
|
resizeObserver: any;
|
|
1177
1196
|
currentWidth: any;
|
|
1178
|
-
|
|
1197
|
+
prevShowToolbox: any;
|
|
1198
|
+
prevToolboxIsCompact: any;
|
|
1199
|
+
prevShowPageNavigator: any;
|
|
1179
1200
|
screenWidth: any;
|
|
1201
|
+
devicePixelRatio: any;
|
|
1180
1202
|
process(): void;
|
|
1181
1203
|
dispose(): void;
|
|
1182
1204
|
}
|
|
@@ -1749,8 +1771,8 @@ export declare class SelectionHistory extends Base {
|
|
|
1749
1771
|
selectFromAction(obj: Base, propertyName: string): void;
|
|
1750
1772
|
onObjSelected(obj: Base): void;
|
|
1751
1773
|
}
|
|
1752
|
-
export declare class
|
|
1753
|
-
constructor(props:
|
|
1774
|
+
export declare class SidebarComponent extends SurveyElementBase<ISidebarComponentProps, any> {
|
|
1775
|
+
constructor(props: ISidebarComponentProps);
|
|
1754
1776
|
containerRef: any;
|
|
1755
1777
|
get model(): any;
|
|
1756
1778
|
protected getStateElement(): Base;
|
|
@@ -1759,13 +1781,13 @@ export declare class SideBarComponent extends SurveyElementBase<ISideBarComponen
|
|
|
1759
1781
|
canRender(): boolean;
|
|
1760
1782
|
renderElement(): any;
|
|
1761
1783
|
}
|
|
1762
|
-
export declare class
|
|
1784
|
+
export declare class SidebarModel extends Base {
|
|
1763
1785
|
constructor(creator: any, collapseAction?: any, expandAction?: any);
|
|
1764
1786
|
toolbar: any;
|
|
1765
1787
|
_expandAction: Action;
|
|
1766
1788
|
_collapseAction: Action;
|
|
1767
|
-
_activeTab:
|
|
1768
|
-
|
|
1789
|
+
_activeTab: SidebarTabModel;
|
|
1790
|
+
onSidebarVisibilityChanged: any;
|
|
1769
1791
|
resizeManager: ResizeManager;
|
|
1770
1792
|
tabs: any;
|
|
1771
1793
|
headerText: string;
|
|
@@ -1779,23 +1801,23 @@ export declare class SideBarModel extends Base {
|
|
|
1779
1801
|
get closeText(): string;
|
|
1780
1802
|
getTabById(id: string): any;
|
|
1781
1803
|
getExpandAction(): Action;
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
addTab(id: string, componentName?: string, model?: any, buildActions?: any):
|
|
1804
|
+
collapseSidebar(): void;
|
|
1805
|
+
expandSidebar(): void;
|
|
1806
|
+
addTab(id: string, componentName?: string, model?: any, buildActions?: any): SidebarTabModel;
|
|
1785
1807
|
updateHasVisibleTabs(): void;
|
|
1786
1808
|
dispose(): void;
|
|
1787
1809
|
initResizeManager(container: any): void;
|
|
1788
1810
|
resetResizeManager(): void;
|
|
1789
1811
|
}
|
|
1790
|
-
export declare class
|
|
1812
|
+
export declare class SidebarTab extends SurveyElementBase<any, any> {
|
|
1791
1813
|
constructor(props: any);
|
|
1792
1814
|
protected getStateElement(): Base;
|
|
1793
1815
|
renderElement(): any;
|
|
1794
1816
|
}
|
|
1795
|
-
export declare class
|
|
1796
|
-
constructor(id: string, sidePanel:
|
|
1817
|
+
export declare class SidebarTabModel extends Base {
|
|
1818
|
+
constructor(id: string, sidePanel: SidebarModel, componentName?: string, model?: any);
|
|
1797
1819
|
id: string;
|
|
1798
|
-
sidePanel:
|
|
1820
|
+
sidePanel: SidebarModel;
|
|
1799
1821
|
caption: string;
|
|
1800
1822
|
visible: boolean;
|
|
1801
1823
|
model: any;
|
|
@@ -1837,7 +1859,7 @@ export declare class SurveyCreatorComponent extends SurveyElementBase<ISurveyCre
|
|
|
1837
1859
|
renderElement(): any;
|
|
1838
1860
|
renderActiveTab(): any;
|
|
1839
1861
|
renderCreatorTab(tab: any): any;
|
|
1840
|
-
|
|
1862
|
+
renderSidebar(): any;
|
|
1841
1863
|
}
|
|
1842
1864
|
export declare class SurveyCreatorToolboxItem extends SurveyElementBase<ISurveyCreatorToolboxItemProps, any> {
|
|
1843
1865
|
constructor(props: any);
|
|
@@ -2404,6 +2426,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
2404
2426
|
availableTranlationsChangedCallback: any;
|
|
2405
2427
|
tranlationChangedCallback: any;
|
|
2406
2428
|
translationStringVisibilityCallback: any;
|
|
2429
|
+
localeInitialVisibleCallback: any;
|
|
2407
2430
|
surveyValue: SurveyModel;
|
|
2408
2431
|
settingsSurveyValue: SurveyModel;
|
|
2409
2432
|
onBaseObjCreatingCallback: any;
|
|
@@ -2517,6 +2540,7 @@ export declare class UndoRedoManager {
|
|
|
2517
2540
|
transactionCounter: number;
|
|
2518
2541
|
startTransaction(name: string): void;
|
|
2519
2542
|
stopTransaction(): void;
|
|
2543
|
+
get isProcessingUndoRedo(): boolean;
|
|
2520
2544
|
canUndo(): boolean;
|
|
2521
2545
|
undo(): void;
|
|
2522
2546
|
canRedo(): boolean;
|
|
@@ -2765,8 +2789,8 @@ export declare class TabDesignerPlugin<T> implements ICreatorPlugin {
|
|
|
2765
2789
|
constructor(creator: any);
|
|
2766
2790
|
model: any;
|
|
2767
2791
|
propertyGrid: any;
|
|
2768
|
-
propertyGridTab:
|
|
2769
|
-
toolboxTab:
|
|
2792
|
+
propertyGridTab: SidebarTabModel;
|
|
2793
|
+
toolboxTab: SidebarTabModel;
|
|
2770
2794
|
surveySettingsAction: Action;
|
|
2771
2795
|
saveSurveyAction: Action;
|
|
2772
2796
|
previewAction: Action;
|
|
@@ -2832,7 +2856,7 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
2832
2856
|
exportCsvAction: Action;
|
|
2833
2857
|
inputFileElement: any;
|
|
2834
2858
|
pagePopupModel: any;
|
|
2835
|
-
|
|
2859
|
+
sidebarTab: SidebarTabModel;
|
|
2836
2860
|
model: Translation;
|
|
2837
2861
|
activate(): void;
|
|
2838
2862
|
update(): void;
|
|
@@ -3383,9 +3407,13 @@ export declare var editorLocalization: {
|
|
|
3383
3407
|
};
|
|
3384
3408
|
export declare var defaultStrings: any;
|
|
3385
3409
|
export declare var settings: {
|
|
3386
|
-
|
|
3410
|
+
translation: {
|
|
3387
3411
|
sortByName: boolean,
|
|
3388
3412
|
exportPrefix: string,
|
|
3413
|
+
/*
|
|
3414
|
+
* The maximum number of locales that user can select at once for translation
|
|
3415
|
+
*/
|
|
3416
|
+
maximumSelectedLocales: number,
|
|
3389
3417
|
},
|
|
3390
3418
|
operators: {
|
|
3391
3419
|
empty: any,
|
|
@@ -3411,7 +3439,6 @@ export declare var settings: {
|
|
|
3411
3439
|
*/
|
|
3412
3440
|
questionConvertMode: QuestionConvertMode,
|
|
3413
3441
|
propertyGrid: {
|
|
3414
|
-
allowCollapse: boolean,
|
|
3415
3442
|
useButtonGroup: boolean,
|
|
3416
3443
|
maxCharsInButtonGroup: number,
|
|
3417
3444
|
showNavigationButtons: boolean,
|
|
@@ -3445,6 +3472,7 @@ export declare var settings: {
|
|
|
3445
3472
|
layout: {
|
|
3446
3473
|
showTabs: boolean,
|
|
3447
3474
|
showToolbar: boolean,
|
|
3475
|
+
allowCollapseSidebar: boolean,
|
|
3448
3476
|
},
|
|
3449
3477
|
jsonEditor: {
|
|
3450
3478
|
indentation: number,
|