survey-react-ui 1.9.53 → 1.9.55
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 +1 -1
- package/survey-react-ui.d.ts +13 -10
- package/survey-react-ui.js +51 -30
- package/survey-react-ui.min.js +2 -2
package/package.json
CHANGED
package/survey-react-ui.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey JavaScript library for React (without core) v1.9.
|
|
2
|
+
* Type definition for Survey JavaScript library for React (without core) v1.9.55
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
6
6
|
import { Action, PopupModel, ActionContainer, Question, SurveyError } from "survey-core";
|
|
7
7
|
import { SurveyModel, DropdownMultiSelectListModel, QuestionTagboxModel, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownModelBase } from "survey-core";
|
|
8
|
-
import { ListModel, HashTable, QuestionRowModel,
|
|
9
|
-
import {
|
|
8
|
+
import { ListModel, HashTable, QuestionRowModel, QuestionSelectBase, ItemValue } from "survey-core";
|
|
9
|
+
import { QuestionMatrixDropdownRenderedCell, LocalizableString, Base, SurveyElement, ITitleOwner } from "survey-core";
|
|
10
10
|
import { PopupBaseViewModel, PageModel, ButtonGroupItemModel, QuestionButtonGroupModel, ButtonGroupItemValue } from "survey-core";
|
|
11
11
|
import { PanelModelBase, SurveyProgressButtonsModel, IElement, PopupSurveyModel, ActionDropdownViewModel } from "survey-core";
|
|
12
12
|
import { TooltipManager, MultipleTextItemModel, PanelModel, QuestionBooleanModel, QuestionCheckboxModel } from "survey-core";
|
|
@@ -93,8 +93,8 @@ export declare class ReactQuestionFactory {
|
|
|
93
93
|
}
|
|
94
94
|
export declare class ReactSurveyElementsWrapper {
|
|
95
95
|
static wrapRow(survey: SurveyModel, element: JSX.Element, row: QuestionRowModel): JSX.Element;
|
|
96
|
-
static wrapElement(survey: SurveyModel, element: JSX.Element, question:
|
|
97
|
-
static wrapQuestionContent(survey: SurveyModel, element: JSX.Element, question:
|
|
96
|
+
static wrapElement(survey: SurveyModel, element: JSX.Element, question: any): JSX.Element;
|
|
97
|
+
static wrapQuestionContent(survey: SurveyModel, element: JSX.Element, question: any): JSX.Element;
|
|
98
98
|
static wrapItemValue(survey: SurveyModel, element: JSX.Element, question: QuestionSelectBase, item: ItemValue): JSX.Element;
|
|
99
99
|
static wrapMatrixCell(survey: SurveyModel, element: JSX.Element, cell: QuestionMatrixDropdownRenderedCell, reason?: string): JSX.Element;
|
|
100
100
|
}
|
|
@@ -110,6 +110,7 @@ export declare class SurveyActionBarSeparator extends React.Component<any, any>
|
|
|
110
110
|
export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
111
111
|
constructor(props: any);
|
|
112
112
|
static renderLocString(locStr: LocalizableString, style?: any, key?: string): JSX.Element;
|
|
113
|
+
static renderQuestionDescription(question: Question | PanelModel): JSX.Element;
|
|
113
114
|
changedStatePropNameValue: string;
|
|
114
115
|
componentDidMount(): void;
|
|
115
116
|
componentWillUnmount(): void;
|
|
@@ -135,7 +136,6 @@ export declare class SurveyElementHeader extends React.Component<any, any> {
|
|
|
135
136
|
constructor(props: any);
|
|
136
137
|
constructor(props: any, context: any);
|
|
137
138
|
render(): JSX.Element;
|
|
138
|
-
protected renderDescription(): JSX.Element;
|
|
139
139
|
}
|
|
140
140
|
export declare class SurveyHeader extends React.Component<ISurveyHeaderProps, any> {
|
|
141
141
|
constructor(props: ISurveyHeaderProps);
|
|
@@ -182,7 +182,7 @@ export declare class TitleActions extends React.Component<any, any> {
|
|
|
182
182
|
constructor(props: any);
|
|
183
183
|
constructor(props: any, context: any);
|
|
184
184
|
protected get cssClasses(): any;
|
|
185
|
-
protected get element():
|
|
185
|
+
protected get element(): any;
|
|
186
186
|
render(): JSX.Element;
|
|
187
187
|
}
|
|
188
188
|
export declare class TitleContent extends React.Component<any, any> {
|
|
@@ -196,10 +196,12 @@ export declare class TitleElement extends React.Component<any, any> {
|
|
|
196
196
|
}
|
|
197
197
|
export declare class List extends SurveyElementBase<IListProps, any> {
|
|
198
198
|
constructor(props: any);
|
|
199
|
+
listContainerRef: any;
|
|
199
200
|
get model(): ListModel;
|
|
200
201
|
handleKeydown: (event: any) => void;
|
|
201
202
|
handleMouseMove: (event: any) => void;
|
|
202
203
|
getStateElement(): ListModel;
|
|
204
|
+
componentDidMount(): void;
|
|
203
205
|
renderElement(): JSX.Element;
|
|
204
206
|
renderItems(): any;
|
|
205
207
|
searchElementContent(): JSX.Element;
|
|
@@ -212,6 +214,7 @@ export declare class ListItem extends SurveyElementBase<IListItemProps, any> {
|
|
|
212
214
|
handleKeydown: (event: any) => void;
|
|
213
215
|
getStateElement(): any;
|
|
214
216
|
render(): JSX.Element;
|
|
217
|
+
componentDidMount(): void;
|
|
215
218
|
}
|
|
216
219
|
export declare class MatrixRow extends SurveyElementBase<IMatrixRowProps, any> {
|
|
217
220
|
constructor(props: IMatrixRowProps);
|
|
@@ -464,7 +467,7 @@ export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
|
|
464
467
|
export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
465
468
|
constructor(props: any);
|
|
466
469
|
protected get id(): string;
|
|
467
|
-
protected get element():
|
|
470
|
+
protected get element(): any;
|
|
468
471
|
protected get location(): string;
|
|
469
472
|
protected canRender(): boolean;
|
|
470
473
|
tooltipManager: TooltipManager;
|
|
@@ -964,7 +967,7 @@ export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown
|
|
|
964
967
|
}
|
|
965
968
|
export declare function property(options?: any): (target: any, key: string) => void;
|
|
966
969
|
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
|
967
|
-
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"):
|
|
968
|
-
export declare function showDialog(dialogOptions: IDialogOptions):
|
|
970
|
+
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
|
971
|
+
export declare function showDialog(dialogOptions: IDialogOptions): PopupBaseViewModel;
|
|
969
972
|
export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: IAttachKey2clickOptions): JSX.Element;
|
|
970
973
|
export declare var registerFunction: (name: string, func: any) => any;
|