survey-react 1.9.123 → 1.9.124

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
@@ -3946,6 +3946,8 @@ declare module "question_baseselect" {
3946
3946
  get isUsingCarryForward(): boolean;
3947
3947
  get carryForwardQuestionType(): string;
3948
3948
  private setCarryForwardQuestionType;
3949
+ get isUsingRestful(): boolean;
3950
+ updateIsUsingRestful(): void;
3949
3951
  supportGoNextPageError(): boolean;
3950
3952
  isLayoutTypeSupported(layoutType: string): boolean;
3951
3953
  localeChanged(): void;
@@ -4294,6 +4296,7 @@ declare module "question_baseselect" {
4294
4296
  private sortVisibleChoices;
4295
4297
  private sortArray;
4296
4298
  private randomizeArray;
4299
+ private get hasChoicesUrl();
4297
4300
  clearIncorrectValues(): void;
4298
4301
  protected hasValueToClearIncorrectValues(): boolean;
4299
4302
  protected clearValueIfInvisibleCore(reason: string): void;
@@ -4503,6 +4506,9 @@ declare module "validator" {
4503
4506
  */
4504
4507
  get regex(): string;
4505
4508
  set regex(val: string);
4509
+ get insensitive(): boolean;
4510
+ set insensitive(val: boolean);
4511
+ private createRegExp;
4506
4512
  }
4507
4513
  /**
4508
4514
  * Validate e-mail address in the text input
@@ -4809,6 +4815,11 @@ declare module "dragdrop/engine" {
4809
4815
  }
4810
4816
  declare module "utils/devices" {
4811
4817
  export const IsMobile: boolean;
4818
+ export var mouseInfo: {
4819
+ readonly isTouch: boolean;
4820
+ readonly hasTouchEvent: boolean;
4821
+ hasMouse: boolean;
4822
+ };
4812
4823
  export let IsTouch: boolean;
4813
4824
  export function _setIsTouch(val: boolean): void;
4814
4825
  }
@@ -4955,7 +4966,6 @@ declare module "question_matrixdropdownrendered" {
4955
4966
  choiceIndex: number;
4956
4967
  isOtherChoice: boolean;
4957
4968
  matrix: QuestionMatrixDropdownModelBase;
4958
- requiredText: string;
4959
4969
  isEmpty: boolean;
4960
4970
  colSpans: number;
4961
4971
  panel: PanelModel;
@@ -4966,6 +4976,7 @@ declare module "question_matrixdropdownrendered" {
4966
4976
  isDetailRowCell: boolean;
4967
4977
  private classNameValue;
4968
4978
  constructor();
4979
+ get requiredText(): string;
4969
4980
  get hasQuestion(): boolean;
4970
4981
  get hasTitle(): boolean;
4971
4982
  get hasPanel(): boolean;
@@ -5034,7 +5045,7 @@ declare module "question_matrixdropdownrendered" {
5034
5045
  isRequireReset(): boolean;
5035
5046
  get headerRow(): QuestionMatrixDropdownRenderedRow;
5036
5047
  get footerRow(): QuestionMatrixDropdownRenderedRow;
5037
- get allowRowsDragAndDrop(): boolean;
5048
+ get isRowsDragAndDrop(): boolean;
5038
5049
  private get showCellErrorsTop();
5039
5050
  private get showCellErrorsBottom();
5040
5051
  protected build(): void;
@@ -5083,8 +5094,6 @@ declare module "question_matrixdropdownrendered" {
5083
5094
  private createHeaderCell;
5084
5095
  private setHeaderCell;
5085
5096
  private setHeaderCellWidth;
5086
- private setRequriedToHeaderCell;
5087
- private createRemoveRowCell;
5088
5097
  private createTextCell;
5089
5098
  private createEmptyCell;
5090
5099
  }
@@ -5200,6 +5209,7 @@ declare module "question_matrixdynamic" {
5200
5209
  */
5201
5210
  get allowRowsDragAndDrop(): boolean;
5202
5211
  set allowRowsDragAndDrop(val: boolean);
5212
+ get isRowsDragAndDrop(): boolean;
5203
5213
  get iconDragElement(): string;
5204
5214
  protected createRenderedTable(): QuestionMatrixDropdownRenderedTable;
5205
5215
  private get rowCountValue();
@@ -9169,15 +9179,24 @@ declare module "survey" {
9169
9179
  * - `"none"` - Hides the navigation buttons. This setting may be useful if you [implement custom external navigation](https://surveyjs.io/form-library/examples/external-form-navigation-system/).
9170
9180
  * @see goNextPageAutomatic
9171
9181
  * @see showPrevButton
9182
+ * @see showCompleteButton
9172
9183
  */
9173
9184
  get showNavigationButtons(): string | any;
9174
9185
  set showNavigationButtons(val: string | any);
9175
9186
  /**
9176
9187
  * Specifies whether to display the Previous button. Set this property to `false` if respondents should not move backward along the survey.
9177
9188
  * @see showNavigationButtons
9189
+ * @see showCompleteButton
9178
9190
  */
9179
9191
  get showPrevButton(): boolean;
9180
9192
  set showPrevButton(val: boolean);
9193
+ /**
9194
+ * Specifies whether to display the Complete button. Set this property to `false` if respondents should not complete the survey.
9195
+ * @see showNavigationButtons
9196
+ * @see showPrevButton
9197
+ */
9198
+ get showCompleteButton(): boolean;
9199
+ set showCompleteButton(val: boolean);
9181
9200
  /**
9182
9201
  * Gets or sets the visibility of the table of contents.
9183
9202
  *
@@ -10779,6 +10798,7 @@ declare module "survey" {
10779
10798
  panelVisibilityChanged(panel: PanelModel, newValue: boolean): void;
10780
10799
  questionCreated(question: Question): any;
10781
10800
  questionAdded(question: Question, index: number, parentPanel: any, rootPanel: any): void;
10801
+ private canFireAddElement;
10782
10802
  questionRemoved(question: Question): void;
10783
10803
  questionRenamed(question: IQuestion, oldName: string, oldValueName: string): any;
10784
10804
  private questionHashes;
@@ -13890,6 +13910,7 @@ declare module "base" {
13890
13910
  * Returns `true` if the survey is being designed in Survey Creator.
13891
13911
  */
13892
13912
  get isDesignMode(): boolean;
13913
+ get isDesignModeV2(): boolean;
13893
13914
  /**
13894
13915
  * Returns `true` if the object is included in a survey.
13895
13916
  *
@@ -15004,6 +15025,11 @@ declare module "question_matrix" {
15004
15025
  private cellsValue;
15005
15026
  constructor(name: string);
15006
15027
  getType(): string;
15028
+ /**
15029
+ * The name of a component used to render cells.
15030
+ */
15031
+ get cellComponent(): string;
15032
+ set itemComponent(value: string);
15007
15033
  get hasSingleInput(): boolean;
15008
15034
  /**
15009
15035
  * Specifies whether each row requires an answer. If a respondent skips a row, the question displays a validation error.
@@ -16210,8 +16236,8 @@ declare module "question_boolean" {
16210
16236
  * @see valueTrue
16211
16237
  * @see valueFalse
16212
16238
  */
16213
- get labelTrue(): any;
16214
- set labelTrue(val: any);
16239
+ get labelTrue(): string;
16240
+ set labelTrue(val: string);
16215
16241
  get locLabelTrue(): LocalizableString;
16216
16242
  get isDeterminated(): boolean;
16217
16243
  /**
@@ -16221,8 +16247,8 @@ declare module "question_boolean" {
16221
16247
  * @see valueTrue
16222
16248
  * @see valueFalse
16223
16249
  */
16224
- get labelFalse(): any;
16225
- set labelFalse(val: any);
16250
+ get labelFalse(): string;
16251
+ set labelFalse(val: string);
16226
16252
  get locLabelFalse(): LocalizableString;
16227
16253
  /**
16228
16254
  * A value to save in survey results when respondents give a positive answer.
@@ -24622,14 +24648,24 @@ declare module "react/reactquestion_matrix" {
24622
24648
  constructor(props: any);
24623
24649
  private get question();
24624
24650
  private get row();
24625
- handleOnChange(event: any): void;
24626
- handleOnMouseDown(event: any): void;
24627
24651
  protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
24628
24652
  protected canRender(): boolean;
24629
24653
  protected renderElement(): JSX.Element;
24630
- generateTds(): JSX.Element[];
24654
+ generateTds(): Array<JSX.Element>;
24631
24655
  cellClick(row: any, column: any): void;
24632
24656
  }
24657
+ export class SurveyQuestionMatrixCell extends ReactSurveyElement {
24658
+ constructor(props: any);
24659
+ handleOnChange(event: any): void;
24660
+ handleOnMouseDown(event: any): void;
24661
+ private get question();
24662
+ private get row();
24663
+ private get column();
24664
+ private get columnIndex();
24665
+ protected canRender(): boolean;
24666
+ protected renderElement(): JSX.Element;
24667
+ protected renderInput(inputId: string, isChecked: boolean): JSX.Element;
24668
+ }
24633
24669
  }
24634
24670
  declare module "react/reactquestion_html" {
24635
24671
  import { SurveyQuestionElementBase } from "react/reactquestion_element";
@@ -25273,7 +25309,7 @@ declare module "entries/react-ui-model" {
25273
25309
  export { SurveyQuestionTagboxItem } from "react/tagbox-item";
25274
25310
  export { SurveyQuestionTagbox } from "react/reactquestion_tagbox";
25275
25311
  export { SurveyQuestionDropdownSelect } from "react/dropdown-select";
25276
- export { SurveyQuestionMatrix, SurveyQuestionMatrixRow, } from "react/reactquestion_matrix";
25312
+ export { SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionMatrixCell } from "react/reactquestion_matrix";
25277
25313
  export { SurveyQuestionHtml } from "react/reactquestion_html";
25278
25314
  export { SurveyQuestionFile } from "react/reactquestion_file";
25279
25315
  export { SurveyFileChooseButton } from "react/components/file/file-choose-button";