survey-react 1.9.26 → 1.9.27
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 +35 -8
- package/defaultV2.min.css +2 -2
- package/modern.css +16 -6
- 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 +22 -2
- package/survey.react.js +368 -146
- 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.27
|
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
|
*/
|
@@ -1119,6 +1119,7 @@ export declare class PopupUtils {
|
|
1119
1119
|
static updateVerticalPosition(targetRect: any, height: number, verticalPosition: any, showPointer: boolean, windowHeight: number): any;
|
1120
1120
|
static calculatePopupDirection(verticalPosition: any, horizontalPosition: any): string;
|
1121
1121
|
static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any, width?: number, margins?: number): INumberPosition;
|
1122
|
+
static updatePopupWidthBeforeShow(popupModel: any, e: any): void;
|
1122
1123
|
}
|
1123
1124
|
export declare class ProcessValue {
|
1124
1125
|
constructor();
|
@@ -1135,7 +1136,6 @@ export declare class QuestionCustomWidget {
|
|
1135
1136
|
name: string;
|
1136
1137
|
widgetJson: any;
|
1137
1138
|
htmlTemplate: string;
|
1138
|
-
isFirstRender: boolean;
|
1139
1139
|
afterRender(question: IQuestion, el: any): void;
|
1140
1140
|
willUnmount(question: IQuestion, el: any): void;
|
1141
1141
|
getDisplayValue(question: IQuestion, value?: any): string;
|
@@ -2425,6 +2425,7 @@ export declare class PopupBaseViewModel extends Base {
|
|
2425
2425
|
top: string;
|
2426
2426
|
left: string;
|
2427
2427
|
height: string;
|
2428
|
+
width: string;
|
2428
2429
|
isVisible: boolean;
|
2429
2430
|
popupDirection: string;
|
2430
2431
|
pointerTarget: IPosition;
|
@@ -2473,6 +2474,7 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
|
|
2473
2474
|
}
|
2474
2475
|
export declare class PopupModel<T = any> extends Base {
|
2475
2476
|
constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: any, horizontalPosition?: any, showPointer?: boolean, isModal?: boolean, onCancel?: any, onApply?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string);
|
2477
|
+
width: number;
|
2476
2478
|
contentComponentName: string;
|
2477
2479
|
contentComponentData: T;
|
2478
2480
|
verticalPosition: any;
|
@@ -2486,6 +2488,7 @@ export declare class PopupModel<T = any> extends Base {
|
|
2486
2488
|
cssClass: string;
|
2487
2489
|
title: string;
|
2488
2490
|
displayMode: "popup" | "overlay";
|
2491
|
+
widthMode: "contentWidth" | "fixedWidth";
|
2489
2492
|
get isVisible(): boolean;
|
2490
2493
|
set isVisible(val: boolean);
|
2491
2494
|
toggleVisibility(): void;
|
@@ -3192,6 +3195,7 @@ export declare class ListModel extends ActionContainer {
|
|
3192
3195
|
constructor(items: any, onItemSelect: any, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChange?: any);
|
3193
3196
|
onItemSelect: any;
|
3194
3197
|
allowSelection: boolean;
|
3198
|
+
denySearch: boolean;
|
3195
3199
|
needFilter: boolean;
|
3196
3200
|
isExpanded: boolean;
|
3197
3201
|
selectedItem: IAction;
|
@@ -5340,6 +5344,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5340
5344
|
isMovingQuestion: boolean;
|
5341
5345
|
startMovingQuestion(): void;
|
5342
5346
|
stopMovingQuestion(): void;
|
5347
|
+
needRenderIcons: boolean;
|
5343
5348
|
/*
|
5344
5349
|
* Focus question by its name. If needed change the current page on the page where question is located.
|
5345
5350
|
* Function returns false if there is no question with this name or question is invisible, otherwise it returns true.
|
@@ -5414,6 +5419,7 @@ export declare class SurveyQuestionBoolean extends SurveyQuestionElementBase {
|
|
5414
5419
|
handleOnClick(event: any): void;
|
5415
5420
|
handleOnSwitchClick(event: any): void;
|
5416
5421
|
handleOnLabelClick(event: any, value: boolean): void;
|
5422
|
+
handleOnKeyDown(event: any): void;
|
5417
5423
|
protected updateDomElement(): void;
|
5418
5424
|
protected renderElement(): any;
|
5419
5425
|
}
|
@@ -6054,6 +6060,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6054
6060
|
isValueChangedDirectly: boolean;
|
6055
6061
|
valueChangedCallback: any;
|
6056
6062
|
commentChangedCallback: any;
|
6063
|
+
localeChangedCallback: any;
|
6057
6064
|
validateValueCallback: any;
|
6058
6065
|
questionTitleTemplateCallback: any;
|
6059
6066
|
afterRenderQuestionCallback: any;
|
@@ -6241,6 +6248,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6241
6248
|
*/
|
6242
6249
|
get customWidget(): QuestionCustomWidget;
|
6243
6250
|
updateCustomWidget(): void;
|
6251
|
+
localeChanged(): void;
|
6244
6252
|
get isCompositeQuestion(): boolean;
|
6245
6253
|
updateCommentElement(): void;
|
6246
6254
|
onCommentInput(event: any): void;
|
@@ -6987,6 +6995,7 @@ export declare class QuestionBooleanModel extends Question {
|
|
6987
6995
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
6988
6996
|
onLabelClick(event: any, value: boolean): boolean;
|
6989
6997
|
onSwitchClickModel(event: any): boolean;
|
6998
|
+
onKeyDownCore(event: any): boolean;
|
6990
6999
|
getRadioItemClass(css: any, value: any): string;
|
6991
7000
|
protected supportResponsiveness(): boolean;
|
6992
7001
|
protected getCompactRenderAs(): string;
|
@@ -7664,6 +7673,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
7664
7673
|
protected onReadOnlyChanged(): void;
|
7665
7674
|
onSurveyLoad(): void;
|
7666
7675
|
onFirstRendering(): void;
|
7676
|
+
localeChanged(): void;
|
7667
7677
|
runCondition(values: any, properties: any): void;
|
7668
7678
|
protected runPanelsCondition(values: any, properties: any): void;
|
7669
7679
|
onAnyValueChanged(name: string): void;
|
@@ -8332,8 +8342,13 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8332
8342
|
*/
|
8333
8343
|
get autoComplete(): string;
|
8334
8344
|
set autoComplete(val: string);
|
8345
|
+
denySearch: boolean;
|
8346
|
+
dropdownWidthMode: "contentWidth" | "editorWidth";
|
8335
8347
|
getControlClass(): string;
|
8336
8348
|
get readOnlyText(): any;
|
8349
|
+
protected onVisibleChoicesChanged(): void;
|
8350
|
+
_popupModel: any;
|
8351
|
+
get popupModel(): any;
|
8337
8352
|
}
|
8338
8353
|
/*
|
8339
8354
|
* A Model for html question. Unlike other questions it doesn't have value and title.
|
@@ -8518,6 +8533,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8518
8533
|
getConditionJson(operator?: string, path?: string): any;
|
8519
8534
|
clearIncorrectValues(): void;
|
8520
8535
|
clearErrors(): void;
|
8536
|
+
localeChanged(): void;
|
8521
8537
|
runCondition(values: any, properties: any): void;
|
8522
8538
|
protected shouldRunColumnExpression(): boolean;
|
8523
8539
|
protected runCellsCondition(values: any, properties: any): void;
|
@@ -8795,6 +8811,10 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
8795
8811
|
isReadOnlyRenderDiv(): boolean;
|
8796
8812
|
get inputStyle(): any;
|
8797
8813
|
}
|
8814
|
+
export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
|
8815
|
+
constructor(props: any);
|
8816
|
+
protected renderSelect(cssClasses: any): any;
|
8817
|
+
}
|
8798
8818
|
/*
|
8799
8819
|
* A Model for a button group question.
|
8800
8820
|
*/
|