survey-react-ui 2.3.9 → 2.3.11

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.3.9
2
+ * surveyjs - Survey JavaScript library v2.3.11
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -3,5 +3,6 @@ import { SurveyElement } from "survey-core";
3
3
  export declare class TitleActions extends React.Component<any, any> {
4
4
  protected get cssClasses(): any;
5
5
  protected get element(): SurveyElement;
6
+ private get renderActions();
6
7
  render(): React.JSX.Element;
7
8
  }
@@ -8,7 +8,7 @@ export declare class SurveyQuestionImagePicker extends SurveyQuestionElementBase
8
8
  protected getColumns(cssClasses: any): React.JSX.Element[];
9
9
  protected getItems(cssClasses: any): Array<any>;
10
10
  protected get textStyle(): any;
11
- protected renderItem(key: string, item: ImageItemValue, cssClasses: any): React.JSX.Element;
11
+ protected renderItem(item: ImageItemValue, cssClasses: any): React.JSX.Element;
12
12
  }
13
13
  export declare class SurveyQuestionImagePickerItem extends ReactSurveyElement {
14
14
  constructor(props: any);
@@ -1,38 +1,16 @@
1
1
  import * as React from "react";
2
- import { ReactSurveyElement, SurveyQuestionElementBase } from "./reactquestion_element";
3
- import { Base, ItemValue, QuestionCheckboxModel } from "survey-core";
4
- export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
2
+ import { QuestionCheckboxModel } from "survey-core";
3
+ import { SurveyQuestionSelectBaseItem, SurveyQuestionSelectbase } from "./reactquestion_selectbase";
4
+ export declare class SurveyQuestionCheckbox extends SurveyQuestionSelectbase {
5
5
  constructor(props: any);
6
6
  protected get question(): QuestionCheckboxModel;
7
- protected renderElement(): React.JSX.Element;
7
+ protected renderHeader(): React.JSX.Element | null;
8
8
  protected getHeader(): React.JSX.Element[];
9
- protected getFooter(): React.JSX.Element[];
10
- protected getColumnedBody(cssClasses: any): React.JSX.Element;
11
- protected getColumns(cssClasses: any): React.JSX.Element[];
12
- protected getBody(cssClasses: any): React.JSX.Element;
13
- protected getItems(cssClasses: any, choices: Array<ItemValue>): Array<any>;
14
- protected get textStyle(): any;
15
- protected renderItem(item: any, isFirst: boolean, cssClasses: any, index?: string): React.JSX.Element;
16
9
  }
17
- export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
18
- private rootRef;
10
+ export declare class SurveyQuestionCheckboxItem extends SurveyQuestionSelectBaseItem {
19
11
  constructor(props: any);
20
- protected getStateElement(): Base;
21
- protected get question(): QuestionCheckboxModel;
22
- protected get item(): ItemValue;
23
- protected get textStyle(): any;
24
- protected get isFirst(): any;
25
- protected get index(): number;
26
- private get hideCaption();
27
- private get ariaLabel();
28
- componentDidUpdate(prevProps: any, prevState: any): void;
29
- shouldComponentUpdate(nextProps: any, nextState: any): boolean;
30
- handleOnChange: (event: any) => void;
31
- protected canRender(): boolean;
32
- protected renderElement(): React.JSX.Element;
12
+ protected doOnItemChange(event: any): void;
13
+ protected renderElementContent(): React.JSX.Element;
33
14
  protected get inputStyle(): any;
34
- protected renderComment(): React.JSX.Element | null;
35
- protected renderCheckbox(isChecked: boolean, otherItem: React.JSX.Element | null): React.JSX.Element;
36
- componentDidMount(): void;
37
- componentWillUnmount(): void;
15
+ protected renderCheckbox(isChecked: boolean): React.JSX.Element;
38
16
  }
@@ -17,7 +17,7 @@ export declare class SurveyQuestionCommentItem<P extends ISurveyQuestionCommentI
17
17
  protected canRender(): boolean;
18
18
  protected getTextAreaModel(): TextAreaModel;
19
19
  protected renderElement(): React.JSX.Element;
20
- protected getKey(): string;
20
+ protected getKey(): number;
21
21
  }
22
22
  export interface ISurveyQuestionCommentValueItemProps extends ISurveyQuestionCommentItemProps {
23
23
  question: Question;
@@ -26,5 +26,5 @@ export interface ISurveyQuestionCommentValueItemProps extends ISurveyQuestionCom
26
26
  export declare class SurveyQuestionCommentValueItem extends SurveyQuestionCommentItem<ISurveyQuestionCommentValueItemProps> {
27
27
  constructor(props: ISurveyQuestionCommentValueItemProps);
28
28
  protected getTextAreaModel(): TextAreaModel;
29
- protected getKey(): string;
29
+ protected getKey(): number;
30
30
  }
@@ -33,6 +33,7 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
33
33
  private canMakeReact;
34
34
  private propertyValueChangedHandler;
35
35
  protected isCurrentStateElement(stateElement: Base): boolean;
36
+ private onArrayChangedCallback;
36
37
  private makeBaseElementReact;
37
38
  protected canUsePropInState(key: string): boolean;
38
39
  private unMakeBaseElementReact;
@@ -1,38 +1,21 @@
1
1
  import * as React from "react";
2
- import { SurveyQuestionElementBase, ReactSurveyElement } from "./reactquestion_element";
3
2
  import { QuestionRadiogroupModel, ItemValue, Base } from "survey-core";
4
- export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
3
+ import { SurveyQuestionSelectBaseItem, SurveyQuestionSelectbase } from "./reactquestion_selectbase";
4
+ export declare class SurveyQuestionRadiogroup extends SurveyQuestionSelectbase {
5
5
  constructor(props: any);
6
6
  protected get question(): QuestionRadiogroupModel;
7
- protected renderElement(): React.JSX.Element;
8
- protected getFooter(): React.JSX.Element[];
9
- protected getColumnedBody(cssClasses: any): React.JSX.Element;
10
- protected getColumns(cssClasses: any): React.JSX.Element[];
11
- protected getBody(cssClasses: any): React.JSX.Element;
12
- protected getItems(cssClasses: any, choices: Array<ItemValue>): Array<any>;
13
- protected get textStyle(): any;
14
- private renderItem;
15
- private getStateValue;
7
+ protected getFooter(): React.JSX.Element | null;
8
+ private renderClearButton;
9
+ protected getStateValue(): any;
10
+ protected isItemChecked(item: ItemValue, value: any): boolean;
16
11
  }
17
- export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
18
- private rootRef;
12
+ export declare class SurveyQuestionRadioItem extends SurveyQuestionSelectBaseItem {
19
13
  constructor(props: any);
20
14
  protected getStateElement(): Base;
21
15
  protected get question(): QuestionRadiogroupModel;
22
- protected get item(): ItemValue;
23
- protected get textStyle(): any;
24
- protected get index(): number;
25
16
  protected get isChecked(): boolean;
26
- private get hideCaption();
27
- private get ariaLabel();
28
- shouldComponentUpdate(nextProps: any, nextState: any): boolean;
29
- handleOnChange(event: any): void;
17
+ protected doOnItemChange(event: any): void;
30
18
  handleOnMouseDown(event: any): void;
31
- protected canRender(): boolean;
32
- componentDidUpdate(prevProps: any, prevState: any): void;
33
- protected renderElement(): React.JSX.Element;
34
- protected renderComment(): React.JSX.Element | null;
19
+ protected renderElementContent(): React.JSX.Element;
35
20
  protected renderRadioButton(): React.JSX.Element;
36
- componentDidMount(): void;
37
- componentWillUnmount(): void;
38
21
  }
@@ -0,0 +1,42 @@
1
+ import * as React from "react";
2
+ import { ReactSurveyElement, SurveyQuestionElementBase } from "./reactquestion_element";
3
+ import { Base, ItemValue, QuestionSelectBase } from "survey-core";
4
+ export declare class SurveyQuestionSelectbase extends SurveyQuestionElementBase {
5
+ constructor(props: any);
6
+ protected get question(): QuestionSelectBase;
7
+ protected renderElement(): React.JSX.Element;
8
+ protected renderHeader(): React.JSX.Element | null;
9
+ protected getFooter(): React.JSX.Element | null;
10
+ protected getStateValue(): any;
11
+ protected isItemChecked(item: ItemValue, value: any): boolean;
12
+ protected getColumnedBody(cssClasses: any): React.JSX.Element;
13
+ protected getColumns(cssClasses: any): React.JSX.Element[];
14
+ protected getBody(cssClasses: any): React.JSX.Element;
15
+ protected getItems(cssClasses: any, choices: Array<ItemValue>): Array<any>;
16
+ protected get textStyle(): any;
17
+ protected renderItem(item: any, isFirst: boolean, cssClasses: any, index?: string, isChecked?: boolean): React.JSX.Element;
18
+ }
19
+ export declare class SurveyQuestionSelectBaseItem extends ReactSurveyElement {
20
+ protected rootRef: React.RefObject<HTMLDivElement>;
21
+ constructor(props: any);
22
+ protected getStateElement(): Base;
23
+ protected get question(): QuestionSelectBase;
24
+ protected get item(): ItemValue;
25
+ protected get textStyle(): any;
26
+ protected get isFirst(): any;
27
+ protected get index(): number;
28
+ protected get hideCaption(): boolean;
29
+ protected get ariaLabel(): string;
30
+ componentDidUpdate(prevProps: any, prevState: any): void;
31
+ shouldComponentUpdate(nextProps: any, nextState: any): boolean;
32
+ handleOnChange: (event: any) => void;
33
+ protected doOnItemChange(event: any): void;
34
+ protected canRender(): boolean;
35
+ protected renderElement(): React.JSX.Element;
36
+ protected renderElementContent(): React.JSX.Element | null;
37
+ protected get inputStyle(): any;
38
+ protected renderComment(): React.JSX.Element | null;
39
+ protected renderPanel(): React.JSX.Element | null;
40
+ componentDidMount(): void;
41
+ componentWillUnmount(): void;
42
+ }