survey-react 1.9.20 → 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/defaultV2.css +199 -181
- package/defaultV2.min.css +2 -2
- package/modern.css +17 -4
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +3 -3
- package/survey.min.css +2 -2
- package/survey.react.d.ts +44 -4
- package/survey.react.js +612 -145
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Type definition for Survey JavaScript library for React v1.9.
|
2
|
+
* Type definition for Survey JavaScript library for React 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
|
*/
|
@@ -579,6 +579,12 @@ export interface IListProps {
|
|
579
579
|
export interface ILogoImageProps {
|
580
580
|
data: any;
|
581
581
|
}
|
582
|
+
export declare class ActionDropdownViewModel {
|
583
|
+
constructor(item: Action);
|
584
|
+
popupModel: any;
|
585
|
+
funcKey: string;
|
586
|
+
dispose(): void;
|
587
|
+
}
|
582
588
|
export declare class ArrayChanges {
|
583
589
|
constructor(index: number, deleteCount: number, itemsToAdd: any, deletedItems: any);
|
584
590
|
index: number;
|
@@ -1049,6 +1055,7 @@ export declare class MatrixCells {
|
|
1049
1055
|
cellsOwner: IMatrixCellsOwner;
|
1050
1056
|
values: any;
|
1051
1057
|
get isEmpty(): boolean;
|
1058
|
+
onValuesChanged: any;
|
1052
1059
|
setCellText(row: any, column: any, val: string): void;
|
1053
1060
|
setDefaultCellText(column: any, val: string): void;
|
1054
1061
|
getCellLocText(row: any, column: any): LocalizableString;
|
@@ -1354,6 +1361,7 @@ export declare class SvgIconRegistry {
|
|
1354
1361
|
registerIconFromSymbol(iconId: string, iconSymbolSvg: string): void;
|
1355
1362
|
registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
|
1356
1363
|
registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
|
1364
|
+
registerIconsFromFolder(r: any): void;
|
1357
1365
|
iconsRenderedHtml(): any;
|
1358
1366
|
renderIcons(): void;
|
1359
1367
|
}
|
@@ -3275,7 +3283,9 @@ export declare class RegexValidator extends SurveyValidator {
|
|
3275
3283
|
}
|
3276
3284
|
export declare class SurveyActionBarItemDropdown extends SurveyActionBarItem {
|
3277
3285
|
constructor(props: any);
|
3286
|
+
viewModel: any;
|
3278
3287
|
renderButtonContent(): any;
|
3288
|
+
componentWillUnmount(): void;
|
3279
3289
|
}
|
3280
3290
|
export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
3281
3291
|
constructor(props: any);
|
@@ -4987,12 +4997,15 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4987
4997
|
isCalculatingProgressText: boolean;
|
4988
4998
|
updateProgressText(onValueChanged?: boolean): void;
|
4989
4999
|
getProgressText(): string;
|
5000
|
+
getRootCss(): string;
|
5001
|
+
resizeObserver: any;
|
4990
5002
|
afterRenderSurvey(htmlElement: any): void;
|
4991
5003
|
updateQuestionCssClasses(question: IQuestion, cssClasses: any): void;
|
4992
5004
|
updatePanelCssClasses(panel: IPanel, cssClasses: any): void;
|
4993
5005
|
updatePageCssClasses(page: IPage, cssClasses: any): void;
|
4994
5006
|
updateChoiceItemCss(question: IQuestion, options: any): void;
|
4995
5007
|
isFirstPageRendering: boolean;
|
5008
|
+
isCurrentPageRendering: boolean;
|
4996
5009
|
afterRenderPage(htmlElement: any): void;
|
4997
5010
|
afterRenderHeader(htmlElement: any): void;
|
4998
5011
|
afterRenderQuestion(question: IQuestion, htmlElement: any): void;
|
@@ -5382,9 +5395,13 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
|
5382
5395
|
constructor(props: any);
|
5383
5396
|
protected get question(): QuestionCheckboxModel;
|
5384
5397
|
protected renderElement(): any;
|
5398
|
+
protected getHeader(): any;
|
5399
|
+
protected getFooter(): any;
|
5400
|
+
protected getColumnedBody(cssClasses: any): any;
|
5385
5401
|
protected getColumns(cssClasses: any): any;
|
5386
5402
|
protected getItems(cssClasses: any): Array<any>;
|
5387
5403
|
protected get textStyle(): any;
|
5404
|
+
protected renderOther(): any;
|
5388
5405
|
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): any;
|
5389
5406
|
}
|
5390
5407
|
export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
@@ -5402,7 +5419,6 @@ export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
5402
5419
|
protected renderElement(): any;
|
5403
5420
|
protected get inputStyle(): any;
|
5404
5421
|
protected renderCheckbox(isChecked: boolean, otherItem: any): any;
|
5405
|
-
protected renderOther(): any;
|
5406
5422
|
}
|
5407
5423
|
export declare class SurveyQuestionCommentItem extends ReactSurveyElement {
|
5408
5424
|
constructor(props: any);
|
@@ -5547,15 +5563,17 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
5547
5563
|
handleOnChange(event: any): void;
|
5548
5564
|
protected canRender(): boolean;
|
5549
5565
|
protected renderElement(): any;
|
5550
|
-
protected renderOther(cssClasses: any): any;
|
5551
5566
|
}
|
5552
5567
|
export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
|
5553
5568
|
constructor(props: any);
|
5554
5569
|
protected get question(): any;
|
5555
5570
|
protected renderElement(): any;
|
5571
|
+
protected getFooter(): any;
|
5572
|
+
protected getColumnedBody(cssClasses: any): any;
|
5556
5573
|
protected getColumns(cssClasses: any): any;
|
5557
5574
|
protected getItems(cssClasses: any): Array<any>;
|
5558
5575
|
protected get textStyle(): any;
|
5576
|
+
protected renderOther(cssClasses: any): any;
|
5559
5577
|
}
|
5560
5578
|
export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
|
5561
5579
|
constructor(props: any);
|
@@ -6683,6 +6701,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
|
|
6683
6701
|
get navigationDescription(): string;
|
6684
6702
|
set navigationDescription(val: string);
|
6685
6703
|
get locNavigationDescription(): LocalizableString;
|
6704
|
+
navigationLocStrChanged(): void;
|
6686
6705
|
get passed(): boolean;
|
6687
6706
|
set passed(val: boolean);
|
6688
6707
|
delete(): void;
|
@@ -7855,6 +7874,10 @@ export declare class QuestionSelectBase extends Question {
|
|
7855
7874
|
set otherText(val: string);
|
7856
7875
|
get locOtherText(): LocalizableString;
|
7857
7876
|
/*
|
7877
|
+
* Use this property to show "Select All", "None" and "Other" choices in multi columns .
|
7878
|
+
*/
|
7879
|
+
separateSpecialChoices: boolean;
|
7880
|
+
/*
|
7858
7881
|
* Use this property to set the place holder text for other or comment field .
|
7859
7882
|
*/
|
7860
7883
|
get otherPlaceHolder(): string;
|
@@ -7934,6 +7957,10 @@ export declare class QuestionSelectBase extends Question {
|
|
7934
7957
|
protected getItemClassCore(item: any, options: any): string;
|
7935
7958
|
getLabelClass(item: ItemValue): string;
|
7936
7959
|
getControlLabelClass(item: ItemValue): string;
|
7960
|
+
get headItems(): any;
|
7961
|
+
get footItems(): any;
|
7962
|
+
get hasHeadItems(): boolean;
|
7963
|
+
get hasFootItems(): boolean;
|
7937
7964
|
get columns(): any;
|
7938
7965
|
get hasColumns(): boolean;
|
7939
7966
|
choicesLoaded(): void;
|
@@ -7947,6 +7974,10 @@ export declare class QuestionSelectBase extends Question {
|
|
7947
7974
|
getItemId(item: ItemValue): string;
|
7948
7975
|
get questionName(): string;
|
7949
7976
|
getItemEnabled(item: ItemValue): any;
|
7977
|
+
rootElement: any;
|
7978
|
+
afterRender(el: any): void;
|
7979
|
+
prevIsOtherSelected: boolean;
|
7980
|
+
protected onValueChanged(): void;
|
7950
7981
|
}
|
7951
7982
|
/*
|
7952
7983
|
* A Model for signature pad question.
|
@@ -8571,6 +8602,7 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
8571
8602
|
get cells(): MatrixCells;
|
8572
8603
|
set cells(val: MatrixCells);
|
8573
8604
|
get hasCellText(): boolean;
|
8605
|
+
protected updateHasCellText(): void;
|
8574
8606
|
setCellText(row: any, column: any, val: string): void;
|
8575
8607
|
getCellText(row: any, column: any): string;
|
8576
8608
|
setDefaultCellText(column: any, val: string): void;
|
@@ -10330,6 +10362,7 @@ export declare var defaultBootstrapMaterialCss: {
|
|
10330
10362
|
};
|
10331
10363
|
export declare var defaultV2Css: {
|
10332
10364
|
root: string,
|
10365
|
+
rootMobile: string,
|
10333
10366
|
container: string,
|
10334
10367
|
header: string,
|
10335
10368
|
body: string,
|
@@ -10342,6 +10375,7 @@ export declare var defaultV2Css: {
|
|
10342
10375
|
headerText: string,
|
10343
10376
|
navigationButton: string,
|
10344
10377
|
completedPage: string,
|
10378
|
+
timerRoot: string,
|
10345
10379
|
navigation: {
|
10346
10380
|
complete: string,
|
10347
10381
|
prev: string,
|
@@ -10701,6 +10735,7 @@ export declare var defaultV2Css: {
|
|
10701
10735
|
noFileChosen: string,
|
10702
10736
|
chooseFile: string,
|
10703
10737
|
chooseFileAsText: string,
|
10738
|
+
chooseFileAsTextDisabled: string,
|
10704
10739
|
chooseFileAsIcon: string,
|
10705
10740
|
chooseFileIconId: string,
|
10706
10741
|
disabled: string,
|
@@ -10775,9 +10810,13 @@ export declare var defaultV2Css: {
|
|
10775
10810
|
itemIcon: string,
|
10776
10811
|
itemTitle: string,
|
10777
10812
|
},
|
10813
|
+
variables: {
|
10814
|
+
mobileWidth: string,
|
10815
|
+
},
|
10778
10816
|
};
|
10779
10817
|
export declare var modernCss: {
|
10780
10818
|
root: string,
|
10819
|
+
timerRoot: string,
|
10781
10820
|
container: string,
|
10782
10821
|
header: string,
|
10783
10822
|
headerClose: string,
|
@@ -11145,4 +11184,5 @@ export declare var modernCss: {
|
|
11145
11184
|
},
|
11146
11185
|
};
|
11147
11186
|
export declare var SvgRegistry: SvgIconRegistry;
|
11148
|
-
export declare var SvgBundleViewModel: any;
|
11187
|
+
export declare var SvgBundleViewModel: any;
|
11188
|
+
export declare var path: any;
|