survey-react-ui 3.0.0-beta.0 → 3.0.0-beta.1
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/README.md +1 -1
- package/fesm/survey-react-ui.mjs +91 -57
- package/fesm/survey-react-ui.mjs.map +1 -1
- package/index.html +3 -0
- package/package.json +2 -2
- package/survey-react-ui.js +104 -61
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +4 -3
- package/typings/src/components/character-counter.d.ts +8 -4
- package/typings/src/components/text-area.d.ts +4 -0
- package/typings/src/dropdown-select.d.ts +1 -1
- package/typings/src/reactquestion_comment.d.ts +0 -1
- package/typings/src/reactquestion_text.d.ts +1 -0
- package/survey-react-ui.min.js.LICENSE.txt +0 -15
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Base, CharacterCounter } from "survey-core";
|
|
3
|
+
import { ICharacterCounterAction } from "survey-core";
|
|
3
4
|
import { SurveyElementBase } from "../reactquestion_element";
|
|
4
|
-
export
|
|
5
|
-
counter
|
|
6
|
-
remainingCharacterCounter
|
|
7
|
-
|
|
5
|
+
export type ICharacterCounterComponentProps = {
|
|
6
|
+
counter?: CharacterCounter;
|
|
7
|
+
remainingCharacterCounter?: string;
|
|
8
|
+
item?: ICharacterCounterAction;
|
|
9
|
+
};
|
|
8
10
|
export declare class CharacterCounterComponent extends SurveyElementBase<ICharacterCounterComponentProps, any> {
|
|
11
|
+
protected get counter(): CharacterCounter;
|
|
12
|
+
protected get remainingCharacterCounter(): string;
|
|
9
13
|
protected getStateElement(): Base;
|
|
10
14
|
renderElement(): React.JSX.Element | null;
|
|
11
15
|
}
|
|
@@ -6,12 +6,16 @@ interface ITextAreaProps {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class TextAreaComponent extends SurveyElementBase<ITextAreaProps, any> {
|
|
8
8
|
private textareaRef;
|
|
9
|
+
private anchorRef;
|
|
10
|
+
private resizeManager;
|
|
9
11
|
private initialValue;
|
|
10
12
|
constructor(props: ITextAreaProps);
|
|
11
13
|
get viewModel(): TextAreaModel;
|
|
12
14
|
protected canRender(): boolean;
|
|
13
15
|
componentDidMount(): void;
|
|
14
16
|
componentWillUnmount(): void;
|
|
17
|
+
private onContainerClick;
|
|
18
|
+
protected renderGroup(): React.JSX.Element;
|
|
15
19
|
protected renderElement(): React.JSX.Element;
|
|
16
20
|
}
|
|
17
21
|
export {};
|
|
@@ -3,5 +3,5 @@ import { SurveyQuestionDropdown } from "./reactquestion_dropdown";
|
|
|
3
3
|
export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
|
|
4
4
|
constructor(props: any);
|
|
5
5
|
protected renderSelect(cssClasses: any): React.JSX.Element;
|
|
6
|
-
|
|
6
|
+
protected renderEditorButtons(): React.JSX.Element | null;
|
|
7
7
|
}
|
|
@@ -2,7 +2,6 @@ import * as React from "react";
|
|
|
2
2
|
import { IReactSurveyElementProps, ReactSurveyElement, SurveyQuestionUncontrolledElement } from "./reactquestion_element";
|
|
3
3
|
import { ItemValue, Question, QuestionCommentModel, TextAreaModel } from "survey-core";
|
|
4
4
|
export declare class SurveyQuestionComment extends SurveyQuestionUncontrolledElement<QuestionCommentModel> {
|
|
5
|
-
private renderCharacterCounter;
|
|
6
5
|
constructor(props: any);
|
|
7
6
|
protected renderElement(): React.JSX.Element;
|
|
8
7
|
}
|
|
@@ -4,6 +4,7 @@ import { QuestionTextModel } from "survey-core";
|
|
|
4
4
|
export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
|
|
5
5
|
constructor(props: any);
|
|
6
6
|
protected renderInput(): React.JSX.Element;
|
|
7
|
+
protected renderGroup(): React.JSX.Element;
|
|
7
8
|
protected renderElement(): React.JSX.Element;
|
|
8
9
|
protected setValueCore(newValue: any): void;
|
|
9
10
|
protected getValueCore(): any;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v3.0.0-beta.0
|
|
3
|
-
* Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
|
-
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*!
|
|
8
|
-
* tslib v2.8.1 | https://www.typescriptlang.org/
|
|
9
|
-
* (c) Microsoft Corp. | Released under the 0BSD license
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/*!
|
|
13
|
-
* survey-core v3.0.0-beta.0 | https://surveyjs.io/
|
|
14
|
-
* (c) DevSoft Baltic OU | Released under the MIT license
|
|
15
|
-
*/
|