survey-js-ui 2.2.5 → 2.3.0
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/fesm/survey-js-ui.mjs +59 -44
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +62 -50
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +1 -1
- package/survey-js-ui.min.js.LICENSE.txt +1 -1
- package/typings/survey-react-ui/src/dropdown-base.d.ts +2 -2
- package/typings/survey-react-ui/src/reactquestion_checkbox.d.ts +1 -1
- package/typings/survey-react-ui/src/reactquestion_comment.d.ts +17 -5
- package/typings/survey-react-ui/src/reactquestion_element.d.ts +4 -1
- package/typings/survey-react-ui/src/reactquestion_radiogroup.d.ts +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Question, DropdownListModel } from "survey-core";
|
|
2
|
+
import { Question, DropdownListModel, ItemValue } from "survey-core";
|
|
3
3
|
import { SurveyQuestionUncontrolledElement } from "./reactquestion_element";
|
|
4
4
|
export declare class SurveyQuestionDropdownBase<T extends Question> extends SurveyQuestionUncontrolledElement<T> {
|
|
5
5
|
inputElement: HTMLInputElement | null;
|
|
@@ -18,7 +18,7 @@ export declare class SurveyQuestionDropdownBase<T extends Question> extends Surv
|
|
|
18
18
|
renderValueElement(): React.JSX.Element | null;
|
|
19
19
|
protected renderInput(): React.JSX.Element;
|
|
20
20
|
protected renderFilterInput(): React.JSX.Element;
|
|
21
|
-
protected renderOther(cssClasses: any): React.JSX.Element;
|
|
21
|
+
protected renderOther(item: ItemValue, cssClasses: any): React.JSX.Element;
|
|
22
22
|
protected renderEditorButtons(): React.JSX.Element | null;
|
|
23
23
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
24
24
|
componentDidMount(): void;
|
|
@@ -12,7 +12,6 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
|
|
12
12
|
protected getBody(cssClasses: any): React.JSX.Element;
|
|
13
13
|
protected getItems(cssClasses: any, choices: Array<ItemValue>): Array<any>;
|
|
14
14
|
protected get textStyle(): any;
|
|
15
|
-
protected renderOther(): React.JSX.Element;
|
|
16
15
|
protected renderItem(item: any, isFirst: boolean, cssClasses: any, index?: string): React.JSX.Element;
|
|
17
16
|
}
|
|
18
17
|
export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
@@ -32,6 +31,7 @@ export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
|
32
31
|
protected canRender(): boolean;
|
|
33
32
|
protected renderElement(): React.JSX.Element;
|
|
34
33
|
protected get inputStyle(): any;
|
|
34
|
+
protected renderComment(): React.JSX.Element | null;
|
|
35
35
|
protected renderCheckbox(isChecked: boolean, otherItem: React.JSX.Element | null): React.JSX.Element;
|
|
36
36
|
componentDidMount(): void;
|
|
37
37
|
componentWillUnmount(): void;
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ReactSurveyElement, SurveyQuestionUncontrolledElement } from "./reactquestion_element";
|
|
3
|
-
import { QuestionCommentModel, TextAreaModel } from "survey-core";
|
|
2
|
+
import { IReactSurveyElementProps, ReactSurveyElement, SurveyQuestionUncontrolledElement } from "./reactquestion_element";
|
|
3
|
+
import { ItemValue, Question, QuestionCommentModel, TextAreaModel } from "survey-core";
|
|
4
4
|
export declare class SurveyQuestionComment extends SurveyQuestionUncontrolledElement<QuestionCommentModel> {
|
|
5
5
|
private renderCharacterCounter;
|
|
6
6
|
constructor(props: any);
|
|
7
7
|
protected renderElement(): React.JSX.Element;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export interface ISurveyQuestionCommentItemProps extends IReactSurveyElementProps {
|
|
10
|
+
question: Question;
|
|
11
|
+
}
|
|
12
|
+
export declare class SurveyQuestionCommentItem<P extends ISurveyQuestionCommentItemProps = ISurveyQuestionCommentItemProps> extends ReactSurveyElement<P> {
|
|
10
13
|
private textAreaModel;
|
|
11
|
-
constructor(props:
|
|
14
|
+
constructor(props: {
|
|
15
|
+
question: Question;
|
|
16
|
+
});
|
|
12
17
|
protected canRender(): boolean;
|
|
13
18
|
protected getTextAreaModel(): TextAreaModel;
|
|
14
19
|
protected renderElement(): React.JSX.Element;
|
|
20
|
+
protected getKey(): string;
|
|
21
|
+
}
|
|
22
|
+
export interface ISurveyQuestionCommentValueItemProps extends ISurveyQuestionCommentItemProps {
|
|
23
|
+
question: Question;
|
|
24
|
+
item: ItemValue;
|
|
15
25
|
}
|
|
16
|
-
export declare class
|
|
26
|
+
export declare class SurveyQuestionCommentValueItem extends SurveyQuestionCommentItem<ISurveyQuestionCommentValueItemProps> {
|
|
27
|
+
constructor(props: ISurveyQuestionCommentValueItemProps);
|
|
17
28
|
protected getTextAreaModel(): TextAreaModel;
|
|
29
|
+
protected getKey(): string;
|
|
18
30
|
}
|
|
@@ -37,7 +37,10 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
|
37
37
|
protected canUsePropInState(key: string): boolean;
|
|
38
38
|
private unMakeBaseElementReact;
|
|
39
39
|
}
|
|
40
|
-
export
|
|
40
|
+
export interface IReactSurveyElementProps {
|
|
41
|
+
cssClasses: any;
|
|
42
|
+
}
|
|
43
|
+
export declare class ReactSurveyElement<P extends IReactSurveyElementProps = any, S = any> extends SurveyElementBase<P, S> {
|
|
41
44
|
constructor(props: any);
|
|
42
45
|
protected get cssClasses(): any;
|
|
43
46
|
}
|
|
@@ -11,7 +11,6 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
|
|
|
11
11
|
protected getBody(cssClasses: any): React.JSX.Element;
|
|
12
12
|
protected getItems(cssClasses: any, choices: Array<ItemValue>): Array<any>;
|
|
13
13
|
protected get textStyle(): any;
|
|
14
|
-
protected renderOther(cssClasses: any): React.JSX.Element;
|
|
15
14
|
private renderItem;
|
|
16
15
|
private getStateValue;
|
|
17
16
|
}
|
|
@@ -32,6 +31,8 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
|
32
31
|
protected canRender(): boolean;
|
|
33
32
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
34
33
|
protected renderElement(): React.JSX.Element;
|
|
34
|
+
protected renderComment(): React.JSX.Element | null;
|
|
35
|
+
protected renderRadioButton(): React.JSX.Element;
|
|
35
36
|
componentDidMount(): void;
|
|
36
37
|
componentWillUnmount(): void;
|
|
37
38
|
}
|