survey-react-ui 1.9.12 → 1.9.15
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 +40 -58
- package/survey-react-ui.js +602 -369
- 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.15
|
|
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,16 +8,20 @@ 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,
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
11
|
+
import { IElement, TooltipManager, PanelModel, QuestionBooleanModel, QuestionCheckboxModel } from "survey-core";
|
|
12
|
+
import { QuestionEmptyModel, QuestionExpressionModel, QuestionFileModel, QuestionHtmlModel, QuestionImageModel } from "survey-core";
|
|
13
|
+
import { QuestionImagePickerModel, QuestionMatrixModel, AdaptiveActionContainer, QuestionMultipleTextModel, MultipleTextItemModel } from "survey-core";
|
|
14
|
+
import { QuestionPanelDynamicModel, QuestionRadiogroupModel, QuestionRankingModel, QuestionRatingModel, RenderedRatingItem } from "survey-core";
|
|
15
|
+
import { QuestionSignaturePadModel, SurveyTimerModel, SurveyWindowModel, FlowPanelModel, QuestionCommentModel } from "survey-core";
|
|
16
|
+
import { QuestionCompositeModel, QuestionCustomModel, QuestionMatrixDynamicModel, QuestionTextModel } from "survey-core";
|
|
17
17
|
import * as React from "react";
|
|
18
18
|
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
19
|
+
export { SurveyModel } from "survey-core";
|
|
20
|
+
export { Model } from "survey-core";
|
|
21
|
+
export { SurveyWindowModel } from "survey-core";
|
|
22
|
+
export { settings } from "survey-core";
|
|
23
|
+
export { surveyLocalization } from "survey-core";
|
|
24
|
+
export { surveyStrings } from "survey-core";
|
|
21
25
|
|
|
22
26
|
export enum DragTypeOverMeEnum {
|
|
23
27
|
InsideEmptyPanel = 1,
|
|
@@ -86,12 +90,10 @@ export declare class ReactQuestionFactory {
|
|
|
86
90
|
createQuestion(questionType: string, params: any): any;
|
|
87
91
|
}
|
|
88
92
|
export declare class ReactSurveyElementsWrapper {
|
|
89
|
-
|
|
90
|
-
survey: SurveyModel;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
wrapItemValue(element: any, question: QuestionSelectBase, item: ItemValue): any;
|
|
94
|
-
wrapMatrixCell(element: any, cell: QuestionMatrixDropdownRenderedCell, reason?: string): any;
|
|
93
|
+
static wrapRow(survey: SurveyModel, element: any, row: QuestionRowModel): any;
|
|
94
|
+
static wrapElement(survey: SurveyModel, element: any, question: SurveyElement): any;
|
|
95
|
+
static wrapItemValue(survey: SurveyModel, element: any, question: QuestionSelectBase, item: ItemValue): any;
|
|
96
|
+
static wrapMatrixCell(survey: SurveyModel, element: any, cell: QuestionMatrixDropdownRenderedCell, reason?: string): any;
|
|
95
97
|
}
|
|
96
98
|
export declare class Skeleton extends React.Component<any, any> {
|
|
97
99
|
constructor(props: any);
|
|
@@ -151,14 +153,6 @@ export declare class SurveyNavigationBase extends React.Component<any, any> {
|
|
|
151
153
|
componentDidMount(): void;
|
|
152
154
|
componentWillUnmount(): void;
|
|
153
155
|
}
|
|
154
|
-
export declare class SurveyTimerPanel extends React.Component<any, any> {
|
|
155
|
-
constructor(props: any);
|
|
156
|
-
protected get survey(): SurveyModel;
|
|
157
|
-
update: any;
|
|
158
|
-
componentDidMount(): void;
|
|
159
|
-
componentWillUnmount(): void;
|
|
160
|
-
render(): any;
|
|
161
|
-
}
|
|
162
156
|
export declare class SvgIcon extends React.Component<any, any> {
|
|
163
157
|
constructor(props: any);
|
|
164
158
|
svgIconRef: any;
|
|
@@ -246,7 +240,7 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
|
|
|
246
240
|
rootRef: any;
|
|
247
241
|
static get cssType(): string;
|
|
248
242
|
static set cssType(val: string);
|
|
249
|
-
protected survey:
|
|
243
|
+
protected survey: SurveyModel;
|
|
250
244
|
rootNodeId: string;
|
|
251
245
|
rootNodeClassName: string;
|
|
252
246
|
protected getStateElement(): Base;
|
|
@@ -262,7 +256,6 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
|
|
|
262
256
|
protected renderCompleted(): any;
|
|
263
257
|
protected renderCompletedBefore(): any;
|
|
264
258
|
protected renderLoading(): any;
|
|
265
|
-
protected renderStartPage(): any;
|
|
266
259
|
protected renderSurvey(): any;
|
|
267
260
|
protected renderTimerPanel(location: string): any;
|
|
268
261
|
protected renderPage(page: PageModel): any;
|
|
@@ -316,7 +309,6 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
|
|
316
309
|
}
|
|
317
310
|
export declare class SurveyNavigation extends SurveyNavigationBase {
|
|
318
311
|
constructor(props: any);
|
|
319
|
-
mouseDownPage: any;
|
|
320
312
|
handlePrevClick(event: any): void;
|
|
321
313
|
handleNextClick(event: any): void;
|
|
322
314
|
handleNextMouseDown(event: any): boolean;
|
|
@@ -417,12 +409,6 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
|
|
|
417
409
|
componentWillUnmount(): void;
|
|
418
410
|
protected createElement(element: IElement, elementIndex?: number): any;
|
|
419
411
|
}
|
|
420
|
-
export declare class ReactWindowModel extends SurveyWindowModel {
|
|
421
|
-
constructor(jsonObj?: any, model?: ReactSurveyModel);
|
|
422
|
-
protected createSurvey(jsonObj: any): SurveyModel;
|
|
423
|
-
get renderCallback(): any;
|
|
424
|
-
set renderCallback(val: any);
|
|
425
|
-
}
|
|
426
412
|
export declare class SurveyActionBarItemDropdown extends SurveyActionBarItem {
|
|
427
413
|
constructor(props: any);
|
|
428
414
|
renderButtonContent(): any;
|
|
@@ -708,7 +694,6 @@ export declare class SurveyQuestionRating extends SurveyQuestionElementBase {
|
|
|
708
694
|
handleOnClick(event: any): void;
|
|
709
695
|
protected renderElement(): any;
|
|
710
696
|
protected renderItem(key: string, item: RenderedRatingItem, index: number, cssClasses: any): any;
|
|
711
|
-
protected renderOther(cssClasses: any): any;
|
|
712
697
|
}
|
|
713
698
|
export declare class SurveyQuestionSignaturePad extends SurveyQuestionElementBase {
|
|
714
699
|
constructor(props: any);
|
|
@@ -723,9 +708,15 @@ export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestion
|
|
|
723
708
|
protected getValueCore(): any;
|
|
724
709
|
protected updateDomElement(): void;
|
|
725
710
|
}
|
|
711
|
+
export declare class SurveyTimerPanel extends ReactSurveyElement {
|
|
712
|
+
constructor(props: any);
|
|
713
|
+
protected getStateElement(): Base;
|
|
714
|
+
protected get timerModel(): SurveyTimerModel;
|
|
715
|
+
render(): any;
|
|
716
|
+
}
|
|
726
717
|
export declare class SurveyWindow extends Survey {
|
|
727
718
|
constructor(props: any);
|
|
728
|
-
protected window:
|
|
719
|
+
protected window: SurveyWindowModel;
|
|
729
720
|
protected getStateElements(): Array<Base>;
|
|
730
721
|
handleOnExpanded(event: any): void;
|
|
731
722
|
protected canRender(): boolean;
|
|
@@ -734,21 +725,6 @@ export declare class SurveyWindow extends Survey {
|
|
|
734
725
|
protected renderBody(): any;
|
|
735
726
|
protected createSurvey(newProps: any): void;
|
|
736
727
|
}
|
|
737
|
-
export declare class ReactSurveyModel extends SurveyModel {
|
|
738
|
-
constructor(jsonObj?: any);
|
|
739
|
-
renderCallback: any;
|
|
740
|
-
render(): void;
|
|
741
|
-
mergeCss(src: any, dest: any): void;
|
|
742
|
-
doAfterRenderSurvey(el: any): void;
|
|
743
|
-
protected onLoadSurveyFromService(): void;
|
|
744
|
-
protected onLoadingSurveyFromService(): void;
|
|
745
|
-
setCompletedState(value: string, text: string): void;
|
|
746
|
-
start(): boolean;
|
|
747
|
-
wrapRow(element: any, row: QuestionRowModel): any;
|
|
748
|
-
wrapElement(element: any, question: SurveyElement): any;
|
|
749
|
-
wrapItemValue(element: any, question: QuestionSelectBase, item: ItemValue): any;
|
|
750
|
-
wrapMatrixCell(element: any, cell: QuestionMatrixDropdownRenderedCell, reason?: string): any;
|
|
751
|
-
}
|
|
752
728
|
export declare class SurveyFlowPanel extends SurveyPanel {
|
|
753
729
|
constructor(props: any);
|
|
754
730
|
get flowPanel(): FlowPanelModel;
|
|
@@ -781,6 +757,11 @@ export declare class SurveyQuestionBooleanCheckbox extends SurveyQuestionBoolean
|
|
|
781
757
|
constructor(props: any);
|
|
782
758
|
protected renderElement(): any;
|
|
783
759
|
}
|
|
760
|
+
export declare class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
|
|
761
|
+
constructor(props: any);
|
|
762
|
+
handleOnChange: any;
|
|
763
|
+
protected renderElement(): any;
|
|
764
|
+
}
|
|
784
765
|
export declare class SurveyQuestionComment extends SurveyQuestionUncontrolledElement<QuestionCommentModel> {
|
|
785
766
|
constructor(props: any);
|
|
786
767
|
protected renderElement(): any;
|
|
@@ -795,13 +776,11 @@ export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElem
|
|
|
795
776
|
protected getStateElements(): Array<Base>;
|
|
796
777
|
protected renderElement(): any;
|
|
797
778
|
}
|
|
798
|
-
export declare class
|
|
779
|
+
export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
|
|
799
780
|
constructor(props: any);
|
|
800
781
|
protected setValueCore(newValue: any): void;
|
|
801
782
|
protected getValueCore(): any;
|
|
802
|
-
protected renderElement(): any;
|
|
803
783
|
protected renderSelect(cssClasses: any): any;
|
|
804
|
-
protected renderOther(cssClasses: any): any;
|
|
805
784
|
}
|
|
806
785
|
export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
|
|
807
786
|
constructor(props: any);
|
|
@@ -830,6 +809,11 @@ export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElemen
|
|
|
830
809
|
protected renderInput(): any;
|
|
831
810
|
protected renderElement(): any;
|
|
832
811
|
}
|
|
812
|
+
export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
|
|
813
|
+
constructor(props: any);
|
|
814
|
+
protected renderElement(): any;
|
|
815
|
+
protected renderOther(cssClasses: any): any;
|
|
816
|
+
}
|
|
833
817
|
export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
|
|
834
818
|
constructor(props: any);
|
|
835
819
|
protected getQuestion(): Question;
|
|
@@ -839,11 +823,9 @@ export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndE
|
|
|
839
823
|
protected getHeaderText(): string;
|
|
840
824
|
protected renderQuestion(): any;
|
|
841
825
|
}
|
|
842
|
-
export declare
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
export declare function getSize(value: any): any;
|
|
847
|
-
export declare function getCurrecyCodes(): Array<any>;
|
|
826
|
+
export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdownBase<QuestionRatingModel> {
|
|
827
|
+
constructor(props: any);
|
|
828
|
+
protected renderElement(): any;
|
|
829
|
+
}
|
|
848
830
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
|
849
831
|
export declare function attachKey2click(element: any, viewModel?: any, options?: any): any;
|