survey-react 1.8.72 → 1.8.76

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.72
1
+ /*Type definitions for Survey JavaScript library v1.8.76
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;
@@ -1460,8 +1784,9 @@ export interface IAction {
1460
1784
  visibleIndex?: number;
1461
1785
  }
1462
1786
  export declare class Action extends Base implements IAction {
1787
+ innerItem: IAction;
1463
1788
  updateCallback: () => void;
1464
- constructor(item: IAction);
1789
+ constructor(innerItem: IAction);
1465
1790
  location?: string;
1466
1791
  id: string;
1467
1792
  iconName: string;
@@ -1498,6 +1823,7 @@ export declare class Action extends Base implements IAction {
1498
1823
  export declare class AdaptiveActionContainer<T extends Action = Action> extends ActionContainer<T> {
1499
1824
  protected dotsItem: Action;
1500
1825
  protected dotsItemPopupModel: PopupModel;
1826
+ minVisibleItemsCount: number;
1501
1827
  constructor();
1502
1828
  protected onSet(): void;
1503
1829
  protected onPush(item: T): void;
@@ -1634,7 +1960,7 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
1634
1960
  componentDidMount(): void;
1635
1961
  shouldComponentUpdate(nextProps: any, nextState: any): boolean;
1636
1962
  componentWillUnmount(): void;
1637
- protected createElement(element: IElement): JSX.Element;
1963
+ protected createElement(element: IElement, elementIndex?: number): JSX.Element;
1638
1964
  }
1639
1965
 
1640
1966
  export declare class SurveyPanel extends SurveyPanelBase {
@@ -1973,10 +2299,11 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
1973
2299
  handleOnRangeChange(event: any): void;
1974
2300
  protected renderElement(): JSX.Element;
1975
2301
  protected renderNavigator(): JSX.Element;
1976
- protected rendrerPrevButton(): JSX.Element;
1977
- protected rendrerNextButton(): JSX.Element;
2302
+ protected rendrerPrevButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
2303
+ protected rendrerNextButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
1978
2304
  protected renderRange(): JSX.Element;
1979
2305
  protected renderAddRowButton(): JSX.Element;
2306
+ protected renderNavigatorV2(): JSX.Element;
1980
2307
  }
1981
2308
  export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
1982
2309
  constructor(props: any);
@@ -2123,6 +2450,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
2123
2450
  protected getStateElement(): PopupModel<any>;
2124
2451
  componentDidMount(): void;
2125
2452
  componentWillUnmount(): void;
2453
+ shouldComponentUpdate(nextProps: IPopupProps): boolean;
2126
2454
  render(): JSX.Element;
2127
2455
  }
2128
2456
  export declare class PopupContainer extends SurveyElementBase<any, any> {
@@ -2152,6 +2480,7 @@ export declare class List extends SurveyElementBase<IListProps, any> {
2152
2480
  getStateElement(): ListModel;
2153
2481
  render(): JSX.Element;
2154
2482
  renderItems(): JSX.Element[];
2483
+ searchElementContent(): JSX.Element;
2155
2484
  }
2156
2485
  export {};
2157
2486
 
@@ -2294,6 +2623,12 @@ export declare var settings: {
2294
2623
  * separator that can allow to set value and text of ItemValue object in one string as: "value|text"
2295
2624
  */
2296
2625
  itemValueSeparator: string;
2626
+ /**
2627
+ * Set it to true to serialize itemvalue instance always as object even if text property is empty
2628
+ * const item = new Survey.ItemValue(5);
2629
+ * item.toJSON(); //will return {value: 5}, instead of 5 by default.
2630
+ */
2631
+ itemValueAlwaysSerializeAsObject: boolean;
2297
2632
  /**
2298
2633
  * default locale name for localizable strings that uses during serialization, {"default": "My text", "de": "Mein Text"}
2299
2634
  */
@@ -2351,9 +2686,19 @@ export declare var settings: {
2351
2686
  */
2352
2687
  executeSkipTriggerOnValueChanged: boolean;
2353
2688
  /**
2354
- * Set this property to change readOnlyCommentRenderMode: "textarea" (default) or (div)
2689
+ * Specifies how the input field of [Comment](https://surveyjs.io/Documentation/Library?id=questioncommentmodel) questions is rendered in the read-only mode.
2690
+ * Available values:
2691
+ * "textarea" (default) - A 'textarea' element is used to render a Comment question's input field.
2692
+ * "div" - A 'div' element is used to render a Comment question's input field.
2355
2693
  */
2356
2694
  readOnlyCommentRenderMode: string;
2695
+ /**
2696
+ * Specifies how the input field of [Text](https://surveyjs.io/Documentation/Library?id=questiontextmodel) questions is rendered in the read-only mode.
2697
+ * Available values:
2698
+ * "input" (default) - An 'input' element is used to render a Text question's input field.
2699
+ * "div" - A 'div' element is used to render a Text question's input field.
2700
+ */
2701
+ readOnlyTextRenderMode: string;
2357
2702
  /**
2358
2703
  * Override this function, set your function, if you want to show your own dialog confirm window instead of standard browser window.
2359
2704
  * @param message
@@ -2448,6 +2793,8 @@ export declare class Helpers {
2448
2793
  static getNumberByIndex(index: number, startIndexStr: string): string;
2449
2794
  static isCharNotLetterAndDigit(ch: string): boolean;
2450
2795
  static isCharDigit(ch: string): boolean;
2796
+ static correctAfterPlusMinis(a: number, b: number, res: number): number;
2797
+ static correctAfterMultiple(a: number, b: number, res: number): number;
2451
2798
  }
2452
2799
 
2453
2800
  export declare class ValidatorResult {
@@ -3001,7 +3348,7 @@ export interface ISurveyElement {
3001
3348
  containsErrors: boolean;
3002
3349
  parent: IPanel;
3003
3350
  skeletonComponentName: string;
3004
- setSurveyImpl(value: ISurveyImpl): any;
3351
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): any;
3005
3352
  onSurveyLoad(): any;
3006
3353
  onFirstRendering(): any;
3007
3354
  getType(): string;
@@ -3033,6 +3380,7 @@ export interface IElement extends IConditionRunner, ISurveyElement {
3033
3380
  clearIncorrectValues(): any;
3034
3381
  clearErrors(): any;
3035
3382
  dispose(): void;
3383
+ needResponsiveWidth(): boolean;
3036
3384
  }
3037
3385
  export interface IQuestion extends IElement, ISurveyErrorOwner {
3038
3386
  hasTitle: boolean;
@@ -3148,13 +3496,18 @@ export declare abstract class SurveyElementCore extends Base implements ILocaliz
3148
3496
  abstract getRendererContext(locStr: LocalizableString): any;
3149
3497
  abstract getProcessedText(text: string): string;
3150
3498
  }
3499
+ export declare enum DragTypeOverMeEnum {
3500
+ InsideEmptyPanel = 1,
3501
+ MultilineRight = 2,
3502
+ MultilineLeft = 3
3503
+ }
3151
3504
  /**
3152
3505
  * Base class of SurveyJS Elements.
3153
3506
  */
3154
3507
  export declare class SurveyElement extends SurveyElementCore implements ISurveyElement {
3155
3508
  stateChangedCallback: () => void;
3156
3509
  static getProgressInfoByElements(children: Array<SurveyElement>, isRequired: boolean): IProgressInfo;
3157
- isDragOverMe: boolean;
3510
+ dragTypeOverMe: DragTypeOverMeEnum;
3158
3511
  readOnlyChangedCallback: () => void;
3159
3512
  static ScrollElementToTop(elementId: string): boolean;
3160
3513
  static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
@@ -3208,7 +3561,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3208
3561
  getTitleComponentName(): string;
3209
3562
  get titleTabIndex(): number;
3210
3563
  get titleAriaExpanded(): boolean;
3211
- setSurveyImpl(value: ISurveyImpl): void;
3564
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
3212
3565
  protected get surveyImpl(): ISurveyImpl;
3213
3566
  get data(): ISurveyData;
3214
3567
  /**
@@ -3457,6 +3810,7 @@ export declare class LocalizableString implements ILocalizableString {
3457
3810
  static editableRenderer: string;
3458
3811
  localizationName: string;
3459
3812
  onGetTextCallback: (str: string) => string;
3813
+ onGetDefaultTextCallback: () => string;
3460
3814
  onStrChanged: (oldValue: string, newValue: string) => void;
3461
3815
  onSearchChanged: () => void;
3462
3816
  sharedData: LocalizableString;
@@ -3834,8 +4188,9 @@ export interface IPropertyDecoratorOptions {
3834
4188
  defaultValue?: any;
3835
4189
  defaultSource?: string;
3836
4190
  localizable?: {
3837
- name: string;
4191
+ name?: string;
3838
4192
  onGetTextCallback?: (str: string) => string;
4193
+ defaultStr?: string;
3839
4194
  } | boolean;
3840
4195
  onSet?: (val: any, target: any) => void;
3841
4196
  }
@@ -4170,6 +4525,10 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
4170
4525
  dispose(): void;
4171
4526
  get hasSingleInput(): boolean;
4172
4527
  get isRowsDynamic(): boolean;
4528
+ protected get isUpdateLocked(): boolean;
4529
+ beginUpdate(): void;
4530
+ endUpdate(): void;
4531
+ protected updateColumnsAndRows(): void;
4173
4532
  itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
4174
4533
  /**
4175
4534
  * Set columnLayout to 'vertical' to place columns vertically and rows horizontally. It makes sense when we have many columns and few rows.
@@ -4522,7 +4881,6 @@ export declare class QuestionMatrixDropdownRenderedCell {
4522
4881
  panel: PanelModel;
4523
4882
  isShowHideDetail: boolean;
4524
4883
  isActionsCell: boolean;
4525
- className: string;
4526
4884
  isDragHandlerCell: boolean;
4527
4885
  constructor();
4528
4886
  get hasQuestion(): boolean;
@@ -4537,7 +4895,8 @@ export declare class QuestionMatrixDropdownRenderedCell {
4537
4895
  get choiceValue(): any;
4538
4896
  get isCheckbox(): boolean;
4539
4897
  get isFirstChoice(): boolean;
4540
- get css(): string;
4898
+ set className(val: string);
4899
+ get className(): string;
4541
4900
  get headers(): string;
4542
4901
  calculateFinalClassName(matrixCssClasses: any): string;
4543
4902
  }
@@ -4632,7 +4991,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
4632
4991
  onGetValueForNewRowCallBack: (sender: QuestionMatrixDynamicModel) => any;
4633
4992
  constructor(name: string);
4634
4993
  dragDropMatrixRows: DragDropMatrixRows;
4635
- setSurveyImpl(value: ISurveyImpl): void;
4994
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
4636
4995
  startDragMatrixRow(event: PointerEvent, row: MatrixDropdownRowModelBase): void;
4637
4996
  getType(): string;
4638
4997
  get isRowsDynamic(): boolean;
@@ -5035,7 +5394,7 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
5035
5394
  colCountChangedCallback: () => void;
5036
5395
  constructor(name: string);
5037
5396
  getType(): string;
5038
- setSurveyImpl(value: ISurveyImpl): void;
5397
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5039
5398
  get isAllowTitleLeft(): boolean;
5040
5399
  get hasSingleInput(): boolean;
5041
5400
  onSurveyLoad(): void;
@@ -5143,7 +5502,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5143
5502
  onGetQuestionTitleLocation: () => string;
5144
5503
  constructor(name?: string);
5145
5504
  getType(): string;
5146
- setSurveyImpl(value: ISurveyImpl): void;
5505
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5147
5506
  endLoadingFromJson(): void;
5148
5507
  get hasTitle(): boolean;
5149
5508
  protected canShowTitle(): boolean;
@@ -5418,8 +5777,9 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5418
5777
  onAnyValueChanged(name: string): void;
5419
5778
  checkBindings(valueName: string, value: any): void;
5420
5779
  protected dragDropAddTarget(dragDropInfo: DragDropInfo): void;
5421
- protected dragDropFindRow(findElement: ISurveyElement): QuestionRowModel;
5780
+ dragDropFindRow(findElement: ISurveyElement): QuestionRowModel;
5422
5781
  dragDropMoveElement(src: IElement, target: IElement, targetIndex: number): void;
5782
+ needResponsiveWidth(): boolean;
5423
5783
  get no(): string;
5424
5784
  dispose(): void;
5425
5785
  }
@@ -5543,6 +5903,8 @@ export declare class PanelModel extends PanelModelBase implements IElement {
5543
5903
  get cssError(): string;
5544
5904
  protected getCssError(cssClasses: any): string;
5545
5905
  protected onVisibleChanged(): void;
5906
+ needResponsiveWidth(): boolean;
5907
+ focusIn: () => void;
5546
5908
  }
5547
5909
 
5548
5910
  /**
@@ -5800,7 +6162,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
5800
6162
  */
5801
6163
  moveTo(container: IPanel, insertBefore?: any): boolean;
5802
6164
  getProgressInfo(): IProgressInfo;
5803
- setSurveyImpl(value: ISurveyImpl): void;
6165
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5804
6166
  getDataFilteredValues(): any;
5805
6167
  getDataFilteredProperties(): any;
5806
6168
  /**
@@ -5975,6 +6337,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
5975
6337
  * @param onError set this parameter to true, to focus the input with the first error, other wise the first input will be focused.
5976
6338
  */
5977
6339
  focus(onError?: boolean): void;
6340
+ focusIn: () => void;
5978
6341
  protected fireCallback(callback: () => void): void;
5979
6342
  getOthersMaxLength(): any;
5980
6343
  protected onCreating(): void;
@@ -6223,6 +6586,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6223
6586
  get validatedValue(): any;
6224
6587
  set validatedValue(val: any);
6225
6588
  getAllValues(): any;
6589
+ needResponsiveWidth(): boolean;
6226
6590
  }
6227
6591
 
6228
6592
  /**
@@ -6452,7 +6816,7 @@ export declare class QuestionSelectBase extends Question {
6452
6816
  supportNone(): boolean;
6453
6817
  protected isSupportProperty(propName: string): boolean;
6454
6818
  protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
6455
- setSurveyImpl(value: ISurveyImpl): void;
6819
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
6456
6820
  protected setSurveyCore(value: ISurvey): void;
6457
6821
  protected getStoreOthersAsComment(): boolean;
6458
6822
  onSurveyLoad(): void;
@@ -6601,7 +6965,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
6601
6965
  protected isItemCurrentDropTarget(item: ItemValue): boolean;
6602
6966
  get ghostPositionCssClass(): string;
6603
6967
  getNumberByIndex(index: number): string;
6604
- setSurveyImpl: (value: ISurveyImpl) => void;
6968
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
6605
6969
  onSurveyValueChanged(newValue: any): void;
6606
6970
  protected onVisibleChoicesChanged: () => void;
6607
6971
  localeChanged: () => void;
@@ -6639,10 +7003,10 @@ export declare class QuestionCommentModel extends QuestionTextBase {
6639
7003
  get cols(): number;
6640
7004
  set cols(val: number);
6641
7005
  /**
6642
- * Returns or sets a boolean that specifies whether a question can accept and display multiple lines of text.
7006
+ * Accepts pressing the Enter key by end-users and accepts carriage return symbols - \n - in the question value assigned.
6643
7007
  */
6644
- get multiLine(): boolean;
6645
- set multiLine(val: boolean);
7008
+ get acceptCarriageReturn(): boolean;
7009
+ set acceptCarriageReturn(val: boolean);
6646
7010
  /**
6647
7011
  * 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.
6648
7012
  * Default value is false.
@@ -7137,6 +7501,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
7137
7501
  protected setNewValue(newValue: any): void;
7138
7502
  protected correctValueType(newValue: any): any;
7139
7503
  protected hasPlaceHolder(): boolean;
7504
+ isReadOnlyRenderDiv(): boolean;
7140
7505
  get inputStyle(): any;
7141
7506
  }
7142
7507
 
@@ -7416,7 +7781,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
7416
7781
  currentIndexChangedCallback: () => void;
7417
7782
  constructor(name: string);
7418
7783
  get hasSingleInput(): boolean;
7419
- setSurveyImpl(value: ISurveyImpl): void;
7784
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
7420
7785
  getType(): string;
7421
7786
  get isCompositeQuestion(): boolean;
7422
7787
  clearOnDeletingContainer(): void;
@@ -8283,6 +8648,20 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
8283
8648
  * <br/> `options.htmlElement` - an HTML element bound to the panel object
8284
8649
  */
8285
8650
  onAfterRenderPanel: EventBase<SurveyModel>;
8651
+ /**
8652
+ * The event occurs when an element within a question gets focus.
8653
+ * <br/> `sender` - A [survey](https://surveyjs.io/Documentation/Library?id=surveymodel) object that fires the event.
8654
+ * <br/> `options.question` - A [question](https://surveyjs.io/Documentation/Library?id=Question) whose child element gets focus.
8655
+ * @see onFocusInPanel
8656
+ */
8657
+ onFocusInQuestion: EventBase<SurveyModel>;
8658
+ /**
8659
+ * The event occurs when an element within a panel gets focus.
8660
+ * <br/> `sender` - A [survey](https://surveyjs.io/Documentation/Library?id=surveymodel) object that fires the event.
8661
+ * <br/> `options.panel` - A [panel](https://surveyjs.io/Documentation/Library?id=PanelModelBase) whose child element gets focus.
8662
+ * @see onFocusInQuestion
8663
+ */
8664
+ onFocusInPanel: EventBase<SurveyModel>;
8286
8665
  /**
8287
8666
  * The event is fired on adding a new row in Matrix Dynamic question.
8288
8667
  * <br/> `sender` - the survey object that fires the event
@@ -8892,6 +9271,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
8892
9271
  get logoFit(): string;
8893
9272
  set logoFit(val: string);
8894
9273
  setIsMobile(newVal?: boolean): void;
9274
+ protected isLogoImageChoosen(): string;
8895
9275
  get titleMaxWidth(): string;
8896
9276
  /**
8897
9277
  * Gets or sets the HTML content displayed on the complete page. Use this property to change the default complete page text.
@@ -9463,11 +9843,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
9463
9843
  * Gets whether the current page is the first one.
9464
9844
  */
9465
9845
  get isFirstPage(): boolean;
9466
- get isShowPrevButton(): boolean;
9467
9846
  /**
9468
9847
  * Gets whether the current page is the last one.
9469
9848
  */
9470
9849
  get isLastPage(): boolean;
9850
+ get isShowPrevButton(): boolean;
9851
+ get isShowNextButton(): boolean;
9471
9852
  /**
9472
9853
  * Completes the survey.
9473
9854
  *
@@ -9539,6 +9920,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
9539
9920
  afterRenderQuestion(question: IQuestion, htmlElement: HTMLElement): void;
9540
9921
  afterRenderQuestionInput(question: IQuestion, htmlElement: HTMLElement): void;
9541
9922
  afterRenderPanel(panel: IElement, htmlElement: HTMLElement): void;
9923
+ whenQuestionFocusIn(question: IQuestion): void;
9924
+ whenPanelFocusIn(panel: IPanel): void;
9542
9925
  matrixBeforeRowAdded(options: any): void;
9543
9926
  matrixRowAdded(question: IQuestion, row: any): void;
9544
9927
  getQuestionByValueNameFromArray(valueName: string, name: string, index: number): IQuestion;
@@ -9854,6 +10237,18 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
9854
10237
  */
9855
10238
  get showTimerPanelMode(): string;
9856
10239
  set showTimerPanelMode(val: string);
10240
+ /**
10241
+ * Gets or sets a value that specifies how the survey width is calculated.
10242
+ *
10243
+ * The available options:
10244
+ *
10245
+ * - `static` - A survey has a fixed width that mostly depends upon the applied theme. Resizing a browser window does not affect the survey width.
10246
+ * - `responsive` - A survey takes all available horizontal space. A survey stretches or shrinks horizonally according to the screen size.
10247
+ * - `auto` - Depends on the question type and corresponds to the static or responsive mode.
10248
+ */
10249
+ get widthMode(): string;
10250
+ set widthMode(val: string);
10251
+ calculateWidthMode(): string;
9857
10252
  get timerInfoText(): string;
9858
10253
  /**
9859
10254
  * Starts a timer that will calculate how much time end-user spends on the survey or on pages.
@@ -10230,6 +10625,7 @@ export declare var englishStrings: {
10230
10625
  questionTitlePatternText: string;
10231
10626
  modalCancelButtonText: string;
10232
10627
  modalApplyButtonText: string;
10628
+ filteredTextPlaceholder: string;
10233
10629
  };
10234
10630
 
10235
10631
  export declare var surveyLocalization: {
@@ -10330,6 +10726,7 @@ export declare var surveyStrings: {
10330
10726
  questionTitlePatternText: string;
10331
10727
  modalCancelButtonText: string;
10332
10728
  modalApplyButtonText: string;
10729
+ filteredTextPlaceholder: string;
10333
10730
  };
10334
10731
 
10335
10732
  export declare class QuestionCustomWidget {
@@ -10413,7 +10810,7 @@ export declare abstract class QuestionCustomModelBase extends Question implement
10413
10810
  onFirstRendering(): void;
10414
10811
  protected abstract getElement(): SurveyElement;
10415
10812
  protected initElement(el: SurveyElement): void;
10416
- setSurveyImpl(value: ISurveyImpl): void;
10813
+ setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
10417
10814
  onSurveyLoad(): void;
10418
10815
  afterRenderQuestionElement(el: HTMLElement): void;
10419
10816
  afterRender(el: any): void;
@@ -10525,21 +10922,25 @@ export declare class StylesManager {
10525
10922
  initializeStyles(sheet: CSSStyleSheet): void;
10526
10923
  }
10527
10924
 
10528
- export declare class ListModel extends Base {
10529
- onItemSelect: (item: IAction) => void;
10925
+ export declare class ListModel extends ActionContainer {
10926
+ onItemSelect: (item: Action) => void;
10530
10927
  allowSelection: boolean;
10928
+ needFilter: boolean;
10531
10929
  isExpanded: boolean;
10532
10930
  selectedItem: IAction;
10931
+ filteredText: string;
10533
10932
  static INDENT: number;
10534
- constructor(items: Array<IAction>, onItemSelect: (item: IAction) => void, allowSelection: boolean, selectedItem?: IAction);
10535
- get items(): Array<IAction>;
10536
- set items(value: Array<IAction>);
10537
- selectItem: (itemValue: IAction) => void;
10538
- isItemDisabled: (itemValue: IAction) => boolean;
10539
- isItemSelected: (itemValue: IAction) => boolean;
10540
- getItemClass: (itemValue: IAction) => string;
10933
+ static MINELEMENTCOUNT: number;
10934
+ constructor(items: Array<IAction>, onItemSelect: (item: Action) => void, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChange?: (text: string) => void);
10935
+ protected onSet(): void;
10936
+ selectItem: (itemValue: Action) => void;
10937
+ isItemDisabled: (itemValue: Action) => boolean;
10938
+ isItemSelected: (itemValue: Action) => boolean;
10939
+ getItemClass: (itemValue: Action) => string;
10541
10940
  getItemIndent: (itemValue: any) => string;
10941
+ get filteredTextPlaceholder(): any;
10542
10942
  onKeyDown(event: KeyboardEvent): void;
10943
+ refresh(): void;
10543
10944
  }
10544
10945
 
10545
10946
  export declare class PopupModel<T = any> extends Base {
@@ -10665,7 +11066,8 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
10665
11066
  protected createElementFromJson(json: object): HTMLElement;
10666
11067
  protected getShortcutText(draggedElement: any): string;
10667
11068
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: HTMLElement, event: PointerEvent): any;
10668
- protected isDropTargetValid(dropTarget: SurveyElement, isBottom: boolean): boolean;
11069
+ protected isDropTargetValid(dropTarget: SurveyElement): boolean;
11070
+ protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
10669
11071
  protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
10670
11072
  protected findDeepestDropTargetChild(parent: HTMLElement): HTMLElement;
10671
11073
  protected afterDragOver(): void;
@@ -10683,7 +11085,7 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
10683
11085
  protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
10684
11086
  protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
10685
11087
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
10686
- protected isDropTargetValid(dropTarget: ItemValue, isBottom: boolean, dropTargetNode?: HTMLElement): boolean;
11088
+ protected isDropTargetValid(dropTarget: ItemValue): boolean;
10687
11089
  protected calculateIsBottom(clientY: number): boolean;
10688
11090
  protected afterDragOver(dropTargetNode: HTMLElement): void;
10689
11091
  protected doDrop(): any;
@@ -10777,6 +11179,7 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
10777
11179
  protected clearGeneratedRows(): void;
10778
11180
  clearIncorrectValues(): void;
10779
11181
  protected clearInvisibleValuesInRows(): void;
11182
+ needResponsiveWidth(): boolean;
10780
11183
  }
10781
11184
 
10782
11185
  export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
@@ -10785,6 +11188,7 @@ export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynam
10785
11188
  protected getShortcutText(draggedElement: any): string;
10786
11189
  protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
10787
11190
  protected isDropTargetValid(dropTarget: any): boolean;
11191
+ protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
10788
11192
  protected calculateIsBottom(clientY: number): boolean;
10789
11193
  protected doDrop: () => QuestionMatrixDynamicModel;
10790
11194
  }
@@ -10793,7 +11197,7 @@ export declare class DragDropRankingChoices extends DragDropChoices {
10793
11197
  protected get draggedElementType(): string;
10794
11198
  protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
10795
11199
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
10796
- protected isDropTargetValid(dropTarget: ItemValue, isBottom: boolean, dropTargetNode?: HTMLElement): boolean;
11200
+ protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
10797
11201
  protected calculateIsBottom(clientY: number): boolean;
10798
11202
  protected afterDragOver(dropTargetNode: HTMLElement): void;
10799
11203
  protected ghostPositionChanged(): void;
@@ -10896,7 +11300,7 @@ export declare abstract class DragDropCore<T> extends Base {
10896
11300
  protected doDragOver(dropTargetNode?: HTMLElement): void;
10897
11301
  protected afterDragOver(dropTargetNode?: HTMLElement): void;
10898
11302
  getGhostPosition(item: any): string;
10899
- protected abstract isDropTargetValid(dropTarget: any, isBottom: boolean, dropTargetNode?: HTMLElement): boolean;
11303
+ protected abstract isDropTargetValid(dropTarget: any, dropTargetNode?: HTMLElement): boolean;
10900
11304
  protected handleEscapeButton: (event: KeyboardEvent) => void;
10901
11305
  protected banDropHere: () => void;
10902
11306
  protected doBanDropHere: () => void;
@@ -10904,7 +11308,7 @@ export declare abstract class DragDropCore<T> extends Base {
10904
11308
  protected getDropTargetByNode(dropTargetNode: HTMLElement, event: PointerEvent): any;
10905
11309
  protected abstract getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode?: HTMLElement, event?: PointerEvent): any;
10906
11310
  protected calculateMiddleOfHTMLElement(HTMLElement: HTMLElement): number;
10907
- protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
11311
+ protected abstract calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
10908
11312
  protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
10909
11313
  protected abstract doDrop(): any;
10910
11314
  protected clear: () => void;