survey-react 1.9.32 → 1.9.33
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 +25 -3
- package/defaultV2.min.css +2 -2
- package/modern.css +13 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +13 -2
- package/survey.min.css +2 -2
- package/survey.react.d.ts +46 -7
- package/survey.react.js +143 -20
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Type definition for Survey JavaScript library for React v1.9.
|
2
|
+
* Type definition for Survey JavaScript library for React v1.9.33
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -207,6 +207,7 @@ export interface ISize {
|
|
207
207
|
export interface ISurveyTriggerOwner {
|
208
208
|
getObjects(pages: any, questions: any): Array<any>;
|
209
209
|
setCompleted(): any;
|
210
|
+
triggerExecuted(trigger: Trigger): void;
|
210
211
|
setTriggerValue(name: string, value: any, isVariable: boolean): any;
|
211
212
|
copyTriggerValue(name: string, fromName: string): any;
|
212
213
|
focusQuestion(name: string): boolean;
|
@@ -1334,7 +1335,9 @@ export declare class SurveyLocStringViewer extends React.Component<any, any> {
|
|
1334
1335
|
componentDidMount(): void;
|
1335
1336
|
componentWillUnmount(): void;
|
1336
1337
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
1338
|
+
isRendering: boolean;
|
1337
1339
|
render(): JSX.Element;
|
1340
|
+
protected renderString(): JSX.Element;
|
1338
1341
|
}
|
1339
1342
|
export declare class SurveyNavigationBase extends React.Component<any, any> {
|
1340
1343
|
constructor(props: any);
|
@@ -1710,7 +1713,7 @@ export declare class CustomError extends SurveyError {
|
|
1710
1713
|
getErrorType(): string;
|
1711
1714
|
}
|
1712
1715
|
export declare class DragDropCore<T> extends Base {
|
1713
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
1716
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
1714
1717
|
isBottom: boolean;
|
1715
1718
|
onGhostPositionChanged: EventBase<Base>;
|
1716
1719
|
protected ghostPositionChanged(): void;
|
@@ -2427,6 +2430,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
2427
2430
|
get model(): any;
|
2428
2431
|
protected getStateElement(): any;
|
2429
2432
|
componentDidMount(): void;
|
2433
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
2430
2434
|
componentWillUnmount(): void;
|
2431
2435
|
shouldComponentUpdate(nextProps: IPopupProps, nextState: any): boolean;
|
2432
2436
|
render(): JSX.Element;
|
@@ -2980,6 +2984,7 @@ export declare class Trigger extends Base {
|
|
2980
2984
|
check(value: any): void;
|
2981
2985
|
protected onSuccess(values: any, properties: any): void;
|
2982
2986
|
protected onFailure(): void;
|
2987
|
+
protected onSuccessExecuted(): void;
|
2983
2988
|
endLoadingFromJson(): void;
|
2984
2989
|
buildExpression(): string;
|
2985
2990
|
}
|
@@ -3076,7 +3081,7 @@ export declare class ChoicesRestfull extends ChoicesRestful {
|
|
3076
3081
|
static set onBeforeSendRequest(val: (sender: ChoicesRestful, options: any) => void);
|
3077
3082
|
}
|
3078
3083
|
export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
3079
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
3084
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
3080
3085
|
protected get draggedElementType(): string;
|
3081
3086
|
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
3082
3087
|
protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
|
@@ -3088,7 +3093,7 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
|
3088
3093
|
protected doClear(): void;
|
3089
3094
|
}
|
3090
3095
|
export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
|
3091
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
3096
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
3092
3097
|
protected get draggedElementType(): string;
|
3093
3098
|
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
3094
3099
|
fromIndex: number;
|
@@ -3102,7 +3107,7 @@ export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynam
|
|
3102
3107
|
protected doClear(): void;
|
3103
3108
|
}
|
3104
3109
|
export declare class DragDropSurveyElements extends DragDropCore<any> {
|
3105
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
3110
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
3106
3111
|
static newGhostPage: PageModel;
|
3107
3112
|
static restrictDragQuestionBetweenPages: boolean;
|
3108
3113
|
static edgeHeight: number;
|
@@ -3565,6 +3570,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3565
3570
|
timerModelValue: SurveyTimerModel;
|
3566
3571
|
navigationBarValue: any;
|
3567
3572
|
/*
|
3573
|
+
* The event is fired after a trigger has been executed
|
3574
|
+
* <br/> `sender` - the survey object that fires the event.
|
3575
|
+
* <br/> `options.trigger` - An instance of a trigger that has been just perform it's action.
|
3576
|
+
*/
|
3577
|
+
onTriggerExecuted: EventBase<SurveyModel>;
|
3578
|
+
/*
|
3568
3579
|
* The event is fired before the survey is completed and the `onComplete` event is fired. You can prevent the survey from completing by setting `options.allowComplete` to `false`
|
3569
3580
|
* <br/> `sender` - the survey object that fires the event.
|
3570
3581
|
* <br/> `options.allowComplete` - Specifies whether a user can complete a survey. Set this property to `false` to prevent the survey from completing. The default value is `true`.
|
@@ -5358,6 +5369,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5358
5369
|
getObjects(pages: any, questions: any): Array<any>;
|
5359
5370
|
setTriggerValue(name: string, value: any, isVariable: boolean): void;
|
5360
5371
|
copyTriggerValue(name: string, fromName: string): void;
|
5372
|
+
triggerExecuted(trigger: Trigger): void;
|
5361
5373
|
isFocusingQuestion: boolean;
|
5362
5374
|
isMovingQuestion: boolean;
|
5363
5375
|
startMovingQuestion(): void;
|
@@ -5705,6 +5717,7 @@ export declare class SurveyTrigger extends Trigger {
|
|
5705
5717
|
setOwner(owner: ISurveyTriggerOwner): void;
|
5706
5718
|
getSurvey(live?: boolean): ISurvey;
|
5707
5719
|
get isOnNextPage(): boolean;
|
5720
|
+
protected onSuccessExecuted(): void;
|
5708
5721
|
}
|
5709
5722
|
export declare class SurveyWindow extends Survey {
|
5710
5723
|
constructor(props: any);
|
@@ -5769,7 +5782,7 @@ export declare class Variable extends Const {
|
|
5769
5782
|
protected isContentEqual(op: Operand): boolean;
|
5770
5783
|
}
|
5771
5784
|
export declare class DragDropRankingChoices extends DragDropChoices {
|
5772
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
5785
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
5773
5786
|
protected get draggedElementType(): string;
|
5774
5787
|
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
5775
5788
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
@@ -7794,6 +7807,7 @@ export declare class QuestionRatingModel extends Question {
|
|
7794
7807
|
get renderedRateItems(): any;
|
7795
7808
|
getType(): string;
|
7796
7809
|
protected getFirstInputElementId(): string;
|
7810
|
+
getInputId(index: number): string;
|
7797
7811
|
supportGoNextPageAutomatic(): boolean;
|
7798
7812
|
supportComment(): boolean;
|
7799
7813
|
supportOther(): boolean;
|
@@ -8388,10 +8402,13 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8388
8402
|
*/
|
8389
8403
|
get autoComplete(): string;
|
8390
8404
|
set autoComplete(val: string);
|
8405
|
+
showClearButton: boolean;
|
8406
|
+
itemComponent: string;
|
8391
8407
|
denySearch: boolean;
|
8392
8408
|
dropdownWidthMode: "contentWidth" | "editorWidth";
|
8393
8409
|
getControlClass(): string;
|
8394
8410
|
get readOnlyText(): any;
|
8411
|
+
onClear(event: any): void;
|
8395
8412
|
protected onVisibleChoicesChanged(): void;
|
8396
8413
|
_popupModel: any;
|
8397
8414
|
get popupModel(): any;
|
@@ -8862,6 +8879,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
8862
8879
|
export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
|
8863
8880
|
constructor(props: any);
|
8864
8881
|
protected renderSelect(cssClasses: any): JSX.Element;
|
8882
|
+
createClearButton(): JSX.Element;
|
8865
8883
|
}
|
8866
8884
|
/*
|
8867
8885
|
* A Model for a button group question.
|
@@ -9284,6 +9302,11 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
9284
9302
|
setGhostText: (text: string) => void;
|
9285
9303
|
getIconHoverCss(): string;
|
9286
9304
|
getIconFocusCss(): string;
|
9305
|
+
/*
|
9306
|
+
* For mobile devices. Set this property to false, to disable the "long tap" before drag start. Default is true.
|
9307
|
+
*/
|
9308
|
+
get longTap(): boolean;
|
9309
|
+
set longTap(val: boolean);
|
9287
9310
|
}
|
9288
9311
|
export declare function property(options?: any): (target: any, key: string) => void;
|
9289
9312
|
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
@@ -9307,6 +9330,11 @@ export declare var settings: {
|
|
9307
9330
|
caseSensitive: boolean,
|
9308
9331
|
},
|
9309
9332
|
/*
|
9333
|
+
* Set this value to false, if you want to have UTC fuctions, for example setUTCHours inside our functions, like today.
|
9334
|
+
* By default it uses setHours function, with local date
|
9335
|
+
*/
|
9336
|
+
useLocalTimeZone: boolean,
|
9337
|
+
/*
|
9310
9338
|
* The prefix that uses to store the question comment, as {questionName} + {commentPrefix}.
|
9311
9339
|
* The default
|
9312
9340
|
*/
|
@@ -9673,6 +9701,10 @@ export declare var defaultStandardCss: {
|
|
9673
9701
|
control: string,
|
9674
9702
|
selectWrapper: string,
|
9675
9703
|
other: string,
|
9704
|
+
cleanButton: string,
|
9705
|
+
cleanButtonSvg: string,
|
9706
|
+
cleanButtonIconId: string,
|
9707
|
+
controlValue: string,
|
9676
9708
|
},
|
9677
9709
|
html: {
|
9678
9710
|
root: string,
|
@@ -10658,7 +10690,6 @@ export declare var defaultV2Css: {
|
|
10658
10690
|
footer: string,
|
10659
10691
|
formGroup: string,
|
10660
10692
|
hasError: string,
|
10661
|
-
disabled: string,
|
10662
10693
|
collapsed: string,
|
10663
10694
|
nested: string,
|
10664
10695
|
invisible: string,
|
@@ -10778,7 +10809,11 @@ export declare var defaultV2Css: {
|
|
10778
10809
|
itemHover: string,
|
10779
10810
|
itemControl: string,
|
10780
10811
|
itemDecorator: string,
|
10812
|
+
cleanButton: string,
|
10813
|
+
cleanButtonSvg: string,
|
10814
|
+
cleanButtonIconId: string,
|
10781
10815
|
control: string,
|
10816
|
+
controlValue: string,
|
10782
10817
|
controlDisabled: string,
|
10783
10818
|
controlEmpty: string,
|
10784
10819
|
controlLabel: string,
|
@@ -11245,6 +11280,10 @@ export declare var modernCss: {
|
|
11245
11280
|
selectWrapper: string,
|
11246
11281
|
other: string,
|
11247
11282
|
onError: string,
|
11283
|
+
cleanButton: string,
|
11284
|
+
cleanButtonSvg: string,
|
11285
|
+
cleanButtonIconId: string,
|
11286
|
+
controlValue: string,
|
11248
11287
|
},
|
11249
11288
|
imagepicker: {
|
11250
11289
|
root: string,
|