survey-creator-react 1.9.4-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/README.md +3 -3
- package/package.json +1 -1
- package/survey-creator-react.css +274 -188
- package/survey-creator-react.d.ts +169 -109
- package/survey-creator-react.js +2008 -548
- package/survey-creator-react.min.css +272 -186
- package/survey-creator-react.min.js +53 -49
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creator library for React v1.9.
|
|
3
|
-
* Copyright (c) 2015-
|
|
2
|
+
* Type definition for Survey Creator library for React v1.9.8-beta.1
|
|
3
|
+
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
6
6
|
import { Base, JsonObjectProperty, Question, ItemValue, MatrixDropdownColumn } from "survey-core";
|
|
@@ -121,7 +121,10 @@ export interface ISurveyLogicType {
|
|
|
121
121
|
isUniqueItem?: boolean;
|
|
122
122
|
questionNames?: any;
|
|
123
123
|
getDisplayText?: any;
|
|
124
|
-
|
|
124
|
+
getElementName?: any;
|
|
125
|
+
getSelectorChoices?: any;
|
|
126
|
+
supportContext?: any;
|
|
127
|
+
getParentElement(element: Base): Base;
|
|
125
128
|
}
|
|
126
129
|
export interface ISurveyLogicItemOwner {
|
|
127
130
|
survey: SurveyModel;
|
|
@@ -129,7 +132,7 @@ export interface ISurveyLogicItemOwner {
|
|
|
129
132
|
editItem(item: SurveyLogicItem): any;
|
|
130
133
|
removeItem(item: SurveyLogicItem): any;
|
|
131
134
|
getExpressionAsDisplayText(expression: string): string;
|
|
132
|
-
getVisibleLogicTypes():
|
|
135
|
+
getVisibleLogicTypes(): Array<SurveyLogicType>;
|
|
133
136
|
}
|
|
134
137
|
export interface ISurveyQuestionEditorDefinition {
|
|
135
138
|
title?: string;
|
|
@@ -291,7 +294,7 @@ export interface ISurveyCreatorToolboxItemProps {
|
|
|
291
294
|
export interface ISurveyCreatorToolboxProps {
|
|
292
295
|
model: any;
|
|
293
296
|
}
|
|
294
|
-
export interface
|
|
297
|
+
export interface ISidebarComponentProps {
|
|
295
298
|
model: any;
|
|
296
299
|
}
|
|
297
300
|
export interface ISurveyPageNavigatorProps {
|
|
@@ -327,6 +330,7 @@ export declare class ActionContainerViewModel<T> extends Base {
|
|
|
327
330
|
actionContainer: any;
|
|
328
331
|
allowDragging: boolean;
|
|
329
332
|
selectedPropPageFunc: any;
|
|
333
|
+
sidebarFlyoutModeChangedFunc: any;
|
|
330
334
|
protected checkActionProperties(): void;
|
|
331
335
|
dispose(): void;
|
|
332
336
|
protected onElementSelectedChanged(isSelected: boolean): void;
|
|
@@ -351,7 +355,6 @@ export declare class CellQuestionDropdownAdornerComponent extends SurveyElementB
|
|
|
351
355
|
render(): any;
|
|
352
356
|
}
|
|
353
357
|
export declare class ConditionEditorItem {
|
|
354
|
-
constructor();
|
|
355
358
|
conjunction: string;
|
|
356
359
|
questionName: string;
|
|
357
360
|
operator: string;
|
|
@@ -359,7 +362,7 @@ export declare class ConditionEditorItem {
|
|
|
359
362
|
}
|
|
360
363
|
export declare class ConditionEditorItemsBuilder {
|
|
361
364
|
constructor(hasValue?: any);
|
|
362
|
-
build(text: string):
|
|
365
|
+
build(text: string): Array<ConditionEditorItem>;
|
|
363
366
|
}
|
|
364
367
|
/*
|
|
365
368
|
* Base class for Survey Creator.
|
|
@@ -414,7 +417,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
414
417
|
* Setting this property true without having a commercial licence is illegal.
|
|
415
418
|
*/
|
|
416
419
|
haveCommercialLicense: boolean;
|
|
417
|
-
get licenseText():
|
|
420
|
+
get licenseText(): string;
|
|
418
421
|
/*
|
|
419
422
|
* A boolean property, false by default. Set it to true to call protected doSave method automatically on survey changing.
|
|
420
423
|
*/
|
|
@@ -781,14 +784,27 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
781
784
|
*/
|
|
782
785
|
onUploadFile: Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
783
786
|
/*
|
|
784
|
-
* Use this event to modify the list of the strings available in
|
|
785
|
-
*
|
|
786
|
-
*
|
|
787
|
-
*
|
|
788
|
-
*
|
|
787
|
+
* Use this event to modify the list of the strings available in the Translation tab.
|
|
788
|
+
*
|
|
789
|
+
* The event handler accepts the following arguments:
|
|
790
|
+
*
|
|
791
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
792
|
+
* - `options.obj` - A survey object instance (survey, page, panel, question) whose string translations are being edited in the Translation tab.
|
|
793
|
+
* - `options.propertyName` - The name of a property being translated.
|
|
794
|
+
* - `options.visible` - A Boolean value that specifies the property visibility. Set it to `false` to hide the property.
|
|
789
795
|
*/
|
|
790
796
|
onTranslationStringVisibility: Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
791
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
|
+
/*
|
|
792
808
|
* This callback is used internally for providing survey JSON text.
|
|
793
809
|
*/
|
|
794
810
|
getSurveyJSONTextCallback: any;
|
|
@@ -914,19 +930,22 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
914
930
|
* Change the active view/tab. It will return false if it can't change the current tab.
|
|
915
931
|
*/
|
|
916
932
|
makeNewViewActive(viewName: string): boolean;
|
|
917
|
-
static defaultNewSurveyText: string;
|
|
918
933
|
toolbox: QuestionToolbox;
|
|
919
934
|
get toolboxCategories(): any;
|
|
920
|
-
|
|
935
|
+
sidebar: SidebarModel;
|
|
921
936
|
updateToolboxIsCompact(newVal?: boolean): void;
|
|
922
937
|
onSurveyElementPropertyValueChanged(property: JsonObjectProperty, obj: any, newValue: any): void;
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
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>;
|
|
927
943
|
/*
|
|
928
944
|
* Set this this property grid false to hide the property grid.
|
|
929
945
|
*/
|
|
946
|
+
get showSidebar(): boolean;
|
|
947
|
+
set showSidebar(val: boolean);
|
|
948
|
+
onShowPropertyGridVisiblityChanged: Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
930
949
|
get showPropertyGrid(): boolean;
|
|
931
950
|
set showPropertyGrid(val: boolean);
|
|
932
951
|
rightContainerActiveItem(name: string): void;
|
|
@@ -962,6 +981,10 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
962
981
|
*/
|
|
963
982
|
stopUndoRedoTransaction(): void;
|
|
964
983
|
/*
|
|
984
|
+
* Returns true if Creator is currently doing undo or redo opertaions
|
|
985
|
+
*/
|
|
986
|
+
get isProcessingUndoRedo(): boolean;
|
|
987
|
+
/*
|
|
965
988
|
* This method performs undo uperation if possible.
|
|
966
989
|
*/
|
|
967
990
|
undo(): void;
|
|
@@ -1028,8 +1051,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
1028
1051
|
loadSurvey(surveyId: string): void;
|
|
1029
1052
|
protected doClickQuestionCore(element: IElement, modifiedType?: string, index?: number, panel?: IPanel): void;
|
|
1030
1053
|
setNewNames(element: ISurveyElement): void;
|
|
1031
|
-
protected getAllQuestions(): any
|
|
1032
|
-
protected getAllPanels(): any
|
|
1054
|
+
protected getAllQuestions(): Array<any>;
|
|
1055
|
+
protected getAllPanels(): Array<any>;
|
|
1033
1056
|
protected addElements(elements: any, isPanel: boolean, result: any): void;
|
|
1034
1057
|
protected getNewName(type: string, isPanel?: boolean): string;
|
|
1035
1058
|
protected getNewQuestionName(): string;
|
|
@@ -1161,17 +1184,21 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
|
|
|
1161
1184
|
showPageNavigator: any;
|
|
1162
1185
|
showTabs: any;
|
|
1163
1186
|
showToolbar: any;
|
|
1187
|
+
allowCollapseSidebar: any;
|
|
1164
1188
|
isMobileView: any;
|
|
1165
1189
|
toolboxLocation: any;
|
|
1166
|
-
|
|
1190
|
+
sidebarLocation: "left" | "right";
|
|
1167
1191
|
selectFromStringEditor: boolean;
|
|
1168
1192
|
}
|
|
1169
1193
|
export declare class CreatorResponsivityManager {
|
|
1170
1194
|
constructor(container: any, creator: any);
|
|
1171
1195
|
resizeObserver: any;
|
|
1172
1196
|
currentWidth: any;
|
|
1173
|
-
|
|
1197
|
+
prevShowToolbox: any;
|
|
1198
|
+
prevToolboxIsCompact: any;
|
|
1199
|
+
prevShowPageNavigator: any;
|
|
1174
1200
|
screenWidth: any;
|
|
1201
|
+
devicePixelRatio: any;
|
|
1175
1202
|
process(): void;
|
|
1176
1203
|
dispose(): void;
|
|
1177
1204
|
}
|
|
@@ -1505,7 +1532,7 @@ export declare class QuestionAdornerComponent extends SurveyElementBase<Question
|
|
|
1505
1532
|
constructor(props: QuestionAdornerComponentProps);
|
|
1506
1533
|
modelValue: any;
|
|
1507
1534
|
protected rootRef: any;
|
|
1508
|
-
protected createQuestionViewModel():
|
|
1535
|
+
protected createQuestionViewModel(): QuestionAdornerViewModel;
|
|
1509
1536
|
get model(): any;
|
|
1510
1537
|
protected getStateElement(): Base;
|
|
1511
1538
|
protected canRender(): boolean;
|
|
@@ -1517,10 +1544,9 @@ export declare class QuestionAdornerComponent extends SurveyElementBase<Question
|
|
|
1517
1544
|
renderElementPlaceholder(): any;
|
|
1518
1545
|
}
|
|
1519
1546
|
export declare class QuestionConverter {
|
|
1520
|
-
constructor();
|
|
1521
1547
|
static convertInfo: any;
|
|
1522
1548
|
static addConvertInfo(className: string, convertToClassName: string): void;
|
|
1523
|
-
static getConvertToClasses(className: string, availableTypes?: any, includeCurrent?: boolean): any
|
|
1549
|
+
static getConvertToClasses(className: string, availableTypes?: any, includeCurrent?: boolean): Array<any>;
|
|
1524
1550
|
static convertObject(obj: Question, convertToClass: string): Question;
|
|
1525
1551
|
}
|
|
1526
1552
|
export declare class QuestionEditorContentComponent extends React.Component<IQuestionEditorContentComponentProps, any> implements ISurveyCreator {
|
|
@@ -1548,7 +1574,9 @@ export declare class QuestionLinkValueModel extends Question {
|
|
|
1548
1574
|
showClear: boolean;
|
|
1549
1575
|
allowClear: boolean;
|
|
1550
1576
|
showValueInLink: boolean;
|
|
1577
|
+
showTooltip: boolean;
|
|
1551
1578
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
1579
|
+
get tooltip(): string;
|
|
1552
1580
|
getType(): string;
|
|
1553
1581
|
doLinkClick(): void;
|
|
1554
1582
|
doClearClick(): void;
|
|
@@ -1743,8 +1771,8 @@ export declare class SelectionHistory extends Base {
|
|
|
1743
1771
|
selectFromAction(obj: Base, propertyName: string): void;
|
|
1744
1772
|
onObjSelected(obj: Base): void;
|
|
1745
1773
|
}
|
|
1746
|
-
export declare class
|
|
1747
|
-
constructor(props:
|
|
1774
|
+
export declare class SidebarComponent extends SurveyElementBase<ISidebarComponentProps, any> {
|
|
1775
|
+
constructor(props: ISidebarComponentProps);
|
|
1748
1776
|
containerRef: any;
|
|
1749
1777
|
get model(): any;
|
|
1750
1778
|
protected getStateElement(): Base;
|
|
@@ -1753,17 +1781,19 @@ export declare class SideBarComponent extends SurveyElementBase<ISideBarComponen
|
|
|
1753
1781
|
canRender(): boolean;
|
|
1754
1782
|
renderElement(): any;
|
|
1755
1783
|
}
|
|
1756
|
-
export declare class
|
|
1784
|
+
export declare class SidebarModel extends Base {
|
|
1757
1785
|
constructor(creator: any, collapseAction?: any, expandAction?: any);
|
|
1758
1786
|
toolbar: any;
|
|
1759
1787
|
_expandAction: Action;
|
|
1760
1788
|
_collapseAction: Action;
|
|
1761
|
-
_activeTab:
|
|
1762
|
-
|
|
1789
|
+
_activeTab: SidebarTabModel;
|
|
1790
|
+
onSidebarVisibilityChanged: any;
|
|
1763
1791
|
resizeManager: ResizeManager;
|
|
1764
1792
|
tabs: any;
|
|
1765
1793
|
headerText: string;
|
|
1766
1794
|
visible: boolean;
|
|
1795
|
+
collapsedManually: boolean;
|
|
1796
|
+
expandedManually: boolean;
|
|
1767
1797
|
hasVisibleTabs: boolean;
|
|
1768
1798
|
flyoutMode: boolean;
|
|
1769
1799
|
activeTab: string;
|
|
@@ -1771,23 +1801,23 @@ export declare class SideBarModel extends Base {
|
|
|
1771
1801
|
get closeText(): string;
|
|
1772
1802
|
getTabById(id: string): any;
|
|
1773
1803
|
getExpandAction(): Action;
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
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;
|
|
1777
1807
|
updateHasVisibleTabs(): void;
|
|
1778
1808
|
dispose(): void;
|
|
1779
1809
|
initResizeManager(container: any): void;
|
|
1780
1810
|
resetResizeManager(): void;
|
|
1781
1811
|
}
|
|
1782
|
-
export declare class
|
|
1812
|
+
export declare class SidebarTab extends SurveyElementBase<any, any> {
|
|
1783
1813
|
constructor(props: any);
|
|
1784
1814
|
protected getStateElement(): Base;
|
|
1785
1815
|
renderElement(): any;
|
|
1786
1816
|
}
|
|
1787
|
-
export declare class
|
|
1788
|
-
constructor(id: string, sidePanel:
|
|
1817
|
+
export declare class SidebarTabModel extends Base {
|
|
1818
|
+
constructor(id: string, sidePanel: SidebarModel, componentName?: string, model?: any);
|
|
1789
1819
|
id: string;
|
|
1790
|
-
sidePanel:
|
|
1820
|
+
sidePanel: SidebarModel;
|
|
1791
1821
|
caption: string;
|
|
1792
1822
|
visible: boolean;
|
|
1793
1823
|
model: any;
|
|
@@ -1809,12 +1839,12 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
1809
1839
|
onKeyDown(event: any): boolean;
|
|
1810
1840
|
findProperty(): JsonObjectProperty;
|
|
1811
1841
|
get maxLength(): number;
|
|
1842
|
+
placeholderValue: string;
|
|
1812
1843
|
get placeholder(): string;
|
|
1813
1844
|
get contentEditable(): boolean;
|
|
1814
1845
|
className(text: any): string;
|
|
1815
1846
|
}
|
|
1816
1847
|
export declare class StylesManager {
|
|
1817
|
-
constructor();
|
|
1818
1848
|
static get currentTheme(): string;
|
|
1819
1849
|
static set currentTheme(val: string);
|
|
1820
1850
|
static applyTheme(name?: string): void;
|
|
@@ -1829,7 +1859,7 @@ export declare class SurveyCreatorComponent extends SurveyElementBase<ISurveyCre
|
|
|
1829
1859
|
renderElement(): any;
|
|
1830
1860
|
renderActiveTab(): any;
|
|
1831
1861
|
renderCreatorTab(tab: any): any;
|
|
1832
|
-
|
|
1862
|
+
renderSidebar(): any;
|
|
1833
1863
|
}
|
|
1834
1864
|
export declare class SurveyCreatorToolboxItem extends SurveyElementBase<ISurveyCreatorToolboxItemProps, any> {
|
|
1835
1865
|
constructor(props: any);
|
|
@@ -1858,7 +1888,6 @@ export declare class SurveyForTextWorker extends SurveyModel {
|
|
|
1858
1888
|
constructor(jsonObj: any);
|
|
1859
1889
|
}
|
|
1860
1890
|
export declare class SurveyHelper {
|
|
1861
|
-
constructor();
|
|
1862
1891
|
static getNewColumnName(objs: any, keyPropName: string, baseName: string): string | number;
|
|
1863
1892
|
}
|
|
1864
1893
|
export declare class SurveyJSON5 {
|
|
@@ -1889,9 +1918,11 @@ export declare class SurveyLocStringEditor extends SurveyElementBase<any, any> {
|
|
|
1889
1918
|
get errorText(): string;
|
|
1890
1919
|
componentDidMount(): void;
|
|
1891
1920
|
componentWillUnmount(): void;
|
|
1892
|
-
|
|
1921
|
+
onBlur: any;
|
|
1922
|
+
justFocused: boolean;
|
|
1893
1923
|
onFocus: any;
|
|
1894
1924
|
onKeyDown: any;
|
|
1925
|
+
onMouseUp: any;
|
|
1895
1926
|
done: any;
|
|
1896
1927
|
edit: any;
|
|
1897
1928
|
render(): any;
|
|
@@ -1956,11 +1987,11 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
1956
1987
|
renameQuestion(oldName: string, newName: string): void;
|
|
1957
1988
|
removeQuestion(name: string): void;
|
|
1958
1989
|
hasError(): boolean;
|
|
1959
|
-
getUsedQuestions():
|
|
1960
|
-
getUsedActionTypes():
|
|
1990
|
+
getUsedQuestions(): Array<Question>;
|
|
1991
|
+
getUsedActionTypes(): Array<SurveyLogicType>;
|
|
1961
1992
|
protected hasErrorInUI(): boolean;
|
|
1962
1993
|
protected getExpressionText(): string;
|
|
1963
|
-
protected getEditingActions():
|
|
1994
|
+
protected getEditingActions(): Array<SurveyLogicAction>;
|
|
1964
1995
|
addNew(): void;
|
|
1965
1996
|
editItem(item: SurveyLogicItem): void;
|
|
1966
1997
|
protected onStartEditing(): void;
|
|
@@ -1969,12 +2000,12 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
1969
2000
|
removeItem(item: SurveyLogicItem, checkCanRemove?: boolean): void;
|
|
1970
2001
|
addAction(lt: SurveyLogicType, element?: Base): SurveyLogicAction;
|
|
1971
2002
|
addNewAction(): SurveyLogicAction;
|
|
1972
|
-
getVisibleLogicTypes():
|
|
2003
|
+
getVisibleLogicTypes(): Array<SurveyLogicType>;
|
|
1973
2004
|
removeAction(action: SurveyLogicAction): void;
|
|
1974
2005
|
getExpressionAsDisplayText(expression: string): string;
|
|
1975
|
-
protected buildItems(showInUI: boolean):
|
|
1976
|
-
protected getAllElements():
|
|
1977
|
-
protected createLogicTypes():
|
|
2006
|
+
protected buildItems(showInUI: boolean): Array<SurveyLogicItem>;
|
|
2007
|
+
protected getAllElements(): Array<Base>;
|
|
2008
|
+
protected createLogicTypes(): Array<SurveyLogicType>;
|
|
1978
2009
|
}
|
|
1979
2010
|
export declare class SurveyLogicAction {
|
|
1980
2011
|
constructor(logicType: SurveyLogicType, element: Base, survey: SurveyModel);
|
|
@@ -1983,6 +2014,7 @@ export declare class SurveyLogicAction {
|
|
|
1983
2014
|
elementValue: Base;
|
|
1984
2015
|
get logicType(): SurveyLogicType;
|
|
1985
2016
|
get element(): Base;
|
|
2017
|
+
get parentElement(): Base;
|
|
1986
2018
|
get survey(): SurveyModel;
|
|
1987
2019
|
apply(expression: string, isRenaming?: boolean): void;
|
|
1988
2020
|
renameQuestion(oldName: string, newName: string): void;
|
|
@@ -1997,6 +2029,7 @@ export declare class SurveyLogicAction {
|
|
|
1997
2029
|
isSuitableByQuestionName(questionName: string): boolean;
|
|
1998
2030
|
isSuitableByLogicType(logicTypeName: string): boolean;
|
|
1999
2031
|
addQuestionNames(names: any): void;
|
|
2032
|
+
get elementName(): string;
|
|
2000
2033
|
}
|
|
2001
2034
|
export declare class SurveyLogicItem {
|
|
2002
2035
|
constructor(owner: ISurveyLogicItemOwner, expression?: string);
|
|
@@ -2011,9 +2044,8 @@ export declare class SurveyLogicItem {
|
|
|
2011
2044
|
get id(): number;
|
|
2012
2045
|
get name(): string;
|
|
2013
2046
|
get survey(): SurveyModel;
|
|
2014
|
-
getVisibleLogicTypes():
|
|
2015
|
-
|
|
2016
|
-
get actionsText(): string;
|
|
2047
|
+
getVisibleLogicTypes(): Array<SurveyLogicType>;
|
|
2048
|
+
getDisplayText(): any;
|
|
2017
2049
|
edit(): void;
|
|
2018
2050
|
remove(): void;
|
|
2019
2051
|
get isReadOnly(): boolean;
|
|
@@ -2025,11 +2057,12 @@ export declare class SurveyLogicItem {
|
|
|
2025
2057
|
apply(expression: string): void;
|
|
2026
2058
|
renameQuestion(oldName: string, newName: string): void;
|
|
2027
2059
|
removeQuestion(name: string): void;
|
|
2028
|
-
getQuestionNames(): any
|
|
2029
|
-
getActionTypes(): any
|
|
2030
|
-
|
|
2060
|
+
getQuestionNames(): Array<any>;
|
|
2061
|
+
getActionTypes(): Array<any>;
|
|
2062
|
+
getContext(): Base;
|
|
2031
2063
|
get editText(): string;
|
|
2032
2064
|
get deleteText(): string;
|
|
2065
|
+
get ifText(): string;
|
|
2033
2066
|
isSuitable(filteredName: string, logicTypeName?: string): boolean;
|
|
2034
2067
|
}
|
|
2035
2068
|
export declare class SurveyLogicType {
|
|
@@ -2054,12 +2087,16 @@ export declare class SurveyLogicType {
|
|
|
2054
2087
|
get questionNames(): any;
|
|
2055
2088
|
get displayName(): string;
|
|
2056
2089
|
get description(): string;
|
|
2090
|
+
getParentElement(element: Base): Base;
|
|
2091
|
+
get hasSelectorChoices(): boolean;
|
|
2092
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
2057
2093
|
getDisplayText(element: Base): string;
|
|
2058
2094
|
formatElName(name: string): string;
|
|
2059
2095
|
formatExpression(expression: string): string;
|
|
2096
|
+
supportContext(context: Base): boolean;
|
|
2060
2097
|
}
|
|
2061
2098
|
export declare class SurveyLogicTypes {
|
|
2062
|
-
|
|
2099
|
+
static baseTypes: any;
|
|
2063
2100
|
static types: any;
|
|
2064
2101
|
}
|
|
2065
2102
|
export declare class SurveyNavigation extends SurveyElementBase<any, any> {
|
|
@@ -2089,11 +2126,9 @@ export declare class SurveyPageNavigatorItem extends SurveyElementBase<any, any>
|
|
|
2089
2126
|
renderElement(): any;
|
|
2090
2127
|
}
|
|
2091
2128
|
export declare class SurveyQuestionEditorDefinition {
|
|
2092
|
-
constructor();
|
|
2093
2129
|
static definition: any;
|
|
2094
2130
|
}
|
|
2095
2131
|
export declare class SurveyQuestionEditorPropertyDefinition {
|
|
2096
|
-
constructor();
|
|
2097
2132
|
property: JsonObjectProperty;
|
|
2098
2133
|
title: string;
|
|
2099
2134
|
category: string;
|
|
@@ -2102,7 +2137,6 @@ export declare class SurveyQuestionEditorPropertyDefinition {
|
|
|
2102
2137
|
get name(): string;
|
|
2103
2138
|
}
|
|
2104
2139
|
export declare class SurveyQuestionEditorTabDefinition {
|
|
2105
|
-
constructor();
|
|
2106
2140
|
name: string;
|
|
2107
2141
|
title: string;
|
|
2108
2142
|
visible: boolean;
|
|
@@ -2127,8 +2161,8 @@ export declare class SurveyQuestionProperties {
|
|
|
2127
2161
|
get showMode(): string;
|
|
2128
2162
|
get isEmpty(): boolean;
|
|
2129
2163
|
getTabByName(tabName: string): SurveyQuestionEditorTabDefinition;
|
|
2130
|
-
getTabs():
|
|
2131
|
-
getProperties(tab: SurveyQuestionEditorTabDefinition):
|
|
2164
|
+
getTabs(): Array<SurveyQuestionEditorTabDefinition>;
|
|
2165
|
+
getProperties(tab: SurveyQuestionEditorTabDefinition): Array<JsonObjectProperty>;
|
|
2132
2166
|
}
|
|
2133
2167
|
export declare class SurveyResults extends SurveyElementBase<ISurveyResultsProps, any> {
|
|
2134
2168
|
constructor(props: ISurveyResultsProps);
|
|
@@ -2137,12 +2171,16 @@ export declare class SurveyResults extends SurveyElementBase<ISurveyResultsProps
|
|
|
2137
2171
|
render(): any;
|
|
2138
2172
|
renderResultAsText(): any;
|
|
2139
2173
|
renderResultAsTable(): any;
|
|
2140
|
-
|
|
2141
|
-
|
|
2174
|
+
}
|
|
2175
|
+
export declare class SurveyResultsByRow extends SurveyElementBase<any, any> {
|
|
2176
|
+
constructor(props: any);
|
|
2177
|
+
protected getStateElement(): Base;
|
|
2178
|
+
render(): any;
|
|
2142
2179
|
}
|
|
2143
2180
|
export declare class SurveyResultsItemModel extends Base {
|
|
2144
|
-
constructor(_data: any);
|
|
2181
|
+
constructor(_data: any, _lvl: number);
|
|
2145
2182
|
collapsed: boolean;
|
|
2183
|
+
lvl: number;
|
|
2146
2184
|
items: any;
|
|
2147
2185
|
get data(): any;
|
|
2148
2186
|
toggle: any;
|
|
@@ -2152,6 +2190,9 @@ export declare class SurveyResultsItemModel extends Base {
|
|
|
2152
2190
|
get value(): any;
|
|
2153
2191
|
get displayValue(): string;
|
|
2154
2192
|
getString(data: any): string;
|
|
2193
|
+
markerWidth: number;
|
|
2194
|
+
get markerMargin(): string;
|
|
2195
|
+
get textMargin(): string;
|
|
2155
2196
|
}
|
|
2156
2197
|
export declare class SurveyResultsModel extends Base {
|
|
2157
2198
|
constructor(survey: SurveyModel);
|
|
@@ -2164,8 +2205,10 @@ export declare class SurveyResultsModel extends Base {
|
|
|
2164
2205
|
get resultsName(): any;
|
|
2165
2206
|
get resultsValue(): any;
|
|
2166
2207
|
get resultsDisplayValue(): any;
|
|
2167
|
-
|
|
2168
|
-
|
|
2208
|
+
get isTableSelected(): boolean;
|
|
2209
|
+
get isJsonSelected(): boolean;
|
|
2210
|
+
selectTableClick: any;
|
|
2211
|
+
selectJsonClick: any;
|
|
2169
2212
|
}
|
|
2170
2213
|
export declare class SurveySimulator extends SurveyElementBase<any, any> {
|
|
2171
2214
|
constructor(props: any);
|
|
@@ -2210,10 +2253,12 @@ export declare class SvgBundleComponent extends React.Component {
|
|
|
2210
2253
|
export declare class TabDesignerComponent extends SurveyElementBase<ITabDesignerComponentProps, any> {
|
|
2211
2254
|
constructor(props: any);
|
|
2212
2255
|
protected get creator(): any;
|
|
2213
|
-
protected getStateElements():
|
|
2214
|
-
protected renderPages():
|
|
2256
|
+
protected getStateElements(): Array<Base>;
|
|
2257
|
+
protected renderPages(): Array<Element>;
|
|
2215
2258
|
protected renderPage(pageV: PageModel): any;
|
|
2216
2259
|
renderElement(): any;
|
|
2260
|
+
renderPlaceHolder(): any;
|
|
2261
|
+
renderTabContent(): any;
|
|
2217
2262
|
}
|
|
2218
2263
|
export declare class TabDesignerViewModel<T> extends Base {
|
|
2219
2264
|
constructor(creator: any);
|
|
@@ -2224,10 +2269,13 @@ export declare class TabDesignerViewModel<T> extends Base {
|
|
|
2224
2269
|
showNewPage: boolean;
|
|
2225
2270
|
pageCount: number;
|
|
2226
2271
|
withModifier: string;
|
|
2272
|
+
showPlaceholder: boolean;
|
|
2227
2273
|
creator: any;
|
|
2228
2274
|
get survey(): T;
|
|
2229
2275
|
get isToolboxVisible(): boolean;
|
|
2276
|
+
get placeholderText(): string;
|
|
2230
2277
|
initSurvey(): void;
|
|
2278
|
+
onPagesChangedHandler: any;
|
|
2231
2279
|
dispose(): void;
|
|
2232
2280
|
clickDesigner(): void;
|
|
2233
2281
|
getDesignerCss(): string;
|
|
@@ -2335,7 +2383,7 @@ export declare class TestSurveyTabViewModel extends Base {
|
|
|
2335
2383
|
}
|
|
2336
2384
|
export declare class ToolbarActionContainer extends ActionContainer {
|
|
2337
2385
|
constructor(creator: any);
|
|
2338
|
-
protected getRenderedActions():
|
|
2386
|
+
protected getRenderedActions(): Array<Action>;
|
|
2339
2387
|
}
|
|
2340
2388
|
export declare class Toolbox extends SurveyElementBase<ISurveyCreatorToolboxProps, any> {
|
|
2341
2389
|
constructor(props: ISurveyCreatorToolboxProps);
|
|
@@ -2346,7 +2394,7 @@ export declare class Toolbox extends SurveyElementBase<ISurveyCreatorToolboxProp
|
|
|
2346
2394
|
renderItems(items: any): any;
|
|
2347
2395
|
renderCategories(): any;
|
|
2348
2396
|
renderCategoryHeader(category: any): any;
|
|
2349
|
-
protected renderCategoryContent(category: any): any
|
|
2397
|
+
protected renderCategoryContent(category: any): Array<any>;
|
|
2350
2398
|
}
|
|
2351
2399
|
export declare class ToolboxToolViewModel extends Base {
|
|
2352
2400
|
constructor(item: IQuestionToolboxItem, creator: any);
|
|
@@ -2378,6 +2426,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
2378
2426
|
availableTranlationsChangedCallback: any;
|
|
2379
2427
|
tranlationChangedCallback: any;
|
|
2380
2428
|
translationStringVisibilityCallback: any;
|
|
2429
|
+
localeInitialVisibleCallback: any;
|
|
2381
2430
|
surveyValue: SurveyModel;
|
|
2382
2431
|
settingsSurveyValue: SurveyModel;
|
|
2383
2432
|
onBaseObjCreatingCallback: any;
|
|
@@ -2411,7 +2460,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
2411
2460
|
hasLocale(locale: string): boolean;
|
|
2412
2461
|
addLocale(locale: string): void;
|
|
2413
2462
|
resetLocales(): void;
|
|
2414
|
-
getSelectedLocales(): any
|
|
2463
|
+
getSelectedLocales(): Array<any>;
|
|
2415
2464
|
setSelectedLocales(selectedLocales: any): void;
|
|
2416
2465
|
get noStringsText(): string;
|
|
2417
2466
|
exportToCSV(): string;
|
|
@@ -2491,6 +2540,7 @@ export declare class UndoRedoManager {
|
|
|
2491
2540
|
transactionCounter: number;
|
|
2492
2541
|
startTransaction(name: string): void;
|
|
2493
2542
|
stopTransaction(): void;
|
|
2543
|
+
get isProcessingUndoRedo(): boolean;
|
|
2494
2544
|
canUndo(): boolean;
|
|
2495
2545
|
undo(): void;
|
|
2496
2546
|
canRedo(): boolean;
|
|
@@ -2520,10 +2570,9 @@ export declare class AdaptiveToolbox extends Toolbox {
|
|
|
2520
2570
|
componentWillUnmount(): void;
|
|
2521
2571
|
render(): any;
|
|
2522
2572
|
renderItems(items: any, isCompact?: boolean): any;
|
|
2523
|
-
protected renderCategoryContent(category: any): any
|
|
2573
|
+
protected renderCategoryContent(category: any): Array<any>;
|
|
2524
2574
|
}
|
|
2525
2575
|
export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions {
|
|
2526
|
-
constructor();
|
|
2527
2576
|
alwaySaveTextInPropertyEditors: boolean;
|
|
2528
2577
|
readOnly: boolean;
|
|
2529
2578
|
maxLogicItemsInCondition: number;
|
|
@@ -2581,6 +2630,7 @@ export declare class PageViewModel<T> extends ActionContainerViewModel<T> {
|
|
|
2581
2630
|
select(model: any, event: IPortableMouseEvent): void;
|
|
2582
2631
|
get css(): string;
|
|
2583
2632
|
hover(event: any, element: any): void;
|
|
2633
|
+
hoverStopper(event: any, element: any): void;
|
|
2584
2634
|
protected duplicate(): void;
|
|
2585
2635
|
get allowEdit(): boolean;
|
|
2586
2636
|
get addNewQuestionText(): string;
|
|
@@ -2609,7 +2659,7 @@ export declare class PropertyGridEditor implements IPropertyGridEditor {
|
|
|
2609
2659
|
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: any): any;
|
|
2610
2660
|
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
2611
2661
|
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
2612
|
-
|
|
2662
|
+
isSupportGrouping(): boolean;
|
|
2613
2663
|
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
2614
2664
|
}
|
|
2615
2665
|
export declare class QuestionAdornerViewModel extends ActionContainerViewModel<SurveyModel> {
|
|
@@ -2634,7 +2684,7 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
|
|
|
2634
2684
|
onPointerDown(pointerDownEvent: any): void;
|
|
2635
2685
|
startDragSurveyElement: any;
|
|
2636
2686
|
get allowEdit(): boolean;
|
|
2637
|
-
getConvertToTypesActions():
|
|
2687
|
+
getConvertToTypesActions(): Array<IAction>;
|
|
2638
2688
|
protected buildActions(items: any): void;
|
|
2639
2689
|
protected duplicate(): void;
|
|
2640
2690
|
addNewQuestion(): void;
|
|
@@ -2647,7 +2697,7 @@ export declare class QuestionDropdownAdornerComponent extends QuestionAdornerCom
|
|
|
2647
2697
|
}
|
|
2648
2698
|
export declare class QuestionImageAdornerComponent extends QuestionAdornerComponent {
|
|
2649
2699
|
constructor(props: QuestionAdornerComponentProps);
|
|
2650
|
-
protected createQuestionViewModel():
|
|
2700
|
+
protected createQuestionViewModel(): QuestionAdornerViewModel;
|
|
2651
2701
|
get imageModel(): any;
|
|
2652
2702
|
componentDidMount(): void;
|
|
2653
2703
|
protected renderHeader(): any;
|
|
@@ -2655,13 +2705,13 @@ export declare class QuestionImageAdornerComponent extends QuestionAdornerCompon
|
|
|
2655
2705
|
}
|
|
2656
2706
|
export declare class QuestionRatingAdornerComponent extends QuestionAdornerComponent {
|
|
2657
2707
|
constructor(props: QuestionAdornerComponentProps);
|
|
2658
|
-
protected createQuestionViewModel():
|
|
2708
|
+
protected createQuestionViewModel(): QuestionAdornerViewModel;
|
|
2659
2709
|
get ratingModel(): any;
|
|
2660
2710
|
protected renderFooter(): any;
|
|
2661
2711
|
}
|
|
2662
2712
|
export declare class QuestionWidgetAdornerComponent extends QuestionAdornerComponent {
|
|
2663
2713
|
constructor(props: QuestionAdornerComponentProps);
|
|
2664
|
-
protected createQuestionViewModel():
|
|
2714
|
+
protected createQuestionViewModel(): QuestionAdornerViewModel;
|
|
2665
2715
|
get widgetModel(): any;
|
|
2666
2716
|
protected renderElementContent(): any;
|
|
2667
2717
|
}
|
|
@@ -2730,7 +2780,7 @@ export declare class SurveyLogicUI extends SurveyLogic {
|
|
|
2730
2780
|
protected onEditableItemApply(): void;
|
|
2731
2781
|
protected hasErrorInUI(): boolean;
|
|
2732
2782
|
protected getExpressionText(): string;
|
|
2733
|
-
protected getEditingActions():
|
|
2783
|
+
protected getEditingActions(): Array<SurveyLogicAction>;
|
|
2734
2784
|
protected getLogicItemSurveyJSON(): any;
|
|
2735
2785
|
get addNewText(): string;
|
|
2736
2786
|
get emptyTabPlaceHolder(): string;
|
|
@@ -2739,8 +2789,8 @@ export declare class TabDesignerPlugin<T> implements ICreatorPlugin {
|
|
|
2739
2789
|
constructor(creator: any);
|
|
2740
2790
|
model: any;
|
|
2741
2791
|
propertyGrid: any;
|
|
2742
|
-
propertyGridTab:
|
|
2743
|
-
toolboxTab:
|
|
2792
|
+
propertyGridTab: SidebarTabModel;
|
|
2793
|
+
toolboxTab: SidebarTabModel;
|
|
2744
2794
|
surveySettingsAction: Action;
|
|
2745
2795
|
saveSurveyAction: Action;
|
|
2746
2796
|
previewAction: Action;
|
|
@@ -2806,7 +2856,7 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
2806
2856
|
exportCsvAction: Action;
|
|
2807
2857
|
inputFileElement: any;
|
|
2808
2858
|
pagePopupModel: any;
|
|
2809
|
-
|
|
2859
|
+
sidebarTab: SidebarTabModel;
|
|
2810
2860
|
model: Translation;
|
|
2811
2861
|
activate(): void;
|
|
2812
2862
|
update(): void;
|
|
@@ -2917,11 +2967,13 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
2917
2967
|
static canBuildExpression(text: string): boolean;
|
|
2918
2968
|
objectValue: Base;
|
|
2919
2969
|
surveyValue: SurveyModel;
|
|
2970
|
+
contextValue: Question;
|
|
2920
2971
|
panelValue: QuestionPanelDynamicModel;
|
|
2921
2972
|
textEditorValue: QuestionCommentModel;
|
|
2922
2973
|
addConditionQuestionsHash: any;
|
|
2923
2974
|
isModalValue: boolean;
|
|
2924
2975
|
allConditionQuestions: any;
|
|
2976
|
+
onContextChanged: any;
|
|
2925
2977
|
get title(): string;
|
|
2926
2978
|
set title(val: string);
|
|
2927
2979
|
get isModal(): boolean;
|
|
@@ -2931,6 +2983,8 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
2931
2983
|
get text(): string;
|
|
2932
2984
|
set text(val: string);
|
|
2933
2985
|
isModified(prevText: string): boolean;
|
|
2986
|
+
get context(): Question;
|
|
2987
|
+
set context(val: Question);
|
|
2934
2988
|
get survey(): SurveyModel;
|
|
2935
2989
|
get object(): Base;
|
|
2936
2990
|
get panel(): QuestionPanelDynamicModel;
|
|
@@ -2972,6 +3026,7 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
|
|
|
2972
3026
|
titleActionsCreator: PropertyGridTitleActionsCreator;
|
|
2973
3027
|
initialSelectedElements: any;
|
|
2974
3028
|
isModifiedValue: boolean;
|
|
3029
|
+
contextValue: Question;
|
|
2975
3030
|
get editableItem(): SurveyLogicItem;
|
|
2976
3031
|
setEditableItem(val: SurveyLogicItem): void;
|
|
2977
3032
|
get survey(): SurveyModel;
|
|
@@ -2980,13 +3035,15 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
|
|
|
2980
3035
|
get panels(): any;
|
|
2981
3036
|
getPanelByAction(action: SurveyLogicAction): PanelModel;
|
|
2982
3037
|
getActionByPanel(panel: PanelModel): SurveyLogicAction;
|
|
3038
|
+
get context(): Question;
|
|
3039
|
+
set context(val: Question);
|
|
2983
3040
|
protected getSurveyJSON(): any;
|
|
2984
3041
|
protected getSurveyCreationReason(): string;
|
|
2985
3042
|
resetModified(): void;
|
|
2986
3043
|
apply(): boolean;
|
|
2987
|
-
getEditingActions():
|
|
2988
|
-
static elementSelectorTypes: any;
|
|
3044
|
+
getEditingActions(): Array<SurveyLogicAction>;
|
|
2989
3045
|
getLocString(name: string): string;
|
|
3046
|
+
selectorElementsHash: any;
|
|
2990
3047
|
}
|
|
2991
3048
|
export declare class PropertyGridEditorBindings extends PropertyGridEditor {
|
|
2992
3049
|
constructor();
|
|
@@ -2999,7 +3056,7 @@ export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
|
2999
3056
|
constructor();
|
|
3000
3057
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
3001
3058
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
3002
|
-
|
|
3059
|
+
isSupportGrouping(): boolean;
|
|
3003
3060
|
}
|
|
3004
3061
|
export declare class PropertyGridEditorColor extends PropertyGridEditor {
|
|
3005
3062
|
constructor();
|
|
@@ -3033,12 +3090,12 @@ export declare class PropertyGridEditorMatrix extends PropertyGridEditor {
|
|
|
3033
3090
|
protected getDefaultClassName(prop: JsonObjectProperty): string;
|
|
3034
3091
|
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
3035
3092
|
protected getKeyValue(): string;
|
|
3036
|
-
protected getColumnNames(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any
|
|
3093
|
+
protected getColumnNames(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): Array<any>;
|
|
3037
3094
|
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
3038
|
-
protected getPropertiesNames(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any
|
|
3039
|
-
protected getDefinedListProperties(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any
|
|
3040
|
-
protected getDefaultListProperties(prop: JsonObjectProperty): any
|
|
3041
|
-
protected getDefaulColumnNames(): any
|
|
3095
|
+
protected getPropertiesNames(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): Array<any>;
|
|
3096
|
+
protected getDefinedListProperties(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): Array<any>;
|
|
3097
|
+
protected getDefaultListProperties(prop: JsonObjectProperty): Array<any>;
|
|
3098
|
+
protected getDefaulColumnNames(): Array<any>;
|
|
3042
3099
|
protected getObjTypeName(): string;
|
|
3043
3100
|
protected hasDetailPanel(): boolean;
|
|
3044
3101
|
hasPropertiesInDetail: boolean;
|
|
@@ -3062,7 +3119,7 @@ export declare class PropertyGridEditorQuestion extends PropertyGridEditor {
|
|
|
3062
3119
|
constructor();
|
|
3063
3120
|
fit(prop: JsonObjectProperty): boolean;
|
|
3064
3121
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
3065
|
-
protected getQuestions(survey: SurveyModel, obj: Base):
|
|
3122
|
+
protected getQuestions(survey: SurveyModel, obj: Base): Array<Question>;
|
|
3066
3123
|
protected getItemValue(question: Question): any;
|
|
3067
3124
|
}
|
|
3068
3125
|
export declare class PropertyGridEditorStringArray extends PropertyGridEditor {
|
|
@@ -3081,7 +3138,7 @@ export declare class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
|
3081
3138
|
onCreated: any;
|
|
3082
3139
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
3083
3140
|
protected isValueEmpty(val: any): boolean;
|
|
3084
|
-
|
|
3141
|
+
isSupportGrouping(): boolean;
|
|
3085
3142
|
}
|
|
3086
3143
|
export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewModel {
|
|
3087
3144
|
constructor(creator: any, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData, questionRoot: any);
|
|
@@ -3140,7 +3197,7 @@ export declare class PropertyGridEditorMatrixCalculatedValues extends PropertyGr
|
|
|
3140
3197
|
constructor();
|
|
3141
3198
|
fit(prop: JsonObjectProperty): boolean;
|
|
3142
3199
|
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
3143
|
-
protected getDefaulColumnNames(): any
|
|
3200
|
+
protected getDefaulColumnNames(): Array<any>;
|
|
3144
3201
|
protected getKeyValue(): string;
|
|
3145
3202
|
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
3146
3203
|
protected getShowDetailPanelOnAdding(): boolean;
|
|
@@ -3149,7 +3206,7 @@ export declare class PropertyGridEditorMatrixColumns extends PropertyGridEditorM
|
|
|
3149
3206
|
constructor();
|
|
3150
3207
|
fit(prop: JsonObjectProperty): boolean;
|
|
3151
3208
|
protected getEditItemAsStandAlone(): boolean;
|
|
3152
|
-
protected getDefaulColumnNames(): any
|
|
3209
|
+
protected getDefaulColumnNames(): Array<any>;
|
|
3153
3210
|
protected getKeyValue(): string;
|
|
3154
3211
|
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
3155
3212
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
@@ -3158,20 +3215,19 @@ export declare class PropertyGridEditorMatrixColumns extends PropertyGridEditorM
|
|
|
3158
3215
|
export declare class PropertyGridEditorMatrixHtmlConditions extends PropertyGridEditorMatrix {
|
|
3159
3216
|
constructor();
|
|
3160
3217
|
fit(prop: JsonObjectProperty): boolean;
|
|
3161
|
-
protected getDefaulColumnNames(): any
|
|
3218
|
+
protected getDefaulColumnNames(): Array<any>;
|
|
3162
3219
|
protected getShowDetailPanelOnAdding(): boolean;
|
|
3163
3220
|
}
|
|
3164
3221
|
export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEditorMatrix {
|
|
3165
3222
|
constructor();
|
|
3166
3223
|
fit(prop: JsonObjectProperty): boolean;
|
|
3167
3224
|
isPropertyEditorSetupEnabled(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
3168
|
-
setupMatrixQuestion(obj: Base, matrix: QuestionMatrixDynamicModel, prop: JsonObjectProperty): void;
|
|
3169
3225
|
protected getAllowRowDragDrop(): boolean;
|
|
3170
3226
|
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
3171
3227
|
canClearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
3172
3228
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
3173
3229
|
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
3174
|
-
protected getDefaulColumnNames(): any
|
|
3230
|
+
protected getDefaulColumnNames(): Array<any>;
|
|
3175
3231
|
protected getKeyValue(): string;
|
|
3176
3232
|
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
3177
3233
|
protected getEmptyRowsText(prop: any): any;
|
|
@@ -3179,7 +3235,7 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
|
|
|
3179
3235
|
}
|
|
3180
3236
|
export declare class PropertyGridEditorMatrixMultipleTypes extends PropertyGridEditorMatrix {
|
|
3181
3237
|
constructor();
|
|
3182
|
-
protected getChoices(obj: Base): any
|
|
3238
|
+
protected getChoices(obj: Base): Array<any>;
|
|
3183
3239
|
protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: any, options: ISurveyCreatorOptions): any;
|
|
3184
3240
|
onMatrixCellCreated(obj: Base, options: any): void;
|
|
3185
3241
|
onMatrixCellValueChanged(obj: Base, options: any): void;
|
|
@@ -3189,7 +3245,7 @@ export declare class PropertyGridEditorMatrixMutlipleTextItems extends PropertyG
|
|
|
3189
3245
|
constructor();
|
|
3190
3246
|
fit(prop: JsonObjectProperty): boolean;
|
|
3191
3247
|
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
3192
|
-
protected getDefaulColumnNames(): any
|
|
3248
|
+
protected getDefaulColumnNames(): Array<any>;
|
|
3193
3249
|
protected getKeyValue(): string;
|
|
3194
3250
|
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
3195
3251
|
}
|
|
@@ -3198,7 +3254,7 @@ export declare class PropertyGridEditorMatrixPages extends PropertyGridEditorMat
|
|
|
3198
3254
|
fit(prop: JsonObjectProperty): boolean;
|
|
3199
3255
|
onMatrixAllowRemoveRow(obj: Base, row: MatrixDynamicRowModel): boolean;
|
|
3200
3256
|
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
3201
|
-
protected getDefaulColumnNames(): any
|
|
3257
|
+
protected getDefaulColumnNames(): Array<any>;
|
|
3202
3258
|
protected hasDetailPanel(): boolean;
|
|
3203
3259
|
protected getKeyValue(): string;
|
|
3204
3260
|
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
@@ -3207,7 +3263,7 @@ export declare class PropertyGridEditorMatrixPages extends PropertyGridEditorMat
|
|
|
3207
3263
|
export declare class PropertyGridEditorMatrixUrlConditions extends PropertyGridEditorMatrix {
|
|
3208
3264
|
constructor();
|
|
3209
3265
|
fit(prop: JsonObjectProperty): boolean;
|
|
3210
|
-
protected getDefaulColumnNames(): any
|
|
3266
|
+
protected getDefaulColumnNames(): Array<any>;
|
|
3211
3267
|
protected getShowDetailPanelOnAdding(): boolean;
|
|
3212
3268
|
}
|
|
3213
3269
|
export declare class PropertyGridEditorPage extends PropertyGridEditorDropdown {
|
|
@@ -3224,7 +3280,7 @@ export declare class PropertyGridEditorQuestionRestfull extends PropertyGridEdit
|
|
|
3224
3280
|
export declare class PropertyGridEditorQuestionSelectBase extends PropertyGridEditorQuestion {
|
|
3225
3281
|
constructor();
|
|
3226
3282
|
fit(prop: JsonObjectProperty): boolean;
|
|
3227
|
-
protected getQuestions(survey: SurveyModel, obj: Base):
|
|
3283
|
+
protected getQuestions(survey: SurveyModel, obj: Base): Array<Question>;
|
|
3228
3284
|
}
|
|
3229
3285
|
export declare class PropertyGridEditorQuestionValue extends PropertyGridEditorQuestion {
|
|
3230
3286
|
constructor();
|
|
@@ -3290,14 +3346,14 @@ export declare class PropertyGridEditorMatrixTriggers extends PropertyGridEditor
|
|
|
3290
3346
|
fit(prop: JsonObjectProperty): boolean;
|
|
3291
3347
|
protected getObjTypeName(): string;
|
|
3292
3348
|
protected getDefaultClassName(prop: JsonObjectProperty): string;
|
|
3293
|
-
protected getChoices(obj: Base): any
|
|
3349
|
+
protected getChoices(obj: Base): Array<any>;
|
|
3294
3350
|
}
|
|
3295
3351
|
export declare class PropertyGridEditorMatrixValidators extends PropertyGridEditorMatrixMultipleTypes {
|
|
3296
3352
|
constructor();
|
|
3297
3353
|
fit(prop: JsonObjectProperty): boolean;
|
|
3298
3354
|
protected getObjTypeName(): string;
|
|
3299
3355
|
protected getDefaultClassName(prop: JsonObjectProperty): string;
|
|
3300
|
-
protected getChoices(obj: Base): any
|
|
3356
|
+
protected getChoices(obj: Base): Array<any>;
|
|
3301
3357
|
}
|
|
3302
3358
|
export declare class PropertyGridTriggerValueInLogicEditor extends PropertyGridTriggerValueEditor {
|
|
3303
3359
|
constructor();
|
|
@@ -3318,6 +3374,7 @@ export declare function select(element: any): void;
|
|
|
3318
3374
|
export declare function copyObject(dst: any, src: any): void;
|
|
3319
3375
|
export declare function copyCssClasses(dest: any, source: any): void;
|
|
3320
3376
|
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
3377
|
+
export declare function wrapTextByCurlyBraces(text: string): string;
|
|
3321
3378
|
export declare function getLogicString(name: string): any;
|
|
3322
3379
|
export declare function findAction(actions: any, id: string): IAction;
|
|
3323
3380
|
export declare function updateMatrixLogicExpandAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
@@ -3350,9 +3407,13 @@ export declare var editorLocalization: {
|
|
|
3350
3407
|
};
|
|
3351
3408
|
export declare var defaultStrings: any;
|
|
3352
3409
|
export declare var settings: {
|
|
3353
|
-
|
|
3410
|
+
translation: {
|
|
3354
3411
|
sortByName: boolean,
|
|
3355
3412
|
exportPrefix: string,
|
|
3413
|
+
/*
|
|
3414
|
+
* The maximum number of locales that user can select at once for translation
|
|
3415
|
+
*/
|
|
3416
|
+
maximumSelectedLocales: number,
|
|
3356
3417
|
},
|
|
3357
3418
|
operators: {
|
|
3358
3419
|
empty: any,
|
|
@@ -3368,9 +3429,7 @@ export declare var settings: {
|
|
|
3368
3429
|
greaterorequal: any,
|
|
3369
3430
|
lessorequal: any,
|
|
3370
3431
|
},
|
|
3371
|
-
defaultNewSurveyJSON:
|
|
3372
|
-
pages: any,
|
|
3373
|
-
},
|
|
3432
|
+
defaultNewSurveyJSON: any,
|
|
3374
3433
|
logic: {
|
|
3375
3434
|
visibleActions: any,
|
|
3376
3435
|
logicItemTitleMaxChars: number,
|
|
@@ -3380,7 +3439,6 @@ export declare var settings: {
|
|
|
3380
3439
|
*/
|
|
3381
3440
|
questionConvertMode: QuestionConvertMode,
|
|
3382
3441
|
propertyGrid: {
|
|
3383
|
-
allowCollapse: boolean,
|
|
3384
3442
|
useButtonGroup: boolean,
|
|
3385
3443
|
maxCharsInButtonGroup: number,
|
|
3386
3444
|
showNavigationButtons: boolean,
|
|
@@ -3414,6 +3472,7 @@ export declare var settings: {
|
|
|
3414
3472
|
layout: {
|
|
3415
3473
|
showTabs: boolean,
|
|
3416
3474
|
showToolbar: boolean,
|
|
3475
|
+
allowCollapseSidebar: boolean,
|
|
3417
3476
|
},
|
|
3418
3477
|
jsonEditor: {
|
|
3419
3478
|
indentation: number,
|
|
@@ -4537,6 +4596,7 @@ export declare var logicCss: {
|
|
|
4537
4596
|
mainRoot: string,
|
|
4538
4597
|
},
|
|
4539
4598
|
};
|
|
4599
|
+
export declare var initialSettingsAllowShowEmptyTitleInDesignMode: boolean;
|
|
4540
4600
|
export declare var svgBundle: string;
|
|
4541
4601
|
export declare var Version: string;
|
|
4542
4602
|
export declare var editableStringRendererName: any;
|