survey-react 1.9.103 → 1.9.104

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.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.103
2
+ * surveyjs - Survey JavaScript library v1.9.104
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.react.d.ts CHANGED
@@ -994,8 +994,9 @@ declare module "utils/cssClassBuilder" {
994
994
  declare module "utils/utils" {
995
995
  function compareVersions(a: any, b: any): number;
996
996
  function confirmAction(message: string): boolean;
997
+ function confirmActionAsync(message: string, funcOnYes: () => void, funcOnNo?: () => void): void;
997
998
  function detectIEBrowser(): boolean;
998
- function detectIEOrEdge(): any;
999
+ function detectIEOrEdge(): boolean;
999
1000
  function loadFileFromBase64(b64Data: string, fileName: string): void;
1000
1001
  function isMobile(): boolean;
1001
1002
  const isShadowDOM: (rootElement: Document | ShadowRoot | HTMLElement) => rootElement is ShadowRoot;
@@ -1032,7 +1033,7 @@ declare module "utils/utils" {
1032
1033
  log(action: string): void;
1033
1034
  get result(): string;
1034
1035
  }
1035
- export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, };
1036
+ export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, };
1036
1037
  }
1037
1038
  declare module "actions/container" {
1038
1039
  import { Base } from "base";
@@ -1927,6 +1928,7 @@ declare module "defaultCss/defaultV2Css" {
1927
1928
  mainRoot: string;
1928
1929
  tableWrapper: string;
1929
1930
  root: string;
1931
+ noHeader: string;
1930
1932
  rootVerticalAlignTop: string;
1931
1933
  rootVerticalAlignMiddle: string;
1932
1934
  rootAlternateRows: string;
@@ -1953,6 +1955,7 @@ declare module "defaultCss/defaultV2Css" {
1953
1955
  mainRoot: string;
1954
1956
  rootScroll: string;
1955
1957
  root: string;
1958
+ noHeader: string;
1956
1959
  rootVerticalAlignTop: string;
1957
1960
  rootVerticalAlignMiddle: string;
1958
1961
  tableWrapper: string;
@@ -1965,6 +1968,7 @@ declare module "defaultCss/defaultV2Css" {
1965
1968
  row: string;
1966
1969
  headerCell: string;
1967
1970
  rowTextCell: string;
1971
+ columnTitleCell: string;
1968
1972
  cellRequiredText: string;
1969
1973
  detailButton: string;
1970
1974
  detailButtonExpanded: string;
@@ -1972,7 +1976,9 @@ declare module "defaultCss/defaultV2Css" {
1972
1976
  detailIconExpanded: string;
1973
1977
  detailIconId: string;
1974
1978
  detailIconExpandedId: string;
1979
+ detailPanelCell: string;
1975
1980
  actionsCell: string;
1981
+ actionsCellDrag: string;
1976
1982
  emptyCell: string;
1977
1983
  verticalCell: string;
1978
1984
  cellQuestionWrapper: string;
@@ -1983,6 +1989,7 @@ declare module "defaultCss/defaultV2Css" {
1983
1989
  rootScroll: string;
1984
1990
  empty: string;
1985
1991
  root: string;
1992
+ noHeader: string;
1986
1993
  tableWrapper: string;
1987
1994
  content: string;
1988
1995
  cell: string;
@@ -1990,6 +1997,7 @@ declare module "defaultCss/defaultV2Css" {
1990
1997
  itemCell: string;
1991
1998
  headerCell: string;
1992
1999
  rowTextCell: string;
2000
+ columnTitleCell: string;
1993
2001
  cellRequiredText: string;
1994
2002
  button: string;
1995
2003
  detailRow: string;
@@ -2001,6 +2009,7 @@ declare module "defaultCss/defaultV2Css" {
2001
2009
  detailIconExpandedId: string;
2002
2010
  detailPanelCell: string;
2003
2011
  actionsCell: string;
2012
+ actionsCellDrag: string;
2004
2013
  buttonAdd: string;
2005
2014
  buttonRemove: string;
2006
2015
  iconAdd: string;
@@ -2973,6 +2982,20 @@ declare module "panel" {
2973
2982
  get hasDescriptionUnderTitle(): boolean;
2974
2983
  get cssHeader(): string;
2975
2984
  get cssDescription(): string;
2985
+ /**
2986
+ * Specifies the error message position for questions that belong to this page/panel.
2987
+ *
2988
+ * Use this property to override the [`questionErrorLocation`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#questionErrorLocation) property specified for the survey. You can also set the [`errorLocation`](https://surveyjs.io/form-library/documentation/question#errorLocation) property for individual questions.
2989
+ *
2990
+ * Possible values:
2991
+ *
2992
+ * - `"default"` (default) - Inherits the setting from the `questionErrorLocation` property specified for the survey.
2993
+ * - `"top"` - Displays error messages above questions.
2994
+ * - `"bottom"` - Displays error messages below questions.
2995
+ */
2996
+ get questionErrorLocation(): string;
2997
+ set questionErrorLocation(val: string);
2998
+ getQuestionErrorLocation(): string;
2976
2999
  get no(): string;
2977
3000
  dispose(): void;
2978
3001
  }
@@ -3109,7 +3132,7 @@ declare module "question_file" {
3109
3132
  import { ActionContainer } from "actions/container";
3110
3133
  import { Action } from "actions/action";
3111
3134
  /**
3112
- * A class that describes the File question type.
3135
+ * A class that describes the File Upload question type.
3113
3136
  *
3114
3137
  * [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
3115
3138
  */
@@ -3271,7 +3294,9 @@ declare module "question_file" {
3271
3294
  onDragLeave: (event: any) => void;
3272
3295
  doChange: (event: any) => void;
3273
3296
  doClean: (event: any) => void;
3297
+ private clearFilesCore;
3274
3298
  doRemoveFile(data: any): void;
3299
+ private removeFileCore;
3275
3300
  doDownloadFile: (event: any, data: any) => void;
3276
3301
  }
3277
3302
  export class FileLoader {
@@ -3462,7 +3487,7 @@ declare module "question_baseselect" {
3462
3487
  import { LocalizableString } from "localizablestring";
3463
3488
  import { HashTable } from "helpers";
3464
3489
  /**
3465
- * 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.).
3490
+ * A base class for multiple-choice question types ([Checkboxes](https://surveyjs.io/form-library/documentation/questioncheckboxmodel), [Dropdown](https://surveyjs.io/form-library/documentation/questiondropdownmodel), [Radio Button Group](https://surveyjs.io/form-library/documentation/questionradiogroupmodel), etc.).
3466
3491
  */
3467
3492
  export class QuestionSelectBase extends Question {
3468
3493
  visibleChoicesChangedCallback: () => void;
@@ -3649,11 +3674,11 @@ declare module "question_baseselect" {
3649
3674
  get choices(): Array<any>;
3650
3675
  set choices(newValue: Array<any>);
3651
3676
  /**
3652
- * Inherits choice items from a specified question. Accepts a question name.
3677
+ * Copies choice items from a specified question. Accepts a question name.
3653
3678
  *
3654
- * If you specify this property, the `choices`, `choicesVisibleIf`, `choicesEnableIf`, and `choicesOrder` properties do not apply because their values are inherited.
3679
+ * If you specify this property, the `choices`, `choicesVisibleIf`, `choicesEnableIf`, and `choicesOrder` properties do not apply because their values are copied.
3655
3680
  *
3656
- * In addition, you can specify the `choicesFromQuestionMode` property if you do not want to inherit all choice items.
3681
+ * In addition, you can specify the `choicesFromQuestionMode` property if you do not want to copy all choice items.
3657
3682
  * @see choicesFromQuestionMode
3658
3683
  * @see choices
3659
3684
  */
@@ -3661,22 +3686,32 @@ declare module "question_baseselect" {
3661
3686
  set choicesFromQuestion(val: string);
3662
3687
  private isLockVisibleChoices;
3663
3688
  /**
3664
- * Specifies which choice items to inherit from another question. Applies only when the `choicesFromQuestion` property is specified.
3689
+ * Specifies which choice items to copy from another question. Applies only when the `choicesFromQuestion` property is specified.
3665
3690
  *
3666
3691
  * Possible values:
3667
3692
  *
3668
- * - `"all"` (default) - Inherits all choice items.
3669
- * - `"selected"` - Inherits only selected choice items.
3670
- * - `"unselected"` - Inherits only unselected choice items.
3693
+ * - `"all"` (default) - Copies all choice items.
3694
+ * - `"selected"` - Copies only selected choice items.
3695
+ * - `"unselected"` - Copies only unselected choice items.
3671
3696
  *
3672
- * Use the `visibleChoices` property to access inherited choice items.
3697
+ * Use the `visibleChoices` property to access copied choice items.
3673
3698
  * @see choicesFromQuestion
3674
3699
  * @see visibleChoices
3675
3700
  */
3676
3701
  get choicesFromQuestionMode(): string;
3677
3702
  set choicesFromQuestionMode(val: string);
3703
+ /**
3704
+ * Specifies which matrix column or dynamic panel question supplies choice values. Use this property to construct choice items based on cell values in Dynamic Matrix and question values in Dynamic Panel.
3705
+ *
3706
+ * Each choice item consists of a value saved in survey results and a text displayed in the UI. To construct a choice item, assign the `name` of a Dynamic Matrix or Dynamic Panel to the [`choicesFromQuestion`](#choicesFromQuestion) property and specify which dynamic panel question or matrix column supplies values and which provides texts. Use the `choiceValuesFromQuestion` and [`choiceTextsFromQuestion`](#choiceTextsFromQuestion) properties for this purpose. If a choice text is empty, a choice value is used as a display text and saved in survey results.
3707
+ */
3678
3708
  get choiceValuesFromQuestion(): string;
3679
3709
  set choiceValuesFromQuestion(val: string);
3710
+ /**
3711
+ * Specifies which matrix column or dynamic panel question supplies choice texts. Use this property to construct choice items based on cell values in Dynamic Matrix and question values in Dynamic Panel.
3712
+ *
3713
+ * Each choice item consists of a value saved in survey results and a text displayed in the UI. To construct a choice item, assign the `name` of a Dynamic Matrix or Dynamic Panel to the [`choicesFromQuestion`](#choicesFromQuestion) property and specify which dynamic panel question or matrix column supplies values and which provides texts. Use the [`choiceValuesFromQuestion`](#choiceValuesFromQuestion) and `choiceTextsFromQuestion` properties for this purpose. If a choice text is empty, a choice value is used as a display text and saved in survey results.
3714
+ */
3680
3715
  get choiceTextsFromQuestion(): string;
3681
3716
  set choiceTextsFromQuestion(val: string);
3682
3717
  /**
@@ -4796,6 +4831,7 @@ declare module "question_matrixdynamic" {
4796
4831
  * @param confirmDelete *Optional.* A Boolean value that specifies whether to display a confirmation dialog. If you do not specify this parameter, the [`confirmDelete`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#confirmDelete) property value is used.
4797
4832
  */
4798
4833
  removeRow(index: number, confirmDelete?: boolean): void;
4834
+ private removeRowAsync;
4799
4835
  private removeRowCore;
4800
4836
  /**
4801
4837
  * A message displayed in a confirmation dialog that appears when a respondent wants to delete a row.
@@ -5278,6 +5314,17 @@ declare module "question_paneldynamic" {
5278
5314
  */
5279
5315
  get templateTitleLocation(): string;
5280
5316
  set templateTitleLocation(value: string);
5317
+ /**
5318
+ * Specifies the error message position.
5319
+ *
5320
+ * Possible values:
5321
+ *
5322
+ * - `"default"` (default) - Inherits the setting from the [`errorLocation`](#errorLocation) property.
5323
+ * - `"top"` - Displays error messages above questions.
5324
+ * - `"bottom"` - Displays error messages below questions.
5325
+ */
5326
+ get templateErrorLocation(): string;
5327
+ set templateErrorLocation(value: string);
5281
5328
  /**
5282
5329
  * Use this property to show/hide the numbers in titles in questions inside a dynamic panel.
5283
5330
  * By default the value is "off". You may set it to "onPanel" and the first question inside a dynamic panel will start with 1 or "onSurvey" to include nested questions in dymamic panels into global survey question numbering.
@@ -5459,6 +5506,7 @@ declare module "question_paneldynamic" {
5459
5506
  protected createNewPanel(): PanelModel;
5460
5507
  protected createAndSetupNewPanelObject(): PanelModel;
5461
5508
  private getTemplateQuestionTitleLocation;
5509
+ getChildErrorLocation(child: Question): string;
5462
5510
  protected createNewPanelObject(): PanelModel;
5463
5511
  private settingPanelCountBasedOnValue;
5464
5512
  private setPanelCountBasedOnValue;
@@ -5619,9 +5667,12 @@ declare module "survey-events-api" {
5619
5667
  }
5620
5668
  export interface CompleteBaseEvent {
5621
5669
  /**
5622
- * Returns `true` if survey completion is caused by the ["complete" trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#complete).
5670
+ * Returns `true` if survey completion is caused by a ["complete" trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#complete).
5623
5671
  */
5624
5672
  isCompleteOnTrigger: boolean;
5673
+ /**
5674
+ * A "complete" trigger that has been executed. This parameter has a value only if `options.isCompleteOnTrigger` is `true`.
5675
+ */
5625
5676
  completeTrigger?: Trigger;
5626
5677
  }
5627
5678
  export interface CompletingEvent extends CompleteBaseEvent {
@@ -6838,7 +6889,7 @@ declare module "question_textbase" {
6838
6889
  updateRemainingCharacterCounter(newValue: string, maxLength: number): void;
6839
6890
  }
6840
6891
  /**
6841
- * A base class for the [Text](https://surveyjs.io/form-library/documentation/questiontextmodel) and [Comment](https://surveyjs.io/form-library/documentation/questioncommentmodel) question types.
6892
+ * A base class for the [Single-Line Input](https://surveyjs.io/form-library/documentation/questiontextmodel) and [Long Text](https://surveyjs.io/form-library/documentation/questioncommentmodel) question types.
6842
6893
  */
6843
6894
  export class QuestionTextBase extends Question {
6844
6895
  constructor(name: string);
@@ -6909,7 +6960,7 @@ declare module "question_text" {
6909
6960
  import { SurveyError } from "survey-error";
6910
6961
  import { QuestionTextBase } from "question_textbase";
6911
6962
  /**
6912
- * A class that describes the Text question type.
6963
+ * A class that describes the Single-Line Input question type.
6913
6964
  *
6914
6965
  * [View Demo](https://surveyjs.io/form-library/examples/questiontype-text/ (linkStyle))
6915
6966
  */
@@ -6926,6 +6977,7 @@ declare module "question_text" {
6926
6977
  */
6927
6978
  get inputType(): string;
6928
6979
  set inputType(val: string);
6980
+ getMaxLength(): any;
6929
6981
  runCondition(values: HashTable<any>, properties: HashTable<any>): void;
6930
6982
  isLayoutTypeSupported(layoutType: string): boolean;
6931
6983
  /**
@@ -7054,7 +7106,7 @@ declare module "question_multipletext" {
7054
7106
  get a11y_input_ariaLabelledBy(): string;
7055
7107
  }
7056
7108
  /**
7057
- * A class that describes an item in a [Multiple Text](https://surveyjs.io/form-library/documentation/api-reference/multiple-text-entry-question-model) question.
7109
+ * A class that describes an item in a [Multiple Textboxes](https://surveyjs.io/form-library/documentation/api-reference/multiple-text-entry-question-model) question.
7058
7110
  *
7059
7111
  * [View Demo](/form-library/examples/multiple-text-box-question/)
7060
7112
  */
@@ -7207,6 +7259,19 @@ declare module "question_multipletext" {
7207
7259
  getConditionJson(operator?: string, path?: string): any;
7208
7260
  locStrsChanged(): void;
7209
7261
  localeChanged(): void;
7262
+ /**
7263
+ * Specifies the error message position relative to individual input fields.
7264
+ *
7265
+ * Possible values:
7266
+ *
7267
+ * - `"default"` (default) - Inherits the setting from the [`errorLocation`](#errorLocation) property.
7268
+ * - `"top"` - Displays error messages above input fields.
7269
+ * - `"bottom"` - Displays error messages below input fields.
7270
+ */
7271
+ get itemErrorLocation(): string;
7272
+ set itemErrorLocation(val: string);
7273
+ getQuestionErrorLocation(): string;
7274
+ getChildErrorLocation(child: Question): string;
7210
7275
  protected isNewValueCorrect(val: any): boolean;
7211
7276
  supportGoNextPageAutomatic(): boolean;
7212
7277
  /**
@@ -8244,7 +8309,7 @@ declare module "survey" {
8244
8309
  *
8245
8310
  * If you enable this property, the survey is also completed automatically. Set the [`allowCompleteSurveyAutomatic`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#allowCompleteSurveyAutomatic) property to `false` if you want to disable this behavior.
8246
8311
  *
8247
- * > If any of the following questions is answered last, the survey does not switch to the next page: Checkbox, Boolean (rendered as Checkbox), Comment, Signature Pad, Image Picker (with Multi Select), File, Single-Choice Matrix (not all rows are answered), Dynamic Matrix, Panel Dynamic.
8312
+ * > If any of the following questions is answered last, the survey does not switch to the next page: Checkboxes, Yes/No (Boolean) (rendered as Checkbox), Long Text, Signature, Image Picker (with Multi Select), File Upload, Single-Select Matrix (not all rows are answered), Dynamic Matrix, Dynamic Panel.
8248
8313
  *
8249
8314
  * [View Demo](https://surveyjs.io/form-library/examples/automatically-move-to-next-page-if-answer-selected/ (linkStyle))
8250
8315
  */
@@ -8475,9 +8540,7 @@ declare module "survey" {
8475
8540
  * An image to display in the background of the survey or form. Accepts a base64 or URL string value.
8476
8541
  * @see backgroundOpacity
8477
8542
  */
8478
- get backgroundImage(): string;
8479
- set backgroundImage(value: string);
8480
- get locBackgroundImage(): LocalizableString;
8543
+ backgroundImage: string;
8481
8544
  renderBackgroundImage: string;
8482
8545
  private updateRenderBackgroundImage;
8483
8546
  backgroundImageFit: ImageFit;
@@ -8688,12 +8751,14 @@ declare module "survey" {
8688
8751
  set questionTitleLocation(value: string);
8689
8752
  updateElementCss(reNew?: boolean): void;
8690
8753
  /**
8691
- * Gets or sets the error message position.
8754
+ * Specifies the error message position.
8692
8755
  *
8693
- * The following options are available:
8756
+ * Possible values:
8757
+ *
8758
+ * - `"top"` (default) - Displays error messages above questions.
8759
+ * - `"bottom"` - Displays error messages below questions.
8694
8760
  *
8695
- * - `top` - to show question error(s) over the question,
8696
- * - `bottom` - to show question error(s) under the question.
8761
+ * You can override this setting if you specify the `questionErrorLocation` property for an [individual page](https://surveyjs.io/form-library/documentation/pagemodel#questionErrorLocation) or [panel](https://surveyjs.io/form-library/documentation/panelmodel#questionErrorLocation) or set the `errorLocation` property for a [specific question](https://surveyjs.io/form-library/documentation/question#errorLocation).
8697
8762
  */
8698
8763
  get questionErrorLocation(): string;
8699
8764
  set questionErrorLocation(value: string);
@@ -9227,6 +9292,7 @@ declare module "survey" {
9227
9292
  * The `doComplete()` method completes the survey regardless of validation errors and the current page. If you need to ensure that survey results are valid and full, call the [`completeLastPage()`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#completeLastPage) method instead.
9228
9293
  *
9229
9294
  * @param isCompleteOnTrigger For internal use.
9295
+ * @param completeTrigger For internal use.
9230
9296
  * @returns `false` if survey completion is cancelled within the [`onCompleting`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onCompleting) event handler; otherwise, `true`.
9231
9297
  * @see surveyPostId
9232
9298
  */
@@ -10638,7 +10704,19 @@ declare module "question" {
10638
10704
  get hasTitleOnTop(): boolean;
10639
10705
  get hasTitleOnBottom(): boolean;
10640
10706
  get hasTitleOnLeftTop(): boolean;
10707
+ /**
10708
+ * Specifies the error message position. Overrides the `questionErrorLocation` property specified for the question's container ([survey](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#questionErrorLocation), [page](https://surveyjs.io/form-library/documentation/api-reference/page-model#questionErrorLocation), or [panel](https://surveyjs.io/form-library/documentation/api-reference/panel-model#questionErrorLocation)).
10709
+ *
10710
+ * Possible values:
10711
+ *
10712
+ * - `"default"` (default) - Inherits the setting from the `questionErrorLocation` property specified for the question's container.
10713
+ * - `"top"` - Displays error messages above questions.
10714
+ * - `"bottom"` - Displays error messages below questions.
10715
+ */
10641
10716
  get errorLocation(): string;
10717
+ set errorLocation(val: string);
10718
+ getErrorLocation(): string;
10719
+ getChildErrorLocation(child: Question): string;
10642
10720
  /**
10643
10721
  * Returns `false` if the question has no input fields ([HTML](https://surveyjs.io/form-library/documentation/questionhtmlmodel), [Image](https://surveyjs.io/form-library/documentation/questionimagemodel), and similar question types).
10644
10722
  * @see hasSingleInput
@@ -10867,8 +10945,32 @@ declare module "question" {
10867
10945
  get isValueArray(): boolean;
10868
10946
  /**
10869
10947
  * Gets or sets the question value.
10870
- * @see SurveyModel.setValue
10871
- * @see SurveyModel.getValue
10948
+ *
10949
+ * The following table illustrates how the value type depends on the question type:
10950
+ *
10951
+ * | Question type | Value type(s) |
10952
+ * | ------------- | ------------- |
10953
+ * | Checkboxes | `Array<String \| Number>` |
10954
+ * | Dropdown | `String` \| `Number` |
10955
+ * | Dynamic Matrix | `Array<Object>` |
10956
+ * | Dynamic Panel | `Array<Object>` |
10957
+ * | Expression | `String` \| `Number` \| `Boolean` |
10958
+ * | File Upload | `File` \| `Array<File>` |
10959
+ * | HTML | (no value) |
10960
+ * | Image | (no value) |
10961
+ * | Image Picker | `Array<String \| Number>` |
10962
+ * | Long Text | `String` |
10963
+ * | Multi-Select Dropdown | `Object` |
10964
+ * | Multi-Select Matrix | `Object` |
10965
+ * | Multiple Textboxes | `Array<String>` |
10966
+ * | Panel | (no value) |
10967
+ * | Radio Button Group | `String` \| `Number` |
10968
+ * | Ranking | `Array<String \| Number>` |
10969
+ * | Rating Scale | `Number` \| `String` |
10970
+ * | Signature | `String` (base64-encoded image) |
10971
+ * | Single-Line Input | `String` \| `Number` \| `Date` |
10972
+ * | Single-Select Matrix | `Object` |
10973
+ * | Yes/No (Boolean) | `Boolean` \| `String` |
10872
10974
  */
10873
10975
  get value(): any;
10874
10976
  set value(newValue: any);
@@ -11462,6 +11564,31 @@ declare module "question_matrixdropdownbase" {
11462
11564
  set columnLayout(val: string);
11463
11565
  get columnsLocation(): string;
11464
11566
  set columnsLocation(val: string);
11567
+ /**
11568
+ * Specifies the error message position for question within detail sections.
11569
+ *
11570
+ * Possible values:
11571
+ *
11572
+ * - `"default"` (default) - Inherits the setting from the [`errorLocation`](#errorLocation) property.
11573
+ * - `"top"` - Displays error messages above questions.
11574
+ * - `"bottom"` - Displays error messages below questions.
11575
+ * @see cellErrorLocation
11576
+ */
11577
+ get detailErrorLocation(): string;
11578
+ set detailErrorLocation(value: string);
11579
+ /**
11580
+ * Specifies the error message position relative to matrix cells.
11581
+ *
11582
+ * Possible values:
11583
+ *
11584
+ * - `"default"` (default) - Inherits the setting from the [`errorLocation`](#errorLocation) property.
11585
+ * - `"top"` - Displays error messages above matrix cells.
11586
+ * - `"bottom"` - Displays error messages below matrix cells.
11587
+ * @see detailErrorLocation
11588
+ */
11589
+ get cellErrorLocation(): string;
11590
+ set cellErrorLocation(value: string);
11591
+ getChildErrorLocation(child: Question): string;
11465
11592
  /**
11466
11593
  * Returns `true` if columns are placed in the horizontal direction and rows in the vertical direction.
11467
11594
  *
@@ -11986,6 +12113,7 @@ declare module "base-interfaces" {
11986
12113
  getChildrenLayoutType(): string;
11987
12114
  getQuestionTitleLocation(): string;
11988
12115
  getQuestionStartIndex(): string;
12116
+ getQuestionErrorLocation(): string;
11989
12117
  parent: IPanel;
11990
12118
  elementWidthChanged(el: IElement): any;
11991
12119
  indexOf(el: IElement): number;
@@ -12330,7 +12458,9 @@ declare module "base" {
12330
12458
  * @param defaultValue (Optional) A value to return if the property is not found or does not have a value.
12331
12459
  */
12332
12460
  getPropertyValue(name: string, defaultValue?: any): any;
12333
- private getDefaultValueFromProperty;
12461
+ getDefaultPropertyValue(name: string): any;
12462
+ hasDefaultPropertyValue(name: string): boolean;
12463
+ resetPropertyValue(name: string): void;
12334
12464
  protected getPropertyValueWithoutDefault(name: string): any;
12335
12465
  protected getPropertyValueCore(propertiesHash: any, name: string): any;
12336
12466
  geValueFromHash(): any;
@@ -12927,10 +13057,20 @@ declare module "settings" {
12927
13057
  */
12928
13058
  tagboxCloseOnSelect: boolean;
12929
13059
  /**
12930
- * A property that allows you to display a custom confirm dialog instead of the standard browser dialog. Set this property to a function that renders your custom dialog window.
13060
+ * A property that allows you to display a custom confirm dialog instead of the standard browser dialog.
13061
+ *
13062
+ * Set this property to a function that renders your custom dialog window. This function should return `true` if a user confirms an action or `false` otherwise.
12931
13063
  * @param message A message to be displayed in the confirm dialog window.
12932
13064
  */
12933
13065
  confirmActionFunc: (message: string) => boolean;
13066
+ /**
13067
+ * A property that allows you to display a custom confirm dialog instead of the standard browser dialog in async mode.
13068
+ *
13069
+ * Set this property to a function that renders your custom dialog window. This function should return `true` to be enabled; otherwise, a survey executes the [`confirmActionFunc`](#confirmActionFunc) function. Pass the dialog result as the `callback` parameter: `true` if a user confirms an action, `false` otherwise.
13070
+ * @param message A message to be displayed in the confirm dialog window.
13071
+ * @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
13072
+ */
13073
+ confirmActionAsync: (message: string, callback: (res: boolean) => void) => boolean;
12934
13074
  /**
12935
13075
  * A minimum width value for all survey elements.
12936
13076
  *
@@ -13064,7 +13204,7 @@ declare module "question_matrixdropdown" {
13064
13204
  get locText(): LocalizableString;
13065
13205
  }
13066
13206
  /**
13067
- * A class that describes the Multiple-Choice Matrix question type. Multiple-Choice Matrix allows you to use the [Dropdown](https://surveyjs.io/form-library/documentation/questiondropdownmodel), [Checkbox](https://surveyjs.io/form-library/documentation/questioncheckboxmodel), [Radiogroup](https://surveyjs.io/form-library/documentation/questionradiogroupmodel), [Text](https://surveyjs.io/form-library/documentation/questiontextmodel), and [Comment](https://surveyjs.io/form-library/documentation/questioncommentmodel) question types as cell editors.
13207
+ * A class that describes the Multi-Select Matrix question type. Multi-Select Matrix allows you to use the [Dropdown](https://surveyjs.io/form-library/documentation/questiondropdownmodel), [Checkbox](https://surveyjs.io/form-library/documentation/questioncheckboxmodel), [Radiogroup](https://surveyjs.io/form-library/documentation/questionradiogroupmodel), [Text](https://surveyjs.io/form-library/documentation/questiontextmodel), and [Comment](https://surveyjs.io/form-library/documentation/questioncommentmodel) question types as cell editors.
13068
13208
  *
13069
13209
  * [View Demo](https://surveyjs.io/form-library/examples/questiontype-matrixdropdown/ (linkStyle))
13070
13210
  */
@@ -13140,6 +13280,7 @@ declare module "dropdownListModel" {
13140
13280
  clear(): void;
13141
13281
  protected onSetFilterString(): void;
13142
13282
  get isAllDataLoaded(): boolean;
13283
+ get canShowSelectedItem(): boolean;
13143
13284
  searchEnabled: boolean;
13144
13285
  filterString: string;
13145
13286
  inputString: string;
@@ -13367,7 +13508,7 @@ declare module "question_matrix" {
13367
13508
  protected createString(): LocalizableString;
13368
13509
  }
13369
13510
  /**
13370
- * A class that describes the Single-Choice Matrix question type.
13511
+ * A class that describes the Single-Select Matrix question type.
13371
13512
  *
13372
13513
  * [View Demo](https://surveyjs.io/form-library/examples/single-selection-matrix-table-question/ (linkStyle))
13373
13514
  */
@@ -13547,7 +13688,7 @@ declare module "question_checkbox" {
13547
13688
  import { IQuestion } from "base-interfaces";
13548
13689
  import { SurveyError } from "survey-error";
13549
13690
  /**
13550
- * A class that describes the Checkbox question type.
13691
+ * A class that describes the Checkboxes question type.
13551
13692
  *
13552
13693
  * [View Demo](https://surveyjs.io/form-library/examples/questiontype-checkbox/ (linkStyle))
13553
13694
  */
@@ -13741,7 +13882,7 @@ declare module "question_tagbox" {
13741
13882
  import { EventBase } from "base";
13742
13883
  import { ItemValue } from "itemvalue";
13743
13884
  /**
13744
- * A Model for a tagbox question
13885
+ * A class that describes the Multi-Select Dropdown (Tag Box) question type.
13745
13886
  *
13746
13887
  * [View Demo](https://surveyjs.io/form-library/examples/how-to-create-multiselect-tag-box/ (linkStyle))
13747
13888
  */
@@ -14107,7 +14248,7 @@ declare module "question_ranking" {
14107
14248
  declare module "question_comment" {
14108
14249
  import { QuestionTextBase } from "question_textbase";
14109
14250
  /**
14110
- * A class that describes the Comment question type.
14251
+ * A class that describes the Long Text question type.
14111
14252
  *
14112
14253
  * [View Demo](https://surveyjs.io/form-library/examples/questiontype-comment/ (linkStyle))
14113
14254
  */
@@ -14161,7 +14302,7 @@ declare module "question_html" {
14161
14302
  import { QuestionNonValue } from "questionnonvalue";
14162
14303
  import { LocalizableString } from "localizablestring";
14163
14304
  /**
14164
- * A class that describes the Html question type. Unlike other question types, Html cannot have a title or value.
14305
+ * A class that describes the HTML question type. Unlike other question types, HTML cannot have a title or value.
14165
14306
  *
14166
14307
  * [View Demo](https://surveyjs.io/form-library/examples/questiontype-html/ (linkStyle))
14167
14308
  */
@@ -14188,7 +14329,7 @@ declare module "question_radiogroup" {
14188
14329
  import { ItemValue } from "itemvalue";
14189
14330
  import { Action } from "actions/action";
14190
14331
  /**
14191
- * A class that describes the Radiogroup question type.
14332
+ * A class that describes the Radio Button Group question type.
14192
14333
  *
14193
14334
  * [View Demo](https://surveyjs.io/form-library/examples/questiontype-radiogroup/ (linkStyle))
14194
14335
  */
@@ -14485,7 +14626,7 @@ declare module "question_boolean" {
14485
14626
  import { LocalizableString } from "localizablestring";
14486
14627
  import { ActionContainer } from "actions/container";
14487
14628
  /**
14488
- * A class that describes the Boolean question type.
14629
+ * A class that describes the Yes/No (Boolean) question type.
14489
14630
  *
14490
14631
  * [View Demo](https://surveyjs.io/form-library/examples/questiontype-boolean/ (linkStyle))
14491
14632
  */
@@ -14670,7 +14811,7 @@ declare module "question_signaturepad" {
14670
14811
  import { Question } from "question";
14671
14812
  import { ISurveyImpl } from "base-interfaces";
14672
14813
  /**
14673
- * A class that describes the Signature Page question type.
14814
+ * A class that describes the Signature question type.
14674
14815
  *
14675
14816
  * [View Demo](https://surveyjs.io/form-library/examples/signature-pad-widget-javascript/ (linkStyle))
14676
14817
  */
@@ -14908,7 +15049,9 @@ declare module "question_custom" {
14908
15049
  */
14909
15050
  title?: string;
14910
15051
  /**
14911
- * An icon name for the custom question type.
15052
+ * The name of an icon to use for the custom question type.
15053
+ *
15054
+ * [UI Icons](https://surveyjs.io/form-library/documentation/icons (linkStyle))
14912
15055
  */
14913
15056
  iconName?: string;
14914
15057
  /**
@@ -15151,6 +15294,7 @@ declare module "question_custom" {
15151
15294
  indexOf(el: IElement): number;
15152
15295
  ensureRowsVisibility(): void;
15153
15296
  validateContainerOnly(): void;
15297
+ getQuestionErrorLocation(): string;
15154
15298
  protected getContentDisplayValueCore(keyAsText: boolean, value: any, question: Question): any;
15155
15299
  }
15156
15300
  export class QuestionCustomModel extends QuestionCustomModelBase {
@@ -15483,7 +15627,7 @@ declare module "entries/chunks/model" {
15483
15627
  export { DropdownMultiSelectListModel } from "dropdownMultiSelectListModel";
15484
15628
  export { QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue } from "question_buttongroup";
15485
15629
  export { IsMobile, IsTouch, _setIsTouch } from "utils/devices";
15486
- export { confirmAction, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, IAttachKey2clickOptions } from "utils/utils";
15630
+ export { confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, IAttachKey2clickOptions } from "utils/utils";
15487
15631
  export * from "utils/cssClassBuilder";
15488
15632
  export { surveyCss, defaultV2Css, defaultV2ThemeName } from "defaultCss/defaultV2Css";
15489
15633
  export { DragDropCore } from "dragdrop/core";