survey-react 1.9.133 → 1.9.135
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 +26 -20
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +6 -1
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.css.map +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +515 -15
- package/survey.react.js +2457 -638
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +5 -5
package/survey.react.d.ts
CHANGED
@@ -1,4 +1,33 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
declare module "global_variables_utils" {
|
3
|
+
export class DomWindowHelper {
|
4
|
+
static isAvailable(): boolean;
|
5
|
+
static isFileReaderAvailable(): boolean;
|
6
|
+
static getLocation(): Location;
|
7
|
+
static getVisualViewport(): VisualViewport | null;
|
8
|
+
static getInnerWidth(): number;
|
9
|
+
static getInnerHeight(): number;
|
10
|
+
static getWindow(): Window;
|
11
|
+
static hasOwn(propertyName: string): boolean;
|
12
|
+
static getSelection(): Selection | null;
|
13
|
+
static requestAnimationFrame(callback: FrameRequestCallback): number;
|
14
|
+
static addEventListener(type: string, listener: (e?: any) => void): void;
|
15
|
+
static removeEventListener(type: string, listener: (e?: any) => void): void;
|
16
|
+
}
|
17
|
+
export class DomDocumentHelper {
|
18
|
+
static isAvailable(): boolean;
|
19
|
+
static getBody(): HTMLElement;
|
20
|
+
static getDocumentElement(): HTMLElement;
|
21
|
+
static getDocument(): Document;
|
22
|
+
static getCookie(): string;
|
23
|
+
static setCookie(newCookie: string): void;
|
24
|
+
static activeElementBlur(): Document;
|
25
|
+
static createElement(tagName: string): HTMLElement;
|
26
|
+
static getComputedStyle(elt: Element): CSSStyleDeclaration;
|
27
|
+
static addEventListener(type: string, listener: (e?: any) => void): void;
|
28
|
+
static removeEventListener(type: string, listener: (e?: any) => void): void;
|
29
|
+
}
|
30
|
+
}
|
2
31
|
declare module "helpers" {
|
3
32
|
export interface HashTable<T = any> {
|
4
33
|
[key: string]: T;
|
@@ -814,6 +843,7 @@ declare module "list" {
|
|
814
843
|
itemWithIcon: string;
|
815
844
|
itemDisabled: string;
|
816
845
|
itemFocused: string;
|
846
|
+
itemTextWrap: string;
|
817
847
|
itemIcon: string;
|
818
848
|
itemSeparator: string;
|
819
849
|
itemBody: string;
|
@@ -851,6 +881,7 @@ declare module "list" {
|
|
851
881
|
isAllDataLoaded: boolean;
|
852
882
|
showSearchClearButton: boolean;
|
853
883
|
renderElements: boolean;
|
884
|
+
textWrapEnabled: boolean;
|
854
885
|
static INDENT: number;
|
855
886
|
static MINELEMENTCOUNT: number;
|
856
887
|
scrollHandler: (e?: any) => void;
|
@@ -876,6 +907,7 @@ declare module "list" {
|
|
876
907
|
itemWithIcon: string;
|
877
908
|
itemDisabled: string;
|
878
909
|
itemFocused: string;
|
910
|
+
itemTextWrap: string;
|
879
911
|
itemIcon: string;
|
880
912
|
itemSeparator: string;
|
881
913
|
itemBody: string;
|
@@ -1497,6 +1529,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1497
1529
|
mainRoot: string;
|
1498
1530
|
root: string;
|
1499
1531
|
withFrame: string;
|
1532
|
+
nested: string;
|
1500
1533
|
};
|
1501
1534
|
error: {
|
1502
1535
|
root: string;
|
@@ -1677,6 +1710,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1677
1710
|
mainRoot: string;
|
1678
1711
|
tableWrapper: string;
|
1679
1712
|
root: string;
|
1713
|
+
columnsAutoWidth: string;
|
1680
1714
|
noHeader: string;
|
1681
1715
|
rootVerticalAlignTop: string;
|
1682
1716
|
rootVerticalAlignMiddle: string;
|
@@ -1705,6 +1739,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1705
1739
|
mainRoot: string;
|
1706
1740
|
rootScroll: string;
|
1707
1741
|
root: string;
|
1742
|
+
columnsAutoWidth: string;
|
1708
1743
|
noHeader: string;
|
1709
1744
|
hasFooter: string;
|
1710
1745
|
rootVerticalAlignTop: string;
|
@@ -1747,6 +1782,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1747
1782
|
rootScroll: string;
|
1748
1783
|
empty: string;
|
1749
1784
|
root: string;
|
1785
|
+
columnsAutoWidth: string;
|
1750
1786
|
noHeader: string;
|
1751
1787
|
hasFooter: string;
|
1752
1788
|
tableWrapper: string;
|
@@ -1872,6 +1908,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1872
1908
|
chooseFileAsIcon: string;
|
1873
1909
|
chooseFileIconId: string;
|
1874
1910
|
disabled: string;
|
1911
|
+
controlDisabled: string;
|
1875
1912
|
removeButton: string;
|
1876
1913
|
removeButtonBottom: string;
|
1877
1914
|
removeButtonIconId: string;
|
@@ -4094,6 +4131,7 @@ declare module "question_baseselect" {
|
|
4094
4131
|
protected updateSelectedItemValues(): void;
|
4095
4132
|
private setCustomValuesIntoItems;
|
4096
4133
|
protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
4134
|
+
protected hasUnknownValueItem(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
|
4097
4135
|
protected isValueDisabled(val: any): boolean;
|
4098
4136
|
/**
|
4099
4137
|
* If the clearIncorrectValuesCallback is set, it is used to clear incorrect values instead of default behaviour.
|
@@ -5128,6 +5166,7 @@ declare module "dragdrop/core" {
|
|
5128
5166
|
protected domAdapter: IDragDropDOMAdapter;
|
5129
5167
|
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean, domAdapter?: IDragDropDOMAdapter);
|
5130
5168
|
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement, preventSaveTargetNode?: boolean): void;
|
5169
|
+
private getRootElement;
|
5131
5170
|
dragInit(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
|
5132
5171
|
protected onStartDrag(event?: PointerEvent): void;
|
5133
5172
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
@@ -7136,9 +7175,18 @@ declare module "survey-events-api" {
|
|
7136
7175
|
*/
|
7137
7176
|
input: HTMLInputElement;
|
7138
7177
|
/**
|
7139
|
-
* A question, panel, page, or survey for which this event is raised.
|
7178
|
+
* A survey element (question, panel, page, or survey) or a theme JSON schema for which this event is raised.
|
7140
7179
|
*/
|
7141
7180
|
element: Base;
|
7181
|
+
/**
|
7182
|
+
* The type of the element passed as the `options.element` parameter.\
|
7183
|
+
* Possible values: `"theme"`, `"header"`, or any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method.
|
7184
|
+
*/
|
7185
|
+
elementType: String;
|
7186
|
+
/**
|
7187
|
+
* The name of the survey element property or theme property for which files are being selected.
|
7188
|
+
*/
|
7189
|
+
propertyName: String;
|
7142
7190
|
/**
|
7143
7191
|
* A choice item for which the event is raised. This parameter has a value only when the dialog window is opened to select images for an [Image Picker](https://surveyjs.io/form-library/documentation/api-reference/image-picker-question-model) question.
|
7144
7192
|
*/
|
@@ -7347,6 +7395,24 @@ declare module "survey-events-api" {
|
|
7347
7395
|
*/
|
7348
7396
|
allow: boolean;
|
7349
7397
|
}
|
7398
|
+
export interface MatrixDetailPanelVisibleChangedEvent extends MatrixDropdownQuestionEventMixin {
|
7399
|
+
/**
|
7400
|
+
* A matrix row to which the detail section belongs.
|
7401
|
+
*/
|
7402
|
+
row: MatrixDropdownRowModelBase;
|
7403
|
+
/**
|
7404
|
+
* A zero-based row index.
|
7405
|
+
*/
|
7406
|
+
rowIndex: number;
|
7407
|
+
/**
|
7408
|
+
* A [PanelModel](https://surveyjs.io/form-library/documentation/panelmodel) that represents the detail section.
|
7409
|
+
*/
|
7410
|
+
detailPanel: PanelModel;
|
7411
|
+
/**
|
7412
|
+
* Indicates whether the detail section is visible now.
|
7413
|
+
*/
|
7414
|
+
visible: boolean;
|
7415
|
+
}
|
7350
7416
|
export interface MatrixCellCreatingBaseEvent extends MatrixDropdownQuestionEventMixin {
|
7351
7417
|
/**
|
7352
7418
|
* A [matrix column](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) to which the cell belongs.
|
@@ -7845,7 +7911,7 @@ declare module "surveytimer" {
|
|
7845
7911
|
export var surveyTimerFunctions: {
|
7846
7912
|
setTimeout: (func: () => any) => number;
|
7847
7913
|
clearTimeout: (timerId: number) => void;
|
7848
|
-
safeTimeOut: (func: () => any, delay: number) => number;
|
7914
|
+
safeTimeOut: (func: () => any, delay: number) => number | any;
|
7849
7915
|
};
|
7850
7916
|
export class SurveyTimer {
|
7851
7917
|
private static instanceValue;
|
@@ -8064,12 +8130,76 @@ declare module "question_textbase" {
|
|
8064
8130
|
onKeyDownPreprocess: (event: any) => void;
|
8065
8131
|
}
|
8066
8132
|
}
|
8133
|
+
declare module "mask/mask_utils" {
|
8134
|
+
export var numberDefinition: RegExp;
|
8135
|
+
export interface IMaskedInputResult {
|
8136
|
+
value: string;
|
8137
|
+
caretPosition: number;
|
8138
|
+
cancelPreventDefault?: boolean;
|
8139
|
+
}
|
8140
|
+
export interface ITextInputParams {
|
8141
|
+
prevValue: string;
|
8142
|
+
selectionStart: number;
|
8143
|
+
selectionEnd: number;
|
8144
|
+
insertedChars: string | null;
|
8145
|
+
inputDirection?: "forward" | "backward";
|
8146
|
+
}
|
8147
|
+
export interface IInputMask {
|
8148
|
+
getMaskedValue(src: any): string;
|
8149
|
+
getUnmaskedValue(src: string): any;
|
8150
|
+
processInput(args: ITextInputParams): IMaskedInputResult;
|
8151
|
+
}
|
8152
|
+
}
|
8153
|
+
declare module "mask/mask_base" {
|
8154
|
+
import { Base } from "base";
|
8155
|
+
import { IInputMask, IMaskedInputResult, ITextInputParams } from "mask/mask_utils";
|
8156
|
+
/**
|
8157
|
+
* A base class for classes that implement input masks:
|
8158
|
+
*
|
8159
|
+
* - [`InputMaskNumeric`](https://surveyjs.io/form-library/documentation/inputmasknumeric)
|
8160
|
+
* - [`InputMaskCurrency`](https://surveyjs.io/form-library/documentation/inputmaskcurrency)
|
8161
|
+
* - [`InputMaskDateTime`](https://surveyjs.io/form-library/documentation/inputmaskdatetime)
|
8162
|
+
* - [`InputMaskPattern`](https://surveyjs.io/form-library/documentation/inputmaskpattern)
|
8163
|
+
*/
|
8164
|
+
export class InputMaskBase extends Base implements IInputMask {
|
8165
|
+
/**
|
8166
|
+
* Specifies whether to store the question value with an applied mask in survey results.
|
8167
|
+
*
|
8168
|
+
* Default value: `false`
|
8169
|
+
*/
|
8170
|
+
saveMaskedValue: boolean;
|
8171
|
+
getType(): string;
|
8172
|
+
setData(json: any): void;
|
8173
|
+
getData(): any;
|
8174
|
+
processInput(args: ITextInputParams): IMaskedInputResult;
|
8175
|
+
getUnmaskedValue(src: string): any;
|
8176
|
+
getMaskedValue(src: any): string;
|
8177
|
+
}
|
8178
|
+
}
|
8179
|
+
declare module "mask/input_element_adapter" {
|
8180
|
+
import { InputMaskBase } from "mask/mask_base";
|
8181
|
+
import { ITextInputParams } from "mask/mask_utils";
|
8182
|
+
export class InputElementAdapter {
|
8183
|
+
private inputMaskInstance;
|
8184
|
+
private inputElement;
|
8185
|
+
private prevUnmaskedValue;
|
8186
|
+
constructor(inputMaskInstance: InputMaskBase, inputElement: HTMLInputElement, value?: string);
|
8187
|
+
inputMaskInstancePropertyChangedHandler: (sender: any, options: any) => void;
|
8188
|
+
beforeInputHandler: (event: any) => void;
|
8189
|
+
createArgs(event: any): ITextInputParams;
|
8190
|
+
addInputEventListener(): void;
|
8191
|
+
removeInputEventListener(): void;
|
8192
|
+
dispose(): void;
|
8193
|
+
}
|
8194
|
+
}
|
8067
8195
|
declare module "question_text" {
|
8068
8196
|
import { LocalizableString, LocalizableStrings } from "localizablestring";
|
8069
8197
|
import { HashTable } from "helpers";
|
8070
8198
|
import { SurveyError } from "survey-error";
|
8071
8199
|
import { QuestionTextBase } from "question_textbase";
|
8072
8200
|
import { CssClassBuilder } from "utils/cssClassBuilder";
|
8201
|
+
import { InputMaskBase } from "mask/mask_base";
|
8202
|
+
import { IInputMask } from "mask/mask_utils";
|
8073
8203
|
/**
|
8074
8204
|
* A class that describes the Single-Line Input question type.
|
8075
8205
|
*
|
@@ -8079,6 +8209,45 @@ declare module "question_text" {
|
|
8079
8209
|
private locDataListValue;
|
8080
8210
|
private minValueRunner;
|
8081
8211
|
private maxValueRunner;
|
8212
|
+
private maskInputAdapter;
|
8213
|
+
private createMaskAdapter;
|
8214
|
+
private deleteMaskAdapter;
|
8215
|
+
private updateMaskAdapter;
|
8216
|
+
onSetMaskType(newValue: string): void;
|
8217
|
+
/**
|
8218
|
+
* Specifies the type of a mask applied to the input.
|
8219
|
+
*
|
8220
|
+
* Possible values:
|
8221
|
+
*
|
8222
|
+
* - `"none"` (default)
|
8223
|
+
* - `"numeric"`
|
8224
|
+
* - `"currency"`
|
8225
|
+
* - `"datetime"`
|
8226
|
+
* - `"pattern"`
|
8227
|
+
*
|
8228
|
+
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
8229
|
+
* @see maskSettings
|
8230
|
+
*/
|
8231
|
+
maskType: string;
|
8232
|
+
get maskTypeIsEmpty(): boolean;
|
8233
|
+
/**
|
8234
|
+
* An object with properties that configure the mask applied to the input.
|
8235
|
+
*
|
8236
|
+
* Available properties depend on the specified [`maskType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#maskType) and belong to corresponding classes. Refer to the class APIs for a full list of properties:
|
8237
|
+
*
|
8238
|
+
* | `maskType` | Class |
|
8239
|
+
* | ---------- | ----- |
|
8240
|
+
* | `"numeric"` | [`InputMaskNumeric`](https://surveyjs.io/form-library/documentation/api-reference/inputmasknumeric) |
|
8241
|
+
* | `"currency"` | [`InputMaskCurrency`](https://surveyjs.io/form-library/documentation/api-reference/inputmaskcurrency) |
|
8242
|
+
* | `"datetime"` | [`InputMaskDateTime`](https://surveyjs.io/form-library/documentation/api-reference/inputmaskdatetime) |
|
8243
|
+
* | `"pattern"` | [`InputMaskPattern`](https://surveyjs.io/form-library/documentation/api-reference/inputmaskpattern) |
|
8244
|
+
*
|
8245
|
+
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
8246
|
+
*/
|
8247
|
+
get maskSettings(): InputMaskBase;
|
8248
|
+
set maskSettings(val: InputMaskBase);
|
8249
|
+
private setNewMaskSettingsProperty;
|
8250
|
+
protected createMaskSettings(): InputMaskBase;
|
8082
8251
|
constructor(name: string);
|
8083
8252
|
protected isTextValue(): boolean;
|
8084
8253
|
getType(): string;
|
@@ -8155,6 +8324,12 @@ declare module "question_text" {
|
|
8155
8324
|
* @see max
|
8156
8325
|
*/
|
8157
8326
|
get isMinMaxType(): boolean;
|
8327
|
+
_inputValue: string;
|
8328
|
+
get maskInstance(): IInputMask;
|
8329
|
+
get inputValue(): string;
|
8330
|
+
set inputValue(val: string);
|
8331
|
+
protected onChangeQuestionValue(newValue: any): void;
|
8332
|
+
private updateInputValue;
|
8158
8333
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
8159
8334
|
protected canSetValueToSurvey(): boolean;
|
8160
8335
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
@@ -8194,6 +8369,8 @@ declare module "question_text" {
|
|
8194
8369
|
onChange: (event: any) => void;
|
8195
8370
|
onBlur: (event: any) => void;
|
8196
8371
|
onFocus: (event: any) => void;
|
8372
|
+
afterRenderQuestionElement(el: HTMLElement): void;
|
8373
|
+
beforeDestroyQuestionElement(el: HTMLElement): void;
|
8197
8374
|
}
|
8198
8375
|
export function isMinMaxType(obj: any): boolean;
|
8199
8376
|
}
|
@@ -8678,7 +8855,7 @@ declare module "survey" {
|
|
8678
8855
|
import { ActionContainer } from "actions/container";
|
8679
8856
|
import { QuestionPanelDynamicModel } from "question_paneldynamic";
|
8680
8857
|
import { Notifier } from "notifier";
|
8681
|
-
import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, TextRenderAsEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderHeaderEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, DynamicPanelCurrentIndexChangedEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ChoicesSearchEvent, OpenFileChooserEvent } from "survey-events-api";
|
8858
|
+
import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, TextRenderAsEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderHeaderEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixDetailPanelVisibleChangedEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, DynamicPanelCurrentIndexChangedEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ChoicesSearchEvent, OpenFileChooserEvent } from "survey-events-api";
|
8682
8859
|
import { QuestionMatrixDropdownModelBase } from "question_matrixdropdownbase";
|
8683
8860
|
import { QuestionMatrixDynamicModel } from "question_matrixdynamic";
|
8684
8861
|
import { QuestionFileModel } from "question_file";
|
@@ -8823,7 +9000,7 @@ declare module "survey" {
|
|
8823
9000
|
* Refer to the following help topic for information on how to implement conditional visibility: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#conditional-visibility).
|
8824
9001
|
*/
|
8825
9002
|
onQuestionVisibleChanged: EventBase<SurveyModel, QuestionVisibleChangedEvent>;
|
8826
|
-
onVisibleChanged: EventBase<SurveyModel,
|
9003
|
+
onVisibleChanged: EventBase<SurveyModel, any>;
|
8827
9004
|
/**
|
8828
9005
|
* An event that is raised after page visibility is changed.
|
8829
9006
|
*
|
@@ -8833,7 +9010,7 @@ declare module "survey" {
|
|
8833
9010
|
*/
|
8834
9011
|
onPageVisibleChanged: EventBase<SurveyModel, PageVisibleChangedEvent>;
|
8835
9012
|
/**
|
8836
|
-
* An event that is raised after
|
9013
|
+
* An event that is raised after panel visibility is changed.
|
8837
9014
|
*
|
8838
9015
|
* For information on event handler parameters, refer to descriptions within the interface.
|
8839
9016
|
*
|
@@ -9228,6 +9405,10 @@ declare module "survey" {
|
|
9228
9405
|
* This event is obsolete. Use the [`onMatrixRenderRemoveButton`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRenderRemoveButton) event instead.
|
9229
9406
|
*/
|
9230
9407
|
onMatrixAllowRemoveRow: EventBase<SurveyModel, MatrixAllowRemoveRowEvent>;
|
9408
|
+
/**
|
9409
|
+
* An event that is raised after the visibility of an [expandable detail section](https://surveyjs.io/form-library/examples/add-expandable-details-section-under-matrix-rows/) is changed. This event can be raised for [Multi-Select](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list) and [Dynamic Matrix](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model) questions.
|
9410
|
+
*/
|
9411
|
+
onMatrixDetailPanelVisibleChanged: EventBase<SurveyModel, MatrixDetailPanelVisibleChangedEvent>;
|
9231
9412
|
/**
|
9232
9413
|
* An event that is raised before a cell in a [Multi-Select Matrix](https://surveyjs.io/form-library/examples/questiontype-matrixdropdown/) or [Dynamic Matrix](https://surveyjs.io/form-library/examples/questiontype-matrixdynamic/) is created. Use this event to change the type of individual matrix cells.
|
9233
9414
|
* @see onAfterRenderMatrixCell
|
@@ -9432,13 +9613,12 @@ declare module "survey" {
|
|
9432
9613
|
/**
|
9433
9614
|
* Specifies whether to enable lazy rendering.
|
9434
9615
|
*
|
9435
|
-
* In default mode, a survey renders the entire current page. With lazy rendering, the survey renders the page gradually as a user scrolls it. This helps reduce survey startup time and
|
9616
|
+
* In default mode, a survey renders the entire current page. With lazy rendering, the survey renders the page gradually as a user scrolls it. This helps reduce survey startup time and optimizes large surveys for low-end devices.
|
9436
9617
|
*
|
9437
9618
|
* Default value: `false`
|
9438
9619
|
*
|
9439
9620
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-lazy/ (linkStyle))
|
9440
|
-
*
|
9441
|
-
* > This is an experimental feature that may not work properly in certain cases.
|
9621
|
+
* @see [settings.lazyRender](https://surveyjs.io/form-library/documentation/api-reference/settings#lazyRender)
|
9442
9622
|
*/
|
9443
9623
|
get lazyRendering(): boolean;
|
9444
9624
|
set lazyRendering(val: boolean);
|
@@ -10095,7 +10275,7 @@ declare module "survey" {
|
|
10095
10275
|
* - `"belowHeader"` - Displays the progress bar below the survey header.
|
10096
10276
|
* - `"bottom"` - Displays the progress bar below survey content.
|
10097
10277
|
* - `"topBottom"` - Displays the progress bar above and below survey content.
|
10098
|
-
* - `"auto"` -
|
10278
|
+
* - `"auto"` - Displays the progress bar below the survey header if the header has a [background image](https://surveyjs.io/form-library/documentation/api-reference/iheader#backgroundImage) or color. Otherwise, the progress bar is displayed above the header.
|
10099
10279
|
* - `"top"` - *(Obsolete)* Use the `"aboveHeader"` or `"belowHeader"` property value instead.
|
10100
10280
|
* - `"both"` - *(Obsolete)* Use the `"topBottom"` property value instead.
|
10101
10281
|
*
|
@@ -10664,10 +10844,10 @@ declare module "survey" {
|
|
10664
10844
|
private onShowingPreviewChanged;
|
10665
10845
|
private changeCurrentPageFromPreview;
|
10666
10846
|
private originalPages;
|
10667
|
-
protected onQuestionsOnPageModeChanged(oldValue: string): void;
|
10847
|
+
protected onQuestionsOnPageModeChanged(oldValue: string, isFirstLoad?: boolean): void;
|
10668
10848
|
private restoreOriginalPages;
|
10669
10849
|
private getPageStartIndex;
|
10670
|
-
private
|
10850
|
+
private isLockingUpdateOnPageModes;
|
10671
10851
|
private setupPagesForPageModes;
|
10672
10852
|
private createPagesForQuestionOnPageMode;
|
10673
10853
|
private createSinglePage;
|
@@ -10812,6 +10992,7 @@ declare module "survey" {
|
|
10812
10992
|
matrixRowRemoved(question: QuestionMatrixDynamicModel, rowIndex: number, row: any): void;
|
10813
10993
|
matrixRowRemoving(question: QuestionMatrixDynamicModel, rowIndex: number, row: any): boolean;
|
10814
10994
|
matrixAllowRemoveRow(question: QuestionMatrixDynamicModel, rowIndex: number, row: any): boolean;
|
10995
|
+
matrixDetailPanelVisibleChanged(question: QuestionMatrixDropdownModelBase, rowIndex: number, row: any, visible: boolean): void;
|
10815
10996
|
matrixCellCreating(question: QuestionMatrixDropdownModelBase, options: any): void;
|
10816
10997
|
matrixCellCreated(question: QuestionMatrixDropdownModelBase, options: any): void;
|
10817
10998
|
matrixAfterCellRender(question: QuestionMatrixDropdownModelBase, options: any): void;
|
@@ -10844,8 +11025,10 @@ declare module "survey" {
|
|
10844
11025
|
* @see onUploadFile
|
10845
11026
|
*/
|
10846
11027
|
chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void, context?: {
|
10847
|
-
element:
|
11028
|
+
element: Base;
|
10848
11029
|
item?: any;
|
11030
|
+
elementType?: string;
|
11031
|
+
propertyName?: string;
|
10849
11032
|
}): void;
|
10850
11033
|
/**
|
10851
11034
|
* Uploads files to a server.
|
@@ -11577,6 +11760,7 @@ declare module "survey-element" {
|
|
11577
11760
|
isDragMe: boolean;
|
11578
11761
|
readOnlyChangedCallback: () => void;
|
11579
11762
|
static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean): boolean;
|
11763
|
+
private static ScrollElementToViewCore;
|
11580
11764
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
11581
11765
|
static FocusElement(elementId: string): boolean;
|
11582
11766
|
private static focusElementCore;
|
@@ -13038,6 +13222,7 @@ declare module "martixBase" {
|
|
13038
13222
|
protected clearInvisibleValuesInRows(): void;
|
13039
13223
|
private restoreNewVisibleRowsValues;
|
13040
13224
|
needResponsiveWidth(): boolean;
|
13225
|
+
protected get columnsAutoWidth(): boolean;
|
13041
13226
|
getTableCss(): string;
|
13042
13227
|
/**
|
13043
13228
|
* Aligns matrix cell content in the vertical direction.
|
@@ -13725,6 +13910,7 @@ declare module "base-interfaces" {
|
|
13725
13910
|
matrixRowRemoved(question: IQuestion, rowIndex: number, row: any): any;
|
13726
13911
|
matrixRowRemoving(question: IQuestion, rowIndex: number, row: any): boolean;
|
13727
13912
|
matrixAllowRemoveRow(question: IQuestion, rowIndex: number, row: any): boolean;
|
13913
|
+
matrixDetailPanelVisibleChanged(question: IQuestion, rowIndex: number, row: any, visible: boolean): void;
|
13728
13914
|
matrixCellCreating(question: IQuestion, options: any): any;
|
13729
13915
|
matrixCellCreated(question: IQuestion, options: any): any;
|
13730
13916
|
matrixAfterCellRender(question: IQuestion, options: any): any;
|
@@ -13747,8 +13933,10 @@ declare module "base-interfaces" {
|
|
13747
13933
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
13748
13934
|
processPopupVisiblityChanged(question: IQuestion, popupModel: PopupModel, visible: boolean): void;
|
13749
13935
|
chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void, context?: {
|
13750
|
-
element:
|
13936
|
+
element: Base;
|
13751
13937
|
item?: any;
|
13938
|
+
elementType?: string;
|
13939
|
+
propertyName?: string;
|
13752
13940
|
}): void;
|
13753
13941
|
}
|
13754
13942
|
export interface ISurveyImpl {
|
@@ -14862,7 +15050,7 @@ declare module "settings" {
|
|
14862
15050
|
* Nested properties:
|
14863
15051
|
*
|
14864
15052
|
* - `useLocalTimeZone`: `boolean`\
|
14865
|
-
* Disable this property if you want internal SurveyJS functions to use methods that work with UTC date and time (`setUTCDate()` `setUTCHours()`, etc.) instead of methods that work with local date and time (`setYear`, `setHours()`, etc.). Default value: `true`.
|
15053
|
+
* Disable this property if you want internal SurveyJS functions to use methods that work with UTC date and time (`setUTCDate()` `setUTCHours()`, etc.) instead of methods that work with local date and time (`setYear()`, `setHours()`, etc.). Default value: `true`.
|
14866
15054
|
*
|
14867
15055
|
* - `defaultLocaleName`: `string`\
|
14868
15056
|
* A property key that stores a translation for the default locale. Default value: `"default"`.
|
@@ -14988,7 +15176,8 @@ declare module "settings" {
|
|
14988
15176
|
* - `enabled`: `boolean`\
|
14989
15177
|
* Specifies whether to add questions to the DOM only when they get into the viewport. Default value: `false`.
|
14990
15178
|
*
|
14991
|
-
*
|
15179
|
+
* [View Demo](https://surveyjs.io/form-library/examples/survey-lazy/ (linkStyle))
|
15180
|
+
* @see [SurveyModel.lazyRendering](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#lazyRendering)
|
14992
15181
|
*/
|
14993
15182
|
lazyRender: {
|
14994
15183
|
enabled: boolean;
|
@@ -15370,6 +15559,27 @@ declare module "settings" {
|
|
15370
15559
|
dataList: string[];
|
15371
15560
|
};
|
15372
15561
|
legacyProgressBarView: boolean;
|
15562
|
+
/**
|
15563
|
+
* An object with properties that configure input masks.
|
15564
|
+
*
|
15565
|
+
* Nested properties:
|
15566
|
+
*
|
15567
|
+
* - `patternPlaceholderChar`: `string`\
|
15568
|
+
* A symbol used as a placeholder for characters to be entered in [pattern masks](https://surveyjs.io/form-library/documentation/api-reference/inputmaskpattern). Default value: `"_"`.
|
15569
|
+
*
|
15570
|
+
* - `patternEscapeChar`: `string`\
|
15571
|
+
* A symbol used to insert literal representations of special characters in [pattern masks](https://surveyjs.io/form-library/documentation/api-reference/inputmaskpattern). Default value: `"\\"`.
|
15572
|
+
*
|
15573
|
+
* - `patternDefinitions`: `<{ [key: string]: RegExp }>`\
|
15574
|
+
* An object that maps placeholder symbols to regular expressions in [pattern masks](https://surveyjs.io/form-library/documentation/api-reference/inputmaskpattern). Default value: `{ "9": /[0-9]/, "a": /[a-zA-Z]/, "#": /[a-zA-Z0-9]/ }`.
|
15575
|
+
*/
|
15576
|
+
maskSettings: {
|
15577
|
+
patternPlaceholderChar: string;
|
15578
|
+
patternEscapeChar: string;
|
15579
|
+
patternDefinitions: {
|
15580
|
+
[key: string]: RegExp;
|
15581
|
+
};
|
15582
|
+
};
|
15373
15583
|
};
|
15374
15584
|
}
|
15375
15585
|
declare module "question_matrixdropdown" {
|
@@ -15454,6 +15664,7 @@ declare module "dropdownListModel" {
|
|
15454
15664
|
private updatePopupFocusFirstInputSelector;
|
15455
15665
|
protected createPopup(): void;
|
15456
15666
|
private setFilterStringToListModel;
|
15667
|
+
private setTextWrapEnabled;
|
15457
15668
|
protected popupRecalculatePosition(isResetHeight: boolean): void;
|
15458
15669
|
protected onHidePopup(): void;
|
15459
15670
|
protected getAvailableItems(): Array<ItemValue>;
|
@@ -15620,6 +15831,14 @@ declare module "question_dropdown" {
|
|
15620
15831
|
* @see [SurveyModel.onChoicesSearch](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onChoicesSearch)
|
15621
15832
|
*/
|
15622
15833
|
searchMode: "contains" | "startsWith";
|
15834
|
+
/**
|
15835
|
+
* Specifies whether to wrap long texts in choice options onto a new line.
|
15836
|
+
*
|
15837
|
+
* Default value: `true`
|
15838
|
+
*
|
15839
|
+
* Disable this property if you want the texts to be truncated with ellipsis.
|
15840
|
+
*/
|
15841
|
+
textWrapEnabled: boolean;
|
15623
15842
|
inputHasValue: boolean;
|
15624
15843
|
readOnlyText: string;
|
15625
15844
|
/**
|
@@ -16180,6 +16399,7 @@ declare module "question_tagbox" {
|
|
16180
16399
|
* Specifies whether to close the drop-down menu after a user selects a value.
|
16181
16400
|
*/
|
16182
16401
|
closeOnSelect: number;
|
16402
|
+
textWrapEnabled: boolean;
|
16183
16403
|
/**
|
16184
16404
|
* A text displayed in the input field when it doesn't have a value.
|
16185
16405
|
*/
|
@@ -16612,6 +16832,7 @@ declare module "question_html" {
|
|
16612
16832
|
get processedHtml(): string;
|
16613
16833
|
private processHtml;
|
16614
16834
|
get isNewA11yStructure(): boolean;
|
16835
|
+
get renderCssRoot(): string;
|
16615
16836
|
}
|
16616
16837
|
}
|
16617
16838
|
declare module "question_radiogroup" {
|
@@ -17376,6 +17597,277 @@ declare module "question_buttongroup" {
|
|
17376
17597
|
onChange(): void;
|
17377
17598
|
}
|
17378
17599
|
}
|
17600
|
+
declare module "mask/mask_pattern" {
|
17601
|
+
import { InputMaskBase } from "mask/mask_base";
|
17602
|
+
import { IMaskedInputResult, ITextInputParams } from "mask/mask_utils";
|
17603
|
+
import { ILoadFromJSONOptions } from "base-interfaces";
|
17604
|
+
export interface IMaskLiteral {
|
17605
|
+
type: "const" | "regex" | "fixed";
|
17606
|
+
value: any;
|
17607
|
+
}
|
17608
|
+
export function getLiterals(pattern: string): Array<IMaskLiteral>;
|
17609
|
+
export function getMaskedValueByPattern(src: string, pattern: string | Array<IMaskLiteral>, matchWholeMask: boolean): string;
|
17610
|
+
export function getUnmaskedValueByPattern(str: string, pattern: string | Array<IMaskLiteral>, matchWholeMask: boolean, skipFixedChar?: boolean): string;
|
17611
|
+
/**
|
17612
|
+
* A class that describes an input mask of the `"pattern"` [`maskType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#maskType).
|
17613
|
+
*
|
17614
|
+
* The following code shows how to specify the properties of this class within a survey JSON schema:
|
17615
|
+
*
|
17616
|
+
* ```js
|
17617
|
+
* const surveyJson = {
|
17618
|
+
* "elements": [{
|
17619
|
+
* "name": "textquestion1"
|
17620
|
+
* "type": "text",
|
17621
|
+
* "maskType": "pattern",
|
17622
|
+
* "maskSettings": {
|
17623
|
+
* // Specify the properties of a pattern input mask here
|
17624
|
+
* }
|
17625
|
+
* }]
|
17626
|
+
* }
|
17627
|
+
* ```
|
17628
|
+
*
|
17629
|
+
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
17630
|
+
*/
|
17631
|
+
export class InputMaskPattern extends InputMaskBase {
|
17632
|
+
private literals;
|
17633
|
+
/**
|
17634
|
+
* A pattern for the input value.
|
17635
|
+
*
|
17636
|
+
* If you set the [`maskType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#maskType) to `"pattern"`, the mask can contain string literals and the following placeholders:
|
17637
|
+
*
|
17638
|
+
* - `9` - A digit.
|
17639
|
+
* - `a` - An upper- or lower-case letter.
|
17640
|
+
* - `#` - A digit or an upper- or lower-case letter.
|
17641
|
+
*
|
17642
|
+
* Use backslash `\` to escape a character.
|
17643
|
+
*
|
17644
|
+
* Example: `+1(999)-999-99-99`
|
17645
|
+
*
|
17646
|
+
* If you set the [`maskType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#maskType) to `"datetime"`, the mask can contain separator characters and the following placeholders:
|
17647
|
+
*
|
17648
|
+
* - `m` - Month number.
|
17649
|
+
* - `mm` - Month number, with leading zero for single-digit values.
|
17650
|
+
* - `d` - Day of the month.
|
17651
|
+
* - `dd` - Day of the month, with leading zero for single-digit values.
|
17652
|
+
* - `yy` - Last two digits of the year.
|
17653
|
+
* - `yyyy` - A four-digit year.
|
17654
|
+
*
|
17655
|
+
* Example: `mm/dd/yyyy`
|
17656
|
+
*
|
17657
|
+
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
17658
|
+
* @see [settings.maskSettings](https://surveyjs.io/form-library/documentation/api-reference/settings#maskSettings)
|
17659
|
+
*/
|
17660
|
+
pattern: string;
|
17661
|
+
protected updateLiterals(): void;
|
17662
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
17663
|
+
getType(): string;
|
17664
|
+
fromJSON(json: any, options?: ILoadFromJSONOptions): void;
|
17665
|
+
_getMaskedValue(src: string, matchWholeMask?: boolean): string;
|
17666
|
+
_getUnmaskedValue(src: string, matchWholeMask?: boolean): string;
|
17667
|
+
processInput(args: ITextInputParams): IMaskedInputResult;
|
17668
|
+
getMaskedValue(src: any): string;
|
17669
|
+
getUnmaskedValue(src: string): any;
|
17670
|
+
}
|
17671
|
+
}
|
17672
|
+
declare module "mask/mask_numeric" {
|
17673
|
+
import { InputMaskBase } from "mask/mask_base";
|
17674
|
+
import { IMaskedInputResult, ITextInputParams } from "mask/mask_utils";
|
17675
|
+
interface INumericalComposition {
|
17676
|
+
integralPart: string;
|
17677
|
+
fractionalPart: string;
|
17678
|
+
isNegative?: boolean;
|
17679
|
+
hasDecimalSeparator?: boolean;
|
17680
|
+
}
|
17681
|
+
export function splitString(str: string, reverse?: boolean, n?: number): Array<string>;
|
17682
|
+
/**
|
17683
|
+
* A class that describes an input mask of the `"numeric"` [`maskType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#maskType).
|
17684
|
+
*
|
17685
|
+
* The following code shows how to specify the properties of this class within a survey JSON schema:
|
17686
|
+
*
|
17687
|
+
* ```js
|
17688
|
+
* const surveyJson = {
|
17689
|
+
* "elements": [{
|
17690
|
+
* "name": "textquestion1"
|
17691
|
+
* "type": "text",
|
17692
|
+
* "maskType": "numeric",
|
17693
|
+
* "maskSettings": {
|
17694
|
+
* // Specify the properties of a numeric input mask here
|
17695
|
+
* }
|
17696
|
+
* }]
|
17697
|
+
* }
|
17698
|
+
* ```
|
17699
|
+
*
|
17700
|
+
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
17701
|
+
*/
|
17702
|
+
export class InputMaskNumeric extends InputMaskBase {
|
17703
|
+
/**
|
17704
|
+
* Specifies whether respondents can enter negative values.
|
17705
|
+
*
|
17706
|
+
* Default value: `true`
|
17707
|
+
* @see min
|
17708
|
+
* @see max
|
17709
|
+
*/
|
17710
|
+
allowNegativeValues: boolean;
|
17711
|
+
/**
|
17712
|
+
* A symbol used to separate the fractional part from the integer part of a displayed number.
|
17713
|
+
*
|
17714
|
+
* Default value: `"."`
|
17715
|
+
* @see precision
|
17716
|
+
* @see thousandsSeparator
|
17717
|
+
*/
|
17718
|
+
decimalSeparator: string;
|
17719
|
+
/**
|
17720
|
+
* Limits how many digits to retain after the decimal point for a displayed number.
|
17721
|
+
*
|
17722
|
+
* Default value: 2
|
17723
|
+
*
|
17724
|
+
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
17725
|
+
* @see decimalSeparator
|
17726
|
+
*/
|
17727
|
+
precision: number;
|
17728
|
+
/**
|
17729
|
+
* A symbol used to separate the digits of a large number into groups of three.
|
17730
|
+
*
|
17731
|
+
* Default value: `","`
|
17732
|
+
* @see decimalSeparator
|
17733
|
+
*/
|
17734
|
+
thousandsSeparator: string;
|
17735
|
+
/**
|
17736
|
+
* A minimum value that respondents can enter.
|
17737
|
+
* @see max
|
17738
|
+
* @see allowNegativeValues
|
17739
|
+
*/
|
17740
|
+
min: number;
|
17741
|
+
/**
|
17742
|
+
* A maximum value that respondents can enter.
|
17743
|
+
* @see min
|
17744
|
+
* @see allowNegativeValues
|
17745
|
+
*/
|
17746
|
+
max: number;
|
17747
|
+
private calccaretPosition;
|
17748
|
+
displayNumber(parsedNumber: INumericalComposition, insertThousandsSeparator?: boolean, matchWholeMask?: boolean): string;
|
17749
|
+
convertNumber(parsedNumber: INumericalComposition): number;
|
17750
|
+
validateNumber(number: INumericalComposition): boolean;
|
17751
|
+
parseNumber(src: string | number): INumericalComposition;
|
17752
|
+
getNumberMaskedValue(src: string | number, matchWholeMask?: boolean): string;
|
17753
|
+
private getNumberUnmaskedValue;
|
17754
|
+
getMaskedValue(src: any): string;
|
17755
|
+
getUnmaskedValue(src: string): any;
|
17756
|
+
processInput(args: ITextInputParams): IMaskedInputResult;
|
17757
|
+
getType(): string;
|
17758
|
+
protected isPropertyEmpty(value: any): boolean;
|
17759
|
+
}
|
17760
|
+
}
|
17761
|
+
declare module "mask/mask_datetime" {
|
17762
|
+
import { InputMaskPattern } from "mask/mask_pattern";
|
17763
|
+
import { IMaskedInputResult, ITextInputParams } from "mask/mask_utils";
|
17764
|
+
export interface IDateTimeMaskLexem {
|
17765
|
+
type: "month" | "day" | "year" | "separator";
|
17766
|
+
value: any;
|
17767
|
+
count: number;
|
17768
|
+
maxCount: number;
|
17769
|
+
}
|
17770
|
+
export function getDateTimeLexems(pattern: string): Array<IDateTimeMaskLexem>;
|
17771
|
+
/**
|
17772
|
+
* A class that describes an input mask of the `"datetime"` [`maskType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#maskType).
|
17773
|
+
*
|
17774
|
+
* The following code shows how to specify the properties of this class within a survey JSON schema:
|
17775
|
+
*
|
17776
|
+
* ```js
|
17777
|
+
* const surveyJson = {
|
17778
|
+
* "elements": [{
|
17779
|
+
* "name": "textquestion1"
|
17780
|
+
* "type": "text",
|
17781
|
+
* "maskType": "datetime",
|
17782
|
+
* "maskSettings": {
|
17783
|
+
* // Specify the properties of a date-time input mask here
|
17784
|
+
* }
|
17785
|
+
* }]
|
17786
|
+
* }
|
17787
|
+
* ```
|
17788
|
+
*
|
17789
|
+
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
17790
|
+
*/
|
17791
|
+
export class InputMaskDateTime extends InputMaskPattern {
|
17792
|
+
private turnOfTheCentury;
|
17793
|
+
private lexems;
|
17794
|
+
private inputDateTimeData;
|
17795
|
+
/**
|
17796
|
+
* A minimum date and time value that respondents can enter.
|
17797
|
+
* @see max
|
17798
|
+
*/
|
17799
|
+
min: string;
|
17800
|
+
/**
|
17801
|
+
* A maximum date and time value that respondents can enter.
|
17802
|
+
* @see min
|
17803
|
+
*/
|
17804
|
+
max: string;
|
17805
|
+
getType(): string;
|
17806
|
+
protected updateLiterals(): void;
|
17807
|
+
private leaveOnlyNumbers;
|
17808
|
+
private getMaskedStrFromISO;
|
17809
|
+
private initInputDateTimeData;
|
17810
|
+
private getISO_8601Format;
|
17811
|
+
private isYearValid;
|
17812
|
+
private isDateValid;
|
17813
|
+
private getPlaceholder;
|
17814
|
+
private updateInputDateTimeData;
|
17815
|
+
private getCorrectDatePartFormat;
|
17816
|
+
private createIDateTimeComposition;
|
17817
|
+
private parseTwoDigitYear;
|
17818
|
+
private getFormatedString;
|
17819
|
+
private setInputDateTimeData;
|
17820
|
+
_getMaskedValue(src: string, matchWholeMask?: boolean): string;
|
17821
|
+
private getPartsOld;
|
17822
|
+
private getParts;
|
17823
|
+
getUnmaskedValue(src: string): any;
|
17824
|
+
getMaskedValue(src: string): string;
|
17825
|
+
processInput(args: ITextInputParams): IMaskedInputResult;
|
17826
|
+
}
|
17827
|
+
}
|
17828
|
+
declare module "mask/mask_currency" {
|
17829
|
+
import { InputMaskNumeric } from "mask/mask_numeric";
|
17830
|
+
import { IMaskedInputResult, ITextInputParams } from "mask/mask_utils";
|
17831
|
+
/**
|
17832
|
+
* A class that describes an input mask of the `"currency"` [`maskType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#maskType).
|
17833
|
+
*
|
17834
|
+
* The following code shows how to specify the properties of this class within a survey JSON schema:
|
17835
|
+
*
|
17836
|
+
* ```js
|
17837
|
+
* const surveyJson = {
|
17838
|
+
* "elements": [{
|
17839
|
+
* "name": "textquestion1"
|
17840
|
+
* "type": "text",
|
17841
|
+
* "maskType": "currency",
|
17842
|
+
* "maskSettings": {
|
17843
|
+
* // Specify the properties of a currency input mask here
|
17844
|
+
* }
|
17845
|
+
* }]
|
17846
|
+
* }
|
17847
|
+
* ```
|
17848
|
+
*
|
17849
|
+
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
17850
|
+
*/
|
17851
|
+
export class InputMaskCurrency extends InputMaskNumeric {
|
17852
|
+
/**
|
17853
|
+
* One or several symbols to be displayed before the currency value.
|
17854
|
+
*
|
17855
|
+
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
17856
|
+
* @see suffix
|
17857
|
+
*/
|
17858
|
+
prefix: string;
|
17859
|
+
/**
|
17860
|
+
* One or several symbols to be displayed after the currency value.
|
17861
|
+
* @see prefix
|
17862
|
+
*/
|
17863
|
+
suffix: string;
|
17864
|
+
getType(): string;
|
17865
|
+
private wrapText;
|
17866
|
+
unwrapInputArgs(args: ITextInputParams): void;
|
17867
|
+
processInput(args: ITextInputParams): IMaskedInputResult;
|
17868
|
+
getMaskedValue(src: any): string;
|
17869
|
+
}
|
17870
|
+
}
|
17379
17871
|
declare module "entries/chunks/model" {
|
17380
17872
|
export var Version: string;
|
17381
17873
|
export var ReleaseDate: string;
|
@@ -17468,6 +17960,11 @@ declare module "entries/chunks/model" {
|
|
17468
17960
|
export { QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue } from "question_buttongroup";
|
17469
17961
|
export { IsMobile, IsTouch, _setIsTouch } from "utils/devices";
|
17470
17962
|
export { confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, chooseFiles, sanitizeEditableContent, IAttachKey2clickOptions } from "utils/utils";
|
17963
|
+
export { InputMaskBase } from "mask/mask_base";
|
17964
|
+
export { InputMaskPattern } from "mask/mask_pattern";
|
17965
|
+
export { InputMaskNumeric } from "mask/mask_numeric";
|
17966
|
+
export { InputMaskDateTime } from "mask/mask_datetime";
|
17967
|
+
export { InputMaskCurrency } from "mask/mask_currency";
|
17471
17968
|
export * from "utils/cssClassBuilder";
|
17472
17969
|
export { surveyCss, defaultV2Css, defaultV2ThemeName } from "defaultCss/defaultV2Css";
|
17473
17970
|
export { DragDropCore } from "dragdrop/core";
|
@@ -25107,6 +25604,7 @@ declare module "react/components/action-bar/action-bar" {
|
|
25107
25604
|
get model(): ActionContainer<Action>;
|
25108
25605
|
componentDidMount(): void;
|
25109
25606
|
componentWillUnmount(): void;
|
25607
|
+
componentDidUpdate(prevProps: IActionBarProps, prevState: any): void;
|
25110
25608
|
protected getStateElement(): Base;
|
25111
25609
|
renderElement(): any;
|
25112
25610
|
renderItems(): JSX.Element[];
|
@@ -25905,6 +26403,8 @@ declare module "react/reactquestion_text" {
|
|
25905
26403
|
constructor(props: any);
|
25906
26404
|
protected renderInput(): JSX.Element;
|
25907
26405
|
protected renderElement(): JSX.Element;
|
26406
|
+
protected setValueCore(newValue: any): void;
|
26407
|
+
protected getValueCore(): any;
|
25908
26408
|
private renderDataList;
|
25909
26409
|
}
|
25910
26410
|
}
|