survey-core 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.fontless.css +6 -3
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/philippines.js +1 -1
- package/i18n/philippines.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/modern.css +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/plugins/bootstrap-integration/index.js +1 -1
- package/plugins/bootstrap-integration/index.min.js +1 -1
- package/plugins/bootstrap-material-integration/index.js +1 -1
- package/plugins/bootstrap-material-integration/index.min.js +1 -1
- package/survey.core.js +156 -95
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/packages/survey-core/src/base-interfaces.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/jsonobject.d.ts +2 -0
- package/ts3.4/typings/packages/survey-core/src/question.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_baseselect.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_file.d.ts +5 -5
- package/ts3.4/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +2 -0
- package/ts3.4/typings/packages/survey-core/src/question_matrixdynamic.d.ts +2 -0
- package/ts3.4/typings/packages/survey-core/src/question_paneldynamic.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/question_text.d.ts +0 -1
- package/ts3.4/typings/packages/survey-core/src/survey-element.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +3 -2
- package/ts3.4/typings/packages/survey-core/src/validator.d.ts +1 -0
- package/typings/packages/survey-core/src/base-interfaces.d.ts +1 -1
- package/typings/packages/survey-core/src/jsonobject.d.ts +2 -0
- package/typings/packages/survey-core/src/question.d.ts +1 -1
- package/typings/packages/survey-core/src/question_baseselect.d.ts +1 -1
- package/typings/packages/survey-core/src/question_file.d.ts +5 -5
- package/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +2 -0
- package/typings/packages/survey-core/src/question_matrixdynamic.d.ts +2 -0
- package/typings/packages/survey-core/src/question_paneldynamic.d.ts +1 -0
- package/typings/packages/survey-core/src/question_text.d.ts +0 -1
- package/typings/packages/survey-core/src/survey-element.d.ts +1 -1
- package/typings/packages/survey-core/src/survey.d.ts +3 -2
- package/typings/packages/survey-core/src/validator.d.ts +1 -0
package/themes/solid-light.js
CHANGED
|
@@ -169,7 +169,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
169
169
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
|
|
170
170
|
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
|
171
171
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
|
172
|
-
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): any;
|
|
172
|
+
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement, onScolledCallback?: () => void): any;
|
|
173
173
|
runExpression(expression: string, callback?: (res: any) => void): any;
|
|
174
174
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
|
175
175
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
|
@@ -40,6 +40,7 @@ export interface IJsonPropertyInfo {
|
|
|
40
40
|
isSerializable?: boolean;
|
|
41
41
|
isLightSerializable?: boolean;
|
|
42
42
|
readOnly?: boolean;
|
|
43
|
+
availableInMatrixColumn?: boolean;
|
|
43
44
|
serializationProperty?: string;
|
|
44
45
|
dependsOn?: Array<string> | string;
|
|
45
46
|
isBindable?: boolean;
|
|
@@ -113,6 +114,7 @@ export declare class JsonObjectProperty implements IObject, IJsonPropertyInfo {
|
|
|
113
114
|
nextToProperty: string;
|
|
114
115
|
overridingProperty: string;
|
|
115
116
|
showMode: string;
|
|
117
|
+
availableInMatrixColumn: boolean;
|
|
116
118
|
maxLength: number;
|
|
117
119
|
maxValue: any;
|
|
118
120
|
minValue: any;
|
|
@@ -420,7 +420,6 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
420
420
|
* @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.
|
|
421
421
|
*/
|
|
422
422
|
focus(onError?: boolean, scrollIfVisible?: boolean): void;
|
|
423
|
-
private focuscore;
|
|
424
423
|
focusInputElement(onError: boolean): void;
|
|
425
424
|
private readonly isValidateVisitedEmptyFields: any;
|
|
426
425
|
private isFocusEmpty;
|
|
@@ -845,6 +844,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
845
844
|
clearUnusedValues(): void;
|
|
846
845
|
onAnyValueChanged(name: string, questionName: string): void;
|
|
847
846
|
checkBindings(valueName: string, value: any): void;
|
|
847
|
+
protected updateBindingProp(propName: string, value: any): void;
|
|
848
848
|
getComponentName(): string;
|
|
849
849
|
isDefaultRendering(): boolean;
|
|
850
850
|
renderAs: string;
|
|
@@ -492,7 +492,7 @@ export declare class QuestionSelectBase extends Question {
|
|
|
492
492
|
*
|
|
493
493
|
* [View Dropdown Demo](https://surveyjs.io/form-library/examples/dropdown-box-with-custom-items/ (linkStyle))
|
|
494
494
|
*
|
|
495
|
-
* [View Ranking Demo](https://surveyjs.io/form-library/examples/
|
|
495
|
+
* [View Ranking Demo](https://surveyjs.io/form-library/examples/ranking-with-custom-items/ (linkStyle))
|
|
496
496
|
*/
|
|
497
497
|
itemComponent: string;
|
|
498
498
|
protected updateCssClasses(res: any, css: any): void;
|
|
@@ -46,11 +46,6 @@ export declare class QuestionFileModelBase extends Question {
|
|
|
46
46
|
protected loadPreview(newValue: any): void;
|
|
47
47
|
protected onChangeQuestionValue(newValue: any): void;
|
|
48
48
|
}
|
|
49
|
-
/**
|
|
50
|
-
* A class that describes the File Upload question type.
|
|
51
|
-
*
|
|
52
|
-
* [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
|
|
53
|
-
*/
|
|
54
49
|
export declare class QuestionFilePage extends Base {
|
|
55
50
|
private question;
|
|
56
51
|
private index;
|
|
@@ -61,6 +56,11 @@ export declare class QuestionFilePage extends Base {
|
|
|
61
56
|
constructor(question: QuestionFileModel, index: number);
|
|
62
57
|
readonly css: string;
|
|
63
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* A class that describes the File Upload question type.
|
|
61
|
+
*
|
|
62
|
+
* [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
|
|
63
|
+
*/
|
|
64
64
|
export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
65
65
|
isDragging: boolean;
|
|
66
66
|
previewValue: any[];
|
|
@@ -69,6 +69,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
|
69
69
|
static OwnerVariableName: string;
|
|
70
70
|
static IndexVariableName: string;
|
|
71
71
|
static RowValueVariableName: string;
|
|
72
|
+
static RowNameVariableName: string;
|
|
72
73
|
private static idCounter;
|
|
73
74
|
private static getId;
|
|
74
75
|
protected data: IMatrixDropdownData;
|
|
@@ -158,6 +159,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
|
158
159
|
getSurvey(): ISurvey;
|
|
159
160
|
getTextProcessor(): ITextProcessor;
|
|
160
161
|
readonly rowIndex: number;
|
|
162
|
+
protected getRowIndex(): number;
|
|
161
163
|
readonly editingObj: Base;
|
|
162
164
|
private onEditingObjPropertyChanged;
|
|
163
165
|
private editingObjValue;
|
|
@@ -7,6 +7,7 @@ export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase im
|
|
|
7
7
|
index: number;
|
|
8
8
|
private dragOrClickHelper;
|
|
9
9
|
constructor(index: number, data: IMatrixDropdownData, value: any);
|
|
10
|
+
protected getRowIndex(): number;
|
|
10
11
|
readonly rowName: string;
|
|
11
12
|
readonly dataName: string;
|
|
12
13
|
readonly text: any;
|
|
@@ -74,6 +75,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
74
75
|
* @see maxRowCount
|
|
75
76
|
*/
|
|
76
77
|
rowCount: number;
|
|
78
|
+
protected updateBindingProp(propName: string, value: any): void;
|
|
77
79
|
protected updateProgressInfoByValues(res: IProgressInfo): void;
|
|
78
80
|
private getValueForNewRow;
|
|
79
81
|
/*
|
|
@@ -527,6 +527,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
527
527
|
* @see addPanelUI
|
|
528
528
|
*/
|
|
529
529
|
removePanelUI(value: any): void;
|
|
530
|
+
getPanelRemoveButtonId(panel: PanelModel): string;
|
|
530
531
|
isRequireConfirmOnDelete(val: any): boolean;
|
|
531
532
|
/**
|
|
532
533
|
* 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.
|
|
@@ -164,7 +164,6 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
164
164
|
dataList: Array<string>;
|
|
165
165
|
readonly locDataList: LocalizableStrings;
|
|
166
166
|
readonly dataListId: string;
|
|
167
|
-
protected canRunValidators(isOnValueChanged: boolean): boolean;
|
|
168
167
|
protected setNewValue(newValue: any): void;
|
|
169
168
|
protected correctValueType(newValue: any): any;
|
|
170
169
|
protected hasPlaceholder(): boolean;
|
|
@@ -108,7 +108,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
108
108
|
static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): boolean;
|
|
109
109
|
static ScrollElementToViewCore(el: HTMLElement, checkLeft: boolean, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): boolean;
|
|
110
110
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
|
111
|
-
static FocusElement(elementId: string): boolean;
|
|
111
|
+
static FocusElement(elementId: string, isTimeOut?: boolean, containerEl?: HTMLElement): boolean;
|
|
112
112
|
private static focusElementCore;
|
|
113
113
|
static CreateDisabledDesignElements: boolean;
|
|
114
114
|
disableDesignActions: boolean;
|
|
@@ -1045,7 +1045,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1045
1045
|
* - `"onValueChanged"` - Triggers validation each time a question value is changed.
|
|
1046
1046
|
* - `"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.
|
|
1047
1047
|
*
|
|
1048
|
-
* >
|
|
1048
|
+
* > 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.
|
|
1049
1049
|
*
|
|
1050
1050
|
* Refer to the following help topic for more information: [Data Validation](https://surveyjs.io/form-library/documentation/data-validation).
|
|
1051
1051
|
* @see validationEnabled
|
|
@@ -2111,6 +2111,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2111
2111
|
private getProgressTextCore;
|
|
2112
2112
|
rootCss: string;
|
|
2113
2113
|
getRootCss(): string;
|
|
2114
|
+
private isSmoothScrollEnabled;
|
|
2114
2115
|
private resizeObserver;
|
|
2115
2116
|
afterRenderSurvey(htmlElement: any): void;
|
|
2116
2117
|
/**
|
|
@@ -2182,7 +2183,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2182
2183
|
private getUpdatedPageTitleActions;
|
|
2183
2184
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: any, actions: Array<IAction>): IAction[];
|
|
2184
2185
|
skeletonHeight: number;
|
|
2185
|
-
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement): any;
|
|
2186
|
+
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement, onScolledCallback?: () => void): any;
|
|
2186
2187
|
/**
|
|
2187
2188
|
* Opens a dialog window for users to select files.
|
|
2188
2189
|
* @param input A [file input HTML element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
|
|
@@ -16,6 +16,7 @@ export declare class SurveyValidator extends Base {
|
|
|
16
16
|
errorOwner: ISurveyErrorOwner;
|
|
17
17
|
onAsyncCompleted: (result: ValidatorResult) => void;
|
|
18
18
|
constructor();
|
|
19
|
+
readonly isValidator: boolean;
|
|
19
20
|
getSurvey(live?: boolean): ISurvey;
|
|
20
21
|
/*
|
|
21
22
|
* An error message to display when a value fails validation.
|
|
@@ -169,7 +169,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
169
169
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
|
|
170
170
|
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
|
171
171
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
|
172
|
-
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): any;
|
|
172
|
+
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement, onScolledCallback?: () => void): any;
|
|
173
173
|
runExpression(expression: string, callback?: (res: any) => void): any;
|
|
174
174
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
|
175
175
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
|
@@ -40,6 +40,7 @@ export interface IJsonPropertyInfo {
|
|
|
40
40
|
isSerializable?: boolean;
|
|
41
41
|
isLightSerializable?: boolean;
|
|
42
42
|
readOnly?: boolean;
|
|
43
|
+
availableInMatrixColumn?: boolean;
|
|
43
44
|
serializationProperty?: string;
|
|
44
45
|
dependsOn?: Array<string> | string;
|
|
45
46
|
isBindable?: boolean;
|
|
@@ -113,6 +114,7 @@ export declare class JsonObjectProperty implements IObject, IJsonPropertyInfo {
|
|
|
113
114
|
nextToProperty: string;
|
|
114
115
|
overridingProperty: string;
|
|
115
116
|
showMode: string;
|
|
117
|
+
availableInMatrixColumn: boolean;
|
|
116
118
|
maxLength: number;
|
|
117
119
|
maxValue: any;
|
|
118
120
|
minValue: any;
|
|
@@ -435,7 +435,6 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
435
435
|
* @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.
|
|
436
436
|
*/
|
|
437
437
|
focus(onError?: boolean, scrollIfVisible?: boolean): void;
|
|
438
|
-
private focuscore;
|
|
439
438
|
focusInputElement(onError: boolean): void;
|
|
440
439
|
private get isValidateVisitedEmptyFields();
|
|
441
440
|
private isFocusEmpty;
|
|
@@ -881,6 +880,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
881
880
|
clearUnusedValues(): void;
|
|
882
881
|
onAnyValueChanged(name: string, questionName: string): void;
|
|
883
882
|
checkBindings(valueName: string, value: any): void;
|
|
883
|
+
protected updateBindingProp(propName: string, value: any): void;
|
|
884
884
|
getComponentName(): string;
|
|
885
885
|
isDefaultRendering(): boolean;
|
|
886
886
|
renderAs: string;
|
|
@@ -520,7 +520,7 @@ export declare class QuestionSelectBase extends Question {
|
|
|
520
520
|
*
|
|
521
521
|
* [View Dropdown Demo](https://surveyjs.io/form-library/examples/dropdown-box-with-custom-items/ (linkStyle))
|
|
522
522
|
*
|
|
523
|
-
* [View Ranking Demo](https://surveyjs.io/form-library/examples/
|
|
523
|
+
* [View Ranking Demo](https://surveyjs.io/form-library/examples/ranking-with-custom-items/ (linkStyle))
|
|
524
524
|
*/
|
|
525
525
|
get itemComponent(): string;
|
|
526
526
|
set itemComponent(value: string);
|
|
@@ -48,11 +48,6 @@ export declare class QuestionFileModelBase extends Question {
|
|
|
48
48
|
protected loadPreview(newValue: any): void;
|
|
49
49
|
protected onChangeQuestionValue(newValue: any): void;
|
|
50
50
|
}
|
|
51
|
-
/**
|
|
52
|
-
* A class that describes the File Upload question type.
|
|
53
|
-
*
|
|
54
|
-
* [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
|
|
55
|
-
*/
|
|
56
51
|
export declare class QuestionFilePage extends Base {
|
|
57
52
|
private question;
|
|
58
53
|
private index;
|
|
@@ -63,6 +58,11 @@ export declare class QuestionFilePage extends Base {
|
|
|
63
58
|
constructor(question: QuestionFileModel, index: number);
|
|
64
59
|
get css(): string;
|
|
65
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* A class that describes the File Upload question type.
|
|
63
|
+
*
|
|
64
|
+
* [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
|
|
65
|
+
*/
|
|
66
66
|
export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
67
67
|
isDragging: boolean;
|
|
68
68
|
previewValue: any[];
|
|
@@ -70,6 +70,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
|
70
70
|
static OwnerVariableName: string;
|
|
71
71
|
static IndexVariableName: string;
|
|
72
72
|
static RowValueVariableName: string;
|
|
73
|
+
static RowNameVariableName: string;
|
|
73
74
|
private static idCounter;
|
|
74
75
|
private static getId;
|
|
75
76
|
protected data: IMatrixDropdownData;
|
|
@@ -161,6 +162,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
|
161
162
|
getSurvey(): ISurvey;
|
|
162
163
|
getTextProcessor(): ITextProcessor;
|
|
163
164
|
get rowIndex(): number;
|
|
165
|
+
protected getRowIndex(): number;
|
|
164
166
|
get editingObj(): Base;
|
|
165
167
|
private onEditingObjPropertyChanged;
|
|
166
168
|
private editingObjValue;
|
|
@@ -7,6 +7,7 @@ export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase im
|
|
|
7
7
|
index: number;
|
|
8
8
|
private dragOrClickHelper;
|
|
9
9
|
constructor(index: number, data: IMatrixDropdownData, value: any);
|
|
10
|
+
protected getRowIndex(): number;
|
|
10
11
|
get rowName(): string;
|
|
11
12
|
get dataName(): string;
|
|
12
13
|
get text(): any;
|
|
@@ -79,6 +80,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
79
80
|
*/
|
|
80
81
|
get rowCount(): number;
|
|
81
82
|
set rowCount(val: number);
|
|
83
|
+
protected updateBindingProp(propName: string, value: any): void;
|
|
82
84
|
protected updateProgressInfoByValues(res: IProgressInfo): void;
|
|
83
85
|
private getValueForNewRow;
|
|
84
86
|
/**
|
|
@@ -559,6 +559,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
559
559
|
* @see addPanelUI
|
|
560
560
|
*/
|
|
561
561
|
removePanelUI(value: any): void;
|
|
562
|
+
getPanelRemoveButtonId(panel: PanelModel): string;
|
|
562
563
|
isRequireConfirmOnDelete(val: any): boolean;
|
|
563
564
|
/**
|
|
564
565
|
* 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.
|
|
@@ -177,7 +177,6 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
|
177
177
|
set dataList(val: Array<string>);
|
|
178
178
|
get locDataList(): LocalizableStrings;
|
|
179
179
|
get dataListId(): string;
|
|
180
|
-
protected canRunValidators(isOnValueChanged: boolean): boolean;
|
|
181
180
|
protected setNewValue(newValue: any): void;
|
|
182
181
|
protected correctValueType(newValue: any): any;
|
|
183
182
|
protected hasPlaceholder(): boolean;
|
|
@@ -109,7 +109,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
109
109
|
static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): boolean;
|
|
110
110
|
static ScrollElementToViewCore(el: HTMLElement, checkLeft: boolean, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): boolean;
|
|
111
111
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
|
112
|
-
static FocusElement(elementId: string): boolean;
|
|
112
|
+
static FocusElement(elementId: string, isTimeOut?: boolean, containerEl?: HTMLElement): boolean;
|
|
113
113
|
private static focusElementCore;
|
|
114
114
|
static CreateDisabledDesignElements: boolean;
|
|
115
115
|
disableDesignActions: boolean;
|
|
@@ -1077,7 +1077,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1077
1077
|
* - `"onValueChanged"` - Triggers validation each time a question value is changed.
|
|
1078
1078
|
* - `"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.
|
|
1079
1079
|
*
|
|
1080
|
-
* >
|
|
1080
|
+
* > 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.
|
|
1081
1081
|
*
|
|
1082
1082
|
* Refer to the following help topic for more information: [Data Validation](https://surveyjs.io/form-library/documentation/data-validation).
|
|
1083
1083
|
* @see validationEnabled
|
|
@@ -2197,6 +2197,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2197
2197
|
private getProgressTextCore;
|
|
2198
2198
|
rootCss: string;
|
|
2199
2199
|
getRootCss(): string;
|
|
2200
|
+
private isSmoothScrollEnabled;
|
|
2200
2201
|
private resizeObserver;
|
|
2201
2202
|
afterRenderSurvey(htmlElement: any): void;
|
|
2202
2203
|
/**
|
|
@@ -2268,7 +2269,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2268
2269
|
private getUpdatedPageTitleActions;
|
|
2269
2270
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: any, actions: Array<IAction>): IAction[];
|
|
2270
2271
|
skeletonHeight: number;
|
|
2271
|
-
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement): any;
|
|
2272
|
+
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement, onScolledCallback?: () => void): any;
|
|
2272
2273
|
/**
|
|
2273
2274
|
* Opens a dialog window for users to select files.
|
|
2274
2275
|
* @param input A [file input HTML element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
|
|
@@ -16,6 +16,7 @@ export declare class SurveyValidator extends Base {
|
|
|
16
16
|
errorOwner: ISurveyErrorOwner;
|
|
17
17
|
onAsyncCompleted: (result: ValidatorResult) => void;
|
|
18
18
|
constructor();
|
|
19
|
+
get isValidator(): boolean;
|
|
19
20
|
getSurvey(live?: boolean): ISurvey;
|
|
20
21
|
/**
|
|
21
22
|
* An error message to display when a value fails validation.
|