survey-react-ui 1.11.14 → 1.12.2
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/package.json +2 -2
- package/survey-react-ui.js +156 -111
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -2
- package/typings/packages/survey-react-ui/src/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +2 -1
- package/typings/packages/survey-react-ui/src/components/text-area.d.ts +15 -0
- package/typings/packages/survey-react-ui/src/reactquestion_checkbox.d.ts +5 -1
- package/typings/packages/survey-react-ui/src/reactquestion_comment.d.ts +5 -18
- package/typings/packages/survey-react-ui/src/reactquestion_element.d.ts +2 -0
- package/typings/packages/survey-react-ui/src/reactquestion_radiogroup.d.ts +4 -0
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
import { ReactSurveyElement } from "../../../reactquestion_element";
|
|
3
3
|
export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
|
|
4
4
|
private get question();
|
|
5
|
-
protected renderElement(): JSX.Element;
|
|
5
|
+
protected renderElement(): JSX.Element | null;
|
|
6
|
+
protected renderIcon(): JSX.Element;
|
|
6
7
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextAreaModel } from "survey-core";
|
|
3
|
+
import { SurveyElementBase } from "../reactquestion_element";
|
|
4
|
+
interface ITextAreaProps {
|
|
5
|
+
viewModel: TextAreaModel;
|
|
6
|
+
}
|
|
7
|
+
export declare class TextAreaComponent extends SurveyElementBase<ITextAreaProps, any> {
|
|
8
|
+
private initialValue;
|
|
9
|
+
constructor(props: ITextAreaProps);
|
|
10
|
+
get viewModel(): TextAreaModel;
|
|
11
|
+
protected canRender(): boolean;
|
|
12
|
+
protected renderElement(): JSX.Element;
|
|
13
|
+
componentWillUnmount(): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -13,9 +13,10 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
|
|
13
13
|
protected getItems(cssClasses: any, choices: Array<ItemValue>): Array<any>;
|
|
14
14
|
protected get textStyle(): any;
|
|
15
15
|
protected renderOther(): JSX.Element;
|
|
16
|
-
protected renderItem(
|
|
16
|
+
protected renderItem(item: any, isFirst: boolean, cssClasses: any, index?: string): JSX.Element;
|
|
17
17
|
}
|
|
18
18
|
export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
19
|
+
private rootRef;
|
|
19
20
|
constructor(props: any);
|
|
20
21
|
protected getStateElement(): Base;
|
|
21
22
|
protected get question(): QuestionCheckboxModel;
|
|
@@ -24,10 +25,13 @@ export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
|
24
25
|
protected get isFirst(): any;
|
|
25
26
|
protected get index(): number;
|
|
26
27
|
private get hideCaption();
|
|
28
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
27
29
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
|
28
30
|
handleOnChange: (event: any) => void;
|
|
29
31
|
protected canRender(): boolean;
|
|
30
32
|
protected renderElement(): JSX.Element;
|
|
31
33
|
protected get inputStyle(): any;
|
|
32
34
|
protected renderCheckbox(isChecked: boolean, otherItem: JSX.Element | null): JSX.Element;
|
|
35
|
+
componentDidMount(): void;
|
|
36
|
+
componentWillUnmount(): void;
|
|
33
37
|
}
|
|
@@ -1,31 +1,18 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ReactSurveyElement, SurveyQuestionUncontrolledElement } from "./reactquestion_element";
|
|
3
|
-
import { QuestionCommentModel } from "survey-core";
|
|
3
|
+
import { QuestionCommentModel, TextAreaModel } from "survey-core";
|
|
4
4
|
export declare class SurveyQuestionComment extends SurveyQuestionUncontrolledElement<QuestionCommentModel> {
|
|
5
|
+
private renderCharacterCounter;
|
|
5
6
|
constructor(props: any);
|
|
6
7
|
protected renderElement(): JSX.Element;
|
|
7
8
|
}
|
|
8
9
|
export declare class SurveyQuestionCommentItem extends ReactSurveyElement {
|
|
9
|
-
private
|
|
10
|
+
private textAreaModel;
|
|
10
11
|
constructor(props: any);
|
|
11
|
-
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
12
|
-
componentDidMount(): void;
|
|
13
|
-
protected updateDomElement(): void;
|
|
14
|
-
protected setControl(element: HTMLElement | null): void;
|
|
15
12
|
protected canRender(): boolean;
|
|
16
|
-
protected
|
|
17
|
-
protected onCommentInput(event: any): void;
|
|
18
|
-
protected getComment(): string;
|
|
19
|
-
protected setComment(value: any): void;
|
|
20
|
-
protected getId(): string;
|
|
21
|
-
protected getPlaceholder(): string;
|
|
13
|
+
protected getTextAreaModel(): TextAreaModel;
|
|
22
14
|
protected renderElement(): JSX.Element;
|
|
23
15
|
}
|
|
24
16
|
export declare class SurveyQuestionOtherValueItem extends SurveyQuestionCommentItem {
|
|
25
|
-
protected
|
|
26
|
-
protected onCommentInput(event: any): void;
|
|
27
|
-
protected getComment(): string;
|
|
28
|
-
protected setComment(value: any): void;
|
|
29
|
-
protected getId(): string;
|
|
30
|
-
protected getPlaceholder(): string;
|
|
17
|
+
protected getTextAreaModel(): TextAreaModel;
|
|
31
18
|
}
|
|
@@ -12,6 +12,7 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
|
12
12
|
private _allowComponentUpdate;
|
|
13
13
|
protected allowComponentUpdate(): void;
|
|
14
14
|
protected denyComponentUpdate(): void;
|
|
15
|
+
private prevStateElements;
|
|
15
16
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
|
16
17
|
render(): JSX.Element | null;
|
|
17
18
|
protected wrapElement(element: JSX.Element): JSX.Element;
|
|
@@ -23,6 +24,7 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
|
23
24
|
protected get changedStatePropName(): string | undefined;
|
|
24
25
|
private makeBaseElementsReact;
|
|
25
26
|
private unMakeBaseElementsReact;
|
|
27
|
+
protected disableStateElementsRerenderEvent(els: Array<Base>): void;
|
|
26
28
|
protected getStateElements(): Array<Base>;
|
|
27
29
|
protected getStateElement(): Base | null;
|
|
28
30
|
protected get isDisplayMode(): boolean;
|
|
@@ -16,6 +16,7 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
|
|
|
16
16
|
private getStateValue;
|
|
17
17
|
}
|
|
18
18
|
export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
19
|
+
private rootRef;
|
|
19
20
|
constructor(props: any);
|
|
20
21
|
protected getStateElement(): Base;
|
|
21
22
|
protected get question(): QuestionRadiogroupModel;
|
|
@@ -28,5 +29,8 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
|
28
29
|
handleOnChange(event: any): void;
|
|
29
30
|
handleOnMouseDown(event: any): void;
|
|
30
31
|
protected canRender(): boolean;
|
|
32
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
31
33
|
protected renderElement(): JSX.Element;
|
|
34
|
+
componentDidMount(): void;
|
|
35
|
+
componentWillUnmount(): void;
|
|
32
36
|
}
|