survey-react 1.11.6 → 1.11.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 +9 -5
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +6 -6
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +6 -6
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +39 -19
- package/survey.react.js +192 -70
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -3050,6 +3050,7 @@ declare module "question_custom" {
|
|
3050
3050
|
indexOf(el: IElement): number;
|
3051
3051
|
ensureRowsVisibility(): void;
|
3052
3052
|
validateContainerOnly(): void;
|
3053
|
+
onQuestionValueChanged(el: IElement): void;
|
3053
3054
|
getQuestionErrorLocation(): string;
|
3054
3055
|
protected getContentDisplayValueCore(keyAsText: boolean, value: any, question: Question): any;
|
3055
3056
|
}
|
@@ -3447,6 +3448,7 @@ declare module "panel" {
|
|
3447
3448
|
*/
|
3448
3449
|
validate(fireCallback?: boolean, focusOnFirstError?: boolean, rec?: any): boolean;
|
3449
3450
|
validateContainerOnly(): void;
|
3451
|
+
onQuestionValueChanged(el: IElement): void;
|
3450
3452
|
private hasErrorsInPanels;
|
3451
3453
|
getErrorCustomText(text: string, error: SurveyError): string;
|
3452
3454
|
private hasRequiredError;
|
@@ -8242,6 +8244,7 @@ declare module "page" {
|
|
8242
8244
|
*/
|
8243
8245
|
get maxTimeToFinish(): number;
|
8244
8246
|
set maxTimeToFinish(val: number);
|
8247
|
+
getMaxTimeToFinish(): number;
|
8245
8248
|
protected onNumChanged(value: number): void;
|
8246
8249
|
protected onVisibleChanged(): void;
|
8247
8250
|
getDragDropInfo(): any;
|
@@ -8334,20 +8337,25 @@ declare module "stylesmanager" {
|
|
8334
8337
|
}
|
8335
8338
|
}
|
8336
8339
|
declare module "surveytimer" {
|
8337
|
-
import {
|
8340
|
+
import { EventBase } from "base";
|
8338
8341
|
export var surveyTimerFunctions: {
|
8339
8342
|
setTimeout: (func: () => any) => number;
|
8340
8343
|
clearTimeout: (timerId: number) => void;
|
8341
8344
|
safeTimeOut: (func: () => any, delay: number) => number | any;
|
8345
|
+
now(): number;
|
8342
8346
|
};
|
8347
|
+
export interface SurveyTimerEvent {
|
8348
|
+
seconds: number;
|
8349
|
+
}
|
8343
8350
|
export class SurveyTimer {
|
8344
8351
|
private static instanceValue;
|
8345
8352
|
static get instance(): SurveyTimer;
|
8346
8353
|
private listenerCounter;
|
8347
8354
|
private timerId;
|
8348
|
-
|
8349
|
-
|
8350
|
-
|
8355
|
+
private prevTimeInMs;
|
8356
|
+
onTimer: EventBase<SurveyTimer, SurveyTimerEvent>;
|
8357
|
+
start(func?: (timer: SurveyTimer, options: SurveyTimerEvent) => void): void;
|
8358
|
+
stop(func?: (timer: SurveyTimer, options: SurveyTimerEvent) => any): void;
|
8351
8359
|
doTimer(): void;
|
8352
8360
|
}
|
8353
8361
|
}
|
@@ -8619,6 +8627,7 @@ declare module "mask/input_element_adapter" {
|
|
8619
8627
|
inputMaskInstancePropertyChangedHandler: (sender: any, options: any) => void;
|
8620
8628
|
clickHandler: (event: any) => void;
|
8621
8629
|
beforeInputHandler: (event: any) => void;
|
8630
|
+
changeHandler: (event: any) => void;
|
8622
8631
|
createArgs(event: any): ITextInputParams;
|
8623
8632
|
addInputEventListener(): void;
|
8624
8633
|
removeInputEventListener(): void;
|
@@ -8766,6 +8775,9 @@ declare module "question_text" {
|
|
8766
8775
|
set inputValue(val: string);
|
8767
8776
|
protected onChangeQuestionValue(newValue: any): void;
|
8768
8777
|
private updateInputValue;
|
8778
|
+
private hasToConvertToUTC;
|
8779
|
+
protected valueForSurveyCore(val: any): any;
|
8780
|
+
protected valueFromDataCore(val: any): any;
|
8769
8781
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
8770
8782
|
protected canSetValueToSurvey(): boolean;
|
8771
8783
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
@@ -8773,6 +8785,7 @@ declare module "question_text" {
|
|
8773
8785
|
private get isValueLessMin();
|
8774
8786
|
private get isValueGreaterMax();
|
8775
8787
|
private get isDateInputType();
|
8788
|
+
private isDateTimeLocaleType;
|
8776
8789
|
private getCalculatedMinMax;
|
8777
8790
|
private setRenderedMinMax;
|
8778
8791
|
/**
|
@@ -9129,6 +9142,7 @@ declare module "question_multipletext" {
|
|
9129
9142
|
indexOf(el: IElement): number;
|
9130
9143
|
ensureRowsVisibility(): void;
|
9131
9144
|
validateContainerOnly(): void;
|
9145
|
+
onQuestionValueChanged(el: IElement): void;
|
9132
9146
|
getItemLabelCss(item: MultipleTextItemModel): string;
|
9133
9147
|
getItemCss(): string;
|
9134
9148
|
getItemTitleCss(): string;
|
@@ -12115,7 +12129,6 @@ declare module "survey" {
|
|
12115
12129
|
*/
|
12116
12130
|
get maxTimeToFinishPage(): number;
|
12117
12131
|
set maxTimeToFinishPage(val: number);
|
12118
|
-
private getPageMaxTimeToFinish;
|
12119
12132
|
private doTimer;
|
12120
12133
|
get inSurvey(): boolean;
|
12121
12134
|
getSurveyData(): ISurveyData;
|
@@ -12200,6 +12213,7 @@ declare module "survey" {
|
|
12200
12213
|
dispose(): void;
|
12201
12214
|
disposeCallback: () => void;
|
12202
12215
|
private onScrollCallback;
|
12216
|
+
_isElementShouldBeSticky(selector: string): boolean;
|
12203
12217
|
onScroll(): void;
|
12204
12218
|
addScrollEventListener(): void;
|
12205
12219
|
removeScrollEventListener(): void;
|
@@ -13271,6 +13285,8 @@ declare module "question" {
|
|
13271
13285
|
getFilteredValue(): any;
|
13272
13286
|
getFilteredName(): any;
|
13273
13287
|
get valueForSurvey(): any;
|
13288
|
+
protected valueForSurveyCore(val: any): any;
|
13289
|
+
protected valueFromDataCore(val: any): any;
|
13274
13290
|
/**
|
13275
13291
|
* Sets the question's `value` and `comment` properties to `undefined`.
|
13276
13292
|
* @see value
|
@@ -14151,6 +14167,7 @@ declare module "question_matrixdropdownbase" {
|
|
14151
14167
|
*/
|
14152
14168
|
get cellType(): string;
|
14153
14169
|
set cellType(val: string);
|
14170
|
+
isSelectCellType(): boolean;
|
14154
14171
|
private updateColumnsCellType;
|
14155
14172
|
private updateColumnsIndexes;
|
14156
14173
|
/**
|
@@ -14457,6 +14474,7 @@ declare module "base-interfaces" {
|
|
14457
14474
|
maxTextLength: number;
|
14458
14475
|
maxOthersLength: number;
|
14459
14476
|
clearValueOnDisableItems: boolean;
|
14477
|
+
maxTimeToFinishPage: number;
|
14460
14478
|
uploadFiles(question: IQuestion, name: string, files: File[], uploadingCallback: (data: any | Array<any>, errors?: any | Array<any>) => any): any;
|
14461
14479
|
downloadFile(question: IQuestion, name: string, content: string, callback: (status: string, data: any) => any): any;
|
14462
14480
|
clearFiles(question: IQuestion, name: string, value: any, fileName: string, clearCallback: (status: string, data: any) => any): any;
|
@@ -14617,6 +14635,7 @@ declare module "base-interfaces" {
|
|
14617
14635
|
elements: Array<IElement>;
|
14618
14636
|
ensureRowsVisibility(): void;
|
14619
14637
|
validateContainerOnly(): void;
|
14638
|
+
onQuestionValueChanged(el: IElement): void;
|
14620
14639
|
}
|
14621
14640
|
export interface IPage extends IPanel, IConditionRunner {
|
14622
14641
|
isStartPage: boolean;
|
@@ -16211,6 +16230,7 @@ declare module "settings" {
|
|
16211
16230
|
[key: string]: RegExp;
|
16212
16231
|
};
|
16213
16232
|
};
|
16233
|
+
storeUtcDates: boolean;
|
16214
16234
|
};
|
16215
16235
|
}
|
16216
16236
|
declare module "question_matrixdropdown" {
|
@@ -17487,16 +17507,16 @@ declare module "question_comment" {
|
|
17487
17507
|
* Default value: `false` (inherited from `SurveyModel`'s [`autoGrowComment`](https://surveyjs.io/form-library/documentation/surveymodel#autoGrowComment) property)
|
17488
17508
|
* @see allowResize
|
17489
17509
|
*/
|
17490
|
-
get autoGrow(): boolean;
|
17491
|
-
set autoGrow(val: boolean);
|
17510
|
+
get autoGrow(): boolean | undefined;
|
17511
|
+
set autoGrow(val: boolean | undefined);
|
17512
|
+
get renderedAutoGrow(): boolean;
|
17492
17513
|
/**
|
17493
|
-
* Specifies whether to display a resize handle for the comment area.
|
17494
17514
|
*
|
17495
17515
|
* Default value: `true` (inherited from `SurveyModel`'s [`allowResizeComment`](https://surveyjs.io/form-library/documentation/surveymodel#allowResizeComment) property)
|
17496
17516
|
* @see autoGrow
|
17497
17517
|
*/
|
17498
|
-
get allowResize(): boolean;
|
17499
|
-
set allowResize(val: boolean);
|
17518
|
+
get allowResize(): boolean | undefined;
|
17519
|
+
set allowResize(val: boolean | undefined);
|
17500
17520
|
get renderedAllowResize(): boolean;
|
17501
17521
|
get resizeStyle(): "none" | "both";
|
17502
17522
|
getType(): string;
|
@@ -27333,6 +27353,15 @@ declare module "react/components/loading-indicator" {
|
|
27333
27353
|
render(): JSX.Element | null;
|
27334
27354
|
}
|
27335
27355
|
}
|
27356
|
+
declare module "react/components/file/file-choose-button" {
|
27357
|
+
import { ReactSurveyElement } from "react/reactquestion_element";
|
27358
|
+
import { QuestionFileModel } from "entries/core";
|
27359
|
+
export class SurveyFileChooseButton extends ReactSurveyElement {
|
27360
|
+
constructor(props: any);
|
27361
|
+
protected get question(): QuestionFileModel;
|
27362
|
+
render(): JSX.Element;
|
27363
|
+
}
|
27364
|
+
}
|
27336
27365
|
declare module "react/reactquestion_file" {
|
27337
27366
|
import { QuestionFileModel } from "entries/core";
|
27338
27367
|
import { SurveyQuestionElementBase } from "react/reactquestion_element";
|
@@ -27348,15 +27377,6 @@ declare module "react/reactquestion_file" {
|
|
27348
27377
|
protected renderVideo(): JSX.Element;
|
27349
27378
|
}
|
27350
27379
|
}
|
27351
|
-
declare module "react/components/file/file-choose-button" {
|
27352
|
-
import { ReactSurveyElement } from "react/reactquestion_element";
|
27353
|
-
import { QuestionFileModel } from "entries/core";
|
27354
|
-
export class SurveyFileChooseButton extends ReactSurveyElement {
|
27355
|
-
constructor(props: any);
|
27356
|
-
protected get question(): QuestionFileModel;
|
27357
|
-
render(): JSX.Element;
|
27358
|
-
}
|
27359
|
-
}
|
27360
27380
|
declare module "react/components/file/file-preview" {
|
27361
27381
|
import { SurveyElementBase } from "react/reactquestion_element";
|
27362
27382
|
import { QuestionFileModel } from "entries/core";
|