survey-creator-react 1.9.7-beta.1 → 1.9.11-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 +4 -5
- package/survey-creator-react.d.ts +104 -54
- package/survey-creator-react.js +215 -36836
- package/survey-creator-react.min.js +2 -583
- package/survey-creator-react.css +0 -4086
- package/survey-creator-react.min.css +0 -4081
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.11-beta.1",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
"homepage": "https://surveyjs.io/Overview/Survey-Creator",
|
|
15
15
|
"license": "https://surveyjs.io/Licenses#SurveyCreator",
|
|
16
16
|
"files": [
|
|
17
|
-
"survey-creator-react.css",
|
|
18
|
-
"survey-creator-react.min.css",
|
|
19
17
|
"survey-creator-react.js",
|
|
20
18
|
"survey-creator-react.d.ts",
|
|
21
19
|
"survey-creator-react.min.js"
|
|
@@ -33,8 +31,9 @@
|
|
|
33
31
|
"ace-builds": "^1.4.12"
|
|
34
32
|
},
|
|
35
33
|
"dependencies": {
|
|
36
|
-
"survey-core": "^1.
|
|
37
|
-
"survey-react-ui": "^1.
|
|
34
|
+
"survey-core": "^1.9.9",
|
|
35
|
+
"survey-react-ui": "^1.9.9",
|
|
36
|
+
"survey-creator-core": "^1.9.9-beta.1",
|
|
38
37
|
"react": "^17.0.1",
|
|
39
38
|
"react-dom": "^17.0.1"
|
|
40
39
|
},
|
|
@@ -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.11-beta.1
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -7,11 +7,12 @@ import { Base, JsonObjectProperty, Question, ItemValue, MatrixDropdownColumn } f
|
|
|
7
7
|
import { IAction, SurveyModel, Action, QuestionRowModel, PageModel } from "survey-core";
|
|
8
8
|
import { QuestionSelectBase, ImageItemValue, SurveyElement, AdaptiveActionContainer, ActionContainer } from "survey-core";
|
|
9
9
|
import { DragDropSurveyElements, DragDropChoices, Event, IElement, IPanel } from "survey-core";
|
|
10
|
-
import { ISurveyElement, LocalizableString,
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { QuestionPanelDynamicModel, QuestionCommentModel, QuestionRatingModel
|
|
10
|
+
import { ISurveyElement, LocalizableString, DragOrClickHelper, PanelModel, QuestionDropdownModel } from "survey-core";
|
|
11
|
+
import { ListModel, PopupModel, EventBase, PanelModelBase, SurveyError } from "survey-core";
|
|
12
|
+
import { QuestionNonValue, SurveyTemplateRendererTemplateData, ComputedUpdater, ResponsivityManager, QuestionCheckboxModel } from "survey-core";
|
|
13
|
+
import { ILocalizableString, ArrayChanges, VerticalResponsivityManager, HashTable, QuestionMatrixDynamicModel } from "survey-core";
|
|
14
|
+
import { QuestionMatrixModel, QuestionMatrixDropdownModel, QuestionPanelDynamicModel, QuestionCommentModel, QuestionRatingModel } from "survey-core";
|
|
15
|
+
import { MatrixDynamicRowModel } from "survey-core";
|
|
15
16
|
import { SurveyElementBase, ReactSurveyModel, ISurveyCreator, SurveyQuestionElementBase } from "survey-react-ui";
|
|
16
17
|
import * as React from "react";
|
|
17
18
|
|
|
@@ -147,7 +148,7 @@ export interface IPropertyGridEditor {
|
|
|
147
148
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
148
149
|
isDefault?: any;
|
|
149
150
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
150
|
-
showModalPropertyEditor
|
|
151
|
+
showModalPropertyEditor?: any;
|
|
151
152
|
onCreated?: any;
|
|
152
153
|
onAfterRenderQuestion?: any;
|
|
153
154
|
createPropertyEditorSetup?: any;
|
|
@@ -294,7 +295,7 @@ export interface ISurveyCreatorToolboxItemProps {
|
|
|
294
295
|
export interface ISurveyCreatorToolboxProps {
|
|
295
296
|
model: any;
|
|
296
297
|
}
|
|
297
|
-
export interface
|
|
298
|
+
export interface ISidebarComponentProps {
|
|
298
299
|
model: any;
|
|
299
300
|
}
|
|
300
301
|
export interface ISurveyPageNavigatorProps {
|
|
@@ -795,6 +796,16 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
795
796
|
*/
|
|
796
797
|
onTranslationStringVisibility: Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
797
798
|
/*
|
|
799
|
+
* Use this event to define is the locale initially selected (default value) and ready for translaion or it is unselected.
|
|
800
|
+
*
|
|
801
|
+
* The event handler accepts the following arguments:
|
|
802
|
+
*
|
|
803
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
804
|
+
* - `options.locale` - the locale name, like 'en', 'de' and so on.
|
|
805
|
+
* - `options.isSelected` - it is true by default. Set it to false to make the translation unselected.
|
|
806
|
+
*/
|
|
807
|
+
onTranslationLocaleInitiallySelected: Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
808
|
+
/*
|
|
798
809
|
* This callback is used internally for providing survey JSON text.
|
|
799
810
|
*/
|
|
800
811
|
getSurveyJSONTextCallback: any;
|
|
@@ -922,16 +933,20 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
922
933
|
makeNewViewActive(viewName: string): boolean;
|
|
923
934
|
toolbox: QuestionToolbox;
|
|
924
935
|
get toolboxCategories(): any;
|
|
925
|
-
|
|
936
|
+
sidebar: SidebarModel;
|
|
926
937
|
updateToolboxIsCompact(newVal?: boolean): void;
|
|
927
938
|
onSurveyElementPropertyValueChanged(property: JsonObjectProperty, obj: any, newValue: any): void;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
939
|
+
showToolboxValue: boolean;
|
|
940
|
+
get showToolbox(): boolean;
|
|
941
|
+
set showToolbox(val: boolean);
|
|
942
|
+
showSidebarValue: boolean;
|
|
943
|
+
onShowSidebarVisiblityChanged: Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
932
944
|
/*
|
|
933
945
|
* Set this this property grid false to hide the property grid.
|
|
934
946
|
*/
|
|
947
|
+
get showSidebar(): boolean;
|
|
948
|
+
set showSidebar(val: boolean);
|
|
949
|
+
onShowPropertyGridVisiblityChanged: Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
935
950
|
get showPropertyGrid(): boolean;
|
|
936
951
|
set showPropertyGrid(val: boolean);
|
|
937
952
|
rightContainerActiveItem(name: string): void;
|
|
@@ -967,6 +982,10 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
967
982
|
*/
|
|
968
983
|
stopUndoRedoTransaction(): void;
|
|
969
984
|
/*
|
|
985
|
+
* Returns true if Creator is currently doing undo or redo opertaions
|
|
986
|
+
*/
|
|
987
|
+
get isProcessingUndoRedo(): boolean;
|
|
988
|
+
/*
|
|
970
989
|
* This method performs undo uperation if possible.
|
|
971
990
|
*/
|
|
972
991
|
undo(): void;
|
|
@@ -1166,17 +1185,21 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
1166
1185
|
showPageNavigator: any;
|
|
1167
1186
|
showTabs: any;
|
|
1168
1187
|
showToolbar: any;
|
|
1188
|
+
allowCollapseSidebar: any;
|
|
1169
1189
|
isMobileView: any;
|
|
1170
1190
|
toolboxLocation: any;
|
|
1171
|
-
|
|
1191
|
+
sidebarLocation: "left" | "right";
|
|
1172
1192
|
selectFromStringEditor: boolean;
|
|
1173
1193
|
}
|
|
1174
1194
|
export declare class CreatorResponsivityManager {
|
|
1175
1195
|
constructor(container: any, creator: any);
|
|
1176
1196
|
resizeObserver: any;
|
|
1177
1197
|
currentWidth: any;
|
|
1178
|
-
|
|
1198
|
+
prevShowToolbox: any;
|
|
1199
|
+
prevToolboxIsCompact: any;
|
|
1200
|
+
prevShowPageNavigator: any;
|
|
1179
1201
|
screenWidth: any;
|
|
1202
|
+
devicePixelRatio: any;
|
|
1180
1203
|
process(): void;
|
|
1181
1204
|
dispose(): void;
|
|
1182
1205
|
}
|
|
@@ -1206,19 +1229,6 @@ export declare class DesignTimeSurveyModel extends ReactSurveyModel {
|
|
|
1206
1229
|
getRendererForString(element: Base, name: string): string;
|
|
1207
1230
|
getRendererContextForString(element: Base, locStr: LocalizableString): any;
|
|
1208
1231
|
}
|
|
1209
|
-
export declare class DragOrClickHelper {
|
|
1210
|
-
constructor(dragHandler: any);
|
|
1211
|
-
pointerDownEvent: any;
|
|
1212
|
-
currentTarget: any;
|
|
1213
|
-
startX: any;
|
|
1214
|
-
startY: any;
|
|
1215
|
-
currentX: any;
|
|
1216
|
-
currentY: any;
|
|
1217
|
-
itemModel: any;
|
|
1218
|
-
onPointerDown(pointerDownEvent: any, itemModel?: any): void;
|
|
1219
|
-
onPointerUp: any;
|
|
1220
|
-
tryToStartDrag: any;
|
|
1221
|
-
}
|
|
1222
1232
|
export declare class EditableObject {
|
|
1223
1233
|
constructor(obj: Base);
|
|
1224
1234
|
static isCopyObject(obj: any): boolean;
|
|
@@ -1312,6 +1322,19 @@ export declare class JsonEditorBaseModel extends Base {
|
|
|
1312
1322
|
processErrors(text: string): void;
|
|
1313
1323
|
get readOnly(): boolean;
|
|
1314
1324
|
}
|
|
1325
|
+
export declare class LogicActionModelBase {
|
|
1326
|
+
constructor(panel: PanelModel, initialLogicAction: SurveyLogicAction, logicType: SurveyLogicType);
|
|
1327
|
+
initialLogicAction: SurveyLogicAction;
|
|
1328
|
+
logicType: SurveyLogicType;
|
|
1329
|
+
isTrigger: boolean;
|
|
1330
|
+
currentLogicAction: SurveyLogicAction;
|
|
1331
|
+
updateCurrentLogicAction(survey: SurveyModel): boolean;
|
|
1332
|
+
afterUpdateInitialLogicAction(): void;
|
|
1333
|
+
resetElements(): void;
|
|
1334
|
+
getSelectedElement(): string;
|
|
1335
|
+
updateInitialLogicAction(): void;
|
|
1336
|
+
setInitialElementValue(question: QuestionDropdownModel, action: SurveyLogicAction, selectedQuestion: string): void;
|
|
1337
|
+
}
|
|
1315
1338
|
export declare class LogoImageComponent extends SurveyElementBase<ILogoImageComponentProps, any> {
|
|
1316
1339
|
constructor(props: ILogoImageComponentProps);
|
|
1317
1340
|
model: any;
|
|
@@ -1749,8 +1772,8 @@ export declare class SelectionHistory extends Base {
|
|
|
1749
1772
|
selectFromAction(obj: Base, propertyName: string): void;
|
|
1750
1773
|
onObjSelected(obj: Base): void;
|
|
1751
1774
|
}
|
|
1752
|
-
export declare class
|
|
1753
|
-
constructor(props:
|
|
1775
|
+
export declare class SidebarComponent extends SurveyElementBase<ISidebarComponentProps, any> {
|
|
1776
|
+
constructor(props: ISidebarComponentProps);
|
|
1754
1777
|
containerRef: any;
|
|
1755
1778
|
get model(): any;
|
|
1756
1779
|
protected getStateElement(): Base;
|
|
@@ -1759,13 +1782,13 @@ export declare class SideBarComponent extends SurveyElementBase<ISideBarComponen
|
|
|
1759
1782
|
canRender(): boolean;
|
|
1760
1783
|
renderElement(): any;
|
|
1761
1784
|
}
|
|
1762
|
-
export declare class
|
|
1785
|
+
export declare class SidebarModel extends Base {
|
|
1763
1786
|
constructor(creator: any, collapseAction?: any, expandAction?: any);
|
|
1764
1787
|
toolbar: any;
|
|
1765
1788
|
_expandAction: Action;
|
|
1766
1789
|
_collapseAction: Action;
|
|
1767
|
-
_activeTab:
|
|
1768
|
-
|
|
1790
|
+
_activeTab: SidebarTabModel;
|
|
1791
|
+
onSidebarVisibilityChanged: any;
|
|
1769
1792
|
resizeManager: ResizeManager;
|
|
1770
1793
|
tabs: any;
|
|
1771
1794
|
headerText: string;
|
|
@@ -1779,23 +1802,23 @@ export declare class SideBarModel extends Base {
|
|
|
1779
1802
|
get closeText(): string;
|
|
1780
1803
|
getTabById(id: string): any;
|
|
1781
1804
|
getExpandAction(): Action;
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
addTab(id: string, componentName?: string, model?: any, buildActions?: any):
|
|
1805
|
+
collapseSidebar(): void;
|
|
1806
|
+
expandSidebar(): void;
|
|
1807
|
+
addTab(id: string, componentName?: string, model?: any, buildActions?: any): SidebarTabModel;
|
|
1785
1808
|
updateHasVisibleTabs(): void;
|
|
1786
1809
|
dispose(): void;
|
|
1787
1810
|
initResizeManager(container: any): void;
|
|
1788
1811
|
resetResizeManager(): void;
|
|
1789
1812
|
}
|
|
1790
|
-
export declare class
|
|
1813
|
+
export declare class SidebarTab extends SurveyElementBase<any, any> {
|
|
1791
1814
|
constructor(props: any);
|
|
1792
1815
|
protected getStateElement(): Base;
|
|
1793
1816
|
renderElement(): any;
|
|
1794
1817
|
}
|
|
1795
|
-
export declare class
|
|
1796
|
-
constructor(id: string, sidePanel:
|
|
1818
|
+
export declare class SidebarTabModel extends Base {
|
|
1819
|
+
constructor(id: string, sidePanel: SidebarModel, componentName?: string, model?: any);
|
|
1797
1820
|
id: string;
|
|
1798
|
-
sidePanel:
|
|
1821
|
+
sidePanel: SidebarModel;
|
|
1799
1822
|
caption: string;
|
|
1800
1823
|
visible: boolean;
|
|
1801
1824
|
model: any;
|
|
@@ -1807,6 +1830,7 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
1807
1830
|
focusedProgram: boolean;
|
|
1808
1831
|
valueBeforeEdit: string;
|
|
1809
1832
|
errorText: string;
|
|
1833
|
+
focused: boolean;
|
|
1810
1834
|
setLocString(locString: LocalizableString): void;
|
|
1811
1835
|
checkConstraints(event: any): void;
|
|
1812
1836
|
blurEditor: any;
|
|
@@ -1837,7 +1861,7 @@ export declare class SurveyCreatorComponent extends SurveyElementBase<ISurveyCre
|
|
|
1837
1861
|
renderElement(): any;
|
|
1838
1862
|
renderActiveTab(): any;
|
|
1839
1863
|
renderCreatorTab(tab: any): any;
|
|
1840
|
-
|
|
1864
|
+
renderSidebar(): any;
|
|
1841
1865
|
}
|
|
1842
1866
|
export declare class SurveyCreatorToolboxItem extends SurveyElementBase<ISurveyCreatorToolboxItemProps, any> {
|
|
1843
1867
|
constructor(props: any);
|
|
@@ -1970,6 +1994,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
1970
1994
|
protected hasErrorInUI(): boolean;
|
|
1971
1995
|
protected getExpressionText(): string;
|
|
1972
1996
|
protected getEditingActions(): Array<SurveyLogicAction>;
|
|
1997
|
+
protected onReadOnlyChanged(): void;
|
|
1973
1998
|
addNew(): void;
|
|
1974
1999
|
editItem(item: SurveyLogicItem): void;
|
|
1975
2000
|
protected onStartEditing(): void;
|
|
@@ -2404,6 +2429,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
2404
2429
|
availableTranlationsChangedCallback: any;
|
|
2405
2430
|
tranlationChangedCallback: any;
|
|
2406
2431
|
translationStringVisibilityCallback: any;
|
|
2432
|
+
localeInitialVisibleCallback: any;
|
|
2407
2433
|
surveyValue: SurveyModel;
|
|
2408
2434
|
settingsSurveyValue: SurveyModel;
|
|
2409
2435
|
onBaseObjCreatingCallback: any;
|
|
@@ -2517,6 +2543,7 @@ export declare class UndoRedoManager {
|
|
|
2517
2543
|
transactionCounter: number;
|
|
2518
2544
|
startTransaction(name: string): void;
|
|
2519
2545
|
stopTransaction(): void;
|
|
2546
|
+
get isProcessingUndoRedo(): boolean;
|
|
2520
2547
|
canUndo(): boolean;
|
|
2521
2548
|
undo(): void;
|
|
2522
2549
|
canRedo(): boolean;
|
|
@@ -2588,6 +2615,25 @@ export declare class ImageItemValueWrapperViewModel extends ItemValueWrapperView
|
|
|
2588
2615
|
chooseFile(model: ImageItemValueWrapperViewModel): void;
|
|
2589
2616
|
chooseNewFile(model: ImageItemValueWrapperViewModel): void;
|
|
2590
2617
|
}
|
|
2618
|
+
export declare class LogicActionModel extends LogicActionModelBase {
|
|
2619
|
+
constructor(panel: PanelModel, logicAction: SurveyLogicAction, logicType: SurveyLogicType, selectorElementsHash: any);
|
|
2620
|
+
updateCurrentLogicAction(survey: SurveyModel): boolean;
|
|
2621
|
+
resetElements(): void;
|
|
2622
|
+
updatePanelElements(selectedElement: string, choices: any): void;
|
|
2623
|
+
getSelectedElement(): string;
|
|
2624
|
+
}
|
|
2625
|
+
export declare class LogicActionTriggerModel extends LogicActionModelBase {
|
|
2626
|
+
constructor(panel: PanelModel, logicAction: SurveyLogicAction, logicType: SurveyLogicType);
|
|
2627
|
+
panelObj: Base;
|
|
2628
|
+
isTrigger: boolean;
|
|
2629
|
+
afterUpdateInitialLogicAction(): void;
|
|
2630
|
+
updateCurrentLogicAction(survey: SurveyModel): boolean;
|
|
2631
|
+
updatePanel(propertyName: string, newValue: any, options: ISurveyCreatorOptions, survey: SurveyModel): void;
|
|
2632
|
+
setPanelObj(obj: Base): void;
|
|
2633
|
+
resetElements(): void;
|
|
2634
|
+
updatePanelElements(selectedElement: string, options?: ISurveyCreatorOptions): void;
|
|
2635
|
+
getSelectedElement(): string;
|
|
2636
|
+
}
|
|
2591
2637
|
export declare class PageViewModel<T> extends ActionContainerViewModel<T> {
|
|
2592
2638
|
constructor(creator: any, page: PageModel);
|
|
2593
2639
|
isSelected: boolean;
|
|
@@ -2742,6 +2788,7 @@ export declare class SurveyLogicUI extends SurveyLogic {
|
|
|
2742
2788
|
addNewUI(): void;
|
|
2743
2789
|
toggleExpressionEditorIsFastEntry(): void;
|
|
2744
2790
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
2791
|
+
protected onReadOnlyChanged(): void;
|
|
2745
2792
|
get expressionEditor(): ConditionEditor;
|
|
2746
2793
|
get itemEditor(): LogicItemEditor;
|
|
2747
2794
|
getExpressionEditor(item: SurveyLogicItem): ConditionEditor;
|
|
@@ -2765,8 +2812,8 @@ export declare class TabDesignerPlugin<T> implements ICreatorPlugin {
|
|
|
2765
2812
|
constructor(creator: any);
|
|
2766
2813
|
model: any;
|
|
2767
2814
|
propertyGrid: any;
|
|
2768
|
-
propertyGridTab:
|
|
2769
|
-
toolboxTab:
|
|
2815
|
+
propertyGridTab: SidebarTabModel;
|
|
2816
|
+
toolboxTab: SidebarTabModel;
|
|
2770
2817
|
surveySettingsAction: Action;
|
|
2771
2818
|
saveSurveyAction: Action;
|
|
2772
2819
|
previewAction: Action;
|
|
@@ -2825,20 +2872,22 @@ export declare class TabTestPlugin implements ICreatorPlugin {
|
|
|
2825
2872
|
}
|
|
2826
2873
|
export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
2827
2874
|
constructor(creator: any);
|
|
2828
|
-
|
|
2875
|
+
filterStringsAction: Action;
|
|
2829
2876
|
filterPageAction: Action;
|
|
2830
2877
|
mergeLocaleWithDefaultAction: Action;
|
|
2831
2878
|
importCsvAction: Action;
|
|
2832
2879
|
exportCsvAction: Action;
|
|
2833
2880
|
inputFileElement: any;
|
|
2834
2881
|
pagePopupModel: any;
|
|
2835
|
-
|
|
2882
|
+
stringsPopupModel: any;
|
|
2883
|
+
sidebarTab: SidebarTabModel;
|
|
2836
2884
|
model: Translation;
|
|
2837
2885
|
activate(): void;
|
|
2838
2886
|
update(): void;
|
|
2839
2887
|
deactivate(): boolean;
|
|
2840
2888
|
get selectLanguageOptionsCaption(): any;
|
|
2841
2889
|
get showAllStringsText(): string;
|
|
2890
|
+
get showUsedStringsOnlyText(): string;
|
|
2842
2891
|
get showAllPagesText(): string;
|
|
2843
2892
|
get exportToCSVText(): string;
|
|
2844
2893
|
get importFromCSVText(): string;
|
|
@@ -2999,18 +3048,18 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
|
|
|
2999
3048
|
logicTypeChoices: any;
|
|
3000
3049
|
editableItemValue: SurveyLogicItem;
|
|
3001
3050
|
isBuildingPanels: boolean;
|
|
3002
|
-
titleActionsCreator: PropertyGridTitleActionsCreator;
|
|
3003
3051
|
initialSelectedElements: any;
|
|
3004
3052
|
isModifiedValue: boolean;
|
|
3005
3053
|
contextValue: Question;
|
|
3054
|
+
selectorElementsHash: any;
|
|
3006
3055
|
get editableItem(): SurveyLogicItem;
|
|
3007
3056
|
setEditableItem(val: SurveyLogicItem): void;
|
|
3008
3057
|
get survey(): SurveyModel;
|
|
3009
3058
|
get isModified(): boolean;
|
|
3010
3059
|
get panel(): QuestionPanelDynamicModel;
|
|
3011
3060
|
get panels(): any;
|
|
3012
|
-
|
|
3013
|
-
|
|
3061
|
+
getActionModelByPanel(panel: PanelModel): LogicActionModelBase;
|
|
3062
|
+
setActionModelByPanel(panel: PanelModel, actionModel: LogicActionModelBase): void;
|
|
3014
3063
|
get context(): Question;
|
|
3015
3064
|
set context(val: Question);
|
|
3016
3065
|
protected getSurveyJSON(): any;
|
|
@@ -3019,14 +3068,13 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
|
|
|
3019
3068
|
apply(): boolean;
|
|
3020
3069
|
getEditingActions(): Array<SurveyLogicAction>;
|
|
3021
3070
|
getLocString(name: string): string;
|
|
3022
|
-
selectorElementsHash: any;
|
|
3023
3071
|
}
|
|
3024
3072
|
export declare class PropertyGridEditorBindings extends PropertyGridEditor {
|
|
3025
3073
|
constructor();
|
|
3026
3074
|
fit(prop: JsonObjectProperty): boolean;
|
|
3027
3075
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
3028
3076
|
onMatrixCellCreated(obj: Base, options: any): void;
|
|
3029
|
-
|
|
3077
|
+
onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
|
|
3030
3078
|
}
|
|
3031
3079
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
3032
3080
|
constructor();
|
|
@@ -3383,9 +3431,13 @@ export declare var editorLocalization: {
|
|
|
3383
3431
|
};
|
|
3384
3432
|
export declare var defaultStrings: any;
|
|
3385
3433
|
export declare var settings: {
|
|
3386
|
-
|
|
3434
|
+
translation: {
|
|
3387
3435
|
sortByName: boolean,
|
|
3388
3436
|
exportPrefix: string,
|
|
3437
|
+
/*
|
|
3438
|
+
* The maximum number of locales that user can select at once for translation
|
|
3439
|
+
*/
|
|
3440
|
+
maximumSelectedLocales: number,
|
|
3389
3441
|
},
|
|
3390
3442
|
operators: {
|
|
3391
3443
|
empty: any,
|
|
@@ -3411,7 +3463,6 @@ export declare var settings: {
|
|
|
3411
3463
|
*/
|
|
3412
3464
|
questionConvertMode: QuestionConvertMode,
|
|
3413
3465
|
propertyGrid: {
|
|
3414
|
-
allowCollapse: boolean,
|
|
3415
3466
|
useButtonGroup: boolean,
|
|
3416
3467
|
maxCharsInButtonGroup: number,
|
|
3417
3468
|
showNavigationButtons: boolean,
|
|
@@ -3445,6 +3496,7 @@ export declare var settings: {
|
|
|
3445
3496
|
layout: {
|
|
3446
3497
|
showTabs: boolean,
|
|
3447
3498
|
showToolbar: boolean,
|
|
3499
|
+
allowCollapseSidebar: boolean,
|
|
3448
3500
|
},
|
|
3449
3501
|
jsonEditor: {
|
|
3450
3502
|
indentation: number,
|
|
@@ -3580,7 +3632,6 @@ export declare var propertyGridCss: {
|
|
|
3580
3632
|
itemSvgIconId: string,
|
|
3581
3633
|
labelChecked: string,
|
|
3582
3634
|
itemControl: string,
|
|
3583
|
-
itemDecorator: string,
|
|
3584
3635
|
controlLabel: string,
|
|
3585
3636
|
materialDecorator: string,
|
|
3586
3637
|
other: string,
|
|
@@ -3614,7 +3665,6 @@ export declare var propertyGridCss: {
|
|
|
3614
3665
|
svgIconId: string,
|
|
3615
3666
|
label: string,
|
|
3616
3667
|
disabledLabel: string,
|
|
3617
|
-
itemDecorator: string,
|
|
3618
3668
|
materialDecorator: string,
|
|
3619
3669
|
},
|
|
3620
3670
|
text: {
|