survey-react 1.12.5 → 1.12.6
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 +6 -3
- package/defaultV2.css.map +1 -1
- 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 +19 -10
- package/survey.react.js +146 -85
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/modern.css
CHANGED
package/modern.min.css
CHANGED
package/package.json
CHANGED
package/survey.css
CHANGED
package/survey.min.css
CHANGED
package/survey.react.d.ts
CHANGED
@@ -3959,11 +3959,6 @@ declare module "packages/survey-core/src/question_file" {
|
|
3959
3959
|
protected loadPreview(newValue: any): void;
|
3960
3960
|
protected onChangeQuestionValue(newValue: any): void;
|
3961
3961
|
}
|
3962
|
-
/**
|
3963
|
-
* A class that describes the File Upload question type.
|
3964
|
-
*
|
3965
|
-
* [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
|
3966
|
-
*/
|
3967
3962
|
export class QuestionFilePage extends Base {
|
3968
3963
|
private question;
|
3969
3964
|
private index;
|
@@ -3974,6 +3969,11 @@ declare module "packages/survey-core/src/question_file" {
|
|
3974
3969
|
constructor(question: QuestionFileModel, index: number);
|
3975
3970
|
get css(): string;
|
3976
3971
|
}
|
3972
|
+
/**
|
3973
|
+
* A class that describes the File Upload question type.
|
3974
|
+
*
|
3975
|
+
* [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
|
3976
|
+
*/
|
3977
3977
|
export class QuestionFileModel extends QuestionFileModelBase {
|
3978
3978
|
isDragging: boolean;
|
3979
3979
|
previewValue: any[];
|
@@ -5017,6 +5017,7 @@ declare module "packages/survey-core/src/validator" {
|
|
5017
5017
|
errorOwner: ISurveyErrorOwner;
|
5018
5018
|
onAsyncCompleted: (result: ValidatorResult) => void;
|
5019
5019
|
constructor();
|
5020
|
+
get isValidator(): boolean;
|
5020
5021
|
getSurvey(live?: boolean): ISurvey;
|
5021
5022
|
/**
|
5022
5023
|
* An error message to display when a value fails validation.
|
@@ -6011,6 +6012,7 @@ declare module "packages/survey-core/src/question_matrixdynamic" {
|
|
6011
6012
|
index: number;
|
6012
6013
|
private dragOrClickHelper;
|
6013
6014
|
constructor(index: number, data: IMatrixDropdownData, value: any);
|
6015
|
+
protected getRowIndex(): number;
|
6014
6016
|
get rowName(): string;
|
6015
6017
|
get dataName(): string;
|
6016
6018
|
get text(): any;
|
@@ -6083,6 +6085,7 @@ declare module "packages/survey-core/src/question_matrixdynamic" {
|
|
6083
6085
|
*/
|
6084
6086
|
get rowCount(): number;
|
6085
6087
|
set rowCount(val: number);
|
6088
|
+
protected updateBindingProp(propName: string, value: any): void;
|
6086
6089
|
protected updateProgressInfoByValues(res: IProgressInfo): void;
|
6087
6090
|
private getValueForNewRow;
|
6088
6091
|
/**
|
@@ -9065,7 +9068,6 @@ declare module "packages/survey-core/src/question_text" {
|
|
9065
9068
|
set dataList(val: Array<string>);
|
9066
9069
|
get locDataList(): LocalizableStrings;
|
9067
9070
|
get dataListId(): string;
|
9068
|
-
protected canRunValidators(isOnValueChanged: boolean): boolean;
|
9069
9071
|
protected setNewValue(newValue: any): void;
|
9070
9072
|
protected correctValueType(newValue: any): any;
|
9071
9073
|
protected hasPlaceholder(): boolean;
|
@@ -11817,6 +11819,7 @@ declare module "packages/survey-core/src/survey" {
|
|
11817
11819
|
private getProgressTextCore;
|
11818
11820
|
rootCss: string;
|
11819
11821
|
getRootCss(): string;
|
11822
|
+
private isSmoothScrollEnabled;
|
11820
11823
|
private resizeObserver;
|
11821
11824
|
afterRenderSurvey(htmlElement: any): void;
|
11822
11825
|
/**
|
@@ -11888,7 +11891,7 @@ declare module "packages/survey-core/src/survey" {
|
|
11888
11891
|
private getUpdatedPageTitleActions;
|
11889
11892
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: any, actions: Array<IAction>): IAction[];
|
11890
11893
|
skeletonHeight: number;
|
11891
|
-
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement): any;
|
11894
|
+
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement, onScolledCallback?: () => void): any;
|
11892
11895
|
/**
|
11893
11896
|
* Opens a dialog window for users to select files.
|
11894
11897
|
* @param input A [file input HTML element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
|
@@ -13505,7 +13508,6 @@ declare module "packages/survey-core/src/question" {
|
|
13505
13508
|
* @param onError Pass `true` if you want to focus an input field with the first validation error. Default value: `false` (focuses the first input field). Applies to question types with multiple input fields.
|
13506
13509
|
*/
|
13507
13510
|
focus(onError?: boolean, scrollIfVisible?: boolean): void;
|
13508
|
-
private focuscore;
|
13509
13511
|
focusInputElement(onError: boolean): void;
|
13510
13512
|
private get isValidateVisitedEmptyFields();
|
13511
13513
|
private isFocusEmpty;
|
@@ -13951,6 +13953,7 @@ declare module "packages/survey-core/src/question" {
|
|
13951
13953
|
clearUnusedValues(): void;
|
13952
13954
|
onAnyValueChanged(name: string, questionName: string): void;
|
13953
13955
|
checkBindings(valueName: string, value: any): void;
|
13956
|
+
protected updateBindingProp(propName: string, value: any): void;
|
13954
13957
|
getComponentName(): string;
|
13955
13958
|
isDefaultRendering(): boolean;
|
13956
13959
|
renderAs: string;
|
@@ -14303,6 +14306,7 @@ declare module "packages/survey-core/src/question_matrixdropdownbase" {
|
|
14303
14306
|
static OwnerVariableName: string;
|
14304
14307
|
static IndexVariableName: string;
|
14305
14308
|
static RowValueVariableName: string;
|
14309
|
+
static RowNameVariableName: string;
|
14306
14310
|
private static idCounter;
|
14307
14311
|
private static getId;
|
14308
14312
|
protected data: IMatrixDropdownData;
|
@@ -14394,6 +14398,7 @@ declare module "packages/survey-core/src/question_matrixdropdownbase" {
|
|
14394
14398
|
getSurvey(): ISurvey;
|
14395
14399
|
getTextProcessor(): ITextProcessor;
|
14396
14400
|
get rowIndex(): number;
|
14401
|
+
protected getRowIndex(): number;
|
14397
14402
|
get editingObj(): Base;
|
14398
14403
|
private onEditingObjPropertyChanged;
|
14399
14404
|
private editingObjValue;
|
@@ -14963,7 +14968,7 @@ declare module "packages/survey-core/src/base-interfaces" {
|
|
14963
14968
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
|
14964
14969
|
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
14965
14970
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
14966
|
-
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): any;
|
14971
|
+
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement, onScolledCallback?: () => void): any;
|
14967
14972
|
runExpression(expression: string, callback?: (res: any) => void): any;
|
14968
14973
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
14969
14974
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
@@ -15189,6 +15194,7 @@ declare module "packages/survey-core/src/jsonobject" {
|
|
15189
15194
|
isSerializable?: boolean;
|
15190
15195
|
isLightSerializable?: boolean;
|
15191
15196
|
readOnly?: boolean;
|
15197
|
+
availableInMatrixColumn?: boolean;
|
15192
15198
|
serializationProperty?: string;
|
15193
15199
|
dependsOn?: Array<string> | string;
|
15194
15200
|
isBindable?: boolean;
|
@@ -15262,6 +15268,7 @@ declare module "packages/survey-core/src/jsonobject" {
|
|
15262
15268
|
nextToProperty: string;
|
15263
15269
|
overridingProperty: string;
|
15264
15270
|
showMode: string;
|
15271
|
+
availableInMatrixColumn: boolean;
|
15265
15272
|
maxLength: number;
|
15266
15273
|
maxValue: any;
|
15267
15274
|
minValue: any;
|
@@ -27128,7 +27135,6 @@ declare module "packages/survey-react-ui/src/components/text-area" {
|
|
27128
27135
|
get viewModel(): TextAreaModel;
|
27129
27136
|
protected canRender(): boolean;
|
27130
27137
|
protected renderElement(): JSX.Element;
|
27131
|
-
componentWillUnmount(): void;
|
27132
27138
|
}
|
27133
27139
|
}
|
27134
27140
|
declare module "packages/survey-react-ui/src/reactquestion_comment" {
|
@@ -27236,6 +27242,7 @@ declare module "packages/survey-react-ui/src/components/popup/popup" {
|
|
27236
27242
|
protected renderHeaderPopup(popupModel: PopupBaseViewModel): JSX.Element | null;
|
27237
27243
|
protected renderFooter(popuModel: PopupBaseViewModel): JSX.Element | null;
|
27238
27244
|
render(): JSX.Element;
|
27245
|
+
componentDidMount(): void;
|
27239
27246
|
}
|
27240
27247
|
export class PopupDropdownContainer extends PopupContainer {
|
27241
27248
|
protected renderHeaderPopup(popupModel: PopupBaseViewModel): JSX.Element | null;
|
@@ -27249,6 +27256,7 @@ declare module "packages/survey-react-ui/src/components/action-bar/action-bar-it
|
|
27249
27256
|
private viewModel;
|
27250
27257
|
constructor(props: any);
|
27251
27258
|
renderInnerButton(): JSX.Element;
|
27259
|
+
componentDidMount(): void;
|
27252
27260
|
componentWillUnmount(): void;
|
27253
27261
|
}
|
27254
27262
|
}
|
@@ -27863,6 +27871,7 @@ declare module "packages/survey-react-ui/src/dropdown-item" {
|
|
27863
27871
|
export class SurveyQuestionOptionItem extends ReactSurveyElement {
|
27864
27872
|
constructor(props: any);
|
27865
27873
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
27874
|
+
componentDidMount(): void;
|
27866
27875
|
componentWillUnmount(): void;
|
27867
27876
|
private setupModel;
|
27868
27877
|
protected getStateElement(): Base;
|