survey-creator-core 1.9.30 → 1.9.31
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 +1 -1
- package/survey-creator-core.d.ts +115 -107
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +44 -38
- package/survey-creator-core.min.css +1 -1
- package/survey-creator-core.min.js +2 -2
package/package.json
CHANGED
package/survey-creator-core.css
CHANGED
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.
|
|
2
|
+
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.31
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -9,9 +9,9 @@ import { DragDropChoices, Event, AdaptiveActionContainer, PageModel, IElement }
|
|
|
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
|
|
|
@@ -117,14 +117,14 @@ export interface ISurveyLogicType {
|
|
|
117
117
|
dependedOnPropertyName?: string;
|
|
118
118
|
isInvisible?: boolean;
|
|
119
119
|
showInUI?: boolean;
|
|
120
|
-
showIf?:
|
|
121
|
-
getCollection?: any;
|
|
120
|
+
showIf?: (survey: SurveyModel) => boolean;
|
|
121
|
+
getCollection?: (survey: SurveyModel) => any;
|
|
122
122
|
isUniqueItem?: boolean;
|
|
123
123
|
questionNames?: any;
|
|
124
|
-
getDisplayText?:
|
|
125
|
-
getElementName?:
|
|
126
|
-
getSelectorChoices?: any;
|
|
127
|
-
supportContext?:
|
|
124
|
+
getDisplayText?: (element: Base, formatStr: string, lt: SurveyLogicType) => string;
|
|
125
|
+
getElementName?: (element: Base) => string;
|
|
126
|
+
getSelectorChoices?: (survey: SurveyModel, context: Question) => any;
|
|
127
|
+
supportContext?: (question: Base) => boolean;
|
|
128
128
|
getParentElement(element: Base): Base;
|
|
129
129
|
}
|
|
130
130
|
export interface ISurveyLogicItemOwner {
|
|
@@ -160,20 +160,20 @@ export interface IPropertyGridEditor {
|
|
|
160
160
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
161
161
|
isDefault?: any;
|
|
162
162
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
163
|
-
showModalPropertyEditor?: any;
|
|
164
|
-
onCreated?:
|
|
165
|
-
onAfterRenderQuestion?: any;
|
|
166
|
-
createPropertyEditorSetup?:
|
|
167
|
-
isPropertyEditorSetupEnabled?:
|
|
168
|
-
canClearPropertyValue?:
|
|
169
|
-
clearPropertyValue?:
|
|
170
|
-
onMasterValueChanged?:
|
|
171
|
-
onAddIntoPropertyValue?:
|
|
172
|
-
onMatrixCellCreated?: any;
|
|
173
|
-
onMatrixCellValueChanged?: any;
|
|
174
|
-
onMatrixAllowRemoveRow?: any;
|
|
175
|
-
onGetQuestionTitleActions?: any;
|
|
176
|
-
onUpdateQuestionCssClasses?: any;
|
|
163
|
+
showModalPropertyEditor?: (editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => any;
|
|
164
|
+
onCreated?: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
165
|
+
onAfterRenderQuestion?: (obj: Base, prop: JsonObjectProperty, evtOptions: any) => void;
|
|
166
|
+
createPropertyEditorSetup?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => IPropertyEditorSetup;
|
|
167
|
+
isPropertyEditorSetupEnabled?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => boolean;
|
|
168
|
+
canClearPropertyValue?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => boolean;
|
|
169
|
+
clearPropertyValue?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => void;
|
|
170
|
+
onMasterValueChanged?: (obj: Base, prop: JsonObjectProperty, question: Question) => void;
|
|
171
|
+
onAddIntoPropertyValue?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => void;
|
|
172
|
+
onMatrixCellCreated?: (obj: Base, options: any) => void;
|
|
173
|
+
onMatrixCellValueChanged?: (obj: Base, options: any) => void;
|
|
174
|
+
onMatrixAllowRemoveRow?: (obj: Base, row: any) => boolean;
|
|
175
|
+
onGetQuestionTitleActions?: (obj: Base, options: any) => void;
|
|
176
|
+
onUpdateQuestionCssClasses?: (obj: Base, options: any) => void;
|
|
177
177
|
}
|
|
178
178
|
export interface ITranslationLocales {
|
|
179
179
|
locales: any;
|
|
@@ -181,7 +181,7 @@ export interface ITranslationLocales {
|
|
|
181
181
|
readOnly: boolean;
|
|
182
182
|
getLocaleName(loc: string): string;
|
|
183
183
|
availableTranlationsChangedCallback: any;
|
|
184
|
-
tranlationChangedCallback: any;
|
|
184
|
+
tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
|
|
185
185
|
translateItemAfterRender(item: TranslationItem, el: any, locale: string): any;
|
|
186
186
|
fireOnObjCreating(obj: Base): any;
|
|
187
187
|
removeLocale(loc: string): void;
|
|
@@ -207,7 +207,7 @@ export interface IKeyboardShortcut {
|
|
|
207
207
|
name?: string;
|
|
208
208
|
hotKey: any;
|
|
209
209
|
macOsHotkey?: any;
|
|
210
|
-
execute: any;
|
|
210
|
+
execute: (context: any) => void;
|
|
211
211
|
}
|
|
212
212
|
export interface ICreatorOptions {
|
|
213
213
|
}
|
|
@@ -249,7 +249,7 @@ export declare class ConditionEditorItem {
|
|
|
249
249
|
value: any;
|
|
250
250
|
}
|
|
251
251
|
export declare class ConditionEditorItemsBuilder {
|
|
252
|
-
constructor(hasValue?:
|
|
252
|
+
constructor(hasValue?: (name: string) => boolean);
|
|
253
253
|
build(text: string): Array<ConditionEditorItem>;
|
|
254
254
|
}
|
|
255
255
|
export declare class CreatorAction extends Action implements ICreatorAction {
|
|
@@ -344,7 +344,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
344
344
|
newPanels: any;
|
|
345
345
|
newQuestionChangedNames: any;
|
|
346
346
|
selectionHistoryControllerValue: SelectionHistory;
|
|
347
|
-
saveSurveyFuncValue: any;
|
|
347
|
+
saveSurveyFuncValue: (no: number, onSaveCallback: any, isSuccess: boolean) => any;
|
|
348
348
|
viewType: string;
|
|
349
349
|
/*
|
|
350
350
|
* Returns the current show view name. The possible returns values are:
|
|
@@ -564,21 +564,26 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
564
564
|
*/
|
|
565
565
|
onPropertyValidationCustomError: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
566
566
|
/*
|
|
567
|
-
*
|
|
568
|
-
*
|
|
569
|
-
*
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
*
|
|
573
|
-
*
|
|
567
|
+
* An event that is raised each time a user edits a survey object property.
|
|
568
|
+
* Use this event to correct or validate the property value while the user enters it.
|
|
569
|
+
*
|
|
570
|
+
* The event handler accepts the following arguments:
|
|
571
|
+
*
|
|
572
|
+
* - `sender`- A Survey Creator instance that raised the event.
|
|
573
|
+
* - `options.obj` - A survey object instance (question or panel) whose property is being edited.
|
|
574
|
+
* - `options.propertyName` - The name of the property.
|
|
575
|
+
* - `options.value` - A property value entered by a user.
|
|
576
|
+
* - `options.newValue` - A corrected property value. Specify this field if you want to override the `options.value`.
|
|
577
|
+
* - `options.doValidation` - Enable this field to validate the property value while the user enters it.
|
|
574
578
|
*/
|
|
575
579
|
onPropertyValueChanging: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
576
580
|
/*
|
|
577
|
-
*
|
|
578
|
-
*
|
|
579
|
-
*
|
|
580
|
-
*
|
|
581
|
-
*
|
|
581
|
+
* An event that is raised after a property in a survey object has changed.
|
|
582
|
+
*
|
|
583
|
+
* - `sender`- A Survey Creator instance that raised the event.
|
|
584
|
+
* - `options.obj` - A survey object instance (question or panel) whose property has changed.
|
|
585
|
+
* - `options.propertyName` - The name of the property.
|
|
586
|
+
* - `options.value` - A new property value.
|
|
582
587
|
*/
|
|
583
588
|
onSurveyPropertyValueChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
584
589
|
/*
|
|
@@ -754,7 +759,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
754
759
|
/*
|
|
755
760
|
* This callback is used internally for setting survey JSON text.
|
|
756
761
|
*/
|
|
757
|
-
setSurveyJSONTextCallback:
|
|
762
|
+
setSurveyJSONTextCallback: (text: string) => void;
|
|
758
763
|
/*
|
|
759
764
|
* You need to set this property to true if you want to use tabs instead of accordion in the popup element's editor.
|
|
760
765
|
*/
|
|
@@ -1086,14 +1091,14 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1086
1091
|
/*
|
|
1087
1092
|
* Open file chooser dialog
|
|
1088
1093
|
*/
|
|
1089
|
-
chooseFiles(input: any, onFilesChosen: any): void;
|
|
1094
|
+
chooseFiles(input: any, onFilesChosen: (files: any) => void): void;
|
|
1090
1095
|
/*
|
|
1091
1096
|
* Upload the files on a server
|
|
1092
1097
|
*/
|
|
1093
|
-
uploadFiles(files: any, uploadingCallback: any): void;
|
|
1098
|
+
uploadFiles(files: any, uploadingCallback: (status: string, data: any) => any): void;
|
|
1094
1099
|
initKeyboardShortcuts(rootNode: any): void;
|
|
1095
1100
|
removeKeyboardShortcuts(rootNode: any): void;
|
|
1096
|
-
protected onKeyDownHandler: any;
|
|
1101
|
+
protected onKeyDownHandler: (event: any) => void;
|
|
1097
1102
|
shortcuts: any;
|
|
1098
1103
|
registerShortcut(name: string, shortcut: IKeyboardShortcut): void;
|
|
1099
1104
|
unRegisterShortcut(name: string): void;
|
|
@@ -1138,8 +1143,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1138
1143
|
convertCurrentQuestion(newType: string): void;
|
|
1139
1144
|
getAddNewQuestionText(currentAddQuestionType?: string): any;
|
|
1140
1145
|
get addNewQuestionText(): any;
|
|
1141
|
-
getQuestionTypeSelectorModel(beforeAdd:
|
|
1142
|
-
addNewQuestionInPage(beforeAdd: any, panel?: IPanel, type?: string): void;
|
|
1146
|
+
getQuestionTypeSelectorModel(beforeAdd: (type: string) => void, panel?: IPanel): any;
|
|
1147
|
+
addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
|
|
1143
1148
|
createIActionBarItemByClass(className: string, title: string, iconName: string): Action;
|
|
1144
1149
|
onElementMenuItemsChanged(element: any, items: any): void;
|
|
1145
1150
|
getElementAllowOperations(element: SurveyElement): any;
|
|
@@ -1165,7 +1170,7 @@ export declare class CreatorResponsivityManager {
|
|
|
1165
1170
|
currentWidth: any;
|
|
1166
1171
|
prevShowToolbox: any;
|
|
1167
1172
|
prevShowPageNavigator: any;
|
|
1168
|
-
|
|
1173
|
+
static screenSizeBreakpoints: any;
|
|
1169
1174
|
process(): void;
|
|
1170
1175
|
dispose(): void;
|
|
1171
1176
|
}
|
|
@@ -1261,7 +1266,7 @@ export declare class ItemValueWrapperViewModel extends Base {
|
|
|
1261
1266
|
allowItemOperations: ICollectionItemAllowOperations;
|
|
1262
1267
|
canTouchItems: boolean;
|
|
1263
1268
|
onPointerDown(pointerDownEvent: any): void;
|
|
1264
|
-
startDragItemValue: any;
|
|
1269
|
+
startDragItemValue: (pointerDownEvent: any, currentTarget: any) => void;
|
|
1265
1270
|
dispose(): void;
|
|
1266
1271
|
handleDragDropGhostPositionChanged: any;
|
|
1267
1272
|
get isDraggable(): boolean;
|
|
@@ -1321,7 +1326,7 @@ export declare class MatrixCellWrapperViewModel extends Base {
|
|
|
1321
1326
|
row: any;
|
|
1322
1327
|
column: any;
|
|
1323
1328
|
isSelected: boolean;
|
|
1324
|
-
onSelectionChanged: any;
|
|
1329
|
+
onSelectionChanged: (sender: any, options: any) => void;
|
|
1325
1330
|
editQuestion(model: MatrixCellWrapperViewModel): void;
|
|
1326
1331
|
get context(): any;
|
|
1327
1332
|
selectContext(model: MatrixCellWrapperViewModel, event: any): void;
|
|
@@ -1338,7 +1343,7 @@ export declare class Notifier extends Base {
|
|
|
1338
1343
|
notify(message: string, type?: "info" | "error"): void;
|
|
1339
1344
|
}
|
|
1340
1345
|
export declare class ObjectSelector {
|
|
1341
|
-
constructor(creator: CreatorBase, survey: SurveyModel, getObjectDisplayName?:
|
|
1346
|
+
constructor(creator: CreatorBase, survey: SurveyModel, getObjectDisplayName?: (obj: Base, reason: string, displayName: string) => string);
|
|
1342
1347
|
surveyValue: SurveyModel;
|
|
1343
1348
|
deepestLevel: number;
|
|
1344
1349
|
filteredTextInLow: string;
|
|
@@ -1357,12 +1362,12 @@ export declare class ObjectSelectorItem extends Action {
|
|
|
1357
1362
|
hasText(filteredTextInLow: string): boolean;
|
|
1358
1363
|
}
|
|
1359
1364
|
export declare class ObjectSelectorModel extends Base {
|
|
1360
|
-
constructor(creator: CreatorBase, getObjectDisplayName?:
|
|
1365
|
+
constructor(creator: CreatorBase, getObjectDisplayName?: (obj: Base, reason: string, displayName: string) => string);
|
|
1361
1366
|
selector: ObjectSelector;
|
|
1362
1367
|
listModelValue: ListModel;
|
|
1363
1368
|
isVisible: boolean;
|
|
1364
1369
|
get list(): ListModel;
|
|
1365
|
-
show(survey: SurveyModel, selectedObj: Base, onClose:
|
|
1370
|
+
show(survey: SurveyModel, selectedObj: Base, onClose: (obj: Base) => void): void;
|
|
1366
1371
|
refresh(): void;
|
|
1367
1372
|
}
|
|
1368
1373
|
export declare class PageNavigatorViewModel extends Base {
|
|
@@ -1370,8 +1375,8 @@ export declare class PageNavigatorViewModel extends Base {
|
|
|
1370
1375
|
icon: string;
|
|
1371
1376
|
pageListModel: ListModel;
|
|
1372
1377
|
popupModel: any;
|
|
1373
|
-
pagesChangedFunc: any;
|
|
1374
|
-
currentPagesChangedFunc: any;
|
|
1378
|
+
pagesChangedFunc: (sender: PagesController, options: any) => void;
|
|
1379
|
+
currentPagesChangedFunc: (sender: PagesController, options: any) => void;
|
|
1375
1380
|
dispose(): void;
|
|
1376
1381
|
items: any;
|
|
1377
1382
|
visible: boolean;
|
|
@@ -1387,7 +1392,7 @@ export declare class PagesController extends Base {
|
|
|
1387
1392
|
creator: ICreatorSelectionOwner;
|
|
1388
1393
|
onPagesChanged: EventBase<PagesController>;
|
|
1389
1394
|
onCurrentPageChanged: EventBase<PagesController>;
|
|
1390
|
-
currentPageChangedFunc: any;
|
|
1395
|
+
currentPageChangedFunc: (sender: SurveyModel, options: any) => any;
|
|
1391
1396
|
surveyValue: SurveyModel;
|
|
1392
1397
|
page2Display: PageModel;
|
|
1393
1398
|
get survey(): SurveyModel;
|
|
@@ -1411,7 +1416,7 @@ export declare class PropertyGridModel {
|
|
|
1411
1416
|
currentlySelectedProperty: string;
|
|
1412
1417
|
currentlySelectedPanel: PanelModel;
|
|
1413
1418
|
objValueChangedCallback: any;
|
|
1414
|
-
changedFromActionCallback:
|
|
1419
|
+
changedFromActionCallback: (obj: Base, propertyName: string) => void;
|
|
1415
1420
|
refresh(): void;
|
|
1416
1421
|
get obj(): Base;
|
|
1417
1422
|
set obj(val: Base);
|
|
@@ -1483,6 +1488,19 @@ export declare class QuestionLinkValueModel extends Question {
|
|
|
1483
1488
|
doLinkClick(): void;
|
|
1484
1489
|
doClearClick(): void;
|
|
1485
1490
|
}
|
|
1491
|
+
export declare class QuestionRatingAdornerViewModel extends Base {
|
|
1492
|
+
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
1493
|
+
creator: CreatorBase;
|
|
1494
|
+
surveyElement: SurveyElement;
|
|
1495
|
+
templateData: SurveyTemplateRendererTemplateData;
|
|
1496
|
+
get element(): QuestionRatingModel;
|
|
1497
|
+
addItem(model: QuestionRatingAdornerViewModel): void;
|
|
1498
|
+
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
1499
|
+
get allowAdd(): boolean;
|
|
1500
|
+
get allowRemove(): boolean;
|
|
1501
|
+
get addTooltip(): string;
|
|
1502
|
+
get removeTooltip(): string;
|
|
1503
|
+
}
|
|
1486
1504
|
/*
|
|
1487
1505
|
* The list of Toolbox items.
|
|
1488
1506
|
*/
|
|
@@ -1648,9 +1666,9 @@ export declare class ResizeManager {
|
|
|
1648
1666
|
mouseDevice: "mouse" | "pointer" | "touch";
|
|
1649
1667
|
events: any;
|
|
1650
1668
|
setHandles(newVal: string): void;
|
|
1651
|
-
onMouseDownListener: any;
|
|
1652
|
-
resize: any;
|
|
1653
|
-
stopResize: any;
|
|
1669
|
+
onMouseDownListener: (e: any) => void;
|
|
1670
|
+
resize: (e: any) => void;
|
|
1671
|
+
stopResize: (e: any) => void;
|
|
1654
1672
|
dispose(): void;
|
|
1655
1673
|
}
|
|
1656
1674
|
export declare class RowViewModel extends Base {
|
|
@@ -1746,8 +1764,8 @@ export declare class SurveyElementAdornerBase<T extends SurveyElement = SurveyEl
|
|
|
1746
1764
|
creator: CreatorBase;
|
|
1747
1765
|
actionContainer: any;
|
|
1748
1766
|
allowDragging: boolean;
|
|
1749
|
-
selectedPropPageFunc: any;
|
|
1750
|
-
sidebarFlyoutModeChangedFunc: any;
|
|
1767
|
+
selectedPropPageFunc: (sender: Base, options: any) => void;
|
|
1768
|
+
sidebarFlyoutModeChangedFunc: (sender: Base, options: any) => void;
|
|
1751
1769
|
protected detachElement(surveyElement: T): void;
|
|
1752
1770
|
protected attachElement(surveyElement: T): void;
|
|
1753
1771
|
protected setSurveyElement(surveyElement: T): void;
|
|
@@ -1820,7 +1838,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
1820
1838
|
static set visibleActions(val: any);
|
|
1821
1839
|
static get types(): any;
|
|
1822
1840
|
invisibleItems: any;
|
|
1823
|
-
onChangedCallback:
|
|
1841
|
+
onChangedCallback: (item: SurveyLogicItem, changeType: string) => void;
|
|
1824
1842
|
/*
|
|
1825
1843
|
* The event is called when logic item is saved.
|
|
1826
1844
|
* <br/> options.item is the saved logic item.
|
|
@@ -2065,8 +2083,8 @@ export declare class SurveySimulatorModel extends Base {
|
|
|
2065
2083
|
get zoomScale(): number;
|
|
2066
2084
|
activateZoom: any;
|
|
2067
2085
|
deactivateZoom: any;
|
|
2068
|
-
listenTryToZoomWithWheel: any;
|
|
2069
|
-
listenTryToZoom: any;
|
|
2086
|
+
listenTryToZoomWithWheel: (e: any) => boolean;
|
|
2087
|
+
listenTryToZoom: (e: any) => boolean;
|
|
2070
2088
|
tryToZoom(data: any, event: any): boolean;
|
|
2071
2089
|
resetZoomParameters(): void;
|
|
2072
2090
|
get activeDevice(): string;
|
|
@@ -2091,8 +2109,8 @@ export declare class SurveyTextWorker {
|
|
|
2091
2109
|
export declare class TabDesignerViewModel extends Base {
|
|
2092
2110
|
constructor(creator: CreatorBase);
|
|
2093
2111
|
widthUpdater: any;
|
|
2094
|
-
checkNewPageHandler: any;
|
|
2095
|
-
surveyOnPropertyChanged: any;
|
|
2112
|
+
checkNewPageHandler: (sender: SurveyModel, options: any) => void;
|
|
2113
|
+
surveyOnPropertyChanged: (sender: SurveyModel, options: any) => void;
|
|
2096
2114
|
pagesControllerValue: PagesController;
|
|
2097
2115
|
newPage: PageModel;
|
|
2098
2116
|
showNewPage: boolean;
|
|
@@ -2122,7 +2140,7 @@ export declare class TestSurveyTabViewModel extends Base {
|
|
|
2122
2140
|
nextPageAction: Action;
|
|
2123
2141
|
selectPageAction: Action;
|
|
2124
2142
|
pagePopupModel: any;
|
|
2125
|
-
onSurveyCreatedCallback: any;
|
|
2143
|
+
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
2126
2144
|
simulator: SurveySimulatorModel;
|
|
2127
2145
|
showInvisibleElements: any;
|
|
2128
2146
|
showPagesInTestSurveyTab: any;
|
|
@@ -2151,12 +2169,12 @@ export declare class ToolbarActionContainer extends ActionContainer {
|
|
|
2151
2169
|
export declare class ToolboxToolViewModel extends Base {
|
|
2152
2170
|
constructor(item: IQuestionToolboxItem, creator: CreatorBase);
|
|
2153
2171
|
dragOrClickHelper: DragOrClickHelper;
|
|
2154
|
-
click: any;
|
|
2172
|
+
click: (event: any) => void;
|
|
2155
2173
|
get allowAdd(): boolean;
|
|
2156
2174
|
onPointerDown(pointerDownEvent: any): boolean;
|
|
2157
2175
|
_node: any;
|
|
2158
|
-
onPointerUp: any;
|
|
2159
|
-
startDragToolboxItem: any;
|
|
2176
|
+
onPointerUp: (pointerUpEvent: any) => void;
|
|
2177
|
+
startDragToolboxItem: (pointerDownEvent: any, currentTarget: any) => boolean;
|
|
2160
2178
|
}
|
|
2161
2179
|
export declare class Transaction {
|
|
2162
2180
|
constructor(_name: string);
|
|
@@ -2174,14 +2192,14 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
2174
2192
|
exportToCSVFileUI: any;
|
|
2175
2193
|
importFromCSVFileUI: any;
|
|
2176
2194
|
importFinishedCallback: any;
|
|
2177
|
-
translateItemAfterRenderCallback: any;
|
|
2195
|
+
translateItemAfterRenderCallback: (item: TranslationItem, el: any, locale: string) => void;
|
|
2178
2196
|
availableTranlationsChangedCallback: any;
|
|
2179
|
-
tranlationChangedCallback: any;
|
|
2180
|
-
translationStringVisibilityCallback:
|
|
2181
|
-
localeInitialVisibleCallback:
|
|
2197
|
+
tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
|
|
2198
|
+
translationStringVisibilityCallback: (obj: Base, propertyName: string, visible: boolean) => boolean;
|
|
2199
|
+
localeInitialVisibleCallback: (locale: string) => boolean;
|
|
2182
2200
|
surveyValue: SurveyModel;
|
|
2183
2201
|
settingsSurveyValue: SurveyModel;
|
|
2184
|
-
onBaseObjCreatingCallback:
|
|
2202
|
+
onBaseObjCreatingCallback: (obj: Base) => void;
|
|
2185
2203
|
chooseLanguagePopupModel: any;
|
|
2186
2204
|
chooseLanguageActions: any;
|
|
2187
2205
|
getType(): string;
|
|
@@ -2195,7 +2213,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
2195
2213
|
stringsSurvey: SurveyModel;
|
|
2196
2214
|
stringsHeaderSurvey: SurveyModel;
|
|
2197
2215
|
isEmpty: boolean;
|
|
2198
|
-
makeObservable(onBaseObjCreating:
|
|
2216
|
+
makeObservable(onBaseObjCreating: (obj: Base) => void): void;
|
|
2199
2217
|
fireOnObjCreating(obj: Base): void;
|
|
2200
2218
|
get settingsSurvey(): SurveyModel;
|
|
2201
2219
|
get localesQuestion(): QuestionCheckboxModel;
|
|
@@ -2298,7 +2316,7 @@ export declare class UndoRedoManager {
|
|
|
2298
2316
|
redo(): void;
|
|
2299
2317
|
suspend(): void;
|
|
2300
2318
|
resume(): void;
|
|
2301
|
-
changesFinishedCallback:
|
|
2319
|
+
changesFinishedCallback: (changes: IUndoRedoChange) => void;
|
|
2302
2320
|
}
|
|
2303
2321
|
export declare class AceJsonEditorModel extends JsonEditorBaseModel {
|
|
2304
2322
|
constructor(creator: CreatorBase);
|
|
@@ -2441,7 +2459,7 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
2441
2459
|
get isRequired(): any;
|
|
2442
2460
|
set isRequired(val: any);
|
|
2443
2461
|
onPointerDown(pointerDownEvent: any): void;
|
|
2444
|
-
startDragSurveyElement: any;
|
|
2462
|
+
startDragSurveyElement: (event: any) => boolean;
|
|
2445
2463
|
get allowEdit(): boolean;
|
|
2446
2464
|
get showAddQuestionButton(): boolean;
|
|
2447
2465
|
getConvertToTypesActions(): Array<IAction>;
|
|
@@ -2629,7 +2647,7 @@ export declare class TranslationGroup extends TranslationItemBase {
|
|
|
2629
2647
|
get localeCount(): number;
|
|
2630
2648
|
get locWidth(): string;
|
|
2631
2649
|
getLocaleName(loc: string): string;
|
|
2632
|
-
removeLocale:
|
|
2650
|
+
removeLocale: (loc: string) => void;
|
|
2633
2651
|
reset(): void;
|
|
2634
2652
|
fillLocales(locales: any): void;
|
|
2635
2653
|
makeObservable(): void;
|
|
@@ -2696,7 +2714,7 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
2696
2714
|
addConditionQuestionsHash: any;
|
|
2697
2715
|
isModalValue: boolean;
|
|
2698
2716
|
allConditionQuestions: any;
|
|
2699
|
-
onContextChanged:
|
|
2717
|
+
onContextChanged: (context: Question) => void;
|
|
2700
2718
|
get title(): string;
|
|
2701
2719
|
set title(val: string);
|
|
2702
2720
|
get isModal(): boolean;
|
|
@@ -2812,7 +2830,7 @@ export declare class PropertyGridEditorMatrix extends PropertyGridEditor {
|
|
|
2812
2830
|
constructor();
|
|
2813
2831
|
onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
|
|
2814
2832
|
onMatrixCellCreated(obj: Base, options: any): void;
|
|
2815
|
-
onGetMatrixRowAction(obj: Base, options: any, setObjFunc:
|
|
2833
|
+
onGetMatrixRowAction(obj: Base, options: any, setObjFunc: (obj: Base) => void): void;
|
|
2816
2834
|
onGetQuestionTitleActions(obj: Base, options: any): void;
|
|
2817
2835
|
onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
2818
2836
|
protected updateTitleActions(question: Question): void;
|
|
@@ -2865,7 +2883,7 @@ export declare class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
|
2865
2883
|
export declare class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
2866
2884
|
constructor();
|
|
2867
2885
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
2868
|
-
onCreated:
|
|
2886
|
+
onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
2869
2887
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
2870
2888
|
protected isValueEmpty(val: any): boolean;
|
|
2871
2889
|
isSupportGrouping(): boolean;
|
|
@@ -2875,16 +2893,6 @@ export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewMo
|
|
|
2875
2893
|
questionRoot: any;
|
|
2876
2894
|
chooseFile(model: QuestionImageAdornerViewModel): void;
|
|
2877
2895
|
}
|
|
2878
|
-
export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewModel {
|
|
2879
|
-
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
2880
|
-
get element(): QuestionRatingModel;
|
|
2881
|
-
addItem(model: QuestionRatingAdornerViewModel): void;
|
|
2882
|
-
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
2883
|
-
get allowAdd(): boolean;
|
|
2884
|
-
get allowRemove(): boolean;
|
|
2885
|
-
get addTooltip(): string;
|
|
2886
|
-
get removeTooltip(): string;
|
|
2887
|
-
}
|
|
2888
2896
|
export declare class TabJsonEditorAcePlugin extends TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
2889
2897
|
constructor(creator: CreatorBase);
|
|
2890
2898
|
protected createModel(creator: CreatorBase): JsonEditorBaseModel;
|
|
@@ -3532,7 +3540,7 @@ export declare var propertyGridCss: {
|
|
|
3532
3540
|
export declare var json: {
|
|
3533
3541
|
name: string,
|
|
3534
3542
|
showInToolbox: boolean,
|
|
3535
|
-
createElements: any,
|
|
3543
|
+
createElements: (panel: any) => void,
|
|
3536
3544
|
};
|
|
3537
3545
|
export declare var DEFAULT_MONITOR_DPI: number;
|
|
3538
3546
|
export declare var simulatorDevices: {
|
|
@@ -3716,20 +3724,20 @@ export declare var PropertyGridEditorCollection: {
|
|
|
3716
3724
|
editors: any,
|
|
3717
3725
|
fitHash: any,
|
|
3718
3726
|
clearHash: any,
|
|
3719
|
-
register:
|
|
3720
|
-
getEditor:
|
|
3721
|
-
isEditorFit:
|
|
3722
|
-
getJSON: any,
|
|
3723
|
-
onCreated: any,
|
|
3724
|
-
onAfterRenderQuestion: any,
|
|
3725
|
-
onMatrixCellCreated: any,
|
|
3726
|
-
onMatrixCellValueChanged: any,
|
|
3727
|
-
onMatrixAllowRemoveRow:
|
|
3728
|
-
onGetMatrixRowAction: any,
|
|
3729
|
-
onUpdateQuestionCssClasses: any,
|
|
3730
|
-
onGetQuestionTitleActions: any,
|
|
3731
|
-
onValueChanged:
|
|
3732
|
-
onMasterValueChanged:
|
|
3727
|
+
register: (editor: IPropertyGridEditor) => void,
|
|
3728
|
+
getEditor: (prop: JsonObjectProperty, context?: string) => IPropertyGridEditor,
|
|
3729
|
+
isEditorFit: (prop: JsonObjectProperty, asDefault?: boolean) => IPropertyGridEditor,
|
|
3730
|
+
getJSON: (obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions, context?: string) => any,
|
|
3731
|
+
onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => any,
|
|
3732
|
+
onAfterRenderQuestion: (obj: Base, prop: JsonObjectProperty, evtOptions: any) => void,
|
|
3733
|
+
onMatrixCellCreated: (obj: Base, prop: JsonObjectProperty, options: any) => void,
|
|
3734
|
+
onMatrixCellValueChanged: (obj: Base, prop: JsonObjectProperty, options: any) => void,
|
|
3735
|
+
onMatrixAllowRemoveRow: (obj: Base, prop: JsonObjectProperty, row: MatrixDynamicRowModel) => boolean,
|
|
3736
|
+
onGetMatrixRowAction: (obj: Base, prop: JsonObjectProperty, options: any, setObjFunc: any) => any,
|
|
3737
|
+
onUpdateQuestionCssClasses: (obj: Base, prop: JsonObjectProperty, options: any) => void,
|
|
3738
|
+
onGetQuestionTitleActions: (obj: Base, prop: JsonObjectProperty, options: any) => void,
|
|
3739
|
+
onValueChanged: (obj: Base, prop: JsonObjectProperty, question: Question) => void,
|
|
3740
|
+
onMasterValueChanged: (obj: Base, prop: JsonObjectProperty, question: Question) => void,
|
|
3733
3741
|
};
|
|
3734
3742
|
export declare var translationCss: {
|
|
3735
3743
|
root: string,
|