survey-react 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/defaultV2.css +3211 -0
- package/defaultV2.min.css +6 -0
- package/modern.css +12 -2
- package/modern.min.css +2 -2
- package/package.json +3 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +173 -70
- package/survey.react.js +1507 -778
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
* Type definition for Survey JavaScript library for React v1.9.
|
2
|
+
* Type definition for Survey JavaScript library for React 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
|
*/
|
6
6
|
import * as React from "react";
|
7
7
|
|
8
|
-
export {
|
9
|
-
export { ReactWindowModel as WindowModel };
|
8
|
+
export { SurveyModel as Model };
|
10
9
|
|
11
10
|
export enum DragTypeOverMeEnum {
|
12
11
|
InsideEmptyPanel = 1,
|
@@ -201,6 +200,9 @@ export interface ISurveyTriggerOwner {
|
|
201
200
|
copyTriggerValue(name: string, fromName: string): any;
|
202
201
|
focusQuestion(name: string): boolean;
|
203
202
|
}
|
203
|
+
export interface ISurveyTimerText {
|
204
|
+
timerInfoText: string;
|
205
|
+
}
|
204
206
|
export interface IConditionObject {
|
205
207
|
name: string;
|
206
208
|
text: string;
|
@@ -1168,12 +1170,10 @@ export declare class ReactQuestionFactory {
|
|
1168
1170
|
createQuestion(questionType: string, params: any): any;
|
1169
1171
|
}
|
1170
1172
|
export declare class ReactSurveyElementsWrapper {
|
1171
|
-
|
1172
|
-
survey: any;
|
1173
|
-
|
1174
|
-
|
1175
|
-
wrapItemValue(element: any, question: any, item: any): any;
|
1176
|
-
wrapMatrixCell(element: any, cell: any, reason?: string): any;
|
1173
|
+
static wrapRow(survey: any, element: any, row: any): any;
|
1174
|
+
static wrapElement(survey: any, element: any, question: any): any;
|
1175
|
+
static wrapItemValue(survey: any, element: any, question: any, item: any): any;
|
1176
|
+
static wrapMatrixCell(survey: any, element: any, cell: any, reason?: string): any;
|
1177
1177
|
}
|
1178
1178
|
export declare class RendererFactory {
|
1179
1179
|
static Instance: RendererFactory;
|
@@ -1248,6 +1248,7 @@ export declare class SurveyError {
|
|
1248
1248
|
text: string;
|
1249
1249
|
locTextValue: LocalizableString;
|
1250
1250
|
visible: boolean;
|
1251
|
+
equalsTo(error: SurveyError): boolean;
|
1251
1252
|
get locText(): LocalizableString;
|
1252
1253
|
getText(): string;
|
1253
1254
|
getErrorType(): string;
|
@@ -1303,14 +1304,6 @@ export declare class SurveyTimer {
|
|
1303
1304
|
stop(func?: any): void;
|
1304
1305
|
doTimer(): void;
|
1305
1306
|
}
|
1306
|
-
export declare class SurveyTimerPanel extends React.Component<any, any> {
|
1307
|
-
constructor(props: any);
|
1308
|
-
protected get survey(): any;
|
1309
|
-
update: any;
|
1310
|
-
componentDidMount(): void;
|
1311
|
-
componentWillUnmount(): void;
|
1312
|
-
render(): any;
|
1313
|
-
}
|
1314
1307
|
export declare class SvgIcon extends React.Component<any, any> {
|
1315
1308
|
constructor(props: any);
|
1316
1309
|
svgIconRef: any;
|
@@ -1708,6 +1701,9 @@ export declare class ExceedSizeError extends SurveyError {
|
|
1708
1701
|
getErrorType(): string;
|
1709
1702
|
getDefaultText(): string;
|
1710
1703
|
}
|
1704
|
+
/*
|
1705
|
+
* Base class for HtmlConditionItem and UrlConditionItem classes.
|
1706
|
+
*/
|
1711
1707
|
export declare class ExpressionItem extends Base implements ILocalizableOwner {
|
1712
1708
|
constructor(expression?: string);
|
1713
1709
|
locOwner: ILocalizableOwner;
|
@@ -2112,6 +2108,7 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
2112
2108
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
2113
2109
|
protected updateTemplateQuestion(): void;
|
2114
2110
|
protected createNewQuestion(cellType: string): Question;
|
2111
|
+
previousChoicesId: string;
|
2115
2112
|
protected setQuestionProperties(question: Question, onUpdateJson?: any): void;
|
2116
2113
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
2117
2114
|
}
|
@@ -2562,7 +2559,7 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
|
|
2562
2559
|
rootRef: any;
|
2563
2560
|
static get cssType(): string;
|
2564
2561
|
static set cssType(val: string);
|
2565
|
-
protected survey:
|
2562
|
+
protected survey: any;
|
2566
2563
|
rootNodeId: string;
|
2567
2564
|
rootNodeClassName: string;
|
2568
2565
|
protected getStateElement(): Base;
|
@@ -2578,7 +2575,6 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
|
|
2578
2575
|
protected renderCompleted(): any;
|
2579
2576
|
protected renderCompletedBefore(): any;
|
2580
2577
|
protected renderLoading(): any;
|
2581
|
-
protected renderStartPage(): any;
|
2582
2578
|
protected renderSurvey(): any;
|
2583
2579
|
protected renderTimerPanel(location: string): any;
|
2584
2580
|
protected renderPage(page: any): any;
|
@@ -2675,7 +2671,6 @@ export declare class SurveyElementCore extends Base implements ILocalizableOwner
|
|
2675
2671
|
}
|
2676
2672
|
export declare class SurveyNavigation extends SurveyNavigationBase {
|
2677
2673
|
constructor(props: any);
|
2678
|
-
mouseDownPage: any;
|
2679
2674
|
handlePrevClick(event: any): void;
|
2680
2675
|
handleNextClick(event: any): void;
|
2681
2676
|
handleNextMouseDown(event: any): any;
|
@@ -2776,6 +2771,19 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
|
|
2776
2771
|
componentWillUnmount(): void;
|
2777
2772
|
protected createElement(element: any, elementIndex?: number): any;
|
2778
2773
|
}
|
2774
|
+
export declare class SurveyTimerModel extends Base {
|
2775
|
+
constructor(survey: ISurvey);
|
2776
|
+
onTimer: any;
|
2777
|
+
surveyValue: ISurvey;
|
2778
|
+
text: string;
|
2779
|
+
spent: number;
|
2780
|
+
get survey(): ISurvey;
|
2781
|
+
onCreating(): void;
|
2782
|
+
timerFunc: any;
|
2783
|
+
start(): void;
|
2784
|
+
stop(): void;
|
2785
|
+
get isRunning(): boolean;
|
2786
|
+
}
|
2779
2787
|
/*
|
2780
2788
|
* Base SurveyJS validator class.
|
2781
2789
|
*/
|
@@ -2812,7 +2820,7 @@ export declare class SurveyWindowModel extends Base {
|
|
2812
2820
|
templateValue: string;
|
2813
2821
|
expandedChangedCallback: any;
|
2814
2822
|
showingChangedCallback: any;
|
2815
|
-
|
2823
|
+
protected onCreating(): void;
|
2816
2824
|
getType(): string;
|
2817
2825
|
/*
|
2818
2826
|
* A survey object.
|
@@ -2840,6 +2848,7 @@ export declare class SurveyWindowModel extends Base {
|
|
2840
2848
|
*/
|
2841
2849
|
get isExpanded(): boolean;
|
2842
2850
|
set isExpanded(val: boolean);
|
2851
|
+
protected onExpandedChanged(): void;
|
2843
2852
|
/*
|
2844
2853
|
* The window and survey title.
|
2845
2854
|
*/
|
@@ -2854,10 +2863,15 @@ export declare class SurveyWindowModel extends Base {
|
|
2854
2863
|
* Collapse the window and show survey title only.
|
2855
2864
|
*/
|
2856
2865
|
collapse(): void;
|
2866
|
+
changeExpandCollapse(): void;
|
2867
|
+
get css(): any;
|
2868
|
+
get cssButton(): string;
|
2869
|
+
get cssRoot(): string;
|
2870
|
+
get cssBody(): string;
|
2871
|
+
get cssHeaderRoot(): string;
|
2872
|
+
get cssHeaderTitle(): string;
|
2857
2873
|
protected createSurvey(jsonObj: any): SurveyModel;
|
2858
|
-
protected expandcollapse(value: boolean): void;
|
2859
2874
|
protected onSurveyComplete(): void;
|
2860
|
-
protected closeWindowOnComplete(): void;
|
2861
2875
|
}
|
2862
2876
|
/*
|
2863
2877
|
* A base class for all triggers.
|
@@ -3191,12 +3205,6 @@ export declare class QuestionPanelDynamicItemTextProcessor extends QuestionTextP
|
|
3191
3205
|
protected getQuestionByName(name: string): Question;
|
3192
3206
|
protected onCustomProcessText(textValue: TextPreProcessorValue): boolean;
|
3193
3207
|
}
|
3194
|
-
export declare class ReactWindowModel extends SurveyWindowModel {
|
3195
|
-
constructor(jsonObj?: any, model?: ReactSurveyModel);
|
3196
|
-
protected createSurvey(jsonObj: any): SurveyModel;
|
3197
|
-
get renderCallback(): any;
|
3198
|
-
set renderCallback(val: any);
|
3199
|
-
}
|
3200
3208
|
/*
|
3201
3209
|
* Use it to validate the text by regular expressions.
|
3202
3210
|
*/
|
@@ -3441,9 +3449,11 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
3441
3449
|
/*
|
3442
3450
|
* The `Survey` object contains information about the survey, Pages, Questions, flow logic and etc.
|
3443
3451
|
*/
|
3444
|
-
export declare class SurveyModel extends SurveyElementCore implements ISurvey, ISurveyData, ISurveyImpl, ISurveyTriggerOwner, ISurveyErrorOwner {
|
3445
|
-
constructor(jsonObj?: any);
|
3452
|
+
export declare class SurveyModel extends SurveyElementCore implements ISurvey, ISurveyData, ISurveyImpl, ISurveyTriggerOwner, ISurveyErrorOwner, ISurveyTimerText {
|
3453
|
+
constructor(jsonObj?: any, renderedElement?: any);
|
3446
3454
|
static TemplateRendererComponentName: string;
|
3455
|
+
static get cssType(): string;
|
3456
|
+
static set cssType(val: string);
|
3447
3457
|
static stylesManager: StylesManager;
|
3448
3458
|
static platform: string;
|
3449
3459
|
get platformName(): string;
|
@@ -3458,9 +3468,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3458
3468
|
editingObjValue: Base;
|
3459
3469
|
localeValue: string;
|
3460
3470
|
textPreProcessor: TextPreProcessor;
|
3461
|
-
|
3462
|
-
completedStateTextValue: string;
|
3463
|
-
isTimerStarted: boolean;
|
3471
|
+
timerModelValue: SurveyTimerModel;
|
3464
3472
|
/*
|
3465
3473
|
* The event is fired before the survey is completed and the `onComplete` event is fired. You can prevent the survey from completing by setting `options.allowComplete` to `false`
|
3466
3474
|
* <br/> `sender` - the survey object that fires the event.
|
@@ -3872,10 +3880,14 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3872
3880
|
*/
|
3873
3881
|
onFocusInPanel: EventBase<SurveyModel>;
|
3874
3882
|
/*
|
3875
|
-
*
|
3876
|
-
*
|
3877
|
-
*
|
3878
|
-
*
|
3883
|
+
* Use this event to change the visibility of an individual choice item in [Checkbox](https://surveyjs.io/Documentation/Library?id=questioncheckboxmodel), [Dropdown](https://surveyjs.io/Documentation/Library?id=questiondropdownmodel), [Radiogroup](https://surveyjs.io/Documentation/Library?id=questionradiogroupmodel), and other similar question types.
|
3884
|
+
*
|
3885
|
+
* The event handler accepts the following arguments:
|
3886
|
+
*
|
3887
|
+
* - `sender` - A Survey instance that raised the event.
|
3888
|
+
* - `options.question` - A Question instance to which the choice item belongs.
|
3889
|
+
* - `options.item` - The choice item as specified in the [choices](https://surveyjs.io/Documentation/Library?id=QuestionSelectBase#choices) array.
|
3890
|
+
* - `options.visible` - A Boolean value that specifies the item visibility. Set it to `false` to hide the item.
|
3879
3891
|
*/
|
3880
3892
|
onShowingChoiceItem: EventBase<SurveyModel>;
|
3881
3893
|
/*
|
@@ -4103,6 +4115,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4103
4115
|
* Returns a list of all pages in the survey, including invisible pages.
|
4104
4116
|
*/
|
4105
4117
|
get pages(): any;
|
4118
|
+
renderCallback: any;
|
4119
|
+
render(element?: any): void;
|
4120
|
+
updateSurvey(newProps: any, oldProps?: any): void;
|
4106
4121
|
getCss(): any;
|
4107
4122
|
cssValue: any;
|
4108
4123
|
get css(): any;
|
@@ -4116,6 +4131,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4116
4131
|
get cssNavigationNext(): string;
|
4117
4132
|
get bodyCss(): string;
|
4118
4133
|
get completedCss(): string;
|
4134
|
+
get completedStateCss(): string;
|
4135
|
+
getCompletedStateCss(): string;
|
4119
4136
|
lazyRenderingValue: boolean;
|
4120
4137
|
/*
|
4121
4138
|
* By default all rows are rendered no matters if they are visible or not.
|
@@ -4538,7 +4555,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4538
4555
|
*/
|
4539
4556
|
get questionTitleLocation(): string;
|
4540
4557
|
set questionTitleLocation(val: string);
|
4541
|
-
|
4558
|
+
updateElementCss(reNew?: boolean): void;
|
4542
4559
|
/*
|
4543
4560
|
* Gets or sets the error message position.
|
4544
4561
|
*
|
@@ -4599,6 +4616,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4599
4616
|
getDataValueCore(valuesHash: any, key: string): any;
|
4600
4617
|
setDataValueCore(valuesHash: any, key: string, value: any): void;
|
4601
4618
|
deleteDataValueCore(valuesHash: any, key: string): void;
|
4619
|
+
valueHashGetDataCallback: any;
|
4620
|
+
valueHashSetDataCallback: any;
|
4621
|
+
valueHashDeleteDataCallback: any;
|
4602
4622
|
/*
|
4603
4623
|
* Returns all comments from the data.
|
4604
4624
|
*/
|
@@ -4637,6 +4657,14 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4637
4657
|
*/
|
4638
4658
|
get activePage(): any;
|
4639
4659
|
/*
|
4660
|
+
* The started page is showing right now. survey state equals to "starting"
|
4661
|
+
*/
|
4662
|
+
get isShowStartingPage(): boolean;
|
4663
|
+
/*
|
4664
|
+
* Survey is showing a page right now. It is in "running", "preview" or starting state.
|
4665
|
+
*/
|
4666
|
+
get isShowingPage(): boolean;
|
4667
|
+
/*
|
4640
4668
|
* The zero-based index of the current page in the visible pages array.
|
4641
4669
|
*/
|
4642
4670
|
get currentPageNo(): number;
|
@@ -4706,9 +4734,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4706
4734
|
* Returns `true` if the survey is in edit mode.
|
4707
4735
|
*/
|
4708
4736
|
get isEditMode(): boolean;
|
4709
|
-
get isCompleteButtonVisible(): boolean;
|
4710
|
-
get isPreviewButtonVisible(): boolean;
|
4711
|
-
get isCancelPreviewButtonVisible(): boolean;
|
4712
4737
|
/*
|
4713
4738
|
* Returns `true` if the survey is in display mode or in preview mode.
|
4714
4739
|
*/
|
@@ -4792,6 +4817,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4792
4817
|
completeLastPage(): boolean;
|
4793
4818
|
isNavigationButtonPressed: boolean;
|
4794
4819
|
navigationMouseDown(): boolean;
|
4820
|
+
mouseDownPage: any;
|
4821
|
+
nextPageUIClick(): void;
|
4822
|
+
nextPageMouseDown(): boolean;
|
4795
4823
|
/*
|
4796
4824
|
* Shows preview for the survey. Switches the survey to the "preview" state.
|
4797
4825
|
*
|
@@ -4851,6 +4879,10 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4851
4879
|
get isLastPage(): boolean;
|
4852
4880
|
get isShowPrevButton(): boolean;
|
4853
4881
|
get isShowNextButton(): boolean;
|
4882
|
+
get isCompleteButtonVisible(): boolean;
|
4883
|
+
get isPreviewButtonVisible(): boolean;
|
4884
|
+
get isCancelPreviewButtonVisible(): boolean;
|
4885
|
+
calcIsCompleteButtonVisible(): boolean;
|
4854
4886
|
/*
|
4855
4887
|
* Completes the survey.
|
4856
4888
|
*
|
@@ -4899,7 +4931,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4899
4931
|
isCalculatingProgressText: boolean;
|
4900
4932
|
updateProgressText(onValueChanged?: boolean): void;
|
4901
4933
|
getProgressText(): string;
|
4902
|
-
|
4934
|
+
afterRenderSurvey(htmlElement: any): void;
|
4903
4935
|
updateQuestionCssClasses(question: IQuestion, cssClasses: any): void;
|
4904
4936
|
updatePanelCssClasses(panel: IPanel, cssClasses: any): void;
|
4905
4937
|
updatePageCssClasses(page: IPage, cssClasses: any): void;
|
@@ -5022,6 +5054,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5022
5054
|
protected updateQuestionValue(valueName: string, newValue: any): void;
|
5023
5055
|
protected notifyQuestionOnValueChanged(valueName: string, newValue: any): void;
|
5024
5056
|
isRunningElementsBindings: boolean;
|
5057
|
+
updateVisibleIndexAfterBindings: boolean;
|
5025
5058
|
isTriggerIsRunning: boolean;
|
5026
5059
|
triggerValues: any;
|
5027
5060
|
triggerKeys: any;
|
@@ -5051,6 +5084,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5051
5084
|
endLoadingFromJson(): void;
|
5052
5085
|
protected onBeforeCreating(): void;
|
5053
5086
|
protected onCreating(): void;
|
5087
|
+
getBuiltInVariableValue(name: string): number;
|
5054
5088
|
hasVisibleQuestionByValueName(valueName: string): boolean;
|
5055
5089
|
questionCountByValueName(valueName: string): number;
|
5056
5090
|
/*
|
@@ -5168,7 +5202,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5168
5202
|
set widthMode(val: string);
|
5169
5203
|
calculateWidthMode(): string;
|
5170
5204
|
get timerInfoText(): string;
|
5171
|
-
|
5205
|
+
get timerModel(): SurveyTimerModel;
|
5172
5206
|
/*
|
5173
5207
|
* Starts a timer that will calculate how much time end-user spends on the survey or on pages.
|
5174
5208
|
*/
|
@@ -5181,7 +5215,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5181
5215
|
/*
|
5182
5216
|
* Returns the time in seconds an end user spends on the survey
|
5183
5217
|
*/
|
5184
|
-
timeSpent: number;
|
5218
|
+
get timeSpent(): number;
|
5185
5219
|
/*
|
5186
5220
|
* Gets or sets the maximum time in seconds that end user has to complete a survey. If the value is 0 or less, an end user has no time limit to finish a survey.
|
5187
5221
|
*/
|
@@ -5194,7 +5228,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5194
5228
|
*/
|
5195
5229
|
get maxTimeToFinishPage(): number;
|
5196
5230
|
set maxTimeToFinishPage(val: number);
|
5197
|
-
protected doTimer(): void;
|
5198
5231
|
get inSurvey(): boolean;
|
5199
5232
|
getSurveyData(): ISurveyData;
|
5200
5233
|
getSurvey(): ISurvey;
|
@@ -5222,6 +5255,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5222
5255
|
* Use this method to dispose survey model properly.
|
5223
5256
|
*/
|
5224
5257
|
dispose(): void;
|
5258
|
+
disposeCallback: any;
|
5225
5259
|
}
|
5226
5260
|
export declare class SurveyPage extends SurveyPanelBase {
|
5227
5261
|
constructor(props: any);
|
@@ -5292,7 +5326,7 @@ export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
5292
5326
|
constructor(props: any);
|
5293
5327
|
protected getStateElement(): Base;
|
5294
5328
|
protected get question(): QuestionCheckboxModel;
|
5295
|
-
protected get item():
|
5329
|
+
protected get item(): any;
|
5296
5330
|
protected get textStyle(): any;
|
5297
5331
|
protected get isFirst(): any;
|
5298
5332
|
protected get index(): number;
|
@@ -5483,7 +5517,6 @@ export declare class SurveyQuestionRating extends SurveyQuestionElementBase {
|
|
5483
5517
|
handleOnClick(event: any): void;
|
5484
5518
|
protected renderElement(): any;
|
5485
5519
|
protected renderItem(key: string, item: any, index: number, cssClasses: any): any;
|
5486
|
-
protected renderOther(cssClasses: any): any;
|
5487
5520
|
}
|
5488
5521
|
export declare class SurveyQuestionSignaturePad extends SurveyQuestionElementBase {
|
5489
5522
|
constructor(props: any);
|
@@ -5498,6 +5531,12 @@ export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestion
|
|
5498
5531
|
protected getValueCore(): any;
|
5499
5532
|
protected updateDomElement(): void;
|
5500
5533
|
}
|
5534
|
+
export declare class SurveyTimerPanel extends ReactSurveyElement {
|
5535
|
+
constructor(props: any);
|
5536
|
+
protected getStateElement(): Base;
|
5537
|
+
protected get timerModel(): any;
|
5538
|
+
render(): any;
|
5539
|
+
}
|
5501
5540
|
/*
|
5502
5541
|
* It extends the Trigger base class and add properties required for SurveyJS classes.
|
5503
5542
|
*/
|
@@ -5511,7 +5550,7 @@ export declare class SurveyTrigger extends Trigger {
|
|
5511
5550
|
}
|
5512
5551
|
export declare class SurveyWindow extends Survey {
|
5513
5552
|
constructor(props: any);
|
5514
|
-
protected window:
|
5553
|
+
protected window: any;
|
5515
5554
|
protected getStateElements(): Array<Base>;
|
5516
5555
|
handleOnExpanded(event: any): void;
|
5517
5556
|
protected canRender(): boolean;
|
@@ -5605,8 +5644,10 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5605
5644
|
getType(): string;
|
5606
5645
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
5607
5646
|
endLoadingFromJson(): void;
|
5647
|
+
showTitle: boolean;
|
5608
5648
|
get hasTitle(): boolean;
|
5609
5649
|
protected canShowTitle(): boolean;
|
5650
|
+
showDescription: boolean;
|
5610
5651
|
get _showDescription(): boolean;
|
5611
5652
|
localeChanged(): void;
|
5612
5653
|
locStrsChanged(): void;
|
@@ -5884,6 +5925,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
5884
5925
|
*/
|
5885
5926
|
onReadyChanged: EventBase<Question>;
|
5886
5927
|
isReadOnlyRenderDiv(): boolean;
|
5928
|
+
isMobile: boolean;
|
5887
5929
|
protected createLocTitleProperty(): LocalizableString;
|
5888
5930
|
getSurvey(live?: boolean): ISurvey;
|
5889
5931
|
getValueName(): string;
|
@@ -6370,22 +6412,14 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6370
6412
|
get validatedValue(): any;
|
6371
6413
|
set validatedValue(val: any);
|
6372
6414
|
getAllValues(): any;
|
6415
|
+
transformToMobileView(): void;
|
6416
|
+
transformToDesktopView(): void;
|
6373
6417
|
needResponsiveWidth(): boolean;
|
6374
|
-
|
6375
|
-
|
6376
|
-
|
6377
|
-
|
6378
|
-
|
6379
|
-
mergeCss(src: any, dest: any): void;
|
6380
|
-
doAfterRenderSurvey(el: any): void;
|
6381
|
-
protected onLoadSurveyFromService(): void;
|
6382
|
-
protected onLoadingSurveyFromService(): void;
|
6383
|
-
setCompletedState(value: string, text: string): void;
|
6384
|
-
start(): boolean;
|
6385
|
-
wrapRow(element: any, row: any): any;
|
6386
|
-
wrapElement(element: any, question: any): any;
|
6387
|
-
wrapItemValue(element: any, question: any, item: any): any;
|
6388
|
-
wrapMatrixCell(element: any, cell: any, reason?: string): any;
|
6418
|
+
protected supportResponsiveness(): boolean;
|
6419
|
+
resizeObserver: any;
|
6420
|
+
protected getCompactRenderAs(): string;
|
6421
|
+
protected processResponsiveness(requiredWidth: number, availableWidth: number): void;
|
6422
|
+
dispose(): void;
|
6389
6423
|
}
|
6390
6424
|
export declare class SurveyFlowPanel extends SurveyPanel {
|
6391
6425
|
constructor(props: any);
|
@@ -6419,6 +6453,11 @@ export declare class SurveyQuestionBooleanCheckbox extends SurveyQuestionBoolean
|
|
6419
6453
|
constructor(props: any);
|
6420
6454
|
protected renderElement(): any;
|
6421
6455
|
}
|
6456
|
+
export declare class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
|
6457
|
+
constructor(props: any);
|
6458
|
+
handleOnChange: any;
|
6459
|
+
protected renderElement(): any;
|
6460
|
+
}
|
6422
6461
|
export declare class SurveyQuestionComment extends SurveyQuestionUncontrolledElement<QuestionCommentModel> {
|
6423
6462
|
constructor(props: any);
|
6424
6463
|
protected renderElement(): any;
|
@@ -6433,13 +6472,11 @@ export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElem
|
|
6433
6472
|
protected getStateElements(): Array<Base>;
|
6434
6473
|
protected renderElement(): any;
|
6435
6474
|
}
|
6436
|
-
export declare class
|
6475
|
+
export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
|
6437
6476
|
constructor(props: any);
|
6438
6477
|
protected setValueCore(newValue: any): void;
|
6439
6478
|
protected getValueCore(): any;
|
6440
|
-
protected renderElement(): any;
|
6441
6479
|
protected renderSelect(cssClasses: any): any;
|
6442
|
-
protected renderOther(cssClasses: any): any;
|
6443
6480
|
}
|
6444
6481
|
export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
|
6445
6482
|
constructor(props: any);
|
@@ -6780,6 +6817,9 @@ export declare class QuestionBooleanModel extends Question {
|
|
6780
6817
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
6781
6818
|
onLabelClick(event: any, value: boolean): boolean;
|
6782
6819
|
onSwitchClickModel(event: any): boolean;
|
6820
|
+
getRadioItemClass(css: any, value: any): string;
|
6821
|
+
protected supportResponsiveness(): boolean;
|
6822
|
+
protected getCompactRenderAs(): string;
|
6783
6823
|
}
|
6784
6824
|
export declare class QuestionCustomModelBase extends Question implements ISurveyImpl, ISurveyData, IPanel {
|
6785
6825
|
constructor(name: string, customQuestion: ComponentQuestionJSON);
|
@@ -6905,6 +6945,15 @@ export declare class QuestionFileModel extends Question {
|
|
6905
6945
|
onStateChanged: EventBase<QuestionFileModel>;
|
6906
6946
|
previewValue: any;
|
6907
6947
|
currentState: string;
|
6948
|
+
indexToShow: number;
|
6949
|
+
containsMultiplyFiles: boolean;
|
6950
|
+
mobileFileNavigator: any;
|
6951
|
+
prevFileAction: Action;
|
6952
|
+
nextFileAction: Action;
|
6953
|
+
fileIndexAction: Action;
|
6954
|
+
get mobileFileNavigatorVisible(): boolean;
|
6955
|
+
protected updateElementCssCore(cssClasses: any): void;
|
6956
|
+
isPreviewVisible(index: number): boolean;
|
6908
6957
|
getType(): string;
|
6909
6958
|
clearOnDeletingContainer(): void;
|
6910
6959
|
/*
|
@@ -7037,7 +7086,7 @@ export declare class QuestionFileModel extends Question {
|
|
7037
7086
|
supportComment(): boolean;
|
7038
7087
|
getChooseFileCss(): string;
|
7039
7088
|
getReadOnlyFileCss(): string;
|
7040
|
-
|
7089
|
+
get fileRootCss(): string;
|
7041
7090
|
getFileDecoratorCss(): string;
|
7042
7091
|
onDragOver: any;
|
7043
7092
|
onDrop: any;
|
@@ -7551,6 +7600,17 @@ export declare class QuestionRatingModel extends Question {
|
|
7551
7600
|
*/
|
7552
7601
|
setValueFromClick(value: any): void;
|
7553
7602
|
getItemClass(item: ItemValue): string;
|
7603
|
+
getControlClass(): string;
|
7604
|
+
get optionsCaption(): string;
|
7605
|
+
set optionsCaption(val: string);
|
7606
|
+
get locOptionsCaption(): LocalizableString;
|
7607
|
+
get showOptionsCaption(): boolean;
|
7608
|
+
get renderedValue(): boolean;
|
7609
|
+
set renderedValue(val: boolean);
|
7610
|
+
get visibleChoices(): any;
|
7611
|
+
get readOnlyText(): any;
|
7612
|
+
protected supportResponsiveness(): boolean;
|
7613
|
+
protected getCompactRenderAs(): string;
|
7554
7614
|
}
|
7555
7615
|
/*
|
7556
7616
|
* It is a base class for checkbox, dropdown and radiogroup questions.
|
@@ -7558,6 +7618,7 @@ export declare class QuestionRatingModel extends Question {
|
|
7558
7618
|
export declare class QuestionSelectBase extends Question {
|
7559
7619
|
constructor(name: string);
|
7560
7620
|
visibleChoicesChangedCallback: any;
|
7621
|
+
loadedChoicesFromServerCallback: any;
|
7561
7622
|
filteredChoicesValue: any;
|
7562
7623
|
conditionChoicesVisibleIfRunner: ConditionRunner;
|
7563
7624
|
conditionChoicesEnableIfRunner: ConditionRunner;
|
@@ -7885,6 +7946,11 @@ export declare class QuestionTextBase extends Question {
|
|
7885
7946
|
protected hasPlaceHolder(): boolean;
|
7886
7947
|
getControlClass(): string;
|
7887
7948
|
}
|
7949
|
+
export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
|
7950
|
+
constructor(props: any);
|
7951
|
+
protected renderElement(): any;
|
7952
|
+
protected renderOther(cssClasses: any): any;
|
7953
|
+
}
|
7888
7954
|
export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
|
7889
7955
|
constructor(props: any);
|
7890
7956
|
protected getQuestion(): Question;
|
@@ -7894,6 +7960,10 @@ export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndE
|
|
7894
7960
|
protected getHeaderText(): string;
|
7895
7961
|
protected renderQuestion(): any;
|
7896
7962
|
}
|
7963
|
+
export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdownBase<QuestionRatingModel> {
|
7964
|
+
constructor(props: any);
|
7965
|
+
protected renderElement(): any;
|
7966
|
+
}
|
7897
7967
|
/*
|
7898
7968
|
* The flow panel object. It is a container with flow layout where you can mix questions with markdown text.
|
7899
7969
|
*/
|
@@ -8311,6 +8381,8 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8311
8381
|
protected getConditionObjectRowText(index: number): string;
|
8312
8382
|
protected getConditionObjectsRowIndeces(): Array<any>;
|
8313
8383
|
getProgressInfo(): IProgressInfo;
|
8384
|
+
protected updateProgressInfoByValues(res: IProgressInfo): void;
|
8385
|
+
protected updateProgressInfoByRow(res: IProgressInfo, rowValue: any): void;
|
8314
8386
|
protected onBeforeValueChanged(val: any): void;
|
8315
8387
|
protected setQuestionValue(newValue: any): void;
|
8316
8388
|
supportGoNextPageAutomatic(): boolean;
|
@@ -8355,6 +8427,8 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8355
8427
|
getColumnHeaderWrapperComponentData(cell: MatrixDropdownCell): any;
|
8356
8428
|
getRowHeaderWrapperComponentName(cell: MatrixDropdownCell): string;
|
8357
8429
|
getRowHeaderWrapperComponentData(cell: MatrixDropdownCell): any;
|
8430
|
+
get showHorizontalScroll(): boolean;
|
8431
|
+
getRootCss(): string;
|
8358
8432
|
}
|
8359
8433
|
/*
|
8360
8434
|
* A Model for a simple matrix question.
|
@@ -8700,6 +8774,7 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
8700
8774
|
protected generateRows(): Array<MatrixDropdownRowModel>;
|
8701
8775
|
protected createMatrixRow(item: ItemValue, value: any): MatrixDropdownRowModel;
|
8702
8776
|
protected getSearchableItemValueKeys(keys: any): void;
|
8777
|
+
protected updateProgressInfoByValues(res: IProgressInfo): void;
|
8703
8778
|
}
|
8704
8779
|
/*
|
8705
8780
|
* A Model for a matrix dymanic question. You may use a dropdown, checkbox, radiogroup, text and comment questions as a cell editors.
|
@@ -8748,6 +8823,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
8748
8823
|
*/
|
8749
8824
|
get rowCount(): number;
|
8750
8825
|
set rowCount(val: number);
|
8826
|
+
protected updateProgressInfoByValues(res: IProgressInfo): void;
|
8751
8827
|
/*
|
8752
8828
|
* Set this property to true, to allow rows drag and drop.
|
8753
8829
|
*/
|
@@ -9138,6 +9214,7 @@ export declare var surveyStrings: any;
|
|
9138
9214
|
* An alias for the metadata object. It contains object properties' runtime information and allows you to modify it.
|
9139
9215
|
*/
|
9140
9216
|
export declare var Serializer: JsonMetadata;
|
9217
|
+
export declare var surveyBuiltInVarible: string;
|
9141
9218
|
export declare var registerFunction: any;
|
9142
9219
|
export declare var parse: any;
|
9143
9220
|
export declare var defaultActionBarCss: {
|
@@ -9249,6 +9326,7 @@ export declare var defaultStandardCss: {
|
|
9249
9326
|
},
|
9250
9327
|
boolean: {
|
9251
9328
|
root: string,
|
9329
|
+
rootRadio: string,
|
9252
9330
|
item: string,
|
9253
9331
|
control: string,
|
9254
9332
|
itemChecked: string,
|
@@ -9532,6 +9610,7 @@ export declare var defaultBootstrapCss: {
|
|
9532
9610
|
progress: string,
|
9533
9611
|
progressBar: string,
|
9534
9612
|
progressTextUnderBar: string,
|
9613
|
+
progressTextInBar: string,
|
9535
9614
|
progressButtonsContainerCenter: string,
|
9536
9615
|
progressButtonsContainer: string,
|
9537
9616
|
progressButtonsImageButtonLeft: string,
|
@@ -9598,6 +9677,7 @@ export declare var defaultBootstrapCss: {
|
|
9598
9677
|
},
|
9599
9678
|
boolean: {
|
9600
9679
|
root: string,
|
9680
|
+
rootRadio: string,
|
9601
9681
|
item: string,
|
9602
9682
|
control: string,
|
9603
9683
|
itemChecked: string,
|
@@ -9847,6 +9927,7 @@ export declare var defaultBootstrapMaterialCss: {
|
|
9847
9927
|
progress: string,
|
9848
9928
|
progressBar: string,
|
9849
9929
|
progressTextUnderBar: string,
|
9930
|
+
progressTextInBar: string,
|
9850
9931
|
progressButtonsContainerCenter: string,
|
9851
9932
|
progressButtonsContainer: string,
|
9852
9933
|
progressButtonsImageButtonLeft: string,
|
@@ -9913,6 +9994,7 @@ export declare var defaultBootstrapMaterialCss: {
|
|
9913
9994
|
},
|
9914
9995
|
boolean: {
|
9915
9996
|
root: string,
|
9997
|
+
rootRadio: string,
|
9916
9998
|
item: string,
|
9917
9999
|
control: string,
|
9918
10000
|
itemChecked: string,
|
@@ -10334,7 +10416,13 @@ export declare var defaultV2Css: {
|
|
10334
10416
|
boolean: {
|
10335
10417
|
mainRoot: string,
|
10336
10418
|
root: string,
|
10419
|
+
rootRadio: string,
|
10337
10420
|
item: string,
|
10421
|
+
radioItem: string,
|
10422
|
+
radioItemChecked: string,
|
10423
|
+
radioLabel: string,
|
10424
|
+
radioControlLabel: string,
|
10425
|
+
radioFieldset: string,
|
10338
10426
|
itemOnError: string,
|
10339
10427
|
control: string,
|
10340
10428
|
itemChecked: string,
|
@@ -10345,8 +10433,11 @@ export declare var defaultV2Css: {
|
|
10345
10433
|
disabledLabel: string,
|
10346
10434
|
itemDecorator: string,
|
10347
10435
|
materialDecorator: string,
|
10436
|
+
itemRadioDecorator: string,
|
10437
|
+
materialRadioDecorator: string,
|
10348
10438
|
sliderText: string,
|
10349
10439
|
slider: string,
|
10440
|
+
itemControl: string,
|
10350
10441
|
},
|
10351
10442
|
text: {
|
10352
10443
|
root: string,
|
@@ -10366,7 +10457,6 @@ export declare var defaultV2Css: {
|
|
10366
10457
|
dropdown: {
|
10367
10458
|
root: string,
|
10368
10459
|
small: string,
|
10369
|
-
control: string,
|
10370
10460
|
selectWrapper: string,
|
10371
10461
|
other: string,
|
10372
10462
|
onError: string,
|
@@ -10377,9 +10467,10 @@ export declare var defaultV2Css: {
|
|
10377
10467
|
itemHover: string,
|
10378
10468
|
itemControl: string,
|
10379
10469
|
itemDecorator: string,
|
10470
|
+
control: string,
|
10380
10471
|
controlDisabled: string,
|
10381
|
-
controlLabel: string,
|
10382
10472
|
controlEmpty: string,
|
10473
|
+
controlLabel: string,
|
10383
10474
|
materialDecorator: string,
|
10384
10475
|
},
|
10385
10476
|
imagepicker: {
|
@@ -10421,6 +10512,7 @@ export declare var defaultV2Css: {
|
|
10421
10512
|
},
|
10422
10513
|
matrixdropdown: {
|
10423
10514
|
mainRoot: string,
|
10515
|
+
rootScroll: string,
|
10424
10516
|
root: string,
|
10425
10517
|
cell: string,
|
10426
10518
|
headerCell: string,
|
@@ -10438,6 +10530,7 @@ export declare var defaultV2Css: {
|
|
10438
10530
|
},
|
10439
10531
|
matrixdynamic: {
|
10440
10532
|
mainRoot: string,
|
10533
|
+
rootScroll: string,
|
10441
10534
|
empty: string,
|
10442
10535
|
root: string,
|
10443
10536
|
cell: string,
|
@@ -10466,6 +10559,7 @@ export declare var defaultV2Css: {
|
|
10466
10559
|
cellQuestionWrapper: string,
|
10467
10560
|
},
|
10468
10561
|
rating: {
|
10562
|
+
rootDropdown: string,
|
10469
10563
|
root: string,
|
10470
10564
|
item: string,
|
10471
10565
|
itemOnError: string,
|
@@ -10475,6 +10569,10 @@ export declare var defaultV2Css: {
|
|
10475
10569
|
itemText: string,
|
10476
10570
|
maxText: string,
|
10477
10571
|
itemDisabled: string,
|
10572
|
+
control: string,
|
10573
|
+
controlDisabled: string,
|
10574
|
+
controlEmpty: string,
|
10575
|
+
onError: string,
|
10478
10576
|
},
|
10479
10577
|
comment: {
|
10480
10578
|
root: string,
|
@@ -10509,11 +10607,15 @@ export declare var defaultV2Css: {
|
|
10509
10607
|
removeFileSvgIconId: string,
|
10510
10608
|
wrapper: string,
|
10511
10609
|
defaultImage: string,
|
10610
|
+
defaultImageIconId: string,
|
10611
|
+
leftIconId: string,
|
10612
|
+
rightIconId: string,
|
10512
10613
|
removeFileButton: string,
|
10513
10614
|
dragAreaPlaceholder: string,
|
10514
10615
|
imageWrapper: string,
|
10515
10616
|
single: string,
|
10516
10617
|
singleImage: string,
|
10618
|
+
mobile: string,
|
10517
10619
|
},
|
10518
10620
|
signaturepad: {
|
10519
10621
|
mainRoot: string,
|
@@ -10763,6 +10865,7 @@ export declare var modernCss: {
|
|
10763
10865
|
},
|
10764
10866
|
boolean: {
|
10765
10867
|
root: string,
|
10868
|
+
rootRadio: string,
|
10766
10869
|
small: string,
|
10767
10870
|
item: string,
|
10768
10871
|
control: string,
|