survey-react 1.9.52 → 1.9.53

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.52
2
+ * Type definition for Survey JavaScript library for React v1.9.53
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
  */
@@ -923,6 +923,7 @@ export declare class Base {
923
923
  protected setArray(name: string, src: any, dest: any, isItemValues: boolean, onPush: any): void;
924
924
  protected isTwoValueEquals(x: any, y: any, caseInSensitive?: boolean, trimString?: boolean): boolean;
925
925
  protected copyCssClasses(dest: any, source: any): void;
926
+ getElementsInDesign(includeHidden?: boolean): Array<IElement>;
926
927
  }
927
928
  export declare class Bindings {
928
929
  constructor(obj: Base);
@@ -2709,7 +2710,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
2709
2710
  popup: any;
2710
2711
  containerRef: any;
2711
2712
  get model(): any;
2712
- protected getStateElement(): any;
2713
+ protected getStateElement(): Base;
2713
2714
  componentDidMount(): void;
2714
2715
  componentDidUpdate(prevProps: any, prevState: any): void;
2715
2716
  componentWillUnmount(): void;
@@ -2717,40 +2718,43 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
2717
2718
  render(): JSX.Element;
2718
2719
  }
2719
2720
  export declare class PopupBaseViewModel extends Base {
2720
- constructor(model: any, targetElement?: any);
2721
- targetElement: any;
2722
- isAutoScroll: boolean;
2723
- prevActiveElement: any;
2724
- scrollEventCallBack: any;
2721
+ constructor(model: any);
2722
+ protected prevActiveElement: any;
2723
+ protected footerToolbarValue: any;
2725
2724
  top: string;
2726
2725
  left: string;
2727
2726
  height: string;
2728
2727
  width: string;
2729
2728
  minWidth: string;
2730
2729
  isVisible: boolean;
2731
- popupDirection: string;
2732
- pointerTarget: IPosition;
2733
2730
  container: any;
2731
+ protected hidePopup(): void;
2732
+ protected getStyleClass(): CssClassBuilder;
2733
+ protected getShowFooter(): boolean;
2734
+ protected getShowHeader(): boolean;
2735
+ protected getPopupHeaderTemplate(): string;
2736
+ protected createFooterActionBar(): void;
2734
2737
  _model: any;
2735
2738
  get model(): any;
2736
2739
  set model(val: any);
2737
2740
  get title(): string;
2738
2741
  get contentComponentName(): string;
2739
2742
  get contentComponentData(): any;
2740
- get showPointer(): boolean;
2741
2743
  get isModal(): boolean;
2742
2744
  get isFocusedContent(): boolean;
2743
2745
  get showFooter(): boolean;
2746
+ get showHeader(): boolean;
2747
+ get popupHeaderTemplate(): string;
2744
2748
  get isOverlay(): boolean;
2745
2749
  get styleClass(): string;
2750
+ get cancelButtonText(): string;
2751
+ get footerToolbar(): any;
2746
2752
  onKeyDown(event: any): void;
2753
+ switchFocus(): void;
2747
2754
  updateOnShowing(): void;
2748
2755
  updateOnHiding(): void;
2749
2756
  clickOutside(): void;
2750
2757
  cancel(): void;
2751
- apply(): void;
2752
- get cancelButtonText(): string;
2753
- get applyButtonText(): string;
2754
2758
  dispose(): void;
2755
2759
  initializePopupContainer(): void;
2756
2760
  unmountPopupContainer(): void;
@@ -2760,16 +2764,14 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
2760
2764
  prevIsVisible: boolean;
2761
2765
  handleKeydown: (event: any) => void;
2762
2766
  get model(): any;
2763
- protected getStateElement(): any;
2767
+ protected getStateElement(): Base;
2764
2768
  clickInside: (ev: any) => void;
2765
2769
  componentDidUpdate(prevProps: any, prevState: any): void;
2766
- renderContainer(): JSX.Element;
2767
- renderPointer(): JSX.Element;
2768
- renderHeader(): JSX.Element;
2770
+ renderContainer(PopupBaseViewModel: any): JSX.Element;
2771
+ renderHeaderContent(): JSX.Element;
2769
2772
  renderContent(): JSX.Element;
2770
- renderCancelButton(): JSX.Element;
2771
- renderApplyButton(): JSX.Element;
2772
- renderFooter(): JSX.Element;
2773
+ protected renderHeaderPopup(popupModel: any): JSX.Element;
2774
+ protected renderFooter(popuModel: any): JSX.Element;
2773
2775
  render(): JSX.Element;
2774
2776
  }
2775
2777
  export declare class PopupModel<T = any> extends Base {
@@ -3633,6 +3635,34 @@ export declare class NumericValidator extends SurveyValidator {
3633
3635
  get maxValue(): number;
3634
3636
  set maxValue(val: number);
3635
3637
  }
3638
+ export declare class PopupDropdownContainer extends PopupContainer {
3639
+ constructor(props: any);
3640
+ protected renderHeaderPopup(popupModel: any): JSX.Element;
3641
+ }
3642
+ export declare class PopupDropdownViewModel extends PopupBaseViewModel {
3643
+ constructor(model: any, targetElement?: any);
3644
+ targetElement: any;
3645
+ isAutoScroll: boolean;
3646
+ scrollEventCallBack: any;
3647
+ protected hidePopup(): void;
3648
+ protected getStyleClass(): CssClassBuilder;
3649
+ protected getShowHeader(): boolean;
3650
+ protected getPopupHeaderTemplate(): string;
3651
+ popupDirection: string;
3652
+ pointerTarget: IPosition;
3653
+ updateOnShowing(): void;
3654
+ updateOnHiding(): void;
3655
+ }
3656
+ export declare class PopupModalViewModel extends PopupBaseViewModel {
3657
+ constructor(model: any);
3658
+ protected getStyleClass(): CssClassBuilder;
3659
+ protected getShowFooter(): boolean;
3660
+ protected createFooterActionBar(): void;
3661
+ get applyButtonText(): string;
3662
+ apply(): void;
3663
+ clickOutside(): void;
3664
+ onKeyDown(event: any): void;
3665
+ }
3636
3666
  export declare class PopupSurvey extends Survey {
3637
3667
  constructor(props: any);
3638
3668
  protected popup: any;
@@ -3833,7 +3863,6 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3833
3863
  get containsErrors(): boolean;
3834
3864
  updateContainsErrors(): void;
3835
3865
  protected getContainsErrors(): boolean;
3836
- getElementsInDesign(includeHidden?: boolean): Array<IElement>;
3837
3866
  get selectedElementInDesign(): SurveyElement;
3838
3867
  set selectedElementInDesign(val: SurveyElement);
3839
3868
  updateCustomWidgets(): void;
@@ -6119,6 +6148,7 @@ export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
6119
6148
  protected get handlePointerDown(): (event: any) => void;
6120
6149
  protected get cssClasses(): any;
6121
6150
  protected get itemClass(): string;
6151
+ protected get itemTabIndex(): number;
6122
6152
  protected get question(): any;
6123
6153
  protected renderElement(): JSX.Element;
6124
6154
  }
@@ -6839,8 +6869,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6839
6869
  get requiredIf(): string;
6840
6870
  set requiredIf(val: string);
6841
6871
  /*
6842
- * Specifies whether to display a comment area. Incompatible with the `hasOther` property.
6872
+ * Specifies whether to display a comment area. Incompatible with the `showOtherItem` property.
6843
6873
  */
6874
+ get showCommentArea(): boolean;
6875
+ set showCommentArea(val: boolean);
6844
6876
  get hasComment(): boolean;
6845
6877
  set hasComment(val: boolean);
6846
6878
  /*
@@ -6853,6 +6885,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6853
6885
  /*
6854
6886
  * Specifies whether to display the "Other" choice item. Incompatible with the `hasComment` property.
6855
6887
  */
6888
+ get showOtherItem(): boolean;
6889
+ set showOtherItem(val: boolean);
6856
6890
  get hasOther(): boolean;
6857
6891
  set hasOther(val: boolean);
6858
6892
  protected hasOtherChanged(): void;
@@ -7459,60 +7493,65 @@ export declare class PanelModel extends PanelModelBase implements IElement {
7459
7493
  getContainerCss(): string;
7460
7494
  }
7461
7495
  /*
7462
- * A Model for a boolean question.
7496
+ * A class that describes the Boolean question type.
7497
+ *
7498
+ * [View Demo](https://surveyjs.io/form-library/examples/questiontype-boolean/ (linkStyle))
7463
7499
  */
7464
7500
  export declare class QuestionBooleanModel extends Question {
7465
7501
  constructor(name: string);
7466
7502
  getType(): string;
7467
7503
  isLayoutTypeSupported(layoutType: string): boolean;
7468
7504
  supportGoNextPageAutomatic(): boolean;
7469
- /*
7470
- * Returns true if the question check will be rendered in indeterminate mode. value is empty.
7471
- */
7472
7505
  get isIndeterminate(): boolean;
7473
7506
  get hasTitle(): boolean;
7474
7507
  /*
7475
- * Get/set question value in 3 modes: indeterminate (value is empty), true (check is set) and false (check is unset).
7508
+ * Gets or sets the question value as a Boolean value.
7509
+ *
7510
+ * If you set the `valueTrue` and `valueFalse` properties, the `value` property contains their values instead of Boolean values. This may be inconvenient when you operate the question value in code. To access the standard Boolean values, use the `booleanValue` property.
7511
+ */
7512
+ get booleanValue(): any;
7513
+ set booleanValue(val: any);
7514
+ /*
7515
+ * Obsolete, please use booleanValue property
7476
7516
  */
7477
7517
  get checkedValue(): any;
7478
7518
  set checkedValue(val: any);
7479
- /*
7480
- * Set the default state of the check: "indeterminate" - default (value is empty/null), "true" - value equals valueTrue or true, "false" - value equals valueFalse or false.
7481
- */
7482
7519
  get defaultValue(): any;
7483
7520
  set defaultValue(val: any);
7484
7521
  getDefaultValue(): any;
7485
7522
  get locTitle(): LocalizableString;
7486
- /*
7487
- * The checkbox label. If it is empty and showTitle is false then title is rendered
7488
- */
7489
7523
  get label(): string;
7490
7524
  set label(val: string);
7491
7525
  get locLabel(): LocalizableString;
7492
7526
  get locDisplayLabel(): LocalizableString;
7493
7527
  /*
7494
- * Set this property, if you want to have a different label for state when check is set.
7528
+ * Gets or sets a text label that corresponds to a positive answer.
7529
+ *
7530
+ * Default value: "Yes"
7495
7531
  */
7496
7532
  get labelTrue(): any;
7497
7533
  set labelTrue(val: any);
7498
7534
  get locLabelTrue(): LocalizableString;
7499
7535
  get isDeterminated(): boolean;
7500
7536
  /*
7501
- * Set this property, if you want to have a different label for state when check is unset.
7537
+ * Gets or sets a text label that corresponds to a negative answer.
7538
+ *
7539
+ * Default value: "No"
7502
7540
  */
7503
7541
  get labelFalse(): any;
7504
7542
  set labelFalse(val: any);
7505
7543
  get locLabelFalse(): LocalizableString;
7506
- /*
7507
- * Set this property to true to show the question title. It is hidden by default.
7508
- */
7509
7544
  showTitle: boolean;
7510
7545
  /*
7511
- * Set this property, if you want to have a different value from true when check is set.
7546
+ * A value to save in survey results when respondents give a positive answer.
7547
+ *
7548
+ * Default value: `true`
7512
7549
  */
7513
7550
  valueTrue: any;
7514
7551
  /*
7515
- * Set this property, if you want to have a different value from false when check is unset.
7552
+ * A value to save in survey results when respondents give a negative answer.
7553
+ *
7554
+ * Default value: `false`
7516
7555
  */
7517
7556
  valueFalse: any;
7518
7557
  protected setDefaultValue(): void;
@@ -7580,7 +7619,9 @@ export declare class QuestionEmptyModel extends Question {
7580
7619
  getType(): string;
7581
7620
  }
7582
7621
  /*
7583
- * A Model for expression question. It is a read-only question. It calculates value based on epxression property.
7622
+ * A class that describes the Expression question type. It is a read-only question type that calculates a value based on a specified expression.
7623
+ *
7624
+ * [View Demo](https://surveyjs.io/form-library/examples/questiontype-expression/ (linkStyle))
7584
7625
  */
7585
7626
  export declare class QuestionExpressionModel extends Question {
7586
7627
  constructor(name: string);
@@ -7589,14 +7630,15 @@ export declare class QuestionExpressionModel extends Question {
7589
7630
  getType(): string;
7590
7631
  get hasInput(): boolean;
7591
7632
  /*
7592
- * Use this property to display the value in your own format. Make sure you have "{0}" substring in your string, to display the actual value.
7633
+ * A string that formats a question value. Use `{0}` to reference the question value in the format string.
7593
7634
  */
7594
7635
  get format(): string;
7595
7636
  set format(val: string);
7596
7637
  get locFormat(): LocalizableString;
7597
7638
  /*
7598
- * The Expression that used to calculate the question value. You may use standard operators like +, -, * and /, squares (). Here is the example of accessing the question value {questionname}.
7599
- * Example: "({quantity} * {price}) * (100 - {discount}) / 100"
7639
+ * An expression used to calculate the question value.
7640
+ *
7641
+ * Refer to the following help topic for more information: [Expressions](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#expressions).
7600
7642
  */
7601
7643
  get expression(): string;
7602
7644
  set expression(val: string);
@@ -7606,12 +7648,16 @@ export declare class QuestionExpressionModel extends Question {
7606
7648
  protected canCollectErrors(): boolean;
7607
7649
  protected hasRequiredError(): boolean;
7608
7650
  /*
7609
- * The maximum number of fraction digits to use if displayStyle is not "none". Possible values are from 0 to 20. The default value is -1 and it means that this property is not used.
7651
+ * The maximum number of fraction digits. Applies only if the `displayStyle` property is not `"none"`. Accepts values in the range from -1 to 20, where -1 disables the property.
7652
+ *
7653
+ * Default value: -1
7610
7654
  */
7611
7655
  get maximumFractionDigits(): number;
7612
7656
  set maximumFractionDigits(val: number);
7613
7657
  /*
7614
- * The minimum number of fraction digits to use if displayStyle is not "none". Possible values are from 0 to 20. The default value is -1 and it means that this property is not used.
7658
+ * The minimum number of fraction digits. Applies only if the `displayStyle` property is not `"none"`. Accepts values in the range from -1 to 20, where -1 disables the property.
7659
+ *
7660
+ * Default value: -1
7615
7661
  */
7616
7662
  get minimumFractionDigits(): number;
7617
7663
  set minimumFractionDigits(val: number);
@@ -7624,17 +7670,31 @@ export declare class QuestionExpressionModel extends Question {
7624
7670
  updateValueFromSurvey(newValue: any): void;
7625
7671
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
7626
7672
  /*
7627
- * 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.
7673
+ * Specifies a display style for the question value.
7674
+ *
7675
+ * Possible values:
7676
+ *
7677
+ * - `"decimal"`
7678
+ * - `"currency"`
7679
+ * - `"percent"`
7680
+ * - `"date"`
7681
+ * - `"none"` (default)
7682
+ *
7683
+ * If you use the `"currency"` display style, you can also set the `currency` property to specify a currency other than USD.
7628
7684
  */
7629
7685
  get displayStyle(): string;
7630
7686
  set displayStyle(val: string);
7631
7687
  /*
7632
- * Use it to display the value in the currency differen from USD. The displayStype should be set to "currency".
7688
+ * A three-letter currency code. Applies only if the `displayStyle` property is set to `"currency"`.
7689
+ *
7690
+ * Default value: "USD".
7633
7691
  */
7634
7692
  get currency(): string;
7635
7693
  set currency(val: string);
7636
7694
  /*
7637
- * Determines whether to display grouping separators. The default value is true.
7695
+ * Specifies whether to use grouping separators in number representation. Separators depend on the selected [locale](https://surveyjs.io/form-library/documentation/surveymodel#locale).
7696
+ *
7697
+ * Default value: `true`
7638
7698
  */
7639
7699
  get useGrouping(): boolean;
7640
7700
  set useGrouping(val: boolean);
@@ -7788,7 +7848,8 @@ export declare class QuestionFileModel extends Question {
7788
7848
  /*
7789
7849
  * Remove file item programmatically.
7790
7850
  */
7791
- removeFile(content: any): void;
7851
+ removeFile(name: string): void;
7852
+ protected removeFileByContent(content: any): void;
7792
7853
  /*
7793
7854
  * Load multiple files programmatically.
7794
7855
  */
@@ -8275,9 +8336,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
8275
8336
  */
8276
8337
  export declare class QuestionRatingModel extends Question {
8277
8338
  constructor(name: string);
8278
- rateValuesChangedCallback: any;
8279
8339
  endLoadingFromJson(): void;
8280
- onSurveyLoad(): void;
8281
8340
  /*
8282
8341
  * The list of rate items. Every item has value and text. If text is empty, the value is rendered. The item text supports markdown. If it is empty the array is generated by using rateMin, rateMax and rateStep properties.
8283
8342
  */
@@ -8300,7 +8359,8 @@ export declare class QuestionRatingModel extends Question {
8300
8359
  set rateStep(val: number);
8301
8360
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
8302
8361
  get visibleRateValues(): any;
8303
- get renderedRateItems(): any;
8362
+ itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
8363
+ renderedRateItems: any;
8304
8364
  getType(): string;
8305
8365
  protected getFirstInputElementId(): string;
8306
8366
  getInputId(index: number): string;
@@ -8360,7 +8420,7 @@ export declare class QuestionRatingModel extends Question {
8360
8420
  protected getDesktopRenderAs(): string;
8361
8421
  }
8362
8422
  /*
8363
- * It is a base class for checkbox, dropdown and radiogroup questions.
8423
+ * A base class for multiple-choice question types ([Checkbox](https://surveyjs.io/form-library/documentation/questioncheckboxmodel), [Dropdown](https://surveyjs.io/form-library/documentation/questiondropdownmodel), [Radiogroup](https://surveyjs.io/form-library/documentation/questionradiogroupmodel), etc.).
8364
8424
  */
8365
8425
  export declare class QuestionSelectBase extends Question {
8366
8426
  constructor(name: string);
@@ -8389,35 +8449,51 @@ export declare class QuestionSelectBase extends Question {
8389
8449
  localeChanged(): void;
8390
8450
  locStrsChanged(): void;
8391
8451
  /*
8392
- * Returns the other item. By using this property, you may change programmatically it's value and text.
8452
+ * Returns the "Other" choice item. Use this property to change the item's `value` or `text`.
8393
8453
  */
8394
8454
  get otherItem(): ItemValue;
8395
8455
  /*
8396
- * Returns true if a user select the 'other' item.
8456
+ * Returns `true` if the "Other" choice item is selected.
8397
8457
  */
8398
8458
  get isOtherSelected(): boolean;
8399
8459
  /*
8400
- * Set this property to true, to show the "None" item on the bottom. If end-user checks this item, all other items would be unchecked.
8460
+ * Specifies whether to display the "None" choice item.
8461
+ *
8462
+ * When users select the "None" item in multi-select questions, all other items become unselected.
8401
8463
  */
8464
+ get showNoneItem(): boolean;
8465
+ set showNoneItem(val: boolean);
8402
8466
  get hasNone(): boolean;
8403
8467
  set hasNone(val: boolean);
8404
8468
  /*
8405
- * Returns the none item. By using this property, you may change programmatically it's value and text.
8469
+ * Returns the "None" choice item. Use this property to change the item's `value` or `text`.
8406
8470
  */
8407
8471
  get noneItem(): ItemValue;
8408
8472
  /*
8409
- * Use this property to set the different text for none item.
8473
+ * Gets or sets a caption for the "None" choice item.
8410
8474
  */
8411
8475
  get noneText(): string;
8412
8476
  set noneText(val: string);
8413
8477
  get locNoneText(): LocalizableString;
8414
8478
  /*
8415
- * An expression that returns true or false. It runs against each choices item and if for this item it returns true, then the item is visible otherwise the item becomes invisible. Please use {item} to get the current item value in the expression.
8479
+ * A Boolean expression that is evaluated against each choice item. If the expression evaluates to `false`, the choice item becomes hidden.
8480
+ *
8481
+ * A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
8482
+ *
8483
+ * Use the `{item}` placeholder to reference the current choice item in the expression.
8484
+ *
8485
+ * Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
8416
8486
  */
8417
8487
  get choicesVisibleIf(): string;
8418
8488
  set choicesVisibleIf(val: string);
8419
8489
  /*
8420
- * An expression that returns true or false. It runs against each choices item and if for this item it returns true, then the item is enabled otherwise the item becomes disabled. Please use {item} to get the current item value in the expression.
8490
+ * A Boolean expression that is evaluated against each choice item. If the expression evaluates to `false`, the choice item becomes read-only.
8491
+ *
8492
+ * A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
8493
+ *
8494
+ * Use the `{item}` placeholder to reference the current choice item in the expression.
8495
+ *
8496
+ * Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
8421
8497
  */
8422
8498
  get choicesEnableIf(): string;
8423
8499
  set choicesEnableIf(val: string);
@@ -8461,50 +8537,78 @@ export declare class QuestionSelectBase extends Question {
8461
8537
  */
8462
8538
  clearIncorrectValuesCallback: any;
8463
8539
  /*
8464
- * Use this property to fill the choices from a RESTful service.
8540
+ * Configures access to a RESTful service that returns choice items. Refer to the [ChoicesRestful](https://surveyjs.io/form-library/documentation/choicesrestful) class description for more information.
8541
+ *
8542
+ * [View "Dropdown + RESTful" demo](https://surveyjs.io/form-library/examples/questiontype-dropdownrestfull/ (linkStyle))
8465
8543
  */
8466
8544
  get choicesByUrl(): ChoicesRestful;
8467
8545
  set choicesByUrl(val: ChoicesRestful);
8468
8546
  /*
8469
- * The list of items. Every item has value and text. If text is empty, the value is rendered. The item text supports markdown.
8547
+ * Gets or sets choice items. This property accepts an array of objects with the following structure:
8548
+ *
8549
+ * ```js
8550
+ * {
8551
+ * "value": any, // A value to be saved in the survey results
8552
+ * "text": String, // A display text. This property supports Markdown. When `text` is undefined, `value` is used.
8553
+ * "imageLink": String // A link to the image or video that represents this choice value. Applies only to Image Picker questions.
8554
+ * "customProperty": any // Any property that you find useful
8555
+ * }
8556
+ * ```
8557
+ *
8558
+ * Refer to the following help topic for information on how to add custom properties so that they are serialized into JSON: [Add Custom Properties to Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid#add-custom-properties-to-the-property-grid).
8559
+ *
8560
+ * If you need to specify only the `value` property, you can set the `choices` property to an array of primitive values, for example, `[ "item1", "item2", "item3" ]`. These values are both saved in survey results and used as display text.
8470
8561
  */
8471
8562
  get choices(): any;
8472
8563
  set choices(val: any);
8473
8564
  /*
8474
- * Set this property to get choices from the specified question instead of defining them in the current question. This avoids duplication of choices declaration in your survey definition.
8475
- * By setting this property, the "choices", "choicesVisibleIf", "choicesEnableIf" and "choicesOrder" properties become invisible, because these question characteristics depend on actions in another (specified) question.
8476
- * Use the `choicesFromQuestionMode` property to filter choices obtained from the specified question.
8565
+ * Inherits choice items from a specified question. Accepts a question name.
8566
+ *
8567
+ * If you specify this property, the `choices`, `choicesVisibleIf`, `choicesEnableIf`, and `choicesOrder` properties do not apply because their values are inherited.
8568
+ *
8569
+ * In addition, you can specify the `choicesFromQuestionMode` property if you do not want to inherit all choice items.
8477
8570
  */
8478
8571
  get choicesFromQuestion(): string;
8479
8572
  set choicesFromQuestion(val: string);
8480
8573
  /*
8481
- * This property becomes visible when the `choicesFromQuestion` property is selected. The default value is "all" (all visible choices from another question are displayed as they are).
8482
- * You can set this property to "selected" or "unselected" to display only selected or unselected choices from the specified question.
8574
+ * Specifies which choice items to inherit from another question. Applies only when the `choicesFromQuestion` property is specified.
8575
+ *
8576
+ * Possible values:
8577
+ *
8578
+ * - `"all"` (default) - Inherits all choice items.
8579
+ * - `"selected"` - Inherits only selected choice items.
8580
+ * - `"unselected"` - Inherits only unselected choice items.
8581
+ *
8582
+ * Use the `visibleChoices` property to access inherited choice items.
8483
8583
  */
8484
8584
  get choicesFromQuestionMode(): string;
8485
8585
  set choicesFromQuestionMode(val: string);
8486
8586
  /*
8487
- * Set this property to true to hide the question if there is no visible choices.
8587
+ * Specifies whether to hide the question if no choice items are visible.
8588
+ *
8589
+ * This property is useful if you show or hide choice items at runtime based on a [condition](https://surveyjs.io/form-library/documentation/questionselectbase#choicesVisibleIf).
8488
8590
  */
8489
8591
  get hideIfChoicesEmpty(): boolean;
8490
8592
  set hideIfChoicesEmpty(val: boolean);
8491
8593
  get keepIncorrectValues(): boolean;
8492
8594
  set keepIncorrectValues(val: boolean);
8493
- /*
8494
- * Please use survey.storeOthersAsComment to change the behavior on the survey level. This property is depricated and invisible in Survey Creator.
8495
- * By default the entered text in the others input in the checkbox/radiogroup/dropdown are stored as "question name " + "-Comment". The value itself is "question name": "others". Set this property to false, to store the entered text directly in the "question name" key.
8496
- * Possible values are: "default", true, false
8497
- */
8498
8595
  get storeOthersAsComment(): any;
8499
8596
  set storeOthersAsComment(val: any);
8500
8597
  protected hasOtherChanged(): void;
8501
8598
  /*
8502
- * Use this property to render items in a specific order: "asc", "desc", "random". Default value is "none".
8599
+ * Specifies the sort order of choice items.
8600
+ *
8601
+ * Possible values:
8602
+ *
8603
+ * - `"none"` (default) - Preserves the original order of choice items.
8604
+ * - `"asc"`- Sorts choice items in ascending order.
8605
+ * - `"desc"`- Sorts choice items in ascending order.
8606
+ * - `"random"` - Displays choice items in random order.
8503
8607
  */
8504
8608
  get choicesOrder(): string;
8505
8609
  set choicesOrder(val: string);
8506
8610
  /*
8507
- * Use this property to set the different text for other item.
8611
+ * Gets or sets a caption for the "Other" choice item.
8508
8612
  */
8509
8613
  get otherText(): string;
8510
8614
  set otherText(val: string);
@@ -8514,7 +8618,7 @@ export declare class QuestionSelectBase extends Question {
8514
8618
  */
8515
8619
  separateSpecialChoices: boolean;
8516
8620
  /*
8517
- * Use this property to set the place holder text for other or comment field .
8621
+ * A placeholder for the comment area. Applies when the `hasOther` or `hasComment` property is `true`.
8518
8622
  */
8519
8623
  get otherPlaceholder(): string;
8520
8624
  set otherPlaceholder(val: string);
@@ -8522,17 +8626,17 @@ export declare class QuestionSelectBase extends Question {
8522
8626
  get otherPlaceHolder(): string;
8523
8627
  set otherPlaceHolder(val: string);
8524
8628
  /*
8525
- * The text that shows when the other item is choosed by the other input is empty.
8629
+ * Get or sets an error message displayed when users select the "Other" choice item but leave the comment area empty.
8526
8630
  */
8527
8631
  get otherErrorText(): string;
8528
8632
  set otherErrorText(val: string);
8529
8633
  get locOtherErrorText(): LocalizableString;
8530
8634
  /*
8531
- * The list of items as they will be rendered. If needed items are sorted and the other item is added.
8635
+ * An array of visible choice items. Includes the "Select All", "Other", and "None" choice items if they are visible. Items are sorted according to the `choicesOrder` value.
8532
8636
  */
8533
8637
  get visibleChoices(): any;
8534
8638
  /*
8535
- * The list of enabled items as they will be rendered. The disabled items are not included
8639
+ * An array of choice items with which users can interact. Includes the "Select All", "Other", and "None" choice items if they are not disabled. Items are sorted according to the `choicesOrder` value.
8536
8640
  */
8537
8641
  get enabledChoices(): any;
8538
8642
  protected updateVisibleChoices(): void;
@@ -8541,15 +8645,9 @@ export declare class QuestionSelectBase extends Question {
8541
8645
  get newItem(): ItemValue;
8542
8646
  protected addToVisibleChoices(items: any, isAddAll: boolean): void;
8543
8647
  protected canShowOptionItem(item: ItemValue, isAddAll: boolean, hasItem: boolean): boolean;
8544
- /*
8545
- * For internal use in SurveyJS Creator V2.
8546
- */
8547
8648
  isItemInList(item: ItemValue): boolean;
8548
8649
  protected get isAddDefaultItems(): boolean;
8549
8650
  getPlainData(options?: any): any;
8550
- /*
8551
- * Returns the text for the current value. If the value is null then returns empty string. If 'other' is selected then returns the text for other value.
8552
- */
8553
8651
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
8554
8652
  protected getDisplayValueEmpty(): string;
8555
8653
  protected getChoicesDisplayValue(items: any, val: any): any;
@@ -8586,7 +8684,9 @@ export declare class QuestionSelectBase extends Question {
8586
8684
  protected hasValueToClearIncorrectValues(): boolean;
8587
8685
  protected clearValueIfInvisibleCore(): void;
8588
8686
  /*
8589
- * Returns true if item is selected
8687
+ * Returns `true` if a passed choice item is selected.
8688
+ *
8689
+ * To obtain a choice item to check, use the `noneItem` or `otherItem` property or the `choices` array.
8590
8690
  */
8591
8691
  isItemSelected(item: ItemValue): boolean;
8592
8692
  protected isItemSelectedCore(item: ItemValue): boolean;
@@ -8688,20 +8788,21 @@ export declare class QuestionSignaturePadModel extends Question {
8688
8788
  endLoadingFromJson(): void;
8689
8789
  }
8690
8790
  /*
8691
- * A Base Model for a comment and text questions
8791
+ * A base class for the [Text](https://surveyjs.io/form-library/documentation/questiontextmodel) and [Comment](https://surveyjs.io/form-library/documentation/questioncommentmodel) question types.
8692
8792
  */
8693
8793
  export declare class QuestionTextBase extends Question {
8694
8794
  constructor(name: string);
8695
8795
  protected isTextValue(): boolean;
8696
8796
  /*
8697
- * The maximum text length. If it is -1, defaul value, then the survey maxTextLength property will be used.
8698
- * If it is 0, then the value is unlimited
8797
+ * The maximum text length measured in characters. Assign 0 if the length should be unlimited.
8798
+ *
8799
+ * Default value: -1 (inherits the actual value from the `SurveyModel`'s [`maxTextLength`](https://surveyjs.io/form-library/documentation/surveymodel#maxTextLength) property).
8699
8800
  */
8700
8801
  get maxLength(): number;
8701
8802
  set maxLength(val: number);
8702
8803
  getMaxLength(): any;
8703
8804
  /*
8704
- * Use this property to set the input place holder.
8805
+ * A placeholder for the input field.
8705
8806
  */
8706
8807
  get placeholder(): string;
8707
8808
  set placeholder(val: string);
@@ -8712,14 +8813,15 @@ export declare class QuestionTextBase extends Question {
8712
8813
  getType(): string;
8713
8814
  isEmpty(): boolean;
8714
8815
  /*
8715
- * Gets or sets a value that specifies how the question updates it's value.
8816
+ * Gets or sets a value that specifies when to update the question value.
8716
8817
  *
8717
- * The following options are available:
8718
- * - `default` - get the value from survey.textUpdateMode
8719
- * - `onBlur` - the value is updated after an input loses the focus.
8720
- * - `onTyping` - update the value of text questions, "text" and "comment", on every key press.
8818
+ * Possible values:
8721
8819
  *
8722
- * Note, that setting to "onTyping" may lead to a performance degradation, in case you have many expressions in the survey.
8820
+ * - `"onBlur"` - Updates the value after the input field loses focus.
8821
+ * - `"onTyping"` - Updates the value on every key press.
8822
+ * - `"default"` (default) - Inherits the value from the `SurveyModel`'s [`textUpdateMode`](https://surveyjs.io/form-library/documentation/surveymodel#textUpdateMode) property.
8823
+ *
8824
+ * > NOTE: Do not use the `"onTyping"` mode if your survey contains many expressions. Expressions are reevaluated each time a question value is changed. In `"onTyping"` mode, the question value changes frequently. This may cause performance degradation.
8723
8825
  */
8724
8826
  get textUpdateMode(): string;
8725
8827
  set textUpdateMode(val: string);
@@ -8786,13 +8888,15 @@ export declare class FlowPanelModel extends PanelModel {
8786
8888
  getElementContentText(element: IElement): string;
8787
8889
  }
8788
8890
  /*
8789
- * A base class for checkbox and radiogroup questions. It introduced a colCount property.
8891
+ * A base class for multiple-selection question types that can display choice items in multiple columns ([Checkbox](https://surveyjs.io/form-library/documentation/questioncheckboxmodel), [Radiogroup](https://surveyjs.io/form-library/documentation/questionradiogroupmodel), [Image Picker](https://surveyjs.io/form-library/documentation/questionimagepickermodel)).
8790
8892
  */
8791
8893
  export declare class QuestionCheckboxBase extends QuestionSelectBase {
8792
8894
  constructor(name: string);
8793
8895
  colCountChangedCallback: any;
8794
8896
  /*
8795
- * The number of columns for radiogroup and checkbox questions. Items are rendred in one line if the value is 0.
8897
+ * Get or sets the number of columns used to arrange choice items.
8898
+ *
8899
+ * Set this property to 0 if you want to display all items in one line. The default value depends on the available width.
8796
8900
  */
8797
8901
  get colCount(): number;
8798
8902
  set colCount(val: number);
@@ -8801,29 +8905,38 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
8801
8905
  protected getSearchableItemValueKeys(keys: any): void;
8802
8906
  }
8803
8907
  /*
8804
- * A Model for a comment question
8908
+ * A class that describes the Comment question type.
8909
+ *
8910
+ * [View Demo](https://surveyjs.io/form-library/examples/questiontype-comment/ (linkStyle))
8805
8911
  */
8806
8912
  export declare class QuestionCommentModel extends QuestionTextBase {
8807
8913
  constructor(name: string);
8808
8914
  element: any;
8809
8915
  /*
8810
- * The html rows attribute.
8916
+ * Specifies the visible height of the comment area, measured in lines.
8917
+ *
8918
+ * The value of this property is passed on to the `rows` attribute of the underlying `<textarea>` element.
8811
8919
  */
8812
8920
  get rows(): number;
8813
8921
  set rows(val: number);
8814
8922
  /*
8815
- * The html cols attribute.
8923
+ * Specifies the visible width of the comment area, measured in average character width.
8924
+ *
8925
+ * The value of this property is passed on to the `cols` attribute of the underlying `<textarea>` element.
8816
8926
  */
8817
8927
  get cols(): number;
8818
8928
  set cols(val: number);
8819
8929
  /*
8820
- * Accepts pressing the Enter key by end-users and accepts carriage return symbols - \n - in the question value assigned.
8930
+ * Specifies whether the question allows line breaks.
8931
+ *
8932
+ * When this property is enabled, a user can press Enter to insert line breaks. They are saved as `\n` in survey results. The Comment question also recognizes and interprets the `\n` sequence as a line break when you set the question `value` in code.
8821
8933
  */
8822
8934
  get acceptCarriageReturn(): boolean;
8823
8935
  set acceptCarriageReturn(val: boolean);
8824
8936
  /*
8825
- * Specifies whether the question's text area automatically expands its height to avoid the vertical scrollbar and to display the entire multi-line contents entered by respondents.
8826
- * Default value is false.
8937
+ * Specifies whether the comment area automatically increases its height to accomodate multi-line content.
8938
+ *
8939
+ * Default value: `false` (inherited from `SurveyModel`'s [`autoGrowComment`](https://surveyjs.io/form-library/documentation/surveymodel#autoGrowComment) property)
8827
8940
  */
8828
8941
  get autoGrow(): boolean;
8829
8942
  set autoGrow(val: boolean);
@@ -8891,7 +9004,9 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
8891
9004
  protected getDisplayValueCore(keyAsText: boolean, value: any): any;
8892
9005
  }
8893
9006
  /*
8894
- * A Model for a dropdown question
9007
+ * A class that describes the Dropdown question type.
9008
+ *
9009
+ * [View Demo](https://surveyjs.io/form-library/examples/questiontype-dropdown/ (linkStyle))
8895
9010
  */
8896
9011
  export declare class QuestionDropdownModel extends QuestionSelectBase {
8897
9012
  constructor(name: string);
@@ -8903,34 +9018,56 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
8903
9018
  get optionsCaption(): string;
8904
9019
  set optionsCaption(val: string);
8905
9020
  /*
8906
- * A text displayed in the input field when it doesn't have a value.
9021
+ * A placeholder for the input field.
8907
9022
  */
8908
9023
  get placeholder(): string;
8909
9024
  set placeholder(val: string);
8910
9025
  get locPlaceholder(): LocalizableString;
9026
+ get cleanCaption(): string;
9027
+ set cleanCaption(val: string);
9028
+ get locCleanCaption(): LocalizableString;
8911
9029
  getType(): string;
8912
9030
  get selectedItem(): ItemValue;
8913
9031
  supportGoNextPageAutomatic(): boolean;
8914
9032
  minMaxChoices: any;
8915
9033
  protected getChoices(): Array<ItemValue>;
8916
9034
  /*
8917
- * Use this and choicesMax property to automatically add choices. For example choicesMin = 1 and choicesMax = 10 will generate ten additional choices from 1 to 10.
9035
+ * Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
9036
+ *
9037
+ * ```js
9038
+ * "choicesMin": 10,
9039
+ * "choicesMax": 30
9040
+ * "choicesStep": 10
9041
+ * ```
8918
9042
  */
8919
9043
  get choicesMin(): number;
8920
9044
  set choicesMin(val: number);
8921
9045
  /*
8922
- * Use this and choicesMax property to automatically add choices. For example choicesMin = 1 and choicesMax = 10 will generate ten additional choices from 1 to 10.
9046
+ * Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
9047
+ *
9048
+ * ```js
9049
+ * "choicesMin": 10,
9050
+ * "choicesMax": 30
9051
+ * "choicesStep": 10
9052
+ * ```
8923
9053
  */
8924
9054
  get choicesMax(): number;
8925
9055
  set choicesMax(val: number);
8926
9056
  /*
8927
- * The default value is 1. It tells the value of the iterator between choicesMin and choicesMax properties.
8928
- * If choicesMin = 10, choicesMax = 30 and choicesStep = 10 then you will have only three additional choices: [10, 20, 30].
9057
+ * Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
9058
+ *
9059
+ * ```js
9060
+ * "choicesMin": 10,
9061
+ * "choicesMax": 30
9062
+ * "choicesStep": 10
9063
+ * ```
9064
+ *
9065
+ * The default value of the `choicesStep` property is 1.
8929
9066
  */
8930
9067
  get choicesStep(): number;
8931
9068
  set choicesStep(val: number);
8932
9069
  /*
8933
- * Dropdown auto complete
9070
+ * An [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute value for the underlying `<input>` element.
8934
9071
  */
8935
9072
  get autoComplete(): string;
8936
9073
  set autoComplete(val: string);
@@ -8942,12 +9079,6 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
8942
9079
  * Specifies whether users can enter a value into the input field to filter the drop-down list.
8943
9080
  */
8944
9081
  searchEnabled: boolean;
8945
- /*
8946
- * The clean files button caption.
8947
- */
8948
- get cleanButtonCaption(): string;
8949
- set cleanButtonCaption(val: string);
8950
- get locCleanButtonCaption(): LocalizableString;
8951
9082
  inputHasValue: boolean;
8952
9083
  readOnlyText: string;
8953
9084
  getControlClass(): string;
@@ -9473,7 +9604,9 @@ export declare class QuestionButtonGroupModel extends QuestionCheckboxBase {
9473
9604
  supportOther(): boolean;
9474
9605
  }
9475
9606
  /*
9476
- * A Model for a checkbox question
9607
+ * A class that describes the Checkbox question type.
9608
+ *
9609
+ * [View Demo](https://surveyjs.io/form-library/examples/questiontype-checkbox/ (linkStyle))
9477
9610
  */
9478
9611
  export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
9479
9612
  constructor(name: string);
@@ -9485,52 +9618,56 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
9485
9618
  protected onCreating(): void;
9486
9619
  protected getFirstInputElementId(): string;
9487
9620
  /*
9488
- * Set this property if you want to store the checkbox value as array of objects instead of array of values
9489
- * For example: if "valuePropertyName" equals car, then instead of having ["Ford", "Tesla"], you will have [{car: "Ford"}, {car: "Tesla"}]
9621
+ * Specifies a property name used to store selected values.
9622
+ *
9623
+ * Set this property if you want to store selected values in an array of objects instead of an array of primitive values. For example, if you set `valuePropertyName` to `"car"`, the `value` property will contain an array of objects `[{ car: "Ford" }, { car: "Tesla" }]`, not an array of string values `[ "Ford", "Tesla" ]`.
9490
9624
  */
9491
9625
  get valuePropertyName(): string;
9492
9626
  set valuePropertyName(val: string);
9493
9627
  getQuestionFromArray(name: string, index: number): IQuestion;
9494
9628
  /*
9495
- * Returns the select all item. By using this property, you may change programmatically it's value and text.
9629
+ * Returns the "Select All" choice item. Use this property to change the item's `value` or `text`.
9496
9630
  */
9497
9631
  get selectAllItem(): ItemValue;
9498
9632
  /*
9499
- * Use this property to set the different text for Select All item.
9633
+ * Gets or sets a caption for the "Select All" choice item.
9500
9634
  */
9501
9635
  get selectAllText(): string;
9502
9636
  set selectAllText(val: string);
9503
9637
  get locSelectAllText(): LocalizableString;
9504
9638
  /*
9505
- * Set this property to true, to show the "Select All" item on the top. If end-user checks this item, then all items are checked.
9639
+ * Enable this property to display a "Select All" item. When users select it, all other choice items, except "Other" and "None", also become selected.
9506
9640
  */
9641
+ get showSelectAllItem(): boolean;
9642
+ set showSelectAllItem(val: boolean);
9507
9643
  get hasSelectAll(): boolean;
9508
9644
  set hasSelectAll(val: boolean);
9509
9645
  /*
9510
- * Returns true if all items are selected
9646
+ * Returns `true` if all choice items, except "Other" and "None", are selected.
9511
9647
  */
9512
9648
  get isAllSelected(): boolean;
9513
9649
  set isAllSelected(val: boolean);
9514
- /*
9515
- * It will select all items, except other and none. If all items have been already selected then it will clear the value
9516
- */
9517
9650
  toggleSelectAll(): void;
9518
9651
  /*
9519
- * Select all items, except other and none.
9652
+ * Selects all choice items, except "Other" and "None".
9653
+ *
9654
+ * To clear selection, call the `clearValue()` method.
9520
9655
  */
9521
9656
  selectAll(): void;
9657
+ protected isItemSelectedCore(item: ItemValue): boolean;
9522
9658
  /*
9523
- * Returns true if item is checked
9524
- */
9525
- isItemSelectedCore(item: ItemValue): boolean;
9526
- /*
9527
- * Set this property different to 0 to limit the number of selected choices in the checkbox.
9659
+ * Sets a limit on the number of selected choices.
9660
+ *
9661
+ * Default value: 0 (unlimited)
9662
+ *
9663
+ * > NOTE: This property only limits the number of choice items that can be selected by users. You can select any number of choice items in code, regardless of the `maxSelectedChoices` value.
9528
9664
  */
9529
9665
  get maxSelectedChoices(): number;
9530
9666
  set maxSelectedChoices(val: number);
9531
9667
  /*
9532
- * Return the selected items in the checkbox. Returns empty array if the value is empty
9668
+ * An array of selected choice items. Includes the "Other" and "None" choice items if they are selected, but not "Select All". Items are sorted in the order they were selected.
9533
9669
  */
9670
+ get selectedChoices(): any;
9534
9671
  get selectedItems(): any;
9535
9672
  protected onEnableItemCallBack(item: ItemValue): boolean;
9536
9673
  protected onAfterRunItemsEnableCondition(): void;
@@ -9546,9 +9683,6 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
9546
9683
  protected supportSelectAll(): boolean;
9547
9684
  protected addToVisibleChoices(items: any, isAddAll: boolean): void;
9548
9685
  protected isHeadChoice(item: ItemValue, question: QuestionSelectBase): boolean;
9549
- /*
9550
- * For internal use in SurveyJS Creator V2.
9551
- */
9552
9686
  isItemInList(item: ItemValue): boolean;
9553
9687
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
9554
9688
  protected clearIncorrectValuesCore(): void;
@@ -9878,6 +10012,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
9878
10012
  domNode: any;
9879
10013
  protected getDefaultItemComponent(): string;
9880
10014
  getType(): string;
10015
+ getItemTabIndex(item: ItemValue): number;
9881
10016
  get rootClass(): string;
9882
10017
  protected getItemClassCore(item: ItemValue, options: any): string;
9883
10018
  protected isItemCurrentDropTarget(item: ItemValue): boolean;
@@ -9938,17 +10073,14 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
9938
10073
  */
9939
10074
  hideSelectedItems: boolean;
9940
10075
  /*
9941
- * The clean files button caption.
9942
- */
9943
- get cleanButtonCaption(): string;
9944
- set cleanButtonCaption(val: string);
9945
- get locCleanButtonCaption(): LocalizableString;
9946
- /*
9947
10076
  * A text displayed in the input field when it doesn't have a value.
9948
10077
  */
9949
10078
  get placeholder(): string;
9950
10079
  set placeholder(val: string);
9951
10080
  get locPlaceholder(): LocalizableString;
10081
+ get cleanCaption(): string;
10082
+ set cleanCaption(val: string);
10083
+ get locCleanCaption(): LocalizableString;
9952
10084
  getType(): string;
9953
10085
  get popupModel(): any;
9954
10086
  getControlClass(): string;
@@ -9967,10 +10099,11 @@ export declare function doKey2ClickUp(evt: any, options?: IAttachKey2clickOption
9967
10099
  export declare function doKey2ClickDown(evt: any, options?: IAttachKey2clickOptions): void;
9968
10100
  export declare function sanitizeEditableContent(element: any): void;
9969
10101
  export declare function createDialogOptions(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
9970
- export declare function createPopupModalViewModel(options: IDialogOptions): PopupBaseViewModel;
9971
10102
  export declare function createDropdownActionModel(actionOptions: IAction, dropdownOptions: IActionDropdownPopupOptions, locOwner?: any): Action;
9972
10103
  export declare function createDropdownActionModelAdvanced(actionOptions: IAction, listOptions: IListModel, popupOptions?: IPopupOptionsBase, locOwner?: any): Action;
9973
10104
  export declare function getCurrecyCodes(): Array<any>;
10105
+ export declare function createPopupModalViewModel(options: IDialogOptions): PopupBaseViewModel;
10106
+ export declare function createPopupViewModel(model: any, targetElement: any): PopupBaseViewModel;
9974
10107
  export declare function checkLibraryVersion(ver: string, libraryName: string): void;
9975
10108
  export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
9976
10109
  export declare function showDialog(dialogOptions: any): void;
@@ -10033,6 +10166,10 @@ export declare var settings: {
10033
10166
  */
10034
10167
  defaultLocaleName: string,
10035
10168
  /*
10169
+ * By default we do not store a value for a locale if it equals to "default" locale value
10170
+ */
10171
+ storeDuplicatedTranslations: boolean,
10172
+ /*
10036
10173
  * Default row name for matrix (single choice)
10037
10174
  */
10038
10175
  matrixDefaultRowName: string,
@@ -10235,7 +10372,6 @@ export declare var defaultListCss: {
10235
10372
  emptyContainer: string,
10236
10373
  emptyText: string,
10237
10374
  };
10238
- export declare var FOCUS_INPUT_SELECTOR: any;
10239
10375
  export declare var surveyCss: {
10240
10376
  currentType: string,
10241
10377
  getCss: any,
@@ -10629,6 +10765,7 @@ export declare var youtubeUrl: any;
10629
10765
  export declare var youtubeEmbed: any;
10630
10766
  export declare var defaultWidth: number;
10631
10767
  export declare var defaultHeight: number;
10768
+ export declare var FOCUS_INPUT_SELECTOR: any;
10632
10769
  export declare var Version: string;
10633
10770
  export declare var defaultBootstrapCss: {
10634
10771
  root: string,