survey-react 1.8.79 → 1.9.3

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.79
1
+ /*Type definitions for Survey JavaScript library v1.9.3
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
  */
@@ -110,7 +110,6 @@ export declare var defaultStandardCss: {
110
110
  itemDisabled: string;
111
111
  switch: string;
112
112
  slider: string;
113
- sliderText: string;
114
113
  label: string;
115
114
  disabledLabel: string;
116
115
  materialDecorator: string;
@@ -131,7 +130,6 @@ export declare var defaultStandardCss: {
131
130
  itemControl: string;
132
131
  itemDecorator: string;
133
132
  controlLabel: string;
134
- materialDecorator: string;
135
133
  other: string;
136
134
  column: string;
137
135
  };
@@ -233,8 +231,8 @@ export declare var defaultStandardCss: {
233
231
  progressText: string;
234
232
  panelWrapper: string;
235
233
  panelWrapperInRow: string;
236
- separatorV2: string;
237
234
  footer: string;
235
+ progressBtnIcon: string;
238
236
  };
239
237
  multipletext: {
240
238
  root: string;
@@ -297,15 +295,12 @@ export declare var defaultStandardCss: {
297
295
  removeButton: string;
298
296
  fileInput: string;
299
297
  removeFile: string;
300
- removeFileSvg: string;
301
298
  fileDecorator: string;
302
- fileSignBottom: string;
303
- removeButtonBottom: string;
299
+ fileSign: string;
304
300
  chooseFile: string;
305
301
  noFileChosen: string;
306
302
  dragAreaPlaceholder: string;
307
303
  fileList: string;
308
- defaultImage: string;
309
304
  };
310
305
  signaturepad: {
311
306
  root: string;
@@ -427,7 +422,6 @@ export declare var defaultBootstrapCss: {
427
422
  itemDisabled: string;
428
423
  switch: string;
429
424
  slider: string;
430
- sliderText: string;
431
425
  label: string;
432
426
  disabledLabel: string;
433
427
  materialDecorator: string;
@@ -548,8 +542,8 @@ export declare var defaultBootstrapCss: {
548
542
  progressText: string;
549
543
  panelWrapper: string;
550
544
  panelWrapperInRow: string;
551
- separatorV2: string;
552
545
  footer: string;
546
+ progressBtnIcon: string;
553
547
  };
554
548
  multipletext: {
555
549
  root: string;
@@ -614,13 +608,11 @@ export declare var defaultBootstrapCss: {
614
608
  removeButton: string;
615
609
  fileInput: string;
616
610
  removeFile: string;
617
- removeFileSvg: string;
618
611
  fileDecorator: string;
619
- fileSignBottom: string;
612
+ fileSign: string;
620
613
  removeButtonBottom: string;
621
614
  dragAreaPlaceholder: string;
622
615
  fileList: string;
623
- defaultImage: string;
624
616
  };
625
617
  signaturepad: {
626
618
  root: string;
@@ -742,7 +734,6 @@ export declare var defaultBootstrapMaterialCss: {
742
734
  itemDisabled: string;
743
735
  switch: string;
744
736
  slider: string;
745
- sliderText: string;
746
737
  label: string;
747
738
  disabledLabel: string;
748
739
  materialDecorator: string;
@@ -869,7 +860,7 @@ export declare var defaultBootstrapMaterialCss: {
869
860
  progressText: string;
870
861
  panelWrapper: string;
871
862
  panelWrapperInRow: string;
872
- separatorV2: string;
863
+ progressBtnIcon: string;
873
864
  footer: string;
874
865
  };
875
866
  multipletext: {
@@ -934,14 +925,12 @@ export declare var defaultBootstrapMaterialCss: {
934
925
  preview: string;
935
926
  removeButton: string;
936
927
  fileInput: string;
928
+ fileSign: string;
937
929
  removeFile: string;
938
- removeFileSvg: string;
939
930
  fileDecorator: string;
940
- fileSignBottom: string;
941
931
  removeButtonBottom: string;
942
932
  dragAreaPlaceholder: string;
943
933
  fileList: string;
944
- defaultImage: string;
945
934
  };
946
935
  signaturepad: {
947
936
  root: string;
@@ -998,14 +987,19 @@ export declare var defaultV2Css: {
998
987
  titleOnError: string;
999
988
  description: string;
1000
989
  container: string;
990
+ withFrame: string;
1001
991
  content: string;
1002
992
  icon: string;
1003
993
  iconExpanded: string;
1004
994
  footer: string;
1005
995
  requiredText: string;
996
+ header: string;
997
+ collapsed: string;
998
+ nested: string;
1006
999
  };
1007
1000
  paneldynamic: {
1008
1001
  mainRoot: string;
1002
+ empty: string;
1009
1003
  root: string;
1010
1004
  navigation: string;
1011
1005
  title: string;
@@ -1021,11 +1015,12 @@ export declare var defaultV2Css: {
1021
1015
  progressBar: string;
1022
1016
  progressText: string;
1023
1017
  separator: string;
1024
- separatorV2: string;
1025
1018
  panelWrapper: string;
1026
1019
  footer: string;
1027
1020
  footerButtonsContainer: string;
1028
1021
  panelWrapperInRow: string;
1022
+ progressBtnIcon: string;
1023
+ noEntriesPlaceholder: string;
1029
1024
  };
1030
1025
  progress: string;
1031
1026
  progressBar: string;
@@ -1043,6 +1038,7 @@ export declare var defaultV2Css: {
1043
1038
  question: {
1044
1039
  mainRoot: string;
1045
1040
  flowRoot: string;
1041
+ withFrame: string;
1046
1042
  asCell: string;
1047
1043
  answered: string;
1048
1044
  header: string;
@@ -1068,10 +1064,19 @@ export declare var defaultV2Css: {
1068
1064
  formGroup: string;
1069
1065
  hasError: string;
1070
1066
  disabled: string;
1067
+ collapsed: string;
1068
+ nested: string;
1071
1069
  };
1072
1070
  image: {
1071
+ mainRoot: string;
1073
1072
  root: string;
1074
1073
  image: string;
1074
+ withFrame: string;
1075
+ };
1076
+ html: {
1077
+ mainRoot: string;
1078
+ root: string;
1079
+ withFrame: string;
1075
1080
  };
1076
1081
  error: {
1077
1082
  root: string;
@@ -1096,6 +1101,7 @@ export declare var defaultV2Css: {
1096
1101
  labelChecked: string;
1097
1102
  itemControl: string;
1098
1103
  itemDecorator: string;
1104
+ itemSvgIconId: string;
1099
1105
  controlLabel: string;
1100
1106
  materialDecorator: string;
1101
1107
  other: string;
@@ -1179,6 +1185,8 @@ export declare var defaultV2Css: {
1179
1185
  itemDisabled: string;
1180
1186
  itemHover: string;
1181
1187
  label: string;
1188
+ itemDecorator: string;
1189
+ imageContainer: string;
1182
1190
  itemControl: string;
1183
1191
  image: string;
1184
1192
  itemText: string;
@@ -1210,6 +1218,13 @@ export declare var defaultV2Css: {
1210
1218
  cell: string;
1211
1219
  headerCell: string;
1212
1220
  rowTextCell: string;
1221
+ detailButton: string;
1222
+ detailButtonExpanded: string;
1223
+ detailIcon: string;
1224
+ detailIconExpanded: string;
1225
+ detailIconId: string;
1226
+ detailIconExpandedId: string;
1227
+ actionsCell: string;
1213
1228
  };
1214
1229
  matrixdynamic: {
1215
1230
  mainRoot: string;
@@ -1223,12 +1238,15 @@ export declare var defaultV2Css: {
1223
1238
  detailButtonExpanded: string;
1224
1239
  detailIcon: string;
1225
1240
  detailIconExpanded: string;
1241
+ detailIconId: string;
1242
+ detailIconExpandedId: string;
1226
1243
  detailPanelCell: string;
1227
1244
  actionsCell: string;
1228
1245
  buttonAdd: string;
1229
1246
  buttonRemove: string;
1230
1247
  iconAdd: string;
1231
1248
  iconRemove: string;
1249
+ footer: string;
1232
1250
  };
1233
1251
  rating: {
1234
1252
  root: string;
@@ -1262,22 +1280,32 @@ export declare var defaultV2Css: {
1262
1280
  fileInput: string;
1263
1281
  noFileChosen: string;
1264
1282
  chooseFile: string;
1283
+ chooseFileAsText: string;
1284
+ chooseFileAsIcon: string;
1285
+ chooseFileIconId: string;
1265
1286
  disabled: string;
1266
1287
  removeButton: string;
1267
1288
  removeButtonBottom: string;
1289
+ removeButtonIconId: string;
1268
1290
  removeFile: string;
1269
1291
  removeFileSvg: string;
1292
+ removeFileSvgIconId: string;
1270
1293
  wrapper: string;
1271
1294
  defaultImage: string;
1272
1295
  removeFileButton: string;
1273
1296
  dragAreaPlaceholder: string;
1297
+ imageWrapper: string;
1298
+ single: string;
1299
+ singleImage: string;
1274
1300
  };
1275
1301
  signaturepad: {
1302
+ mainRoot: string;
1276
1303
  root: string;
1277
1304
  small: string;
1278
1305
  controls: string;
1279
1306
  placeholder: string;
1280
1307
  clearButton: string;
1308
+ clearButtonIconId: string;
1281
1309
  };
1282
1310
  saveData: {
1283
1311
  root: string;
@@ -1297,6 +1325,22 @@ export declare var defaultV2Css: {
1297
1325
  buttonCollapsed: string;
1298
1326
  };
1299
1327
  };
1328
+ ranking: {
1329
+ root: string;
1330
+ rootMobileMod: string;
1331
+ rootDragMod: string;
1332
+ item: string;
1333
+ itemContent: string;
1334
+ itemIndex: string;
1335
+ controlLabel: string;
1336
+ itemGhostNode: string;
1337
+ itemIconContainer: string;
1338
+ itemIcon: string;
1339
+ itemIconHoverMod: string;
1340
+ itemIconFocusMod: string;
1341
+ itemGhostMod: string;
1342
+ itemDragMod: string;
1343
+ };
1300
1344
  };
1301
1345
 
1302
1346
  export declare var modernCss: {
@@ -1354,7 +1398,7 @@ export declare var modernCss: {
1354
1398
  separator: string;
1355
1399
  panelWrapper: string;
1356
1400
  panelWrapperInRow: string;
1357
- separatorV2: string;
1401
+ progressBtnIcon: string;
1358
1402
  footer: string;
1359
1403
  };
1360
1404
  progress: string;
@@ -1436,6 +1480,7 @@ export declare var modernCss: {
1436
1480
  labelChecked: string;
1437
1481
  itemControl: string;
1438
1482
  itemDecorator: string;
1483
+ itemSvgIconId: string;
1439
1484
  controlLabel: string;
1440
1485
  materialDecorator: string;
1441
1486
  other: string;
@@ -1496,7 +1541,6 @@ export declare var modernCss: {
1496
1541
  itemDisabled: string;
1497
1542
  switch: string;
1498
1543
  slider: string;
1499
- sliderText: string;
1500
1544
  label: string;
1501
1545
  disabledLabel: string;
1502
1546
  materialDecorator: string;
@@ -1619,7 +1663,6 @@ export declare var modernCss: {
1619
1663
  other: string;
1620
1664
  placeholderInput: string;
1621
1665
  preview: string;
1622
- fileSign: string;
1623
1666
  fileSignBottom: string;
1624
1667
  fileDecorator: string;
1625
1668
  fileInput: string;
@@ -1630,10 +1673,10 @@ export declare var modernCss: {
1630
1673
  removeButtonBottom: string;
1631
1674
  removeFile: string;
1632
1675
  removeFileSvg: string;
1676
+ removeFileSvgIconId: string;
1633
1677
  wrapper: string;
1634
1678
  dragAreaPlaceholder: string;
1635
1679
  fileList: string;
1636
- defaultImage: string;
1637
1680
  };
1638
1681
  signaturepad: {
1639
1682
  root: string;
@@ -1706,7 +1749,7 @@ declare function isElementVisible(element: HTMLElement, threshold?: number): boo
1706
1749
  declare function findScrollableParent(element: HTMLElement): HTMLElement;
1707
1750
  declare function scrollElementByChildId(id: string): void;
1708
1751
  declare function getIconNameFromProxy(iconName: string): string;
1709
- declare function createSvg(size: number, width: number, height: number, iconName: string, svgElem: any): void;
1752
+ declare function createSvg(size: number | string, width: number, height: number, iconName: string, svgElem: any): void;
1710
1753
  export declare function unwrap<T>(value: T | (() => T)): T;
1711
1754
  export declare function getSize(value: any): any;
1712
1755
  declare function doKey2ClickUp(evt: KeyboardEvent, options?: {
@@ -1770,6 +1813,7 @@ export interface IAction {
1770
1813
  * Set this property to true to activate the toolbar item (page)
1771
1814
  */
1772
1815
  active?: boolean;
1816
+ pressed?: boolean;
1773
1817
  /**
1774
1818
  * Toolbar item template name
1775
1819
  */
@@ -1833,6 +1877,7 @@ export declare class Action extends Base implements IAction {
1833
1877
  popupModel: any;
1834
1878
  needSeparator: boolean;
1835
1879
  active: boolean;
1880
+ pressed: boolean;
1836
1881
  template: string;
1837
1882
  component: string;
1838
1883
  items: any;
@@ -2005,6 +2050,7 @@ export declare class SurveyPanel extends SurveyPanelBase {
2005
2050
  constructor(props: any);
2006
2051
  get panel(): PanelModel;
2007
2052
  protected renderElement(): JSX.Element;
2053
+ protected renderHeader(): JSX.Element;
2008
2054
  protected wrapElement(element: JSX.Element): JSX.Element;
2009
2055
  protected renderContent(style: any, rows: JSX.Element[], className: string): JSX.Element;
2010
2056
  protected renderTitle(): JSX.Element;
@@ -2225,6 +2271,9 @@ export declare class SurveyQuestionMatrixRow extends ReactSurveyElement {
2225
2271
  export declare class SurveyQuestionHtml extends SurveyQuestionElementBase {
2226
2272
  constructor(props: any);
2227
2273
  protected get question(): QuestionHtmlModel;
2274
+ componentDidMount(): void;
2275
+ componentWillUnmount(): void;
2276
+ componentDidUpdate(prevProps: any, prevState: any): void;
2228
2277
  protected canRender(): boolean;
2229
2278
  protected renderElement(): JSX.Element;
2230
2279
  }
@@ -2235,6 +2284,7 @@ export declare class SurveyQuestionFile extends SurveyQuestionElementBase {
2235
2284
  protected renderElement(): JSX.Element;
2236
2285
  protected renderFileDecorator(): JSX.Element;
2237
2286
  protected renderClearButton(className: string): JSX.Element;
2287
+ protected renderFileSign(className: string, val: any): JSX.Element;
2238
2288
  protected renderPreview(): JSX.Element;
2239
2289
  }
2240
2290
 
@@ -2351,11 +2401,12 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
2351
2401
  handleOnRangeChange(event: any): void;
2352
2402
  protected renderElement(): JSX.Element;
2353
2403
  protected renderNavigator(): JSX.Element;
2354
- protected rendrerPrevButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
2355
- protected rendrerNextButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
2404
+ protected rendrerPrevButton(): JSX.Element;
2405
+ protected rendrerNextButton(): JSX.Element;
2356
2406
  protected renderRange(): JSX.Element;
2357
2407
  protected renderAddRowButton(): JSX.Element;
2358
2408
  protected renderNavigatorV2(): JSX.Element;
2409
+ protected renderPlaceholder(): JSX.Element;
2359
2410
  }
2360
2411
  export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
2361
2412
  constructor(props: any);
@@ -3201,7 +3252,7 @@ export declare class Base {
3201
3252
  * @param val new property value
3202
3253
  */
3203
3254
  setPropertyValue(name: string, val: any): void;
3204
- protected setArrayPropertyDirectly(name: string, val: any): void;
3255
+ protected setArrayPropertyDirectly(name: string, val: any, sendNotification?: boolean): void;
3205
3256
  protected setPropertyValueDirectly(name: string, val: any): void;
3206
3257
  protected clearPropertyValue(name: string): void;
3207
3258
  onPropertyValueChangedCallback(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void;
@@ -3236,7 +3287,7 @@ export declare class Base {
3236
3287
  */
3237
3288
  unRegisterFunctionOnPropertiesValueChanged(names: Array<string>, key?: string): void;
3238
3289
  createCustomLocalizableObj(name: string): void;
3239
- protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, hasDefaultValue?: boolean): LocalizableString;
3290
+ protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, defaultStr?: boolean | string): LocalizableString;
3240
3291
  getLocalizableString(name: string): LocalizableString;
3241
3292
  getLocalizableStringText(name: string, defaultStr?: string): string;
3242
3293
  setLocalizableStringText(name: string, value: string): void;
@@ -3336,6 +3387,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
3336
3387
  requiredText: string;
3337
3388
  beforeSettingQuestionErrors(question: IQuestion, errors: Array<SurveyError>): void;
3338
3389
  beforeSettingPanelErrors(question: IPanel, errors: Array<SurveyError>): void;
3390
+ getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
3339
3391
  getElementTitleTagName(element: Base, tagName: string): string;
3340
3392
  questionTitlePattern: string;
3341
3393
  getUpdatedQuestionTitle(question: IQuestion, title: string): string;
@@ -3664,6 +3716,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3664
3716
  protected updateElementCssCore(cssClasses: any): void;
3665
3717
  get cssError(): string;
3666
3718
  updateElementCss(reNew?: boolean): void;
3719
+ protected clearCssClasses(): void;
3667
3720
  protected getIsLoadingFromJson(): boolean;
3668
3721
  /**
3669
3722
  * This is the identifier of a survey element - question or panel.
@@ -3730,6 +3783,10 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3730
3783
  protected moveToBase(parent: IPanel, container: IPanel, insertBefore?: any): boolean;
3731
3784
  protected setPage(parent: IPanel, newPage: IPage): void;
3732
3785
  protected getSearchableLocKeys(keys: Array<string>): void;
3786
+ protected get isDefaultV2Theme(): boolean;
3787
+ get isErrorsModeTooltip(): boolean;
3788
+ get hasParent(): boolean;
3789
+ protected get hasFrameV2(): boolean;
3733
3790
  }
3734
3791
 
3735
3792
  /**
@@ -3944,6 +4001,7 @@ export declare class ExpressionItem extends Base implements ILocalizableOwner {
3944
4001
  getRenderer(name: string): string;
3945
4002
  getRendererContext(locStr: LocalizableString): any;
3946
4003
  getProcessedText(text: string): string;
4004
+ getSurvey(isLive?: boolean): ISurvey;
3947
4005
  }
3948
4006
  /**
3949
4007
  * A class that contains expression and html propeties. It uses in survey.completedHtmlOnCondition array.
@@ -4245,15 +4303,16 @@ export declare class ProcessValue {
4245
4303
  getValueInfo(valueInfo: any): void;
4246
4304
  }
4247
4305
 
4248
- export interface IPropertyDecoratorOptions {
4249
- defaultValue?: any;
4306
+ export interface IPropertyDecoratorOptions<T = any> {
4307
+ defaultValue?: T;
4250
4308
  defaultSource?: string;
4309
+ getDefaultValue?: (objectInstance?: any) => T;
4251
4310
  localizable?: {
4252
4311
  name?: string;
4253
4312
  onGetTextCallback?: (str: string) => string;
4254
4313
  defaultStr?: string;
4255
4314
  } | boolean;
4256
- onSet?: (val: any, target: any) => void;
4315
+ onSet?: (val: T, objectInstance: any) => void;
4257
4316
  }
4258
4317
  export declare function property(options?: IPropertyDecoratorOptions): (target: any, key: string) => void;
4259
4318
  export interface IArrayPropertyDecoratorOptions {
@@ -4464,6 +4523,7 @@ export interface IMatrixDropdownData {
4464
4523
  getRenderer(name: string): string;
4465
4524
  getRendererContext(locStr: LocalizableString): any;
4466
4525
  getProcessedText(text: string): string;
4526
+ getParentTextProcessor(): ITextProcessor;
4467
4527
  getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
4468
4528
  onTotalValueChanged(): any;
4469
4529
  getSurvey(): ISurvey;
@@ -4777,9 +4837,11 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
4777
4837
  setIsDetailPanelShowing(row: MatrixDropdownRowModelBase, val: boolean): void;
4778
4838
  getDetailPanelButtonCss(row: MatrixDropdownRowModelBase): string;
4779
4839
  getDetailPanelIconCss(row: MatrixDropdownRowModelBase): string;
4840
+ getDetailPanelIconId(row: MatrixDropdownRowModelBase): string;
4780
4841
  createRowDetailPanel(row: MatrixDropdownRowModelBase): PanelModel;
4781
4842
  getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
4782
4843
  onTotalValueChanged(): any;
4844
+ getParentTextProcessor(): ITextProcessor;
4783
4845
  getQuestionFromArray(name: string, index: number): IQuestion;
4784
4846
  getCellTemplateData(cell: QuestionMatrixDropdownRenderedCell): any;
4785
4847
  getCellWrapperComponentName(cell: MatrixDropdownCell): string;
@@ -4959,6 +5021,7 @@ export declare class QuestionMatrixDropdownRenderedCell {
4959
5021
  set className(val: string);
4960
5022
  get className(): string;
4961
5023
  get headers(): string;
5024
+ getTitle(): string;
4962
5025
  calculateFinalClassName(matrixCssClasses: any): string;
4963
5026
  }
4964
5027
  export declare class QuestionMatrixDropdownRenderedRow extends Base {
@@ -5568,6 +5631,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5568
5631
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5569
5632
  endLoadingFromJson(): void;
5570
5633
  get hasTitle(): boolean;
5634
+ get hasDescription(): boolean;
5571
5635
  protected canShowTitle(): boolean;
5572
5636
  get _showDescription(): boolean;
5573
5637
  localeChanged(): void;
@@ -5977,6 +6041,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
5977
6041
  protected onVisibleChanged(): void;
5978
6042
  needResponsiveWidth(): boolean;
5979
6043
  focusIn: () => void;
6044
+ getContainerCss(): string;
5980
6045
  }
5981
6046
 
5982
6047
  /**
@@ -6141,8 +6206,6 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6141
6206
  */
6142
6207
  onReadyChanged: EventBase<Question>;
6143
6208
  isReadOnlyRenderDiv(): boolean;
6144
- get isErrorsModeTooltip(): boolean;
6145
- get hasParent(): boolean;
6146
6209
  constructor(name: string);
6147
6210
  protected createLocTitleProperty(): LocalizableString;
6148
6211
  getSurvey(live?: boolean): ISurvey;
@@ -6315,6 +6378,11 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6315
6378
  get commentText(): string;
6316
6379
  set commentText(val: string);
6317
6380
  get locCommentText(): LocalizableString;
6381
+ /**
6382
+ * Use this property to set the place holder text for comment field .
6383
+ */
6384
+ commentPlaceHolder: string;
6385
+ get commentOrOtherPlaceHolder(): string;
6318
6386
  /**
6319
6387
  * Returns a copy of question errors survey. For some questions like matrix and panel dynamic it includes the errors of nested questions.
6320
6388
  */
@@ -6842,9 +6910,7 @@ export declare class QuestionSelectBase extends Question {
6842
6910
  /**
6843
6911
  * Use this property to set the place holder text for other or comment field .
6844
6912
  */
6845
- get otherPlaceHolder(): string;
6846
- set otherPlaceHolder(val: string);
6847
- get locOtherPlaceHolder(): LocalizableString;
6913
+ otherPlaceHolder: string;
6848
6914
  /**
6849
6915
  * The text that shows when the other item is choosed by the other input is empty.
6850
6916
  */
@@ -6912,6 +6978,7 @@ export declare class QuestionSelectBase extends Question {
6912
6978
  onSurveyValueChanged(newValue: any): void;
6913
6979
  protected onVisibleChoicesChanged(): void;
6914
6980
  clearIncorrectValues(): void;
6981
+ protected hasValueToClearIncorrectValues(): boolean;
6915
6982
  clearValueIfInvisible(): void;
6916
6983
  /**
6917
6984
  * Returns true if item is selected
@@ -7016,6 +7083,8 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
7016
7083
  protected onAfterRunItemsEnableCondition(): void;
7017
7084
  protected getItemClassCore(item: any, options: any): string;
7018
7085
  updateValueFromSurvey(newValue: any): void;
7086
+ protected setDefaultValue(): void;
7087
+ protected hasValueToClearIncorrectValues(): boolean;
7019
7088
  protected setNewValue(newValue: any): void;
7020
7089
  protected getIsMultipleValue(): boolean;
7021
7090
  protected getCommentFromValue(newValue: any): string;
@@ -7053,6 +7122,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
7053
7122
  get ghostPositionCssClass(): string;
7054
7123
  getNumberByIndex(index: number): string;
7055
7124
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
7125
+ isAnswerCorrect(): boolean;
7056
7126
  onSurveyValueChanged(newValue: any): void;
7057
7127
  protected onVisibleChoicesChanged: () => void;
7058
7128
  localeChanged: () => void;
@@ -7320,6 +7390,7 @@ export declare class QuestionFileModel extends Question {
7320
7390
  supportComment(): boolean;
7321
7391
  getChooseFileCss(): string;
7322
7392
  getReadOnlyFileCss(): string;
7393
+ getFileRootCss(): string;
7323
7394
  getFileDecoratorCss(): string;
7324
7395
  onDragOver: (event: any) => boolean;
7325
7396
  onDrop: (event: any) => void;
@@ -7354,6 +7425,7 @@ export declare class QuestionHtmlModel extends QuestionNonValue {
7354
7425
  export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
7355
7426
  constructor(name: string);
7356
7427
  getType(): string;
7428
+ get ariaRole(): string;
7357
7429
  protected getFirstInputElementId(): string;
7358
7430
  /**
7359
7431
  * Return the selected item in the radio group. Returns null if the value is empty
@@ -7638,6 +7710,7 @@ export declare class QuestionBooleanModel extends Question {
7638
7710
  get labelTrue(): any;
7639
7711
  set labelTrue(val: any);
7640
7712
  get locLabelTrue(): LocalizableString;
7713
+ get isDeterminated(): boolean;
7641
7714
  /**
7642
7715
  * Set this property, if you want to have a different label for state when check is unset.
7643
7716
  */
@@ -7694,6 +7767,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
7694
7767
  get isCompositeQuestion(): boolean;
7695
7768
  supportOther(): boolean;
7696
7769
  supportNone(): boolean;
7770
+ isAnswerCorrect(): boolean;
7697
7771
  /**
7698
7772
  * Multi select option. If set to true, then allows to select multiple images.
7699
7773
  */
@@ -7719,11 +7793,13 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
7719
7793
  */
7720
7794
  get imageHeight(): string;
7721
7795
  set imageHeight(val: string);
7796
+ get renderedImageHeight(): string;
7722
7797
  /**
7723
7798
  * The image width.
7724
7799
  */
7725
7800
  get imageWidth(): string;
7726
7801
  set imageWidth(val: string);
7802
+ get renderedImageWidth(): string;
7727
7803
  /**
7728
7804
  * The image fit mode.
7729
7805
  */
@@ -7736,6 +7812,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
7736
7812
  set contentMode(val: string);
7737
7813
  protected convertDefaultValue(val: any): any;
7738
7814
  get hasColumns(): boolean;
7815
+ get inputType(): "checkbox" | "radio";
7739
7816
  }
7740
7817
 
7741
7818
  /**
@@ -8221,11 +8298,19 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
8221
8298
  }): any;
8222
8299
  updateElementCss(reNew?: boolean): void;
8223
8300
  get progressText(): string;
8301
+ getRootCss(): string;
8224
8302
  getPanelWrapperCss(): string;
8225
8303
  getPanelRemoveButtonCss(): string;
8226
8304
  getAddButtonCss(): string;
8227
8305
  getPrevButtonCss(): string;
8228
8306
  getNextButtonCss(): string;
8307
+ /**
8308
+ * A text displayed when the dynamic panel contains no entries. Applies only in the Default V2 theme.
8309
+ */
8310
+ get noEntriesText(): string;
8311
+ set noEntriesText(val: string);
8312
+ get locNoEntriesText(): LocalizableString;
8313
+ getShowNoEntriesPlaceholder(): boolean;
8229
8314
  }
8230
8315
 
8231
8316
  export declare var surveyTimerFunctions: {
@@ -8513,6 +8598,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
8513
8598
  * <br/> `sender` - the survey object that fires the event.
8514
8599
  * <br/> `options.text` - an error text.
8515
8600
  * <br/> `options.error` - an instance of the `SurveyError` object.
8601
+ * <br/> `options.obj` - an instance of Question, Panel or Survey object to where error is located.
8516
8602
  * <br/> `options.name` - the error name. The following error names are available:
8517
8603
  * required, requireoneanswer, requirenumeric, exceedsize, webrequest, webrequestempty, otherempty,
8518
8604
  * uploadingfile, requiredinallrowserror, minrowcounterror, keyduplicationerror, custom
@@ -9321,6 +9407,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
9321
9407
  getProcessedText(text: string): string;
9322
9408
  getLocString(str: string): any;
9323
9409
  getErrorCustomText(text: string, error: SurveyError): string;
9410
+ getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
9324
9411
  /**
9325
9412
  * Returns the text that is displayed when there are no any visible pages and questiona.
9326
9413
  */
@@ -9687,7 +9774,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
9687
9774
  * Sets the input focus to the first question with the input field.
9688
9775
  */
9689
9776
  focusFirstQuestion(): void;
9690
- scrollToTopOnPageChange(): void;
9777
+ scrollToTopOnPageChange(doScroll?: boolean): void;
9691
9778
  /**
9692
9779
  * Returns the current survey state:
9693
9780
  *
@@ -10622,6 +10709,7 @@ export declare class QuestionTextProcessor implements ITextProcessor {
10622
10709
  protected get panel(): PanelModel;
10623
10710
  protected getValues(): any;
10624
10711
  protected getQuestionByName(name: string): Question;
10712
+ protected getParentTextProcessor(): ITextProcessor;
10625
10713
  protected onCustomProcessText(textValue: TextPreProcessorValue): boolean;
10626
10714
  processText(text: string, returnDisplayValue: boolean): string;
10627
10715
  processTextEx(text: string, returnDisplayValue: boolean): any;
@@ -10724,6 +10812,7 @@ export declare var englishStrings: {
10724
10812
  modalCancelButtonText: string;
10725
10813
  modalApplyButtonText: string;
10726
10814
  filteredTextPlaceholder: string;
10815
+ noEntriesText: string;
10727
10816
  };
10728
10817
 
10729
10818
  export declare var surveyLocalization: {
@@ -10739,8 +10828,8 @@ export declare var surveyLocalization: {
10739
10828
  currentLocale: string;
10740
10829
  defaultLocale: string;
10741
10830
  getLocaleStrings(loc: string): any;
10742
- getCurrentStrings(): any;
10743
- getString: (strName: string) => any;
10831
+ getCurrentStrings(locale?: string): any;
10832
+ getString: (strName: string, locale?: string) => any;
10744
10833
  getLocales: (removeDefaultLoc?: boolean) => Array<string>;
10745
10834
  };
10746
10835
  export declare var surveyStrings: {
@@ -10825,6 +10914,7 @@ export declare var surveyStrings: {
10825
10914
  modalCancelButtonText: string;
10826
10915
  modalApplyButtonText: string;
10827
10916
  filteredTextPlaceholder: string;
10917
+ noEntriesText: string;
10828
10918
  };
10829
10919
 
10830
10920
  export declare class QuestionCustomWidget {
@@ -11177,7 +11267,7 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
11177
11267
  protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
11178
11268
  protected findDeepestDropTargetChild(parent: HTMLElement): HTMLElement;
11179
11269
  protected afterDragOver(): void;
11180
- protected doStartDrag(): void;
11270
+ protected onStartDrag(): void;
11181
11271
  protected doBanDropHere: () => void;
11182
11272
  protected doDrop: () => any;
11183
11273
  protected doClear: () => void;
@@ -11239,6 +11329,8 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
11239
11329
  constructor(name: string);
11240
11330
  getType(): string;
11241
11331
  get isCompositeQuestion(): boolean;
11332
+ get showColumnHeader(): boolean;
11333
+ set showColumnHeader(val: boolean);
11242
11334
  /**
11243
11335
  * Set this property to false, to hide table header. The default value is true.
11244
11336
  */
@@ -11329,9 +11421,7 @@ export declare class QuestionTextBase extends Question {
11329
11421
  /**
11330
11422
  * Use this property to set the input place holder.
11331
11423
  */
11332
- get placeHolder(): string;
11333
- set placeHolder(val: string);
11334
- get locPlaceHolder(): LocalizableString;
11424
+ placeHolder: string;
11335
11425
  getType(): string;
11336
11426
  isEmpty(): boolean;
11337
11427
  /**
@@ -11378,6 +11468,10 @@ export declare class PopupUtils {
11378
11468
  height: number;
11379
11469
  top: number;
11380
11470
  };
11471
+ static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition): {
11472
+ width: number;
11473
+ left: number;
11474
+ };
11381
11475
  static updateVerticalPosition(targetRect: ClientRect, height: number, verticalPosition: VerticalPosition, showPointer: boolean, windowHeight: number): VerticalPosition;
11382
11476
  static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
11383
11477
  static calculatePointerTarget(targetRect: ClientRect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): INumberPosition;
@@ -11387,6 +11481,7 @@ export declare abstract class DragDropCore<T> extends Base {
11387
11481
  isBottom: boolean;
11388
11482
  onGhostPositionChanged: EventBase<Base>;
11389
11483
  protected ghostPositionChanged(): void;
11484
+ static PreventScrolling: boolean;
11390
11485
  onBeforeDrop: EventBase<DragDropCore<T>>;
11391
11486
  onAfterDrop: EventBase<DragDropCore<T>>;
11392
11487
  draggedElement: any;
@@ -11401,7 +11496,7 @@ export declare abstract class DragDropCore<T> extends Base {
11401
11496
  constructor(surveyValue?: ISurvey, creator?: any);
11402
11497
  startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
11403
11498
  protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
11404
- protected doStartDrag(): void;
11499
+ protected onStartDrag(): void;
11405
11500
  protected getShortcutText(draggedElement: IShortcutText): string;
11406
11501
  protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
11407
11502
  protected getDraggedElementClass(): string;