survey-react-ui 1.9.18 → 1.9.21
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 +50 -17
- package/survey-react-ui.js +493 -157
- 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.21
|
|
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
|
*/
|
|
@@ -8,12 +8,12 @@ import { SurveyModel, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownM
|
|
|
8
8
|
import { QuestionRowModel, SurveyElement, QuestionSelectBase, ItemValue, QuestionMatrixDropdownRenderedCell } from "survey-core";
|
|
9
9
|
import { LocalizableString, Base, ITitleOwner, PopupBaseViewModel, PageModel } from "survey-core";
|
|
10
10
|
import { ButtonGroupItemModel, QuestionButtonGroupModel, ButtonGroupItemValue, PanelModelBase, SurveyProgressButtonsModel } from "survey-core";
|
|
11
|
-
import { IElement, TooltipManager, PanelModel, QuestionBooleanModel
|
|
12
|
-
import { QuestionEmptyModel, QuestionExpressionModel, QuestionFileModel, QuestionHtmlModel
|
|
13
|
-
import { QuestionImagePickerModel, QuestionMatrixModel, AdaptiveActionContainer, QuestionMultipleTextModel
|
|
14
|
-
import { QuestionPanelDynamicModel, QuestionRadiogroupModel, QuestionRankingModel, QuestionRatingModel
|
|
15
|
-
import { QuestionSignaturePadModel, SurveyTimerModel, SurveyWindowModel, FlowPanelModel
|
|
16
|
-
import { QuestionCompositeModel, QuestionCustomModel, QuestionMatrixDynamicModel, QuestionTextModel } from "survey-core";
|
|
11
|
+
import { IElement, ActionDropdownViewModel, TooltipManager, PanelModel, QuestionBooleanModel } from "survey-core";
|
|
12
|
+
import { QuestionCheckboxModel, QuestionEmptyModel, QuestionExpressionModel, QuestionFileModel, QuestionHtmlModel } from "survey-core";
|
|
13
|
+
import { QuestionImageModel, QuestionImagePickerModel, QuestionMatrixModel, AdaptiveActionContainer, QuestionMultipleTextModel } from "survey-core";
|
|
14
|
+
import { MultipleTextItemModel, QuestionPanelDynamicModel, QuestionRadiogroupModel, QuestionRankingModel, QuestionRatingModel } from "survey-core";
|
|
15
|
+
import { RenderedRatingItem, QuestionSignaturePadModel, SurveyTimerModel, SurveyWindowModel, FlowPanelModel } from "survey-core";
|
|
16
|
+
import { QuestionCommentModel, QuestionCompositeModel, QuestionCustomModel, QuestionMatrixDynamicModel, QuestionTextModel } from "survey-core";
|
|
17
17
|
import * as React from "react";
|
|
18
18
|
|
|
19
19
|
export { SurveyModel } from "survey-core";
|
|
@@ -92,6 +92,7 @@ export declare class ReactQuestionFactory {
|
|
|
92
92
|
export declare class ReactSurveyElementsWrapper {
|
|
93
93
|
static wrapRow(survey: SurveyModel, element: any, row: QuestionRowModel): any;
|
|
94
94
|
static wrapElement(survey: SurveyModel, element: any, question: SurveyElement): any;
|
|
95
|
+
static wrapQuestionContent(survey: SurveyModel, element: any, question: SurveyElement): any;
|
|
95
96
|
static wrapItemValue(survey: SurveyModel, element: any, question: QuestionSelectBase, item: ItemValue): any;
|
|
96
97
|
static wrapMatrixCell(survey: SurveyModel, element: any, cell: QuestionMatrixDropdownRenderedCell, reason?: string): any;
|
|
97
98
|
}
|
|
@@ -111,6 +112,10 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
|
111
112
|
componentDidMount(): void;
|
|
112
113
|
componentWillUnmount(): void;
|
|
113
114
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
115
|
+
_allowComponentUpdate: boolean;
|
|
116
|
+
protected allowComponentUpdate(): void;
|
|
117
|
+
protected denyComponentUpdate(): void;
|
|
118
|
+
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
|
114
119
|
render(): any;
|
|
115
120
|
protected wrapElement(element: any): any;
|
|
116
121
|
protected get isRendering(): boolean;
|
|
@@ -210,7 +215,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
|
210
215
|
protected getStateElement(): PopupModel;
|
|
211
216
|
componentDidMount(): void;
|
|
212
217
|
componentWillUnmount(): void;
|
|
213
|
-
shouldComponentUpdate(nextProps: IPopupProps): boolean;
|
|
218
|
+
shouldComponentUpdate(nextProps: IPopupProps, nextState: any): boolean;
|
|
214
219
|
render(): any;
|
|
215
220
|
}
|
|
216
221
|
export declare class PopupContainer extends SurveyElementBase<any, any> {
|
|
@@ -373,8 +378,10 @@ export declare class SurveyQuestion extends SurveyElementBase<any, any> {
|
|
|
373
378
|
componentWillUnmount(): void;
|
|
374
379
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
375
380
|
protected canRender(): boolean;
|
|
381
|
+
protected renderQuestionContent(): any;
|
|
376
382
|
protected renderElement(): any;
|
|
377
383
|
protected wrapElement(element: any): any;
|
|
384
|
+
protected wrapQuestionContent(element: any): any;
|
|
378
385
|
protected renderQuestion(): any;
|
|
379
386
|
protected renderDescription(cssClasses: any, isUnderInput?: boolean): any;
|
|
380
387
|
protected renderComment(cssClasses: any): any;
|
|
@@ -392,7 +399,7 @@ export declare class SurveyQuestionElementBase extends SurveyElementBase<any, an
|
|
|
392
399
|
protected getRenderedElement(): Base;
|
|
393
400
|
protected get creator(): ISurveyCreator;
|
|
394
401
|
protected canRender(): boolean;
|
|
395
|
-
shouldComponentUpdate(): boolean;
|
|
402
|
+
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
|
396
403
|
protected get isDisplayMode(): boolean;
|
|
397
404
|
protected wrapCell(cell: any, element: any, reason: string): any;
|
|
398
405
|
}
|
|
@@ -411,7 +418,9 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
|
|
|
411
418
|
}
|
|
412
419
|
export declare class SurveyActionBarItemDropdown extends SurveyActionBarItem {
|
|
413
420
|
constructor(props: any);
|
|
421
|
+
viewModel: ActionDropdownViewModel;
|
|
414
422
|
renderButtonContent(): any;
|
|
423
|
+
componentWillUnmount(): void;
|
|
415
424
|
}
|
|
416
425
|
export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
|
417
426
|
constructor(props: any);
|
|
@@ -494,9 +503,13 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
|
|
494
503
|
constructor(props: any);
|
|
495
504
|
protected get question(): QuestionCheckboxModel;
|
|
496
505
|
protected renderElement(): any;
|
|
506
|
+
protected getHeader(): any;
|
|
507
|
+
protected getFooter(): any;
|
|
508
|
+
protected getColumnedBody(cssClasses: any): any;
|
|
497
509
|
protected getColumns(cssClasses: any): any;
|
|
498
510
|
protected getItems(cssClasses: any): Array<any>;
|
|
499
511
|
protected get textStyle(): any;
|
|
512
|
+
protected renderOther(): any;
|
|
500
513
|
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): any;
|
|
501
514
|
}
|
|
502
515
|
export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
@@ -507,14 +520,13 @@ export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
|
507
520
|
protected get textStyle(): any;
|
|
508
521
|
protected get isFirst(): any;
|
|
509
522
|
protected get index(): number;
|
|
510
|
-
shouldComponentUpdate(): boolean;
|
|
523
|
+
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
|
511
524
|
handleOnChange: any;
|
|
512
525
|
selectAllChanged: any;
|
|
513
526
|
protected canRender(): boolean;
|
|
514
527
|
protected renderElement(): any;
|
|
515
528
|
protected get inputStyle(): any;
|
|
516
529
|
protected renderCheckbox(isChecked: boolean, otherItem: any): any;
|
|
517
|
-
protected renderOther(): any;
|
|
518
530
|
}
|
|
519
531
|
export declare class SurveyQuestionCommentItem extends ReactSurveyElement {
|
|
520
532
|
constructor(props: any);
|
|
@@ -634,10 +646,6 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
|
|
|
634
646
|
protected get question(): QuestionPanelDynamicModel;
|
|
635
647
|
componentDidMount(): void;
|
|
636
648
|
componentWillUnmount(): void;
|
|
637
|
-
handleOnPanelAddClick(event: any): void;
|
|
638
|
-
handleOnPanelPrevClick(event: any): void;
|
|
639
|
-
handleOnPanelNextClick(event: any): void;
|
|
640
|
-
handleOnRangeChange(event: any): void;
|
|
641
649
|
protected renderElement(): any;
|
|
642
650
|
protected renderNavigator(): any;
|
|
643
651
|
protected rendrerPrevButton(): any;
|
|
@@ -647,6 +655,10 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
|
|
|
647
655
|
protected renderNavigatorV2(): any;
|
|
648
656
|
protected renderPlaceholder(): any;
|
|
649
657
|
}
|
|
658
|
+
export declare class SurveyQuestionPanelDynamicAction extends ReactSurveyElement {
|
|
659
|
+
constructor(props: any);
|
|
660
|
+
protected get question(): QuestionPanelDynamicModel;
|
|
661
|
+
}
|
|
650
662
|
export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
651
663
|
constructor(props: any);
|
|
652
664
|
protected getStateElement(): Base;
|
|
@@ -655,19 +667,21 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
|
655
667
|
protected get textStyle(): any;
|
|
656
668
|
protected get index(): number;
|
|
657
669
|
protected get isChecked(): boolean;
|
|
658
|
-
shouldComponentUpdate(): boolean;
|
|
670
|
+
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
|
659
671
|
handleOnChange(event: any): void;
|
|
660
672
|
protected canRender(): boolean;
|
|
661
673
|
protected renderElement(): any;
|
|
662
|
-
protected renderOther(cssClasses: any): any;
|
|
663
674
|
}
|
|
664
675
|
export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
|
|
665
676
|
constructor(props: any);
|
|
666
677
|
protected get question(): QuestionRadiogroupModel;
|
|
667
678
|
protected renderElement(): any;
|
|
679
|
+
protected getFooter(): any;
|
|
680
|
+
protected getColumnedBody(cssClasses: any): any;
|
|
668
681
|
protected getColumns(cssClasses: any): any;
|
|
669
682
|
protected getItems(cssClasses: any): Array<any>;
|
|
670
683
|
protected get textStyle(): any;
|
|
684
|
+
protected renderOther(cssClasses: any): any;
|
|
671
685
|
}
|
|
672
686
|
export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
|
|
673
687
|
constructor(props: any);
|
|
@@ -795,6 +809,11 @@ export declare class SurveyQuestionMatrixDynamic extends SurveyQuestionMatrixDro
|
|
|
795
809
|
protected renderNoRowsContent(cssClasses: any): any;
|
|
796
810
|
protected renderAddRowButton(cssClasses: any, isEmptySection?: boolean): any;
|
|
797
811
|
}
|
|
812
|
+
export declare class SurveyQuestionPanelDynamicAddButton extends SurveyQuestionPanelDynamicAction {
|
|
813
|
+
constructor(props: any);
|
|
814
|
+
protected handleClick: any;
|
|
815
|
+
protected renderElement(): any;
|
|
816
|
+
}
|
|
798
817
|
export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
|
|
799
818
|
constructor(props: any);
|
|
800
819
|
protected getSurvey(): SurveyModel;
|
|
@@ -803,6 +822,20 @@ export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
|
|
|
803
822
|
render(): any;
|
|
804
823
|
protected renderButton(): any;
|
|
805
824
|
}
|
|
825
|
+
export declare class SurveyQuestionPanelDynamicNextButton extends SurveyQuestionPanelDynamicAction {
|
|
826
|
+
constructor(props: any);
|
|
827
|
+
protected handleClick: any;
|
|
828
|
+
protected renderElement(): any;
|
|
829
|
+
}
|
|
830
|
+
export declare class SurveyQuestionPanelDynamicPrevButton extends SurveyQuestionPanelDynamicAction {
|
|
831
|
+
constructor(props: any);
|
|
832
|
+
protected handleClick: any;
|
|
833
|
+
protected renderElement(): any;
|
|
834
|
+
}
|
|
835
|
+
export declare class SurveyQuestionPanelDynamicProgressText extends SurveyQuestionPanelDynamicAction {
|
|
836
|
+
constructor(props: any);
|
|
837
|
+
protected renderElement(): any;
|
|
838
|
+
}
|
|
806
839
|
export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
|
|
807
840
|
constructor(props: any);
|
|
808
841
|
_isWaitingForEnter: boolean;
|