survey-react 1.8.77 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/survey.react.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*Type definitions for Survey JavaScript library v1.8.77
1
+ /*Type definitions for Survey JavaScript library v1.9.1
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;
@@ -426,7 +425,6 @@ export declare var defaultBootstrapCss: {
426
425
  itemDisabled: string;
427
426
  switch: string;
428
427
  slider: string;
429
- sliderText: string;
430
428
  label: string;
431
429
  disabledLabel: string;
432
430
  materialDecorator: string;
@@ -547,12 +545,15 @@ export declare var defaultBootstrapCss: {
547
545
  progressText: string;
548
546
  panelWrapper: string;
549
547
  panelWrapperInRow: string;
550
- separatorV2: string;
551
548
  footer: string;
549
+ progressBtnIcon: string;
552
550
  };
553
551
  multipletext: {
554
552
  root: string;
555
553
  itemTitle: string;
554
+ item: string;
555
+ itemLabel: string;
556
+ row: string;
556
557
  itemValue: string;
557
558
  };
558
559
  radiogroup: {
@@ -738,7 +739,6 @@ export declare var defaultBootstrapMaterialCss: {
738
739
  itemDisabled: string;
739
740
  switch: string;
740
741
  slider: string;
741
- sliderText: string;
742
742
  label: string;
743
743
  disabledLabel: string;
744
744
  materialDecorator: string;
@@ -865,12 +865,14 @@ export declare var defaultBootstrapMaterialCss: {
865
865
  progressText: string;
866
866
  panelWrapper: string;
867
867
  panelWrapperInRow: string;
868
- separatorV2: string;
868
+ progressBtnIcon: string;
869
869
  footer: string;
870
870
  };
871
871
  multipletext: {
872
872
  root: string;
873
873
  itemTitle: string;
874
+ item: string;
875
+ itemLabel: string;
874
876
  row: string;
875
877
  itemValue: string;
876
878
  };
@@ -992,6 +994,7 @@ export declare var defaultV2Css: {
992
994
  titleOnError: string;
993
995
  description: string;
994
996
  container: string;
997
+ withFrame: string;
995
998
  content: string;
996
999
  icon: string;
997
1000
  iconExpanded: string;
@@ -1015,11 +1018,11 @@ export declare var defaultV2Css: {
1015
1018
  progressBar: string;
1016
1019
  progressText: string;
1017
1020
  separator: string;
1018
- separatorV2: string;
1019
1021
  panelWrapper: string;
1020
1022
  footer: string;
1021
1023
  footerButtonsContainer: string;
1022
1024
  panelWrapperInRow: string;
1025
+ progressBtnIcon: string;
1023
1026
  };
1024
1027
  progress: string;
1025
1028
  progressBar: string;
@@ -1037,6 +1040,7 @@ export declare var defaultV2Css: {
1037
1040
  question: {
1038
1041
  mainRoot: string;
1039
1042
  flowRoot: string;
1043
+ withFrame: string;
1040
1044
  asCell: string;
1041
1045
  answered: string;
1042
1046
  header: string;
@@ -1071,12 +1075,15 @@ export declare var defaultV2Css: {
1071
1075
  root: string;
1072
1076
  icon: string;
1073
1077
  item: string;
1078
+ tooltip: string;
1079
+ aboveQuestion: string;
1074
1080
  locationTop: string;
1075
1081
  locationBottom: string;
1076
1082
  };
1077
1083
  checkbox: {
1078
1084
  root: string;
1079
1085
  item: string;
1086
+ itemOnError: string;
1080
1087
  itemSelectAll: string;
1081
1088
  itemNone: string;
1082
1089
  itemDisabled: string;
@@ -1087,6 +1094,7 @@ export declare var defaultV2Css: {
1087
1094
  labelChecked: string;
1088
1095
  itemControl: string;
1089
1096
  itemDecorator: string;
1097
+ itemSvgIconId: string;
1090
1098
  controlLabel: string;
1091
1099
  materialDecorator: string;
1092
1100
  other: string;
@@ -1095,6 +1103,7 @@ export declare var defaultV2Css: {
1095
1103
  radiogroup: {
1096
1104
  root: string;
1097
1105
  item: string;
1106
+ itemOnError: string;
1098
1107
  itemInline: string;
1099
1108
  label: string;
1100
1109
  labelChecked: string;
@@ -1113,6 +1122,7 @@ export declare var defaultV2Css: {
1113
1122
  mainRoot: string;
1114
1123
  root: string;
1115
1124
  item: string;
1125
+ itemOnError: string;
1116
1126
  control: string;
1117
1127
  itemChecked: string;
1118
1128
  itemIndeterminate: string;
@@ -1133,6 +1143,8 @@ export declare var defaultV2Css: {
1133
1143
  };
1134
1144
  multipletext: {
1135
1145
  root: string;
1146
+ itemLabel: string;
1147
+ itemLabelOnError: string;
1136
1148
  item: string;
1137
1149
  itemTitle: string;
1138
1150
  row: string;
@@ -1160,11 +1172,14 @@ export declare var defaultV2Css: {
1160
1172
  mainRoot: string;
1161
1173
  root: string;
1162
1174
  item: string;
1175
+ itemOnError: string;
1163
1176
  itemInline: string;
1164
1177
  itemChecked: string;
1165
1178
  itemDisabled: string;
1166
1179
  itemHover: string;
1167
1180
  label: string;
1181
+ itemDecorator: string;
1182
+ imageContainer: string;
1168
1183
  itemControl: string;
1169
1184
  image: string;
1170
1185
  itemText: string;
@@ -1179,6 +1194,7 @@ export declare var defaultV2Css: {
1179
1194
  cell: string;
1180
1195
  headerCell: string;
1181
1196
  label: string;
1197
+ itemOnError: string;
1182
1198
  itemValue: string;
1183
1199
  itemChecked: string;
1184
1200
  itemDisabled: string;
@@ -1194,12 +1210,14 @@ export declare var defaultV2Css: {
1194
1210
  root: string;
1195
1211
  cell: string;
1196
1212
  headerCell: string;
1213
+ rowTextCell: string;
1197
1214
  };
1198
1215
  matrixdynamic: {
1199
1216
  mainRoot: string;
1200
1217
  root: string;
1201
1218
  cell: string;
1202
1219
  headerCell: string;
1220
+ rowTextCell: string;
1203
1221
  button: string;
1204
1222
  detailRow: string;
1205
1223
  detailButton: string;
@@ -1212,10 +1230,12 @@ export declare var defaultV2Css: {
1212
1230
  buttonRemove: string;
1213
1231
  iconAdd: string;
1214
1232
  iconRemove: string;
1233
+ footer: string;
1215
1234
  };
1216
1235
  rating: {
1217
1236
  root: string;
1218
1237
  item: string;
1238
+ itemOnError: string;
1219
1239
  itemHover: string;
1220
1240
  selected: string;
1221
1241
  minText: string;
@@ -1227,6 +1247,7 @@ export declare var defaultV2Css: {
1227
1247
  root: string;
1228
1248
  small: string;
1229
1249
  controlDisabled: string;
1250
+ onError: string;
1230
1251
  };
1231
1252
  expression: string;
1232
1253
  file: {
@@ -1238,6 +1259,7 @@ export declare var defaultV2Css: {
1238
1259
  fileList: string;
1239
1260
  fileSignBottom: string;
1240
1261
  fileDecorator: string;
1262
+ onError: string;
1241
1263
  fileDecoratorDrag: string;
1242
1264
  fileInput: string;
1243
1265
  noFileChosen: string;
@@ -1277,12 +1299,29 @@ export declare var defaultV2Css: {
1277
1299
  buttonCollapsed: string;
1278
1300
  };
1279
1301
  };
1302
+ ranking: {
1303
+ root: string;
1304
+ rootMobileMod: string;
1305
+ rootDragMod: string;
1306
+ item: string;
1307
+ itemContent: string;
1308
+ itemIndex: string;
1309
+ controlLabel: string;
1310
+ itemGhostNode: string;
1311
+ itemIconContainer: string;
1312
+ itemIcon: string;
1313
+ itemIconHoverMod: string;
1314
+ itemIconFocusMod: string;
1315
+ itemGhostMod: string;
1316
+ itemDragMod: string;
1317
+ };
1280
1318
  };
1281
1319
 
1282
1320
  export declare var modernCss: {
1283
1321
  root: string;
1284
1322
  container: string;
1285
1323
  header: string;
1324
+ headerClose: string;
1286
1325
  body: string;
1287
1326
  bodyEmpty: string;
1288
1327
  footer: string;
@@ -1333,7 +1372,7 @@ export declare var modernCss: {
1333
1372
  separator: string;
1334
1373
  panelWrapper: string;
1335
1374
  panelWrapperInRow: string;
1336
- separatorV2: string;
1375
+ progressBtnIcon: string;
1337
1376
  footer: string;
1338
1377
  };
1339
1378
  progress: string;
@@ -1415,6 +1454,7 @@ export declare var modernCss: {
1415
1454
  labelChecked: string;
1416
1455
  itemControl: string;
1417
1456
  itemDecorator: string;
1457
+ itemSvgIconId: string;
1418
1458
  controlLabel: string;
1419
1459
  materialDecorator: string;
1420
1460
  other: string;
@@ -1447,6 +1487,7 @@ export declare var modernCss: {
1447
1487
  itemHover: string;
1448
1488
  itemControl: string;
1449
1489
  itemDecorator: string;
1490
+ itemSvgIconId: string;
1450
1491
  controlLabel: string;
1451
1492
  materialDecorator: string;
1452
1493
  other: string;
@@ -1474,7 +1515,6 @@ export declare var modernCss: {
1474
1515
  itemDisabled: string;
1475
1516
  switch: string;
1476
1517
  slider: string;
1477
- sliderText: string;
1478
1518
  label: string;
1479
1519
  disabledLabel: string;
1480
1520
  materialDecorator: string;
@@ -1491,6 +1531,7 @@ export declare var modernCss: {
1491
1531
  multipletext: {
1492
1532
  root: string;
1493
1533
  item: string;
1534
+ itemLabel: string;
1494
1535
  itemTitle: string;
1495
1536
  row: string;
1496
1537
  cell: string;
@@ -1639,6 +1680,8 @@ export declare var modernCss: {
1639
1680
  };
1640
1681
  };
1641
1682
 
1683
+ export declare var SvgBundleViewModel: any;
1684
+
1642
1685
  export declare class RendererFactory {
1643
1686
  static Instance: RendererFactory;
1644
1687
  unregisterRenderer(questionType: string, rendererAs: string): void;
@@ -1655,6 +1698,7 @@ interface IDimensions {
1655
1698
  export declare class ResponsivityManager {
1656
1699
  protected container: HTMLDivElement;
1657
1700
  protected minDimensionConst: number;
1701
+ protected recalcMinDimensionConst: boolean;
1658
1702
  getComputedStyle: (elt: Element) => CSSStyleDeclaration;
1659
1703
  constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number);
1660
1704
  protected getDimensions(element: HTMLElement): IDimensions;
@@ -1680,7 +1724,7 @@ declare function isElementVisible(element: HTMLElement, threshold?: number): boo
1680
1724
  declare function findScrollableParent(element: HTMLElement): HTMLElement;
1681
1725
  declare function scrollElementByChildId(id: string): void;
1682
1726
  declare function getIconNameFromProxy(iconName: string): string;
1683
- declare function createSvg(size: number, width: number, height: number, iconName: string, svgElem: any): void;
1727
+ declare function createSvg(size: number | string, width: number, height: number, iconName: string, svgElem: any): void;
1684
1728
  export declare function unwrap<T>(value: T | (() => T)): T;
1685
1729
  export declare function getSize(value: any): any;
1686
1730
  declare function doKey2ClickUp(evt: KeyboardEvent, options?: {
@@ -1744,6 +1788,7 @@ export interface IAction {
1744
1788
  * Set this property to true to activate the toolbar item (page)
1745
1789
  */
1746
1790
  active?: boolean;
1791
+ pressed?: boolean;
1747
1792
  /**
1748
1793
  * Toolbar item template name
1749
1794
  */
@@ -1777,6 +1822,10 @@ export interface IAction {
1777
1822
  * Set it to true to make the tabIndex -1 to disable keyboard navigation to this item
1778
1823
  */
1779
1824
  disableTabStop?: boolean;
1825
+ /**
1826
+ * Set it to false to force action "large" mode even if has icon and does not fit to action bar space
1827
+ */
1828
+ disableShrink?: boolean;
1780
1829
  /**
1781
1830
  * Action button display mode
1782
1831
  */
@@ -1803,12 +1852,14 @@ export declare class Action extends Base implements IAction {
1803
1852
  popupModel: any;
1804
1853
  needSeparator: boolean;
1805
1854
  active: boolean;
1855
+ pressed: boolean;
1806
1856
  template: string;
1807
1857
  component: string;
1808
1858
  items: any;
1809
1859
  visibleIndex: number;
1810
1860
  mode: "large" | "small" | "popup";
1811
1861
  disableTabStop: boolean;
1862
+ disableShrink: boolean;
1812
1863
  get disabled(): boolean;
1813
1864
  get hasTitle(): boolean;
1814
1865
  get isVisible(): boolean;
@@ -1853,6 +1904,12 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
1853
1904
  resetResponsivityManager(): void;
1854
1905
  }
1855
1906
 
1907
+ export declare class TooltipManager {
1908
+ tooltipElement: HTMLElement;
1909
+ constructor(tooltipElement: HTMLElement);
1910
+ dispose(): void;
1911
+ }
1912
+
1856
1913
  export declare class Survey extends SurveyElementBase<any, any> implements ISurveyCreator {
1857
1914
  static get cssType(): string;
1858
1915
  static set cssType(value: string);
@@ -2019,26 +2076,35 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
2019
2076
  protected get element(): SurveyElement;
2020
2077
  protected get location(): string;
2021
2078
  protected canRender(): boolean;
2079
+ componentDidUpdate(prevProps: any, prevState: any): void;
2080
+ componentWillUnmount(): void;
2022
2081
  protected renderElement(): JSX.Element;
2023
2082
  }
2024
- export declare class SurveyQuestionAndErrorsCell extends ReactSurveyElement {
2083
+ export declare abstract class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
2025
2084
  [index: string]: any;
2026
- protected cellRef: React.RefObject<HTMLTableCellElement>;
2027
2085
  constructor(props: any);
2028
2086
  protected getStateElement(): Base;
2029
- protected get itemCss(): string;
2030
2087
  protected get question(): Question;
2031
2088
  protected get creator(): ISurveyCreator;
2032
2089
  protected getQuestion(): Question;
2090
+ protected get itemCss(): string;
2033
2091
  componentDidMount(): void;
2034
- componentWillUnmount(): void;
2035
2092
  componentDidUpdate(prevProps: any, prevState: any): void;
2036
2093
  protected doAfterRender(): void;
2037
2094
  protected canRender(): boolean;
2038
- protected renderElement(): JSX.Element;
2095
+ protected renderErrors(errorsLocation: string): JSX.Element;
2096
+ protected renderContent(): JSX.Element;
2097
+ protected abstract renderElement(): JSX.Element;
2039
2098
  protected getShowErrors(): boolean;
2040
- protected getCellStyle(): any;
2041
2099
  protected renderQuestion(): JSX.Element;
2100
+ }
2101
+ export declare class SurveyQuestionAndErrorsCell extends SurveyQuestionAndErrorsWrapped {
2102
+ [index: string]: any;
2103
+ protected cellRef: React.RefObject<HTMLTableCellElement>;
2104
+ constructor(props: any);
2105
+ componentWillUnmount(): void;
2106
+ protected renderElement(): JSX.Element;
2107
+ protected getCellStyle(): any;
2042
2108
  protected getHeaderText(): string;
2043
2109
  protected wrapCell(cell: QuestionMatrixDropdownRenderedCell, element: JSX.Element): JSX.Element;
2044
2110
  }
@@ -2196,8 +2262,12 @@ export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBas
2196
2262
  constructor(props: any);
2197
2263
  protected get question(): QuestionMultipleTextModel;
2198
2264
  protected renderElement(): JSX.Element;
2265
+ protected renderItemTooltipError(item: MultipleTextItemModel, cssClasses: any): JSX.Element;
2199
2266
  protected renderRow(rowIndex: number, items: Array<MultipleTextItemModel>, cssClasses: any): JSX.Element;
2200
2267
  }
2268
+ export declare class SurveyMultipleTextItemEditor extends SurveyQuestionAndErrorsWrapped {
2269
+ protected renderElement(): JSX.Element;
2270
+ }
2201
2271
 
2202
2272
  export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
2203
2273
  constructor(props: any);
@@ -2224,6 +2294,7 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
2224
2294
 
2225
2295
  export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
2226
2296
  constructor(props: any);
2297
+ protected renderInput(): JSX.Element;
2227
2298
  protected renderElement(): JSX.Element;
2228
2299
  }
2229
2300
 
@@ -2300,8 +2371,8 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
2300
2371
  handleOnRangeChange(event: any): void;
2301
2372
  protected renderElement(): JSX.Element;
2302
2373
  protected renderNavigator(): JSX.Element;
2303
- protected rendrerPrevButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
2304
- protected rendrerNextButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
2374
+ protected rendrerPrevButton(): JSX.Element;
2375
+ protected rendrerNextButton(): JSX.Element;
2305
2376
  protected renderRange(): JSX.Element;
2306
2377
  protected renderAddRowButton(): JSX.Element;
2307
2378
  protected renderNavigatorV2(): JSX.Element;
@@ -2466,10 +2537,12 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
2466
2537
  renderPointer(): JSX.Element;
2467
2538
  renderHeader(): JSX.Element;
2468
2539
  renderContent(): JSX.Element;
2540
+ renderCancelButton(): JSX.Element;
2541
+ renderApplyButton(): JSX.Element;
2469
2542
  renderFooter(): JSX.Element;
2470
2543
  render(): JSX.Element;
2471
2544
  }
2472
- export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string): void;
2545
+ export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
2473
2546
  export {};
2474
2547
 
2475
2548
  interface IListProps {
@@ -2756,7 +2829,7 @@ export declare var settings: {
2756
2829
  * Set the value as string "yyyy-mm-dd". text questions with inputType "date" will not allow to set to survey date that greater than this value
2757
2830
  */
2758
2831
  maxDate: string;
2759
- showModal: (componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string) => void;
2832
+ showModal: (componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay") => void;
2760
2833
  supportCreatorV2: boolean;
2761
2834
  /**
2762
2835
  * Specifies a list of custom icons.
@@ -3148,6 +3221,7 @@ export declare class Base {
3148
3221
  * @param val new property value
3149
3222
  */
3150
3223
  setPropertyValue(name: string, val: any): void;
3224
+ protected setArrayPropertyDirectly(name: string, val: any, sendNotification?: boolean): void;
3151
3225
  protected setPropertyValueDirectly(name: string, val: any): void;
3152
3226
  protected clearPropertyValue(name: string): void;
3153
3227
  onPropertyValueChangedCallback(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void;
@@ -3182,7 +3256,7 @@ export declare class Base {
3182
3256
  */
3183
3257
  unRegisterFunctionOnPropertiesValueChanged(names: Array<string>, key?: string): void;
3184
3258
  createCustomLocalizableObj(name: string): void;
3185
- protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, hasDefaultValue?: boolean): LocalizableString;
3259
+ protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, defaultStr?: boolean | string): LocalizableString;
3186
3260
  getLocalizableString(name: string): LocalizableString;
3187
3261
  getLocalizableStringText(name: string, defaultStr?: string): string;
3188
3262
  setLocalizableStringText(name: string, value: string): void;
@@ -3282,6 +3356,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
3282
3356
  requiredText: string;
3283
3357
  beforeSettingQuestionErrors(question: IQuestion, errors: Array<SurveyError>): void;
3284
3358
  beforeSettingPanelErrors(question: IPanel, errors: Array<SurveyError>): void;
3359
+ getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
3285
3360
  getElementTitleTagName(element: Base, tagName: string): string;
3286
3361
  questionTitlePattern: string;
3287
3362
  getUpdatedQuestionTitle(question: IQuestion, title: string): string;
@@ -3513,6 +3588,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3513
3588
  stateChangedCallback: () => void;
3514
3589
  static getProgressInfoByElements(children: Array<SurveyElement>, isRequired: boolean): IProgressInfo;
3515
3590
  dragTypeOverMe: DragTypeOverMeEnum;
3591
+ isDragMe: boolean;
3516
3592
  readOnlyChangedCallback: () => void;
3517
3593
  static ScrollElementToTop(elementId: string): boolean;
3518
3594
  static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
@@ -3675,6 +3751,10 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3675
3751
  protected moveToBase(parent: IPanel, container: IPanel, insertBefore?: any): boolean;
3676
3752
  protected setPage(parent: IPanel, newPage: IPage): void;
3677
3753
  protected getSearchableLocKeys(keys: Array<string>): void;
3754
+ protected get isDefaultV2Theme(): boolean;
3755
+ get isErrorsModeTooltip(): boolean;
3756
+ get hasParent(): boolean;
3757
+ protected get hasFrameV2(): boolean;
3678
3758
  }
3679
3759
 
3680
3760
  /**
@@ -4409,6 +4489,7 @@ export interface IMatrixDropdownData {
4409
4489
  getRenderer(name: string): string;
4410
4490
  getRendererContext(locStr: LocalizableString): any;
4411
4491
  getProcessedText(text: string): string;
4492
+ getParentTextProcessor(): ITextProcessor;
4412
4493
  getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
4413
4494
  onTotalValueChanged(): any;
4414
4495
  getSurvey(): ISurvey;
@@ -4725,6 +4806,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
4725
4806
  createRowDetailPanel(row: MatrixDropdownRowModelBase): PanelModel;
4726
4807
  getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
4727
4808
  onTotalValueChanged(): any;
4809
+ getParentTextProcessor(): ITextProcessor;
4728
4810
  getQuestionFromArray(name: string, index: number): IQuestion;
4729
4811
  getCellTemplateData(cell: QuestionMatrixDropdownRenderedCell): any;
4730
4812
  getCellWrapperComponentName(cell: MatrixDropdownCell): string;
@@ -5463,6 +5545,7 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
5463
5545
  get elements(): Array<IElement>;
5464
5546
  indexOf(el: IElement): number;
5465
5547
  ensureRowsVisibility(): void;
5548
+ getItemLabelCss(item: MultipleTextItemModel): string;
5466
5549
  getItemCss(): string;
5467
5550
  getItemTitleCss(): string;
5468
5551
  }
@@ -5512,6 +5595,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5512
5595
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5513
5596
  endLoadingFromJson(): void;
5514
5597
  get hasTitle(): boolean;
5598
+ get hasDescription(): boolean;
5515
5599
  protected canShowTitle(): boolean;
5516
5600
  get _showDescription(): boolean;
5517
5601
  localeChanged(): void;
@@ -5683,6 +5767,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5683
5767
  protected createRow(): QuestionRowModel;
5684
5768
  onSurveyLoad(): void;
5685
5769
  onFirstRendering(): void;
5770
+ updateRows(): void;
5686
5771
  get rows(): Array<QuestionRowModel>;
5687
5772
  ensureRowsVisibility(): void;
5688
5773
  protected onRowsChanged(): void;
@@ -5795,8 +5880,6 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5795
5880
  * It may contain questions and other panels.
5796
5881
  */
5797
5882
  export declare class PanelModel extends PanelModelBase implements IElement {
5798
- minWidth?: string;
5799
- maxWidth?: string;
5800
5883
  constructor(name?: string);
5801
5884
  getType(): string;
5802
5885
  get contentId(): string;
@@ -5868,6 +5951,16 @@ export declare class PanelModel extends PanelModelBase implements IElement {
5868
5951
  */
5869
5952
  get width(): string;
5870
5953
  set width(val: string);
5954
+ /**
5955
+ * Use it to set the specific minWidth constraint to the panel like css style (%, px, em etc).
5956
+ */
5957
+ get minWidth(): string;
5958
+ set minWidth(val: string);
5959
+ /**
5960
+ * Use it to set the specific maxWidth constraint to the panel like css style (%, px, em etc).
5961
+ */
5962
+ get maxWidth(): string;
5963
+ set maxWidth(val: string);
5871
5964
  /**
5872
5965
  * The left indent. Set this property to increase the panel left indent.
5873
5966
  */
@@ -5912,6 +6005,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
5912
6005
  protected onVisibleChanged(): void;
5913
6006
  needResponsiveWidth(): boolean;
5914
6007
  focusIn: () => void;
6008
+ getContainerCss(): string;
5915
6009
  }
5916
6010
 
5917
6011
  /**
@@ -6096,9 +6190,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6096
6190
  /**
6097
6191
  * A11Y properties
6098
6192
  */
6099
- get ariaRequired(): boolean;
6193
+ get ariaRequired(): "true" | "false";
6100
6194
  get ariaLabel(): string;
6101
- get ariaInvalid(): boolean;
6195
+ get ariaInvalid(): "true" | "false";
6102
6196
  get ariaDescribedBy(): string;
6103
6197
  /**
6104
6198
  * Get is question ready to use
@@ -6325,6 +6419,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6325
6419
  */
6326
6420
  get renderWidth(): string;
6327
6421
  set renderWidth(val: string);
6422
+ get renderCssRoot(): string;
6328
6423
  /**
6329
6424
  * Set it different from 0 to increase the left padding.
6330
6425
  */
@@ -6391,6 +6486,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6391
6486
  */
6392
6487
  get isReadOnly(): boolean;
6393
6488
  get isInputReadOnly(): boolean;
6489
+ get renderedInputReadOnly(): string;
6490
+ get renderedInputDisabled(): string;
6394
6491
  protected onReadOnlyChanged(): void;
6395
6492
  /**
6396
6493
  * 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.
@@ -6437,6 +6534,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6437
6534
  createValueCopy(): any;
6438
6535
  protected getUnbindValue(value: any): any;
6439
6536
  protected isValueSurveyElement(val: any): boolean;
6537
+ /**
6538
+ * Return true if there is a parent (page or panel) and it is visible
6539
+ */
6540
+ get isParentVisible(): boolean;
6440
6541
  clearValueIfInvisible(): void;
6441
6542
  get displayValue(): any;
6442
6543
  /**
@@ -6455,6 +6556,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6455
6556
  set defaultValue(val: any);
6456
6557
  get defaultValueExpression(): any;
6457
6558
  set defaultValueExpression(val: any);
6559
+ get resizeStyle(): "none" | "both";
6458
6560
  /**
6459
6561
  * Returns question answer data as a plain object: with question title, name, value and displayValue.
6460
6562
  * For complex questions (like matrix, etc.) isNode flag is set to true and data contains array of nested objects (rows)
@@ -6767,9 +6869,7 @@ export declare class QuestionSelectBase extends Question {
6767
6869
  /**
6768
6870
  * Use this property to set the place holder text for other or comment field .
6769
6871
  */
6770
- get otherPlaceHolder(): string;
6771
- set otherPlaceHolder(val: string);
6772
- get locOtherPlaceHolder(): LocalizableString;
6872
+ otherPlaceHolder: string;
6773
6873
  /**
6774
6874
  * The text that shows when the other item is choosed by the other input is empty.
6775
6875
  */
@@ -6858,6 +6958,13 @@ export declare class QuestionSelectBase extends Question {
6858
6958
  choicesLoaded(): void;
6859
6959
  getItemValueWrapperComponentName(item: ItemValue): string;
6860
6960
  getItemValueWrapperComponentData(item: ItemValue): any;
6961
+ ariaItemChecked(item: ItemValue): "true" | "false";
6962
+ isOtherItem(item: ItemValue): boolean;
6963
+ get itemSvgIcon(): string;
6964
+ ariaItemLabel(item: ItemValue): string;
6965
+ getItemId(item: ItemValue): string;
6966
+ get questionName(): string;
6967
+ getItemEnabled(item: ItemValue): any;
6861
6968
  }
6862
6969
  /**
6863
6970
  * A base class for checkbox and radiogroup questions. It introduced a colCount property.
@@ -6873,8 +6980,6 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
6873
6980
  protected onParentChanged(): void;
6874
6981
  protected onParentQuestionChanged(): void;
6875
6982
  protected getSearchableItemValueKeys(keys: Array<string>): void;
6876
- getItemEnabled(item: ItemValue): any;
6877
- isOtherItem(item: ItemValue): boolean;
6878
6983
  }
6879
6984
 
6880
6985
  /**
@@ -6935,6 +7040,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
6935
7040
  protected onEnableItemCallBack(item: ItemValue): boolean;
6936
7041
  protected onAfterRunItemsEnableCondition(): void;
6937
7042
  protected getItemClassCore(item: any, options: any): string;
7043
+ updateValueFromSurvey(newValue: any): void;
6938
7044
  protected setNewValue(newValue: any): void;
6939
7045
  protected getIsMultipleValue(): boolean;
6940
7046
  protected getCommentFromValue(newValue: any): string;
@@ -6958,7 +7064,6 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
6958
7064
  protected renderedValueFromDataCore(val: any): any;
6959
7065
  protected rendredValueToDataCore(val: any): any;
6960
7066
  get checkBoxSvgPath(): string;
6961
- getItemId(item: ItemValue): string;
6962
7067
  }
6963
7068
 
6964
7069
  /**
@@ -7028,6 +7133,7 @@ export declare class QuestionCommentModel extends QuestionTextBase {
7028
7133
  onKeyDown(event: any): void;
7029
7134
  onValueChanged(): void;
7030
7135
  protected setNewValue(newValue: string): any;
7136
+ get className(): string;
7031
7137
  }
7032
7138
 
7033
7139
  /**
@@ -7078,6 +7184,7 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
7078
7184
  get autoComplete(): string;
7079
7185
  set autoComplete(val: string);
7080
7186
  getControlClass(): string;
7187
+ get readOnlyText(): any;
7081
7188
  }
7082
7189
 
7083
7190
  export declare class QuestionFactory {
@@ -7272,6 +7379,7 @@ export declare class QuestionHtmlModel extends QuestionNonValue {
7272
7379
  export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
7273
7380
  constructor(name: string);
7274
7381
  getType(): string;
7382
+ get ariaRole(): string;
7275
7383
  protected getFirstInputElementId(): string;
7276
7384
  /**
7277
7385
  * Return the selected item in the radio group. Returns null if the value is empty
@@ -7285,7 +7393,6 @@ export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
7285
7393
  get canShowClearButton(): boolean;
7286
7394
  get clearButtonCaption(): any;
7287
7395
  supportGoNextPageAutomatic(): boolean;
7288
- get ariaRole(): string;
7289
7396
  }
7290
7397
 
7291
7398
  /**
@@ -7393,6 +7500,7 @@ export declare class QuestionExpressionModel extends Question {
7393
7500
  get formatedValue(): string;
7394
7501
  protected updateFormatedValue(): void;
7395
7502
  protected onValueChanged(): void;
7503
+ updateValueFromSurvey(newValue: any): void;
7396
7504
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
7397
7505
  /**
7398
7506
  * 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.
@@ -7438,6 +7546,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
7438
7546
  set size(val: number);
7439
7547
  get isTextInput(): boolean;
7440
7548
  get inputSize(): number;
7549
+ get renderedInputSize(): number;
7441
7550
  get inputWidth(): string;
7442
7551
  updateInputSize(): void;
7443
7552
  /**
@@ -7555,6 +7664,7 @@ export declare class QuestionBooleanModel extends Question {
7555
7664
  get labelTrue(): any;
7556
7665
  set labelTrue(val: any);
7557
7666
  get locLabelTrue(): LocalizableString;
7667
+ get isDeterminated(): boolean;
7558
7668
  /**
7559
7669
  * Set this property, if you want to have a different label for state when check is unset.
7560
7670
  */
@@ -7578,6 +7688,7 @@ export declare class QuestionBooleanModel extends Question {
7578
7688
  getItemCss(): string;
7579
7689
  getLabelCss(checked: boolean): string;
7580
7690
  get allowClick(): boolean;
7691
+ getCheckedLabel(): LocalizableString;
7581
7692
  onLabelClick(event: any, value: boolean): boolean;
7582
7693
  onSwitchClickModel(event: any): boolean;
7583
7694
  }
@@ -7635,11 +7746,13 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
7635
7746
  */
7636
7747
  get imageHeight(): string;
7637
7748
  set imageHeight(val: string);
7749
+ get renderedImageHeight(): string;
7638
7750
  /**
7639
7751
  * The image width.
7640
7752
  */
7641
7753
  get imageWidth(): string;
7642
7754
  set imageWidth(val: string);
7755
+ get renderedImageWidth(): string;
7643
7756
  /**
7644
7757
  * The image fit mode.
7645
7758
  */
@@ -7652,6 +7765,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
7652
7765
  set contentMode(val: string);
7653
7766
  protected convertDefaultValue(val: any): any;
7654
7767
  get hasColumns(): boolean;
7768
+ get inputType(): "checkbox" | "radio";
7655
7769
  }
7656
7770
 
7657
7771
  /**
@@ -8429,6 +8543,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
8429
8543
  * <br/> `sender` - the survey object that fires the event.
8430
8544
  * <br/> `options.text` - an error text.
8431
8545
  * <br/> `options.error` - an instance of the `SurveyError` object.
8546
+ * <br/> `options.obj` - an instance of Question, Panel or Survey object to where error is located.
8432
8547
  * <br/> `options.name` - the error name. The following error names are available:
8433
8548
  * required, requireoneanswer, requirenumeric, exceedsize, webrequest, webrequestempty, otherempty,
8434
8549
  * uploadingfile, requiredinallrowserror, minrowcounterror, keyduplicationerror, custom
@@ -9237,6 +9352,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
9237
9352
  getProcessedText(text: string): string;
9238
9353
  getLocString(str: string): any;
9239
9354
  getErrorCustomText(text: string, error: SurveyError): string;
9355
+ getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
9240
9356
  /**
9241
9357
  * Returns the text that is displayed when there are no any visible pages and questiona.
9242
9358
  */
@@ -9603,7 +9719,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
9603
9719
  * Sets the input focus to the first question with the input field.
9604
9720
  */
9605
9721
  focusFirstQuestion(): void;
9606
- scrollToTopOnPageChange(): void;
9722
+ scrollToTopOnPageChange(doScroll?: boolean): void;
9607
9723
  /**
9608
9724
  * Returns the current survey state:
9609
9725
  *
@@ -10304,6 +10420,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
10304
10420
  getObjects(pages: string[], questions: string[]): any[];
10305
10421
  setTriggerValue(name: string, value: any, isVariable: boolean): void;
10306
10422
  copyTriggerValue(name: string, fromName: string): void;
10423
+ /**
10424
+ * Focus question by its name. If needed change the current page on the page where question is located.
10425
+ * Function returns false if there is no question with this name or question is invisible, otherwise it returns true.
10426
+ * @param name question name
10427
+ */
10307
10428
  focusQuestion(name: string): boolean;
10308
10429
  getElementWrapperComponentName(element: any, reason?: string): string;
10309
10430
  getRowWrapperComponentName(row: QuestionRowModel): string;
@@ -10521,7 +10642,6 @@ export declare class TextPreProcessorValue {
10521
10642
  }
10522
10643
  export declare class TextPreProcessor {
10523
10644
  onProcess: (textValue: TextPreProcessorValue) => void;
10524
- constructor();
10525
10645
  process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
10526
10646
  processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
10527
10647
  get hasAllValuesOnLastRun(): boolean;
@@ -10534,6 +10654,7 @@ export declare class QuestionTextProcessor implements ITextProcessor {
10534
10654
  protected get panel(): PanelModel;
10535
10655
  protected getValues(): any;
10536
10656
  protected getQuestionByName(name: string): Question;
10657
+ protected getParentTextProcessor(): ITextProcessor;
10537
10658
  protected onCustomProcessText(textValue: TextPreProcessorValue): boolean;
10538
10659
  processText(text: string, returnDisplayValue: boolean): string;
10539
10660
  processTextEx(text: string, returnDisplayValue: boolean): any;
@@ -10967,13 +11088,14 @@ export declare class PopupModel<T = any> extends Base {
10967
11088
  onShow: () => void;
10968
11089
  cssClass: string;
10969
11090
  title: string;
11091
+ displayMode: "popup" | "overlay";
10970
11092
  constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: VerticalPosition, horizontalPosition?: HorizontalPosition, showPointer?: boolean, isModal?: boolean, onCancel?: () => void, onApply?: () => boolean, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string);
10971
11093
  get isVisible(): boolean;
10972
11094
  set isVisible(value: boolean);
10973
11095
  toggleVisibility(): void;
10974
11096
  onVisibilityChanged: (isVisible: boolean) => void;
10975
11097
  }
10976
- export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string): PopupBaseViewModel;
11098
+ export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
10977
11099
  export declare class PopupBaseViewModel extends Base {
10978
11100
  targetElement?: HTMLElement;
10979
11101
  top: string;
@@ -10991,6 +11113,8 @@ export declare class PopupBaseViewModel extends Base {
10991
11113
  get contentComponentData(): any;
10992
11114
  get showPointer(): boolean;
10993
11115
  get isModal(): boolean;
11116
+ get showFooter(): boolean;
11117
+ get isOverlay(): boolean;
10994
11118
  get styleClass(): string;
10995
11119
  onKeyDown(event: any): void;
10996
11120
  updateOnShowing(): void;
@@ -11073,7 +11197,12 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
11073
11197
  protected prevIsEdge: any;
11074
11198
  protected ghostSurveyElement: IElement;
11075
11199
  protected get draggedElementType(): string;
11200
+ protected isDraggedElementSelected: boolean;
11076
11201
  startDragToolboxItem(event: PointerEvent, draggedElementJson: JsonObject): void;
11202
+ startDragSurveyElement(event: PointerEvent, draggedElement: any, isElementSelected?: boolean): void;
11203
+ protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
11204
+ protected createDraggedElementIcon(): HTMLElement;
11205
+ protected getDraggedElementClass(): string;
11077
11206
  protected createElementFromJson(json: object): HTMLElement;
11078
11207
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: HTMLElement, event: PointerEvent): any;
11079
11208
  protected isDropTargetValid(dropTarget: SurveyElement): boolean;
@@ -11205,12 +11334,14 @@ export declare class DragDropRankingChoices extends DragDropChoices {
11205
11334
  protected get draggedElementType(): string;
11206
11335
  protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
11207
11336
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
11337
+ protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
11208
11338
  protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
11209
11339
  protected calculateIsBottom(clientY: number): boolean;
11340
+ protected doDragOver: () => any;
11210
11341
  protected afterDragOver(dropTargetNode: HTMLElement): void;
11211
11342
  protected ghostPositionChanged(): void;
11343
+ protected doBanDropHere: () => any;
11212
11344
  protected doDrop: () => any;
11213
- protected handleEscapeButton: (event: KeyboardEvent) => void;
11214
11345
  protected doClear: () => void;
11215
11346
  }
11216
11347
 
@@ -11280,6 +11411,10 @@ export declare class PopupUtils {
11280
11411
  height: number;
11281
11412
  top: number;
11282
11413
  };
11414
+ static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition): {
11415
+ width: number;
11416
+ left: number;
11417
+ };
11283
11418
  static updateVerticalPosition(targetRect: ClientRect, height: number, verticalPosition: VerticalPosition, showPointer: boolean, windowHeight: number): VerticalPosition;
11284
11419
  static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
11285
11420
  static calculatePointerTarget(targetRect: ClientRect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): INumberPosition;
@@ -11299,12 +11434,14 @@ export declare abstract class DragDropCore<T> extends Base {
11299
11434
  protected get survey(): SurveyModel;
11300
11435
  prevDropTarget: any;
11301
11436
  protected draggedElementShortcut: any;
11437
+ protected allowDropHere: boolean;
11302
11438
  constructor(surveyValue?: ISurvey, creator?: any);
11303
11439
  startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
11304
11440
  protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
11305
11441
  protected doStartDrag(): void;
11306
11442
  protected getShortcutText(draggedElement: IShortcutText): string;
11307
11443
  protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
11444
+ protected getDraggedElementClass(): string;
11308
11445
  protected doDragOver(dropTargetNode?: HTMLElement): void;
11309
11446
  protected afterDragOver(dropTargetNode?: HTMLElement): void;
11310
11447
  getGhostPosition(item: any): string;