survey-react-ui 1.9.40 → 1.9.43
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 +41 -13
- package/survey-react-ui.js +449 -176
- 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.43
|
|
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,11 @@ 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, MatrixDropdownColumn, QuestionMultipleTextModel, QuestionPanelDynamicModel
|
|
15
|
-
import { QuestionRankingModel, QuestionRatingModel, RenderedRatingItem, QuestionSignaturePadModel
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { AdaptiveActionContainer, QuestionMatrixDynamicModel, MatrixDropdownColumn, QuestionMultipleTextModel, QuestionPanelDynamicModel } from "survey-core";
|
|
15
|
+
import { QuestionRadiogroupModel, QuestionRankingModel, QuestionRatingModel, RenderedRatingItem, QuestionSignaturePadModel } from "survey-core";
|
|
16
|
+
import { QuestionTagboxModel, SurveyTimerModel, SurveyWindowModel, FlowPanelModel, QuestionCommentModel } from "survey-core";
|
|
17
|
+
import { QuestionCompositeModel, QuestionCustomModel, QuestionTextModel, IArrayPropertyDecoratorOptions, IDialogOptions } from "survey-core";
|
|
18
|
+
import { IAttachKey2clickOptions } from "survey-core";
|
|
18
19
|
import * as React from "react";
|
|
19
20
|
|
|
20
21
|
export { SurveyModel } from "survey-core";
|
|
@@ -48,7 +49,7 @@ export interface ISurveyCreator {
|
|
|
48
49
|
export interface ISurveyHeaderProps {
|
|
49
50
|
survey: SurveyModel;
|
|
50
51
|
}
|
|
51
|
-
export interface
|
|
52
|
+
export interface IMatrixRowProps {
|
|
52
53
|
model: QuestionMatrixDropdownRenderedRow;
|
|
53
54
|
parentMatrix: QuestionMatrixDropdownModelBase;
|
|
54
55
|
}
|
|
@@ -148,10 +149,12 @@ export declare class SurveyLocStringEditor extends React.Component<any, any> {
|
|
|
148
149
|
}
|
|
149
150
|
export declare class SurveyLocStringViewer extends React.Component<any, any> {
|
|
150
151
|
constructor(props: any);
|
|
152
|
+
rootRef: any;
|
|
151
153
|
componentDidMount(): void;
|
|
152
154
|
componentWillUnmount(): void;
|
|
153
155
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
154
156
|
isRendering: boolean;
|
|
157
|
+
onChangedHandler: (sender: any, options: any) => void;
|
|
155
158
|
render(): JSX.Element;
|
|
156
159
|
protected renderString(): JSX.Element;
|
|
157
160
|
}
|
|
@@ -204,8 +207,8 @@ export declare class ListItem extends SurveyElementBase<IListItemProps, any> {
|
|
|
204
207
|
getStateElement(): any;
|
|
205
208
|
render(): JSX.Element;
|
|
206
209
|
}
|
|
207
|
-
export declare class MatrixRow extends SurveyElementBase<
|
|
208
|
-
constructor(props:
|
|
210
|
+
export declare class MatrixRow extends SurveyElementBase<IMatrixRowProps, any> {
|
|
211
|
+
constructor(props: IMatrixRowProps);
|
|
209
212
|
get model(): QuestionMatrixDropdownRenderedRow;
|
|
210
213
|
get parentMatrix(): QuestionMatrixDropdownModelBase;
|
|
211
214
|
protected getStateElement(): QuestionMatrixDropdownRenderedRow;
|
|
@@ -313,7 +316,7 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
|
|
313
316
|
get question(): QuestionButtonGroupModel;
|
|
314
317
|
get item(): ButtonGroupItemValue;
|
|
315
318
|
getStateElement(): ButtonGroupItemValue;
|
|
316
|
-
|
|
319
|
+
renderElement(): JSX.Element;
|
|
317
320
|
protected renderIcon(): JSX.Element;
|
|
318
321
|
protected renderInput(): JSX.Element;
|
|
319
322
|
protected renderCaption(): JSX.Element;
|
|
@@ -503,7 +506,7 @@ export declare class SurveyQuestionButtonGroup extends SurveyQuestionElementBase
|
|
|
503
506
|
constructor(props: any);
|
|
504
507
|
protected get question(): QuestionButtonGroupModel;
|
|
505
508
|
getStateElement(): QuestionButtonGroupModel;
|
|
506
|
-
|
|
509
|
+
renderElement(): JSX.Element;
|
|
507
510
|
renderItems(): any;
|
|
508
511
|
}
|
|
509
512
|
export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
|
@@ -514,7 +517,8 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
|
|
514
517
|
protected getFooter(): any;
|
|
515
518
|
protected getColumnedBody(cssClasses: any): JSX.Element;
|
|
516
519
|
protected getColumns(cssClasses: any): any;
|
|
517
|
-
protected
|
|
520
|
+
protected getBody(cssClasses: any): JSX.Element;
|
|
521
|
+
protected getItems(cssClasses: any, choices: any): Array<any>;
|
|
518
522
|
protected get textStyle(): any;
|
|
519
523
|
protected renderOther(): JSX.Element;
|
|
520
524
|
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): JSX.Element;
|
|
@@ -629,6 +633,12 @@ export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElem
|
|
|
629
633
|
renderRow(keyValue: any, row: QuestionMatrixDropdownRenderedRow, cssClasses: any): JSX.Element;
|
|
630
634
|
renderCell(cell: QuestionMatrixDropdownRenderedCell, index: number, cssClasses: any): JSX.Element;
|
|
631
635
|
}
|
|
636
|
+
export declare class SurveyQuestionMatrixDynamicAddButton extends ReactSurveyElement {
|
|
637
|
+
constructor(props: any);
|
|
638
|
+
protected get matrix(): QuestionMatrixDynamicModel;
|
|
639
|
+
handleOnRowAddClick(event: any): void;
|
|
640
|
+
protected renderElement(): JSX.Element;
|
|
641
|
+
}
|
|
632
642
|
export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
|
|
633
643
|
constructor(props: any);
|
|
634
644
|
protected renderElement(): JSX.Element;
|
|
@@ -706,7 +716,8 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
|
|
|
706
716
|
protected getFooter(): any;
|
|
707
717
|
protected getColumnedBody(cssClasses: any): JSX.Element;
|
|
708
718
|
protected getColumns(cssClasses: any): any;
|
|
709
|
-
protected
|
|
719
|
+
protected getBody(cssClasses: any): JSX.Element;
|
|
720
|
+
protected getItems(cssClasses: any, choices: any): Array<any>;
|
|
710
721
|
protected get textStyle(): any;
|
|
711
722
|
protected renderOther(cssClasses: any): JSX.Element;
|
|
712
723
|
}
|
|
@@ -742,6 +753,14 @@ export declare class SurveyQuestionSignaturePad extends SurveyQuestionElementBas
|
|
|
742
753
|
protected renderElement(): JSX.Element;
|
|
743
754
|
renderCleanButton(): JSX.Element;
|
|
744
755
|
}
|
|
756
|
+
export declare class SurveyQuestionTagboxItem extends ReactSurveyElement {
|
|
757
|
+
constructor(props: any);
|
|
758
|
+
protected getStateElement(): Base;
|
|
759
|
+
protected get question(): QuestionTagboxModel;
|
|
760
|
+
protected get item(): ItemValue;
|
|
761
|
+
protected canRender(): boolean;
|
|
762
|
+
protected renderElement(): JSX.Element;
|
|
763
|
+
}
|
|
745
764
|
export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestionElementBase {
|
|
746
765
|
constructor(props: any);
|
|
747
766
|
protected get question(): T;
|
|
@@ -827,7 +846,9 @@ export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontr
|
|
|
827
846
|
protected setValueCore(newValue: any): void;
|
|
828
847
|
protected getValueCore(): any;
|
|
829
848
|
protected renderSelect(cssClasses: any): JSX.Element;
|
|
849
|
+
protected renderInput(): JSX.Element;
|
|
830
850
|
createClearButton(): JSX.Element;
|
|
851
|
+
protected renderOther(cssClasses: any): JSX.Element;
|
|
831
852
|
}
|
|
832
853
|
export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
|
|
833
854
|
constructor(props: any);
|
|
@@ -882,10 +903,10 @@ export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElemen
|
|
|
882
903
|
export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
|
|
883
904
|
constructor(props: any);
|
|
884
905
|
protected renderElement(): JSX.Element;
|
|
885
|
-
protected renderOther(cssClasses: any): JSX.Element;
|
|
886
906
|
}
|
|
887
907
|
export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
|
|
888
908
|
constructor(props: any);
|
|
909
|
+
protected get itemCss(): string;
|
|
889
910
|
protected getQuestion(): Question;
|
|
890
911
|
protected doAfterRender(): void;
|
|
891
912
|
protected getShowErrors(): boolean;
|
|
@@ -897,6 +918,12 @@ export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdown
|
|
|
897
918
|
constructor(props: any);
|
|
898
919
|
protected renderElement(): JSX.Element;
|
|
899
920
|
}
|
|
921
|
+
export declare class SurveyQuestionTagbox extends SurveyQuestionDropdownBase<QuestionTagboxModel> {
|
|
922
|
+
constructor(props: any);
|
|
923
|
+
protected renderItem(key: string, item: any): JSX.Element;
|
|
924
|
+
protected renderInput(): JSX.Element;
|
|
925
|
+
protected renderElement(): JSX.Element;
|
|
926
|
+
}
|
|
900
927
|
export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
|
|
901
928
|
constructor(props: any);
|
|
902
929
|
protected renderSelect(cssClasses: any): JSX.Element;
|
|
@@ -904,5 +931,6 @@ export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown
|
|
|
904
931
|
export declare function property(options?: any): (target: any, key: string) => void;
|
|
905
932
|
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
|
906
933
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
|
934
|
+
export declare function showDialog(dialogOptions: IDialogOptions): void;
|
|
907
935
|
export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: IAttachKey2clickOptions): JSX.Element;
|
|
908
936
|
export declare var registerFunction: (name: string, func: any) => any;
|