survey-react 1.8.78 → 1.9.2

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.78
1
+ /*Type definitions for Survey JavaScript library v1.9.2
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,13 +231,15 @@ 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;
241
239
  itemTitle: string;
240
+ item: string;
242
241
  row: string;
242
+ itemLabel: string;
243
243
  itemValue: string;
244
244
  };
245
245
  radiogroup: {
@@ -252,7 +252,6 @@ export declare var defaultStandardCss: {
252
252
  labelChecked: string;
253
253
  itemControl: string;
254
254
  controlLabel: string;
255
- materialDecorator: string;
256
255
  other: string;
257
256
  clearButton: string;
258
257
  column: string;
@@ -296,15 +295,12 @@ export declare var defaultStandardCss: {
296
295
  removeButton: string;
297
296
  fileInput: string;
298
297
  removeFile: string;
299
- removeFileSvg: string;
300
298
  fileDecorator: string;
301
- fileSignBottom: string;
302
- removeButtonBottom: string;
299
+ fileSign: string;
303
300
  chooseFile: string;
304
301
  noFileChosen: string;
305
302
  dragAreaPlaceholder: string;
306
303
  fileList: string;
307
- defaultImage: string;
308
304
  };
309
305
  signaturepad: {
310
306
  root: string;
@@ -426,7 +422,6 @@ export declare var defaultBootstrapCss: {
426
422
  itemDisabled: string;
427
423
  switch: string;
428
424
  slider: string;
429
- sliderText: string;
430
425
  label: string;
431
426
  disabledLabel: string;
432
427
  materialDecorator: string;
@@ -547,12 +542,15 @@ export declare var defaultBootstrapCss: {
547
542
  progressText: string;
548
543
  panelWrapper: string;
549
544
  panelWrapperInRow: string;
550
- separatorV2: string;
551
545
  footer: string;
546
+ progressBtnIcon: string;
552
547
  };
553
548
  multipletext: {
554
549
  root: string;
555
550
  itemTitle: string;
551
+ item: string;
552
+ itemLabel: string;
553
+ row: string;
556
554
  itemValue: string;
557
555
  };
558
556
  radiogroup: {
@@ -610,13 +608,11 @@ export declare var defaultBootstrapCss: {
610
608
  removeButton: string;
611
609
  fileInput: string;
612
610
  removeFile: string;
613
- removeFileSvg: string;
614
611
  fileDecorator: string;
615
- fileSignBottom: string;
612
+ fileSign: string;
616
613
  removeButtonBottom: string;
617
614
  dragAreaPlaceholder: string;
618
615
  fileList: string;
619
- defaultImage: string;
620
616
  };
621
617
  signaturepad: {
622
618
  root: string;
@@ -738,7 +734,6 @@ export declare var defaultBootstrapMaterialCss: {
738
734
  itemDisabled: string;
739
735
  switch: string;
740
736
  slider: string;
741
- sliderText: string;
742
737
  label: string;
743
738
  disabledLabel: string;
744
739
  materialDecorator: string;
@@ -865,12 +860,14 @@ export declare var defaultBootstrapMaterialCss: {
865
860
  progressText: string;
866
861
  panelWrapper: string;
867
862
  panelWrapperInRow: string;
868
- separatorV2: string;
863
+ progressBtnIcon: string;
869
864
  footer: string;
870
865
  };
871
866
  multipletext: {
872
867
  root: string;
873
868
  itemTitle: string;
869
+ item: string;
870
+ itemLabel: string;
874
871
  row: string;
875
872
  itemValue: string;
876
873
  };
@@ -928,14 +925,12 @@ export declare var defaultBootstrapMaterialCss: {
928
925
  preview: string;
929
926
  removeButton: string;
930
927
  fileInput: string;
928
+ fileSign: string;
931
929
  removeFile: string;
932
- removeFileSvg: string;
933
930
  fileDecorator: string;
934
- fileSignBottom: string;
935
931
  removeButtonBottom: string;
936
932
  dragAreaPlaceholder: string;
937
933
  fileList: string;
938
- defaultImage: string;
939
934
  };
940
935
  signaturepad: {
941
936
  root: string;
@@ -992,11 +987,15 @@ export declare var defaultV2Css: {
992
987
  titleOnError: string;
993
988
  description: string;
994
989
  container: string;
990
+ withFrame: string;
995
991
  content: string;
996
992
  icon: string;
997
993
  iconExpanded: string;
998
994
  footer: string;
999
995
  requiredText: string;
996
+ header: string;
997
+ collapsed: string;
998
+ nested: string;
1000
999
  };
1001
1000
  paneldynamic: {
1002
1001
  mainRoot: string;
@@ -1015,11 +1014,11 @@ export declare var defaultV2Css: {
1015
1014
  progressBar: string;
1016
1015
  progressText: string;
1017
1016
  separator: string;
1018
- separatorV2: string;
1019
1017
  panelWrapper: string;
1020
1018
  footer: string;
1021
1019
  footerButtonsContainer: string;
1022
1020
  panelWrapperInRow: string;
1021
+ progressBtnIcon: string;
1023
1022
  };
1024
1023
  progress: string;
1025
1024
  progressBar: string;
@@ -1037,6 +1036,7 @@ export declare var defaultV2Css: {
1037
1036
  question: {
1038
1037
  mainRoot: string;
1039
1038
  flowRoot: string;
1039
+ withFrame: string;
1040
1040
  asCell: string;
1041
1041
  answered: string;
1042
1042
  header: string;
@@ -1062,6 +1062,8 @@ export declare var defaultV2Css: {
1062
1062
  formGroup: string;
1063
1063
  hasError: string;
1064
1064
  disabled: string;
1065
+ collapsed: string;
1066
+ nested: string;
1065
1067
  };
1066
1068
  image: {
1067
1069
  root: string;
@@ -1090,6 +1092,7 @@ export declare var defaultV2Css: {
1090
1092
  labelChecked: string;
1091
1093
  itemControl: string;
1092
1094
  itemDecorator: string;
1095
+ itemSvgIconId: string;
1093
1096
  controlLabel: string;
1094
1097
  materialDecorator: string;
1095
1098
  other: string;
@@ -1138,6 +1141,8 @@ export declare var defaultV2Css: {
1138
1141
  };
1139
1142
  multipletext: {
1140
1143
  root: string;
1144
+ itemLabel: string;
1145
+ itemLabelOnError: string;
1141
1146
  item: string;
1142
1147
  itemTitle: string;
1143
1148
  row: string;
@@ -1171,6 +1176,8 @@ export declare var defaultV2Css: {
1171
1176
  itemDisabled: string;
1172
1177
  itemHover: string;
1173
1178
  label: string;
1179
+ itemDecorator: string;
1180
+ imageContainer: string;
1174
1181
  itemControl: string;
1175
1182
  image: string;
1176
1183
  itemText: string;
@@ -1202,6 +1209,13 @@ export declare var defaultV2Css: {
1202
1209
  cell: string;
1203
1210
  headerCell: string;
1204
1211
  rowTextCell: string;
1212
+ detailButton: string;
1213
+ detailButtonExpanded: string;
1214
+ detailIcon: string;
1215
+ detailIconExpanded: string;
1216
+ detailIconId: string;
1217
+ detailIconExpandedId: string;
1218
+ actionsCell: string;
1205
1219
  };
1206
1220
  matrixdynamic: {
1207
1221
  mainRoot: string;
@@ -1215,12 +1229,15 @@ export declare var defaultV2Css: {
1215
1229
  detailButtonExpanded: string;
1216
1230
  detailIcon: string;
1217
1231
  detailIconExpanded: string;
1232
+ detailIconId: string;
1233
+ detailIconExpandedId: string;
1218
1234
  detailPanelCell: string;
1219
1235
  actionsCell: string;
1220
1236
  buttonAdd: string;
1221
1237
  buttonRemove: string;
1222
1238
  iconAdd: string;
1223
1239
  iconRemove: string;
1240
+ footer: string;
1224
1241
  };
1225
1242
  rating: {
1226
1243
  root: string;
@@ -1254,22 +1271,30 @@ export declare var defaultV2Css: {
1254
1271
  fileInput: string;
1255
1272
  noFileChosen: string;
1256
1273
  chooseFile: string;
1274
+ chooseFileAsText: string;
1275
+ chooseFileAsIcon: string;
1276
+ chooseFileIconId: string;
1257
1277
  disabled: string;
1258
1278
  removeButton: string;
1259
1279
  removeButtonBottom: string;
1280
+ removeButtonIconId: string;
1260
1281
  removeFile: string;
1261
1282
  removeFileSvg: string;
1283
+ removeFileSvgIconId: string;
1262
1284
  wrapper: string;
1263
1285
  defaultImage: string;
1264
1286
  removeFileButton: string;
1265
1287
  dragAreaPlaceholder: string;
1288
+ imageWrapper: string;
1266
1289
  };
1267
1290
  signaturepad: {
1291
+ mainRoot: string;
1268
1292
  root: string;
1269
1293
  small: string;
1270
1294
  controls: string;
1271
1295
  placeholder: string;
1272
1296
  clearButton: string;
1297
+ clearButtonIconId: string;
1273
1298
  };
1274
1299
  saveData: {
1275
1300
  root: string;
@@ -1289,12 +1314,29 @@ export declare var defaultV2Css: {
1289
1314
  buttonCollapsed: string;
1290
1315
  };
1291
1316
  };
1317
+ ranking: {
1318
+ root: string;
1319
+ rootMobileMod: string;
1320
+ rootDragMod: string;
1321
+ item: string;
1322
+ itemContent: string;
1323
+ itemIndex: string;
1324
+ controlLabel: string;
1325
+ itemGhostNode: string;
1326
+ itemIconContainer: string;
1327
+ itemIcon: string;
1328
+ itemIconHoverMod: string;
1329
+ itemIconFocusMod: string;
1330
+ itemGhostMod: string;
1331
+ itemDragMod: string;
1332
+ };
1292
1333
  };
1293
1334
 
1294
1335
  export declare var modernCss: {
1295
1336
  root: string;
1296
1337
  container: string;
1297
1338
  header: string;
1339
+ headerClose: string;
1298
1340
  body: string;
1299
1341
  bodyEmpty: string;
1300
1342
  footer: string;
@@ -1345,7 +1387,7 @@ export declare var modernCss: {
1345
1387
  separator: string;
1346
1388
  panelWrapper: string;
1347
1389
  panelWrapperInRow: string;
1348
- separatorV2: string;
1390
+ progressBtnIcon: string;
1349
1391
  footer: string;
1350
1392
  };
1351
1393
  progress: string;
@@ -1427,6 +1469,7 @@ export declare var modernCss: {
1427
1469
  labelChecked: string;
1428
1470
  itemControl: string;
1429
1471
  itemDecorator: string;
1472
+ itemSvgIconId: string;
1430
1473
  controlLabel: string;
1431
1474
  materialDecorator: string;
1432
1475
  other: string;
@@ -1459,6 +1502,7 @@ export declare var modernCss: {
1459
1502
  itemHover: string;
1460
1503
  itemControl: string;
1461
1504
  itemDecorator: string;
1505
+ itemSvgIconId: string;
1462
1506
  controlLabel: string;
1463
1507
  materialDecorator: string;
1464
1508
  other: string;
@@ -1486,7 +1530,6 @@ export declare var modernCss: {
1486
1530
  itemDisabled: string;
1487
1531
  switch: string;
1488
1532
  slider: string;
1489
- sliderText: string;
1490
1533
  label: string;
1491
1534
  disabledLabel: string;
1492
1535
  materialDecorator: string;
@@ -1503,6 +1546,7 @@ export declare var modernCss: {
1503
1546
  multipletext: {
1504
1547
  root: string;
1505
1548
  item: string;
1549
+ itemLabel: string;
1506
1550
  itemTitle: string;
1507
1551
  row: string;
1508
1552
  cell: string;
@@ -1608,7 +1652,6 @@ export declare var modernCss: {
1608
1652
  other: string;
1609
1653
  placeholderInput: string;
1610
1654
  preview: string;
1611
- fileSign: string;
1612
1655
  fileSignBottom: string;
1613
1656
  fileDecorator: string;
1614
1657
  fileInput: string;
@@ -1619,10 +1662,10 @@ export declare var modernCss: {
1619
1662
  removeButtonBottom: string;
1620
1663
  removeFile: string;
1621
1664
  removeFileSvg: string;
1665
+ removeFileSvgIconId: string;
1622
1666
  wrapper: string;
1623
1667
  dragAreaPlaceholder: string;
1624
1668
  fileList: string;
1625
- defaultImage: string;
1626
1669
  };
1627
1670
  signaturepad: {
1628
1671
  root: string;
@@ -1651,6 +1694,8 @@ export declare var modernCss: {
1651
1694
  };
1652
1695
  };
1653
1696
 
1697
+ export declare var SvgBundleViewModel: any;
1698
+
1654
1699
  export declare class RendererFactory {
1655
1700
  static Instance: RendererFactory;
1656
1701
  unregisterRenderer(questionType: string, rendererAs: string): void;
@@ -1667,6 +1712,7 @@ interface IDimensions {
1667
1712
  export declare class ResponsivityManager {
1668
1713
  protected container: HTMLDivElement;
1669
1714
  protected minDimensionConst: number;
1715
+ protected recalcMinDimensionConst: boolean;
1670
1716
  getComputedStyle: (elt: Element) => CSSStyleDeclaration;
1671
1717
  constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number);
1672
1718
  protected getDimensions(element: HTMLElement): IDimensions;
@@ -1692,7 +1738,7 @@ declare function isElementVisible(element: HTMLElement, threshold?: number): boo
1692
1738
  declare function findScrollableParent(element: HTMLElement): HTMLElement;
1693
1739
  declare function scrollElementByChildId(id: string): void;
1694
1740
  declare function getIconNameFromProxy(iconName: string): string;
1695
- declare function createSvg(size: number, width: number, height: number, iconName: string, svgElem: any): void;
1741
+ declare function createSvg(size: number | string, width: number, height: number, iconName: string, svgElem: any): void;
1696
1742
  export declare function unwrap<T>(value: T | (() => T)): T;
1697
1743
  export declare function getSize(value: any): any;
1698
1744
  declare function doKey2ClickUp(evt: KeyboardEvent, options?: {
@@ -1756,6 +1802,7 @@ export interface IAction {
1756
1802
  * Set this property to true to activate the toolbar item (page)
1757
1803
  */
1758
1804
  active?: boolean;
1805
+ pressed?: boolean;
1759
1806
  /**
1760
1807
  * Toolbar item template name
1761
1808
  */
@@ -1819,6 +1866,7 @@ export declare class Action extends Base implements IAction {
1819
1866
  popupModel: any;
1820
1867
  needSeparator: boolean;
1821
1868
  active: boolean;
1869
+ pressed: boolean;
1822
1870
  template: string;
1823
1871
  component: string;
1824
1872
  items: any;
@@ -1991,6 +2039,7 @@ export declare class SurveyPanel extends SurveyPanelBase {
1991
2039
  constructor(props: any);
1992
2040
  get panel(): PanelModel;
1993
2041
  protected renderElement(): JSX.Element;
2042
+ protected renderHeader(): JSX.Element;
1994
2043
  protected wrapElement(element: JSX.Element): JSX.Element;
1995
2044
  protected renderContent(style: any, rows: JSX.Element[], className: string): JSX.Element;
1996
2045
  protected renderTitle(): JSX.Element;
@@ -2046,24 +2095,31 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
2046
2095
  componentWillUnmount(): void;
2047
2096
  protected renderElement(): JSX.Element;
2048
2097
  }
2049
- export declare class SurveyQuestionAndErrorsCell extends ReactSurveyElement {
2098
+ export declare abstract class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
2050
2099
  [index: string]: any;
2051
- protected cellRef: React.RefObject<HTMLTableCellElement>;
2052
2100
  constructor(props: any);
2053
2101
  protected getStateElement(): Base;
2054
- protected get itemCss(): string;
2055
2102
  protected get question(): Question;
2056
2103
  protected get creator(): ISurveyCreator;
2057
2104
  protected getQuestion(): Question;
2105
+ protected get itemCss(): string;
2058
2106
  componentDidMount(): void;
2059
- componentWillUnmount(): void;
2060
2107
  componentDidUpdate(prevProps: any, prevState: any): void;
2061
2108
  protected doAfterRender(): void;
2062
2109
  protected canRender(): boolean;
2063
- protected renderElement(): JSX.Element;
2110
+ protected renderErrors(errorsLocation: string): JSX.Element;
2111
+ protected renderContent(): JSX.Element;
2112
+ protected abstract renderElement(): JSX.Element;
2064
2113
  protected getShowErrors(): boolean;
2065
- protected getCellStyle(): any;
2066
2114
  protected renderQuestion(): JSX.Element;
2115
+ }
2116
+ export declare class SurveyQuestionAndErrorsCell extends SurveyQuestionAndErrorsWrapped {
2117
+ [index: string]: any;
2118
+ protected cellRef: React.RefObject<HTMLTableCellElement>;
2119
+ constructor(props: any);
2120
+ componentWillUnmount(): void;
2121
+ protected renderElement(): JSX.Element;
2122
+ protected getCellStyle(): any;
2067
2123
  protected getHeaderText(): string;
2068
2124
  protected wrapCell(cell: QuestionMatrixDropdownRenderedCell, element: JSX.Element): JSX.Element;
2069
2125
  }
@@ -2214,6 +2270,7 @@ export declare class SurveyQuestionFile extends SurveyQuestionElementBase {
2214
2270
  protected renderElement(): JSX.Element;
2215
2271
  protected renderFileDecorator(): JSX.Element;
2216
2272
  protected renderClearButton(className: string): JSX.Element;
2273
+ protected renderFileSign(className: string, val: any): JSX.Element;
2217
2274
  protected renderPreview(): JSX.Element;
2218
2275
  }
2219
2276
 
@@ -2221,8 +2278,12 @@ export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBas
2221
2278
  constructor(props: any);
2222
2279
  protected get question(): QuestionMultipleTextModel;
2223
2280
  protected renderElement(): JSX.Element;
2281
+ protected renderItemTooltipError(item: MultipleTextItemModel, cssClasses: any): JSX.Element;
2224
2282
  protected renderRow(rowIndex: number, items: Array<MultipleTextItemModel>, cssClasses: any): JSX.Element;
2225
2283
  }
2284
+ export declare class SurveyMultipleTextItemEditor extends SurveyQuestionAndErrorsWrapped {
2285
+ protected renderElement(): JSX.Element;
2286
+ }
2226
2287
 
2227
2288
  export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
2228
2289
  constructor(props: any);
@@ -2249,6 +2310,7 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
2249
2310
 
2250
2311
  export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
2251
2312
  constructor(props: any);
2313
+ protected renderInput(): JSX.Element;
2252
2314
  protected renderElement(): JSX.Element;
2253
2315
  }
2254
2316
 
@@ -2325,8 +2387,8 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
2325
2387
  handleOnRangeChange(event: any): void;
2326
2388
  protected renderElement(): JSX.Element;
2327
2389
  protected renderNavigator(): JSX.Element;
2328
- protected rendrerPrevButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
2329
- protected rendrerNextButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
2390
+ protected rendrerPrevButton(): JSX.Element;
2391
+ protected rendrerNextButton(): JSX.Element;
2330
2392
  protected renderRange(): JSX.Element;
2331
2393
  protected renderAddRowButton(): JSX.Element;
2332
2394
  protected renderNavigatorV2(): JSX.Element;
@@ -3175,6 +3237,7 @@ export declare class Base {
3175
3237
  * @param val new property value
3176
3238
  */
3177
3239
  setPropertyValue(name: string, val: any): void;
3240
+ protected setArrayPropertyDirectly(name: string, val: any, sendNotification?: boolean): void;
3178
3241
  protected setPropertyValueDirectly(name: string, val: any): void;
3179
3242
  protected clearPropertyValue(name: string): void;
3180
3243
  onPropertyValueChangedCallback(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void;
@@ -3209,7 +3272,7 @@ export declare class Base {
3209
3272
  */
3210
3273
  unRegisterFunctionOnPropertiesValueChanged(names: Array<string>, key?: string): void;
3211
3274
  createCustomLocalizableObj(name: string): void;
3212
- protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, hasDefaultValue?: boolean): LocalizableString;
3275
+ protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, defaultStr?: boolean | string): LocalizableString;
3213
3276
  getLocalizableString(name: string): LocalizableString;
3214
3277
  getLocalizableStringText(name: string, defaultStr?: string): string;
3215
3278
  setLocalizableStringText(name: string, value: string): void;
@@ -3309,6 +3372,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
3309
3372
  requiredText: string;
3310
3373
  beforeSettingQuestionErrors(question: IQuestion, errors: Array<SurveyError>): void;
3311
3374
  beforeSettingPanelErrors(question: IPanel, errors: Array<SurveyError>): void;
3375
+ getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
3312
3376
  getElementTitleTagName(element: Base, tagName: string): string;
3313
3377
  questionTitlePattern: string;
3314
3378
  getUpdatedQuestionTitle(question: IQuestion, title: string): string;
@@ -3637,6 +3701,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3637
3701
  protected updateElementCssCore(cssClasses: any): void;
3638
3702
  get cssError(): string;
3639
3703
  updateElementCss(reNew?: boolean): void;
3704
+ protected clearCssClasses(): void;
3640
3705
  protected getIsLoadingFromJson(): boolean;
3641
3706
  /**
3642
3707
  * This is the identifier of a survey element - question or panel.
@@ -3703,6 +3768,10 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3703
3768
  protected moveToBase(parent: IPanel, container: IPanel, insertBefore?: any): boolean;
3704
3769
  protected setPage(parent: IPanel, newPage: IPage): void;
3705
3770
  protected getSearchableLocKeys(keys: Array<string>): void;
3771
+ protected get isDefaultV2Theme(): boolean;
3772
+ get isErrorsModeTooltip(): boolean;
3773
+ get hasParent(): boolean;
3774
+ protected get hasFrameV2(): boolean;
3706
3775
  }
3707
3776
 
3708
3777
  /**
@@ -4437,6 +4506,7 @@ export interface IMatrixDropdownData {
4437
4506
  getRenderer(name: string): string;
4438
4507
  getRendererContext(locStr: LocalizableString): any;
4439
4508
  getProcessedText(text: string): string;
4509
+ getParentTextProcessor(): ITextProcessor;
4440
4510
  getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
4441
4511
  onTotalValueChanged(): any;
4442
4512
  getSurvey(): ISurvey;
@@ -4750,9 +4820,11 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
4750
4820
  setIsDetailPanelShowing(row: MatrixDropdownRowModelBase, val: boolean): void;
4751
4821
  getDetailPanelButtonCss(row: MatrixDropdownRowModelBase): string;
4752
4822
  getDetailPanelIconCss(row: MatrixDropdownRowModelBase): string;
4823
+ getDetailPanelIconId(row: MatrixDropdownRowModelBase): string;
4753
4824
  createRowDetailPanel(row: MatrixDropdownRowModelBase): PanelModel;
4754
4825
  getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
4755
4826
  onTotalValueChanged(): any;
4827
+ getParentTextProcessor(): ITextProcessor;
4756
4828
  getQuestionFromArray(name: string, index: number): IQuestion;
4757
4829
  getCellTemplateData(cell: QuestionMatrixDropdownRenderedCell): any;
4758
4830
  getCellWrapperComponentName(cell: MatrixDropdownCell): string;
@@ -4932,6 +5004,7 @@ export declare class QuestionMatrixDropdownRenderedCell {
4932
5004
  set className(val: string);
4933
5005
  get className(): string;
4934
5006
  get headers(): string;
5007
+ getTitle(): string;
4935
5008
  calculateFinalClassName(matrixCssClasses: any): string;
4936
5009
  }
4937
5010
  export declare class QuestionMatrixDropdownRenderedRow extends Base {
@@ -5491,6 +5564,7 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
5491
5564
  get elements(): Array<IElement>;
5492
5565
  indexOf(el: IElement): number;
5493
5566
  ensureRowsVisibility(): void;
5567
+ getItemLabelCss(item: MultipleTextItemModel): string;
5494
5568
  getItemCss(): string;
5495
5569
  getItemTitleCss(): string;
5496
5570
  }
@@ -5540,6 +5614,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5540
5614
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5541
5615
  endLoadingFromJson(): void;
5542
5616
  get hasTitle(): boolean;
5617
+ get hasDescription(): boolean;
5543
5618
  protected canShowTitle(): boolean;
5544
5619
  get _showDescription(): boolean;
5545
5620
  localeChanged(): void;
@@ -5711,6 +5786,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5711
5786
  protected createRow(): QuestionRowModel;
5712
5787
  onSurveyLoad(): void;
5713
5788
  onFirstRendering(): void;
5789
+ updateRows(): void;
5714
5790
  get rows(): Array<QuestionRowModel>;
5715
5791
  ensureRowsVisibility(): void;
5716
5792
  protected onRowsChanged(): void;
@@ -5948,6 +6024,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
5948
6024
  protected onVisibleChanged(): void;
5949
6025
  needResponsiveWidth(): boolean;
5950
6026
  focusIn: () => void;
6027
+ getContainerCss(): string;
5951
6028
  }
5952
6029
 
5953
6030
  /**
@@ -6112,8 +6189,6 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6112
6189
  */
6113
6190
  onReadyChanged: EventBase<Question>;
6114
6191
  isReadOnlyRenderDiv(): boolean;
6115
- get isErrorsModeTooltip(): boolean;
6116
- get hasParent(): boolean;
6117
6192
  constructor(name: string);
6118
6193
  protected createLocTitleProperty(): LocalizableString;
6119
6194
  getSurvey(live?: boolean): ISurvey;
@@ -6134,9 +6209,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6134
6209
  /**
6135
6210
  * A11Y properties
6136
6211
  */
6137
- get ariaRequired(): boolean;
6212
+ get ariaRequired(): "true" | "false";
6138
6213
  get ariaLabel(): string;
6139
- get ariaInvalid(): boolean;
6214
+ get ariaInvalid(): "true" | "false";
6140
6215
  get ariaDescribedBy(): string;
6141
6216
  /**
6142
6217
  * Get is question ready to use
@@ -6363,6 +6438,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6363
6438
  */
6364
6439
  get renderWidth(): string;
6365
6440
  set renderWidth(val: string);
6441
+ get renderCssRoot(): string;
6366
6442
  /**
6367
6443
  * Set it different from 0 to increase the left padding.
6368
6444
  */
@@ -6429,6 +6505,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6429
6505
  */
6430
6506
  get isReadOnly(): boolean;
6431
6507
  get isInputReadOnly(): boolean;
6508
+ get renderedInputReadOnly(): string;
6509
+ get renderedInputDisabled(): string;
6432
6510
  protected onReadOnlyChanged(): void;
6433
6511
  /**
6434
6512
  * An expression that returns true or false. If it returns false the Question becomes read only and an end-user will not able to answer on the qustion. The library runs the expression on survey start and on changing a question value. If the property is empty then readOnly property is used.
@@ -6497,6 +6575,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6497
6575
  set defaultValue(val: any);
6498
6576
  get defaultValueExpression(): any;
6499
6577
  set defaultValueExpression(val: any);
6578
+ get resizeStyle(): "none" | "both";
6500
6579
  /**
6501
6580
  * Returns question answer data as a plain object: with question title, name, value and displayValue.
6502
6581
  * For complex questions (like matrix, etc.) isNode flag is set to true and data contains array of nested objects (rows)
@@ -6809,9 +6888,7 @@ export declare class QuestionSelectBase extends Question {
6809
6888
  /**
6810
6889
  * Use this property to set the place holder text for other or comment field .
6811
6890
  */
6812
- get otherPlaceHolder(): string;
6813
- set otherPlaceHolder(val: string);
6814
- get locOtherPlaceHolder(): LocalizableString;
6891
+ otherPlaceHolder: string;
6815
6892
  /**
6816
6893
  * The text that shows when the other item is choosed by the other input is empty.
6817
6894
  */
@@ -6900,6 +6977,13 @@ export declare class QuestionSelectBase extends Question {
6900
6977
  choicesLoaded(): void;
6901
6978
  getItemValueWrapperComponentName(item: ItemValue): string;
6902
6979
  getItemValueWrapperComponentData(item: ItemValue): any;
6980
+ ariaItemChecked(item: ItemValue): "true" | "false";
6981
+ isOtherItem(item: ItemValue): boolean;
6982
+ get itemSvgIcon(): string;
6983
+ ariaItemLabel(item: ItemValue): string;
6984
+ getItemId(item: ItemValue): string;
6985
+ get questionName(): string;
6986
+ getItemEnabled(item: ItemValue): any;
6903
6987
  }
6904
6988
  /**
6905
6989
  * A base class for checkbox and radiogroup questions. It introduced a colCount property.
@@ -6915,8 +6999,6 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
6915
6999
  protected onParentChanged(): void;
6916
7000
  protected onParentQuestionChanged(): void;
6917
7001
  protected getSearchableItemValueKeys(keys: Array<string>): void;
6918
- getItemEnabled(item: ItemValue): any;
6919
- isOtherItem(item: ItemValue): boolean;
6920
7002
  }
6921
7003
 
6922
7004
  /**
@@ -6977,6 +7059,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
6977
7059
  protected onEnableItemCallBack(item: ItemValue): boolean;
6978
7060
  protected onAfterRunItemsEnableCondition(): void;
6979
7061
  protected getItemClassCore(item: any, options: any): string;
7062
+ updateValueFromSurvey(newValue: any): void;
6980
7063
  protected setNewValue(newValue: any): void;
6981
7064
  protected getIsMultipleValue(): boolean;
6982
7065
  protected getCommentFromValue(newValue: any): string;
@@ -7000,7 +7083,6 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
7000
7083
  protected renderedValueFromDataCore(val: any): any;
7001
7084
  protected rendredValueToDataCore(val: any): any;
7002
7085
  get checkBoxSvgPath(): string;
7003
- getItemId(item: ItemValue): string;
7004
7086
  }
7005
7087
 
7006
7088
  /**
@@ -7015,6 +7097,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
7015
7097
  get ghostPositionCssClass(): string;
7016
7098
  getNumberByIndex(index: number): string;
7017
7099
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
7100
+ isAnswerCorrect(): boolean;
7018
7101
  onSurveyValueChanged(newValue: any): void;
7019
7102
  protected onVisibleChoicesChanged: () => void;
7020
7103
  localeChanged: () => void;
@@ -7070,6 +7153,7 @@ export declare class QuestionCommentModel extends QuestionTextBase {
7070
7153
  onKeyDown(event: any): void;
7071
7154
  onValueChanged(): void;
7072
7155
  protected setNewValue(newValue: string): any;
7156
+ get className(): string;
7073
7157
  }
7074
7158
 
7075
7159
  /**
@@ -7120,6 +7204,7 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
7120
7204
  get autoComplete(): string;
7121
7205
  set autoComplete(val: string);
7122
7206
  getControlClass(): string;
7207
+ get readOnlyText(): any;
7123
7208
  }
7124
7209
 
7125
7210
  export declare class QuestionFactory {
@@ -7314,6 +7399,7 @@ export declare class QuestionHtmlModel extends QuestionNonValue {
7314
7399
  export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
7315
7400
  constructor(name: string);
7316
7401
  getType(): string;
7402
+ get ariaRole(): string;
7317
7403
  protected getFirstInputElementId(): string;
7318
7404
  /**
7319
7405
  * Return the selected item in the radio group. Returns null if the value is empty
@@ -7327,7 +7413,6 @@ export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
7327
7413
  get canShowClearButton(): boolean;
7328
7414
  get clearButtonCaption(): any;
7329
7415
  supportGoNextPageAutomatic(): boolean;
7330
- get ariaRole(): string;
7331
7416
  }
7332
7417
 
7333
7418
  /**
@@ -7435,6 +7520,7 @@ export declare class QuestionExpressionModel extends Question {
7435
7520
  get formatedValue(): string;
7436
7521
  protected updateFormatedValue(): void;
7437
7522
  protected onValueChanged(): void;
7523
+ updateValueFromSurvey(newValue: any): void;
7438
7524
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
7439
7525
  /**
7440
7526
  * 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.
@@ -7480,6 +7566,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
7480
7566
  set size(val: number);
7481
7567
  get isTextInput(): boolean;
7482
7568
  get inputSize(): number;
7569
+ get renderedInputSize(): number;
7483
7570
  get inputWidth(): string;
7484
7571
  updateInputSize(): void;
7485
7572
  /**
@@ -7597,6 +7684,7 @@ export declare class QuestionBooleanModel extends Question {
7597
7684
  get labelTrue(): any;
7598
7685
  set labelTrue(val: any);
7599
7686
  get locLabelTrue(): LocalizableString;
7687
+ get isDeterminated(): boolean;
7600
7688
  /**
7601
7689
  * Set this property, if you want to have a different label for state when check is unset.
7602
7690
  */
@@ -7620,6 +7708,7 @@ export declare class QuestionBooleanModel extends Question {
7620
7708
  getItemCss(): string;
7621
7709
  getLabelCss(checked: boolean): string;
7622
7710
  get allowClick(): boolean;
7711
+ getCheckedLabel(): LocalizableString;
7623
7712
  onLabelClick(event: any, value: boolean): boolean;
7624
7713
  onSwitchClickModel(event: any): boolean;
7625
7714
  }
@@ -7652,6 +7741,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
7652
7741
  get isCompositeQuestion(): boolean;
7653
7742
  supportOther(): boolean;
7654
7743
  supportNone(): boolean;
7744
+ isAnswerCorrect(): boolean;
7655
7745
  /**
7656
7746
  * Multi select option. If set to true, then allows to select multiple images.
7657
7747
  */
@@ -7677,11 +7767,13 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
7677
7767
  */
7678
7768
  get imageHeight(): string;
7679
7769
  set imageHeight(val: string);
7770
+ get renderedImageHeight(): string;
7680
7771
  /**
7681
7772
  * The image width.
7682
7773
  */
7683
7774
  get imageWidth(): string;
7684
7775
  set imageWidth(val: string);
7776
+ get renderedImageWidth(): string;
7685
7777
  /**
7686
7778
  * The image fit mode.
7687
7779
  */
@@ -7694,6 +7786,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
7694
7786
  set contentMode(val: string);
7695
7787
  protected convertDefaultValue(val: any): any;
7696
7788
  get hasColumns(): boolean;
7789
+ get inputType(): "checkbox" | "radio";
7697
7790
  }
7698
7791
 
7699
7792
  /**
@@ -8471,6 +8564,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
8471
8564
  * <br/> `sender` - the survey object that fires the event.
8472
8565
  * <br/> `options.text` - an error text.
8473
8566
  * <br/> `options.error` - an instance of the `SurveyError` object.
8567
+ * <br/> `options.obj` - an instance of Question, Panel or Survey object to where error is located.
8474
8568
  * <br/> `options.name` - the error name. The following error names are available:
8475
8569
  * required, requireoneanswer, requirenumeric, exceedsize, webrequest, webrequestempty, otherempty,
8476
8570
  * uploadingfile, requiredinallrowserror, minrowcounterror, keyduplicationerror, custom
@@ -9279,6 +9373,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
9279
9373
  getProcessedText(text: string): string;
9280
9374
  getLocString(str: string): any;
9281
9375
  getErrorCustomText(text: string, error: SurveyError): string;
9376
+ getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
9282
9377
  /**
9283
9378
  * Returns the text that is displayed when there are no any visible pages and questiona.
9284
9379
  */
@@ -9645,7 +9740,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
9645
9740
  * Sets the input focus to the first question with the input field.
9646
9741
  */
9647
9742
  focusFirstQuestion(): void;
9648
- scrollToTopOnPageChange(): void;
9743
+ scrollToTopOnPageChange(doScroll?: boolean): void;
9649
9744
  /**
9650
9745
  * Returns the current survey state:
9651
9746
  *
@@ -10346,6 +10441,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
10346
10441
  getObjects(pages: string[], questions: string[]): any[];
10347
10442
  setTriggerValue(name: string, value: any, isVariable: boolean): void;
10348
10443
  copyTriggerValue(name: string, fromName: string): void;
10444
+ /**
10445
+ * Focus question by its name. If needed change the current page on the page where question is located.
10446
+ * Function returns false if there is no question with this name or question is invisible, otherwise it returns true.
10447
+ * @param name question name
10448
+ */
10349
10449
  focusQuestion(name: string): boolean;
10350
10450
  getElementWrapperComponentName(element: any, reason?: string): string;
10351
10451
  getRowWrapperComponentName(row: QuestionRowModel): string;
@@ -10563,7 +10663,6 @@ export declare class TextPreProcessorValue {
10563
10663
  }
10564
10664
  export declare class TextPreProcessor {
10565
10665
  onProcess: (textValue: TextPreProcessorValue) => void;
10566
- constructor();
10567
10666
  process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
10568
10667
  processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
10569
10668
  get hasAllValuesOnLastRun(): boolean;
@@ -10576,6 +10675,7 @@ export declare class QuestionTextProcessor implements ITextProcessor {
10576
10675
  protected get panel(): PanelModel;
10577
10676
  protected getValues(): any;
10578
10677
  protected getQuestionByName(name: string): Question;
10678
+ protected getParentTextProcessor(): ITextProcessor;
10579
10679
  protected onCustomProcessText(textValue: TextPreProcessorValue): boolean;
10580
10680
  processText(text: string, returnDisplayValue: boolean): string;
10581
10681
  processTextEx(text: string, returnDisplayValue: boolean): any;
@@ -10693,8 +10793,8 @@ export declare var surveyLocalization: {
10693
10793
  currentLocale: string;
10694
10794
  defaultLocale: string;
10695
10795
  getLocaleStrings(loc: string): any;
10696
- getCurrentStrings(): any;
10697
- getString: (strName: string) => any;
10796
+ getCurrentStrings(locale?: string): any;
10797
+ getString: (strName: string, locale?: string) => any;
10698
10798
  getLocales: (removeDefaultLoc?: boolean) => Array<string>;
10699
10799
  };
10700
10800
  export declare var surveyStrings: {
@@ -11131,7 +11231,7 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
11131
11231
  protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
11132
11232
  protected findDeepestDropTargetChild(parent: HTMLElement): HTMLElement;
11133
11233
  protected afterDragOver(): void;
11134
- protected doStartDrag(): void;
11234
+ protected onStartDrag(): void;
11135
11235
  protected doBanDropHere: () => void;
11136
11236
  protected doDrop: () => any;
11137
11237
  protected doClear: () => void;
@@ -11193,6 +11293,8 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
11193
11293
  constructor(name: string);
11194
11294
  getType(): string;
11195
11295
  get isCompositeQuestion(): boolean;
11296
+ get showColumnHeader(): boolean;
11297
+ set showColumnHeader(val: boolean);
11196
11298
  /**
11197
11299
  * Set this property to false, to hide table header. The default value is true.
11198
11300
  */
@@ -11283,9 +11385,7 @@ export declare class QuestionTextBase extends Question {
11283
11385
  /**
11284
11386
  * Use this property to set the input place holder.
11285
11387
  */
11286
- get placeHolder(): string;
11287
- set placeHolder(val: string);
11288
- get locPlaceHolder(): LocalizableString;
11388
+ placeHolder: string;
11289
11389
  getType(): string;
11290
11390
  isEmpty(): boolean;
11291
11391
  /**
@@ -11332,6 +11432,10 @@ export declare class PopupUtils {
11332
11432
  height: number;
11333
11433
  top: number;
11334
11434
  };
11435
+ static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition): {
11436
+ width: number;
11437
+ left: number;
11438
+ };
11335
11439
  static updateVerticalPosition(targetRect: ClientRect, height: number, verticalPosition: VerticalPosition, showPointer: boolean, windowHeight: number): VerticalPosition;
11336
11440
  static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
11337
11441
  static calculatePointerTarget(targetRect: ClientRect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): INumberPosition;
@@ -11341,6 +11445,7 @@ export declare abstract class DragDropCore<T> extends Base {
11341
11445
  isBottom: boolean;
11342
11446
  onGhostPositionChanged: EventBase<Base>;
11343
11447
  protected ghostPositionChanged(): void;
11448
+ static PreventScrolling: boolean;
11344
11449
  onBeforeDrop: EventBase<DragDropCore<T>>;
11345
11450
  onAfterDrop: EventBase<DragDropCore<T>>;
11346
11451
  draggedElement: any;
@@ -11355,7 +11460,7 @@ export declare abstract class DragDropCore<T> extends Base {
11355
11460
  constructor(surveyValue?: ISurvey, creator?: any);
11356
11461
  startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
11357
11462
  protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
11358
- protected doStartDrag(): void;
11463
+ protected onStartDrag(): void;
11359
11464
  protected getShortcutText(draggedElement: IShortcutText): string;
11360
11465
  protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
11361
11466
  protected getDraggedElementClass(): string;