survey-react 1.12.5 → 1.12.7
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 +23 -13
- package/survey.react.js +189 -105
- 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[];
|
@@ -4972,7 +4972,7 @@ declare module "packages/survey-core/src/question_baseselect" {
|
|
4972
4972
|
*
|
4973
4973
|
* [View Dropdown Demo](https://surveyjs.io/form-library/examples/dropdown-box-with-custom-items/ (linkStyle))
|
4974
4974
|
*
|
4975
|
-
* [View Ranking Demo](https://surveyjs.io/form-library/examples/
|
4975
|
+
* [View Ranking Demo](https://surveyjs.io/form-library/examples/ranking-with-custom-items/ (linkStyle))
|
4976
4976
|
*/
|
4977
4977
|
get itemComponent(): string;
|
4978
4978
|
set itemComponent(value: string);
|
@@ -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
|
/**
|
@@ -7062,6 +7065,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
7062
7065
|
* @see addPanelUI
|
7063
7066
|
*/
|
7064
7067
|
removePanelUI(value: any): void;
|
7068
|
+
getPanelRemoveButtonId(panel: PanelModel): string;
|
7065
7069
|
isRequireConfirmOnDelete(val: any): boolean;
|
7066
7070
|
/**
|
7067
7071
|
* Switches Dynamic Panel to the next panel. Returns `true` in case of success, or `false` if `displayMode` is `"list"` or the current panel contains validation errors.
|
@@ -9065,7 +9069,6 @@ declare module "packages/survey-core/src/question_text" {
|
|
9065
9069
|
set dataList(val: Array<string>);
|
9066
9070
|
get locDataList(): LocalizableStrings;
|
9067
9071
|
get dataListId(): string;
|
9068
|
-
protected canRunValidators(isOnValueChanged: boolean): boolean;
|
9069
9072
|
protected setNewValue(newValue: any): void;
|
9070
9073
|
protected correctValueType(newValue: any): any;
|
9071
9074
|
protected hasPlaceholder(): boolean;
|
@@ -10697,7 +10700,7 @@ declare module "packages/survey-core/src/survey" {
|
|
10697
10700
|
* - `"onValueChanged"` - Triggers validation each time a question value is changed.
|
10698
10701
|
* - `"onComplete"` - Triggers validation when a user clicks the Complete button. If previous pages contain errors, the survey switches to the page with the first error.
|
10699
10702
|
*
|
10700
|
-
* >
|
10703
|
+
* > In SurveyJS Form Library v1.12.5 and earlier, the `"onValueChanged"` mode doesn't work with date input fields because of the way browsers process date values. In most browsers, the value is considered changed as soon as a user starts entering the date in a text input field. This means that a user may only enter the day without having the chance to enter the month and year before validation is triggered. For this reason, date input fields are validated before the survey is switched to the next page or completed. Starting with v1.12.6, `"onValueChanged"` works for date input fields as well as for input fields of other types.
|
10701
10704
|
*
|
10702
10705
|
* Refer to the following help topic for more information: [Data Validation](https://surveyjs.io/form-library/documentation/data-validation).
|
10703
10706
|
* @see validationEnabled
|
@@ -11817,6 +11820,7 @@ declare module "packages/survey-core/src/survey" {
|
|
11817
11820
|
private getProgressTextCore;
|
11818
11821
|
rootCss: string;
|
11819
11822
|
getRootCss(): string;
|
11823
|
+
private isSmoothScrollEnabled;
|
11820
11824
|
private resizeObserver;
|
11821
11825
|
afterRenderSurvey(htmlElement: any): void;
|
11822
11826
|
/**
|
@@ -11888,7 +11892,7 @@ declare module "packages/survey-core/src/survey" {
|
|
11888
11892
|
private getUpdatedPageTitleActions;
|
11889
11893
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: any, actions: Array<IAction>): IAction[];
|
11890
11894
|
skeletonHeight: number;
|
11891
|
-
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement): any;
|
11895
|
+
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement, onScolledCallback?: () => void): any;
|
11892
11896
|
/**
|
11893
11897
|
* Opens a dialog window for users to select files.
|
11894
11898
|
* @param input A [file input HTML element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
|
@@ -12668,7 +12672,7 @@ declare module "packages/survey-core/src/survey-element" {
|
|
12668
12672
|
static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): boolean;
|
12669
12673
|
static ScrollElementToViewCore(el: HTMLElement, checkLeft: boolean, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): boolean;
|
12670
12674
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
12671
|
-
static FocusElement(elementId: string): boolean;
|
12675
|
+
static FocusElement(elementId: string, isTimeOut?: boolean, containerEl?: HTMLElement): boolean;
|
12672
12676
|
private static focusElementCore;
|
12673
12677
|
static CreateDisabledDesignElements: boolean;
|
12674
12678
|
disableDesignActions: boolean;
|
@@ -13505,7 +13509,6 @@ declare module "packages/survey-core/src/question" {
|
|
13505
13509
|
* @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
13510
|
*/
|
13507
13511
|
focus(onError?: boolean, scrollIfVisible?: boolean): void;
|
13508
|
-
private focuscore;
|
13509
13512
|
focusInputElement(onError: boolean): void;
|
13510
13513
|
private get isValidateVisitedEmptyFields();
|
13511
13514
|
private isFocusEmpty;
|
@@ -13951,6 +13954,7 @@ declare module "packages/survey-core/src/question" {
|
|
13951
13954
|
clearUnusedValues(): void;
|
13952
13955
|
onAnyValueChanged(name: string, questionName: string): void;
|
13953
13956
|
checkBindings(valueName: string, value: any): void;
|
13957
|
+
protected updateBindingProp(propName: string, value: any): void;
|
13954
13958
|
getComponentName(): string;
|
13955
13959
|
isDefaultRendering(): boolean;
|
13956
13960
|
renderAs: string;
|
@@ -14303,6 +14307,7 @@ declare module "packages/survey-core/src/question_matrixdropdownbase" {
|
|
14303
14307
|
static OwnerVariableName: string;
|
14304
14308
|
static IndexVariableName: string;
|
14305
14309
|
static RowValueVariableName: string;
|
14310
|
+
static RowNameVariableName: string;
|
14306
14311
|
private static idCounter;
|
14307
14312
|
private static getId;
|
14308
14313
|
protected data: IMatrixDropdownData;
|
@@ -14394,6 +14399,7 @@ declare module "packages/survey-core/src/question_matrixdropdownbase" {
|
|
14394
14399
|
getSurvey(): ISurvey;
|
14395
14400
|
getTextProcessor(): ITextProcessor;
|
14396
14401
|
get rowIndex(): number;
|
14402
|
+
protected getRowIndex(): number;
|
14397
14403
|
get editingObj(): Base;
|
14398
14404
|
private onEditingObjPropertyChanged;
|
14399
14405
|
private editingObjValue;
|
@@ -14963,7 +14969,7 @@ declare module "packages/survey-core/src/base-interfaces" {
|
|
14963
14969
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
|
14964
14970
|
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
14965
14971
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
14966
|
-
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): any;
|
14972
|
+
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement, onScolledCallback?: () => void): any;
|
14967
14973
|
runExpression(expression: string, callback?: (res: any) => void): any;
|
14968
14974
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
14969
14975
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
@@ -15189,6 +15195,7 @@ declare module "packages/survey-core/src/jsonobject" {
|
|
15189
15195
|
isSerializable?: boolean;
|
15190
15196
|
isLightSerializable?: boolean;
|
15191
15197
|
readOnly?: boolean;
|
15198
|
+
availableInMatrixColumn?: boolean;
|
15192
15199
|
serializationProperty?: string;
|
15193
15200
|
dependsOn?: Array<string> | string;
|
15194
15201
|
isBindable?: boolean;
|
@@ -15262,6 +15269,7 @@ declare module "packages/survey-core/src/jsonobject" {
|
|
15262
15269
|
nextToProperty: string;
|
15263
15270
|
overridingProperty: string;
|
15264
15271
|
showMode: string;
|
15272
|
+
availableInMatrixColumn: boolean;
|
15265
15273
|
maxLength: number;
|
15266
15274
|
maxValue: any;
|
15267
15275
|
minValue: any;
|
@@ -27128,7 +27136,6 @@ declare module "packages/survey-react-ui/src/components/text-area" {
|
|
27128
27136
|
get viewModel(): TextAreaModel;
|
27129
27137
|
protected canRender(): boolean;
|
27130
27138
|
protected renderElement(): JSX.Element;
|
27131
|
-
componentWillUnmount(): void;
|
27132
27139
|
}
|
27133
27140
|
}
|
27134
27141
|
declare module "packages/survey-react-ui/src/reactquestion_comment" {
|
@@ -27236,6 +27243,7 @@ declare module "packages/survey-react-ui/src/components/popup/popup" {
|
|
27236
27243
|
protected renderHeaderPopup(popupModel: PopupBaseViewModel): JSX.Element | null;
|
27237
27244
|
protected renderFooter(popuModel: PopupBaseViewModel): JSX.Element | null;
|
27238
27245
|
render(): JSX.Element;
|
27246
|
+
componentDidMount(): void;
|
27239
27247
|
}
|
27240
27248
|
export class PopupDropdownContainer extends PopupContainer {
|
27241
27249
|
protected renderHeaderPopup(popupModel: PopupBaseViewModel): JSX.Element | null;
|
@@ -27249,6 +27257,7 @@ declare module "packages/survey-react-ui/src/components/action-bar/action-bar-it
|
|
27249
27257
|
private viewModel;
|
27250
27258
|
constructor(props: any);
|
27251
27259
|
renderInnerButton(): JSX.Element;
|
27260
|
+
componentDidMount(): void;
|
27252
27261
|
componentWillUnmount(): void;
|
27253
27262
|
}
|
27254
27263
|
}
|
@@ -27863,6 +27872,7 @@ declare module "packages/survey-react-ui/src/dropdown-item" {
|
|
27863
27872
|
export class SurveyQuestionOptionItem extends ReactSurveyElement {
|
27864
27873
|
constructor(props: any);
|
27865
27874
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
27875
|
+
componentDidMount(): void;
|
27866
27876
|
componentWillUnmount(): void;
|
27867
27877
|
private setupModel;
|
27868
27878
|
protected getStateElement(): Base;
|