survey-react-ui 1.9.38 → 1.9.41
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 +38 -13
- package/survey-react-ui.js +605 -262
- package/survey-react-ui.min.js +2 -2
package/package.json
CHANGED
package/survey-react-ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.41
|
|
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
|
*/
|
|
@@ -11,10 +11,10 @@ import { ButtonGroupItemModel, QuestionButtonGroupModel, ButtonGroupItemValue, P
|
|
|
11
11
|
import { IElement, ActionDropdownViewModel, TooltipManager, MultipleTextItemModel, PanelModel } from "survey-core";
|
|
12
12
|
import { QuestionBooleanModel, QuestionCheckboxModel, QuestionEmptyModel, QuestionExpressionModel, QuestionFileModel } from "survey-core";
|
|
13
13
|
import { QuestionHtmlModel, QuestionImageModel, QuestionImagePickerModel, ImageItemValue, QuestionMatrixModel } from "survey-core";
|
|
14
|
-
import { AdaptiveActionContainer,
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { QuestionTextModel, IArrayPropertyDecoratorOptions } from "survey-core";
|
|
14
|
+
import { AdaptiveActionContainer, QuestionMatrixDynamicModel, MatrixDropdownColumn, QuestionMultipleTextModel, QuestionPanelDynamicModel } from "survey-core";
|
|
15
|
+
import { QuestionRadiogroupModel, QuestionRankingModel, QuestionRatingModel, RenderedRatingItem, QuestionSignaturePadModel } from "survey-core";
|
|
16
|
+
import { SurveyTimerModel, SurveyWindowModel, FlowPanelModel, QuestionCommentModel, QuestionCompositeModel } from "survey-core";
|
|
17
|
+
import { QuestionCustomModel, QuestionTextModel, IArrayPropertyDecoratorOptions, IAttachKey2clickOptions } from "survey-core";
|
|
18
18
|
import * as React from "react";
|
|
19
19
|
|
|
20
20
|
export { SurveyModel } from "survey-core";
|
|
@@ -48,7 +48,7 @@ export interface ISurveyCreator {
|
|
|
48
48
|
export interface ISurveyHeaderProps {
|
|
49
49
|
survey: SurveyModel;
|
|
50
50
|
}
|
|
51
|
-
export interface
|
|
51
|
+
export interface IMatrixRowProps {
|
|
52
52
|
model: QuestionMatrixDropdownRenderedRow;
|
|
53
53
|
parentMatrix: QuestionMatrixDropdownModelBase;
|
|
54
54
|
}
|
|
@@ -62,6 +62,11 @@ export interface IListProps {
|
|
|
62
62
|
export interface ILogoImageProps {
|
|
63
63
|
data: SurveyModel;
|
|
64
64
|
}
|
|
65
|
+
export declare class BrandInfo extends React.Component<any, any> {
|
|
66
|
+
constructor(props: any);
|
|
67
|
+
constructor(props: any, context: any);
|
|
68
|
+
render(): JSX.Element;
|
|
69
|
+
}
|
|
65
70
|
export declare class LogoImage extends React.Component<ILogoImageProps, any> {
|
|
66
71
|
constructor(props: ILogoImageProps);
|
|
67
72
|
render(): JSX.Element;
|
|
@@ -199,8 +204,8 @@ export declare class ListItem extends SurveyElementBase<IListItemProps, any> {
|
|
|
199
204
|
getStateElement(): any;
|
|
200
205
|
render(): JSX.Element;
|
|
201
206
|
}
|
|
202
|
-
export declare class MatrixRow extends SurveyElementBase<
|
|
203
|
-
constructor(props:
|
|
207
|
+
export declare class MatrixRow extends SurveyElementBase<IMatrixRowProps, any> {
|
|
208
|
+
constructor(props: IMatrixRowProps);
|
|
204
209
|
get model(): QuestionMatrixDropdownRenderedRow;
|
|
205
210
|
get parentMatrix(): QuestionMatrixDropdownModelBase;
|
|
206
211
|
protected getStateElement(): QuestionMatrixDropdownRenderedRow;
|
|
@@ -509,7 +514,8 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
|
|
509
514
|
protected getFooter(): any;
|
|
510
515
|
protected getColumnedBody(cssClasses: any): JSX.Element;
|
|
511
516
|
protected getColumns(cssClasses: any): any;
|
|
512
|
-
protected
|
|
517
|
+
protected getBody(cssClasses: any): JSX.Element;
|
|
518
|
+
protected getItems(cssClasses: any, choices: any): Array<any>;
|
|
513
519
|
protected get textStyle(): any;
|
|
514
520
|
protected renderOther(): JSX.Element;
|
|
515
521
|
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): JSX.Element;
|
|
@@ -624,6 +630,12 @@ export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElem
|
|
|
624
630
|
renderRow(keyValue: any, row: QuestionMatrixDropdownRenderedRow, cssClasses: any): JSX.Element;
|
|
625
631
|
renderCell(cell: QuestionMatrixDropdownRenderedCell, index: number, cssClasses: any): JSX.Element;
|
|
626
632
|
}
|
|
633
|
+
export declare class SurveyQuestionMatrixDynamicAddButton extends ReactSurveyElement {
|
|
634
|
+
constructor(props: any);
|
|
635
|
+
protected get matrix(): QuestionMatrixDynamicModel;
|
|
636
|
+
handleOnRowAddClick(event: any): void;
|
|
637
|
+
protected renderElement(): JSX.Element;
|
|
638
|
+
}
|
|
627
639
|
export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
|
|
628
640
|
constructor(props: any);
|
|
629
641
|
protected renderElement(): JSX.Element;
|
|
@@ -633,6 +645,13 @@ export declare class SurveyQuestionMatrixDynamicRemoveButton extends ReactSurvey
|
|
|
633
645
|
handleOnRowRemoveClick(event: any): void;
|
|
634
646
|
protected renderElement(): JSX.Element;
|
|
635
647
|
}
|
|
648
|
+
export declare class SurveyQuestionMatrixHeaderRequired extends ReactSurveyElement {
|
|
649
|
+
constructor(props: any);
|
|
650
|
+
get column(): MatrixDropdownColumn;
|
|
651
|
+
get question(): Question;
|
|
652
|
+
protected getStateElement(): Base;
|
|
653
|
+
protected renderElement(): JSX.Element;
|
|
654
|
+
}
|
|
636
655
|
export declare class SurveyQuestionMatrixRow extends ReactSurveyElement {
|
|
637
656
|
constructor(props: any);
|
|
638
657
|
handleOnChange(event: any): void;
|
|
@@ -650,6 +669,8 @@ export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBas
|
|
|
650
669
|
}
|
|
651
670
|
export declare class SurveyQuestionOptionItem extends ReactSurveyElement {
|
|
652
671
|
constructor(props: any);
|
|
672
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
673
|
+
componentWillUnmount(): void;
|
|
653
674
|
protected getStateElement(): Base;
|
|
654
675
|
protected canRender(): boolean;
|
|
655
676
|
protected renderElement(): JSX.Element;
|
|
@@ -692,7 +713,8 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
|
|
|
692
713
|
protected getFooter(): any;
|
|
693
714
|
protected getColumnedBody(cssClasses: any): JSX.Element;
|
|
694
715
|
protected getColumns(cssClasses: any): any;
|
|
695
|
-
protected
|
|
716
|
+
protected getBody(cssClasses: any): JSX.Element;
|
|
717
|
+
protected getItems(cssClasses: any, choices: any): Array<any>;
|
|
696
718
|
protected get textStyle(): any;
|
|
697
719
|
protected renderOther(cssClasses: any): JSX.Element;
|
|
698
720
|
}
|
|
@@ -806,10 +828,14 @@ export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElem
|
|
|
806
828
|
}
|
|
807
829
|
export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
|
|
808
830
|
constructor(props: any);
|
|
809
|
-
|
|
831
|
+
click: (event: any) => void;
|
|
832
|
+
clear: (event: any) => void;
|
|
833
|
+
keyup: (event: any) => void;
|
|
834
|
+
blur: (event: any) => void;
|
|
810
835
|
protected setValueCore(newValue: any): void;
|
|
811
836
|
protected getValueCore(): any;
|
|
812
837
|
protected renderSelect(cssClasses: any): JSX.Element;
|
|
838
|
+
createClearButton(): JSX.Element;
|
|
813
839
|
}
|
|
814
840
|
export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
|
|
815
841
|
constructor(props: any);
|
|
@@ -882,10 +908,9 @@ export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdown
|
|
|
882
908
|
export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
|
|
883
909
|
constructor(props: any);
|
|
884
910
|
protected renderSelect(cssClasses: any): JSX.Element;
|
|
885
|
-
createClearButton(): JSX.Element;
|
|
886
911
|
}
|
|
887
912
|
export declare function property(options?: any): (target: any, key: string) => void;
|
|
888
913
|
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
|
889
914
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
|
890
|
-
export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?:
|
|
915
|
+
export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: IAttachKey2clickOptions): JSX.Element;
|
|
891
916
|
export declare var registerFunction: (name: string, func: any) => any;
|