survey-react 1.8.73 → 1.8.77

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/survey.react.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*Type definitions for Survey JavaScript library v1.8.73
1
+ /*Type definitions for Survey JavaScript library v1.8.77
2
2
  Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
3
3
  Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
4
4
  */
@@ -233,6 +233,8 @@ export declare var defaultStandardCss: {
233
233
  progressText: string;
234
234
  panelWrapper: string;
235
235
  panelWrapperInRow: string;
236
+ separatorV2: string;
237
+ footer: string;
236
238
  };
237
239
  multipletext: {
238
240
  root: string;
@@ -545,6 +547,8 @@ export declare var defaultBootstrapCss: {
545
547
  progressText: string;
546
548
  panelWrapper: string;
547
549
  panelWrapperInRow: string;
550
+ separatorV2: string;
551
+ footer: string;
548
552
  };
549
553
  multipletext: {
550
554
  root: string;
@@ -861,6 +865,8 @@ export declare var defaultBootstrapMaterialCss: {
861
865
  progressText: string;
862
866
  panelWrapper: string;
863
867
  panelWrapperInRow: string;
868
+ separatorV2: string;
869
+ footer: string;
864
870
  };
865
871
  multipletext: {
866
872
  root: string;
@@ -957,6 +963,322 @@ export declare var defaultBootstrapMaterialCss: {
957
963
  };
958
964
  };
959
965
 
966
+ export declare var defaultV2Css: {
967
+ root: string;
968
+ container: string;
969
+ header: string;
970
+ body: string;
971
+ bodyEmpty: string;
972
+ footer: string;
973
+ title: string;
974
+ description: string;
975
+ logo: string;
976
+ logoImage: string;
977
+ headerText: string;
978
+ navigationButton: string;
979
+ completedPage: string;
980
+ navigation: {
981
+ complete: string;
982
+ prev: string;
983
+ next: string;
984
+ start: string;
985
+ preview: string;
986
+ edit: string;
987
+ };
988
+ panel: {
989
+ title: string;
990
+ titleExpandable: string;
991
+ titleOnExpand: string;
992
+ titleOnError: string;
993
+ description: string;
994
+ container: string;
995
+ content: string;
996
+ icon: string;
997
+ iconExpanded: string;
998
+ footer: string;
999
+ requiredText: string;
1000
+ };
1001
+ paneldynamic: {
1002
+ mainRoot: string;
1003
+ root: string;
1004
+ navigation: string;
1005
+ title: string;
1006
+ button: string;
1007
+ buttonRemove: string;
1008
+ buttonAdd: string;
1009
+ progressTop: string;
1010
+ progressBottom: string;
1011
+ buttonPrev: string;
1012
+ buttonNext: string;
1013
+ progressContainer: string;
1014
+ progress: string;
1015
+ progressBar: string;
1016
+ progressText: string;
1017
+ separator: string;
1018
+ separatorV2: string;
1019
+ panelWrapper: string;
1020
+ footer: string;
1021
+ footerButtonsContainer: string;
1022
+ panelWrapperInRow: string;
1023
+ };
1024
+ progress: string;
1025
+ progressBar: string;
1026
+ progressText: string;
1027
+ progressTextInBar: string;
1028
+ page: {
1029
+ root: string;
1030
+ title: string;
1031
+ description: string;
1032
+ };
1033
+ pageTitle: string;
1034
+ pageDescription: string;
1035
+ row: string;
1036
+ rowMultiple: string;
1037
+ question: {
1038
+ mainRoot: string;
1039
+ flowRoot: string;
1040
+ asCell: string;
1041
+ answered: string;
1042
+ header: string;
1043
+ headerLeft: string;
1044
+ headerTop: string;
1045
+ headerBottom: string;
1046
+ content: string;
1047
+ contentLeft: string;
1048
+ titleLeftRoot: string;
1049
+ titleOnAnswer: string;
1050
+ titleOnError: string;
1051
+ title: string;
1052
+ requiredText: string;
1053
+ number: string;
1054
+ description: string;
1055
+ descriptionUnderInput: string;
1056
+ comment: string;
1057
+ other: string;
1058
+ required: string;
1059
+ titleRequired: string;
1060
+ indent: number;
1061
+ footer: string;
1062
+ formGroup: string;
1063
+ hasError: string;
1064
+ disabled: string;
1065
+ };
1066
+ image: {
1067
+ root: string;
1068
+ image: string;
1069
+ };
1070
+ error: {
1071
+ root: string;
1072
+ icon: string;
1073
+ item: string;
1074
+ locationTop: string;
1075
+ locationBottom: string;
1076
+ };
1077
+ checkbox: {
1078
+ root: string;
1079
+ item: string;
1080
+ itemSelectAll: string;
1081
+ itemNone: string;
1082
+ itemDisabled: string;
1083
+ itemChecked: string;
1084
+ itemHover: string;
1085
+ itemInline: string;
1086
+ label: string;
1087
+ labelChecked: string;
1088
+ itemControl: string;
1089
+ itemDecorator: string;
1090
+ controlLabel: string;
1091
+ materialDecorator: string;
1092
+ other: string;
1093
+ column: string;
1094
+ };
1095
+ radiogroup: {
1096
+ root: string;
1097
+ item: string;
1098
+ itemInline: string;
1099
+ label: string;
1100
+ labelChecked: string;
1101
+ itemDisabled: string;
1102
+ itemChecked: string;
1103
+ itemHover: string;
1104
+ itemControl: string;
1105
+ itemDecorator: string;
1106
+ controlLabel: string;
1107
+ materialDecorator: string;
1108
+ other: string;
1109
+ clearButton: string;
1110
+ column: string;
1111
+ };
1112
+ boolean: {
1113
+ mainRoot: string;
1114
+ root: string;
1115
+ item: string;
1116
+ control: string;
1117
+ itemChecked: string;
1118
+ itemIndeterminate: string;
1119
+ itemDisabled: string;
1120
+ label: string;
1121
+ switch: string;
1122
+ disabledLabel: string;
1123
+ itemDecorator: string;
1124
+ materialDecorator: string;
1125
+ sliderText: string;
1126
+ slider: string;
1127
+ };
1128
+ text: {
1129
+ root: string;
1130
+ small: string;
1131
+ controlDisabled: string;
1132
+ onError: string;
1133
+ };
1134
+ multipletext: {
1135
+ root: string;
1136
+ item: string;
1137
+ itemTitle: string;
1138
+ row: string;
1139
+ cell: string;
1140
+ };
1141
+ dropdown: {
1142
+ root: string;
1143
+ small: string;
1144
+ control: string;
1145
+ selectWrapper: string;
1146
+ other: string;
1147
+ onError: string;
1148
+ label: string;
1149
+ item: string;
1150
+ itemDisabled: string;
1151
+ itemChecked: string;
1152
+ itemHover: string;
1153
+ itemControl: string;
1154
+ itemDecorator: string;
1155
+ controlDisabled: string;
1156
+ controlLabel: string;
1157
+ materialDecorator: string;
1158
+ };
1159
+ imagepicker: {
1160
+ mainRoot: string;
1161
+ root: string;
1162
+ item: string;
1163
+ itemInline: string;
1164
+ itemChecked: string;
1165
+ itemDisabled: string;
1166
+ itemHover: string;
1167
+ label: string;
1168
+ itemControl: string;
1169
+ image: string;
1170
+ itemText: string;
1171
+ clearButton: string;
1172
+ other: string;
1173
+ };
1174
+ matrix: {
1175
+ mainRoot: string;
1176
+ tableWrapper: string;
1177
+ root: string;
1178
+ rowError: string;
1179
+ cell: string;
1180
+ headerCell: string;
1181
+ label: string;
1182
+ itemValue: string;
1183
+ itemChecked: string;
1184
+ itemDisabled: string;
1185
+ itemHover: string;
1186
+ materialDecorator: string;
1187
+ itemDecorator: string;
1188
+ cellText: string;
1189
+ cellTextSelected: string;
1190
+ cellTextDisabled: string;
1191
+ };
1192
+ matrixdropdown: {
1193
+ mainRoot: string;
1194
+ root: string;
1195
+ cell: string;
1196
+ headerCell: string;
1197
+ };
1198
+ matrixdynamic: {
1199
+ mainRoot: string;
1200
+ root: string;
1201
+ cell: string;
1202
+ headerCell: string;
1203
+ button: string;
1204
+ detailRow: string;
1205
+ detailButton: string;
1206
+ detailButtonExpanded: string;
1207
+ detailIcon: string;
1208
+ detailIconExpanded: string;
1209
+ detailPanelCell: string;
1210
+ actionsCell: string;
1211
+ buttonAdd: string;
1212
+ buttonRemove: string;
1213
+ iconAdd: string;
1214
+ iconRemove: string;
1215
+ };
1216
+ rating: {
1217
+ root: string;
1218
+ item: string;
1219
+ itemHover: string;
1220
+ selected: string;
1221
+ minText: string;
1222
+ itemText: string;
1223
+ maxText: string;
1224
+ itemDisabled: string;
1225
+ };
1226
+ comment: {
1227
+ root: string;
1228
+ small: string;
1229
+ controlDisabled: string;
1230
+ };
1231
+ expression: string;
1232
+ file: {
1233
+ root: string;
1234
+ other: string;
1235
+ placeholderInput: string;
1236
+ preview: string;
1237
+ fileSign: string;
1238
+ fileList: string;
1239
+ fileSignBottom: string;
1240
+ fileDecorator: string;
1241
+ fileDecoratorDrag: string;
1242
+ fileInput: string;
1243
+ noFileChosen: string;
1244
+ chooseFile: string;
1245
+ disabled: string;
1246
+ removeButton: string;
1247
+ removeButtonBottom: string;
1248
+ removeFile: string;
1249
+ removeFileSvg: string;
1250
+ wrapper: string;
1251
+ defaultImage: string;
1252
+ removeFileButton: string;
1253
+ dragAreaPlaceholder: string;
1254
+ };
1255
+ signaturepad: {
1256
+ root: string;
1257
+ small: string;
1258
+ controls: string;
1259
+ placeholder: string;
1260
+ clearButton: string;
1261
+ };
1262
+ saveData: {
1263
+ root: string;
1264
+ saving: string;
1265
+ error: string;
1266
+ success: string;
1267
+ saveAgainButton: string;
1268
+ };
1269
+ window: {
1270
+ root: string;
1271
+ body: string;
1272
+ header: {
1273
+ root: string;
1274
+ title: string;
1275
+ button: string;
1276
+ buttonExpanded: string;
1277
+ buttonCollapsed: string;
1278
+ };
1279
+ };
1280
+ };
1281
+
960
1282
  export declare var modernCss: {
961
1283
  root: string;
962
1284
  container: string;
@@ -1011,6 +1333,8 @@ export declare var modernCss: {
1011
1333
  separator: string;
1012
1334
  panelWrapper: string;
1013
1335
  panelWrapperInRow: string;
1336
+ separatorV2: string;
1337
+ footer: string;
1014
1338
  };
1015
1339
  progress: string;
1016
1340
  progressBar: string;
@@ -1500,6 +1824,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
1500
1824
  protected dotsItem: Action;
1501
1825
  protected dotsItemPopupModel: PopupModel;
1502
1826
  minVisibleItemsCount: number;
1827
+ protected invisibleItemsListModel: ListModel;
1503
1828
  constructor();
1504
1829
  protected onSet(): void;
1505
1830
  protected onPush(item: T): void;
@@ -1975,10 +2300,11 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
1975
2300
  handleOnRangeChange(event: any): void;
1976
2301
  protected renderElement(): JSX.Element;
1977
2302
  protected renderNavigator(): JSX.Element;
1978
- protected rendrerPrevButton(): JSX.Element;
1979
- protected rendrerNextButton(): JSX.Element;
2303
+ protected rendrerPrevButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
2304
+ protected rendrerNextButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
1980
2305
  protected renderRange(): JSX.Element;
1981
2306
  protected renderAddRowButton(): JSX.Element;
2307
+ protected renderNavigatorV2(): JSX.Element;
1982
2308
  }
1983
2309
  export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
1984
2310
  constructor(props: any);
@@ -2125,6 +2451,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
2125
2451
  protected getStateElement(): PopupModel<any>;
2126
2452
  componentDidMount(): void;
2127
2453
  componentWillUnmount(): void;
2454
+ shouldComponentUpdate(nextProps: IPopupProps): boolean;
2128
2455
  render(): JSX.Element;
2129
2456
  }
2130
2457
  export declare class PopupContainer extends SurveyElementBase<any, any> {
@@ -2297,6 +2624,12 @@ export declare var settings: {
2297
2624
  * separator that can allow to set value and text of ItemValue object in one string as: "value|text"
2298
2625
  */
2299
2626
  itemValueSeparator: string;
2627
+ /**
2628
+ * Set it to true to serialize itemvalue instance always as object even if text property is empty
2629
+ * const item = new Survey.ItemValue(5);
2630
+ * item.toJSON(); //will return {value: 5}, instead of 5 by default.
2631
+ */
2632
+ itemValueAlwaysSerializeAsObject: boolean;
2300
2633
  /**
2301
2634
  * default locale name for localizable strings that uses during serialization, {"default": "My text", "de": "Mein Text"}
2302
2635
  */
@@ -2354,9 +2687,19 @@ export declare var settings: {
2354
2687
  */
2355
2688
  executeSkipTriggerOnValueChanged: boolean;
2356
2689
  /**
2357
- * Set this property to change readOnlyCommentRenderMode: "textarea" (default) or (div)
2690
+ * Specifies how the input field of [Comment](https://surveyjs.io/Documentation/Library?id=questioncommentmodel) questions is rendered in the read-only mode.
2691
+ * Available values:
2692
+ * "textarea" (default) - A 'textarea' element is used to render a Comment question's input field.
2693
+ * "div" - A 'div' element is used to render a Comment question's input field.
2358
2694
  */
2359
2695
  readOnlyCommentRenderMode: string;
2696
+ /**
2697
+ * Specifies how the input field of [Text](https://surveyjs.io/Documentation/Library?id=questiontextmodel) questions is rendered in the read-only mode.
2698
+ * Available values:
2699
+ * "input" (default) - An 'input' element is used to render a Text question's input field.
2700
+ * "div" - A 'div' element is used to render a Text question's input field.
2701
+ */
2702
+ readOnlyTextRenderMode: string;
2360
2703
  /**
2361
2704
  * Override this function, set your function, if you want to show your own dialog confirm window instead of standard browser window.
2362
2705
  * @param message
@@ -2451,6 +2794,8 @@ export declare class Helpers {
2451
2794
  static getNumberByIndex(index: number, startIndexStr: string): string;
2452
2795
  static isCharNotLetterAndDigit(ch: string): boolean;
2453
2796
  static isCharDigit(ch: string): boolean;
2797
+ static correctAfterPlusMinis(a: number, b: number, res: number): number;
2798
+ static correctAfterMultiple(a: number, b: number, res: number): number;
2454
2799
  }
2455
2800
 
2456
2801
  export declare class ValidatorResult {
@@ -2517,7 +2862,7 @@ export declare class NumericValidator extends SurveyValidator {
2517
2862
  * Validate text values.
2518
2863
  */
2519
2864
  export declare class TextValidator extends SurveyValidator {
2520
- constructor(minLength?: number, maxLength?: number, allowDigits?: boolean);
2865
+ constructor();
2521
2866
  getType(): string;
2522
2867
  validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
2523
2868
  protected getDefaultErrorText(name: string): any;
@@ -2600,7 +2945,7 @@ export declare class ExpressionValidator extends SurveyValidator {
2600
2945
  * It has two main properties: value and text. If text is empty, value is used for displaying.
2601
2946
  * The text property is localizable and support markdown.
2602
2947
  */
2603
- export declare class ItemValue extends Base {
2948
+ export declare class ItemValue extends Base implements IShortcutText {
2604
2949
  protected typeName: string;
2605
2950
  [index: string]: any;
2606
2951
  static get Separator(): string;
@@ -2632,6 +2977,7 @@ export declare class ItemValue extends Base {
2632
2977
  get text(): string;
2633
2978
  set text(newText: string);
2634
2979
  get calculatedText(): string;
2980
+ get shortcutText(): string;
2635
2981
  getData(): any;
2636
2982
  toJSON(): any;
2637
2983
  setData(value: any): void;
@@ -2995,7 +3341,10 @@ export interface ISurveyImpl {
2995
3341
  export interface IConditionRunner {
2996
3342
  runCondition(values: HashTable<any>, properties: HashTable<any>): any;
2997
3343
  }
2998
- export interface ISurveyElement {
3344
+ export interface IShortcutText {
3345
+ shortcutText: string;
3346
+ }
3347
+ export interface ISurveyElement extends IShortcutText {
2999
3348
  name: string;
3000
3349
  isVisible: boolean;
3001
3350
  isReadOnly: boolean;
@@ -3004,7 +3353,7 @@ export interface ISurveyElement {
3004
3353
  containsErrors: boolean;
3005
3354
  parent: IPanel;
3006
3355
  skeletonComponentName: string;
3007
- setSurveyImpl(value: ISurveyImpl): any;
3356
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): any;
3008
3357
  onSurveyLoad(): any;
3009
3358
  onFirstRendering(): any;
3010
3359
  getType(): string;
@@ -3152,13 +3501,18 @@ export declare abstract class SurveyElementCore extends Base implements ILocaliz
3152
3501
  abstract getRendererContext(locStr: LocalizableString): any;
3153
3502
  abstract getProcessedText(text: string): string;
3154
3503
  }
3504
+ export declare enum DragTypeOverMeEnum {
3505
+ InsideEmptyPanel = 1,
3506
+ MultilineRight = 2,
3507
+ MultilineLeft = 3
3508
+ }
3155
3509
  /**
3156
3510
  * Base class of SurveyJS Elements.
3157
3511
  */
3158
3512
  export declare class SurveyElement extends SurveyElementCore implements ISurveyElement {
3159
3513
  stateChangedCallback: () => void;
3160
3514
  static getProgressInfoByElements(children: Array<SurveyElement>, isRequired: boolean): IProgressInfo;
3161
- isDragOverMe: boolean;
3515
+ dragTypeOverMe: DragTypeOverMeEnum;
3162
3516
  readOnlyChangedCallback: () => void;
3163
3517
  static ScrollElementToTop(elementId: string): boolean;
3164
3518
  static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
@@ -3204,6 +3558,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3204
3558
  */
3205
3559
  toggleState(): boolean;
3206
3560
  get hasStateButton(): boolean;
3561
+ get shortcutText(): string;
3207
3562
  getTitleToolbar(): AdaptiveActionContainer;
3208
3563
  get titleActions(): Array<any>;
3209
3564
  getTitleActions(): Array<any>;
@@ -3212,7 +3567,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3212
3567
  getTitleComponentName(): string;
3213
3568
  get titleTabIndex(): number;
3214
3569
  get titleAriaExpanded(): boolean;
3215
- setSurveyImpl(value: ISurveyImpl): void;
3570
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
3216
3571
  protected get surveyImpl(): ISurveyImpl;
3217
3572
  get data(): ISurveyData;
3218
3573
  /**
@@ -4629,10 +4984,11 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
4629
4984
  protected getSearchableItemValueKeys(keys: Array<string>): void;
4630
4985
  }
4631
4986
 
4632
- export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase {
4987
+ export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase implements IShortcutText {
4633
4988
  index: number;
4634
4989
  constructor(index: number, data: IMatrixDropdownData, value: any);
4635
4990
  get rowName(): string;
4991
+ get shortcutText(): string;
4636
4992
  }
4637
4993
  /**
4638
4994
  * A Model for a matrix dymanic question. You may use a dropdown, checkbox, radiogroup, text and comment questions as a cell editors.
@@ -4642,7 +4998,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
4642
4998
  onGetValueForNewRowCallBack: (sender: QuestionMatrixDynamicModel) => any;
4643
4999
  constructor(name: string);
4644
5000
  dragDropMatrixRows: DragDropMatrixRows;
4645
- setSurveyImpl(value: ISurveyImpl): void;
5001
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
4646
5002
  startDragMatrixRow(event: PointerEvent, row: MatrixDropdownRowModelBase): void;
4647
5003
  getType(): string;
4648
5004
  get isRowsDynamic(): boolean;
@@ -5045,7 +5401,7 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
5045
5401
  colCountChangedCallback: () => void;
5046
5402
  constructor(name: string);
5047
5403
  getType(): string;
5048
- setSurveyImpl(value: ISurveyImpl): void;
5404
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5049
5405
  get isAllowTitleLeft(): boolean;
5050
5406
  get hasSingleInput(): boolean;
5051
5407
  onSurveyLoad(): void;
@@ -5153,7 +5509,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5153
5509
  onGetQuestionTitleLocation: () => string;
5154
5510
  constructor(name?: string);
5155
5511
  getType(): string;
5156
- setSurveyImpl(value: ISurveyImpl): void;
5512
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5157
5513
  endLoadingFromJson(): void;
5158
5514
  get hasTitle(): boolean;
5159
5515
  protected canShowTitle(): boolean;
@@ -5555,6 +5911,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
5555
5911
  protected getCssError(cssClasses: any): string;
5556
5912
  protected onVisibleChanged(): void;
5557
5913
  needResponsiveWidth(): boolean;
5914
+ focusIn: () => void;
5558
5915
  }
5559
5916
 
5560
5917
  /**
@@ -5812,7 +6169,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
5812
6169
  */
5813
6170
  moveTo(container: IPanel, insertBefore?: any): boolean;
5814
6171
  getProgressInfo(): IProgressInfo;
5815
- setSurveyImpl(value: ISurveyImpl): void;
6172
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5816
6173
  getDataFilteredValues(): any;
5817
6174
  getDataFilteredProperties(): any;
5818
6175
  /**
@@ -5987,6 +6344,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
5987
6344
  * @param onError set this parameter to true, to focus the input with the first error, other wise the first input will be focused.
5988
6345
  */
5989
6346
  focus(onError?: boolean): void;
6347
+ focusIn: () => void;
5990
6348
  protected fireCallback(callback: () => void): void;
5991
6349
  getOthersMaxLength(): any;
5992
6350
  protected onCreating(): void;
@@ -6465,7 +6823,7 @@ export declare class QuestionSelectBase extends Question {
6465
6823
  supportNone(): boolean;
6466
6824
  protected isSupportProperty(propName: string): boolean;
6467
6825
  protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
6468
- setSurveyImpl(value: ISurveyImpl): void;
6826
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
6469
6827
  protected setSurveyCore(value: ISurvey): void;
6470
6828
  protected getStoreOthersAsComment(): boolean;
6471
6829
  onSurveyLoad(): void;
@@ -6614,7 +6972,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
6614
6972
  protected isItemCurrentDropTarget(item: ItemValue): boolean;
6615
6973
  get ghostPositionCssClass(): string;
6616
6974
  getNumberByIndex(index: number): string;
6617
- setSurveyImpl: (value: ISurveyImpl) => void;
6975
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
6618
6976
  onSurveyValueChanged(newValue: any): void;
6619
6977
  protected onVisibleChoicesChanged: () => void;
6620
6978
  localeChanged: () => void;
@@ -6652,10 +7010,10 @@ export declare class QuestionCommentModel extends QuestionTextBase {
6652
7010
  get cols(): number;
6653
7011
  set cols(val: number);
6654
7012
  /**
6655
- * Returns or sets a boolean that specifies whether a question can accept and display multiple lines of text.
7013
+ * Accepts pressing the Enter key by end-users and accepts carriage return symbols - \n - in the question value assigned.
6656
7014
  */
6657
- get multiLine(): boolean;
6658
- set multiLine(val: boolean);
7015
+ get acceptCarriageReturn(): boolean;
7016
+ set acceptCarriageReturn(val: boolean);
6659
7017
  /**
6660
7018
  * Specifies whether the question's text area automatically expands its height to avoid the vertical scrollbar and to display the entire multi-line contents entered by respondents.
6661
7019
  * Default value is false.
@@ -7032,6 +7390,9 @@ export declare class QuestionExpressionModel extends Question {
7032
7390
  set minimumFractionDigits(val: number);
7033
7391
  get runIfReadOnly(): boolean;
7034
7392
  set runIfReadOnly(val: boolean);
7393
+ get formatedValue(): string;
7394
+ protected updateFormatedValue(): void;
7395
+ protected onValueChanged(): void;
7035
7396
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
7036
7397
  /**
7037
7398
  * You may set this property to "decimal", "currency", "percent" or "date". If you set it to "currency", you may use the currency property to display the value in currency different from USD.
@@ -7150,6 +7511,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
7150
7511
  protected setNewValue(newValue: any): void;
7151
7512
  protected correctValueType(newValue: any): any;
7152
7513
  protected hasPlaceHolder(): boolean;
7514
+ isReadOnlyRenderDiv(): boolean;
7153
7515
  get inputStyle(): any;
7154
7516
  }
7155
7517
 
@@ -7429,7 +7791,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
7429
7791
  currentIndexChangedCallback: () => void;
7430
7792
  constructor(name: string);
7431
7793
  get hasSingleInput(): boolean;
7432
- setSurveyImpl(value: ISurveyImpl): void;
7794
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
7433
7795
  getType(): string;
7434
7796
  get isCompositeQuestion(): boolean;
7435
7797
  clearOnDeletingContainer(): void;
@@ -8296,6 +8658,20 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
8296
8658
  * <br/> `options.htmlElement` - an HTML element bound to the panel object
8297
8659
  */
8298
8660
  onAfterRenderPanel: EventBase<SurveyModel>;
8661
+ /**
8662
+ * The event occurs when an element within a question gets focus.
8663
+ * <br/> `sender` - A [survey](https://surveyjs.io/Documentation/Library?id=surveymodel) object that fires the event.
8664
+ * <br/> `options.question` - A [question](https://surveyjs.io/Documentation/Library?id=Question) whose child element gets focus.
8665
+ * @see onFocusInPanel
8666
+ */
8667
+ onFocusInQuestion: EventBase<SurveyModel>;
8668
+ /**
8669
+ * The event occurs when an element within a panel gets focus.
8670
+ * <br/> `sender` - A [survey](https://surveyjs.io/Documentation/Library?id=surveymodel) object that fires the event.
8671
+ * <br/> `options.panel` - A [panel](https://surveyjs.io/Documentation/Library?id=PanelModelBase) whose child element gets focus.
8672
+ * @see onFocusInQuestion
8673
+ */
8674
+ onFocusInPanel: EventBase<SurveyModel>;
8299
8675
  /**
8300
8676
  * The event is fired on adding a new row in Matrix Dynamic question.
8301
8677
  * <br/> `sender` - the survey object that fires the event
@@ -8905,6 +9281,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
8905
9281
  get logoFit(): string;
8906
9282
  set logoFit(val: string);
8907
9283
  setIsMobile(newVal?: boolean): void;
9284
+ protected isLogoImageChoosen(): string;
8908
9285
  get titleMaxWidth(): string;
8909
9286
  /**
8910
9287
  * Gets or sets the HTML content displayed on the complete page. Use this property to change the default complete page text.
@@ -9476,11 +9853,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
9476
9853
  * Gets whether the current page is the first one.
9477
9854
  */
9478
9855
  get isFirstPage(): boolean;
9479
- get isShowPrevButton(): boolean;
9480
9856
  /**
9481
9857
  * Gets whether the current page is the last one.
9482
9858
  */
9483
9859
  get isLastPage(): boolean;
9860
+ get isShowPrevButton(): boolean;
9861
+ get isShowNextButton(): boolean;
9484
9862
  /**
9485
9863
  * Completes the survey.
9486
9864
  *
@@ -9552,6 +9930,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
9552
9930
  afterRenderQuestion(question: IQuestion, htmlElement: HTMLElement): void;
9553
9931
  afterRenderQuestionInput(question: IQuestion, htmlElement: HTMLElement): void;
9554
9932
  afterRenderPanel(panel: IElement, htmlElement: HTMLElement): void;
9933
+ whenQuestionFocusIn(question: IQuestion): void;
9934
+ whenPanelFocusIn(panel: IPanel): void;
9555
9935
  matrixBeforeRowAdded(options: any): void;
9556
9936
  matrixRowAdded(question: IQuestion, row: any): void;
9557
9937
  getQuestionByValueNameFromArray(valueName: string, name: string, index: number): IQuestion;
@@ -10440,7 +10820,7 @@ export declare abstract class QuestionCustomModelBase extends Question implement
10440
10820
  onFirstRendering(): void;
10441
10821
  protected abstract getElement(): SurveyElement;
10442
10822
  protected initElement(el: SurveyElement): void;
10443
- setSurveyImpl(value: ISurveyImpl): void;
10823
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
10444
10824
  onSurveyLoad(): void;
10445
10825
  afterRenderQuestionElement(el: HTMLElement): void;
10446
10826
  afterRender(el: any): void;
@@ -10570,6 +10950,7 @@ export declare class ListModel extends ActionContainer {
10570
10950
  getItemIndent: (itemValue: any) => string;
10571
10951
  get filteredTextPlaceholder(): any;
10572
10952
  onKeyDown(event: KeyboardEvent): void;
10953
+ onPointerDown(event: PointerEvent, item: any): void;
10573
10954
  refresh(): void;
10574
10955
  }
10575
10956
 
@@ -10694,9 +11075,9 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
10694
11075
  protected get draggedElementType(): string;
10695
11076
  startDragToolboxItem(event: PointerEvent, draggedElementJson: JsonObject): void;
10696
11077
  protected createElementFromJson(json: object): HTMLElement;
10697
- protected getShortcutText(draggedElement: any): string;
10698
11078
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: HTMLElement, event: PointerEvent): any;
10699
- protected isDropTargetValid(dropTarget: SurveyElement, isBottom: boolean): boolean;
11079
+ protected isDropTargetValid(dropTarget: SurveyElement): boolean;
11080
+ protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
10700
11081
  protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
10701
11082
  protected findDeepestDropTargetChild(parent: HTMLElement): HTMLElement;
10702
11083
  protected afterDragOver(): void;
@@ -10710,11 +11091,10 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
10710
11091
 
10711
11092
  export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
10712
11093
  protected get draggedElementType(): string;
10713
- protected getShortcutText(draggedElement: ItemValue): string;
10714
- protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
11094
+ protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
10715
11095
  protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
10716
11096
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
10717
- protected isDropTargetValid(dropTarget: ItemValue, isBottom: boolean, dropTargetNode?: HTMLElement): boolean;
11097
+ protected isDropTargetValid(dropTarget: ItemValue): boolean;
10718
11098
  protected calculateIsBottom(clientY: number): boolean;
10719
11099
  protected afterDragOver(dropTargetNode: HTMLElement): void;
10720
11100
  protected doDrop(): any;
@@ -10814,9 +11194,9 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
10814
11194
  export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
10815
11195
  protected get draggedElementType(): string;
10816
11196
  protected ghostPositionChanged(): void;
10817
- protected getShortcutText(draggedElement: any): string;
10818
11197
  protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
10819
11198
  protected isDropTargetValid(dropTarget: any): boolean;
11199
+ protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
10820
11200
  protected calculateIsBottom(clientY: number): boolean;
10821
11201
  protected doDrop: () => QuestionMatrixDynamicModel;
10822
11202
  }
@@ -10825,7 +11205,7 @@ export declare class DragDropRankingChoices extends DragDropChoices {
10825
11205
  protected get draggedElementType(): string;
10826
11206
  protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
10827
11207
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
10828
- protected isDropTargetValid(dropTarget: ItemValue, isBottom: boolean, dropTargetNode?: HTMLElement): boolean;
11208
+ protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
10829
11209
  protected calculateIsBottom(clientY: number): boolean;
10830
11210
  protected afterDragOver(dropTargetNode: HTMLElement): void;
10831
11211
  protected ghostPositionChanged(): void;
@@ -10918,17 +11298,17 @@ export declare abstract class DragDropCore<T> extends Base {
10918
11298
  protected get dropTargetDataAttributeName(): string;
10919
11299
  protected get survey(): SurveyModel;
10920
11300
  prevDropTarget: any;
10921
- protected draggedElementShortcut: HTMLElement;
11301
+ protected draggedElementShortcut: any;
10922
11302
  constructor(surveyValue?: ISurvey, creator?: any);
10923
11303
  startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
10924
11304
  protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
10925
11305
  protected doStartDrag(): void;
10926
- protected abstract getShortcutText(draggedElement: any): string;
10927
- protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement): HTMLElement;
11306
+ protected getShortcutText(draggedElement: IShortcutText): string;
11307
+ protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
10928
11308
  protected doDragOver(dropTargetNode?: HTMLElement): void;
10929
11309
  protected afterDragOver(dropTargetNode?: HTMLElement): void;
10930
11310
  getGhostPosition(item: any): string;
10931
- protected abstract isDropTargetValid(dropTarget: any, isBottom: boolean, dropTargetNode?: HTMLElement): boolean;
11311
+ protected abstract isDropTargetValid(dropTarget: any, dropTargetNode?: HTMLElement): boolean;
10932
11312
  protected handleEscapeButton: (event: KeyboardEvent) => void;
10933
11313
  protected banDropHere: () => void;
10934
11314
  protected doBanDropHere: () => void;
@@ -10936,7 +11316,7 @@ export declare abstract class DragDropCore<T> extends Base {
10936
11316
  protected getDropTargetByNode(dropTargetNode: HTMLElement, event: PointerEvent): any;
10937
11317
  protected abstract getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode?: HTMLElement, event?: PointerEvent): any;
10938
11318
  protected calculateMiddleOfHTMLElement(HTMLElement: HTMLElement): number;
10939
- protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
11319
+ protected abstract calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
10940
11320
  protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
10941
11321
  protected abstract doDrop(): any;
10942
11322
  protected clear: () => void;