survey-react 1.9.19 → 1.9.22
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 +272 -320
- 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 +94 -8
- package/survey.react.js +683 -167
- 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.22
|
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;
|
@@ -641,7 +647,28 @@ export declare class Base {
|
|
641
647
|
protected addEvent<T>(): EventBase<T>;
|
642
648
|
protected onBaseCreating(): void;
|
643
649
|
/*
|
644
|
-
* Returns the type
|
650
|
+
* Returns the question type.
|
651
|
+
* Possible values:
|
652
|
+
* - [*"boolean"*](https://surveyjs.io/Documentation/Library?id=questionbooleanmodel)
|
653
|
+
* - [*"checkbox"*](https://surveyjs.io/Documentation/Library?id=questioncheckboxmodel)
|
654
|
+
* - [*"comment"*](https://surveyjs.io/Documentation/Library?id=questioncommentmodel)
|
655
|
+
* - [*"dropdown"*](https://surveyjs.io/Documentation/Library?id=questiondropdownmodel)
|
656
|
+
* - [*"expression"*](https://surveyjs.io/Documentation/Library?id=questionexpressionmodel)
|
657
|
+
* - [*"file"*](https://surveyjs.io/Documentation/Library?id=questionfilemodel)
|
658
|
+
* - [*"html"*](https://surveyjs.io/Documentation/Library?id=questionhtmlmodel)
|
659
|
+
* - [*"image"*](https://surveyjs.io/Documentation/Library?id=questionimagemodel)
|
660
|
+
* - [*"imagepicker"*](https://surveyjs.io/Documentation/Library?id=questionimagepickermodel)
|
661
|
+
* - [*"matrix"*](https://surveyjs.io/Documentation/Library?id=questionmatrixmodel)
|
662
|
+
* - [*"matrixdropdown"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdropdownmodel)
|
663
|
+
* - [*"matrixdynamic"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdynamicmodel)
|
664
|
+
* - [*"multipletext"*](https://surveyjs.io/Documentation/Library?id=questionmultipletextmodel)
|
665
|
+
* - [*"panel"*](https://surveyjs.io/Documentation/Library?id=panelmodel)
|
666
|
+
* - [*"paneldynamic"*](https://surveyjs.io/Documentation/Library?id=questionpaneldynamicmodel)
|
667
|
+
* - [*"radiogroup"*](https://surveyjs.io/Documentation/Library?id=questionradiogroupmodel)
|
668
|
+
* - [*"rating"*](https://surveyjs.io/Documentation/Library?id=questionratingmodel)
|
669
|
+
* - [*"ranking"*](https://surveyjs.io/Documentation/Library?id=questionrankingmodel)
|
670
|
+
* - [*"signaturepad"*](https://surveyjs.io/Documentation/Library?id=questionsignaturepadmodel)
|
671
|
+
* - [*"text"*](https://surveyjs.io/Documentation/Library?id=questiontextmodel)
|
645
672
|
*/
|
646
673
|
getType(): string;
|
647
674
|
getSurvey(isLive?: boolean): ISurvey;
|
@@ -1049,6 +1076,7 @@ export declare class MatrixCells {
|
|
1049
1076
|
cellsOwner: IMatrixCellsOwner;
|
1050
1077
|
values: any;
|
1051
1078
|
get isEmpty(): boolean;
|
1079
|
+
onValuesChanged: any;
|
1052
1080
|
setCellText(row: any, column: any, val: string): void;
|
1053
1081
|
setDefaultCellText(column: any, val: string): void;
|
1054
1082
|
getCellLocText(row: any, column: any): LocalizableString;
|
@@ -1354,6 +1382,7 @@ export declare class SvgIconRegistry {
|
|
1354
1382
|
registerIconFromSymbol(iconId: string, iconSymbolSvg: string): void;
|
1355
1383
|
registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
|
1356
1384
|
registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
|
1385
|
+
registerIconsFromFolder(r: any): void;
|
1357
1386
|
iconsRenderedHtml(): any;
|
1358
1387
|
renderIcons(): void;
|
1359
1388
|
}
|
@@ -1737,6 +1766,7 @@ export declare class ExceedSizeError extends SurveyError {
|
|
1737
1766
|
getDefaultText(): string;
|
1738
1767
|
}
|
1739
1768
|
export declare class ExpressionExecutor implements IExpresionExecutor {
|
1769
|
+
static createExpressionExecutor: any;
|
1740
1770
|
onComplete: any;
|
1741
1771
|
expressionValue: string;
|
1742
1772
|
operand: Operand;
|
@@ -3274,7 +3304,9 @@ export declare class RegexValidator extends SurveyValidator {
|
|
3274
3304
|
}
|
3275
3305
|
export declare class SurveyActionBarItemDropdown extends SurveyActionBarItem {
|
3276
3306
|
constructor(props: any);
|
3307
|
+
viewModel: any;
|
3277
3308
|
renderButtonContent(): any;
|
3309
|
+
componentWillUnmount(): void;
|
3278
3310
|
}
|
3279
3311
|
export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
3280
3312
|
constructor(props: any);
|
@@ -4986,12 +5018,15 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4986
5018
|
isCalculatingProgressText: boolean;
|
4987
5019
|
updateProgressText(onValueChanged?: boolean): void;
|
4988
5020
|
getProgressText(): string;
|
5021
|
+
getRootCss(): string;
|
5022
|
+
resizeObserver: any;
|
4989
5023
|
afterRenderSurvey(htmlElement: any): void;
|
4990
5024
|
updateQuestionCssClasses(question: IQuestion, cssClasses: any): void;
|
4991
5025
|
updatePanelCssClasses(panel: IPanel, cssClasses: any): void;
|
4992
5026
|
updatePageCssClasses(page: IPage, cssClasses: any): void;
|
4993
5027
|
updateChoiceItemCss(question: IQuestion, options: any): void;
|
4994
5028
|
isFirstPageRendering: boolean;
|
5029
|
+
isCurrentPageRendering: boolean;
|
4995
5030
|
afterRenderPage(htmlElement: any): void;
|
4996
5031
|
afterRenderHeader(htmlElement: any): void;
|
4997
5032
|
afterRenderQuestion(question: IQuestion, htmlElement: any): void;
|
@@ -5299,6 +5334,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5299
5334
|
setTriggerValue(name: string, value: any, isVariable: boolean): void;
|
5300
5335
|
copyTriggerValue(name: string, fromName: string): void;
|
5301
5336
|
isFocusingQuestion: boolean;
|
5337
|
+
isMovingQuestion: boolean;
|
5338
|
+
startMovingQuestion(): void;
|
5339
|
+
stopMovingQuestion(): void;
|
5302
5340
|
/*
|
5303
5341
|
* Focus question by its name. If needed change the current page on the page where question is located.
|
5304
5342
|
* Function returns false if there is no question with this name or question is invisible, otherwise it returns true.
|
@@ -5381,9 +5419,13 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
|
5381
5419
|
constructor(props: any);
|
5382
5420
|
protected get question(): QuestionCheckboxModel;
|
5383
5421
|
protected renderElement(): any;
|
5422
|
+
protected getHeader(): any;
|
5423
|
+
protected getFooter(): any;
|
5424
|
+
protected getColumnedBody(cssClasses: any): any;
|
5384
5425
|
protected getColumns(cssClasses: any): any;
|
5385
5426
|
protected getItems(cssClasses: any): Array<any>;
|
5386
5427
|
protected get textStyle(): any;
|
5428
|
+
protected renderOther(): any;
|
5387
5429
|
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): any;
|
5388
5430
|
}
|
5389
5431
|
export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
@@ -5401,7 +5443,6 @@ export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
5401
5443
|
protected renderElement(): any;
|
5402
5444
|
protected get inputStyle(): any;
|
5403
5445
|
protected renderCheckbox(isChecked: boolean, otherItem: any): any;
|
5404
|
-
protected renderOther(): any;
|
5405
5446
|
}
|
5406
5447
|
export declare class SurveyQuestionCommentItem extends ReactSurveyElement {
|
5407
5448
|
constructor(props: any);
|
@@ -5546,15 +5587,17 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
5546
5587
|
handleOnChange(event: any): void;
|
5547
5588
|
protected canRender(): boolean;
|
5548
5589
|
protected renderElement(): any;
|
5549
|
-
protected renderOther(cssClasses: any): any;
|
5550
5590
|
}
|
5551
5591
|
export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
|
5552
5592
|
constructor(props: any);
|
5553
5593
|
protected get question(): any;
|
5554
5594
|
protected renderElement(): any;
|
5595
|
+
protected getFooter(): any;
|
5596
|
+
protected getColumnedBody(cssClasses: any): any;
|
5555
5597
|
protected getColumns(cssClasses: any): any;
|
5556
5598
|
protected getItems(cssClasses: any): Array<any>;
|
5557
5599
|
protected get textStyle(): any;
|
5600
|
+
protected renderOther(cssClasses: any): any;
|
5558
5601
|
}
|
5559
5602
|
export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
|
5560
5603
|
constructor(props: any);
|
@@ -5677,7 +5720,7 @@ export declare class Variable extends Const {
|
|
5677
5720
|
export declare class DragDropRankingChoices extends DragDropChoices {
|
5678
5721
|
constructor(surveyValue?: ISurvey, creator?: any);
|
5679
5722
|
protected get draggedElementType(): string;
|
5680
|
-
protected createDraggedElementShortcut(text: string, draggedElementNode: any): any;
|
5723
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
5681
5724
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
5682
5725
|
isDragOverRootNode: boolean;
|
5683
5726
|
protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
|
@@ -5703,7 +5746,28 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5703
5746
|
removeElementCallback: any;
|
5704
5747
|
onGetQuestionTitleLocation: any;
|
5705
5748
|
/*
|
5706
|
-
* Returns the type
|
5749
|
+
* Returns the question type.
|
5750
|
+
* Possible values:
|
5751
|
+
* - [*"boolean"*](https://surveyjs.io/Documentation/Library?id=questionbooleanmodel)
|
5752
|
+
* - [*"checkbox"*](https://surveyjs.io/Documentation/Library?id=questioncheckboxmodel)
|
5753
|
+
* - [*"comment"*](https://surveyjs.io/Documentation/Library?id=questioncommentmodel)
|
5754
|
+
* - [*"dropdown"*](https://surveyjs.io/Documentation/Library?id=questiondropdownmodel)
|
5755
|
+
* - [*"expression"*](https://surveyjs.io/Documentation/Library?id=questionexpressionmodel)
|
5756
|
+
* - [*"file"*](https://surveyjs.io/Documentation/Library?id=questionfilemodel)
|
5757
|
+
* - [*"html"*](https://surveyjs.io/Documentation/Library?id=questionhtmlmodel)
|
5758
|
+
* - [*"image"*](https://surveyjs.io/Documentation/Library?id=questionimagemodel)
|
5759
|
+
* - [*"imagepicker"*](https://surveyjs.io/Documentation/Library?id=questionimagepickermodel)
|
5760
|
+
* - [*"matrix"*](https://surveyjs.io/Documentation/Library?id=questionmatrixmodel)
|
5761
|
+
* - [*"matrixdropdown"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdropdownmodel)
|
5762
|
+
* - [*"matrixdynamic"*](https://surveyjs.io/Documentation/Library?id=questionmatrixdynamicmodel)
|
5763
|
+
* - [*"multipletext"*](https://surveyjs.io/Documentation/Library?id=questionmultipletextmodel)
|
5764
|
+
* - [*"panel"*](https://surveyjs.io/Documentation/Library?id=panelmodel)
|
5765
|
+
* - [*"paneldynamic"*](https://surveyjs.io/Documentation/Library?id=questionpaneldynamicmodel)
|
5766
|
+
* - [*"radiogroup"*](https://surveyjs.io/Documentation/Library?id=questionradiogroupmodel)
|
5767
|
+
* - [*"rating"*](https://surveyjs.io/Documentation/Library?id=questionratingmodel)
|
5768
|
+
* - [*"ranking"*](https://surveyjs.io/Documentation/Library?id=questionrankingmodel)
|
5769
|
+
* - [*"signaturepad"*](https://surveyjs.io/Documentation/Library?id=questionsignaturepadmodel)
|
5770
|
+
* - [*"text"*](https://surveyjs.io/Documentation/Library?id=questiontextmodel)
|
5707
5771
|
*/
|
5708
5772
|
getType(): string;
|
5709
5773
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
@@ -6682,6 +6746,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
|
|
6682
6746
|
get navigationDescription(): string;
|
6683
6747
|
set navigationDescription(val: string);
|
6684
6748
|
get locNavigationDescription(): LocalizableString;
|
6749
|
+
navigationLocStrChanged(): void;
|
6685
6750
|
get passed(): boolean;
|
6686
6751
|
set passed(val: boolean);
|
6687
6752
|
delete(): void;
|
@@ -7854,6 +7919,10 @@ export declare class QuestionSelectBase extends Question {
|
|
7854
7919
|
set otherText(val: string);
|
7855
7920
|
get locOtherText(): LocalizableString;
|
7856
7921
|
/*
|
7922
|
+
* Use this property to show "Select All", "None" and "Other" choices in multi columns .
|
7923
|
+
*/
|
7924
|
+
separateSpecialChoices: boolean;
|
7925
|
+
/*
|
7857
7926
|
* Use this property to set the place holder text for other or comment field .
|
7858
7927
|
*/
|
7859
7928
|
get otherPlaceHolder(): string;
|
@@ -7933,6 +8002,10 @@ export declare class QuestionSelectBase extends Question {
|
|
7933
8002
|
protected getItemClassCore(item: any, options: any): string;
|
7934
8003
|
getLabelClass(item: ItemValue): string;
|
7935
8004
|
getControlLabelClass(item: ItemValue): string;
|
8005
|
+
get headItems(): any;
|
8006
|
+
get footItems(): any;
|
8007
|
+
get hasHeadItems(): boolean;
|
8008
|
+
get hasFootItems(): boolean;
|
7936
8009
|
get columns(): any;
|
7937
8010
|
get hasColumns(): boolean;
|
7938
8011
|
choicesLoaded(): void;
|
@@ -7946,6 +8019,10 @@ export declare class QuestionSelectBase extends Question {
|
|
7946
8019
|
getItemId(item: ItemValue): string;
|
7947
8020
|
get questionName(): string;
|
7948
8021
|
getItemEnabled(item: ItemValue): any;
|
8022
|
+
rootElement: any;
|
8023
|
+
afterRender(el: any): void;
|
8024
|
+
prevIsOtherSelected: boolean;
|
8025
|
+
protected onValueChanged(): void;
|
7949
8026
|
}
|
7950
8027
|
/*
|
7951
8028
|
* A Model for signature pad question.
|
@@ -8570,6 +8647,7 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
8570
8647
|
get cells(): MatrixCells;
|
8571
8648
|
set cells(val: MatrixCells);
|
8572
8649
|
get hasCellText(): boolean;
|
8650
|
+
protected updateHasCellText(): void;
|
8573
8651
|
setCellText(row: any, column: any, val: string): void;
|
8574
8652
|
getCellText(row: any, column: any): string;
|
8575
8653
|
setDefaultCellText(column: any, val: string): void;
|
@@ -9277,6 +9355,7 @@ export declare var settings: {
|
|
9277
9355
|
maxDate: string,
|
9278
9356
|
showModal: any,
|
9279
9357
|
supportCreatorV2: boolean,
|
9358
|
+
showDefaultItemsInCreatorV2: boolean,
|
9280
9359
|
/*
|
9281
9360
|
* Specifies a list of custom icons.
|
9282
9361
|
* Use this property to replace SurveyJS default icons (displayed in UI elements of SurveyJS Library or Creator) with your custom icons.
|
@@ -9312,7 +9391,6 @@ export declare var Serializer: JsonMetadata;
|
|
9312
9391
|
export declare var surveyBuiltInVarible: string;
|
9313
9392
|
export declare var registerFunction: any;
|
9314
9393
|
export declare var parse: any;
|
9315
|
-
export declare var createExpressionExecutorFactory: any;
|
9316
9394
|
export declare var defaultActionBarCss: {
|
9317
9395
|
root: string,
|
9318
9396
|
item: string,
|
@@ -10330,6 +10408,7 @@ export declare var defaultBootstrapMaterialCss: {
|
|
10330
10408
|
};
|
10331
10409
|
export declare var defaultV2Css: {
|
10332
10410
|
root: string,
|
10411
|
+
rootMobile: string,
|
10333
10412
|
container: string,
|
10334
10413
|
header: string,
|
10335
10414
|
body: string,
|
@@ -10342,6 +10421,7 @@ export declare var defaultV2Css: {
|
|
10342
10421
|
headerText: string,
|
10343
10422
|
navigationButton: string,
|
10344
10423
|
completedPage: string,
|
10424
|
+
timerRoot: string,
|
10345
10425
|
navigation: {
|
10346
10426
|
complete: string,
|
10347
10427
|
prev: string,
|
@@ -10701,6 +10781,7 @@ export declare var defaultV2Css: {
|
|
10701
10781
|
noFileChosen: string,
|
10702
10782
|
chooseFile: string,
|
10703
10783
|
chooseFileAsText: string,
|
10784
|
+
chooseFileAsTextDisabled: string,
|
10704
10785
|
chooseFileAsIcon: string,
|
10705
10786
|
chooseFileIconId: string,
|
10706
10787
|
disabled: string,
|
@@ -10775,9 +10856,13 @@ export declare var defaultV2Css: {
|
|
10775
10856
|
itemIcon: string,
|
10776
10857
|
itemTitle: string,
|
10777
10858
|
},
|
10859
|
+
variables: {
|
10860
|
+
mobileWidth: string,
|
10861
|
+
},
|
10778
10862
|
};
|
10779
10863
|
export declare var modernCss: {
|
10780
10864
|
root: string,
|
10865
|
+
timerRoot: string,
|
10781
10866
|
container: string,
|
10782
10867
|
header: string,
|
10783
10868
|
headerClose: string,
|
@@ -11145,4 +11230,5 @@ export declare var modernCss: {
|
|
11145
11230
|
},
|
11146
11231
|
};
|
11147
11232
|
export declare var SvgRegistry: SvgIconRegistry;
|
11148
|
-
export declare var SvgBundleViewModel: any;
|
11233
|
+
export declare var SvgBundleViewModel: any;
|
11234
|
+
export declare var path: any;
|