survey-creator-core 1.9.29 → 1.9.32
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-core.css +42 -16
- package/survey-creator-core.d.ts +192 -112
- package/survey-creator-core.i18n.js +625 -114
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +295 -299
- package/survey-creator-core.min.css +9 -9
- package/survey-creator-core.min.js +2 -2
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.
|
|
2
|
+
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.32
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
6
|
-
import { Base, JsonObjectProperty, Question,
|
|
7
|
-
import {
|
|
6
|
+
import { Base, JsonObjectProperty, Question, SurveyModel, ItemValue } from "survey-core";
|
|
7
|
+
import { MatrixDropdownColumn, IAction, Action, ActionContainer, DragDropSurveyElements } from "survey-core";
|
|
8
8
|
import { DragDropChoices, Event, AdaptiveActionContainer, PageModel, IElement } from "survey-core";
|
|
9
9
|
import { IPanel, ISurveyElement, SurveyElement, QuestionSelectBase, QuestionRowModel } from "survey-core";
|
|
10
10
|
import { LocalizableString, DragOrClickHelper, PanelModel, QuestionDropdownModel, ListModel } from "survey-core";
|
|
11
11
|
import { PopupModel, EventBase, PanelModelBase, QuestionNonValue, SurveyTemplateRendererTemplateData } from "survey-core";
|
|
12
|
-
import { ComputedUpdater, QuestionCheckboxModel, ILocalizableString, ArrayChanges
|
|
13
|
-
import { HashTable, QuestionMatrixDynamicModel, QuestionMatrixModel, QuestionMatrixDropdownModel
|
|
14
|
-
import {
|
|
12
|
+
import { QuestionRatingModel, ComputedUpdater, QuestionCheckboxModel, ILocalizableString, ArrayChanges } from "survey-core";
|
|
13
|
+
import { ImageItemValue, HashTable, QuestionMatrixDynamicModel, QuestionMatrixModel, QuestionMatrixDropdownModel } from "survey-core";
|
|
14
|
+
import { QuestionPanelDynamicModel, QuestionCommentModel, MatrixDynamicRowModel } from "survey-core";
|
|
15
15
|
|
|
16
16
|
export { editorLocalization as localization };
|
|
17
17
|
|
|
@@ -45,6 +45,7 @@ export interface ISurveyCreatorOptions {
|
|
|
45
45
|
getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
|
|
46
46
|
onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
|
|
47
47
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any;
|
|
48
|
+
onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): any;
|
|
48
49
|
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: any): any;
|
|
49
50
|
onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
|
|
50
51
|
onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
|
|
@@ -63,6 +64,42 @@ export interface ISurveyCreatorOptions {
|
|
|
63
64
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
64
65
|
}
|
|
65
66
|
/*
|
|
67
|
+
* Creator options that you can pass in Creator constructor
|
|
68
|
+
*/
|
|
69
|
+
export interface ICreatorOptions {
|
|
70
|
+
showDesignerTab?: boolean;
|
|
71
|
+
showPreviewTab?: boolean;
|
|
72
|
+
showJSONEditorTab?: boolean;
|
|
73
|
+
showLogicTab?: boolean;
|
|
74
|
+
showEmbeddedSurveyTab?: boolean;
|
|
75
|
+
showTranslationTab?: boolean;
|
|
76
|
+
haveCommercialLicense?: boolean;
|
|
77
|
+
isAutoSave?: boolean;
|
|
78
|
+
isRTLValue?: boolean;
|
|
79
|
+
allowEditSurveyTitle?: boolean;
|
|
80
|
+
allowEditExpressionsInTextEditor?: boolean;
|
|
81
|
+
showOptions?: boolean;
|
|
82
|
+
showTitlesInExpressions?: boolean;
|
|
83
|
+
useTabsInElementEditor?: boolean;
|
|
84
|
+
showErrorOnFailedSave?: boolean;
|
|
85
|
+
generateValidJSON?: boolean;
|
|
86
|
+
readOnly?: boolean;
|
|
87
|
+
showPagesInTestSurveyTab?: boolean;
|
|
88
|
+
showPagesInPreviewTab?: boolean;
|
|
89
|
+
showSimulatorInTestSurveyTab?: boolean;
|
|
90
|
+
themeForPreview?: string;
|
|
91
|
+
showSimulatorInPreviewTab?: boolean;
|
|
92
|
+
showDefaultLanguageInPreviewTab?: string | boolean;
|
|
93
|
+
showInvisibleElementsInPreviewTab?: boolean;
|
|
94
|
+
showObjectTitles?: boolean;
|
|
95
|
+
allowModifyPages?: boolean;
|
|
96
|
+
maximumColumnsCount?: number;
|
|
97
|
+
maximumChoicesCount?: number;
|
|
98
|
+
maximumRowsCount?: number;
|
|
99
|
+
maximumRateValues?: number;
|
|
100
|
+
maxLogicItemsInCondition?: number;
|
|
101
|
+
}
|
|
102
|
+
/*
|
|
66
103
|
* The Toolbox item description.
|
|
67
104
|
*/
|
|
68
105
|
export interface IQuestionToolboxItem extends IAction {
|
|
@@ -116,14 +153,14 @@ export interface ISurveyLogicType {
|
|
|
116
153
|
dependedOnPropertyName?: string;
|
|
117
154
|
isInvisible?: boolean;
|
|
118
155
|
showInUI?: boolean;
|
|
119
|
-
showIf?:
|
|
120
|
-
getCollection?: any;
|
|
156
|
+
showIf?: (survey: SurveyModel) => boolean;
|
|
157
|
+
getCollection?: (survey: SurveyModel) => any;
|
|
121
158
|
isUniqueItem?: boolean;
|
|
122
159
|
questionNames?: any;
|
|
123
|
-
getDisplayText?:
|
|
124
|
-
getElementName?:
|
|
125
|
-
getSelectorChoices?: any;
|
|
126
|
-
supportContext?:
|
|
160
|
+
getDisplayText?: (element: Base, formatStr: string, lt: SurveyLogicType) => string;
|
|
161
|
+
getElementName?: (element: Base) => string;
|
|
162
|
+
getSelectorChoices?: (survey: SurveyModel, context: Question) => any;
|
|
163
|
+
supportContext?: (question: Base) => boolean;
|
|
127
164
|
getParentElement(element: Base): Base;
|
|
128
165
|
}
|
|
129
166
|
export interface ISurveyLogicItemOwner {
|
|
@@ -159,20 +196,20 @@ export interface IPropertyGridEditor {
|
|
|
159
196
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
160
197
|
isDefault?: any;
|
|
161
198
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
162
|
-
showModalPropertyEditor?: any;
|
|
163
|
-
onCreated?:
|
|
164
|
-
onAfterRenderQuestion?: any;
|
|
165
|
-
createPropertyEditorSetup?:
|
|
166
|
-
isPropertyEditorSetupEnabled?:
|
|
167
|
-
canClearPropertyValue?:
|
|
168
|
-
clearPropertyValue?:
|
|
169
|
-
onMasterValueChanged?:
|
|
170
|
-
onAddIntoPropertyValue?:
|
|
171
|
-
onMatrixCellCreated?: any;
|
|
172
|
-
onMatrixCellValueChanged?: any;
|
|
173
|
-
onMatrixAllowRemoveRow?: any;
|
|
174
|
-
onGetQuestionTitleActions?: any;
|
|
175
|
-
onUpdateQuestionCssClasses?: any;
|
|
199
|
+
showModalPropertyEditor?: (editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => any;
|
|
200
|
+
onCreated?: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
201
|
+
onAfterRenderQuestion?: (obj: Base, prop: JsonObjectProperty, evtOptions: any) => void;
|
|
202
|
+
createPropertyEditorSetup?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => IPropertyEditorSetup;
|
|
203
|
+
isPropertyEditorSetupEnabled?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => boolean;
|
|
204
|
+
canClearPropertyValue?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => boolean;
|
|
205
|
+
clearPropertyValue?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => void;
|
|
206
|
+
onMasterValueChanged?: (obj: Base, prop: JsonObjectProperty, question: Question) => void;
|
|
207
|
+
onAddIntoPropertyValue?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => void;
|
|
208
|
+
onMatrixCellCreated?: (obj: Base, options: any) => void;
|
|
209
|
+
onMatrixCellValueChanged?: (obj: Base, options: any) => void;
|
|
210
|
+
onMatrixAllowRemoveRow?: (obj: Base, row: any) => boolean;
|
|
211
|
+
onGetQuestionTitleActions?: (obj: Base, options: any) => void;
|
|
212
|
+
onUpdateQuestionCssClasses?: (obj: Base, options: any) => void;
|
|
176
213
|
}
|
|
177
214
|
export interface ITranslationLocales {
|
|
178
215
|
locales: any;
|
|
@@ -180,7 +217,7 @@ export interface ITranslationLocales {
|
|
|
180
217
|
readOnly: boolean;
|
|
181
218
|
getLocaleName(loc: string): string;
|
|
182
219
|
availableTranlationsChangedCallback: any;
|
|
183
|
-
tranlationChangedCallback: any;
|
|
220
|
+
tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
|
|
184
221
|
translateItemAfterRender(item: TranslationItem, el: any, locale: string): any;
|
|
185
222
|
fireOnObjCreating(obj: Base): any;
|
|
186
223
|
removeLocale(loc: string): void;
|
|
@@ -206,9 +243,7 @@ export interface IKeyboardShortcut {
|
|
|
206
243
|
name?: string;
|
|
207
244
|
hotKey: any;
|
|
208
245
|
macOsHotkey?: any;
|
|
209
|
-
execute: any;
|
|
210
|
-
}
|
|
211
|
-
export interface ICreatorOptions {
|
|
246
|
+
execute: (context: any) => void;
|
|
212
247
|
}
|
|
213
248
|
export interface ICreatorPlugin {
|
|
214
249
|
activate: any;
|
|
@@ -248,7 +283,7 @@ export declare class ConditionEditorItem {
|
|
|
248
283
|
value: any;
|
|
249
284
|
}
|
|
250
285
|
export declare class ConditionEditorItemsBuilder {
|
|
251
|
-
constructor(hasValue?:
|
|
286
|
+
constructor(hasValue?: (name: string) => boolean);
|
|
252
287
|
build(text: string): Array<ConditionEditorItem>;
|
|
253
288
|
}
|
|
254
289
|
export declare class CreatorAction extends Action implements ICreatorAction {
|
|
@@ -333,6 +368,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
333
368
|
* You can set this option in creator constructor only
|
|
334
369
|
*/
|
|
335
370
|
get pageEditMode(): "standard" | "single" | "bypage";
|
|
371
|
+
set pageEditMode(val: "standard" | "single" | "bypage");
|
|
336
372
|
surveyValue: SurveyModel;
|
|
337
373
|
get toolbarItems(): any;
|
|
338
374
|
get toolbar(): any;
|
|
@@ -343,7 +379,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
343
379
|
newPanels: any;
|
|
344
380
|
newQuestionChangedNames: any;
|
|
345
381
|
selectionHistoryControllerValue: SelectionHistory;
|
|
346
|
-
saveSurveyFuncValue: any;
|
|
382
|
+
saveSurveyFuncValue: (no: number, onSaveCallback: any, isSuccess: boolean) => any;
|
|
347
383
|
viewType: string;
|
|
348
384
|
/*
|
|
349
385
|
* Returns the current show view name. The possible returns values are:
|
|
@@ -458,6 +494,13 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
458
494
|
onShowingProperty: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
459
495
|
onCanShowProperty: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
460
496
|
/*
|
|
497
|
+
* The event is called after a survey that represents the Property Grid is created and all its questions (property editors) are setup.
|
|
498
|
+
* You can use this event to modify this survey to change the property grid behavior
|
|
499
|
+
* <br/> options.obj the survey object that is currently editing in the property grid
|
|
500
|
+
* <br/> options.survey the property grid survey
|
|
501
|
+
*/
|
|
502
|
+
onPropertyGridSurveyCreated: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
503
|
+
/*
|
|
461
504
|
* The event is called after a property editor (in fact a survey question) has been created and all it's properties have been assign.
|
|
462
505
|
* You can use this event to modify the property editor properties or set event handlers to customize it's behavior
|
|
463
506
|
* <br/> options.obj the survey object that is currently editing in the property grid
|
|
@@ -556,16 +599,29 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
556
599
|
*/
|
|
557
600
|
onPropertyValidationCustomError: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
558
601
|
/*
|
|
559
|
-
*
|
|
560
|
-
*
|
|
561
|
-
*
|
|
562
|
-
*
|
|
563
|
-
*
|
|
564
|
-
*
|
|
565
|
-
*
|
|
602
|
+
* An event that is raised each time a user edits a survey object property.
|
|
603
|
+
* Use this event to correct or validate the property value while the user enters it.
|
|
604
|
+
*
|
|
605
|
+
* The event handler accepts the following arguments:
|
|
606
|
+
*
|
|
607
|
+
* - `sender`- A Survey Creator instance that raised the event.
|
|
608
|
+
* - `options.obj` - A survey object instance (question or panel) whose property is being edited.
|
|
609
|
+
* - `options.propertyName` - The name of the property.
|
|
610
|
+
* - `options.value` - A property value entered by a user.
|
|
611
|
+
* - `options.newValue` - A corrected property value. Specify this field if you want to override the `options.value`.
|
|
612
|
+
* - `options.doValidation` - Enable this field to validate the property value while the user enters it.
|
|
566
613
|
*/
|
|
567
614
|
onPropertyValueChanging: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
568
615
|
/*
|
|
616
|
+
* An event that is raised after a property in a survey object has changed.
|
|
617
|
+
*
|
|
618
|
+
* - `sender`- A Survey Creator instance that raised the event.
|
|
619
|
+
* - `options.obj` - A survey object instance (question or panel) whose property has changed.
|
|
620
|
+
* - `options.propertyName` - The name of the property.
|
|
621
|
+
* - `options.value` - A new property value.
|
|
622
|
+
*/
|
|
623
|
+
onSurveyPropertyValueChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
624
|
+
/*
|
|
569
625
|
* Use this event to modify the list (name and titles) of the questions available in a condition editor.
|
|
570
626
|
* <br/> sender the survey creator object that fires the event
|
|
571
627
|
* <br/> options.obj the survey object which property is edited in the Property Editor.
|
|
@@ -738,7 +794,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
738
794
|
/*
|
|
739
795
|
* This callback is used internally for setting survey JSON text.
|
|
740
796
|
*/
|
|
741
|
-
setSurveyJSONTextCallback:
|
|
797
|
+
setSurveyJSONTextCallback: (text: string) => void;
|
|
742
798
|
/*
|
|
743
799
|
* You need to set this property to true if you want to use tabs instead of accordion in the popup element's editor.
|
|
744
800
|
*/
|
|
@@ -947,7 +1003,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
947
1003
|
addPage(pagetoAdd?: PageModel): PageModel;
|
|
948
1004
|
protected initTabs(): void;
|
|
949
1005
|
getOptions(): ICreatorOptions;
|
|
950
|
-
protected setOptions(options:
|
|
1006
|
+
protected setOptions(options: ICreatorOptions): void;
|
|
951
1007
|
isCanModifyProperty(obj: Base, propertyName: string): boolean;
|
|
952
1008
|
onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
|
|
953
1009
|
/*
|
|
@@ -987,6 +1043,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
987
1043
|
onStateChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
988
1044
|
notifier: Notifier;
|
|
989
1045
|
setModified(options?: any): void;
|
|
1046
|
+
notifySurveyPropertyChanged(options: any): void;
|
|
990
1047
|
/*
|
|
991
1048
|
* This function triggers user notification (via the alert() function if no onNotify event handler added).
|
|
992
1049
|
*/
|
|
@@ -1069,14 +1126,14 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1069
1126
|
/*
|
|
1070
1127
|
* Open file chooser dialog
|
|
1071
1128
|
*/
|
|
1072
|
-
chooseFiles(input: any, onFilesChosen: any): void;
|
|
1129
|
+
chooseFiles(input: any, onFilesChosen: (files: any) => void): void;
|
|
1073
1130
|
/*
|
|
1074
1131
|
* Upload the files on a server
|
|
1075
1132
|
*/
|
|
1076
|
-
uploadFiles(files: any, uploadingCallback: any): void;
|
|
1133
|
+
uploadFiles(files: any, uploadingCallback: (status: string, data: any) => any): void;
|
|
1077
1134
|
initKeyboardShortcuts(rootNode: any): void;
|
|
1078
1135
|
removeKeyboardShortcuts(rootNode: any): void;
|
|
1079
|
-
protected onKeyDownHandler: any;
|
|
1136
|
+
protected onKeyDownHandler: (event: any) => void;
|
|
1080
1137
|
shortcuts: any;
|
|
1081
1138
|
registerShortcut(name: string, shortcut: IKeyboardShortcut): void;
|
|
1082
1139
|
unRegisterShortcut(name: string): void;
|
|
@@ -1089,6 +1146,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1089
1146
|
get alwaySaveTextInPropertyEditors(): boolean;
|
|
1090
1147
|
set alwaySaveTextInPropertyEditors(val: boolean);
|
|
1091
1148
|
onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
|
|
1149
|
+
onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): void;
|
|
1092
1150
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
|
|
1093
1151
|
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: any): void;
|
|
1094
1152
|
onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
|
|
@@ -1120,8 +1178,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1120
1178
|
convertCurrentQuestion(newType: string): void;
|
|
1121
1179
|
getAddNewQuestionText(currentAddQuestionType?: string): any;
|
|
1122
1180
|
get addNewQuestionText(): any;
|
|
1123
|
-
getQuestionTypeSelectorModel(beforeAdd:
|
|
1124
|
-
addNewQuestionInPage(beforeAdd: any, panel?: IPanel, type?: string): void;
|
|
1181
|
+
getQuestionTypeSelectorModel(beforeAdd: (type: string) => void, panel?: IPanel): any;
|
|
1182
|
+
addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
|
|
1125
1183
|
createIActionBarItemByClass(className: string, title: string, iconName: string): Action;
|
|
1126
1184
|
onElementMenuItemsChanged(element: any, items: any): void;
|
|
1127
1185
|
getElementAllowOperations(element: SurveyElement): any;
|
|
@@ -1147,8 +1205,7 @@ export declare class CreatorResponsivityManager {
|
|
|
1147
1205
|
currentWidth: any;
|
|
1148
1206
|
prevShowToolbox: any;
|
|
1149
1207
|
prevShowPageNavigator: any;
|
|
1150
|
-
|
|
1151
|
-
devicePixelRatio: any;
|
|
1208
|
+
static screenSizeBreakpoints: any;
|
|
1152
1209
|
process(): void;
|
|
1153
1210
|
dispose(): void;
|
|
1154
1211
|
}
|
|
@@ -1244,7 +1301,7 @@ export declare class ItemValueWrapperViewModel extends Base {
|
|
|
1244
1301
|
allowItemOperations: ICollectionItemAllowOperations;
|
|
1245
1302
|
canTouchItems: boolean;
|
|
1246
1303
|
onPointerDown(pointerDownEvent: any): void;
|
|
1247
|
-
startDragItemValue: any;
|
|
1304
|
+
startDragItemValue: (pointerDownEvent: any, currentTarget: any) => void;
|
|
1248
1305
|
dispose(): void;
|
|
1249
1306
|
handleDragDropGhostPositionChanged: any;
|
|
1250
1307
|
get isDraggable(): boolean;
|
|
@@ -1304,7 +1361,7 @@ export declare class MatrixCellWrapperViewModel extends Base {
|
|
|
1304
1361
|
row: any;
|
|
1305
1362
|
column: any;
|
|
1306
1363
|
isSelected: boolean;
|
|
1307
|
-
onSelectionChanged: any;
|
|
1364
|
+
onSelectionChanged: (sender: any, options: any) => void;
|
|
1308
1365
|
editQuestion(model: MatrixCellWrapperViewModel): void;
|
|
1309
1366
|
get context(): any;
|
|
1310
1367
|
selectContext(model: MatrixCellWrapperViewModel, event: any): void;
|
|
@@ -1321,7 +1378,7 @@ export declare class Notifier extends Base {
|
|
|
1321
1378
|
notify(message: string, type?: "info" | "error"): void;
|
|
1322
1379
|
}
|
|
1323
1380
|
export declare class ObjectSelector {
|
|
1324
|
-
constructor(creator: CreatorBase, survey: SurveyModel, getObjectDisplayName?:
|
|
1381
|
+
constructor(creator: CreatorBase, survey: SurveyModel, getObjectDisplayName?: (obj: Base, reason: string, displayName: string) => string);
|
|
1325
1382
|
surveyValue: SurveyModel;
|
|
1326
1383
|
deepestLevel: number;
|
|
1327
1384
|
filteredTextInLow: string;
|
|
@@ -1340,12 +1397,12 @@ export declare class ObjectSelectorItem extends Action {
|
|
|
1340
1397
|
hasText(filteredTextInLow: string): boolean;
|
|
1341
1398
|
}
|
|
1342
1399
|
export declare class ObjectSelectorModel extends Base {
|
|
1343
|
-
constructor(creator: CreatorBase, getObjectDisplayName?:
|
|
1400
|
+
constructor(creator: CreatorBase, getObjectDisplayName?: (obj: Base, reason: string, displayName: string) => string);
|
|
1344
1401
|
selector: ObjectSelector;
|
|
1345
1402
|
listModelValue: ListModel;
|
|
1346
1403
|
isVisible: boolean;
|
|
1347
1404
|
get list(): ListModel;
|
|
1348
|
-
show(survey: SurveyModel, selectedObj: Base, onClose:
|
|
1405
|
+
show(survey: SurveyModel, selectedObj: Base, onClose: (obj: Base) => void): void;
|
|
1349
1406
|
refresh(): void;
|
|
1350
1407
|
}
|
|
1351
1408
|
export declare class PageNavigatorViewModel extends Base {
|
|
@@ -1353,8 +1410,8 @@ export declare class PageNavigatorViewModel extends Base {
|
|
|
1353
1410
|
icon: string;
|
|
1354
1411
|
pageListModel: ListModel;
|
|
1355
1412
|
popupModel: any;
|
|
1356
|
-
pagesChangedFunc: any;
|
|
1357
|
-
currentPagesChangedFunc: any;
|
|
1413
|
+
pagesChangedFunc: (sender: PagesController, options: any) => void;
|
|
1414
|
+
currentPagesChangedFunc: (sender: PagesController, options: any) => void;
|
|
1358
1415
|
dispose(): void;
|
|
1359
1416
|
items: any;
|
|
1360
1417
|
visible: boolean;
|
|
@@ -1370,7 +1427,7 @@ export declare class PagesController extends Base {
|
|
|
1370
1427
|
creator: ICreatorSelectionOwner;
|
|
1371
1428
|
onPagesChanged: EventBase<PagesController>;
|
|
1372
1429
|
onCurrentPageChanged: EventBase<PagesController>;
|
|
1373
|
-
currentPageChangedFunc: any;
|
|
1430
|
+
currentPageChangedFunc: (sender: SurveyModel, options: any) => any;
|
|
1374
1431
|
surveyValue: SurveyModel;
|
|
1375
1432
|
page2Display: PageModel;
|
|
1376
1433
|
get survey(): SurveyModel;
|
|
@@ -1394,7 +1451,7 @@ export declare class PropertyGridModel {
|
|
|
1394
1451
|
currentlySelectedProperty: string;
|
|
1395
1452
|
currentlySelectedPanel: PanelModel;
|
|
1396
1453
|
objValueChangedCallback: any;
|
|
1397
|
-
changedFromActionCallback:
|
|
1454
|
+
changedFromActionCallback: (obj: Base, propertyName: string) => void;
|
|
1398
1455
|
refresh(): void;
|
|
1399
1456
|
get obj(): Base;
|
|
1400
1457
|
set obj(val: Base);
|
|
@@ -1466,6 +1523,19 @@ export declare class QuestionLinkValueModel extends Question {
|
|
|
1466
1523
|
doLinkClick(): void;
|
|
1467
1524
|
doClearClick(): void;
|
|
1468
1525
|
}
|
|
1526
|
+
export declare class QuestionRatingAdornerViewModel extends Base {
|
|
1527
|
+
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
1528
|
+
creator: CreatorBase;
|
|
1529
|
+
surveyElement: SurveyElement;
|
|
1530
|
+
templateData: SurveyTemplateRendererTemplateData;
|
|
1531
|
+
get element(): QuestionRatingModel;
|
|
1532
|
+
addItem(model: QuestionRatingAdornerViewModel): void;
|
|
1533
|
+
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
1534
|
+
get allowAdd(): boolean;
|
|
1535
|
+
get allowRemove(): boolean;
|
|
1536
|
+
get addTooltip(): string;
|
|
1537
|
+
get removeTooltip(): string;
|
|
1538
|
+
}
|
|
1469
1539
|
/*
|
|
1470
1540
|
* The list of Toolbox items.
|
|
1471
1541
|
*/
|
|
@@ -1476,7 +1546,6 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1476
1546
|
static defaultIconName: string;
|
|
1477
1547
|
_orderedQuestions: any;
|
|
1478
1548
|
static getQuestionDefaultSettings(questionType: string): any;
|
|
1479
|
-
static _questionDefaultSettings: any;
|
|
1480
1549
|
/*
|
|
1481
1550
|
* Modify this array to change the toolbox items order.
|
|
1482
1551
|
*/
|
|
@@ -1631,9 +1700,9 @@ export declare class ResizeManager {
|
|
|
1631
1700
|
mouseDevice: "mouse" | "pointer" | "touch";
|
|
1632
1701
|
events: any;
|
|
1633
1702
|
setHandles(newVal: string): void;
|
|
1634
|
-
onMouseDownListener: any;
|
|
1635
|
-
resize: any;
|
|
1636
|
-
stopResize: any;
|
|
1703
|
+
onMouseDownListener: (e: any) => void;
|
|
1704
|
+
resize: (e: any) => void;
|
|
1705
|
+
stopResize: (e: any) => void;
|
|
1637
1706
|
dispose(): void;
|
|
1638
1707
|
}
|
|
1639
1708
|
export declare class RowViewModel extends Base {
|
|
@@ -1729,8 +1798,8 @@ export declare class SurveyElementAdornerBase<T extends SurveyElement = SurveyEl
|
|
|
1729
1798
|
creator: CreatorBase;
|
|
1730
1799
|
actionContainer: any;
|
|
1731
1800
|
allowDragging: boolean;
|
|
1732
|
-
selectedPropPageFunc: any;
|
|
1733
|
-
sidebarFlyoutModeChangedFunc: any;
|
|
1801
|
+
selectedPropPageFunc: (sender: Base, options: any) => void;
|
|
1802
|
+
sidebarFlyoutModeChangedFunc: (sender: Base, options: any) => void;
|
|
1734
1803
|
protected detachElement(surveyElement: T): void;
|
|
1735
1804
|
protected attachElement(surveyElement: T): void;
|
|
1736
1805
|
protected setSurveyElement(surveyElement: T): void;
|
|
@@ -1803,7 +1872,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
1803
1872
|
static set visibleActions(val: any);
|
|
1804
1873
|
static get types(): any;
|
|
1805
1874
|
invisibleItems: any;
|
|
1806
|
-
onChangedCallback:
|
|
1875
|
+
onChangedCallback: (item: SurveyLogicItem, changeType: string) => void;
|
|
1807
1876
|
/*
|
|
1808
1877
|
* The event is called when logic item is saved.
|
|
1809
1878
|
* <br/> options.item is the saved logic item.
|
|
@@ -2048,8 +2117,8 @@ export declare class SurveySimulatorModel extends Base {
|
|
|
2048
2117
|
get zoomScale(): number;
|
|
2049
2118
|
activateZoom: any;
|
|
2050
2119
|
deactivateZoom: any;
|
|
2051
|
-
listenTryToZoomWithWheel: any;
|
|
2052
|
-
listenTryToZoom: any;
|
|
2120
|
+
listenTryToZoomWithWheel: (e: any) => boolean;
|
|
2121
|
+
listenTryToZoom: (e: any) => boolean;
|
|
2053
2122
|
tryToZoom(data: any, event: any): boolean;
|
|
2054
2123
|
resetZoomParameters(): void;
|
|
2055
2124
|
get activeDevice(): string;
|
|
@@ -2074,8 +2143,8 @@ export declare class SurveyTextWorker {
|
|
|
2074
2143
|
export declare class TabDesignerViewModel extends Base {
|
|
2075
2144
|
constructor(creator: CreatorBase);
|
|
2076
2145
|
widthUpdater: any;
|
|
2077
|
-
checkNewPageHandler: any;
|
|
2078
|
-
surveyOnPropertyChanged: any;
|
|
2146
|
+
checkNewPageHandler: (sender: SurveyModel, options: any) => void;
|
|
2147
|
+
surveyOnPropertyChanged: (sender: SurveyModel, options: any) => void;
|
|
2079
2148
|
pagesControllerValue: PagesController;
|
|
2080
2149
|
newPage: PageModel;
|
|
2081
2150
|
showNewPage: boolean;
|
|
@@ -2105,7 +2174,7 @@ export declare class TestSurveyTabViewModel extends Base {
|
|
|
2105
2174
|
nextPageAction: Action;
|
|
2106
2175
|
selectPageAction: Action;
|
|
2107
2176
|
pagePopupModel: any;
|
|
2108
|
-
onSurveyCreatedCallback: any;
|
|
2177
|
+
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
2109
2178
|
simulator: SurveySimulatorModel;
|
|
2110
2179
|
showInvisibleElements: any;
|
|
2111
2180
|
showPagesInTestSurveyTab: any;
|
|
@@ -2134,12 +2203,12 @@ export declare class ToolbarActionContainer extends ActionContainer {
|
|
|
2134
2203
|
export declare class ToolboxToolViewModel extends Base {
|
|
2135
2204
|
constructor(item: IQuestionToolboxItem, creator: CreatorBase);
|
|
2136
2205
|
dragOrClickHelper: DragOrClickHelper;
|
|
2137
|
-
click: any;
|
|
2206
|
+
click: (event: any) => void;
|
|
2138
2207
|
get allowAdd(): boolean;
|
|
2139
2208
|
onPointerDown(pointerDownEvent: any): boolean;
|
|
2140
2209
|
_node: any;
|
|
2141
|
-
onPointerUp: any;
|
|
2142
|
-
startDragToolboxItem: any;
|
|
2210
|
+
onPointerUp: (pointerUpEvent: any) => void;
|
|
2211
|
+
startDragToolboxItem: (pointerDownEvent: any, currentTarget: any) => boolean;
|
|
2143
2212
|
}
|
|
2144
2213
|
export declare class Transaction {
|
|
2145
2214
|
constructor(_name: string);
|
|
@@ -2157,14 +2226,14 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
2157
2226
|
exportToCSVFileUI: any;
|
|
2158
2227
|
importFromCSVFileUI: any;
|
|
2159
2228
|
importFinishedCallback: any;
|
|
2160
|
-
translateItemAfterRenderCallback: any;
|
|
2229
|
+
translateItemAfterRenderCallback: (item: TranslationItem, el: any, locale: string) => void;
|
|
2161
2230
|
availableTranlationsChangedCallback: any;
|
|
2162
|
-
tranlationChangedCallback: any;
|
|
2163
|
-
translationStringVisibilityCallback:
|
|
2164
|
-
localeInitialVisibleCallback:
|
|
2231
|
+
tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
|
|
2232
|
+
translationStringVisibilityCallback: (obj: Base, propertyName: string, visible: boolean) => boolean;
|
|
2233
|
+
localeInitialVisibleCallback: (locale: string) => boolean;
|
|
2165
2234
|
surveyValue: SurveyModel;
|
|
2166
2235
|
settingsSurveyValue: SurveyModel;
|
|
2167
|
-
onBaseObjCreatingCallback:
|
|
2236
|
+
onBaseObjCreatingCallback: (obj: Base) => void;
|
|
2168
2237
|
chooseLanguagePopupModel: any;
|
|
2169
2238
|
chooseLanguageActions: any;
|
|
2170
2239
|
getType(): string;
|
|
@@ -2178,11 +2247,12 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
2178
2247
|
stringsSurvey: SurveyModel;
|
|
2179
2248
|
stringsHeaderSurvey: SurveyModel;
|
|
2180
2249
|
isEmpty: boolean;
|
|
2181
|
-
makeObservable(onBaseObjCreating:
|
|
2250
|
+
makeObservable(onBaseObjCreating: (obj: Base) => void): void;
|
|
2182
2251
|
fireOnObjCreating(obj: Base): void;
|
|
2183
2252
|
get settingsSurvey(): SurveyModel;
|
|
2184
2253
|
get localesQuestion(): QuestionCheckboxModel;
|
|
2185
2254
|
protected createSettingsSurvey(): SurveyModel;
|
|
2255
|
+
isChooseLanguageEnabled: boolean;
|
|
2186
2256
|
getSurveyLocales(): any;
|
|
2187
2257
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
2188
2258
|
get survey(): SurveyModel;
|
|
@@ -2281,7 +2351,7 @@ export declare class UndoRedoManager {
|
|
|
2281
2351
|
redo(): void;
|
|
2282
2352
|
suspend(): void;
|
|
2283
2353
|
resume(): void;
|
|
2284
|
-
changesFinishedCallback:
|
|
2354
|
+
changesFinishedCallback: (changes: IUndoRedoChange) => void;
|
|
2285
2355
|
}
|
|
2286
2356
|
export declare class AceJsonEditorModel extends JsonEditorBaseModel {
|
|
2287
2357
|
constructor(creator: CreatorBase);
|
|
@@ -2309,6 +2379,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
2309
2379
|
maximumRateValues: number;
|
|
2310
2380
|
getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
|
|
2311
2381
|
onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
|
|
2382
|
+
onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): void;
|
|
2312
2383
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
|
|
2313
2384
|
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: any): void;
|
|
2314
2385
|
onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
|
|
@@ -2423,7 +2494,7 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
2423
2494
|
get isRequired(): any;
|
|
2424
2495
|
set isRequired(val: any);
|
|
2425
2496
|
onPointerDown(pointerDownEvent: any): void;
|
|
2426
|
-
startDragSurveyElement: any;
|
|
2497
|
+
startDragSurveyElement: (event: any) => boolean;
|
|
2427
2498
|
get allowEdit(): boolean;
|
|
2428
2499
|
get showAddQuestionButton(): boolean;
|
|
2429
2500
|
getConvertToTypesActions(): Array<IAction>;
|
|
@@ -2611,7 +2682,7 @@ export declare class TranslationGroup extends TranslationItemBase {
|
|
|
2611
2682
|
get localeCount(): number;
|
|
2612
2683
|
get locWidth(): string;
|
|
2613
2684
|
getLocaleName(loc: string): string;
|
|
2614
|
-
removeLocale:
|
|
2685
|
+
removeLocale: (loc: string) => void;
|
|
2615
2686
|
reset(): void;
|
|
2616
2687
|
fillLocales(locales: any): void;
|
|
2617
2688
|
makeObservable(): void;
|
|
@@ -2670,6 +2741,8 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
2670
2741
|
constructor(survey: SurveyModel, object?: Base, options?: ISurveyCreatorOptions, propertyName?: string);
|
|
2671
2742
|
static canParseExpression(text: string): boolean;
|
|
2672
2743
|
static canBuildExpression(text: string): boolean;
|
|
2744
|
+
static isOperatorEnabled(qType: string, operatorTypes: any): boolean;
|
|
2745
|
+
static isClassContains(qType: string, contains: any, notContains: any): boolean;
|
|
2673
2746
|
objectValue: Base;
|
|
2674
2747
|
surveyValue: SurveyModel;
|
|
2675
2748
|
contextValue: Question;
|
|
@@ -2678,7 +2751,7 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
2678
2751
|
addConditionQuestionsHash: any;
|
|
2679
2752
|
isModalValue: boolean;
|
|
2680
2753
|
allConditionQuestions: any;
|
|
2681
|
-
onContextChanged:
|
|
2754
|
+
onContextChanged: (context: Question) => void;
|
|
2682
2755
|
get title(): string;
|
|
2683
2756
|
set title(val: string);
|
|
2684
2757
|
get isModal(): boolean;
|
|
@@ -2794,7 +2867,7 @@ export declare class PropertyGridEditorMatrix extends PropertyGridEditor {
|
|
|
2794
2867
|
constructor();
|
|
2795
2868
|
onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
|
|
2796
2869
|
onMatrixCellCreated(obj: Base, options: any): void;
|
|
2797
|
-
onGetMatrixRowAction(obj: Base, options: any, setObjFunc:
|
|
2870
|
+
onGetMatrixRowAction(obj: Base, options: any, setObjFunc: (obj: Base) => void): void;
|
|
2798
2871
|
onGetQuestionTitleActions(obj: Base, options: any): void;
|
|
2799
2872
|
onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
2800
2873
|
protected updateTitleActions(question: Question): void;
|
|
@@ -2847,7 +2920,7 @@ export declare class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
|
2847
2920
|
export declare class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
2848
2921
|
constructor();
|
|
2849
2922
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
2850
|
-
onCreated:
|
|
2923
|
+
onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
2851
2924
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
2852
2925
|
protected isValueEmpty(val: any): boolean;
|
|
2853
2926
|
isSupportGrouping(): boolean;
|
|
@@ -2857,16 +2930,6 @@ export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewMo
|
|
|
2857
2930
|
questionRoot: any;
|
|
2858
2931
|
chooseFile(model: QuestionImageAdornerViewModel): void;
|
|
2859
2932
|
}
|
|
2860
|
-
export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewModel {
|
|
2861
|
-
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
2862
|
-
get element(): QuestionRatingModel;
|
|
2863
|
-
addItem(model: QuestionRatingAdornerViewModel): void;
|
|
2864
|
-
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
2865
|
-
get allowAdd(): boolean;
|
|
2866
|
-
get allowRemove(): boolean;
|
|
2867
|
-
get addTooltip(): string;
|
|
2868
|
-
get removeTooltip(): string;
|
|
2869
|
-
}
|
|
2870
2933
|
export declare class TabJsonEditorAcePlugin extends TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
2871
2934
|
constructor(creator: CreatorBase);
|
|
2872
2935
|
protected createModel(creator: CreatorBase): JsonEditorBaseModel;
|
|
@@ -3084,7 +3147,6 @@ export declare class PropertyGridTriggerValueInLogicEditor extends PropertyGridT
|
|
|
3084
3147
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
3085
3148
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
3086
3149
|
}
|
|
3087
|
-
export declare function getLocString(strName: string, locale?: string): string;
|
|
3088
3150
|
export declare function getNextValue(prefix: string, values: any): string | number;
|
|
3089
3151
|
export declare function findParentNode(className: string, sourceNode: any): any;
|
|
3090
3152
|
export declare function focusFirstControl(renderedElements: any): void;
|
|
@@ -3099,6 +3161,8 @@ export declare function copyObject(dst: any, src: any): void;
|
|
|
3099
3161
|
export declare function copyCssClasses(dest: any, source: any): void;
|
|
3100
3162
|
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
3101
3163
|
export declare function wrapTextByCurlyBraces(text: string): string;
|
|
3164
|
+
export declare function capitalize(str: string): string;
|
|
3165
|
+
export declare function getLocString(strName: string, locale?: string): string;
|
|
3102
3166
|
export declare function getLogicString(name: string): string;
|
|
3103
3167
|
export declare function parsePropertyDescription(text: string): string;
|
|
3104
3168
|
export declare function setSurveyJSONForPropertyGrid(json: any, updateOnTyping?: boolean, titleLocationLeft?: boolean): void;
|
|
@@ -3113,8 +3177,6 @@ export declare function getItemValueWrapperComponentName(item: ItemValue, questi
|
|
|
3113
3177
|
export declare function getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase): any;
|
|
3114
3178
|
export declare function isStringEditable(element: any, name: string): boolean;
|
|
3115
3179
|
export declare function isTextInput(target: any): boolean;
|
|
3116
|
-
export declare var editorLocalization: EditorLocalization;
|
|
3117
|
-
export declare var defaultStrings: any;
|
|
3118
3180
|
export declare var settings: {
|
|
3119
3181
|
translation: {
|
|
3120
3182
|
sortByName: boolean,
|
|
@@ -3169,6 +3231,19 @@ export declare var settings: {
|
|
|
3169
3231
|
maximumRateValues: number,
|
|
3170
3232
|
generalTabName: string,
|
|
3171
3233
|
},
|
|
3234
|
+
toolbox: {
|
|
3235
|
+
/*
|
|
3236
|
+
* Use it to change the default question JSON on dropping it into designer or converting questions
|
|
3237
|
+
*/
|
|
3238
|
+
defaultJSON: {
|
|
3239
|
+
imagepicker: {
|
|
3240
|
+
choices: any,
|
|
3241
|
+
},
|
|
3242
|
+
image: {
|
|
3243
|
+
imageLink: string,
|
|
3244
|
+
},
|
|
3245
|
+
},
|
|
3246
|
+
},
|
|
3172
3247
|
/*
|
|
3173
3248
|
* Notification settings
|
|
3174
3249
|
*/
|
|
@@ -3213,6 +3288,8 @@ export declare var opositeValues: {
|
|
|
3213
3288
|
No: string,
|
|
3214
3289
|
NO: string,
|
|
3215
3290
|
};
|
|
3291
|
+
export declare var editorLocalization: EditorLocalization;
|
|
3292
|
+
export declare var defaultStrings: any;
|
|
3216
3293
|
export declare var propertyGridCss: {
|
|
3217
3294
|
root: string,
|
|
3218
3295
|
container: string,
|
|
@@ -3484,6 +3561,9 @@ export declare var propertyGridCss: {
|
|
|
3484
3561
|
controls: string,
|
|
3485
3562
|
clearButton: string,
|
|
3486
3563
|
},
|
|
3564
|
+
propertygrid_restfull: {
|
|
3565
|
+
content: string,
|
|
3566
|
+
},
|
|
3487
3567
|
saveData: {
|
|
3488
3568
|
root: string,
|
|
3489
3569
|
saving: string,
|
|
@@ -3514,7 +3594,7 @@ export declare var propertyGridCss: {
|
|
|
3514
3594
|
export declare var json: {
|
|
3515
3595
|
name: string,
|
|
3516
3596
|
showInToolbox: boolean,
|
|
3517
|
-
createElements: any,
|
|
3597
|
+
createElements: (panel: any) => void,
|
|
3518
3598
|
};
|
|
3519
3599
|
export declare var DEFAULT_MONITOR_DPI: number;
|
|
3520
3600
|
export declare var simulatorDevices: {
|
|
@@ -3698,20 +3778,20 @@ export declare var PropertyGridEditorCollection: {
|
|
|
3698
3778
|
editors: any,
|
|
3699
3779
|
fitHash: any,
|
|
3700
3780
|
clearHash: any,
|
|
3701
|
-
register:
|
|
3702
|
-
getEditor:
|
|
3703
|
-
isEditorFit:
|
|
3704
|
-
getJSON: any,
|
|
3705
|
-
onCreated: any,
|
|
3706
|
-
onAfterRenderQuestion: any,
|
|
3707
|
-
onMatrixCellCreated: any,
|
|
3708
|
-
onMatrixCellValueChanged: any,
|
|
3709
|
-
onMatrixAllowRemoveRow:
|
|
3710
|
-
onGetMatrixRowAction: any,
|
|
3711
|
-
onUpdateQuestionCssClasses: any,
|
|
3712
|
-
onGetQuestionTitleActions: any,
|
|
3713
|
-
onValueChanged:
|
|
3714
|
-
onMasterValueChanged:
|
|
3781
|
+
register: (editor: IPropertyGridEditor) => void,
|
|
3782
|
+
getEditor: (prop: JsonObjectProperty, context?: string) => IPropertyGridEditor,
|
|
3783
|
+
isEditorFit: (prop: JsonObjectProperty, asDefault?: boolean) => IPropertyGridEditor,
|
|
3784
|
+
getJSON: (obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions, context?: string) => any,
|
|
3785
|
+
onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => any,
|
|
3786
|
+
onAfterRenderQuestion: (obj: Base, prop: JsonObjectProperty, evtOptions: any) => void,
|
|
3787
|
+
onMatrixCellCreated: (obj: Base, prop: JsonObjectProperty, options: any) => void,
|
|
3788
|
+
onMatrixCellValueChanged: (obj: Base, prop: JsonObjectProperty, options: any) => void,
|
|
3789
|
+
onMatrixAllowRemoveRow: (obj: Base, prop: JsonObjectProperty, row: MatrixDynamicRowModel) => boolean,
|
|
3790
|
+
onGetMatrixRowAction: (obj: Base, prop: JsonObjectProperty, options: any, setObjFunc: any) => any,
|
|
3791
|
+
onUpdateQuestionCssClasses: (obj: Base, prop: JsonObjectProperty, options: any) => void,
|
|
3792
|
+
onGetQuestionTitleActions: (obj: Base, prop: JsonObjectProperty, options: any) => void,
|
|
3793
|
+
onValueChanged: (obj: Base, prop: JsonObjectProperty, question: Question) => void,
|
|
3794
|
+
onMasterValueChanged: (obj: Base, prop: JsonObjectProperty, question: Question) => void,
|
|
3715
3795
|
};
|
|
3716
3796
|
export declare var translationCss: {
|
|
3717
3797
|
root: string,
|