survey-creator-core 1.9.28 → 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.
@@ -1,17 +1,17 @@
1
1
  /*
2
- * Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.28
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
  */
6
- import { Base, JsonObjectProperty, Question, ItemValue, MatrixDropdownColumn } from "survey-core";
7
- import { IAction, SurveyModel, Action, ActionContainer, DragDropSurveyElements } from "survey-core";
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, ImageItemValue } from "survey-core";
13
- import { HashTable, QuestionMatrixDynamicModel, QuestionMatrixModel, QuestionMatrixDropdownModel, QuestionPanelDynamicModel } from "survey-core";
14
- import { QuestionCommentModel, QuestionRatingModel, MatrixDynamicRowModel } from "survey-core";
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;
@@ -116,14 +117,14 @@ export interface ISurveyLogicType {
116
117
  dependedOnPropertyName?: string;
117
118
  isInvisible?: boolean;
118
119
  showInUI?: boolean;
119
- showIf?: any;
120
- getCollection?: any;
120
+ showIf?: (survey: SurveyModel) => boolean;
121
+ getCollection?: (survey: SurveyModel) => any;
121
122
  isUniqueItem?: boolean;
122
123
  questionNames?: any;
123
- getDisplayText?: any;
124
- getElementName?: any;
125
- getSelectorChoices?: any;
126
- supportContext?: any;
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;
127
128
  getParentElement(element: Base): Base;
128
129
  }
129
130
  export interface ISurveyLogicItemOwner {
@@ -159,20 +160,20 @@ export interface IPropertyGridEditor {
159
160
  fit(prop: JsonObjectProperty, context?: string): boolean;
160
161
  isDefault?: any;
161
162
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
162
- showModalPropertyEditor?: any;
163
- onCreated?: any;
164
- onAfterRenderQuestion?: any;
165
- createPropertyEditorSetup?: any;
166
- isPropertyEditorSetupEnabled?: any;
167
- canClearPropertyValue?: any;
168
- clearPropertyValue?: any;
169
- onMasterValueChanged?: any;
170
- onAddIntoPropertyValue?: any;
171
- onMatrixCellCreated?: any;
172
- onMatrixCellValueChanged?: any;
173
- onMatrixAllowRemoveRow?: any;
174
- onGetQuestionTitleActions?: any;
175
- 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;
176
177
  }
177
178
  export interface ITranslationLocales {
178
179
  locales: any;
@@ -180,7 +181,7 @@ export interface ITranslationLocales {
180
181
  readOnly: boolean;
181
182
  getLocaleName(loc: string): string;
182
183
  availableTranlationsChangedCallback: any;
183
- tranlationChangedCallback: any;
184
+ tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
184
185
  translateItemAfterRender(item: TranslationItem, el: any, locale: string): any;
185
186
  fireOnObjCreating(obj: Base): any;
186
187
  removeLocale(loc: string): void;
@@ -206,7 +207,7 @@ export interface IKeyboardShortcut {
206
207
  name?: string;
207
208
  hotKey: any;
208
209
  macOsHotkey?: any;
209
- execute: any;
210
+ execute: (context: any) => void;
210
211
  }
211
212
  export interface ICreatorOptions {
212
213
  }
@@ -248,7 +249,7 @@ export declare class ConditionEditorItem {
248
249
  value: any;
249
250
  }
250
251
  export declare class ConditionEditorItemsBuilder {
251
- constructor(hasValue?: any);
252
+ constructor(hasValue?: (name: string) => boolean);
252
253
  build(text: string): Array<ConditionEditorItem>;
253
254
  }
254
255
  export declare class CreatorAction extends Action implements ICreatorAction {
@@ -343,7 +344,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
343
344
  newPanels: any;
344
345
  newQuestionChangedNames: any;
345
346
  selectionHistoryControllerValue: SelectionHistory;
346
- saveSurveyFuncValue: any;
347
+ saveSurveyFuncValue: (no: number, onSaveCallback: any, isSuccess: boolean) => any;
347
348
  viewType: string;
348
349
  /*
349
350
  * Returns the current show view name. The possible returns values are:
@@ -458,6 +459,13 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
458
459
  onShowingProperty: Event<(sender: CreatorBase, options: any) => any, any>;
459
460
  onCanShowProperty: Event<(sender: CreatorBase, options: any) => any, any>;
460
461
  /*
462
+ * The event is called after a survey that represents the Property Grid is created and all its questions (property editors) are setup.
463
+ * You can use this event to modify this survey to change the property grid behavior
464
+ * <br/> options.obj the survey object that is currently editing in the property grid
465
+ * <br/> options.survey the property grid survey
466
+ */
467
+ onPropertyGridSurveyCreated: Event<(sender: CreatorBase, options: any) => any, any>;
468
+ /*
461
469
  * 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
470
  * You can use this event to modify the property editor properties or set event handlers to customize it's behavior
463
471
  * <br/> options.obj the survey object that is currently editing in the property grid
@@ -556,16 +564,29 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
556
564
  */
557
565
  onPropertyValidationCustomError: Event<(sender: CreatorBase, options: any) => any, any>;
558
566
  /*
559
- * Use this event to change the value entered in the property editor. You may call a validation, so an end user sees the error immediately
560
- * <br/> sender the survey creator object that fires the event
561
- * <br/> options.obj the survey object which property is edited in the Property Editor.
562
- * <br/> options.propertyName the name of the edited property.
563
- * <br/> options.value the property value.
564
- * <br/> options.newValue set the corrected value into this property. Leave it null if you are ok with the entered value.
565
- * <br/> options.doValidation set the value to true to call the property validation. If there is an error, the user sees it immediately.
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.
566
578
  */
567
579
  onPropertyValueChanging: Event<(sender: CreatorBase, options: any) => any, any>;
568
580
  /*
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.
587
+ */
588
+ onSurveyPropertyValueChanged: Event<(sender: CreatorBase, options: any) => any, any>;
589
+ /*
569
590
  * Use this event to modify the list (name and titles) of the questions available in a condition editor.
570
591
  * <br/> sender the survey creator object that fires the event
571
592
  * <br/> options.obj the survey object which property is edited in the Property Editor.
@@ -738,7 +759,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
738
759
  /*
739
760
  * This callback is used internally for setting survey JSON text.
740
761
  */
741
- setSurveyJSONTextCallback: any;
762
+ setSurveyJSONTextCallback: (text: string) => void;
742
763
  /*
743
764
  * You need to set this property to true if you want to use tabs instead of accordion in the popup element's editor.
744
765
  */
@@ -794,6 +815,11 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
794
815
  get showSimulatorInPreviewTab(): boolean;
795
816
  set showSimulatorInPreviewTab(val: boolean);
796
817
  /*
818
+ * Specifies a theme to use for the survey in the Preview tab.
819
+ * Accepted values: `"modern"`, `"default"`, `"defaultV2"`
820
+ */
821
+ themeForPreview: string;
822
+ /*
797
823
  * Set this property to false to disable pages adding, editing and deleting
798
824
  */
799
825
  allowModifyPages: boolean;
@@ -982,6 +1008,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
982
1008
  onStateChanged: Event<(sender: CreatorBase, options: any) => any, any>;
983
1009
  notifier: Notifier;
984
1010
  setModified(options?: any): void;
1011
+ notifySurveyPropertyChanged(options: any): void;
985
1012
  /*
986
1013
  * This function triggers user notification (via the alert() function if no onNotify event handler added).
987
1014
  */
@@ -1064,14 +1091,14 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1064
1091
  /*
1065
1092
  * Open file chooser dialog
1066
1093
  */
1067
- chooseFiles(input: any, onFilesChosen: any): void;
1094
+ chooseFiles(input: any, onFilesChosen: (files: any) => void): void;
1068
1095
  /*
1069
1096
  * Upload the files on a server
1070
1097
  */
1071
- uploadFiles(files: any, uploadingCallback: any): void;
1098
+ uploadFiles(files: any, uploadingCallback: (status: string, data: any) => any): void;
1072
1099
  initKeyboardShortcuts(rootNode: any): void;
1073
1100
  removeKeyboardShortcuts(rootNode: any): void;
1074
- protected onKeyDownHandler: any;
1101
+ protected onKeyDownHandler: (event: any) => void;
1075
1102
  shortcuts: any;
1076
1103
  registerShortcut(name: string, shortcut: IKeyboardShortcut): void;
1077
1104
  unRegisterShortcut(name: string): void;
@@ -1084,6 +1111,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1084
1111
  get alwaySaveTextInPropertyEditors(): boolean;
1085
1112
  set alwaySaveTextInPropertyEditors(val: boolean);
1086
1113
  onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
1114
+ onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): void;
1087
1115
  onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
1088
1116
  onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: any): void;
1089
1117
  onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
@@ -1115,8 +1143,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1115
1143
  convertCurrentQuestion(newType: string): void;
1116
1144
  getAddNewQuestionText(currentAddQuestionType?: string): any;
1117
1145
  get addNewQuestionText(): any;
1118
- getQuestionTypeSelectorModel(beforeAdd: any, panel?: IPanel): any;
1119
- 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;
1120
1148
  createIActionBarItemByClass(className: string, title: string, iconName: string): Action;
1121
1149
  onElementMenuItemsChanged(element: any, items: any): void;
1122
1150
  getElementAllowOperations(element: SurveyElement): any;
@@ -1142,8 +1170,7 @@ export declare class CreatorResponsivityManager {
1142
1170
  currentWidth: any;
1143
1171
  prevShowToolbox: any;
1144
1172
  prevShowPageNavigator: any;
1145
- screenWidth: any;
1146
- devicePixelRatio: any;
1173
+ static screenSizeBreakpoints: any;
1147
1174
  process(): void;
1148
1175
  dispose(): void;
1149
1176
  }
@@ -1239,7 +1266,7 @@ export declare class ItemValueWrapperViewModel extends Base {
1239
1266
  allowItemOperations: ICollectionItemAllowOperations;
1240
1267
  canTouchItems: boolean;
1241
1268
  onPointerDown(pointerDownEvent: any): void;
1242
- startDragItemValue: any;
1269
+ startDragItemValue: (pointerDownEvent: any, currentTarget: any) => void;
1243
1270
  dispose(): void;
1244
1271
  handleDragDropGhostPositionChanged: any;
1245
1272
  get isDraggable(): boolean;
@@ -1299,7 +1326,7 @@ export declare class MatrixCellWrapperViewModel extends Base {
1299
1326
  row: any;
1300
1327
  column: any;
1301
1328
  isSelected: boolean;
1302
- onSelectionChanged: any;
1329
+ onSelectionChanged: (sender: any, options: any) => void;
1303
1330
  editQuestion(model: MatrixCellWrapperViewModel): void;
1304
1331
  get context(): any;
1305
1332
  selectContext(model: MatrixCellWrapperViewModel, event: any): void;
@@ -1316,7 +1343,7 @@ export declare class Notifier extends Base {
1316
1343
  notify(message: string, type?: "info" | "error"): void;
1317
1344
  }
1318
1345
  export declare class ObjectSelector {
1319
- constructor(creator: CreatorBase, survey: SurveyModel, getObjectDisplayName?: any);
1346
+ constructor(creator: CreatorBase, survey: SurveyModel, getObjectDisplayName?: (obj: Base, reason: string, displayName: string) => string);
1320
1347
  surveyValue: SurveyModel;
1321
1348
  deepestLevel: number;
1322
1349
  filteredTextInLow: string;
@@ -1330,18 +1357,17 @@ export declare class ObjectSelector {
1330
1357
  export declare class ObjectSelectorItem extends Action {
1331
1358
  constructor(id: number, data: Base, title: string, level: number);
1332
1359
  data: Base;
1333
- title: string;
1334
1360
  level: number;
1335
1361
  textInLow: string;
1336
1362
  hasText(filteredTextInLow: string): boolean;
1337
1363
  }
1338
1364
  export declare class ObjectSelectorModel extends Base {
1339
- constructor(creator: CreatorBase, getObjectDisplayName?: any);
1365
+ constructor(creator: CreatorBase, getObjectDisplayName?: (obj: Base, reason: string, displayName: string) => string);
1340
1366
  selector: ObjectSelector;
1341
1367
  listModelValue: ListModel;
1342
1368
  isVisible: boolean;
1343
1369
  get list(): ListModel;
1344
- show(survey: SurveyModel, selectedObj: Base, onClose: any): void;
1370
+ show(survey: SurveyModel, selectedObj: Base, onClose: (obj: Base) => void): void;
1345
1371
  refresh(): void;
1346
1372
  }
1347
1373
  export declare class PageNavigatorViewModel extends Base {
@@ -1349,8 +1375,8 @@ export declare class PageNavigatorViewModel extends Base {
1349
1375
  icon: string;
1350
1376
  pageListModel: ListModel;
1351
1377
  popupModel: any;
1352
- pagesChangedFunc: any;
1353
- currentPagesChangedFunc: any;
1378
+ pagesChangedFunc: (sender: PagesController, options: any) => void;
1379
+ currentPagesChangedFunc: (sender: PagesController, options: any) => void;
1354
1380
  dispose(): void;
1355
1381
  items: any;
1356
1382
  visible: boolean;
@@ -1366,7 +1392,7 @@ export declare class PagesController extends Base {
1366
1392
  creator: ICreatorSelectionOwner;
1367
1393
  onPagesChanged: EventBase<PagesController>;
1368
1394
  onCurrentPageChanged: EventBase<PagesController>;
1369
- currentPageChangedFunc: any;
1395
+ currentPageChangedFunc: (sender: SurveyModel, options: any) => any;
1370
1396
  surveyValue: SurveyModel;
1371
1397
  page2Display: PageModel;
1372
1398
  get survey(): SurveyModel;
@@ -1390,7 +1416,7 @@ export declare class PropertyGridModel {
1390
1416
  currentlySelectedProperty: string;
1391
1417
  currentlySelectedPanel: PanelModel;
1392
1418
  objValueChangedCallback: any;
1393
- changedFromActionCallback: any;
1419
+ changedFromActionCallback: (obj: Base, propertyName: string) => void;
1394
1420
  refresh(): void;
1395
1421
  get obj(): Base;
1396
1422
  set obj(val: Base);
@@ -1462,6 +1488,19 @@ export declare class QuestionLinkValueModel extends Question {
1462
1488
  doLinkClick(): void;
1463
1489
  doClearClick(): void;
1464
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
+ }
1465
1504
  /*
1466
1505
  * The list of Toolbox items.
1467
1506
  */
@@ -1532,6 +1571,10 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
1532
1571
  * Add a copied Question into Toolbox
1533
1572
  */
1534
1573
  addCopiedItem(question: Question, options?: any): void;
1574
+ /*
1575
+ * Add a toolbox item
1576
+ */
1577
+ getActionByItem(item: IQuestionToolboxItem): QuestionToolboxItem;
1535
1578
  addItem(item: IQuestionToolboxItem, index?: number): void;
1536
1579
  /*
1537
1580
  * Add a new toolbox item, add delete the old item with the same name
@@ -1606,7 +1649,6 @@ export declare class QuestionToolboxItem extends Action implements IQuestionTool
1606
1649
  iconName: string;
1607
1650
  name: string;
1608
1651
  json: any;
1609
- title: string;
1610
1652
  tooltip: string;
1611
1653
  isCopied: boolean;
1612
1654
  category: string;
@@ -1624,9 +1666,9 @@ export declare class ResizeManager {
1624
1666
  mouseDevice: "mouse" | "pointer" | "touch";
1625
1667
  events: any;
1626
1668
  setHandles(newVal: string): void;
1627
- onMouseDownListener: any;
1628
- resize: any;
1629
- stopResize: any;
1669
+ onMouseDownListener: (e: any) => void;
1670
+ resize: (e: any) => void;
1671
+ stopResize: (e: any) => void;
1630
1672
  dispose(): void;
1631
1673
  }
1632
1674
  export declare class RowViewModel extends Base {
@@ -1722,8 +1764,8 @@ export declare class SurveyElementAdornerBase<T extends SurveyElement = SurveyEl
1722
1764
  creator: CreatorBase;
1723
1765
  actionContainer: any;
1724
1766
  allowDragging: boolean;
1725
- selectedPropPageFunc: any;
1726
- sidebarFlyoutModeChangedFunc: any;
1767
+ selectedPropPageFunc: (sender: Base, options: any) => void;
1768
+ sidebarFlyoutModeChangedFunc: (sender: Base, options: any) => void;
1727
1769
  protected detachElement(surveyElement: T): void;
1728
1770
  protected attachElement(surveyElement: T): void;
1729
1771
  protected setSurveyElement(surveyElement: T): void;
@@ -1796,7 +1838,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
1796
1838
  static set visibleActions(val: any);
1797
1839
  static get types(): any;
1798
1840
  invisibleItems: any;
1799
- onChangedCallback: any;
1841
+ onChangedCallback: (item: SurveyLogicItem, changeType: string) => void;
1800
1842
  /*
1801
1843
  * The event is called when logic item is saved.
1802
1844
  * <br/> options.item is the saved logic item.
@@ -2041,8 +2083,8 @@ export declare class SurveySimulatorModel extends Base {
2041
2083
  get zoomScale(): number;
2042
2084
  activateZoom: any;
2043
2085
  deactivateZoom: any;
2044
- listenTryToZoomWithWheel: any;
2045
- listenTryToZoom: any;
2086
+ listenTryToZoomWithWheel: (e: any) => boolean;
2087
+ listenTryToZoom: (e: any) => boolean;
2046
2088
  tryToZoom(data: any, event: any): boolean;
2047
2089
  resetZoomParameters(): void;
2048
2090
  get activeDevice(): string;
@@ -2067,8 +2109,8 @@ export declare class SurveyTextWorker {
2067
2109
  export declare class TabDesignerViewModel extends Base {
2068
2110
  constructor(creator: CreatorBase);
2069
2111
  widthUpdater: any;
2070
- checkNewPageHandler: any;
2071
- surveyOnPropertyChanged: any;
2112
+ checkNewPageHandler: (sender: SurveyModel, options: any) => void;
2113
+ surveyOnPropertyChanged: (sender: SurveyModel, options: any) => void;
2072
2114
  pagesControllerValue: PagesController;
2073
2115
  newPage: PageModel;
2074
2116
  showNewPage: boolean;
@@ -2098,7 +2140,7 @@ export declare class TestSurveyTabViewModel extends Base {
2098
2140
  nextPageAction: Action;
2099
2141
  selectPageAction: Action;
2100
2142
  pagePopupModel: any;
2101
- onSurveyCreatedCallback: any;
2143
+ onSurveyCreatedCallback: (survey: SurveyModel) => any;
2102
2144
  simulator: SurveySimulatorModel;
2103
2145
  showInvisibleElements: any;
2104
2146
  showPagesInTestSurveyTab: any;
@@ -2127,12 +2169,12 @@ export declare class ToolbarActionContainer extends ActionContainer {
2127
2169
  export declare class ToolboxToolViewModel extends Base {
2128
2170
  constructor(item: IQuestionToolboxItem, creator: CreatorBase);
2129
2171
  dragOrClickHelper: DragOrClickHelper;
2130
- click: any;
2172
+ click: (event: any) => void;
2131
2173
  get allowAdd(): boolean;
2132
2174
  onPointerDown(pointerDownEvent: any): boolean;
2133
2175
  _node: any;
2134
- onPointerUp: any;
2135
- startDragToolboxItem: any;
2176
+ onPointerUp: (pointerUpEvent: any) => void;
2177
+ startDragToolboxItem: (pointerDownEvent: any, currentTarget: any) => boolean;
2136
2178
  }
2137
2179
  export declare class Transaction {
2138
2180
  constructor(_name: string);
@@ -2150,14 +2192,14 @@ export declare class Translation extends Base implements ITranslationLocales {
2150
2192
  exportToCSVFileUI: any;
2151
2193
  importFromCSVFileUI: any;
2152
2194
  importFinishedCallback: any;
2153
- translateItemAfterRenderCallback: any;
2195
+ translateItemAfterRenderCallback: (item: TranslationItem, el: any, locale: string) => void;
2154
2196
  availableTranlationsChangedCallback: any;
2155
- tranlationChangedCallback: any;
2156
- translationStringVisibilityCallback: any;
2157
- localeInitialVisibleCallback: any;
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;
2158
2200
  surveyValue: SurveyModel;
2159
2201
  settingsSurveyValue: SurveyModel;
2160
- onBaseObjCreatingCallback: any;
2202
+ onBaseObjCreatingCallback: (obj: Base) => void;
2161
2203
  chooseLanguagePopupModel: any;
2162
2204
  chooseLanguageActions: any;
2163
2205
  getType(): string;
@@ -2171,7 +2213,7 @@ export declare class Translation extends Base implements ITranslationLocales {
2171
2213
  stringsSurvey: SurveyModel;
2172
2214
  stringsHeaderSurvey: SurveyModel;
2173
2215
  isEmpty: boolean;
2174
- makeObservable(onBaseObjCreating: any): void;
2216
+ makeObservable(onBaseObjCreating: (obj: Base) => void): void;
2175
2217
  fireOnObjCreating(obj: Base): void;
2176
2218
  get settingsSurvey(): SurveyModel;
2177
2219
  get localesQuestion(): QuestionCheckboxModel;
@@ -2197,6 +2239,10 @@ export declare class Translation extends Base implements ITranslationLocales {
2197
2239
  importFromCSVFile(file: any): void;
2198
2240
  mergeLocaleWithDefault(): void;
2199
2241
  translateItemAfterRender(item: TranslationItem, el: any, locale: string): void;
2242
+ /*
2243
+ * Update a translation item with given values
2244
+ */
2245
+ updateItemWithStrings(item: TranslationItem, values: any, locales: any): void;
2200
2246
  dispose(): void;
2201
2247
  }
2202
2248
  export declare class TranslationItemBase extends Base {
@@ -2270,7 +2316,7 @@ export declare class UndoRedoManager {
2270
2316
  redo(): void;
2271
2317
  suspend(): void;
2272
2318
  resume(): void;
2273
- changesFinishedCallback: any;
2319
+ changesFinishedCallback: (changes: IUndoRedoChange) => void;
2274
2320
  }
2275
2321
  export declare class AceJsonEditorModel extends JsonEditorBaseModel {
2276
2322
  constructor(creator: CreatorBase);
@@ -2298,6 +2344,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
2298
2344
  maximumRateValues: number;
2299
2345
  getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
2300
2346
  onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
2347
+ onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): void;
2301
2348
  onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
2302
2349
  onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: any): void;
2303
2350
  onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
@@ -2412,7 +2459,7 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
2412
2459
  get isRequired(): any;
2413
2460
  set isRequired(val: any);
2414
2461
  onPointerDown(pointerDownEvent: any): void;
2415
- startDragSurveyElement: any;
2462
+ startDragSurveyElement: (event: any) => boolean;
2416
2463
  get allowEdit(): boolean;
2417
2464
  get showAddQuestionButton(): boolean;
2418
2465
  getConvertToTypesActions(): Array<IAction>;
@@ -2600,7 +2647,7 @@ export declare class TranslationGroup extends TranslationItemBase {
2600
2647
  get localeCount(): number;
2601
2648
  get locWidth(): string;
2602
2649
  getLocaleName(loc: string): string;
2603
- removeLocale: any;
2650
+ removeLocale: (loc: string) => void;
2604
2651
  reset(): void;
2605
2652
  fillLocales(locales: any): void;
2606
2653
  makeObservable(): void;
@@ -2667,7 +2714,7 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
2667
2714
  addConditionQuestionsHash: any;
2668
2715
  isModalValue: boolean;
2669
2716
  allConditionQuestions: any;
2670
- onContextChanged: any;
2717
+ onContextChanged: (context: Question) => void;
2671
2718
  get title(): string;
2672
2719
  set title(val: string);
2673
2720
  get isModal(): boolean;
@@ -2783,7 +2830,7 @@ export declare class PropertyGridEditorMatrix extends PropertyGridEditor {
2783
2830
  constructor();
2784
2831
  onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
2785
2832
  onMatrixCellCreated(obj: Base, options: any): void;
2786
- onGetMatrixRowAction(obj: Base, options: any, setObjFunc: any): void;
2833
+ onGetMatrixRowAction(obj: Base, options: any, setObjFunc: (obj: Base) => void): void;
2787
2834
  onGetQuestionTitleActions(obj: Base, options: any): void;
2788
2835
  onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
2789
2836
  protected updateTitleActions(question: Question): void;
@@ -2836,7 +2883,7 @@ export declare class PropertyGridEditorStringBase extends PropertyGridEditor {
2836
2883
  export declare class PropertyGridValueEditorBase extends PropertyGridEditor {
2837
2884
  constructor();
2838
2885
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
2839
- onCreated: any;
2886
+ onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
2840
2887
  clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
2841
2888
  protected isValueEmpty(val: any): boolean;
2842
2889
  isSupportGrouping(): boolean;
@@ -2846,16 +2893,6 @@ export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewMo
2846
2893
  questionRoot: any;
2847
2894
  chooseFile(model: QuestionImageAdornerViewModel): void;
2848
2895
  }
2849
- export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewModel {
2850
- constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
2851
- get element(): QuestionRatingModel;
2852
- addItem(model: QuestionRatingAdornerViewModel): void;
2853
- removeItem(model: QuestionRatingAdornerViewModel): void;
2854
- get allowAdd(): boolean;
2855
- get allowRemove(): boolean;
2856
- get addTooltip(): string;
2857
- get removeTooltip(): string;
2858
- }
2859
2896
  export declare class TabJsonEditorAcePlugin extends TabJsonEditorBasePlugin implements ICreatorPlugin {
2860
2897
  constructor(creator: CreatorBase);
2861
2898
  protected createModel(creator: CreatorBase): JsonEditorBaseModel;
@@ -3101,6 +3138,7 @@ export declare function getElementWrapperComponentData(element: any, reason: str
3101
3138
  export declare function getItemValueWrapperComponentName(item: ItemValue, question: QuestionSelectBase): string;
3102
3139
  export declare function getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase): any;
3103
3140
  export declare function isStringEditable(element: any, name: string): boolean;
3141
+ export declare function isTextInput(target: any): boolean;
3104
3142
  export declare var editorLocalization: EditorLocalization;
3105
3143
  export declare var defaultStrings: any;
3106
3144
  export declare var settings: {
@@ -3502,7 +3540,7 @@ export declare var propertyGridCss: {
3502
3540
  export declare var json: {
3503
3541
  name: string,
3504
3542
  showInToolbox: boolean,
3505
- createElements: any,
3543
+ createElements: (panel: any) => void,
3506
3544
  };
3507
3545
  export declare var DEFAULT_MONITOR_DPI: number;
3508
3546
  export declare var simulatorDevices: {
@@ -3686,20 +3724,20 @@ export declare var PropertyGridEditorCollection: {
3686
3724
  editors: any,
3687
3725
  fitHash: any,
3688
3726
  clearHash: any,
3689
- register: any,
3690
- getEditor: any,
3691
- isEditorFit: any,
3692
- getJSON: any,
3693
- onCreated: any,
3694
- onAfterRenderQuestion: any,
3695
- onMatrixCellCreated: any,
3696
- onMatrixCellValueChanged: any,
3697
- onMatrixAllowRemoveRow: any,
3698
- onGetMatrixRowAction: any,
3699
- onUpdateQuestionCssClasses: any,
3700
- onGetQuestionTitleActions: any,
3701
- onValueChanged: any,
3702
- onMasterValueChanged: any,
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,
3703
3741
  };
3704
3742
  export declare var translationCss: {
3705
3743
  root: string,