survey-react 1.9.27 → 1.9.28
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 +62 -51
- package/defaultV2.min.css +2 -2
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +41 -16
- package/survey.react.js +331 -298
- 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.28
|
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
|
*/
|
@@ -880,15 +880,6 @@ export declare class CustomWidgetCollection {
|
|
880
880
|
getCustomWidgetByName(name: string): QuestionCustomWidget;
|
881
881
|
getCustomWidget(question: IQuestion): QuestionCustomWidget;
|
882
882
|
}
|
883
|
-
export declare class DefaultTitle extends React.Component<any, any> {
|
884
|
-
constructor(props: any);
|
885
|
-
constructor(props: any, context: any);
|
886
|
-
isNeedFocus: boolean;
|
887
|
-
protected get cssClasses(): any;
|
888
|
-
protected get element(): any;
|
889
|
-
render(): any;
|
890
|
-
componentDidMount(): void;
|
891
|
-
}
|
892
883
|
export declare class DefaultTitleModel {
|
893
884
|
static getIconCss(cssClasses: any, isCollapsed: boolean): string;
|
894
885
|
}
|
@@ -1296,6 +1287,12 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
1296
1287
|
protected renderLocString(locStr: any, style?: any): any;
|
1297
1288
|
protected canUsePropInState(key: string): boolean;
|
1298
1289
|
}
|
1290
|
+
export declare class SurveyElementHeader extends React.Component<any, any> {
|
1291
|
+
constructor(props: any);
|
1292
|
+
constructor(props: any, context: any);
|
1293
|
+
render(): any;
|
1294
|
+
protected renderDescription(): any;
|
1295
|
+
}
|
1299
1296
|
export declare class SurveyError {
|
1300
1297
|
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
1301
1298
|
text: string;
|
@@ -2808,7 +2805,7 @@ export declare class SurveyQuestion extends SurveyElementBase<any, any> {
|
|
2808
2805
|
protected wrapElement(element: any): any;
|
2809
2806
|
protected wrapQuestionContent(element: any): any;
|
2810
2807
|
protected renderQuestion(): any;
|
2811
|
-
protected renderDescription(
|
2808
|
+
protected renderDescription(): any;
|
2812
2809
|
protected renderComment(cssClasses: any): any;
|
2813
2810
|
protected renderHeader(question: any): any;
|
2814
2811
|
protected renderErrors(cssClasses: any, location: string): any;
|
@@ -3101,8 +3098,9 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
3101
3098
|
protected ghostSurveyElement: IElement;
|
3102
3099
|
protected get draggedElementType(): string;
|
3103
3100
|
protected isDraggedElementSelected: boolean;
|
3104
|
-
startDragToolboxItem(event: any, draggedElementJson: JsonObject): void;
|
3101
|
+
startDragToolboxItem(event: any, draggedElementJson: JsonObject, toolboxItemTitle: string): void;
|
3105
3102
|
startDragSurveyElement(event: any, draggedElement: any, isElementSelected?: boolean): void;
|
3103
|
+
protected getShortcutText(draggedElement: IShortcutText): string;
|
3106
3104
|
protected createDraggedElementShortcut(text: string, draggedElementNode?: any, event?: any): any;
|
3107
3105
|
protected createDraggedElementIcon(): any;
|
3108
3106
|
protected getDraggedElementClass(): string;
|
@@ -3360,12 +3358,12 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3360
3358
|
get shortcutText(): string;
|
3361
3359
|
titleToolbarValue: any;
|
3362
3360
|
getTitleToolbar(): AdaptiveActionContainer;
|
3361
|
+
protected createActionContainer(allowAdaptiveActions?: boolean): ActionContainer;
|
3363
3362
|
get titleActions(): any;
|
3364
3363
|
isTitleActionRequested: boolean;
|
3365
3364
|
getTitleActions(): Array<any>;
|
3366
3365
|
get hasTitleActions(): boolean;
|
3367
3366
|
get hasTitleEvents(): boolean;
|
3368
|
-
getTitleComponentName(): string;
|
3369
3367
|
get titleTabIndex(): number;
|
3370
3368
|
get titleAriaExpanded(): boolean;
|
3371
3369
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
@@ -3509,6 +3507,9 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3509
3507
|
set paddingRight(val: string);
|
3510
3508
|
allowRootStyle: boolean;
|
3511
3509
|
get rootStyle(): any;
|
3510
|
+
get clickTitleFunction(): any;
|
3511
|
+
protected needClickTitleFunction(): boolean;
|
3512
|
+
protected processTitleClick(): void;
|
3512
3513
|
}
|
3513
3514
|
export declare class SurveyElementErrors extends ReactSurveyElement {
|
3514
3515
|
constructor(props: any);
|
@@ -5656,6 +5657,7 @@ export declare class SurveyQuestionSignaturePad extends SurveyQuestionElementBas
|
|
5656
5657
|
constructor(props: any);
|
5657
5658
|
protected get question(): any;
|
5658
5659
|
protected renderElement(): any;
|
5660
|
+
renderCleanButton(): any;
|
5659
5661
|
}
|
5660
5662
|
export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestionElementBase {
|
5661
5663
|
constructor(props: any);
|
@@ -6039,6 +6041,9 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
6039
6041
|
dragDropFindRow(findElement: ISurveyElement): QuestionRowModel;
|
6040
6042
|
dragDropMoveElement(src: IElement, target: IElement, targetIndex: number): void;
|
6041
6043
|
needResponsiveWidth(): boolean;
|
6044
|
+
get hasDescriptionUnderTitle(): boolean;
|
6045
|
+
get cssHeader(): string;
|
6046
|
+
get cssDescription(): string;
|
6042
6047
|
get no(): string;
|
6043
6048
|
dispose(): void;
|
6044
6049
|
}
|
@@ -6217,7 +6222,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6217
6222
|
set descriptionLocation(val: string);
|
6218
6223
|
get hasDescriptionUnderTitle(): boolean;
|
6219
6224
|
get hasDescriptionUnderInput(): boolean;
|
6220
|
-
|
6225
|
+
protected needClickTitleFunction(): boolean;
|
6226
|
+
protected processTitleClick(): boolean;
|
6221
6227
|
/*
|
6222
6228
|
* The custom text that will be shown on required error. Use this property, if you do not want to show the default text.
|
6223
6229
|
* Please note, this property is hidden for question without input, for example html question.
|
@@ -6286,6 +6292,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6286
6292
|
get cssTitle(): string;
|
6287
6293
|
protected setCssTitle(val: string): void;
|
6288
6294
|
protected getCssTitle(cssClasses: any): string;
|
6295
|
+
get cssDescription(): string;
|
6296
|
+
protected setCssDescription(val: string): void;
|
6297
|
+
protected getCssDescription(cssClasses: any): string;
|
6289
6298
|
get cssError(): string;
|
6290
6299
|
protected setCssError(val: string): void;
|
6291
6300
|
protected getCssError(cssClasses: any): string;
|
@@ -8091,6 +8100,7 @@ export declare class QuestionSignaturePadModel extends Question {
|
|
8091
8100
|
*/
|
8092
8101
|
get allowClear(): boolean;
|
8093
8102
|
set allowClear(val: boolean);
|
8103
|
+
get canShowClearButton(): boolean;
|
8094
8104
|
/*
|
8095
8105
|
* Use it to set pen color for the signature pad.
|
8096
8106
|
*/
|
@@ -8292,6 +8302,7 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
8292
8302
|
runCondition(values: any, properties: any): void;
|
8293
8303
|
protected convertDataName(name: string): string;
|
8294
8304
|
protected convertDataValue(name: string, newValue: any): any;
|
8305
|
+
protected canSetValueToSurvey(): boolean;
|
8295
8306
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
8296
8307
|
onSurveyValueChanged(newValue: any): void;
|
8297
8308
|
protected getValueCore(): any;
|
@@ -8674,6 +8685,7 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
8674
8685
|
getColumns(): Array<any>;
|
8675
8686
|
addColumn(value: any, text?: string): ItemValue;
|
8676
8687
|
getItemClass(row: any, column: any): string;
|
8688
|
+
get itemSvgIcon(): string;
|
8677
8689
|
protected getQuizQuestionCount(): number;
|
8678
8690
|
protected getCorrectAnswerCount(): number;
|
8679
8691
|
protected getVisibleRows(): Array<MatrixRowModel>;
|
@@ -9239,9 +9251,9 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
9239
9251
|
}
|
9240
9252
|
export declare function property(options?: any): any;
|
9241
9253
|
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): any;
|
9242
|
-
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
9243
9254
|
export declare function unwrap<T>(value: any): T;
|
9244
9255
|
export declare function getSize(value: any): any;
|
9256
|
+
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
9245
9257
|
export declare function getCurrecyCodes(): Array<any>;
|
9246
9258
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
9247
9259
|
export declare function attachKey2click(element: any, viewModel?: any, options?: any): any;
|
@@ -9317,6 +9329,11 @@ export declare var settings: {
|
|
9317
9329
|
*/
|
9318
9330
|
matrixMaxRowCountInCondition: number,
|
9319
9331
|
/*
|
9332
|
+
* Set this property to false, to render matrix dynamic remove action as button.
|
9333
|
+
* It is rendered as icon in new themes ("defaultV2") by default.
|
9334
|
+
*/
|
9335
|
+
matrixRenderRemoveAsIcon: boolean,
|
9336
|
+
/*
|
9320
9337
|
* Maximum panel count in dynamic panel
|
9321
9338
|
*/
|
9322
9339
|
panelMaximumPanelCount: number,
|
@@ -9465,6 +9482,7 @@ export declare var defaultActionBarCss: {
|
|
9465
9482
|
itemTitle: string,
|
9466
9483
|
itemTitleWithIcon: string,
|
9467
9484
|
};
|
9485
|
+
export declare var keyFocusedClassName: any;
|
9468
9486
|
export declare var FOCUS_INPUT_SELECTOR: any;
|
9469
9487
|
export declare var surveyCss: {
|
9470
9488
|
currentType: string,
|
@@ -9636,6 +9654,7 @@ export declare var defaultStandardCss: {
|
|
9636
9654
|
cellText: string,
|
9637
9655
|
cellTextSelected: string,
|
9638
9656
|
cellLabel: string,
|
9657
|
+
cellResponsiveTitle: string,
|
9639
9658
|
},
|
9640
9659
|
matrixdropdown: {
|
9641
9660
|
root: string,
|
@@ -9800,7 +9819,6 @@ export declare var surveyTimerFunctions: {
|
|
9800
9819
|
setTimeout: any,
|
9801
9820
|
clearTimeout: any,
|
9802
9821
|
};
|
9803
|
-
export declare var keyFocusedClassName: any;
|
9804
9822
|
export declare var matrixDropdownColumnTypes: {
|
9805
9823
|
dropdown: {
|
9806
9824
|
onCellQuestionUpdate: any,
|
@@ -9993,6 +10011,7 @@ export declare var defaultBootstrapCss: {
|
|
9993
10011
|
cellText: string,
|
9994
10012
|
cellTextSelected: string,
|
9995
10013
|
cellLabel: string,
|
10014
|
+
cellResponsiveTitle: string,
|
9996
10015
|
},
|
9997
10016
|
matrixdropdown: {
|
9998
10017
|
root: string,
|
@@ -10315,6 +10334,7 @@ export declare var defaultBootstrapMaterialCss: {
|
|
10315
10334
|
itemChecked: string,
|
10316
10335
|
itemDecorator: string,
|
10317
10336
|
materialDecorator: string,
|
10337
|
+
cellResponsiveTitle: string,
|
10318
10338
|
},
|
10319
10339
|
matrixdropdown: {
|
10320
10340
|
root: string,
|
@@ -10489,6 +10509,7 @@ export declare var defaultV2Css: {
|
|
10489
10509
|
logoImage: string,
|
10490
10510
|
headerText: string,
|
10491
10511
|
navigationButton: string,
|
10512
|
+
bodyNavigationButton: string,
|
10492
10513
|
completedPage: string,
|
10493
10514
|
timerRoot: string,
|
10494
10515
|
navigation: {
|
@@ -10518,6 +10539,7 @@ export declare var defaultV2Css: {
|
|
10518
10539
|
collapsed: string,
|
10519
10540
|
nested: string,
|
10520
10541
|
invisible: string,
|
10542
|
+
navigationButton: string,
|
10521
10543
|
},
|
10522
10544
|
paneldynamic: {
|
10523
10545
|
mainRoot: string,
|
@@ -10767,6 +10789,7 @@ export declare var defaultV2Css: {
|
|
10767
10789
|
cellText: string,
|
10768
10790
|
cellTextSelected: string,
|
10769
10791
|
cellTextDisabled: string,
|
10792
|
+
cellResponsiveTitle: string,
|
10770
10793
|
},
|
10771
10794
|
matrixdropdown: {
|
10772
10795
|
mainRoot: string,
|
@@ -11216,6 +11239,8 @@ export declare var modernCss: {
|
|
11216
11239
|
cellText: string,
|
11217
11240
|
cellTextSelected: string,
|
11218
11241
|
cellTextDisabled: string,
|
11242
|
+
cellResponsiveTitle: string,
|
11243
|
+
itemSvgIconId: string,
|
11219
11244
|
},
|
11220
11245
|
matrixdropdown: {
|
11221
11246
|
root: string,
|