survey-react 1.9.44 → 1.9.47

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,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library for React v1.9.44
2
+ * Type definition for Survey JavaScript library for React v1.9.47
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -92,6 +92,10 @@ export interface IExpresionExecutor {
92
92
  */
93
93
  onComplete: (res: any) => void;
94
94
  }
95
+ export interface IAttachKey2clickOptions {
96
+ processEsc?: boolean;
97
+ disableTabStop?: boolean;
98
+ }
95
99
  export interface IListModel {
96
100
  items: any;
97
101
  onSelectionChanged: (item: Action, ...params: any) => void;
@@ -232,10 +236,6 @@ export interface IAction {
232
236
  }
233
237
  export interface IActionDropdownPopupOptions extends IListModel, IPopupOptionsBase {
234
238
  }
235
- export interface IAttachKey2clickOptions {
236
- processEsc?: boolean;
237
- disableTabStop?: boolean;
238
- }
239
239
  export interface IDimensions {
240
240
  scroll: number;
241
241
  offset: number;
@@ -399,8 +399,9 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
399
399
  isValidateOnValueChanging: boolean;
400
400
  isValidateOnValueChanged: boolean;
401
401
  matrixCellValidate(question: IQuestion, options: any): SurveyError;
402
- dynamicPanelAdded(question: IQuestion, panelIndex?: number, panel?: IPanel): any;
403
- dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): any;
402
+ dynamicPanelAdded(question: IQuestion, panelIndex?: number, panel?: IPanel): void;
403
+ dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): void;
404
+ dynamicPanelRemoving(question: IQuestion, panelIndex: number, panel: IPanel): boolean;
404
405
  dynamicPanelItemValueChanged(question: IQuestion, options: any): any;
405
406
  dragAndDropAllow(options: any): boolean;
406
407
  scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string): any;
@@ -609,7 +610,7 @@ export interface ICustomQuestionTypeConfiguration {
609
610
  */
610
611
  onCreated(question: Question): void;
611
612
  /*
612
- * A function that is called when JSON definitions are loaded.
613
+ * A function that is called when JSON schemas are loaded.
613
614
  *
614
615
  * Parameters:
615
616
  *
@@ -672,7 +673,7 @@ export interface ICustomQuestionTypeConfiguration {
672
673
  */
673
674
  getDisplayValue?: any;
674
675
  /*
675
- * JSON definitions of nested questions. Specify this property to create a [composite question type](https://surveyjs.io/Documentation/Survey-Creator?id=create-composite-question-types).
676
+ * JSON schemas of nested questions. Specify this property to create a [composite question type](https://surveyjs.io/Documentation/Survey-Creator?id=create-composite-question-types).
676
677
  */
677
678
  elementsJSON?: any;
678
679
  /*
@@ -680,7 +681,7 @@ export interface ICustomQuestionTypeConfiguration {
680
681
  */
681
682
  createElements?: any;
682
683
  /*
683
- * A JSON definition for a built-in question type on which the custom question type is based.
684
+ * A JSON schema for a built-in question type on which the custom question type is based.
684
685
  *
685
686
  * Refer to the [Create Specialized Question Types](https://surveyjs.io/Documentation/Survey-Creator?id=create-specialized-question-types) help topic for more information.
686
687
  */
@@ -792,28 +793,7 @@ export declare class Base {
792
793
  protected addEvent<T>(): EventBase<T>;
793
794
  protected onBaseCreating(): void;
794
795
  /*
795
- * Returns the question type.
796
- * Possible values:
797
- * - [*"boolean"*](https://surveyjs.io/Documentation/Library?id=questionbooleanmodel)
798
- * - [*"checkbox"*](https://surveyjs.io/Documentation/Library?id=questioncheckboxmodel)
799
- * - [*"comment"*](https://surveyjs.io/Documentation/Library?id=questioncommentmodel)
800
- * - [*"dropdown"*](https://surveyjs.io/Documentation/Library?id=questiondropdownmodel)
801
- * - [*"expression"*](https://surveyjs.io/Documentation/Library?id=questionexpressionmodel)
802
- * - [*"file"*](https://surveyjs.io/Documentation/Library?id=questionfilemodel)
803
- * - [*"html"*](https://surveyjs.io/Documentation/Library?id=questionhtmlmodel)
804
- * - [*"image"*](https://surveyjs.io/Documentation/Library?id=questionimagemodel)
805
- * - [*"imagepicker"*](https://surveyjs.io/Documentation/Library?id=questionimagepickermodel)
806
- * - [*"matrix"*](https://surveyjs.io/Documentation/Library?id=questionmatrixmodel)
807
- * - [*"matrixdropdown"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdropdownmodel)
808
- * - [*"matrixdynamic"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdynamicmodel)
809
- * - [*"multipletext"*](https://surveyjs.io/Documentation/Library?id=questionmultipletextmodel)
810
- * - [*"panel"*](https://surveyjs.io/Documentation/Library?id=panelmodel)
811
- * - [*"paneldynamic"*](https://surveyjs.io/Documentation/Library?id=questionpaneldynamicmodel)
812
- * - [*"radiogroup"*](https://surveyjs.io/Documentation/Library?id=questionradiogroupmodel)
813
- * - [*"rating"*](https://surveyjs.io/Documentation/Library?id=questionratingmodel)
814
- * - [*"ranking"*](https://surveyjs.io/Documentation/Library?id=questionrankingmodel)
815
- * - [*"signaturepad"*](https://surveyjs.io/Documentation/Library?id=questionsignaturepadmodel)
816
- * - [*"text"*](https://surveyjs.io/Documentation/Library?id=questiontextmodel)
796
+ * Returns the class type as it is used in the JSON schema.
817
797
  */
818
798
  getType(): string;
819
799
  /*
@@ -1038,6 +1018,7 @@ export declare class CustomPropertiesCollection {
1038
1018
  static parentClasses: any;
1039
1019
  static addProperty(className: string, property: any): void;
1040
1020
  static removeProperty(className: string, propertyName: string): void;
1021
+ static removeAllProperties(className: string): void;
1041
1022
  static addClass(className: string, parentClassName: string): void;
1042
1023
  static getProperties(className: string): Array<any>;
1043
1024
  static createProperties(obj: any): void;
@@ -1219,8 +1200,10 @@ export declare class JsonMetadataClass {
1219
1200
  static requiredSymbol: string;
1220
1201
  static typeSymbol: string;
1221
1202
  properties: any;
1203
+ isCustomValue: boolean;
1222
1204
  find(name: string): JsonObjectProperty;
1223
- createProperty(propInfo: any): JsonObjectProperty;
1205
+ get isCustom(): boolean;
1206
+ createProperty(propInfo: any, isCustom?: boolean): JsonObjectProperty;
1224
1207
  }
1225
1208
  export declare class JsonObject {
1226
1209
  static typePropertyName: string;
@@ -1355,6 +1338,7 @@ export declare class QuestionMatrixDropdownRenderedCell {
1355
1338
  question: Question;
1356
1339
  isRemoveRow: boolean;
1357
1340
  choiceIndex: number;
1341
+ isOtherChoice: boolean;
1358
1342
  matrix: QuestionMatrixDropdownModelBase;
1359
1343
  requiredText: string;
1360
1344
  isEmpty: boolean;
@@ -1373,8 +1357,10 @@ export declare class QuestionMatrixDropdownRenderedCell {
1373
1357
  get item(): ItemValue;
1374
1358
  set item(val: ItemValue);
1375
1359
  get isChoice(): boolean;
1360
+ get isItemChoice(): boolean;
1376
1361
  get choiceValue(): any;
1377
1362
  get isCheckbox(): boolean;
1363
+ get isRadio(): boolean;
1378
1364
  get isFirstChoice(): boolean;
1379
1365
  get className(): string;
1380
1366
  get headers(): string;
@@ -1696,14 +1682,20 @@ export declare class Action extends Base implements IAction {
1696
1682
  minDimension: number;
1697
1683
  maxDimension: number;
1698
1684
  }
1699
- export declare class ActionContainer<T extends Action = Action> extends Base {
1685
+ export declare class ActionContainer<T extends Action = Action> extends Base implements ILocalizableOwner {
1700
1686
  constructor();
1687
+ getMarkdownHtml(text: string, name: string): string;
1688
+ getRenderer(name: string): string;
1689
+ getRendererContext(locStr: LocalizableString): any;
1690
+ getProcessedText(text: string): string;
1691
+ getLocale(): string;
1701
1692
  actions: any;
1702
1693
  cssClassesValue: any;
1703
1694
  protected getRenderedActions(): Array<T>;
1704
1695
  updateCallback: (isResetInitialized: boolean) => void;
1705
1696
  containerCss: string;
1706
1697
  sizeMode: "default" | "small";
1698
+ locOwner: ILocalizableOwner;
1707
1699
  isEmpty: boolean;
1708
1700
  protected raiseUpdate(isResetInitialized: boolean): void;
1709
1701
  protected onSet(): void;
@@ -1713,6 +1705,7 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
1713
1705
  get renderedActions(): any;
1714
1706
  get visibleActions(): any;
1715
1707
  getRootCss(): string;
1708
+ protected getDefaultCssClasses(): any;
1716
1709
  get cssClasses(): any;
1717
1710
  addAction(val: IAction, sortByVisibleIndex?: boolean): Action;
1718
1711
  setItems(items: any, sortByVisibleIndex?: boolean): void;
@@ -1799,8 +1792,22 @@ export declare class CalculatedValue extends Base {
1799
1792
  protected setValue(val: any): void;
1800
1793
  }
1801
1794
  /*
1802
- * A definition for filling choices for checkbox, dropdown and radiogroup questions from resfull services.
1803
- * The run method call a restful service and results can be get on getResultCallback.
1795
+ * Configures access to a RESTful service that returns choices for [Checkbox](https://surveyjs.io/Examples/Library?id=questiontype-checkbox), [Dropdown](https://surveyjs.io/Examples/Library?id=questiontype-dropdown), [Radiogroup](https://surveyjs.io/Examples/Library?id=questiontype-radiogroup), and other multiple-choice question types.
1796
+ *
1797
+ * Use the following properties to configure this object:
1798
+ *
1799
+ * ```js
1800
+ * {
1801
+ * url: "http://...", // A RESTful service's URL.
1802
+ * valueName: "value", // Specifies which field contains choice values.
1803
+ * titleName: "title", // Specifies which field contains display texts for choice values.
1804
+ * imageLinkName: "imageUrl", // Specifies which field contains image URLs. Used in Image Picker questions.
1805
+ * // Path to the array of choices. Specify `path` only if the array of choices is nested within the object returned by the service.
1806
+ * path: "myNestedArray"
1807
+ * }
1808
+ * ```
1809
+ *
1810
+ * Typically, you should assign this object to a question's [`choicesByUrl`](https://surveyjs.io/Documentation/Library?id=QuestionSelectBase#choicesByUrl) property.
1804
1811
  */
1805
1812
  export declare class ChoicesRestful extends Base {
1806
1813
  constructor();
@@ -1840,29 +1847,49 @@ export declare class ChoicesRestful extends Base {
1840
1847
  setData(json: any): void;
1841
1848
  getData(): any;
1842
1849
  /*
1843
- * Gets or sets a link to a web service. You can use text preprocessing here.
1844
- * For example, the following url: _https://surveyjs.io/api/CountriesExample?region={region}_ is changed based on the _region_ question's value.
1845
- * SurveyJS automatically gets data from the web service when the value of the _region_ question changes.
1850
+ * A RESTful service's URL.
1851
+ *
1852
+ * This property supports [dynamic URLs](https://surveyjs.io/Documentation/Library?id=design-survey-conditional-logic#dynamic-texts). For example, the URL below depends on the `region` question's value. When the value changes, the survey automatically loads a new dataset that corresponds to the selected region.
1853
+ *
1854
+ * ```js
1855
+ * url: "https://surveyjs.io/api/CountriesExample?region={region}"
1856
+ * ```
1857
+ *
1858
+ * [View Example](https://surveyjs.io/Examples/Library/?id=questiontype-dropdownrestfull (linkStyle))
1846
1859
  */
1847
1860
  get url(): string;
1848
1861
  set url(val: string);
1849
1862
  /*
1850
- * Use this property, if a web service returns a lot of information and you need only a part of it.
1851
- * For example, a web service returns a list of countries and a list of capitals.
1852
- * If you need a list of countries, set a correct path from which SurveyJS obtains the data, like: _DataList1\DataList2_
1863
+ * Path to the array of choices.
1864
+ *
1865
+ * Specify this property only if the array of choices is nested within the object returned by the service. For example, the service returns the following object:
1866
+ *
1867
+ * ```js
1868
+ * {
1869
+ * countries: [ ... ],
1870
+ * capitals: [ ... ]
1871
+ * }
1872
+ * ```
1873
+ *
1874
+ * To populate choices with values from the `countries` array, set the `path` property to `"countries"`. To use the `capitals` array, set this property to `"capitals"`.
1853
1875
  */
1854
1876
  get path(): string;
1855
1877
  set path(val: string);
1856
1878
  /*
1857
- * Gets or sets the name of a property (in the obtained data object) to which SurveyJS binds to provide values for choice items.
1879
+ * Specifies which property in the obtained data object contains choice values.
1880
+ *
1881
+ * [View Example](https://surveyjs.io/Examples/Library/?id=questiontype-dropdownrestfull (linkStyle))
1858
1882
  */
1859
1883
  get valueName(): string;
1860
1884
  set valueName(val: string);
1861
1885
  /*
1862
- * Gets or sets the name of a property (in the obtained data object) to which SurveyJS binds to provide display texts for choice items.
1886
+ * Specifies which property in the obtained data object contains display texts for choices.
1863
1887
  */
1864
1888
  get titleName(): string;
1865
1889
  set titleName(val: string);
1890
+ /*
1891
+ * Specifies which property in the obtained data object contains image URLs. Used only in [Image Picker](https://surveyjs.io/Examples/Library?id=questiontype-imagepicker) questions.
1892
+ */
1866
1893
  get imageLinkName(): string;
1867
1894
  set imageLinkName(val: string);
1868
1895
  get allowEmptyResponse(): boolean;
@@ -1954,6 +1981,7 @@ export declare class DragDropCore<T> extends Base {
1954
1981
  export declare class DropdownListModel extends Base {
1955
1982
  constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any) => void);
1956
1983
  _popupModel: any;
1984
+ focusFirstInputSelector: string;
1957
1985
  protected listModel: ListModel;
1958
1986
  protected popupCssClasses: string;
1959
1987
  protected getAvailableItems(): Array<Action>;
@@ -2220,6 +2248,7 @@ export declare class List extends SurveyElementBase<IListProps, any> {
2220
2248
  renderElement(): JSX.Element;
2221
2249
  renderItems(): any;
2222
2250
  searchElementContent(): JSX.Element;
2251
+ emptyContent(): JSX.Element;
2223
2252
  }
2224
2253
  export declare class ListItem extends SurveyElementBase<IListItemProps, any> {
2225
2254
  constructor(props: any);
@@ -2703,6 +2732,7 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
2703
2732
  export declare class PopupModel<T = any> extends Base {
2704
2733
  constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: any, horizontalPosition?: any, showPointer?: boolean, isModal?: boolean, onCancel?: any, onApply?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string);
2705
2734
  width: number;
2735
+ focusFirstInputSelector: string;
2706
2736
  contentComponentName: string;
2707
2737
  contentComponentData: T;
2708
2738
  verticalPosition: any;
@@ -2722,6 +2752,70 @@ export declare class PopupModel<T = any> extends Base {
2722
2752
  set isVisible(val: boolean);
2723
2753
  toggleVisibility(): void;
2724
2754
  }
2755
+ /*
2756
+ * A Model for a survey running in the Popup Window.
2757
+ */
2758
+ export declare class PopupSurveyModel extends Base {
2759
+ constructor(jsonObj: any, initialModel?: SurveyModel);
2760
+ static surveyElementName: string;
2761
+ surveyValue: SurveyModel;
2762
+ windowElement: any;
2763
+ templateValue: string;
2764
+ expandedChangedCallback: any;
2765
+ showingChangedCallback: any;
2766
+ protected onCreating(): void;
2767
+ getType(): string;
2768
+ /*
2769
+ * A survey object.
2770
+ */
2771
+ get survey(): SurveyModel;
2772
+ /*
2773
+ * Set this value to negative value, for example -1, to avoid closing the popup window on completing the survey. Leave it equals to 0 (default value) to close the popup window immediately, or set it to 3, 5, 10, ... to close the popup window in 3, 5, 10 seconds.
2774
+ */
2775
+ closeOnCompleteTimeout: number;
2776
+ /*
2777
+ * Returns true if the popup window is currently showing. Set it to true to show the popup window and false to hide it.
2778
+ */
2779
+ get isShowing(): boolean;
2780
+ set isShowing(val: boolean);
2781
+ /*
2782
+ * Show the popup window
2783
+ */
2784
+ show(): void;
2785
+ /*
2786
+ * Hide the popup window
2787
+ */
2788
+ hide(): void;
2789
+ /*
2790
+ * Returns true if the popup window is expanded. Set it to true to expand the popup window or false to collapse it.
2791
+ */
2792
+ get isExpanded(): boolean;
2793
+ set isExpanded(val: boolean);
2794
+ protected onExpandedChanged(): void;
2795
+ /*
2796
+ * The popup window and survey title.
2797
+ */
2798
+ get title(): string;
2799
+ set title(val: string);
2800
+ get locTitle(): LocalizableString;
2801
+ /*
2802
+ * Expand the popup window to show the survey.
2803
+ */
2804
+ expand(): void;
2805
+ /*
2806
+ * Collapse the popup window and show survey title only.
2807
+ */
2808
+ collapse(): void;
2809
+ changeExpandCollapse(): void;
2810
+ get css(): any;
2811
+ get cssButton(): string;
2812
+ get cssRoot(): string;
2813
+ get cssBody(): string;
2814
+ get cssHeaderRoot(): string;
2815
+ get cssHeaderTitle(): string;
2816
+ protected createSurvey(jsonObj: any): SurveyModel;
2817
+ protected onSurveyComplete(): void;
2818
+ }
2725
2819
  export declare class QuestionMatrixDropdownRenderedRow extends Base {
2726
2820
  constructor(cssClasses: any, isDetailRow?: boolean);
2727
2821
  cssClasses: any;
@@ -2971,6 +3065,8 @@ export declare class SurveyElementCore extends Base implements ILocalizableOwner
2971
3065
  get ariaTitleId(): string;
2972
3066
  get titleTabIndex(): number;
2973
3067
  get titleAriaExpanded(): boolean;
3068
+ get ariaLabel(): string;
3069
+ get titleAriaLabel(): string;
2974
3070
  getLocale(): string;
2975
3071
  getMarkdownHtml(text: string, name: string): string;
2976
3072
  getRenderer(name: string): string;
@@ -3108,70 +3204,6 @@ export declare class SurveyValidator extends Base {
3108
3204
  toString(): string;
3109
3205
  }
3110
3206
  /*
3111
- * A Model for a survey running in the Window.
3112
- */
3113
- export declare class SurveyWindowModel extends Base {
3114
- constructor(jsonObj: any, initialModel?: SurveyModel);
3115
- static surveyElementName: string;
3116
- surveyValue: SurveyModel;
3117
- windowElement: any;
3118
- templateValue: string;
3119
- expandedChangedCallback: any;
3120
- showingChangedCallback: any;
3121
- protected onCreating(): void;
3122
- getType(): string;
3123
- /*
3124
- * A survey object.
3125
- */
3126
- get survey(): SurveyModel;
3127
- /*
3128
- * Set this value to negative value, for example -1, to avoid closing the window on completing the survey. Leave it equals to 0 (default value) to close the window immediately, or set it to 3, 5, 10, ... to close the window in 3, 5, 10 seconds.
3129
- */
3130
- closeOnCompleteTimeout: number;
3131
- /*
3132
- * Returns true if the window is currently showing. Set it to true to show the window and false to hide it.
3133
- */
3134
- get isShowing(): boolean;
3135
- set isShowing(val: boolean);
3136
- /*
3137
- * Show the window
3138
- */
3139
- show(): void;
3140
- /*
3141
- * Hide the window
3142
- */
3143
- hide(): void;
3144
- /*
3145
- * Returns true if the window is expanded. Set it to true to expand the window or false to collapse it.
3146
- */
3147
- get isExpanded(): boolean;
3148
- set isExpanded(val: boolean);
3149
- protected onExpandedChanged(): void;
3150
- /*
3151
- * The window and survey title.
3152
- */
3153
- get title(): string;
3154
- set title(val: string);
3155
- get locTitle(): LocalizableString;
3156
- /*
3157
- * Expand the window to show the survey.
3158
- */
3159
- expand(): void;
3160
- /*
3161
- * Collapse the window and show survey title only.
3162
- */
3163
- collapse(): void;
3164
- changeExpandCollapse(): void;
3165
- get css(): any;
3166
- get cssButton(): string;
3167
- get cssRoot(): string;
3168
- get cssBody(): string;
3169
- get cssHeaderRoot(): string;
3170
- get cssHeaderTitle(): string;
3171
- protected createSurvey(jsonObj: any): SurveyModel;
3172
- protected onSurveyComplete(): void;
3173
- }
3174
- /*
3175
3207
  * A base class for all triggers.
3176
3208
  * A trigger calls a method when the expression change the result: from false to true or from true to false.
3177
3209
  * Please note, it runs only one changing the expression result.
@@ -3245,7 +3277,8 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
3245
3277
  minVisibleItemsCount: number;
3246
3278
  isResponsivenessDisabled: boolean;
3247
3279
  static ContainerID: number;
3248
- get invisibleItemsListModel(): ListModel;
3280
+ get hiddenItemsListModel(): ListModel;
3281
+ protected hiddenItemSelected(item: T): void;
3249
3282
  protected onSet(): void;
3250
3283
  protected onPush(item: T): void;
3251
3284
  protected getRenderedActions(): Array<T>;
@@ -3449,6 +3482,7 @@ export declare class ListModel extends ActionContainer {
3449
3482
  allowSelection: boolean;
3450
3483
  searchEnabled: boolean;
3451
3484
  needFilter: boolean;
3485
+ isEmpty: boolean;
3452
3486
  isExpanded: boolean;
3453
3487
  selectedItem: IAction;
3454
3488
  filteredText: string;
@@ -3456,6 +3490,7 @@ export declare class ListModel extends ActionContainer {
3456
3490
  static MINELEMENTCOUNT: number;
3457
3491
  isItemVisible(item: Action): boolean;
3458
3492
  protected onSet(): void;
3493
+ protected getDefaultCssClasses(): any;
3459
3494
  protected updateItemActiveState(): void;
3460
3495
  onItemClick: (itemValue: Action) => void;
3461
3496
  isItemDisabled: (itemValue: Action) => boolean;
@@ -3463,6 +3498,7 @@ export declare class ListModel extends ActionContainer {
3463
3498
  getItemClass: (itemValue: Action) => string;
3464
3499
  getItemIndent: (itemValue: any) => string;
3465
3500
  get filteredTextPlaceholder(): string;
3501
+ get emptyMessage(): string;
3466
3502
  goToItems(event: any): void;
3467
3503
  onKeyDown(event: any): void;
3468
3504
  onPointerDown(event: any, item: any): void;
@@ -3517,6 +3553,17 @@ export declare class NumericValidator extends SurveyValidator {
3517
3553
  get maxValue(): number;
3518
3554
  set maxValue(val: number);
3519
3555
  }
3556
+ export declare class PopupSurvey extends Survey {
3557
+ constructor(props: any);
3558
+ protected popup: any;
3559
+ protected getStateElements(): Array<Base>;
3560
+ handleOnExpanded(event: any): void;
3561
+ protected canRender(): boolean;
3562
+ protected renderElement(): JSX.Element;
3563
+ protected renderWindowHeader(): JSX.Element;
3564
+ protected renderBody(): JSX.Element;
3565
+ protected createSurvey(newProps: any): void;
3566
+ }
3520
3567
  export declare class QuestionCompositeTextProcessor extends QuestionTextProcessor {
3521
3568
  constructor(composite: QuestionCompositeModel, variableName: string);
3522
3569
  protected get survey(): ISurvey;
@@ -4356,6 +4403,15 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4356
4403
  */
4357
4404
  onDynamicPanelRemoved: EventBase<SurveyModel>;
4358
4405
  /*
4406
+ * The event is fired before removing a panel from Panel Dynamic question. You can disable removing and optionally clear the data instead.
4407
+ * - `sender` - the survey object that fires the event.
4408
+ * - `options.question` - a panel question.
4409
+ * - `options.panelIndex` - a removed panel index.
4410
+ * - `options.panel` - a removed panel.
4411
+ * - `options.allow` - a boolean property. Set it to `false` to disable the panel removing.
4412
+ */
4413
+ onDynamicPanelRemoving: EventBase<SurveyModel>;
4414
+ /*
4359
4415
  * The event is fired every second if the method `startTimer` has been called.
4360
4416
  */
4361
4417
  onTimer: EventBase<SurveyModel>;
@@ -5326,6 +5382,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5326
5382
  matrixCellValidate(question: IQuestion, options: any): SurveyError;
5327
5383
  dynamicPanelAdded(question: IQuestion, panelIndex?: number, panel?: IPanel): void;
5328
5384
  dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): void;
5385
+ dynamicPanelRemoving(question: IQuestion, panelIndex: number, panel: IPanel): boolean;
5329
5386
  dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
5330
5387
  dragAndDropAllow(options: any): boolean;
5331
5388
  elementContentVisibilityChanged(element: ISurveyElement): void;
@@ -5578,6 +5635,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5578
5635
  set widthMode(val: string);
5579
5636
  calculatedWidthMode: string;
5580
5637
  calculateWidthMode(): string;
5638
+ /*
5639
+ * Gets or sets the width of the survey root element. It is empty by default. Use it to limit survey width to a particular value.
5640
+ */
5641
+ get width(): string;
5642
+ set width(val: string);
5581
5643
  get timerInfoText(): string;
5582
5644
  get timerModel(): SurveyTimerModel;
5583
5645
  /*
@@ -5987,16 +6049,11 @@ export declare class SurveyTrigger extends Trigger {
5987
6049
  protected isRealExecution(): boolean;
5988
6050
  protected onSuccessExecuted(): void;
5989
6051
  }
5990
- export declare class SurveyWindow extends Survey {
5991
- constructor(props: any);
5992
- protected window: any;
5993
- protected getStateElements(): Array<Base>;
5994
- handleOnExpanded(event: any): void;
5995
- protected canRender(): boolean;
5996
- protected renderElement(): JSX.Element;
5997
- protected renderWindowHeader(): JSX.Element;
5998
- protected renderBody(): JSX.Element;
5999
- protected createSurvey(newProps: any): void;
6052
+ /*
6053
+ * Obsolete. Please use PopupSurvey
6054
+ */
6055
+ export declare class SurveyWindowModel extends PopupSurveyModel {
6056
+ constructor(jsonObj: any, initialModel?: SurveyModel);
6000
6057
  }
6001
6058
  /*
6002
6059
  * Validate text values.
@@ -6087,28 +6144,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
6087
6144
  removeElementCallback: (element: IElement) => void;
6088
6145
  onGetQuestionTitleLocation: any;
6089
6146
  /*
6090
- * Returns the question type.
6091
- * Possible values:
6092
- * - [*"boolean"*](https://surveyjs.io/Documentation/Library?id=questionbooleanmodel)
6093
- * - [*"checkbox"*](https://surveyjs.io/Documentation/Library?id=questioncheckboxmodel)
6094
- * - [*"comment"*](https://surveyjs.io/Documentation/Library?id=questioncommentmodel)
6095
- * - [*"dropdown"*](https://surveyjs.io/Documentation/Library?id=questiondropdownmodel)
6096
- * - [*"expression"*](https://surveyjs.io/Documentation/Library?id=questionexpressionmodel)
6097
- * - [*"file"*](https://surveyjs.io/Documentation/Library?id=questionfilemodel)
6098
- * - [*"html"*](https://surveyjs.io/Documentation/Library?id=questionhtmlmodel)
6099
- * - [*"image"*](https://surveyjs.io/Documentation/Library?id=questionimagemodel)
6100
- * - [*"imagepicker"*](https://surveyjs.io/Documentation/Library?id=questionimagepickermodel)
6101
- * - [*"matrix"*](https://surveyjs.io/Documentation/Library?id=questionmatrixmodel)
6102
- * - [*"matrixdropdown"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdropdownmodel)
6103
- * - [*"matrixdynamic"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdynamicmodel)
6104
- * - [*"multipletext"*](https://surveyjs.io/Documentation/Library?id=questionmultipletextmodel)
6105
- * - [*"panel"*](https://surveyjs.io/Documentation/Library?id=panelmodel)
6106
- * - [*"paneldynamic"*](https://surveyjs.io/Documentation/Library?id=questionpaneldynamicmodel)
6107
- * - [*"radiogroup"*](https://surveyjs.io/Documentation/Library?id=questionradiogroupmodel)
6108
- * - [*"rating"*](https://surveyjs.io/Documentation/Library?id=questionratingmodel)
6109
- * - [*"ranking"*](https://surveyjs.io/Documentation/Library?id=questionrankingmodel)
6110
- * - [*"signaturepad"*](https://surveyjs.io/Documentation/Library?id=questionsignaturepadmodel)
6111
- * - [*"text"*](https://surveyjs.io/Documentation/Library?id=questiontextmodel)
6147
+ * Returns the class type as it is used in the JSON schema.
6112
6148
  */
6113
6149
  getType(): string;
6114
6150
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
@@ -6416,7 +6452,6 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6416
6452
  * A11Y properties
6417
6453
  */
6418
6454
  get ariaRequired(): "true" | "false";
6419
- get ariaLabel(): string;
6420
6455
  get ariaInvalid(): "true" | "false";
6421
6456
  get ariaDescribedBy(): string;
6422
6457
  /*
@@ -6470,7 +6505,28 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6470
6505
  */
6471
6506
  get isAllowTitleLeft(): boolean;
6472
6507
  /*
6473
- * Returns the type of the object as a string as it represents in the json.
6508
+ * Returns the question type.
6509
+ * Possible values:
6510
+ * - [*"boolean"*](https://surveyjs.io/Documentation/Library?id=questionbooleanmodel)
6511
+ * - [*"checkbox"*](https://surveyjs.io/Documentation/Library?id=questioncheckboxmodel)
6512
+ * - [*"comment"*](https://surveyjs.io/Documentation/Library?id=questioncommentmodel)
6513
+ * - [*"dropdown"*](https://surveyjs.io/Documentation/Library?id=questiondropdownmodel)
6514
+ * - [*"expression"*](https://surveyjs.io/Documentation/Library?id=questionexpressionmodel)
6515
+ * - [*"file"*](https://surveyjs.io/Documentation/Library?id=questionfilemodel)
6516
+ * - [*"html"*](https://surveyjs.io/Documentation/Library?id=questionhtmlmodel)
6517
+ * - [*"image"*](https://surveyjs.io/Documentation/Library?id=questionimagemodel)
6518
+ * - [*"imagepicker"*](https://surveyjs.io/Documentation/Library?id=questionimagepickermodel)
6519
+ * - [*"matrix"*](https://surveyjs.io/Documentation/Library?id=questionmatrixmodel)
6520
+ * - [*"matrixdropdown"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdropdownmodel)
6521
+ * - [*"matrixdynamic"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdynamicmodel)
6522
+ * - [*"multipletext"*](https://surveyjs.io/Documentation/Library?id=questionmultipletextmodel)
6523
+ * - [*"panel"*](https://surveyjs.io/Documentation/Library?id=panelmodel)
6524
+ * - [*"paneldynamic"*](https://surveyjs.io/Documentation/Library?id=questionpaneldynamicmodel)
6525
+ * - [*"radiogroup"*](https://surveyjs.io/Documentation/Library?id=questionradiogroupmodel)
6526
+ * - [*"rating"*](https://surveyjs.io/Documentation/Library?id=questionratingmodel)
6527
+ * - [*"ranking"*](https://surveyjs.io/Documentation/Library?id=questionrankingmodel)
6528
+ * - [*"signaturepad"*](https://surveyjs.io/Documentation/Library?id=questionsignaturepadmodel)
6529
+ * - [*"text"*](https://surveyjs.io/Documentation/Library?id=questiontextmodel)
6474
6530
  */
6475
6531
  getType(): string;
6476
6532
  get isQuestion(): boolean;
@@ -6664,6 +6720,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6664
6720
  set id(val: string);
6665
6721
  get ariaTitleId(): string;
6666
6722
  get ariaRole(): string;
6723
+ /*
6724
+ * Specifies whether to display the "Other" choice item.
6725
+ */
6667
6726
  get hasOther(): boolean;
6668
6727
  set hasOther(val: boolean);
6669
6728
  protected hasOtherChanged(): void;
@@ -7096,6 +7155,12 @@ export declare class SurveyTriggerVisible extends SurveyTrigger {
7096
7155
  protected onItemFailure(item: any): void;
7097
7156
  }
7098
7157
  /*
7158
+ * Obsolete. Please use PopupSurvey
7159
+ */
7160
+ export declare class SurveyWindow extends PopupSurvey {
7161
+ constructor(props: any);
7162
+ }
7163
+ /*
7099
7164
  * The page object. It has elements collection, that contains questions and panels.
7100
7165
  */
7101
7166
  export declare class PageModel extends PanelModelBase implements IPage {
@@ -8238,7 +8303,10 @@ export declare class QuestionSelectBase extends Question {
8238
8303
  protected getHasOther(val: any): boolean;
8239
8304
  get validatedValue(): any;
8240
8305
  protected createRestful(): ChoicesRestful;
8306
+ get autoOtherMode(): boolean;
8307
+ set autoOtherMode(val: boolean);
8241
8308
  protected getQuestionComment(): string;
8309
+ protected selectOtherValueFromComment(val: boolean): void;
8242
8310
  isSettingComment: boolean;
8243
8311
  protected setQuestionComment(newValue: string): void;
8244
8312
  clearValue(): void;
@@ -8732,6 +8800,12 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
8732
8800
  * Specifies whether to display a search bar in the drop-down menu.
8733
8801
  */
8734
8802
  searchEnabled: boolean;
8803
+ /*
8804
+ * The clean files button caption.
8805
+ */
8806
+ get cleanButtonCaption(): string;
8807
+ set cleanButtonCaption(val: string);
8808
+ get locCleanButtonCaption(): LocalizableString;
8735
8809
  getControlClass(): string;
8736
8810
  get readOnlyText(): any;
8737
8811
  get popupModel(): any;
@@ -8830,7 +8904,28 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
8830
8904
  onRemoveColumn: (column: MatrixDropdownColumn) => void;
8831
8905
  protected createColumnValues(): any;
8832
8906
  /*
8833
- * Returns the type of the object as a string as it represents in the json.
8907
+ * Returns the question type.
8908
+ * Possible values:
8909
+ * - [*"boolean"*](https://surveyjs.io/Documentation/Library?id=questionbooleanmodel)
8910
+ * - [*"checkbox"*](https://surveyjs.io/Documentation/Library?id=questioncheckboxmodel)
8911
+ * - [*"comment"*](https://surveyjs.io/Documentation/Library?id=questioncommentmodel)
8912
+ * - [*"dropdown"*](https://surveyjs.io/Documentation/Library?id=questiondropdownmodel)
8913
+ * - [*"expression"*](https://surveyjs.io/Documentation/Library?id=questionexpressionmodel)
8914
+ * - [*"file"*](https://surveyjs.io/Documentation/Library?id=questionfilemodel)
8915
+ * - [*"html"*](https://surveyjs.io/Documentation/Library?id=questionhtmlmodel)
8916
+ * - [*"image"*](https://surveyjs.io/Documentation/Library?id=questionimagemodel)
8917
+ * - [*"imagepicker"*](https://surveyjs.io/Documentation/Library?id=questionimagepickermodel)
8918
+ * - [*"matrix"*](https://surveyjs.io/Documentation/Library?id=questionmatrixmodel)
8919
+ * - [*"matrixdropdown"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdropdownmodel)
8920
+ * - [*"matrixdynamic"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdynamicmodel)
8921
+ * - [*"multipletext"*](https://surveyjs.io/Documentation/Library?id=questionmultipletextmodel)
8922
+ * - [*"panel"*](https://surveyjs.io/Documentation/Library?id=panelmodel)
8923
+ * - [*"paneldynamic"*](https://surveyjs.io/Documentation/Library?id=questionpaneldynamicmodel)
8924
+ * - [*"radiogroup"*](https://surveyjs.io/Documentation/Library?id=questionradiogroupmodel)
8925
+ * - [*"rating"*](https://surveyjs.io/Documentation/Library?id=questionratingmodel)
8926
+ * - [*"ranking"*](https://surveyjs.io/Documentation/Library?id=questionrankingmodel)
8927
+ * - [*"signaturepad"*](https://surveyjs.io/Documentation/Library?id=questionsignaturepadmodel)
8928
+ * - [*"text"*](https://surveyjs.io/Documentation/Library?id=questiontextmodel)
8834
8929
  */
8835
8930
  getType(): string;
8836
8931
  dispose(): void;
@@ -9319,6 +9414,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
9319
9414
  protected convertValueToObject(val: any): any;
9320
9415
  protected renderedValueFromDataCore(val: any): any;
9321
9416
  protected rendredValueToDataCore(val: any): any;
9417
+ protected selectOtherValueFromComment(val: boolean): void;
9322
9418
  get checkBoxSvgPath(): string;
9323
9419
  }
9324
9420
  /*
@@ -9603,6 +9699,7 @@ export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
9603
9699
  constructor(name: string);
9604
9700
  getType(): string;
9605
9701
  get ariaRole(): string;
9702
+ get titleAriaLabel(): string;
9606
9703
  protected getFirstInputElementId(): string;
9607
9704
  /*
9608
9705
  * Return the selected item in the radio group. Returns null if the value is empty
@@ -9652,6 +9749,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
9652
9749
  handleArrowDown: (index: number, choice: ItemValue) => void;
9653
9750
  focusItem: (index: number) => void;
9654
9751
  setValue: any;
9752
+ protected getChoicesFromQuestion(question: QuestionSelectBase): Array<ItemValue>;
9655
9753
  setValueFromUI: any;
9656
9754
  syncNumbers: any;
9657
9755
  setGhostText: (text: string) => void;
@@ -9681,6 +9779,12 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
9681
9779
  searchEnabled: boolean;
9682
9780
  hideSelectedItems: boolean;
9683
9781
  /*
9782
+ * The clean files button caption.
9783
+ */
9784
+ get cleanButtonCaption(): string;
9785
+ set cleanButtonCaption(val: string);
9786
+ get locCleanButtonCaption(): LocalizableString;
9787
+ /*
9684
9788
  * A text displayed in the input field when it doesn't have a value.
9685
9789
  */
9686
9790
  get placeholder(): string;
@@ -9695,17 +9799,18 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
9695
9799
  }
9696
9800
  export declare function property(options?: any): (target: any, key: string) => void;
9697
9801
  export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
9698
- export declare function createDialogOptions(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
9699
- export declare function createPopupModalViewModel(options: IDialogOptions): PopupBaseViewModel;
9700
- export declare function createDropdownActionModel(actionOptions: IAction, dropdownOptions: IActionDropdownPopupOptions): Action;
9701
- export declare function createDropdownActionModelAdvanced(actionOptions: IAction, listOptions: IListModel, popupOptions?: IPopupOptionsBase): Action;
9702
9802
  export declare function unwrap<T>(value: any): T;
9703
9803
  export declare function getSize(value: any): any;
9704
9804
  export declare function doKey2ClickBlur(evt: any): void;
9705
9805
  export declare function doKey2ClickUp(evt: any, options?: IAttachKey2clickOptions): void;
9706
9806
  export declare function doKey2ClickDown(evt: any, options?: IAttachKey2clickOptions): void;
9707
9807
  export declare function sanitizeEditableContent(element: any): void;
9808
+ export declare function createDialogOptions(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
9809
+ export declare function createPopupModalViewModel(options: IDialogOptions): PopupBaseViewModel;
9810
+ export declare function createDropdownActionModel(actionOptions: IAction, dropdownOptions: IActionDropdownPopupOptions, locOwner?: any): Action;
9811
+ export declare function createDropdownActionModelAdvanced(actionOptions: IAction, listOptions: IListModel, popupOptions?: IPopupOptionsBase, locOwner?: any): Action;
9708
9812
  export declare function getCurrecyCodes(): Array<any>;
9813
+ export declare function checkLibraryVersion(ver: string, libraryName: string): void;
9709
9814
  export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
9710
9815
  export declare function showDialog(dialogOptions: any): void;
9711
9816
  export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: IAttachKey2clickOptions): JSX.Element;
@@ -9728,8 +9833,8 @@ export declare var settings: {
9728
9833
  */
9729
9834
  useLocalTimeZone: boolean,
9730
9835
  /*
9731
- * The prefix that uses to store the question comment, as {questionName} + {commentPrefix}.
9732
- * The default
9836
+ * The prefix that uses to store the question comment, as "questionName + commentPrefix".
9837
+ * The default value is "-Comment"
9733
9838
  */
9734
9839
  commentPrefix: string,
9735
9840
  /*
@@ -9845,7 +9950,7 @@ export declare var settings: {
9845
9950
  */
9846
9951
  minWidth: string,
9847
9952
  /*
9848
- * Set this property to change the default value of the minWidth constraint
9953
+ * Set this property to change the default value of the maxWidth constraint
9849
9954
  */
9850
9955
  maxWidth: string,
9851
9956
  /*
@@ -9935,6 +10040,7 @@ export declare var Serializer: JsonMetadata;
9935
10040
  export declare var surveyBuiltInVarible: string;
9936
10041
  export declare var registerFunction: (name: string, func: any) => any;
9937
10042
  export declare var parse: any;
10043
+ export declare var keyFocusedClassName: any;
9938
10044
  export declare var defaultActionBarCss: {
9939
10045
  root: string,
9940
10046
  defaultSizeMode: string,
@@ -9946,8 +10052,21 @@ export declare var defaultActionBarCss: {
9946
10052
  itemTitle: string,
9947
10053
  itemTitleWithIcon: string,
9948
10054
  };
10055
+ export declare var defaultListCss: {
10056
+ root: string,
10057
+ item: string,
10058
+ itemSelected: string,
10059
+ itemWithIcon: string,
10060
+ itemDisabled: string,
10061
+ itemIcon: string,
10062
+ itemsContainer: string,
10063
+ filter: string,
10064
+ filterIcon: string,
10065
+ filterInput: string,
10066
+ emptyContainer: string,
10067
+ emptyText: string,
10068
+ };
9949
10069
  export declare var FOCUS_INPUT_SELECTOR: any;
9950
- export declare var keyFocusedClassName: any;
9951
10070
  export declare var surveyCss: {
9952
10071
  currentType: string,
9953
10072
  getCss: any,
@@ -10330,6 +10449,8 @@ export declare var IsTouch: boolean;
10330
10449
  export declare var minMaxTypes: any;
10331
10450
  export declare var youtubeTags: any;
10332
10451
  export declare var videoSuffics: any;
10452
+ export declare var youtubeUrl: any;
10453
+ export declare var youtubeEmbed: any;
10333
10454
  export declare var defaultWidth: number;
10334
10455
  export declare var defaultHeight: number;
10335
10456
  export declare var Version: string;
@@ -10478,8 +10599,21 @@ export declare var defaultBootstrapCss: {
10478
10599
  comment: string,
10479
10600
  dropdown: {
10480
10601
  root: string,
10602
+ selectWrapper: string,
10481
10603
  control: string,
10482
10604
  other: string,
10605
+ cleanButton: string,
10606
+ cleanButtonSvg: string,
10607
+ cleanButtonIconId: string,
10608
+ },
10609
+ tagbox: {
10610
+ root: string,
10611
+ selectWrapper: string,
10612
+ control: string,
10613
+ other: string,
10614
+ cleanButton: string,
10615
+ cleanButtonSvg: string,
10616
+ cleanButtonIconId: string,
10483
10617
  },
10484
10618
  html: {
10485
10619
  root: string,
@@ -10799,8 +10933,21 @@ export declare var defaultBootstrapMaterialCss: {
10799
10933
  comment: string,
10800
10934
  dropdown: {
10801
10935
  root: string,
10936
+ selectWrapper: string,
10802
10937
  control: string,
10803
10938
  other: string,
10939
+ cleanButton: string,
10940
+ cleanButtonSvg: string,
10941
+ cleanButtonIconId: string,
10942
+ },
10943
+ tagbox: {
10944
+ root: string,
10945
+ selectWrapper: string,
10946
+ control: string,
10947
+ other: string,
10948
+ cleanButton: string,
10949
+ cleanButtonSvg: string,
10950
+ cleanButtonIconId: string,
10804
10951
  },
10805
10952
  html: {
10806
10953
  root: string,
@@ -11473,9 +11620,16 @@ export declare var defaultV2Css: {
11473
11620
  itemDisabled: string,
11474
11621
  itemControl: string,
11475
11622
  },
11623
+ list: {
11624
+ root: string,
11625
+ item: string,
11626
+ itemSelected: string,
11627
+ },
11476
11628
  actionBar: {
11477
11629
  root: string,
11478
11630
  item: string,
11631
+ defaultSizeMode: string,
11632
+ smallSizeMode: string,
11479
11633
  itemPressed: string,
11480
11634
  itemAsIcon: string,
11481
11635
  itemIcon: string,