survey-react 1.9.40 → 1.9.41
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 +24 -6
- package/defaultV2.min.css +2 -2
- package/modern.css +7 -5
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +6 -4
- package/survey.min.css +2 -2
- package/survey.react.d.ts +44 -14
- package/survey.react.js +407 -153
- 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.41
|
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
|
*/
|
@@ -677,7 +677,7 @@ export interface ISurveyCreator {
|
|
677
677
|
export interface ISurveyHeaderProps {
|
678
678
|
survey: any;
|
679
679
|
}
|
680
|
-
export interface
|
680
|
+
export interface IMatrixRowProps {
|
681
681
|
model: any;
|
682
682
|
parentMatrix: any;
|
683
683
|
}
|
@@ -810,7 +810,7 @@ export declare class Base {
|
|
810
810
|
*/
|
811
811
|
get isLoadingFromJson(): boolean;
|
812
812
|
protected getIsLoadingFromJson(): boolean;
|
813
|
-
startLoadingFromJson(): void;
|
813
|
+
startLoadingFromJson(json?: any): void;
|
814
814
|
endLoadingFromJson(): void;
|
815
815
|
/*
|
816
816
|
* Deserialized the current object into JSON
|
@@ -1260,13 +1260,13 @@ export declare class OperandMaker {
|
|
1260
1260
|
}
|
1261
1261
|
export declare class PopupUtils {
|
1262
1262
|
static bottomIndent: number;
|
1263
|
-
static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean): INumberPosition;
|
1263
|
+
static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean, positionMode?: any): INumberPosition;
|
1264
1264
|
static updateVerticalDimensions(top: number, height: number, windowHeight: number): any;
|
1265
|
-
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any): any;
|
1265
|
+
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any, positionMode?: any, margins?: any): any;
|
1266
1266
|
static updateVerticalPosition(targetRect: any, height: number, verticalPosition: any, showPointer: boolean, windowHeight: number): any;
|
1267
1267
|
static calculatePopupDirection(verticalPosition: any, horizontalPosition: any): string;
|
1268
1268
|
static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any, marginLeft?: number, marginRight?: number): INumberPosition;
|
1269
|
-
static updatePopupWidthBeforeShow(popupModel: any, target: JSX.Element
|
1269
|
+
static updatePopupWidthBeforeShow(popupModel: any, target: JSX.Element): void;
|
1270
1270
|
}
|
1271
1271
|
export declare class ProcessValue {
|
1272
1272
|
constructor();
|
@@ -1895,8 +1895,8 @@ export declare class DragDropCore<T> extends Base {
|
|
1895
1895
|
protected getShortcutText(draggedElement: IShortcutText): string;
|
1896
1896
|
protected createDraggedElementShortcut(text: string, draggedElementNode?: any, event?: any): any;
|
1897
1897
|
protected getDraggedElementClass(): string;
|
1898
|
-
protected doDragOver(dropTargetNode?: any): void;
|
1899
|
-
protected afterDragOver(dropTargetNode?: any): void;
|
1898
|
+
protected doDragOver(dropTargetNode?: any, event?: any): void;
|
1899
|
+
protected afterDragOver(dropTargetNode?: any, event?: any): void;
|
1900
1900
|
getGhostPosition(item: any): string;
|
1901
1901
|
protected isDropTargetValid(dropTarget: any, dropTargetNode?: any): boolean;
|
1902
1902
|
handlePointerCancel: (event: any) => void;
|
@@ -1906,7 +1906,8 @@ export declare class DragDropCore<T> extends Base {
|
|
1906
1906
|
protected getDataAttributeValueByNode(node: any): any;
|
1907
1907
|
protected getDropTargetByNode(dropTargetNode: any, event: any): any;
|
1908
1908
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode?: any, event?: any): any;
|
1909
|
-
protected
|
1909
|
+
protected calculateVerticalMiddleOfHTMLElement(HTMLElement: any): number;
|
1910
|
+
protected calculateHorizontalMiddleOfHTMLElement(HTMLElement: any): number;
|
1910
1911
|
protected calculateIsBottom(clientY: number, dropTargetNode?: any): boolean;
|
1911
1912
|
protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
|
1912
1913
|
protected doDrop(): any;
|
@@ -2361,6 +2362,7 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
2361
2362
|
getRendererContext(locStr: LocalizableString): any;
|
2362
2363
|
getProcessedText(text: string): string;
|
2363
2364
|
createCellQuestion(row: MatrixDropdownRowModelBase): Question;
|
2365
|
+
startLoadingFromJson(json?: any): void;
|
2364
2366
|
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: (json: any) => any): void;
|
2365
2367
|
defaultCellTypeChanged(): void;
|
2366
2368
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
@@ -2454,8 +2456,8 @@ export declare class MatrixDropdownTotalCell extends MatrixDropdownCell {
|
|
2454
2456
|
updateCellQuestion(): void;
|
2455
2457
|
getTotalExpression(): string;
|
2456
2458
|
}
|
2457
|
-
export declare class MatrixRow extends SurveyElementBase<
|
2458
|
-
constructor(props:
|
2459
|
+
export declare class MatrixRow extends SurveyElementBase<IMatrixRowProps, any> {
|
2460
|
+
constructor(props: IMatrixRowProps);
|
2459
2461
|
get model(): any;
|
2460
2462
|
get parentMatrix(): any;
|
2461
2463
|
protected getStateElement(): any;
|
@@ -2607,6 +2609,7 @@ export declare class PopupBaseViewModel extends Base {
|
|
2607
2609
|
top: string;
|
2608
2610
|
left: string;
|
2609
2611
|
height: string;
|
2612
|
+
width: string;
|
2610
2613
|
minWidth: string;
|
2611
2614
|
isVisible: boolean;
|
2612
2615
|
popupDirection: string;
|
@@ -2668,6 +2671,7 @@ export declare class PopupModel<T = any> extends Base {
|
|
2668
2671
|
cssClass: string;
|
2669
2672
|
title: string;
|
2670
2673
|
displayMode: "popup" | "overlay";
|
2674
|
+
positionMode: any;
|
2671
2675
|
onVisibilityChanged: EventBase<PopupModel<any>>;
|
2672
2676
|
get isVisible(): boolean;
|
2673
2677
|
set isVisible(val: boolean);
|
@@ -3195,6 +3199,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
3195
3199
|
minVisibleItemsCount: number;
|
3196
3200
|
isResponsivenessDisabled: boolean;
|
3197
3201
|
protected invisibleItemsListModel: ListModel;
|
3202
|
+
static ContainerID: number;
|
3198
3203
|
protected onSet(): void;
|
3199
3204
|
protected onPush(item: T): void;
|
3200
3205
|
protected getRenderedActions(): Array<T>;
|
@@ -3249,7 +3254,9 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
|
3249
3254
|
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
3250
3255
|
protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
|
3251
3256
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
3257
|
+
protected doDragOver: any;
|
3252
3258
|
protected isDropTargetValid(dropTarget: ItemValue): boolean;
|
3259
|
+
protected doBanDropHere: any;
|
3253
3260
|
protected calculateIsBottom(clientY: number): boolean;
|
3254
3261
|
protected afterDragOver(dropTargetNode: any): void;
|
3255
3262
|
protected doDrop(): any;
|
@@ -3281,6 +3288,8 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
3281
3288
|
protected ghostSurveyElement: IElement;
|
3282
3289
|
protected get draggedElementType(): string;
|
3283
3290
|
protected isDraggedElementSelected: boolean;
|
3291
|
+
isRight: boolean;
|
3292
|
+
protected prevIsRight: boolean;
|
3284
3293
|
startDragToolboxItem(event: any, draggedElementJson: JsonObject, toolboxItemTitle: string): void;
|
3285
3294
|
startDragSurveyElement(event: any, draggedElement: any, isElementSelected?: boolean): void;
|
3286
3295
|
protected getShortcutText(draggedElement: IShortcutText): string;
|
@@ -3291,9 +3300,11 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
3291
3300
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: any, event: any): any;
|
3292
3301
|
protected isDropTargetValid(): boolean;
|
3293
3302
|
protected calculateIsBottom(clientY: number, dropTargetNode?: any): boolean;
|
3303
|
+
protected calculateIsRight(clientX: number, dropTargetNode?: any): boolean;
|
3294
3304
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
3295
3305
|
protected findDeepestDropTargetChild(parent: any): any;
|
3296
|
-
protected
|
3306
|
+
protected doDragOver(dropTargetNode?: any, event?: any): void;
|
3307
|
+
protected afterDragOver(dropTargetNode: any, event: any): void;
|
3297
3308
|
protected onStartDrag(): void;
|
3298
3309
|
protected doBanDropHere: any;
|
3299
3310
|
protected doDrop: any;
|
@@ -5500,6 +5511,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5500
5511
|
*/
|
5501
5512
|
get widthMode(): string;
|
5502
5513
|
set widthMode(val: string);
|
5514
|
+
calculatedWidthMode: string;
|
5503
5515
|
calculateWidthMode(): string;
|
5504
5516
|
get timerInfoText(): string;
|
5505
5517
|
get timerModel(): SurveyTimerModel;
|
@@ -5640,7 +5652,8 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
|
5640
5652
|
protected getFooter(): any;
|
5641
5653
|
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5642
5654
|
protected getColumns(cssClasses: any): any;
|
5643
|
-
protected
|
5655
|
+
protected getBody(cssClasses: any): JSX.Element;
|
5656
|
+
protected getItems(cssClasses: any, choices: any): Array<any>;
|
5644
5657
|
protected get textStyle(): any;
|
5645
5658
|
protected renderOther(): JSX.Element;
|
5646
5659
|
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): JSX.Element;
|
@@ -5755,6 +5768,12 @@ export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElem
|
|
5755
5768
|
renderRow(keyValue: any, row: any, cssClasses: any): JSX.Element;
|
5756
5769
|
renderCell(cell: any, index: number, cssClasses: any): JSX.Element;
|
5757
5770
|
}
|
5771
|
+
export declare class SurveyQuestionMatrixDynamicAddButton extends ReactSurveyElement {
|
5772
|
+
constructor(props: any);
|
5773
|
+
protected get matrix(): any;
|
5774
|
+
handleOnRowAddClick(event: any): void;
|
5775
|
+
protected renderElement(): JSX.Element;
|
5776
|
+
}
|
5758
5777
|
export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
|
5759
5778
|
constructor(props: any);
|
5760
5779
|
protected renderElement(): JSX.Element;
|
@@ -5832,7 +5851,8 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
|
|
5832
5851
|
protected getFooter(): any;
|
5833
5852
|
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5834
5853
|
protected getColumns(cssClasses: any): any;
|
5835
|
-
protected
|
5854
|
+
protected getBody(cssClasses: any): JSX.Element;
|
5855
|
+
protected getItems(cssClasses: any, choices: any): Array<any>;
|
5836
5856
|
protected get textStyle(): any;
|
5837
5857
|
protected renderOther(cssClasses: any): JSX.Element;
|
5838
5858
|
}
|
@@ -8293,10 +8313,14 @@ export declare class QuestionSelectBase extends Question {
|
|
8293
8313
|
getControlLabelClass(item: ItemValue): string;
|
8294
8314
|
get headItems(): any;
|
8295
8315
|
get footItems(): any;
|
8316
|
+
get dataChoices(): any;
|
8317
|
+
get bodyItems(): any;
|
8296
8318
|
get hasHeadItems(): boolean;
|
8297
8319
|
get hasFootItems(): boolean;
|
8298
8320
|
get columns(): any;
|
8299
8321
|
get hasColumns(): boolean;
|
8322
|
+
get rowLayout(): boolean;
|
8323
|
+
get blockedRow(): boolean;
|
8300
8324
|
choicesLoaded(): void;
|
8301
8325
|
getItemValueWrapperComponentName(item: ItemValue): string;
|
8302
8326
|
getItemValueWrapperComponentData(item: ItemValue): any;
|
@@ -8409,6 +8433,7 @@ export declare class QuestionTextBase extends Question {
|
|
8409
8433
|
protected calcRenderedPlaceHolder(): void;
|
8410
8434
|
protected hasPlaceHolder(): boolean;
|
8411
8435
|
getControlClass(): string;
|
8436
|
+
get ariaRole(): string;
|
8412
8437
|
}
|
8413
8438
|
export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
|
8414
8439
|
constructor(props: any);
|
@@ -8515,6 +8540,7 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
|
|
8515
8540
|
protected createWrapper(): void;
|
8516
8541
|
getTemplate(): string;
|
8517
8542
|
protected getElement(): SurveyElement;
|
8543
|
+
protected getCssRoot(cssClasses: any): string;
|
8518
8544
|
get contentPanel(): PanelModel;
|
8519
8545
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
8520
8546
|
updateElementCss(reNew?: boolean): void;
|
@@ -9542,6 +9568,7 @@ export declare function property(options?: any): (target: any, key: string) => v
|
|
9542
9568
|
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
9543
9569
|
export declare function unwrap<T>(value: any): T;
|
9544
9570
|
export declare function getSize(value: any): any;
|
9571
|
+
export declare function sanitizeEditableContent(element: any): void;
|
9545
9572
|
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
9546
9573
|
export declare function getCurrecyCodes(): Array<any>;
|
9547
9574
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
@@ -10938,6 +10965,7 @@ export declare var defaultV2Css: {
|
|
10938
10965
|
expanded: string,
|
10939
10966
|
nested: string,
|
10940
10967
|
invisible: string,
|
10968
|
+
composite: string,
|
10941
10969
|
},
|
10942
10970
|
image: {
|
10943
10971
|
mainRoot: string,
|
@@ -10964,6 +10992,7 @@ export declare var defaultV2Css: {
|
|
10964
10992
|
},
|
10965
10993
|
checkbox: {
|
10966
10994
|
root: string,
|
10995
|
+
rootRow: string,
|
10967
10996
|
rootMultiColumn: string,
|
10968
10997
|
item: string,
|
10969
10998
|
itemOnError: string,
|
@@ -10985,6 +11014,7 @@ export declare var defaultV2Css: {
|
|
10985
11014
|
},
|
10986
11015
|
radiogroup: {
|
10987
11016
|
root: string,
|
11017
|
+
rootRow: string,
|
10988
11018
|
rootMultiColumn: string,
|
10989
11019
|
item: string,
|
10990
11020
|
itemOnError: string,
|