survey-creator-core 1.9.61 → 1.9.62

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-core",
3
- "version": "1.9.61",
3
+ "version": "1.9.62",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -37,7 +37,7 @@
37
37
  "ace-builds": "^1.4.12"
38
38
  },
39
39
  "dependencies": {
40
- "survey-core": "1.9.61"
40
+ "survey-core": "1.9.62"
41
41
  },
42
42
  "devDependencies": {}
43
43
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.61
2
+ * SurveyJS Creator v1.9.62
3
3
  * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -912,6 +912,18 @@ declare module "creator-settings" {
912
912
  * Use it to change the default question JSON on dropping it into designer or converting questions
913
913
  */
914
914
  defaultJSON: {
915
+ dropdown: {
916
+ choices: string[];
917
+ };
918
+ checkbox: {
919
+ choices: string[];
920
+ };
921
+ radiogroup: {
922
+ choices: string[];
923
+ };
924
+ ranking: {
925
+ choices: string[];
926
+ };
915
927
  imagepicker: {
916
928
  choices: {
917
929
  value: string;
@@ -3878,6 +3890,8 @@ declare module "components/tabs/logic" {
3878
3890
  import { ISurveyLogicItemOwner, SurveyLogicItem, SurveyLogicAction } from "components/tabs/logic-items";
3879
3891
  import { SurveyLogicType } from "components/tabs/logic-types";
3880
3892
  export function initLogicOperator(question: QuestionDropdownModel): void;
3893
+ export class LogicEvent extends Event<(sender: SurveyLogic, options: any) => any, any> {
3894
+ }
3881
3895
  export class SurveyLogic extends Base implements ISurveyLogicItemOwner {
3882
3896
  survey: SurveyModel;
3883
3897
  options: ISurveyCreatorOptions;
@@ -3891,7 +3905,7 @@ declare module "components/tabs/logic" {
3891
3905
  * The event is called when logic item is saved.
3892
3906
  * options.item is the saved logic item.
3893
3907
  */
3894
- onLogicItemSaved: Event<(sender: SurveyLogic, options: any) => any, any>;
3908
+ onLogicItemSaved: LogicEvent;
3895
3909
  /**
3896
3910
  * The event is called before logic item is saved. You can set options.error to non empty string to show error instead of saving the item.
3897
3911
  * You can use options.item.actions to access actions and optionally set errorText to a particular action.
@@ -3900,18 +3914,18 @@ declare module "components/tabs/logic" {
3900
3914
  * usedNamesInExpression - the string list of all variables (questions, calculatedValues, and so on) that are used in expression
3901
3915
  * error - the error string. It is empty by default. You have to set it to non-empty string to show the error on saving.
3902
3916
  */
3903
- onLogicItemValidation: Event<(sender: SurveyLogic, options: any) => any, any>;
3917
+ onLogicItemValidation: LogicEvent;
3904
3918
  /**
3905
3919
  * The event is called before logic item is being removed.
3906
3920
  * options.allowRemove is the option you can set to false and prevent removing.
3907
3921
  * options.item is the logic item to remove.
3908
3922
  */
3909
- onLogicItemRemoving: Event<(sender: SurveyLogic, options: any) => any, any>;
3923
+ onLogicItemRemoving: LogicEvent;
3910
3924
  /**
3911
3925
  * The event is called when logic item is removed.
3912
3926
  * options.item is the removed logic item.
3913
3927
  */
3914
- onLogicItemRemoved: Event<(sender: SurveyLogic, options: any) => any, any>;
3928
+ onLogicItemRemoved: LogicEvent;
3915
3929
  constructor(survey: SurveyModel, options?: ISurveyCreatorOptions);
3916
3930
  dispose(): void;
3917
3931
  items: Array<SurveyLogicItem>;
@@ -5038,6 +5052,7 @@ declare module "components/link-value" {
5038
5052
  showTooltip: boolean;
5039
5053
  constructor(name: string, json?: any);
5040
5054
  protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
5055
+ get ariaRole(): string;
5041
5056
  get tooltip(): string;
5042
5057
  getType(): string;
5043
5058
  doLinkClick(): void;
@@ -5345,8 +5360,8 @@ declare module "plugins/undo-redo/undo-redo-manager" {
5345
5360
  }
5346
5361
  }
5347
5362
  declare module "plugins/undo-redo/undo-redo-controller" {
5348
- import { Action, Base, Event } from "survey-core";
5349
- import { CreatorBase } from "creator-base";
5363
+ import { Action, Base } from "survey-core";
5364
+ import { CreatorBase, CreatorEvent } from "creator-base";
5350
5365
  import { UndoRedoManager } from "plugins/undo-redo/undo-redo-manager";
5351
5366
  export class UndoRedoController extends Base {
5352
5367
  private creator;
@@ -5368,22 +5383,22 @@ declare module "plugins/undo-redo/undo-redo-controller" {
5368
5383
  * The event is called before undo happens.
5369
5384
  * options.canUndo a boolean value. It is true by default. Set it false to hide prevent undo operation.
5370
5385
  */
5371
- onBeforeUndo: Event<(sender: CreatorBase, options: any) => any, any>;
5386
+ onBeforeUndo: CreatorEvent;
5372
5387
  /**
5373
5388
  * The event is called before redo happens.
5374
5389
  * options.canRedo a boolean value. It is true by default. Set it false to hide prevent redo operation.
5375
5390
  */
5376
- onBeforeRedo: Event<(sender: CreatorBase, options: any) => any, any>;
5391
+ onBeforeRedo: CreatorEvent;
5377
5392
  /**
5378
5393
  * The event is called after undo happens.
5379
5394
  * options.state is an undo/redo item.
5380
5395
  */
5381
- onAfterUndo: Event<(sender: CreatorBase, options: any) => any, any>;
5396
+ onAfterUndo: CreatorEvent;
5382
5397
  /**
5383
5398
  * The event is called after redo happens.
5384
5399
  * options.state is an undo/redo item.
5385
5400
  */
5386
- onAfterRedo: Event<(sender: CreatorBase, options: any) => any, any>;
5401
+ onAfterRedo: CreatorEvent;
5387
5402
  }
5388
5403
  }
5389
5404
  declare module "plugins/undo-redo/index" {
@@ -5839,6 +5854,8 @@ declare module "creator-base" {
5839
5854
  protected getRenderedActions(): Array<Action>;
5840
5855
  }
5841
5856
  export type toolboxLocationType = "left" | "right" | "sidebar";
5857
+ export class CreatorEvent extends Survey.Event<(sender: CreatorBase, options: any) => any, any> {
5858
+ }
5842
5859
  /**
5843
5860
  * Base class for Survey Creator.
5844
5861
  */
@@ -5999,7 +6016,7 @@ declare module "creator-base" {
5999
6016
  *- options.elementType the type of the element: 'question', 'panel' or 'page'.
6000
6017
  *- options.allowing set it to false to cancel the element deleting
6001
6018
  */
6002
- onElementDeleting: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6019
+ onElementDeleting: CreatorEvent;
6003
6020
  /**
6004
6021
  * The event is called on setting a readOnly property of the property editor. By default the property.readOnly property is used.
6005
6022
  * You may changed it and make the property editor read only or enabled for a particular object.
@@ -6010,14 +6027,14 @@ declare module "creator-base" {
6010
6027
  *- options.parentObj the parent object. It is null for non-nested properties. It is not null for itemvalue or column objects. The parent object is a question (dropdown, radigroup, checkbox, matrices and so on).
6011
6028
  *- options.parentProperty the parent property (Survey.JsonObjectProperty object). It is null for non-nested properties. It is not null for itemvalue or column objects. The parent object is choices, columns, rows, triggers and so on.
6012
6029
  */
6013
- onGetPropertyReadOnly: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6030
+ onGetPropertyReadOnly: CreatorEvent;
6014
6031
  /**
6015
6032
  * The event is fired when the survey creator creates a survey object (Survey.Survey).
6016
6033
  *- sender the survey creator object that fires the event
6017
6034
  *- options.survey the survey object showing in the creator.
6018
6035
  *- options.reason indicates what component of the creator requests the survey. There are several reason types: "designer" - survey for designer survey, "test" - survey for "Preview" tab and "conditionEditor", "defaultValueEditor", "restfulEditor" - surveys for different property editors.
6019
6036
  */
6020
- onSurveyInstanceCreated: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6037
+ onSurveyInstanceCreated: CreatorEvent;
6021
6038
  /**
6022
6039
  * An event that is raised when Survey Creator obtains a survey element name to display it in the UI.
6023
6040
  *
@@ -6049,7 +6066,7 @@ declare module "creator-base" {
6049
6066
  * - `"property-grid"` - Use the `"property-grid-header:element-list"` value of `options.area` instead.
6050
6067
  * - `"property-grid-title"` - Use the `"property-grid-header:selected-element"` value of `options.area` instead.
6051
6068
  */
6052
- onGetObjectDisplayName: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6069
+ onGetObjectDisplayName: CreatorEvent;
6053
6070
  /**
6054
6071
  * This event is raised after a user has edited a text value on the design surface. This value may include HTML markup. You can handle the `onHtmlToMarkdown` event to convert the HTML markup to Markdown.
6055
6072
  *
@@ -6061,7 +6078,7 @@ declare module "creator-base" {
6061
6078
  * - `options.html` - HTML content. Pass this field's value to an HTML-to-Markdown converter.
6062
6079
  * - `options.text` - A text string that may contain Markdown. Assign the result of the HTML-to-Markdown conversion to this field.
6063
6080
  */
6064
- onHtmlToMarkdown: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6081
+ onHtmlToMarkdown: CreatorEvent;
6065
6082
  /**
6066
6083
  * Use this event to disable user interactions with a question or panel on the design surface.
6067
6084
  *
@@ -6079,7 +6096,7 @@ declare module "creator-base" {
6079
6096
  *
6080
6097
  * To disable a user interaction, set the correponding `allow...` property to `false`.
6081
6098
  */
6082
- onElementAllowOperations: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6099
+ onElementAllowOperations: CreatorEvent;
6083
6100
  /**
6084
6101
  * Use this event to add/remove/modify the element (question/panel) menu items.
6085
6102
  *- sender the survey creator object that fires the event
@@ -6087,7 +6104,7 @@ declare module "creator-base" {
6087
6104
  *- options.items the list of menu items. It has two required fields: text and onClick: function(obj: Survey.Base) {} and optional name field.
6088
6105
  * @see onElementAllowOperations
6089
6106
  */
6090
- onDefineElementMenuItems: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6107
+ onDefineElementMenuItems: CreatorEvent;
6091
6108
  /**
6092
6109
  * The event is called before showing a property in the Properties Grid or in the Question Editor.
6093
6110
  *- sender the survey creator object that fires the event
@@ -6099,7 +6116,7 @@ declare module "creator-base" {
6099
6116
  *
6100
6117
  * [Example: Hide a category in the Properties Grid](https://surveyjs.io/Examples/Survey-Creator?id=hidecategoryinpropertiesgrid)
6101
6118
  */
6102
- onShowingProperty: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6119
+ onShowingProperty: CreatorEvent;
6103
6120
  /**
6104
6121
  * @Deprecated Obsolete, please use onShowingProperty event.
6105
6122
  * The event is called before showing a property in the Property Grid or in Question Editor.
@@ -6110,14 +6127,14 @@ declare module "creator-base" {
6110
6127
  *- options.parentObj the parent object. It is null for non-nested properties. It is not null for itemvalue or column objects. The parent object is a question (dropdown, radigroup, checkbox, matrices and so on).
6111
6128
  *- options.parentProperty the parent property (Survey.JsonObjectProperty object). It is null for non-nested properties. It is not null for itemvalue or column objects. The parent object is choices, columns, rows, triggers and so on.
6112
6129
  */
6113
- onCanShowProperty: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6130
+ onCanShowProperty: CreatorEvent;
6114
6131
  /**
6115
6132
  * The event is called after a survey that represents the Property Grid is created and all its questions (property editors) are setup.
6116
6133
  * You can use this event to modify this survey to change the property grid behavior
6117
6134
  *- options.obj the survey object that is currently editing in the property grid
6118
6135
  *- options.survey the property grid survey
6119
6136
  */
6120
- onPropertyGridSurveyCreated: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6137
+ onPropertyGridSurveyCreated: CreatorEvent;
6121
6138
  /**
6122
6139
  * The event is called after a property editor (in fact a survey question) has been created and all it's properties have been assign.
6123
6140
  * You can use this event to modify the property editor properties or set event handlers to customize it's behavior
@@ -6125,7 +6142,7 @@ declare module "creator-base" {
6125
6142
  *- options.property the property that the current property editor is editing
6126
6143
  *- options.editor the property editor. In fact it is a survey question. We are using a heavily customizable survey as a property grid in Creator V2. It means that every property editor is a question.
6127
6144
  */
6128
- onPropertyEditorCreated: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6145
+ onPropertyEditorCreated: CreatorEvent;
6129
6146
  /**
6130
6147
  * The event is called after a property editor setups its title actions.
6131
6148
  * You can use this event to modify the property editor title actions
@@ -6134,7 +6151,7 @@ declare module "creator-base" {
6134
6151
  *- options.editor the property editor. In fact it is a survey question. We are using a heavily customizable survey as a property grid in Creator V2. It means that every property editor is a question.
6135
6152
  *- options.titleActions the list of title actions.
6136
6153
  */
6137
- onPropertyEditorUpdateTitleActions: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6154
+ onPropertyEditorUpdateTitleActions: CreatorEvent;
6138
6155
  /**
6139
6156
  * An event that is raised before Survey Creator displays a pop-up window called from the Property Grid. This window allows users to edit choices, conditions, and so on.
6140
6157
  *
@@ -6149,7 +6166,7 @@ declare module "creator-base" {
6149
6166
  * - `options.popupEditor` - An editor inside the pop-up window.
6150
6167
  * - `options.popupModel` - A `PopupBaseViewModel` object that describes the pop-up window model. Use `options.popupModel.footerToolbar` to access the actions at the bottom of the window.
6151
6168
  */
6152
- onPropertyGridShowModal: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6169
+ onPropertyGridShowModal: CreatorEvent;
6153
6170
  /**
6154
6171
  * The event is called before rendering a delete button in the Property Grid or in Question Editor.
6155
6172
  * Obsolete, please use onCollectionItemAllowOperations
@@ -6159,7 +6176,7 @@ declare module "creator-base" {
6159
6176
  *- options.canDelete a boolean value. It is true by default. Set it false to remove delete button from the Property Grid or in Question Editor
6160
6177
  * @see onCollectionItemAllowOperations
6161
6178
  */
6162
- onCanDeleteItem: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6179
+ onCanDeleteItem: CreatorEvent;
6163
6180
  /**
6164
6181
  * The event is called on deleting a collection item from the Property Editor. For example: column in columns editor or item in choices and so on.
6165
6182
  * Obsolete, please use onCollectionItemAllowOperations
@@ -6172,7 +6189,7 @@ declare module "creator-base" {
6172
6189
  *- options.allowDelete a boolean value. It is true by default. Set it false to abondome the element removing from the collection
6173
6190
  * @see onCollectionItemAllowOperations
6174
6191
  */
6175
- onCollectionItemDeleting: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6192
+ onCollectionItemDeleting: CreatorEvent;
6176
6193
  /**
6177
6194
  * The event is called before rendering a collection item from the Property Editor. For example: column in columns editor or item in choices and so on.
6178
6195
  * You can make detail/edit and remove buttons invsible and/or disable editing.
@@ -6185,7 +6202,7 @@ declare module "creator-base" {
6185
6202
  *- options.allowDelete a boolean value. It is true by default. Set it false to abondome the element removing from the collection
6186
6203
  *- options.allowEdit a boolean value. It is true by default. Set it false to disable editing.
6187
6204
  */
6188
- onCollectionItemAllowOperations: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6205
+ onCollectionItemAllowOperations: CreatorEvent;
6189
6206
  /**
6190
6207
  * The event is called on adding a new Survey.ItemValue object. It uses as an element in choices array in Radiogroup, checkbox and dropdown questions or Matrix columns and rows properties.
6191
6208
  * Use this event, to set ItemValue.value and ItemValue.text properties by default or set a value to the custom property.
@@ -6195,7 +6212,7 @@ declare module "creator-base" {
6195
6212
  *- options.newItem a new created Survey.ItemValue object.
6196
6213
  *- options.itemValues an editing Survey.ItemValue array. newItem object is not added yet into this array.
6197
6214
  */
6198
- onItemValueAdded: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6215
+ onItemValueAdded: CreatorEvent;
6199
6216
  /**
6200
6217
  * The event is called when a user adds a new column into MatrixDropdown or MatrixDynamic questions. Use it to set some properties of Survey.MatrixDropdownColumn by default, for example name or a custom property.
6201
6218
  *- sender the survey creator object that fires the event
@@ -6203,7 +6220,7 @@ declare module "creator-base" {
6203
6220
  *- options.newColumn a new created Survey.MatrixDropdownColumn object.
6204
6221
  *- options.columns editable columns objects. They can be different from options.matrix.columns. options.columns and options.matrix.columns are equal after user press Apply or Cancel and options.columns will be set to options.matrix.columns or reset to initial state.
6205
6222
  */
6206
- onMatrixColumnAdded: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6223
+ onMatrixColumnAdded: CreatorEvent;
6207
6224
  /**
6208
6225
  * Use this event to control Property Editors UI.
6209
6226
  *- sender the survey creator object that fires the event
@@ -6215,7 +6232,7 @@ declare module "creator-base" {
6215
6232
  *- options.editorOptions.allowBatchEdit a boolean property, true by default. Set it false to hide the "Edit" button for the "choices" property.
6216
6233
  *- options.editorOptions.itemsEntryType a string property, 'form' by default. Set it 'fast' to show "Manual Entry" tab for "choices" property by default.
6217
6234
  */
6218
- onSetPropertyEditorOptions: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6235
+ onSetPropertyEditorOptions: CreatorEvent;
6219
6236
  /**
6220
6237
  * The event is called on generation a new name for a new created element.
6221
6238
  *- sender the survey creator object that fires the event
@@ -6223,7 +6240,7 @@ declare module "creator-base" {
6223
6240
  *- options.name a new suggested name, that is unique for the current survey. You can suggest your own name. If it is unique, creator will assign it to the element.
6224
6241
  *- options.isUnique a boolean property, set this property to false, if you want to ask Creator to generate another name
6225
6242
  */
6226
- onGenerateNewName: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6243
+ onGenerateNewName: CreatorEvent;
6227
6244
  /**
6228
6245
  * Use this event to show a custom error in the Question Editor on pressing Apply or OK buttons, if the values are not set correctly. The error will be displayed under the property editor.
6229
6246
  *- sender the survey creator object that fires the event
@@ -6233,7 +6250,7 @@ declare module "creator-base" {
6233
6250
  *- options.error the error you want to display. Set the empty string (the default value) or null if there is no errors.
6234
6251
  * @see onPropertyValueChanging
6235
6252
  */
6236
- onPropertyValidationCustomError: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6253
+ onPropertyValidationCustomError: CreatorEvent;
6237
6254
  /**
6238
6255
  * An event that is raised each time a user edits a survey object property.
6239
6256
  * Use this event to correct or validate the property value while the user enters it.
@@ -6248,7 +6265,7 @@ declare module "creator-base" {
6248
6265
  * @see onPropertyValidationCustomError
6249
6266
  * @see onSurveyPropertyValueChanged
6250
6267
  */
6251
- onPropertyValueChanging: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6268
+ onPropertyValueChanging: CreatorEvent;
6252
6269
  /**
6253
6270
  * An event that is raised after a property in a survey object has changed.
6254
6271
  *
@@ -6259,7 +6276,7 @@ declare module "creator-base" {
6259
6276
  * @see onPropertyValidationCustomError
6260
6277
  * @see onPropertyValueChanging
6261
6278
  */
6262
- onSurveyPropertyValueChanged: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6279
+ onSurveyPropertyValueChanged: CreatorEvent;
6263
6280
  /**
6264
6281
  * Use this event to modify the list (name and titles) of the questions available in a condition editor.
6265
6282
  *- sender the survey creator object that fires the event
@@ -6269,14 +6286,14 @@ declare module "creator-base" {
6269
6286
  *- options.list the list of the questions available for condition
6270
6287
  *- options.sortOrder "asc" (default) | "none". Change it to "none", if you don't want to sort your condition list
6271
6288
  */
6272
- onConditionQuestionsGetList: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6289
+ onConditionQuestionsGetList: CreatorEvent;
6273
6290
  /**
6274
6291
  * Use this event to modify the title in a condition editor. The title is changing during editing. In case of empty or incorrect expression it tells that expression is incorrect
6275
6292
  *- sender the survey creator object that fires the event.
6276
6293
  *- options.expression the current expression. If the expression is empty or incorrect then the value is empty.
6277
6294
  *- options.title the default value of the title. You can change the default value.
6278
6295
  */
6279
- onConditionGetTitle: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6296
+ onConditionGetTitle: CreatorEvent;
6280
6297
  /**
6281
6298
  * Use this event to modify the display text of a logic item in the Logic tab.
6282
6299
  *
@@ -6288,7 +6305,7 @@ declare module "creator-base" {
6288
6305
  * - `options.logicItem` - A logic item object. Contains an array of actions and other properties.
6289
6306
  * - `options.text` - The expression and actions in a user-friendly format. Redefine this property if you want to change the display text.
6290
6307
  */
6291
- onLogicItemDisplayText: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6308
+ onLogicItemDisplayText: CreatorEvent;
6292
6309
  /**
6293
6310
  * The event is called when a survey is changed in the designer. A new page/question/page is added or existing is removed, a property is changed and so on.
6294
6311
  *- sender the survey creator object that fires the event
@@ -6336,7 +6353,7 @@ declare module "creator-base" {
6336
6353
  *- options.type: "TRANSLATIONS_CHANGED"
6337
6354
  *- options.type: "JSON_EDITOR"
6338
6355
  */
6339
- onModified: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6356
+ onModified: CreatorEvent;
6340
6357
  /**
6341
6358
  * The event is called on adding a new question into the survey. Typically, when a user dropped a Question from the Question Toolbox into designer Survey area.
6342
6359
  *- sender the survey creator object that fires the event
@@ -6344,53 +6361,53 @@ declare module "creator-base" {
6344
6361
  *- options.page the survey Page object where question has been added.
6345
6362
  *- options.reason how question has been added via UI: ADDED_FROM_TOOLBOX, ADDED_FROM_PAGEBUTTON, ELEMENT_COPIED.
6346
6363
  */
6347
- onQuestionAdded: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6364
+ onQuestionAdded: CreatorEvent;
6348
6365
  /**
6349
6366
  * The event is called on adding a new panel into the survey. Typically, when a user dropped a Panel from the Question Toolbox into designer Survey area.
6350
6367
  *- sender the survey creator object that fires the event
6351
6368
  *- options.panel a new added survey panel. Survey.Panel object
6352
6369
  *- options.page the survey Page object where question has been added.
6353
6370
  */
6354
- onPanelAdded: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6371
+ onPanelAdded: CreatorEvent;
6355
6372
  /**
6356
6373
  * The event is called on adding a new page into the survey.
6357
6374
  *- sender the survey creator object that fires the event
6358
6375
  *- options.page the new survey Page object.
6359
6376
  */
6360
- onPageAdded: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6377
+ onPageAdded: CreatorEvent;
6361
6378
  /**
6362
6379
  * The event is fired when the survey creator is initialized and a survey object (Survey.Survey) is created.
6363
6380
  *- sender the survey creator object that fires the event
6364
6381
  *- options.survey the survey object showing in the creator.
6365
6382
  */
6366
- onDesignerSurveyCreated: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6383
+ onDesignerSurveyCreated: CreatorEvent;
6367
6384
  /**
6368
6385
  * The event is fired when the survey creator creates survey in Preview tab for testing.
6369
6386
  *- sender the survey creator object that fires the event
6370
6387
  *- options.survey the survey object showing in the "Preview" tab.
6371
6388
  */
6372
- onPreviewSurveyCreated: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6389
+ onPreviewSurveyCreated: CreatorEvent;
6373
6390
  /**
6374
6391
  * Obsolete. Please use onPreviewSurveyCreated event.
6375
6392
  * @see onPreviewSurveyCreated
6376
6393
  */
6377
- onTestSurveyCreated: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6394
+ onTestSurveyCreated: CreatorEvent;
6378
6395
  /**
6379
6396
  * The event is called in case of UI notifications. By default all notifications are done via built-in alert () function.
6380
6397
  * In case of any subscriptions to this event all notifications will be redirected into the event handler.
6381
6398
  *- options.message is a message to show.
6382
6399
  */
6383
- onNotify: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6400
+ onNotify: CreatorEvent;
6384
6401
  /**
6385
6402
  * The event is called on changing the selected element. You may change the new selected element by changing the property options.newSelectedElement to your own
6386
6403
  *- options.newSelectedElement the element that is going to be selected in the survey desiger: question, panel, page or survey.
6387
6404
  */
6388
- onSelectedElementChanging: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6405
+ onSelectedElementChanging: CreatorEvent;
6389
6406
  /**
6390
6407
  * The event is called after the selected element is changed.
6391
6408
  *- options.newSelectedElement the new selected element in the survey desiger: question, panel, page or survey.
6392
6409
  */
6393
- onSelectedElementChanged: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6410
+ onSelectedElementChanged: CreatorEvent;
6394
6411
  /**
6395
6412
  * The event is fired then one need to choose files.
6396
6413
  *- sender the survey creator object that fires the event
@@ -6398,7 +6415,7 @@ declare module "creator-base" {
6398
6415
  * callback need to be called after files has been chosen
6399
6416
  * @see uploadFile
6400
6417
  */
6401
- onOpenFileChooser: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6418
+ onOpenFileChooser: CreatorEvent;
6402
6419
  /**
6403
6420
  * The event is fired on uploading the files.
6404
6421
  *- sender the survey creator object that fires the event
@@ -6409,7 +6426,7 @@ declare module "creator-base" {
6409
6426
  * a status and an image link
6410
6427
  * @see uploadFile
6411
6428
  */
6412
- onUploadFile: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6429
+ onUploadFile: CreatorEvent;
6413
6430
  /**
6414
6431
  * Use this event to modify the list of the strings available in the Translation tab.
6415
6432
  *
@@ -6420,7 +6437,7 @@ declare module "creator-base" {
6420
6437
  * - `options.propertyName` - The name of a property being translated.
6421
6438
  * - `options.visible` - A Boolean value that specifies the property visibility. Set it to `false` to hide the property.
6422
6439
  */
6423
- onTranslationStringVisibility: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6440
+ onTranslationStringVisibility: CreatorEvent;
6424
6441
  /**
6425
6442
  * Use this event to define is the locale initially selected (default value) and ready for translaion or it is unselected.
6426
6443
  *
@@ -6430,7 +6447,7 @@ declare module "creator-base" {
6430
6447
  * - `options.locale` - the locale name, like 'en', 'de' and so on.
6431
6448
  * - `options.isSelected` - it is true by default. Set it to false to make the translation unselected.
6432
6449
  */
6433
- onTranslationLocaleInitiallySelected: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6450
+ onTranslationLocaleInitiallySelected: CreatorEvent;
6434
6451
  /**
6435
6452
  * Use this event to modify the imported localizable text. To block importing a particular localization text, set the options.text into undefined.
6436
6453
  *
@@ -6441,13 +6458,13 @@ declare module "creator-base" {
6441
6458
  * - `options.name` - The full name of the localizable string, it can be: "survey.page1.question2.title"
6442
6459
  * - `options.text` - The imported text for the locale for this item. Set it to undefined or empty string to block importing for this item
6443
6460
  */
6444
- onTranslationImportItem: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6461
+ onTranslationImportItem: CreatorEvent;
6445
6462
  /**
6446
6463
  * The event is called when the translation from csv file is imported.
6447
6464
  * @see translation
6448
6465
  * @see showTranslationTab
6449
6466
  */
6450
- onTranslationImported: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6467
+ onTranslationImported: CreatorEvent;
6451
6468
  /**
6452
6469
  * Use this event to modify a translated string before it is exported to CSV.
6453
6470
  *
@@ -6460,7 +6477,7 @@ declare module "creator-base" {
6460
6477
  * - `options.locString` - A `LocalizableString` instance. Call the `options.locString.getLocaleText(locale)` method if you need to get a text string for a specific locale.
6461
6478
  * - `options.text` - A text string to be exported. The string is taken from the current locale. Redefine this property if you want to export a different string.
6462
6479
  */
6463
- onTranslationExportItem: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6480
+ onTranslationExportItem: CreatorEvent;
6464
6481
  /**
6465
6482
  * Use this event to control drag&drop operations.
6466
6483
  *- sender the survey creator object that fires the event.
@@ -6472,7 +6489,7 @@ declare module "creator-base" {
6472
6489
  *- options.insertBefore an element before the target element is dragging. It can be null if parent container (page or panel) is empty or dragging an element under the last element of the container.
6473
6490
  *- options.insertAfter an element after the target element is dragging. It can be null if parent container (page or panel) is empty or dragging element to the top of the parent container.
6474
6491
  */
6475
- onDragDropAllow: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6492
+ onDragDropAllow: CreatorEvent;
6476
6493
  /**
6477
6494
  * This callback is used internally for providing survey JSON text.
6478
6495
  */
@@ -6674,14 +6691,14 @@ declare module "creator-base" {
6674
6691
  *- sender the survey creator object that fires the event
6675
6692
  *- options.tabName the name of new active tab
6676
6693
  */
6677
- onActiveTabChanging: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6694
+ onActiveTabChanging: CreatorEvent;
6678
6695
  /**
6679
6696
  * The event is called when creator active tab is changed.
6680
6697
  *- sender the survey creator object that fires the event
6681
6698
  *- options.tabName the name of new active tab
6682
6699
  *- options.model the instance of the model of the new active tab
6683
6700
  */
6684
- onActiveTabChanged: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6701
+ onActiveTabChanged: CreatorEvent;
6685
6702
  /**
6686
6703
  * Get/set the active tab.
6687
6704
  * The following values are available: "designer", "editor", "test", "embed", "logic" and "translation".
@@ -6706,14 +6723,14 @@ declare module "creator-base" {
6706
6723
  get showToolbox(): boolean;
6707
6724
  set showToolbox(val: boolean);
6708
6725
  private showSidebarValue;
6709
- onShowSidebarVisibilityChanged: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6726
+ onShowSidebarVisibilityChanged: CreatorEvent;
6710
6727
  /**
6711
6728
  * Set this this property grid false to hide the property grid.
6712
6729
  */
6713
6730
  get showSidebar(): boolean;
6714
6731
  set showSidebar(val: boolean);
6715
6732
  setShowSidebar(value: boolean, isManualMode?: boolean): void;
6716
- onShowPropertyGridVisiblityChanged: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6733
+ onShowPropertyGridVisiblityChanged: CreatorEvent;
6717
6734
  get showPropertyGrid(): boolean;
6718
6735
  set showPropertyGrid(val: boolean);
6719
6736
  rightContainerActiveItem(name: string): void;
@@ -6722,22 +6739,22 @@ declare module "creator-base" {
6722
6739
  * The event is called before undo happens.
6723
6740
  *- options.canUndo a boolean value. It is true by default. Set it false to hide prevent undo operation.
6724
6741
  */
6725
- onBeforeUndo: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6742
+ onBeforeUndo: CreatorEvent;
6726
6743
  /**
6727
6744
  * The event is called before redo happens.
6728
6745
  *- options.canRedo a boolean value. It is true by default. Set it false to hide prevent redo operation.
6729
6746
  */
6730
- onBeforeRedo: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6747
+ onBeforeRedo: CreatorEvent;
6731
6748
  /**
6732
6749
  * The event is called after undo happens.
6733
6750
  *- options.state is an undo/redo item.
6734
6751
  */
6735
- onAfterUndo: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6752
+ onAfterUndo: CreatorEvent;
6736
6753
  /**
6737
6754
  * The event is called after redo happens.
6738
6755
  *- options.state is an undo/redo item.
6739
6756
  */
6740
- onAfterRedo: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6757
+ onAfterRedo: CreatorEvent;
6741
6758
  get undoRedoManager(): UndoRedoManager;
6742
6759
  get undoRedoController(): UndoRedoController;
6743
6760
  /**
@@ -6839,7 +6856,7 @@ declare module "creator-base" {
6839
6856
  */
6840
6857
  get state(): string;
6841
6858
  protected setState(value: string): void;
6842
- onStateChanged: Survey.Event<(sender: CreatorBase, options: any) => any, any>;
6859
+ onStateChanged: CreatorEvent;
6843
6860
  notifier: Notifier;
6844
6861
  setModified(options?: any): void;
6845
6862
  notifySurveyPropertyChanged(options: any): void;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.61
2
+ * SurveyJS Creator v1.9.62
3
3
  * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.61
2
+ * SurveyJS Creator v1.9.62
3
3
  * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.61
2
+ * SurveyJS Creator v1.9.62
3
3
  * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.61
2
+ * SurveyJS Creator v1.9.62
3
3
  * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator