survey-creator-core 1.9.1-beta.1 → 1.9.5-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- /*Type definitions for SurveyJS Creator JavaScript library v1.9.1-beta.1
2
- (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
1
+ /*Type definitions for SurveyJS Creator JavaScript library v1.9.5-beta.1
2
+ (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
3
3
  Github: https://github.com/surveyjs/survey-creator
4
4
  License: https://surveyjs.io/Licenses#SurveyCreator
5
5
  */
6
6
  // Dependencies for this module:
7
7
  // ../../../survey-core
8
8
 
9
- import { Base, ItemValue, JsonObjectProperty, MatrixDropdownColumn, Question, SurveyModel } from "survey-core";
9
+ import { Base, IAction, ItemValue, JsonObjectProperty, MatrixDropdownColumn, Question, SurveyModel } from "survey-core";
10
10
  import * as Survey from "survey-core";
11
- import { Base, SurveyModel, Question, PageModel, IElement, ActionContainer, AdaptiveActionContainer, IAction, Action, SurveyElement, ItemValue, QuestionSelectBase } from "survey-core";
11
+ import { Base, SurveyModel, Question, PageModel, IElement, ActionContainer, AdaptiveActionContainer, IAction, Action, IPanel, SurveyElement, ItemValue, QuestionSelectBase } from "survey-core";
12
12
  import { DragDropSurveyElements, DragDropChoices } from "survey-core";
13
13
  import { Base, SurveyModel } from "survey-core";
14
14
  import { SurveyModel } from "survey-core";
@@ -22,7 +22,7 @@ import { SurveyModel, Action, QuestionMatrixDynamicModel } from "survey-core";
22
22
  import { PageModel, PopupModel, ListModel, Base, SurveyModel, IAction, Action } from "survey-core";
23
23
  import { PageModel, SurveyModel } from "survey-core";
24
24
  import { Base, SurveyModel, SurveyTemplateRendererTemplateData, QuestionRowModel } from "survey-core";
25
- import { SurveyElement, SurveyModel, SurveyTemplateRendererTemplateData, Action, DragTypeOverMeEnum } from "survey-core";
25
+ import { SurveyElement, SurveyModel, SurveyTemplateRendererTemplateData, Action, PopupModel, ListModel, DragTypeOverMeEnum, IAction } from "survey-core";
26
26
  import { SurveyElement, SurveyTemplateRendererTemplateData, SurveyModel } from "survey-core";
27
27
  import { SurveyElement, SurveyTemplateRendererTemplateData, SurveyModel, QuestionRatingModel } from "survey-core";
28
28
  import { Base, ItemValue, QuestionSelectBase, SurveyModel } from "survey-core";
@@ -31,6 +31,7 @@ import { SurveyModel, Base, Question } from "survey-core";
31
31
  import { Base } from "survey-core";
32
32
  import { Base, LocalizableString, JsonObjectProperty } from "survey-core";
33
33
  import { SurveyModel, QuestionNonValue } from "survey-core";
34
+ import { Question } from "survey-core";
34
35
  import { Base, JsonObjectProperty, PanelModel, PanelModelBase, Question, SurveyModel, MatrixDynamicRowModel } from "survey-core";
35
36
  import { Base, JsonObjectProperty, Question } from "survey-core";
36
37
  import { Base, JsonObjectProperty, MatrixDynamicRowModel, Question, QuestionMatrixDynamicModel } from "survey-core";
@@ -60,6 +61,7 @@ import "../components/side-bar/side-bar.scss";
60
61
  import "../property-grid-theme/property-grid.scss";
61
62
  import "../utils/design.scss";
62
63
  import "../utils/layout.scss";
64
+ import "../localization/arabic";
63
65
  import "../localization/danish";
64
66
  import "../localization/french";
65
67
  import "../localization/german";
@@ -325,6 +327,8 @@ export declare var enStrings: {
325
327
  propertyIsNoUnique: string;
326
328
  propertyNameIsNotUnique: string;
327
329
  listIsEmpty: string;
330
+ choicesListIsEmpty: string;
331
+ "addNew@choices": string;
328
332
  expressionIsEmpty: string;
329
333
  value: string;
330
334
  text: string;
@@ -525,6 +529,7 @@ export declare var enStrings: {
525
529
  triggerGotoName: string;
526
530
  triggerIsVariable: string;
527
531
  triggerRunExpressionEmpty: string;
532
+ emptyExpressionPlaceHolder: string;
528
533
  noFile: string;
529
534
  };
530
535
  pv: {
@@ -1150,6 +1155,8 @@ export declare var defaultStrings: {
1150
1155
  propertyIsNoUnique: string;
1151
1156
  propertyNameIsNotUnique: string;
1152
1157
  listIsEmpty: string;
1158
+ choicesListIsEmpty: string;
1159
+ "addNew@choices": string;
1153
1160
  expressionIsEmpty: string;
1154
1161
  value: string;
1155
1162
  text: string;
@@ -1350,6 +1357,7 @@ export declare var defaultStrings: {
1350
1357
  triggerGotoName: string;
1351
1358
  triggerIsVariable: string;
1352
1359
  triggerRunExpressionEmpty: string;
1360
+ emptyExpressionPlaceHolder: string;
1353
1361
  noFile: string;
1354
1362
  };
1355
1363
  pv: {
@@ -1808,6 +1816,7 @@ export interface ISurveyCreatorOptions {
1808
1816
  getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
1809
1817
  onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
1810
1818
  onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any;
1819
+ onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): any;
1811
1820
  onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
1812
1821
  onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
1813
1822
  onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base): boolean;
@@ -1838,6 +1847,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
1838
1847
  getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
1839
1848
  onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
1840
1849
  onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
1850
+ onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): void;
1841
1851
  onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
1842
1852
  onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
1843
1853
  onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base): boolean;
@@ -1857,6 +1867,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
1857
1867
 
1858
1868
  import "./components/creator.scss";
1859
1869
  import "./components/string-editor.scss";
1870
+ import "./creator-theme/creator.scss";
1860
1871
  export interface IKeyboardShortcut {
1861
1872
  name?: string;
1862
1873
  hotKey: {
@@ -1935,8 +1946,12 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
1935
1946
  */
1936
1947
  pageHoverDelay: number;
1937
1948
  /**
1938
- * Set it to false to hide survey title and coresponding properties
1949
+ * You need to set this property to true if you want to inplace edit item values instead of texts.
1939
1950
  */
1951
+ inplaceEditForValues: boolean;
1952
+ /**
1953
+ * Set it to false to hide survey title and coresponding properties
1954
+ */
1940
1955
  get allowEditSurveyTitle(): boolean;
1941
1956
  set allowEditSurveyTitle(val: boolean);
1942
1957
  /**
@@ -1946,7 +1961,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
1946
1961
  * @see haveCommercialLicense
1947
1962
  */
1948
1963
  haveCommercialLicense: boolean;
1949
- get licenseText(): any;
1964
+ get licenseText(): string;
1950
1965
  /**
1951
1966
  * A boolean property, false by default. Set it to true to call protected doSave method automatically on survey changing.
1952
1967
  */
@@ -2090,14 +2105,23 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
2090
2105
  */
2091
2106
  onPropertyEditorCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
2092
2107
  /**
2093
- * The event is called before rendering a delete button in the Property Grid or in Question Editor.
2094
- * Obsolete, please use onCollectionItemAllowOperations
2095
- * <br/> sender the survey creator object that fires the event
2096
- * <br/> options.obj the survey Question
2097
- * <br/> options.item the object property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
2098
- * <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
2099
- * @see onCollectionItemAllowOperations
2108
+ * The event is called after a property editor setups its title actions.
2109
+ * You can use this event to modify the property editor title actions
2110
+ * <br/> options.obj the survey object that is currently editing in the property grid
2111
+ * <br/> options.property the property that the current property editor is editing
2112
+ * <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.
2113
+ * <br/> options.titleActions the list of title actions.
2100
2114
  */
2115
+ onPropertyEditorUpdateTitleActions: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
2116
+ /**
2117
+ * The event is called before rendering a delete button in the Property Grid or in Question Editor.
2118
+ * Obsolete, please use onCollectionItemAllowOperations
2119
+ * <br/> sender the survey creator object that fires the event
2120
+ * <br/> options.obj the survey Question
2121
+ * <br/> options.item the object property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
2122
+ * <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
2123
+ * @see onCollectionItemAllowOperations
2124
+ */
2101
2125
  onCanDeleteItem: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
2102
2126
  /**
2103
2127
  * 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.
@@ -2467,8 +2491,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
2467
2491
  constructor(options: ICreatorOptions, options2?: ICreatorOptions);
2468
2492
  updateToolboxIsCompact(newVal?: boolean): void;
2469
2493
  onSurveyElementPropertyValueChanged(property: Survey.JsonObjectProperty, obj: any, newValue: any): void;
2470
- get showToolbox(): string;
2471
- set showToolbox(val: string);
2494
+ get showToolbox(): "left" | "right" | "top" | "none" | boolean;
2495
+ set showToolbox(val: "left" | "right" | "top" | "none" | boolean);
2472
2496
  onShowPropertyGridVisiblityChanged: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
2473
2497
  /**
2474
2498
  * Set this this property grid false to hide the property grid.
@@ -2576,7 +2600,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
2576
2600
  get JSON(): any;
2577
2601
  set JSON(val: any);
2578
2602
  loadSurvey(surveyId: string): void;
2579
- protected doClickQuestionCore(element: IElement, modifiedType?: string, index?: number): void;
2603
+ protected doClickQuestionCore(element: IElement, modifiedType?: string, index?: number, panel?: IPanel): void;
2580
2604
  setNewNames(element: Survey.ISurveyElement): void;
2581
2605
  protected getAllQuestions(): Array<any>;
2582
2606
  protected getAllPanels(): Array<any>;
@@ -2680,7 +2704,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
2680
2704
  * Returns true if selected element is null or there is no errors.
2681
2705
  */
2682
2706
  validateSelectedElement(): boolean;
2683
- clickToolboxItem(newElement: any): void;
2707
+ clickToolboxItem(newElement: any, panel?: IPanel): void;
2684
2708
  getJSONForNewElement(json: any): any;
2685
2709
  /**
2686
2710
  * Open file chooser dialog
@@ -2709,6 +2733,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
2709
2733
  set alwaySaveTextInPropertyEditors(value: boolean);
2710
2734
  onCanShowPropertyCallback(object: any, property: Survey.JsonObjectProperty, showMode: string, parentObj: any, parentProperty: Survey.JsonObjectProperty): boolean;
2711
2735
  onPropertyEditorCreatedCallback(object: any, property: Survey.JsonObjectProperty, editor: Question): void;
2736
+ onPropertyEditorUpdateTitleActionsCallback(object: any, property: Survey.JsonObjectProperty, editor: Question, titleActions: IAction[]): void;
2712
2737
  onCanDeleteItemCallback(object: any, item: Survey.Base, allowDelete: boolean): boolean;
2713
2738
  onCollectionItemDeletingCallback(obj: Survey.Base, property: Survey.JsonObjectProperty, collection: Array<Survey.Base>, item: Survey.Base): boolean;
2714
2739
  onCollectionItemAllowingCallback(obj: Base, property: Survey.JsonObjectProperty, collection: Array<Base>, item: Base, itemOptions: ICollectionItemAllowOperations): void;
@@ -2737,15 +2762,16 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
2737
2762
  get saveSurveyFunc(): any;
2738
2763
  set saveSurveyFunc(value: any);
2739
2764
  convertCurrentQuestion(newType: string): void;
2765
+ getAddNewQuestionText(currentAddQuestionType?: string): any;
2740
2766
  get addNewQuestionText(): any;
2741
- getQuestionTypeSelectorModel(beforeAdd: () => void): {
2767
+ getQuestionTypeSelectorModel(beforeAdd: (type: string) => void, panel?: IPanel): {
2742
2768
  iconName: string;
2743
2769
  action: () => void;
2744
2770
  popupModel: Survey.PopupModel<{
2745
2771
  model: Survey.ListModel;
2746
2772
  }>;
2747
2773
  };
2748
- addNewQuestionInPage(beforeAdd: () => void): void;
2774
+ addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
2749
2775
  createIActionBarItemByClass(className: string, title?: string): Action;
2750
2776
  onElementMenuItemsChanged(element: any, items: Action[]): void;
2751
2777
  getElementAllowOperations(element: SurveyElement): any;
@@ -2797,8 +2823,8 @@ import "./json-editor-ace.scss";
2797
2823
  export declare class AceJsonEditorModel extends JsonEditorBaseModel {
2798
2824
  static aceBasePath: string;
2799
2825
  constructor(creator: CreatorBase<SurveyModel>);
2800
- get text(): string;
2801
- set text(value: string);
2826
+ protected getText(): string;
2827
+ protected setText(value: string): void;
2802
2828
  init(aceEditor: AceAjax.Editor): void;
2803
2829
  protected onTextChanged(): void;
2804
2830
  protected setErrors(errors: any[]): void;
@@ -2815,7 +2841,10 @@ export declare abstract class JsonEditorBaseModel extends Base {
2815
2841
  isJSONChanged: boolean;
2816
2842
  isProcessingImmediately: boolean;
2817
2843
  constructor(creator: CreatorBase<SurveyModel>);
2818
- abstract text: string;
2844
+ get text(): string;
2845
+ set text(val: string);
2846
+ protected abstract getText(): string;
2847
+ protected abstract setText(val: string): void;
2819
2848
  protected onEditorActivated(): void;
2820
2849
  onPluginActivate(): void;
2821
2850
  protected onTextChanged(): void;
@@ -2838,8 +2867,8 @@ export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
2838
2867
  canShowErrors: boolean;
2839
2868
  constructor(creator: CreatorBase<SurveyModel>);
2840
2869
  checkKey(data: any, e: any): boolean;
2841
- get text(): string;
2842
- set text(value: string);
2870
+ protected getText(): string;
2871
+ protected setText(value: string): void;
2843
2872
  get errorButtonText(): string;
2844
2873
  toggleErrors(): void;
2845
2874
  get userFriendlyErrors(): any[];
@@ -2856,6 +2885,7 @@ import "./test.scss";
2856
2885
  export declare class TestSurveyTabViewModel extends Base {
2857
2886
  pages: ActionContainer;
2858
2887
  prevPageAction: Action;
2888
+ testAgainAction: Action;
2859
2889
  nextPageAction: Action;
2860
2890
  onSurveyCreatedCallback: (survey: SurveyModel) => any;
2861
2891
  simulator: SurveySimulatorModel;
@@ -3122,7 +3152,8 @@ export declare class TranslationGroup extends TranslationItemBase {
3122
3152
  name: any;
3123
3153
  obj: any;
3124
3154
  text: string;
3125
- constructor(name: any, obj: any, translation?: ITranslationLocales, text?: string);
3155
+ hasIndent: boolean;
3156
+ constructor(name: any, obj: any, translation?: ITranslationLocales, text?: string, hasIndent?: boolean);
3126
3157
  getType(): string;
3127
3158
  showHeader: boolean;
3128
3159
  get items(): Array<TranslationItemBase>;
@@ -3525,6 +3556,7 @@ export declare class TabDesignerViewModel<T extends SurveyModel> extends Base {
3525
3556
  get isToolboxVisible(): boolean;
3526
3557
  initSurvey(): void;
3527
3558
  dispose(): void;
3559
+ clickDesigner(): void;
3528
3560
  getDesignerCss(): string;
3529
3561
  getRootCss(): string;
3530
3562
  }
@@ -3538,6 +3570,7 @@ export declare class TabDesignerPlugin<T extends SurveyModel> implements ICreato
3538
3570
  deactivate(): boolean;
3539
3571
  update(): void;
3540
3572
  createActions(): Action[];
3573
+ selectSurvey(): void;
3541
3574
  addFooterActions(): void;
3542
3575
  }
3543
3576
 
@@ -3932,6 +3965,7 @@ export declare class PageViewModel<T extends SurveyModel> extends ActionContaine
3932
3965
  isPageLive: boolean;
3933
3966
  onPageSelectedCallback: () => void;
3934
3967
  questionTypeSelectorModel: any;
3968
+ currentAddQuestionType: string;
3935
3969
  constructor(creator: CreatorBase<T>, page: PageModel);
3936
3970
  protected onElementSelectedChanged(isSelected: boolean): void;
3937
3971
  dispose(): void;
@@ -3961,12 +3995,13 @@ import "./question.scss";
3961
3995
  export declare class QuestionAdornerViewModel extends ActionContainerViewModel<SurveyModel> {
3962
3996
  templateData: SurveyTemplateRendererTemplateData;
3963
3997
  isDragged: boolean;
3998
+ currentAddQuestionType: string;
3964
3999
  constructor(creator: CreatorBase<SurveyModel>, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
3965
4000
  select(model: QuestionAdornerViewModel, event: IPortableMouseEvent): boolean;
3966
4001
  rootCss(): "" | " svc-question__adorner--start-with-new-line";
3967
4002
  css(): string;
3968
4003
  get isDragMe(): boolean;
3969
- get dragTypeOverMe(): DragTypeOverMeEnum;
4004
+ dragTypeOverMe: DragTypeOverMeEnum;
3970
4005
  dispose(): void;
3971
4006
  get isDraggable(): boolean;
3972
4007
  hover(event: MouseEvent, element: HTMLElement): void;
@@ -3975,10 +4010,21 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
3975
4010
  get placeholderText(): string;
3976
4011
  get isRequired(): any;
3977
4012
  set isRequired(newVal: any);
3978
- startDragSurveyElement(event: PointerEvent): boolean;
4013
+ onPointerDown(pointerDownEvent: PointerEvent): void;
4014
+ startDragSurveyElement: (event: PointerEvent) => boolean;
3979
4015
  get allowEdit(): boolean;
4016
+ getConvertToTypesActions(): Array<IAction>;
3980
4017
  protected buildActions(items: Array<Action>): void;
3981
4018
  protected duplicate(): void;
4019
+ addNewQuestion(): void;
4020
+ questionTypeSelectorModel: {
4021
+ iconName: string;
4022
+ action: () => void;
4023
+ popupModel: PopupModel<{
4024
+ model: ListModel;
4025
+ }>;
4026
+ };
4027
+ get addNewQuestionText(): string;
3982
4028
  }
3983
4029
 
3984
4030
  import "./question-image.scss";
@@ -3996,6 +4042,8 @@ export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewM
3996
4042
  removeItem(model: QuestionRatingAdornerViewModel): void;
3997
4043
  get allowAdd(): boolean;
3998
4044
  get allowRemove(): boolean;
4045
+ get addTooltip(): any;
4046
+ get removeTooltip(): any;
3999
4047
  }
4000
4048
 
4001
4049
  import "./item-value.scss";
@@ -4318,6 +4366,26 @@ export declare class QuestionEmbeddedSurveyModel extends QuestionNonValue {
4318
4366
  getType(): string;
4319
4367
  }
4320
4368
 
4369
+ import "./link-value.scss";
4370
+ export declare class QuestionLinkValueModel extends Question {
4371
+ linkClickCallback: () => void;
4372
+ resetClickCallback: () => void;
4373
+ linkSetButtonCssClasses: string;
4374
+ linkClearButtonCssClasses: string;
4375
+ isSelected: boolean;
4376
+ linkValueText: string;
4377
+ showClear: boolean;
4378
+ allowClear: boolean;
4379
+ showValueInLink: boolean;
4380
+ showTooltip: boolean;
4381
+ constructor(name: string, json?: any);
4382
+ protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
4383
+ get tooltip(): string;
4384
+ getType(): string;
4385
+ doLinkClick(): void;
4386
+ doClearClick(): void;
4387
+ }
4388
+
4321
4389
  export declare class SurveyJSON5 {
4322
4390
  static positionName: string;
4323
4391
  constructor(parseType?: number);
@@ -4359,6 +4427,7 @@ export interface IPropertyGridEditor {
4359
4427
  onMatrixCellValueChanged?: (obj: Base, options: any) => void;
4360
4428
  onMatrixAllowRemoveRow?: (obj: Base, row: any) => boolean;
4361
4429
  onGetQuestionTitleActions?: (obj: Base, options: any) => void;
4430
+ onUpdateQuestionCssClasses?: (obj: Base, options: any) => void;
4362
4431
  }
4363
4432
  export declare var PropertyGridEditorCollection: {
4364
4433
  editors: IPropertyGridEditor[];
@@ -4374,6 +4443,7 @@ export declare var PropertyGridEditorCollection: {
4374
4443
  onMatrixCellValueChanged(obj: Base, prop: JsonObjectProperty, options: any): void;
4375
4444
  onMatrixAllowRemoveRow(obj: Base, prop: JsonObjectProperty, row: MatrixDynamicRowModel): boolean;
4376
4445
  onGetMatrixRowAction(obj: Base, prop: JsonObjectProperty, options: any, setObjFunc: (obj: Base) => void): void;
4446
+ onUpdateQuestionCssClasses(obj: Base, prop: JsonObjectProperty, options: any): void;
4377
4447
  onGetQuestionTitleActions(obj: Base, prop: JsonObjectProperty, options: any): void;
4378
4448
  onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
4379
4449
  onMasterValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
@@ -4417,11 +4487,16 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
4417
4487
  constructor();
4418
4488
  abstract fit(prop: JsonObjectProperty): boolean;
4419
4489
  abstract getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
4420
- showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): any;
4490
+ showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
4491
+ protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
4492
+ protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
4493
+ isSupportGrouping(): boolean;
4494
+ onUpdateQuestionCssClasses(obj: Base, options: any): void;
4421
4495
  }
4422
4496
  export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
4423
4497
  fit(prop: JsonObjectProperty, context?: string): boolean;
4424
4498
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
4499
+ isSupportGrouping(): boolean;
4425
4500
  }
4426
4501
  export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
4427
4502
  protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
@@ -4518,6 +4593,8 @@ export declare abstract class PropertyGridEditorMatrix extends PropertyGridEdito
4518
4593
  protected getAllowRowDragDrop(): boolean;
4519
4594
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
4520
4595
  protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
4596
+ protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
4597
+ protected getEmptyRowsText(props: any): any;
4521
4598
  protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
4522
4599
  protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
4523
4600
  protected getEditItemAsStandAlone(): boolean;
@@ -4534,6 +4611,8 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
4534
4611
  protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
4535
4612
  protected getDefaulColumnNames(): Array<string>;
4536
4613
  protected getKeyValue(): string;
4614
+ protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
4615
+ protected getEmptyRowsText(prop: any): any;
4537
4616
  protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
4538
4617
  }
4539
4618
  export declare class PropertyGridEditorMatrixColumns extends PropertyGridEditorMatrix {
@@ -4645,23 +4724,12 @@ export declare class PropertyGridEditorQuestionRestfull extends PropertyGridEdit
4645
4724
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
4646
4725
  }
4647
4726
 
4648
- export declare class QuestionLinkValueModel extends Question {
4649
- linkClickCallback: () => void;
4650
- resetClickCallback: () => void;
4651
- linkValueText: string;
4652
- showClear: boolean;
4653
- showValueInLink: boolean;
4654
- constructor(name: string, json?: any);
4655
- protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
4656
- getType(): string;
4657
- doLinkClick(): void;
4658
- doClearClick(): void;
4659
- }
4660
4727
  export declare abstract class PropertyGridValueEditorBase extends PropertyGridEditor {
4661
4728
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
4662
4729
  onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
4663
4730
  clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
4664
4731
  protected isValueEmpty(val: any): boolean;
4732
+ isSupportGrouping(): boolean;
4665
4733
  }
4666
4734
  export declare class PropertyGridCellsEditor extends PropertyGridValueEditorBase {
4667
4735
  fit(prop: JsonObjectProperty): boolean;
@@ -4755,6 +4823,7 @@ export declare var propertyGridCss: {
4755
4823
  pageTitle: string;
4756
4824
  pageDescription: string;
4757
4825
  row: string;
4826
+ rowMultiple: string;
4758
4827
  question: {
4759
4828
  mainRoot: string;
4760
4829
  flowRoot: string;
@@ -4803,6 +4872,7 @@ export declare var propertyGridCss: {
4803
4872
  itemHover: string;
4804
4873
  itemInline: string;
4805
4874
  label: string;
4875
+ itemSvgIconId: string;
4806
4876
  labelChecked: string;
4807
4877
  itemControl: string;
4808
4878
  itemDecorator: string;
@@ -4836,6 +4906,7 @@ export declare var propertyGridCss: {
4836
4906
  itemChecked: string;
4837
4907
  itemIndeterminate: string;
4838
4908
  itemDisabled: string;
4909
+ svgIconId: string;
4839
4910
  label: string;
4840
4911
  disabledLabel: string;
4841
4912
  itemDecorator: string;
@@ -4916,6 +4987,8 @@ export declare var propertyGridCss: {
4916
4987
  iconDrag: string;
4917
4988
  dragDropGhostPositionTop: string;
4918
4989
  dragDropGhostPositionBottom: string;
4990
+ emptyRowsSection: string;
4991
+ emptyRowsText: string;
4919
4992
  };
4920
4993
  rating: {
4921
4994
  root: string;
@@ -4978,7 +5051,7 @@ export declare var propertyGridCss: {
4978
5051
  export declare class QuestionConverter {
4979
5052
  static convertInfo: {};
4980
5053
  static addConvertInfo(className: string, convertToClassName: string): void;
4981
- static getConvertToClasses(className: string, availableTypes?: Array<string>): Array<string>;
5054
+ static getConvertToClasses(className: string, availableTypes?: Array<string>, includeCurrent?: boolean): Array<string>;
4982
5055
  static convertObject(obj: Survey.Question, convertToClass: string): Survey.Question;
4983
5056
  }
4984
5057
 
@@ -5039,6 +5112,7 @@ export declare class QuestionToolboxCategory extends Base {
5039
5112
  }
5040
5113
  export declare class QuestionToolboxItem extends Action implements IQuestionToolboxItem {
5041
5114
  constructor(item: IQuestionToolboxItem);
5115
+ iconName: string;
5042
5116
  name: string;
5043
5117
  json: any;
5044
5118
  title: string;
@@ -5197,7 +5271,8 @@ export declare class SideBarModel extends Base {
5197
5271
  getTabById(id: string): SideBarTabModel;
5198
5272
  constructor(creator: CreatorBase, collapseAction?: () => void, expandAction?: () => void);
5199
5273
  getExpandAction(): Action;
5200
- closePropertyGrid(): void;
5274
+ collapseSideBar(): void;
5275
+ expandSideBar(): void;
5201
5276
  addTab(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>): SideBarTabModel;
5202
5277
  updateHasVisibleTabs(): void;
5203
5278
  dispose(): void;
@@ -5243,6 +5318,7 @@ export declare function select(element: any): void;
5243
5318
  export declare function copyObject(dst: any, src: any): void;
5244
5319
  export declare function copyCssClasses(dest: any, source: any): void;
5245
5320
  export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
5321
+ export declare function wrapTextByCurlyBraces(text: string): string;
5246
5322
 
5247
5323
  export interface ISurveyQuestionEditorDefinition {
5248
5324
  title?: string;
@@ -5290,7 +5366,7 @@ export declare class SurveyHelper {
5290
5366
  static disableSelectingObj(obj: Base): void;
5291
5367
  static enableSelectingObj(obj: Base): void;
5292
5368
  static canSelectObj(obj: Base): boolean;
5293
- static warnNonSupported(name: string): void;
5369
+ static warnNonSupported(name: string, newPropertyName?: string): void;
5294
5370
  static warnText(text: string): void;
5295
5371
  static updateQuestionJson(questionJson: any): void;
5296
5372
  static convertMatrixRowsToText(rows: any): string;
@@ -5482,8 +5558,7 @@ export declare class SurveyLogicItem {
5482
5558
  get name(): string;
5483
5559
  get survey(): SurveyModel;
5484
5560
  getVisibleLogicTypes(): Array<SurveyLogicType>;
5485
- get title(): string;
5486
- get actionsText(): string;
5561
+ getDisplayText(): any;
5487
5562
  edit(): void;
5488
5563
  remove(): void;
5489
5564
  get isReadOnly(): boolean;
@@ -5497,9 +5572,9 @@ export declare class SurveyLogicItem {
5497
5572
  removeQuestion(name: string): void;
5498
5573
  getQuestionNames(): string[];
5499
5574
  getActionTypes(): string[];
5500
- get expressionText(): string;
5501
5575
  get editText(): string;
5502
5576
  get deleteText(): string;
5577
+ get ifText(): string;
5503
5578
  isSuitable(filteredName: string, logicTypeName?: string): boolean;
5504
5579
  }
5505
5580
 
@@ -5761,6 +5836,7 @@ export interface IPropertyGridEditor {
5761
5836
  onMatrixCellValueChanged?: (obj: Base, options: any) => void;
5762
5837
  onMatrixAllowRemoveRow?: (obj: Base, row: any) => boolean;
5763
5838
  onGetQuestionTitleActions?: (obj: Base, options: any) => void;
5839
+ onUpdateQuestionCssClasses?: (obj: Base, options: any) => void;
5764
5840
  }
5765
5841
  export declare var PropertyGridEditorCollection: {
5766
5842
  editors: IPropertyGridEditor[];
@@ -5776,6 +5852,7 @@ export declare var PropertyGridEditorCollection: {
5776
5852
  onMatrixCellValueChanged(obj: Base, prop: JsonObjectProperty, options: any): void;
5777
5853
  onMatrixAllowRemoveRow(obj: Base, prop: JsonObjectProperty, row: MatrixDynamicRowModel): boolean;
5778
5854
  onGetMatrixRowAction(obj: Base, prop: JsonObjectProperty, options: any, setObjFunc: (obj: Base) => void): void;
5855
+ onUpdateQuestionCssClasses(obj: Base, prop: JsonObjectProperty, options: any): void;
5779
5856
  onGetQuestionTitleActions(obj: Base, prop: JsonObjectProperty, options: any): void;
5780
5857
  onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
5781
5858
  onMasterValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
@@ -5819,11 +5896,16 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
5819
5896
  constructor();
5820
5897
  abstract fit(prop: JsonObjectProperty): boolean;
5821
5898
  abstract getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
5822
- showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): any;
5899
+ showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
5900
+ protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
5901
+ protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
5902
+ isSupportGrouping(): boolean;
5903
+ onUpdateQuestionCssClasses(obj: Base, options: any): void;
5823
5904
  }
5824
5905
  export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
5825
5906
  fit(prop: JsonObjectProperty, context?: string): boolean;
5826
5907
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
5908
+ isSupportGrouping(): boolean;
5827
5909
  }
5828
5910
  export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
5829
5911
  protected updateMaxLength(prop: JsonObjectProperty, json: any): any;