survey-react-ui 1.9.52 → 1.9.54
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 +20 -17
- package/survey-react-ui.js +112 -66
- 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.54
|
|
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
|
}
|
|
@@ -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> {
|
|
@@ -226,7 +226,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
|
226
226
|
popup: PopupBaseViewModel;
|
|
227
227
|
containerRef: any;
|
|
228
228
|
get model(): any;
|
|
229
|
-
protected getStateElement():
|
|
229
|
+
protected getStateElement(): Base;
|
|
230
230
|
componentDidMount(): void;
|
|
231
231
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
232
232
|
componentWillUnmount(): void;
|
|
@@ -238,16 +238,14 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
|
|
|
238
238
|
prevIsVisible: boolean;
|
|
239
239
|
handleKeydown: (event: any) => void;
|
|
240
240
|
get model(): PopupBaseViewModel;
|
|
241
|
-
protected getStateElement():
|
|
241
|
+
protected getStateElement(): Base;
|
|
242
242
|
clickInside: (ev: any) => void;
|
|
243
243
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
244
|
-
renderContainer(): JSX.Element;
|
|
245
|
-
|
|
246
|
-
renderHeader(): JSX.Element;
|
|
244
|
+
renderContainer(PopupBaseViewModel: PopupBaseViewModel): JSX.Element;
|
|
245
|
+
renderHeaderContent(): JSX.Element;
|
|
247
246
|
renderContent(): JSX.Element;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
renderFooter(): JSX.Element;
|
|
247
|
+
protected renderHeaderPopup(popupModel: PopupBaseViewModel): JSX.Element;
|
|
248
|
+
protected renderFooter(popuModel: PopupBaseViewModel): JSX.Element;
|
|
251
249
|
render(): JSX.Element;
|
|
252
250
|
}
|
|
253
251
|
export declare class ReactSurveyElement extends SurveyElementBase<any, any> {
|
|
@@ -433,6 +431,10 @@ export declare class TagboxFilterString extends SurveyElementBase<ITagboxFilterP
|
|
|
433
431
|
getStateElement(): DropdownMultiSelectListModel;
|
|
434
432
|
render(): JSX.Element;
|
|
435
433
|
}
|
|
434
|
+
export declare class PopupDropdownContainer extends PopupContainer {
|
|
435
|
+
constructor(props: any);
|
|
436
|
+
protected renderHeaderPopup(popupModel: PopupBaseViewModel): JSX.Element;
|
|
437
|
+
}
|
|
436
438
|
export declare class PopupSurvey extends Survey {
|
|
437
439
|
constructor(props: any);
|
|
438
440
|
protected popup: PopupSurveyModel;
|
|
@@ -462,7 +464,7 @@ export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
|
|
462
464
|
export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
463
465
|
constructor(props: any);
|
|
464
466
|
protected get id(): string;
|
|
465
|
-
protected get element():
|
|
467
|
+
protected get element(): any;
|
|
466
468
|
protected get location(): string;
|
|
467
469
|
protected canRender(): boolean;
|
|
468
470
|
tooltipManager: TooltipManager;
|
|
@@ -768,6 +770,7 @@ export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
|
|
|
768
770
|
protected get handlePointerDown(): (event: any) => void;
|
|
769
771
|
protected get cssClasses(): any;
|
|
770
772
|
protected get itemClass(): string;
|
|
773
|
+
protected get itemTabIndex(): number;
|
|
771
774
|
protected get question(): any;
|
|
772
775
|
protected renderElement(): JSX.Element;
|
|
773
776
|
}
|
|
@@ -961,7 +964,7 @@ export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown
|
|
|
961
964
|
}
|
|
962
965
|
export declare function property(options?: any): (target: any, key: string) => void;
|
|
963
966
|
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
|
964
|
-
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"):
|
|
965
|
-
export declare function showDialog(dialogOptions: IDialogOptions):
|
|
967
|
+
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
|
968
|
+
export declare function showDialog(dialogOptions: IDialogOptions): PopupBaseViewModel;
|
|
966
969
|
export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: IAttachKey2clickOptions): JSX.Element;
|
|
967
970
|
export declare var registerFunction: (name: string, func: any) => any;
|