survey-creator-core 1.9.13-beta.1 → 1.9.15
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 +37 -43
- package/survey-creator-core.d.ts +138 -118
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +168 -36
- package/survey-creator-core.min.css +11 -11
- package/survey-creator-core.min.js +2 -2
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.
|
|
2
|
+
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.15
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
6
6
|
import { Base, JsonObjectProperty, Question, ItemValue, MatrixDropdownColumn } from "survey-core";
|
|
7
7
|
import { IAction, SurveyModel, SurveyElement, AdaptiveActionContainer, Action } from "survey-core";
|
|
8
8
|
import { ActionContainer, DragDropSurveyElements, DragDropChoices, Event, PageModel } from "survey-core";
|
|
9
|
-
import { IElement, IPanel, ISurveyElement, QuestionSelectBase,
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { IElement, IPanel, ISurveyElement, QuestionSelectBase, QuestionRowModel } from "survey-core";
|
|
10
|
+
import { LocalizableString, DragOrClickHelper, PanelModel, QuestionDropdownModel, ListModel } from "survey-core";
|
|
11
|
+
import { PopupModel, EventBase, PanelModelBase, QuestionNonValue, SurveyTemplateRendererTemplateData } from "survey-core";
|
|
12
12
|
import { ComputedUpdater, QuestionCheckboxModel, ILocalizableString, ArrayChanges, ImageItemValue } from "survey-core";
|
|
13
13
|
import { HashTable, QuestionMatrixDynamicModel, QuestionMatrixModel, QuestionMatrixDropdownModel, QuestionPanelDynamicModel } from "survey-core";
|
|
14
14
|
import { QuestionCommentModel, QuestionRatingModel, MatrixDynamicRowModel } from "survey-core";
|
|
15
15
|
|
|
16
|
+
export { editorLocalization as localization };
|
|
17
|
+
|
|
16
18
|
export enum QuestionConvertMode {
|
|
17
19
|
AllTypes,
|
|
18
20
|
CompatibleTypes
|
|
@@ -221,9 +223,9 @@ export interface IPortableMouseEvent {
|
|
|
221
223
|
export interface IPortableDragEvent extends IPortableMouseEvent {
|
|
222
224
|
dataTransfer: any;
|
|
223
225
|
}
|
|
224
|
-
export declare class ActionContainerViewModel
|
|
225
|
-
constructor(creator:
|
|
226
|
-
creator:
|
|
226
|
+
export declare class ActionContainerViewModel extends Base {
|
|
227
|
+
constructor(creator: CreatorBase, surveyElement: SurveyElement);
|
|
228
|
+
creator: CreatorBase;
|
|
227
229
|
surveyElement: SurveyElement;
|
|
228
230
|
actionContainer: any;
|
|
229
231
|
allowDragging: boolean;
|
|
@@ -253,7 +255,7 @@ export declare class ConditionEditorItemsBuilder {
|
|
|
253
255
|
/*
|
|
254
256
|
* Base class for Survey Creator.
|
|
255
257
|
*/
|
|
256
|
-
export declare class CreatorBase
|
|
258
|
+
export declare class CreatorBase extends Base implements ISurveyCreatorOptions, ICreatorSelectionOwner {
|
|
257
259
|
constructor(options: ICreatorOptions, options2?: ICreatorOptions);
|
|
258
260
|
/*
|
|
259
261
|
* Set it to true to show "Designer" tab and to false to hide the tab
|
|
@@ -324,7 +326,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
324
326
|
* You can set this option in creator constructor only
|
|
325
327
|
*/
|
|
326
328
|
get pageEditMode(): "standard" | "single";
|
|
327
|
-
surveyValue:
|
|
329
|
+
surveyValue: SurveyModel;
|
|
328
330
|
get toolbarItems(): any;
|
|
329
331
|
get toolbar(): any;
|
|
330
332
|
dragDropSurveyElements: DragDropSurveyElements;
|
|
@@ -365,7 +367,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
365
367
|
* <br/> options.elementType the type of the element: 'question', 'panel' or 'page'.
|
|
366
368
|
* <br/> options.allowing set it to false to cancel the element deleting
|
|
367
369
|
*/
|
|
368
|
-
onElementDeleting: Event<(sender: CreatorBase
|
|
370
|
+
onElementDeleting: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
369
371
|
/*
|
|
370
372
|
* The event is called on setting a readOnly property of the property editor. By default the property.readOnly property is used.
|
|
371
373
|
* You may changed it and make the property editor read only or enabled for a particular object.
|
|
@@ -376,14 +378,14 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
376
378
|
* <br/> 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).
|
|
377
379
|
* <br/> 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.
|
|
378
380
|
*/
|
|
379
|
-
onGetPropertyReadOnly: Event<(sender: CreatorBase
|
|
381
|
+
onGetPropertyReadOnly: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
380
382
|
/*
|
|
381
383
|
* The event is fired when the survey creator creates a survey object (Survey.Survey).
|
|
382
384
|
* <br/> sender the survey creator object that fires the event
|
|
383
385
|
* <br/> options.survey the survey object showing in the creator.
|
|
384
386
|
* <br/> 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.
|
|
385
387
|
*/
|
|
386
|
-
onSurveyInstanceCreated: Event<(sender: CreatorBase
|
|
388
|
+
onSurveyInstanceCreated: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
387
389
|
/*
|
|
388
390
|
* The event allows to display the custom name for objects: questions, pages and panels. By default the object name is using. You may show object title by setting showObjectTitles property to true.
|
|
389
391
|
* Use this event, if you want custom display name for objects.
|
|
@@ -398,7 +400,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
398
400
|
* <br/> "survey-translation" - raised from translation tab
|
|
399
401
|
* <br/> "property-grid" - raised from showing object selector for property grid in "Designer" tab.
|
|
400
402
|
*/
|
|
401
|
-
onGetObjectDisplayName: Event<(sender: CreatorBase
|
|
403
|
+
onGetObjectDisplayName: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
402
404
|
/*
|
|
403
405
|
* Use this event to disable some operations for an element (question/panel).
|
|
404
406
|
* <br/> sender the survey creator object that fires the event
|
|
@@ -409,14 +411,14 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
409
411
|
* <br/> options.allowChangeType set it to false to disable changing element type
|
|
410
412
|
* <br/> options.allowChangeRequired set it to false to disable changing isRequired property
|
|
411
413
|
*/
|
|
412
|
-
onElementAllowOperations: Event<(sender: CreatorBase
|
|
414
|
+
onElementAllowOperations: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
413
415
|
/*
|
|
414
416
|
* Use this event to add/remove/modify the element (question/panel) menu items.
|
|
415
417
|
* <br/> sender the survey creator object that fires the event
|
|
416
418
|
* <br/> options.obj the survey object which property is edited in the Property Editor.
|
|
417
419
|
* <br/> options.items the list of menu items. It has two required fields: text and onClick: function(obj: Survey.Base) {} and optional name field.
|
|
418
420
|
*/
|
|
419
|
-
onDefineElementMenuItems: Event<(sender: CreatorBase
|
|
421
|
+
onDefineElementMenuItems: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
420
422
|
/*
|
|
421
423
|
* The event is called before showing a property in the Properties Grid or in the Question Editor.
|
|
422
424
|
* <br/> sender the survey creator object that fires the event
|
|
@@ -428,8 +430,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
428
430
|
* <br/>
|
|
429
431
|
* <br/> [Example: Hide a category in the Properties Grid](https://surveyjs.io/Examples/Survey-Creator?id=hidecategoryinpropertiesgrid)
|
|
430
432
|
*/
|
|
431
|
-
onShowingProperty: Event<(sender: CreatorBase
|
|
432
|
-
onCanShowProperty: Event<(sender: CreatorBase
|
|
433
|
+
onShowingProperty: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
434
|
+
onCanShowProperty: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
433
435
|
/*
|
|
434
436
|
* The event is called after a property editor (in fact a survey question) has been created and all it's properties have been assign.
|
|
435
437
|
* You can use this event to modify the property editor properties or set event handlers to customize it's behavior
|
|
@@ -437,7 +439,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
437
439
|
* <br/> options.property the property that the current property editor is editing
|
|
438
440
|
* <br/> 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.
|
|
439
441
|
*/
|
|
440
|
-
onPropertyEditorCreated: Event<(sender: CreatorBase
|
|
442
|
+
onPropertyEditorCreated: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
441
443
|
/*
|
|
442
444
|
* The event is called after a property editor setups its title actions.
|
|
443
445
|
* You can use this event to modify the property editor title actions
|
|
@@ -446,7 +448,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
446
448
|
* <br/> 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.
|
|
447
449
|
* <br/> options.titleActions the list of title actions.
|
|
448
450
|
*/
|
|
449
|
-
onPropertyEditorUpdateTitleActions: Event<(sender: CreatorBase
|
|
451
|
+
onPropertyEditorUpdateTitleActions: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
450
452
|
/*
|
|
451
453
|
* The event is called before rendering a delete button in the Property Grid or in Question Editor.
|
|
452
454
|
* Obsolete, please use onCollectionItemAllowOperations
|
|
@@ -455,7 +457,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
455
457
|
* <br/> options.item the object property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
|
|
456
458
|
* <br/> 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
|
|
457
459
|
*/
|
|
458
|
-
onCanDeleteItem: Event<(sender: CreatorBase
|
|
460
|
+
onCanDeleteItem: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
459
461
|
/*
|
|
460
462
|
* 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.
|
|
461
463
|
* Obsolete, please use onCollectionItemAllowOperations
|
|
@@ -467,7 +469,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
467
469
|
* <br/> options.item the collection item that we are going to delete
|
|
468
470
|
* <br/> options.allowDelete a boolean value. It is true by default. Set it false to abondome the element removing from the collection
|
|
469
471
|
*/
|
|
470
|
-
onCollectionItemDeleting: Event<(sender: CreatorBase
|
|
472
|
+
onCollectionItemDeleting: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
471
473
|
/*
|
|
472
474
|
* 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.
|
|
473
475
|
* You can make detail/edit and remove buttons invsible and/or disable editing.
|
|
@@ -480,7 +482,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
480
482
|
* <br/> options.allowDelete a boolean value. It is true by default. Set it false to abondome the element removing from the collection
|
|
481
483
|
* <br/> options.allowEdit a boolean value. It is true by default. Set it false to disable editing.
|
|
482
484
|
*/
|
|
483
|
-
onCollectionItemAllowOperations: Event<(sender: CreatorBase
|
|
485
|
+
onCollectionItemAllowOperations: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
484
486
|
/*
|
|
485
487
|
* 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.
|
|
486
488
|
* Use this event, to set ItemValue.value and ItemValue.text properties by default or set a value to the custom property.
|
|
@@ -490,7 +492,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
490
492
|
* <br/> options.newItem a new created Survey.ItemValue object.
|
|
491
493
|
* <br/> options.itemValues an editing Survey.ItemValue array. newItem object is not added yet into this array.
|
|
492
494
|
*/
|
|
493
|
-
onItemValueAdded: Event<(sender: CreatorBase
|
|
495
|
+
onItemValueAdded: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
494
496
|
/*
|
|
495
497
|
* 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.
|
|
496
498
|
* <br/> sender the survey creator object that fires the event
|
|
@@ -498,7 +500,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
498
500
|
* <br/> options.newColumn a new created Survey.MatrixDropdownColumn object.
|
|
499
501
|
* <br/> 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.
|
|
500
502
|
*/
|
|
501
|
-
onMatrixColumnAdded: Event<(sender: CreatorBase
|
|
503
|
+
onMatrixColumnAdded: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
502
504
|
/*
|
|
503
505
|
* Use this event to control Property Editors UI.
|
|
504
506
|
* <br/> sender the survey creator object that fires the event
|
|
@@ -510,7 +512,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
510
512
|
* <br/> options.editorOptions.showTextView a boolean property, true by default. Set it false to disable "Fast Entry" tab for "choices" property.
|
|
511
513
|
* <br/> options.editorOptions.itemsEntryType a string property, 'form' by default. Set it 'fast' to show "Fast Entry" tab for "choices" property by default.
|
|
512
514
|
*/
|
|
513
|
-
onSetPropertyEditorOptions: Event<(sender: CreatorBase
|
|
515
|
+
onSetPropertyEditorOptions: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
514
516
|
/*
|
|
515
517
|
* The event is called on generation a new name for a new created element.
|
|
516
518
|
* <br/> sender the survey creator object that fires the event
|
|
@@ -518,7 +520,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
518
520
|
* <br/> 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.
|
|
519
521
|
* <br/> options.isUnique a boolean property, set this property to false, if you want to ask Creator to generate another name
|
|
520
522
|
*/
|
|
521
|
-
onGenerateNewName: Event<(sender: CreatorBase
|
|
523
|
+
onGenerateNewName: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
522
524
|
/*
|
|
523
525
|
* 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.
|
|
524
526
|
* <br/> sender the survey creator object that fires the event
|
|
@@ -527,7 +529,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
527
529
|
* <br/> options.value the property value.
|
|
528
530
|
* <br/> options.error the error you want to display. Set the empty string (the default value) or null if there is no errors.
|
|
529
531
|
*/
|
|
530
|
-
onPropertyValidationCustomError: Event<(sender: CreatorBase
|
|
532
|
+
onPropertyValidationCustomError: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
531
533
|
/*
|
|
532
534
|
* 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
|
|
533
535
|
* <br/> sender the survey creator object that fires the event
|
|
@@ -537,7 +539,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
537
539
|
* <br/> options.newValue set the corrected value into this property. Leave it null if you are ok with the entered value.
|
|
538
540
|
* <br/> options.doValidation set the value to true to call the property validation. If there is an error, the user sees it immediately.
|
|
539
541
|
*/
|
|
540
|
-
onPropertyValueChanging: Event<(sender: CreatorBase
|
|
542
|
+
onPropertyValueChanging: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
541
543
|
/*
|
|
542
544
|
* Use this event to modify the list (name and titles) of the questions available in a condition editor.
|
|
543
545
|
* <br/> sender the survey creator object that fires the event
|
|
@@ -546,14 +548,14 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
546
548
|
* <br/> options.editor the instance of Property Editor.
|
|
547
549
|
* <br/> options.list the list of the questions available for condition
|
|
548
550
|
*/
|
|
549
|
-
onConditionQuestionsGetList: Event<(sender: CreatorBase
|
|
551
|
+
onConditionQuestionsGetList: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
550
552
|
/*
|
|
551
553
|
* 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
|
|
552
554
|
* <br/> sender the survey creator object that fires the event.
|
|
553
555
|
* <br/> options.expression the current expression. If the expression is empty or incorrect then the value is empty.
|
|
554
556
|
* <br/> options.title the default value of the title. You can change the default value.
|
|
555
557
|
*/
|
|
556
|
-
onConditionGetTitle: Event<(sender: CreatorBase
|
|
558
|
+
onConditionGetTitle: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
557
559
|
/*
|
|
558
560
|
* 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.
|
|
559
561
|
* <br/> sender the survey creator object that fires the event
|
|
@@ -601,66 +603,66 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
601
603
|
* <br/> options.type: "TRANSLATIONS_CHANGED"
|
|
602
604
|
* <br/> options.type: "JSON_EDITOR"
|
|
603
605
|
*/
|
|
604
|
-
onModified: Event<(sender: CreatorBase
|
|
606
|
+
onModified: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
605
607
|
/*
|
|
606
608
|
* 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.
|
|
607
609
|
* <br/> sender the survey creator object that fires the event
|
|
608
610
|
* <br/> options.question a new added survey question. Survey.Question object
|
|
609
611
|
* <br/> options.page the survey Page object where question has been added.
|
|
610
612
|
*/
|
|
611
|
-
onQuestionAdded: Event<(sender: CreatorBase
|
|
613
|
+
onQuestionAdded: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
612
614
|
/*
|
|
613
615
|
* 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.
|
|
614
616
|
* <br/> sender the survey creator object that fires the event
|
|
615
617
|
* <br/> options.panel a new added survey panel. Survey.Panel object
|
|
616
618
|
* <br/> options.page the survey Page object where question has been added.
|
|
617
619
|
*/
|
|
618
|
-
onPanelAdded: Event<(sender: CreatorBase
|
|
620
|
+
onPanelAdded: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
619
621
|
/*
|
|
620
622
|
* The event is called on adding a new page into the survey.
|
|
621
623
|
* <br/> sender the survey creator object that fires the event
|
|
622
624
|
* <br/> options.page the new survey Page object.
|
|
623
625
|
*/
|
|
624
|
-
onPageAdded: Event<(sender: CreatorBase
|
|
626
|
+
onPageAdded: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
625
627
|
/*
|
|
626
628
|
* The event is fired when the survey creator is initialized and a survey object (Survey.Survey) is created.
|
|
627
629
|
* <br/> sender the survey creator object that fires the event
|
|
628
630
|
* <br/> options.survey the survey object showing in the creator.
|
|
629
631
|
*/
|
|
630
|
-
onDesignerSurveyCreated: Event<(sender: CreatorBase
|
|
632
|
+
onDesignerSurveyCreated: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
631
633
|
/*
|
|
632
634
|
* The event is fired when the survey creator creates survey in Preview tab for testing.
|
|
633
635
|
* <br/> sender the survey creator object that fires the event
|
|
634
636
|
* <br/> options.survey the survey object showing in the "Preview" tab.
|
|
635
637
|
*/
|
|
636
|
-
onPreviewSurveyCreated: Event<(sender: CreatorBase
|
|
638
|
+
onPreviewSurveyCreated: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
637
639
|
/*
|
|
638
640
|
* Obsolete. Please use onPreviewSurveyCreated event.
|
|
639
641
|
*/
|
|
640
|
-
onTestSurveyCreated: Event<(sender: CreatorBase
|
|
642
|
+
onTestSurveyCreated: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
641
643
|
/*
|
|
642
644
|
* The event is called in case of UI notifications. By default all notifications are done via built-in alert () function.
|
|
643
645
|
* In case of any subscriptions to this event all notifications will be redirected into the event handler.
|
|
644
646
|
* <br/> options.message is a message to show.
|
|
645
647
|
*/
|
|
646
|
-
onNotify: Event<(sender: CreatorBase
|
|
648
|
+
onNotify: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
647
649
|
/*
|
|
648
650
|
* 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
|
|
649
651
|
* <br/> options.newSelectedElement the element that is going to be selected in the survey desiger: question, panel, page or survey.
|
|
650
652
|
*/
|
|
651
|
-
onSelectedElementChanging: Event<(sender: CreatorBase
|
|
653
|
+
onSelectedElementChanging: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
652
654
|
/*
|
|
653
655
|
* The event is called after the selected element is changed.
|
|
654
656
|
* <br/> options.newSelectedElement the new selected element in the survey desiger: question, panel, page or survey.
|
|
655
657
|
*/
|
|
656
|
-
onSelectedElementChanged: Event<(sender: CreatorBase
|
|
658
|
+
onSelectedElementChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
657
659
|
/*
|
|
658
660
|
* The event is fired then one need to choose files.
|
|
659
661
|
* <br/> sender the survey creator object that fires the event
|
|
660
662
|
* <br/> input file input HTML element
|
|
661
663
|
* <br/> callback need to be called after files has been chosen
|
|
662
664
|
*/
|
|
663
|
-
onOpenFileChooser: Event<(sender: CreatorBase
|
|
665
|
+
onOpenFileChooser: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
664
666
|
/*
|
|
665
667
|
* The event is fired on uploading the files.
|
|
666
668
|
* <br/> sender the survey creator object that fires the event
|
|
@@ -668,7 +670,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
668
670
|
* <br/> files the Javascript File objects array
|
|
669
671
|
* <br/> callback called on upload complete
|
|
670
672
|
*/
|
|
671
|
-
onUploadFile: Event<(sender: CreatorBase
|
|
673
|
+
onUploadFile: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
672
674
|
/*
|
|
673
675
|
* Use this event to modify the list of the strings available in the Translation tab.
|
|
674
676
|
*
|
|
@@ -679,7 +681,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
679
681
|
* - `options.propertyName` - The name of a property being translated.
|
|
680
682
|
* - `options.visible` - A Boolean value that specifies the property visibility. Set it to `false` to hide the property.
|
|
681
683
|
*/
|
|
682
|
-
onTranslationStringVisibility: Event<(sender: CreatorBase
|
|
684
|
+
onTranslationStringVisibility: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
683
685
|
/*
|
|
684
686
|
* Use this event to define is the locale initially selected (default value) and ready for translaion or it is unselected.
|
|
685
687
|
*
|
|
@@ -689,7 +691,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
689
691
|
* - `options.locale` - the locale name, like 'en', 'de' and so on.
|
|
690
692
|
* - `options.isSelected` - it is true by default. Set it to false to make the translation unselected.
|
|
691
693
|
*/
|
|
692
|
-
onTranslationLocaleInitiallySelected: Event<(sender: CreatorBase
|
|
694
|
+
onTranslationLocaleInitiallySelected: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
693
695
|
/*
|
|
694
696
|
* This callback is used internally for providing survey JSON text.
|
|
695
697
|
*/
|
|
@@ -804,7 +806,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
804
806
|
*/
|
|
805
807
|
get isRTL(): boolean;
|
|
806
808
|
set isRTL(val: boolean);
|
|
807
|
-
onActiveTabChanged: Event<(sender: CreatorBase
|
|
809
|
+
onActiveTabChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
808
810
|
/*
|
|
809
811
|
* Get/set the active tab.
|
|
810
812
|
* The following values are available: "designer", "editor", "test", "embed", "logic" and "translation".
|
|
@@ -825,13 +827,13 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
825
827
|
get showToolbox(): boolean;
|
|
826
828
|
set showToolbox(val: boolean);
|
|
827
829
|
showSidebarValue: boolean;
|
|
828
|
-
onShowSidebarVisiblityChanged: Event<(sender: CreatorBase
|
|
830
|
+
onShowSidebarVisiblityChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
829
831
|
/*
|
|
830
832
|
* Set this this property grid false to hide the property grid.
|
|
831
833
|
*/
|
|
832
834
|
get showSidebar(): boolean;
|
|
833
835
|
set showSidebar(val: boolean);
|
|
834
|
-
onShowPropertyGridVisiblityChanged: Event<(sender: CreatorBase
|
|
836
|
+
onShowPropertyGridVisiblityChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
835
837
|
get showPropertyGrid(): boolean;
|
|
836
838
|
set showPropertyGrid(val: boolean);
|
|
837
839
|
rightContainerActiveItem(name: string): void;
|
|
@@ -840,24 +842,24 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
840
842
|
* The event is called before undo happens.
|
|
841
843
|
* <br/> options.canUndo a boolean value. It is true by default. Set it false to hide prevent undo operation.
|
|
842
844
|
*/
|
|
843
|
-
onBeforeUndo: Event<(sender: CreatorBase
|
|
845
|
+
onBeforeUndo: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
844
846
|
/*
|
|
845
847
|
* The event is called before redo happens.
|
|
846
848
|
* <br/> options.canRedo a boolean value. It is true by default. Set it false to hide prevent redo operation.
|
|
847
849
|
*/
|
|
848
|
-
onBeforeRedo: Event<(sender: CreatorBase
|
|
850
|
+
onBeforeRedo: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
849
851
|
/*
|
|
850
852
|
* The event is called after undo happens.
|
|
851
853
|
* <br/> options.state is an undo/redo item.
|
|
852
854
|
*/
|
|
853
|
-
onAfterUndo: Event<(sender: CreatorBase
|
|
855
|
+
onAfterUndo: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
854
856
|
/*
|
|
855
857
|
* The event is called after redo happens.
|
|
856
858
|
* <br/> options.state is an undo/redo item.
|
|
857
859
|
*/
|
|
858
|
-
onAfterRedo: Event<(sender: CreatorBase
|
|
860
|
+
onAfterRedo: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
859
861
|
get undoRedoManager(): UndoRedoManager;
|
|
860
|
-
get undoRedoController():
|
|
862
|
+
get undoRedoController(): UndoRedoController;
|
|
861
863
|
/*
|
|
862
864
|
* This method starts undo/redo transaction: all changes will be stored as one undo/redo item.
|
|
863
865
|
*/
|
|
@@ -891,7 +893,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
891
893
|
/*
|
|
892
894
|
* The editing survey object (Survey.Survey)
|
|
893
895
|
*/
|
|
894
|
-
get survey():
|
|
896
|
+
get survey(): SurveyModel;
|
|
895
897
|
existingPages: any;
|
|
896
898
|
protected initSurveyWithJSON(json: any, clearState: boolean): void;
|
|
897
899
|
protected initDragDrop(): void;
|
|
@@ -900,7 +902,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
900
902
|
updatePagesController(sender: Base, name: string): void;
|
|
901
903
|
isObjQuestion(obj: Base): boolean;
|
|
902
904
|
isObjPage(obj: Base): boolean;
|
|
903
|
-
protected setSurvey(survey:
|
|
905
|
+
protected setSurvey(survey: SurveyModel): void;
|
|
904
906
|
protected setTextValue(value: string): void;
|
|
905
907
|
/*
|
|
906
908
|
* Set JSON as text into survey. Clear undo/redo states optionally.
|
|
@@ -913,15 +915,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
913
915
|
set text(val: string);
|
|
914
916
|
getSurveyJSON(): any;
|
|
915
917
|
getObjectDisplayName(obj: Base, reason?: string, displayName?: string): string;
|
|
916
|
-
createSurvey(json?: any, reason?: string):
|
|
917
|
-
protected createSurveyCore(json: any, reason: string):
|
|
918
|
+
createSurvey(json?: any, reason?: string): SurveyModel;
|
|
919
|
+
protected createSurveyCore(json: any, reason: string): SurveyModel;
|
|
918
920
|
_stateValue: string;
|
|
919
921
|
/*
|
|
920
922
|
* Returns the creator state. It may return empty string or "saving" and "saved".
|
|
921
923
|
*/
|
|
922
924
|
get state(): string;
|
|
923
925
|
protected setState(value: string): void;
|
|
924
|
-
onStateChanged: Event<(sender: CreatorBase
|
|
926
|
+
onStateChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
925
927
|
notifier: Notifier;
|
|
926
928
|
setModified(options?: any): void;
|
|
927
929
|
/*
|
|
@@ -1079,7 +1081,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Ba
|
|
|
1079
1081
|
dispose(): void;
|
|
1080
1082
|
}
|
|
1081
1083
|
export declare class CreatorResponsivityManager {
|
|
1082
|
-
constructor(container: any, creator:
|
|
1084
|
+
constructor(container: any, creator: CreatorBase);
|
|
1083
1085
|
resizeObserver: any;
|
|
1084
1086
|
currentWidth: any;
|
|
1085
1087
|
prevShowToolbox: any;
|
|
@@ -1090,6 +1092,19 @@ export declare class CreatorResponsivityManager {
|
|
|
1090
1092
|
process(): void;
|
|
1091
1093
|
dispose(): void;
|
|
1092
1094
|
}
|
|
1095
|
+
export declare class DesignTimeSurveyModel extends SurveyModel {
|
|
1096
|
+
constructor(creator: CreatorBase, jsonObj?: any);
|
|
1097
|
+
creator: CreatorBase;
|
|
1098
|
+
isPopupEditorContent: boolean;
|
|
1099
|
+
getElementWrapperComponentName(element: any, reason?: string): string;
|
|
1100
|
+
getElementWrapperComponentData(element: any, reason?: string): any;
|
|
1101
|
+
getRowWrapperComponentName(row: QuestionRowModel): string;
|
|
1102
|
+
getRowWrapperComponentData(row: QuestionRowModel): any;
|
|
1103
|
+
getItemValueWrapperComponentName(item: ItemValue, question: QuestionSelectBase): string;
|
|
1104
|
+
getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase): any;
|
|
1105
|
+
getRendererForString(element: Base, name: string): string;
|
|
1106
|
+
getRendererContextForString(element: Base, locStr: LocalizableString): any;
|
|
1107
|
+
}
|
|
1093
1108
|
export declare class EditableObject {
|
|
1094
1109
|
constructor(obj: Base);
|
|
1095
1110
|
static isCopyObject(obj: any): boolean;
|
|
@@ -1107,7 +1122,7 @@ export declare class EditableObject {
|
|
|
1107
1122
|
protected createEditableObj(): Base;
|
|
1108
1123
|
}
|
|
1109
1124
|
export declare class EmbedModel extends Base {
|
|
1110
|
-
constructor(creator:
|
|
1125
|
+
constructor(creator: CreatorBase);
|
|
1111
1126
|
survey: SurveyModel;
|
|
1112
1127
|
}
|
|
1113
1128
|
export declare class ExpressionRemoveVariable {
|
|
@@ -1124,8 +1139,8 @@ export declare class ExpressionToDisplayText {
|
|
|
1124
1139
|
static operatorText: any;
|
|
1125
1140
|
}
|
|
1126
1141
|
export declare class ItemValueWrapperViewModel extends Base {
|
|
1127
|
-
constructor(creator:
|
|
1128
|
-
creator:
|
|
1142
|
+
constructor(creator: CreatorBase, question: QuestionSelectBase, item: ItemValue);
|
|
1143
|
+
creator: CreatorBase;
|
|
1129
1144
|
question: QuestionSelectBase;
|
|
1130
1145
|
item: ItemValue;
|
|
1131
1146
|
isNew: boolean;
|
|
@@ -1152,7 +1167,7 @@ export declare class ItemValueWrapperViewModel extends Base {
|
|
|
1152
1167
|
select(model: ItemValueWrapperViewModel, event: any): void;
|
|
1153
1168
|
}
|
|
1154
1169
|
export declare class JsonEditorBaseModel extends Base {
|
|
1155
|
-
constructor(creator:
|
|
1170
|
+
constructor(creator: CreatorBase);
|
|
1156
1171
|
isJSONChanged: boolean;
|
|
1157
1172
|
isProcessingImmediately: boolean;
|
|
1158
1173
|
static updateTextTimeout: number;
|
|
@@ -1182,7 +1197,7 @@ export declare class LogicActionModelBase {
|
|
|
1182
1197
|
setInitialElementValue(question: QuestionDropdownModel, action: SurveyLogicAction, selectedQuestion: string): void;
|
|
1183
1198
|
}
|
|
1184
1199
|
export declare class LogoImageViewModel extends Base {
|
|
1185
|
-
constructor(creator:
|
|
1200
|
+
constructor(creator: CreatorBase, root: any);
|
|
1186
1201
|
root: any;
|
|
1187
1202
|
get allowEdit(): boolean;
|
|
1188
1203
|
get survey(): SurveyModel;
|
|
@@ -1191,8 +1206,8 @@ export declare class LogoImageViewModel extends Base {
|
|
|
1191
1206
|
get chooseLogoPlaceholder(): any;
|
|
1192
1207
|
}
|
|
1193
1208
|
export declare class MatrixCellWrapperViewModel extends Base {
|
|
1194
|
-
constructor(creator:
|
|
1195
|
-
creator:
|
|
1209
|
+
constructor(creator: CreatorBase, templateData: any, question: Question, row: any, column: any);
|
|
1210
|
+
creator: CreatorBase;
|
|
1196
1211
|
templateData: any;
|
|
1197
1212
|
question: Question;
|
|
1198
1213
|
row: any;
|
|
@@ -1215,7 +1230,7 @@ export declare class Notifier extends Base {
|
|
|
1215
1230
|
notify(message: string, type?: "info" | "error"): void;
|
|
1216
1231
|
}
|
|
1217
1232
|
export declare class ObjectSelector {
|
|
1218
|
-
constructor(survey: SurveyModel, getObjectDisplayName?: any);
|
|
1233
|
+
constructor(creator: CreatorBase, survey: SurveyModel, getObjectDisplayName?: any);
|
|
1219
1234
|
surveyValue: SurveyModel;
|
|
1220
1235
|
deepestLevel: number;
|
|
1221
1236
|
filteredTextInLow: string;
|
|
@@ -1235,7 +1250,7 @@ export declare class ObjectSelectorItem extends Action {
|
|
|
1235
1250
|
hasText(filteredTextInLow: string): boolean;
|
|
1236
1251
|
}
|
|
1237
1252
|
export declare class ObjectSelectorModel extends Base {
|
|
1238
|
-
constructor(getObjectDisplayName?: any);
|
|
1253
|
+
constructor(creator: CreatorBase, getObjectDisplayName?: any);
|
|
1239
1254
|
selector: ObjectSelector;
|
|
1240
1255
|
listModelValue: ListModel;
|
|
1241
1256
|
isVisible: boolean;
|
|
@@ -1243,7 +1258,7 @@ export declare class ObjectSelectorModel extends Base {
|
|
|
1243
1258
|
show(survey: SurveyModel, selectedObj: Base, onClose: any): void;
|
|
1244
1259
|
refresh(): void;
|
|
1245
1260
|
}
|
|
1246
|
-
export declare class PageNavigatorViewModel
|
|
1261
|
+
export declare class PageNavigatorViewModel extends Base {
|
|
1247
1262
|
constructor(pagesController: PagesController);
|
|
1248
1263
|
icon: string;
|
|
1249
1264
|
pageListModel: ListModel;
|
|
@@ -1320,8 +1335,8 @@ export declare class PropertyGridTitleActionsCreator {
|
|
|
1320
1335
|
obj: Base;
|
|
1321
1336
|
onGetQuestionTitleActions(options: any): void;
|
|
1322
1337
|
}
|
|
1323
|
-
export declare class PropertyGridViewModel
|
|
1324
|
-
constructor(propertyGridModel: PropertyGridModel, creator:
|
|
1338
|
+
export declare class PropertyGridViewModel extends Base {
|
|
1339
|
+
constructor(propertyGridModel: PropertyGridModel, creator: CreatorBase);
|
|
1325
1340
|
nextSelectionAction: Action;
|
|
1326
1341
|
prevSelectionAction: Action;
|
|
1327
1342
|
objectSelectionAction: Action;
|
|
@@ -1345,7 +1360,7 @@ export declare class QuestionConverter {
|
|
|
1345
1360
|
static convertInfo: any;
|
|
1346
1361
|
static addConvertInfo(className: string, convertToClassName: string): void;
|
|
1347
1362
|
static getConvertToClasses(className: string, availableTypes?: any, includeCurrent?: boolean): Array<any>;
|
|
1348
|
-
static convertObject(obj: Question, convertToClass: string): Question;
|
|
1363
|
+
static convertObject(obj: Question, convertToClass: string, defaultJSON?: any): Question;
|
|
1349
1364
|
}
|
|
1350
1365
|
export declare class QuestionEmbeddedSurveyModel extends QuestionNonValue {
|
|
1351
1366
|
constructor(name: string);
|
|
@@ -1374,8 +1389,8 @@ export declare class QuestionLinkValueModel extends Question {
|
|
|
1374
1389
|
* The list of Toolbox items.
|
|
1375
1390
|
*/
|
|
1376
1391
|
export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToolboxItem> implements IQuestionToolbox {
|
|
1377
|
-
constructor(supportedQuestions?: any, creator?:
|
|
1378
|
-
creator:
|
|
1392
|
+
constructor(supportedQuestions?: any, creator?: CreatorBase);
|
|
1393
|
+
creator: CreatorBase;
|
|
1379
1394
|
static hiddenTypes: any;
|
|
1380
1395
|
_orderedQuestions: any;
|
|
1381
1396
|
_questionDefaultSettings: any;
|
|
@@ -1524,8 +1539,8 @@ export declare class ResizeManager {
|
|
|
1524
1539
|
dispose(): void;
|
|
1525
1540
|
}
|
|
1526
1541
|
export declare class RowViewModel extends Base {
|
|
1527
|
-
constructor(creator:
|
|
1528
|
-
creator:
|
|
1542
|
+
constructor(creator: CreatorBase, row: QuestionRowModel, templateData: SurveyTemplateRendererTemplateData);
|
|
1543
|
+
creator: CreatorBase;
|
|
1529
1544
|
row: QuestionRowModel;
|
|
1530
1545
|
templateData: SurveyTemplateRendererTemplateData;
|
|
1531
1546
|
get cssClasses(): string;
|
|
@@ -1545,7 +1560,7 @@ export declare class SelectionHistory extends Base {
|
|
|
1545
1560
|
onObjSelected(obj: Base): void;
|
|
1546
1561
|
}
|
|
1547
1562
|
export declare class SidebarModel extends Base {
|
|
1548
|
-
constructor(creator:
|
|
1563
|
+
constructor(creator: CreatorBase, collapseAction?: any, expandAction?: any);
|
|
1549
1564
|
toolbar: any;
|
|
1550
1565
|
_expandAction: Action;
|
|
1551
1566
|
_collapseAction: Action;
|
|
@@ -1582,7 +1597,7 @@ export declare class SidebarTabModel extends Base {
|
|
|
1582
1597
|
componentName: string;
|
|
1583
1598
|
}
|
|
1584
1599
|
export declare class StringEditorViewModelBase extends Base {
|
|
1585
|
-
constructor(locString: LocalizableString, creator:
|
|
1600
|
+
constructor(locString: LocalizableString, creator: CreatorBase);
|
|
1586
1601
|
blurredByEscape: boolean;
|
|
1587
1602
|
focusedProgram: boolean;
|
|
1588
1603
|
valueBeforeEdit: string;
|
|
@@ -1596,6 +1611,8 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
1596
1611
|
onInput(event: any): void;
|
|
1597
1612
|
done(event: any): void;
|
|
1598
1613
|
onKeyDown(event: any): boolean;
|
|
1614
|
+
justFocused: boolean;
|
|
1615
|
+
onMouseUp(event: any): boolean;
|
|
1599
1616
|
findProperty(): JsonObjectProperty;
|
|
1600
1617
|
get maxLength(): number;
|
|
1601
1618
|
placeholderValue: string;
|
|
@@ -1924,8 +1941,8 @@ export declare class SurveyTextWorker {
|
|
|
1924
1941
|
get isJsonCorrect(): boolean;
|
|
1925
1942
|
protected process(): void;
|
|
1926
1943
|
}
|
|
1927
|
-
export declare class TabDesignerViewModel
|
|
1928
|
-
constructor(creator:
|
|
1944
|
+
export declare class TabDesignerViewModel extends Base {
|
|
1945
|
+
constructor(creator: CreatorBase);
|
|
1929
1946
|
widthUpdater: any;
|
|
1930
1947
|
checkNewPageHandler: any;
|
|
1931
1948
|
surveyOnPropertyChanged: any;
|
|
@@ -1934,8 +1951,8 @@ export declare class TabDesignerViewModel<T> extends Base {
|
|
|
1934
1951
|
pageCount: number;
|
|
1935
1952
|
withModifier: string;
|
|
1936
1953
|
showPlaceholder: boolean;
|
|
1937
|
-
creator:
|
|
1938
|
-
get survey():
|
|
1954
|
+
creator: CreatorBase;
|
|
1955
|
+
get survey(): SurveyModel;
|
|
1939
1956
|
get isToolboxVisible(): boolean;
|
|
1940
1957
|
get placeholderText(): string;
|
|
1941
1958
|
initSurvey(): void;
|
|
@@ -1954,7 +1971,7 @@ export declare class TabbedMenuItem extends Action implements ITabbedMenuItem {
|
|
|
1954
1971
|
renderTab: any;
|
|
1955
1972
|
}
|
|
1956
1973
|
export declare class TestSurveyTabViewModel extends Base {
|
|
1957
|
-
constructor(surveyProvider:
|
|
1974
|
+
constructor(surveyProvider: CreatorBase);
|
|
1958
1975
|
json: any;
|
|
1959
1976
|
pages: any;
|
|
1960
1977
|
prevPageAction: Action;
|
|
@@ -1982,11 +1999,11 @@ export declare class TestSurveyTabViewModel extends Base {
|
|
|
1982
1999
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
1983
2000
|
}
|
|
1984
2001
|
export declare class ToolbarActionContainer extends ActionContainer {
|
|
1985
|
-
constructor(creator:
|
|
2002
|
+
constructor(creator: CreatorBase);
|
|
1986
2003
|
protected getRenderedActions(): Array<Action>;
|
|
1987
2004
|
}
|
|
1988
2005
|
export declare class ToolboxToolViewModel extends Base {
|
|
1989
|
-
constructor(item: IQuestionToolboxItem, creator:
|
|
2006
|
+
constructor(item: IQuestionToolboxItem, creator: CreatorBase);
|
|
1990
2007
|
dragOrClickHelper: DragOrClickHelper;
|
|
1991
2008
|
click: any;
|
|
1992
2009
|
get allowAdd(): boolean;
|
|
@@ -2078,8 +2095,8 @@ export declare class TranslationItemString extends Base {
|
|
|
2078
2095
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
2079
2096
|
getType(): string;
|
|
2080
2097
|
}
|
|
2081
|
-
export declare class UndoRedoController
|
|
2082
|
-
constructor(creator:
|
|
2098
|
+
export declare class UndoRedoController extends Base {
|
|
2099
|
+
constructor(creator: CreatorBase);
|
|
2083
2100
|
undoAction: Action;
|
|
2084
2101
|
redoAction: Action;
|
|
2085
2102
|
undoRedoManager: UndoRedoManager;
|
|
@@ -2092,22 +2109,22 @@ export declare class UndoRedoController<T extends SurveyModel = SurveyModel> ext
|
|
|
2092
2109
|
* The event is called before undo happens.
|
|
2093
2110
|
* <br/> options.canUndo a boolean value. It is true by default. Set it false to hide prevent undo operation.
|
|
2094
2111
|
*/
|
|
2095
|
-
onBeforeUndo: Event<(sender: CreatorBase
|
|
2112
|
+
onBeforeUndo: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
2096
2113
|
/*
|
|
2097
2114
|
* The event is called before redo happens.
|
|
2098
2115
|
* <br/> options.canRedo a boolean value. It is true by default. Set it false to hide prevent redo operation.
|
|
2099
2116
|
*/
|
|
2100
|
-
onBeforeRedo: Event<(sender: CreatorBase
|
|
2117
|
+
onBeforeRedo: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
2101
2118
|
/*
|
|
2102
2119
|
* The event is called after undo happens.
|
|
2103
2120
|
* <br/> options.state is an undo/redo item.
|
|
2104
2121
|
*/
|
|
2105
|
-
onAfterUndo: Event<(sender: CreatorBase
|
|
2122
|
+
onAfterUndo: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
2106
2123
|
/*
|
|
2107
2124
|
* The event is called after redo happens.
|
|
2108
2125
|
* <br/> options.state is an undo/redo item.
|
|
2109
2126
|
*/
|
|
2110
|
-
onAfterRedo: Event<(sender: CreatorBase
|
|
2127
|
+
onAfterRedo: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
2111
2128
|
}
|
|
2112
2129
|
export declare class UndoRedoManager {
|
|
2113
2130
|
constructor();
|
|
@@ -2134,7 +2151,7 @@ export declare class UndoRedoManager {
|
|
|
2134
2151
|
changesFinishedCallback: any;
|
|
2135
2152
|
}
|
|
2136
2153
|
export declare class AceJsonEditorModel extends JsonEditorBaseModel {
|
|
2137
|
-
constructor(creator:
|
|
2154
|
+
constructor(creator: CreatorBase);
|
|
2138
2155
|
static aceBasePath: string;
|
|
2139
2156
|
aceEditor: any;
|
|
2140
2157
|
aceCanUndo: boolean;
|
|
@@ -2178,7 +2195,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
2178
2195
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
2179
2196
|
}
|
|
2180
2197
|
export declare class ImageItemValueWrapperViewModel extends ItemValueWrapperViewModel {
|
|
2181
|
-
constructor(creator:
|
|
2198
|
+
constructor(creator: CreatorBase, question: QuestionSelectBase, item: ImageItemValue, templateData: any, itemsRoot: any);
|
|
2182
2199
|
question: QuestionSelectBase;
|
|
2183
2200
|
item: ImageItemValue;
|
|
2184
2201
|
templateData: any;
|
|
@@ -2205,8 +2222,8 @@ export declare class LogicActionTriggerModel extends LogicActionModelBase {
|
|
|
2205
2222
|
updatePanelElements(selectedElement: string, options?: ISurveyCreatorOptions): void;
|
|
2206
2223
|
getSelectedElement(): string;
|
|
2207
2224
|
}
|
|
2208
|
-
export declare class PageViewModel
|
|
2209
|
-
constructor(creator:
|
|
2225
|
+
export declare class PageViewModel extends ActionContainerViewModel {
|
|
2226
|
+
constructor(creator: CreatorBase, page: PageModel);
|
|
2210
2227
|
isSelected: boolean;
|
|
2211
2228
|
isPageLive: boolean;
|
|
2212
2229
|
onPageSelectedCallback: any;
|
|
@@ -2219,8 +2236,8 @@ export declare class PageViewModel<T> extends ActionContainerViewModel<T> {
|
|
|
2219
2236
|
protected isOperationsAllow(): boolean;
|
|
2220
2237
|
get page(): PageModel;
|
|
2221
2238
|
addGhostPage: any;
|
|
2222
|
-
addNewQuestion(model:
|
|
2223
|
-
select(model:
|
|
2239
|
+
addNewQuestion(model: PageViewModel, event: IPortableMouseEvent): void;
|
|
2240
|
+
select(model: PageViewModel, event: IPortableMouseEvent): void;
|
|
2224
2241
|
get css(): string;
|
|
2225
2242
|
hover(event: any, element: any): void;
|
|
2226
2243
|
hoverStopper(event: any, element: any): void;
|
|
@@ -2250,8 +2267,8 @@ export declare class PropertyGridEditor implements IPropertyGridEditor {
|
|
|
2250
2267
|
isSupportGrouping(): boolean;
|
|
2251
2268
|
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
2252
2269
|
}
|
|
2253
|
-
export declare class QuestionAdornerViewModel extends ActionContainerViewModel
|
|
2254
|
-
constructor(creator:
|
|
2270
|
+
export declare class QuestionAdornerViewModel extends ActionContainerViewModel {
|
|
2271
|
+
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
2255
2272
|
templateData: SurveyTemplateRendererTemplateData;
|
|
2256
2273
|
isDragged: boolean;
|
|
2257
2274
|
currentAddQuestionType: string;
|
|
@@ -2327,10 +2344,10 @@ export declare class SurveyLogicUI extends SurveyLogic {
|
|
|
2327
2344
|
get addNewText(): string;
|
|
2328
2345
|
get emptyTabPlaceHolder(): string;
|
|
2329
2346
|
}
|
|
2330
|
-
export declare class TabDesignerPlugin
|
|
2331
|
-
constructor(creator:
|
|
2332
|
-
model:
|
|
2333
|
-
propertyGrid:
|
|
2347
|
+
export declare class TabDesignerPlugin implements ICreatorPlugin {
|
|
2348
|
+
constructor(creator: CreatorBase);
|
|
2349
|
+
model: TabDesignerViewModel;
|
|
2350
|
+
propertyGrid: PropertyGridViewModel;
|
|
2334
2351
|
propertyGridTab: SidebarTabModel;
|
|
2335
2352
|
toolboxTab: SidebarTabModel;
|
|
2336
2353
|
surveySettingsAction: Action;
|
|
@@ -2344,20 +2361,20 @@ export declare class TabDesignerPlugin<T> implements ICreatorPlugin {
|
|
|
2344
2361
|
addFooterActions(): void;
|
|
2345
2362
|
}
|
|
2346
2363
|
export declare class TabEmbedPlugin implements ICreatorPlugin {
|
|
2347
|
-
constructor(creator:
|
|
2364
|
+
constructor(creator: CreatorBase);
|
|
2348
2365
|
model: EmbedModel;
|
|
2349
2366
|
activate(): void;
|
|
2350
2367
|
deactivate(): boolean;
|
|
2351
2368
|
}
|
|
2352
2369
|
export declare class TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
2353
|
-
constructor(creator:
|
|
2370
|
+
constructor(creator: CreatorBase);
|
|
2354
2371
|
model: JsonEditorBaseModel;
|
|
2355
2372
|
activate(): void;
|
|
2356
2373
|
deactivate(): boolean;
|
|
2357
|
-
protected createModel(creator:
|
|
2374
|
+
protected createModel(creator: CreatorBase): JsonEditorBaseModel;
|
|
2358
2375
|
}
|
|
2359
2376
|
export declare class TabLogicPlugin implements ICreatorPlugin {
|
|
2360
|
-
constructor(creator:
|
|
2377
|
+
constructor(creator: CreatorBase);
|
|
2361
2378
|
filterQuestionAction: Action;
|
|
2362
2379
|
filterActionTypeAction: Action;
|
|
2363
2380
|
fastEntryAction: Action;
|
|
@@ -2370,7 +2387,7 @@ export declare class TabLogicPlugin implements ICreatorPlugin {
|
|
|
2370
2387
|
createActions(): any;
|
|
2371
2388
|
}
|
|
2372
2389
|
export declare class TabTestPlugin implements ICreatorPlugin {
|
|
2373
|
-
constructor(creator:
|
|
2390
|
+
constructor(creator: CreatorBase);
|
|
2374
2391
|
languageSelectorAction: Action;
|
|
2375
2392
|
languagePopupModel: any;
|
|
2376
2393
|
languageListModel: ListModel;
|
|
@@ -2390,7 +2407,7 @@ export declare class TabTestPlugin implements ICreatorPlugin {
|
|
|
2390
2407
|
addFooterActions(): void;
|
|
2391
2408
|
}
|
|
2392
2409
|
export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
2393
|
-
constructor(creator:
|
|
2410
|
+
constructor(creator: CreatorBase);
|
|
2394
2411
|
filterStringsAction: Action;
|
|
2395
2412
|
filterPageAction: Action;
|
|
2396
2413
|
mergeLocaleWithDefaultAction: Action;
|
|
@@ -2413,7 +2430,7 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
2413
2430
|
createActions(): any;
|
|
2414
2431
|
}
|
|
2415
2432
|
export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
|
|
2416
|
-
constructor(creator:
|
|
2433
|
+
constructor(creator: CreatorBase);
|
|
2417
2434
|
protected _text: string;
|
|
2418
2435
|
_errors: any;
|
|
2419
2436
|
ariaLabel: string;
|
|
@@ -2684,12 +2701,12 @@ export declare class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
|
2684
2701
|
isSupportGrouping(): boolean;
|
|
2685
2702
|
}
|
|
2686
2703
|
export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewModel {
|
|
2687
|
-
constructor(creator:
|
|
2704
|
+
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData, questionRoot: any);
|
|
2688
2705
|
questionRoot: any;
|
|
2689
2706
|
chooseFile(model: QuestionImageAdornerViewModel): void;
|
|
2690
2707
|
}
|
|
2691
2708
|
export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewModel {
|
|
2692
|
-
constructor(creator:
|
|
2709
|
+
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
2693
2710
|
get question(): QuestionRatingModel;
|
|
2694
2711
|
addItem(model: QuestionRatingAdornerViewModel): void;
|
|
2695
2712
|
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
@@ -2699,13 +2716,13 @@ export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewM
|
|
|
2699
2716
|
get removeTooltip(): any;
|
|
2700
2717
|
}
|
|
2701
2718
|
export declare class TabJsonEditorAcePlugin extends TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
2702
|
-
constructor(creator:
|
|
2703
|
-
protected createModel(creator:
|
|
2719
|
+
constructor(creator: CreatorBase);
|
|
2720
|
+
protected createModel(creator: CreatorBase): JsonEditorBaseModel;
|
|
2704
2721
|
static hasAceEditor(): boolean;
|
|
2705
2722
|
}
|
|
2706
2723
|
export declare class TabJsonEditorTextareaPlugin extends TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
2707
|
-
constructor(creator:
|
|
2708
|
-
protected createModel(creator:
|
|
2724
|
+
constructor(creator: CreatorBase);
|
|
2725
|
+
protected createModel(creator: CreatorBase): JsonEditorBaseModel;
|
|
2709
2726
|
}
|
|
2710
2727
|
export declare class DefaultArrayValueEditor extends DefaultValueEditor {
|
|
2711
2728
|
constructor(editQuestion: Question, propertyName: string, options?: ISurveyCreatorOptions);
|
|
@@ -2814,6 +2831,7 @@ export declare class PropertyGridEditorQuestionRestfull extends PropertyGridEdit
|
|
|
2814
2831
|
constructor();
|
|
2815
2832
|
fit(prop: JsonObjectProperty): boolean;
|
|
2816
2833
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
2834
|
+
onCreated(obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions): void;
|
|
2817
2835
|
}
|
|
2818
2836
|
export declare class PropertyGridEditorQuestionSelectBase extends PropertyGridEditorQuestion {
|
|
2819
2837
|
constructor();
|
|
@@ -2919,9 +2937,9 @@ export declare function updateMatrixLogicExpandAction(question: QuestionMatrixDy
|
|
|
2919
2937
|
export declare function updateMatrixRemoveAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
2920
2938
|
export declare function setSurveyJSONForPropertyGrid(json: any, updateOnTyping?: boolean, titleLocationLeft?: boolean): void;
|
|
2921
2939
|
export declare function getElementWrapperComponentName(element: any, reason: string, isPopupEditorContent: boolean): string;
|
|
2922
|
-
export declare function getElementWrapperComponentData(element: any, reason: string, creator:
|
|
2940
|
+
export declare function getElementWrapperComponentData(element: any, reason: string, creator: CreatorBase): any;
|
|
2923
2941
|
export declare function getItemValueWrapperComponentName(item: ItemValue, question: QuestionSelectBase): string;
|
|
2924
|
-
export declare function getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase, creator:
|
|
2942
|
+
export declare function getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase): any;
|
|
2925
2943
|
export declare function isStringEditable(element: any, name: string): boolean;
|
|
2926
2944
|
export declare var editorLocalization: {
|
|
2927
2945
|
camelCaseBreaking: boolean,
|
|
@@ -3146,6 +3164,7 @@ export declare var propertyGridCss: {
|
|
|
3146
3164
|
itemSvgIconId: string,
|
|
3147
3165
|
labelChecked: string,
|
|
3148
3166
|
itemControl: string,
|
|
3167
|
+
itemDecorator: string,
|
|
3149
3168
|
controlLabel: string,
|
|
3150
3169
|
materialDecorator: string,
|
|
3151
3170
|
other: string,
|
|
@@ -3179,6 +3198,7 @@ export declare var propertyGridCss: {
|
|
|
3179
3198
|
svgIconId: string,
|
|
3180
3199
|
label: string,
|
|
3181
3200
|
disabledLabel: string,
|
|
3201
|
+
itemDecorator: string,
|
|
3182
3202
|
materialDecorator: string,
|
|
3183
3203
|
},
|
|
3184
3204
|
text: {
|
|
@@ -3317,7 +3337,6 @@ export declare var propertyGridCss: {
|
|
|
3317
3337
|
},
|
|
3318
3338
|
};
|
|
3319
3339
|
export declare var json: {
|
|
3320
|
-
panelJSON: any,
|
|
3321
3340
|
name: string,
|
|
3322
3341
|
showInToolbox: boolean,
|
|
3323
3342
|
createElements: any,
|
|
@@ -4133,5 +4152,6 @@ export declare var logicCss: {
|
|
|
4133
4152
|
},
|
|
4134
4153
|
};
|
|
4135
4154
|
export declare var initialSettingsAllowShowEmptyTitleInDesignMode: boolean;
|
|
4155
|
+
export declare var editableStringRendererName: any;
|
|
4136
4156
|
export declare var svgBundle: string;
|
|
4137
4157
|
export declare var Version: string;
|