survey-react 1.9.32 → 1.9.35
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 +86 -40
- package/defaultV2.min.css +2 -2
- package/modern.css +18 -6
- 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 +394 -326
- package/survey.react.js +773 -384
- 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.35
|
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;
|
@@ -987,6 +988,8 @@ export declare class Helpers {
|
|
987
988
|
static isCharDigit(ch: string): boolean;
|
988
989
|
static correctAfterPlusMinis(a: number, b: number, res: number): number;
|
989
990
|
static correctAfterMultiple(a: number, b: number, res: number): number;
|
991
|
+
static convertArrayValueToObject(src: any, propName: string, dest?: any): Array<any>;
|
992
|
+
static convertArrayObjectToValue(src: any, propName: string): Array<any>;
|
990
993
|
}
|
991
994
|
export declare class JsonError {
|
992
995
|
constructor(type: string, message: string);
|
@@ -1119,7 +1122,7 @@ export declare class PopupUtils {
|
|
1119
1122
|
static updateVerticalPosition(targetRect: any, height: number, verticalPosition: any, showPointer: boolean, windowHeight: number): any;
|
1120
1123
|
static calculatePopupDirection(verticalPosition: any, horizontalPosition: any): string;
|
1121
1124
|
static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any, marginLeft?: number, marginRight?: number): INumberPosition;
|
1122
|
-
static updatePopupWidthBeforeShow(popupModel: any, e: any): void;
|
1125
|
+
static updatePopupWidthBeforeShow(popupModel: any, target: JSX.Element, e: any): void;
|
1123
1126
|
}
|
1124
1127
|
export declare class ProcessValue {
|
1125
1128
|
constructor();
|
@@ -1334,7 +1337,9 @@ export declare class SurveyLocStringViewer extends React.Component<any, any> {
|
|
1334
1337
|
componentDidMount(): void;
|
1335
1338
|
componentWillUnmount(): void;
|
1336
1339
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
1340
|
+
isRendering: boolean;
|
1337
1341
|
render(): JSX.Element;
|
1342
|
+
protected renderString(): JSX.Element;
|
1338
1343
|
}
|
1339
1344
|
export declare class SurveyNavigationBase extends React.Component<any, any> {
|
1340
1345
|
constructor(props: any);
|
@@ -1597,7 +1602,7 @@ export declare class CalculatedValue extends Base {
|
|
1597
1602
|
set includeIntoResult(val: boolean);
|
1598
1603
|
/*
|
1599
1604
|
* The Expression that used to calculate the value. You may use standard operators like +, -, * and /, squares (). Here is the example of accessing the question value {questionname}.
|
1600
|
-
*
|
1605
|
+
* Example: "({quantity} * {price}) * (100 - {discount}) / 100"
|
1601
1606
|
*/
|
1602
1607
|
get expression(): string;
|
1603
1608
|
set expression(val: string);
|
@@ -1710,7 +1715,7 @@ export declare class CustomError extends SurveyError {
|
|
1710
1715
|
getErrorType(): string;
|
1711
1716
|
}
|
1712
1717
|
export declare class DragDropCore<T> extends Base {
|
1713
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
1718
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
1714
1719
|
isBottom: boolean;
|
1715
1720
|
onGhostPositionChanged: EventBase<Base>;
|
1716
1721
|
protected ghostPositionChanged(): void;
|
@@ -2427,6 +2432,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
2427
2432
|
get model(): any;
|
2428
2433
|
protected getStateElement(): any;
|
2429
2434
|
componentDidMount(): void;
|
2435
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
2430
2436
|
componentWillUnmount(): void;
|
2431
2437
|
shouldComponentUpdate(nextProps: IPopupProps, nextState: any): boolean;
|
2432
2438
|
render(): JSX.Element;
|
@@ -2980,6 +2986,7 @@ export declare class Trigger extends Base {
|
|
2980
2986
|
check(value: any): void;
|
2981
2987
|
protected onSuccess(values: any, properties: any): void;
|
2982
2988
|
protected onFailure(): void;
|
2989
|
+
protected onSuccessExecuted(): void;
|
2983
2990
|
endLoadingFromJson(): void;
|
2984
2991
|
buildExpression(): string;
|
2985
2992
|
}
|
@@ -3076,7 +3083,7 @@ export declare class ChoicesRestfull extends ChoicesRestful {
|
|
3076
3083
|
static set onBeforeSendRequest(val: (sender: ChoicesRestful, options: any) => void);
|
3077
3084
|
}
|
3078
3085
|
export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
3079
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
3086
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
3080
3087
|
protected get draggedElementType(): string;
|
3081
3088
|
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
3082
3089
|
protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
|
@@ -3088,7 +3095,7 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
|
3088
3095
|
protected doClear(): void;
|
3089
3096
|
}
|
3090
3097
|
export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
|
3091
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
3098
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
3092
3099
|
protected get draggedElementType(): string;
|
3093
3100
|
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
3094
3101
|
fromIndex: number;
|
@@ -3102,7 +3109,7 @@ export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynam
|
|
3102
3109
|
protected doClear(): void;
|
3103
3110
|
}
|
3104
3111
|
export declare class DragDropSurveyElements extends DragDropCore<any> {
|
3105
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
3112
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
3106
3113
|
static newGhostPage: PageModel;
|
3107
3114
|
static restrictDragQuestionBetweenPages: boolean;
|
3108
3115
|
static edgeHeight: number;
|
@@ -3565,34 +3572,40 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3565
3572
|
timerModelValue: SurveyTimerModel;
|
3566
3573
|
navigationBarValue: any;
|
3567
3574
|
/*
|
3575
|
+
* The event is fired after a trigger has been executed
|
3576
|
+
* `sender` - the survey object that fires the event.
|
3577
|
+
* `options.trigger` - An instance of a trigger that has been just perform it's action.
|
3578
|
+
*/
|
3579
|
+
onTriggerExecuted: EventBase<SurveyModel>;
|
3580
|
+
/*
|
3568
3581
|
* 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
|
-
*
|
3570
|
-
*
|
3571
|
-
*
|
3582
|
+
* `sender` - the survey object that fires the event.
|
3583
|
+
* `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`.
|
3584
|
+
* `options.isCompleteOnTrigger` - returns true if the survey is completing on "complete" trigger.
|
3572
3585
|
*/
|
3573
3586
|
onCompleting: EventBase<SurveyModel>;
|
3574
3587
|
/*
|
3575
3588
|
* The event is fired after a user clicks the 'Complete' button and finishes a survey. Use this event to send the survey data to your web server.
|
3576
|
-
*
|
3577
|
-
*
|
3578
|
-
*
|
3579
|
-
*
|
3580
|
-
*
|
3581
|
-
*
|
3589
|
+
* `sender` - the survey object that fires the event.
|
3590
|
+
* `options.showDataSaving(text)` - call this method to show that the survey is saving survey data on your server. The `text` is an optional parameter to show a custom message instead of default.
|
3591
|
+
* `options.showDataSavingError(text)` - call this method to show that an error occurred while saving the data on your server. If you want to show a custom error, use an optional `text` parameter.
|
3592
|
+
* `options.showDataSavingSuccess(text)` - call this method to show that the data was successfully saved on the server.
|
3593
|
+
* `options.showDataSavingClear` - call this method to hide the text about the saving progress.
|
3594
|
+
* `options.isCompleteOnTrigger` - returns true if the survey is completed on "complete" trigger.
|
3582
3595
|
*/
|
3583
3596
|
onComplete: EventBase<SurveyModel>;
|
3584
3597
|
/*
|
3585
3598
|
* The event is fired before the survey is going to preview mode, state equals to `preview`. It happens when a user click on "Preview" button. It shows when "showPreviewBeforeComplete" proeprty equals to "showAllQuestions" or "showAnsweredQuestions".
|
3586
3599
|
* You can prevent showing it by setting allowShowPreview to `false`.
|
3587
|
-
*
|
3588
|
-
*
|
3600
|
+
* `sender` - the survey object that fires the event.
|
3601
|
+
* `options.allowShowPreview` - Specifies whether a user can see a preview. Set this property to `false` to prevent from showing the preview. The default value is `true`.
|
3589
3602
|
*/
|
3590
3603
|
onShowingPreview: EventBase<SurveyModel>;
|
3591
3604
|
/*
|
3592
3605
|
* The event is fired after a user clicks the 'Complete' button. The event allows you to specify the URL opened after completing a survey.
|
3593
3606
|
* Specify the `navigateToUrl` property to make survey navigate to another url.
|
3594
|
-
*
|
3595
|
-
*
|
3607
|
+
* `sender` - the survey object that fires the event.
|
3608
|
+
* `options.url` - Specifies a URL opened after completing a survey. Set this property to an empty string to cancel the navigation and show the completed survey page.
|
3596
3609
|
*/
|
3597
3610
|
onNavigateToUrl: EventBase<SurveyModel>;
|
3598
3611
|
/*
|
@@ -3602,73 +3615,73 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3602
3615
|
onStarted: EventBase<SurveyModel>;
|
3603
3616
|
/*
|
3604
3617
|
* The event is fired on clicking the 'Next' button if the `sendResultOnPageNext` is set to `true`. You can use it to save the intermediate results, for example, if your survey is large enough.
|
3605
|
-
*
|
3618
|
+
* `sender` - the survey object that fires the event.
|
3606
3619
|
*/
|
3607
3620
|
onPartialSend: EventBase<SurveyModel>;
|
3608
3621
|
/*
|
3609
3622
|
* The event is fired before the current page changes to another page. Typically it happens when a user click the 'Next' or 'Prev' buttons.
|
3610
|
-
*
|
3611
|
-
*
|
3612
|
-
*
|
3613
|
-
*
|
3614
|
-
*
|
3615
|
-
*
|
3623
|
+
* `sender` - the survey object that fires the event.
|
3624
|
+
* `option.oldCurrentPage` - the previous current/active page.
|
3625
|
+
* `option.newCurrentPage` - a new current/active page.
|
3626
|
+
* `option.allowChanging` - set it to `false` to disable the current page changing. It is `true` by default.
|
3627
|
+
* `option.isNextPage` - commonly means, that end-user press the next page button. In general, it means that options.newCurrentPage is the next page after options.oldCurrentPage
|
3628
|
+
* `option.isPrevPage` - commonly means, that end-user press the previous page button. In general, it means that options.newCurrentPage is the previous page before options.oldCurrentPage
|
3616
3629
|
*/
|
3617
3630
|
onCurrentPageChanging: EventBase<SurveyModel>;
|
3618
3631
|
/*
|
3619
3632
|
* The event is fired when the current page has been changed to another page. Typically it happens when a user click on 'Next' or 'Prev' buttons.
|
3620
|
-
*
|
3621
|
-
*
|
3622
|
-
*
|
3623
|
-
*
|
3624
|
-
*
|
3633
|
+
* `sender` - the survey object that fires the event.
|
3634
|
+
* `option.oldCurrentPage` - a previous current/active page.
|
3635
|
+
* `option.newCurrentPage` - a new current/active page.
|
3636
|
+
* `option.isNextPage` - commonly means, that end-user press the next page button. In general, it means that options.newCurrentPage is the next page after options.oldCurrentPage
|
3637
|
+
* `option.isPrevPage` - commonly means, that end-user press the previous page button. In general, it means that options.newCurrentPage is the previous page before options.oldCurrentPage
|
3625
3638
|
*/
|
3626
3639
|
onCurrentPageChanged: EventBase<SurveyModel>;
|
3627
3640
|
/*
|
3628
3641
|
* The event is fired before the question value (answer) is changed. It can be done via UI by a user or programmatically on calling the `setValue` method.
|
3629
|
-
*
|
3630
|
-
*
|
3631
|
-
*
|
3632
|
-
*
|
3633
|
-
*
|
3642
|
+
* `sender` - the survey object that fires the event.
|
3643
|
+
* `options.name` - the value name that has being changed.
|
3644
|
+
* `options.question` - a question which `question.name` equals to the value name. If there are several questions with the same name, the first question is used. If there is no such questions, the `options.question` is null.
|
3645
|
+
* `options.oldValue` - an old, previous value.
|
3646
|
+
* `options.value` - a new value. You can change it.
|
3634
3647
|
*/
|
3635
3648
|
onValueChanging: EventBase<SurveyModel>;
|
3636
3649
|
/*
|
3637
3650
|
* The event is fired when the question value (i.e., answer) has been changed. The question value can be changed in UI (by a user) or programmatically (on calling `setValue` method).
|
3638
3651
|
* Use the `onDynamicPanelItemValueChanged` and `onMatrixCellValueChanged` events to handle changes in a question in the Panel Dynamic and a cell question in matrices.
|
3639
|
-
*
|
3640
|
-
*
|
3641
|
-
*
|
3642
|
-
*
|
3652
|
+
* `sender` - the survey object that fires the event.
|
3653
|
+
* `options.name` - the value name that has been changed.
|
3654
|
+
* `options.question` - a question which `question.name` equals to the value name. If there are several questions with the same name, the first question is used. If there is no such questions, the `options.question` is `null`.
|
3655
|
+
* `options.value` - a new value.
|
3643
3656
|
*/
|
3644
3657
|
onValueChanged: EventBase<SurveyModel>;
|
3645
3658
|
/*
|
3646
3659
|
* The event is fired when setVariable function is called. It can be called on changing a calculated value.
|
3647
|
-
*
|
3648
|
-
*
|
3649
|
-
*
|
3660
|
+
* `sender` - the survey object that fires the event.
|
3661
|
+
* `options.name` - the variable name that has been changed.
|
3662
|
+
* `options.value` - a new value.
|
3650
3663
|
*/
|
3651
3664
|
onVariableChanged: EventBase<SurveyModel>;
|
3652
3665
|
/*
|
3653
3666
|
* The event is fired when a question visibility has been changed.
|
3654
|
-
*
|
3655
|
-
*
|
3656
|
-
*
|
3657
|
-
*
|
3667
|
+
* `sender` - the survey object that fires the event.
|
3668
|
+
* `options.question` - a question which visibility has been changed.
|
3669
|
+
* `options.name` - a question name.
|
3670
|
+
* `options.visible` - a question `visible` boolean value.
|
3658
3671
|
*/
|
3659
3672
|
onVisibleChanged: EventBase<SurveyModel>;
|
3660
3673
|
/*
|
3661
3674
|
* The event is fired on changing a page visibility.
|
3662
|
-
*
|
3663
|
-
*
|
3664
|
-
*
|
3675
|
+
* `sender` - the survey object that fires the event.
|
3676
|
+
* `options.page` - a page which visibility has been changed.
|
3677
|
+
* `options.visible` - a page `visible` boolean value.
|
3665
3678
|
*/
|
3666
3679
|
onPageVisibleChanged: EventBase<SurveyModel>;
|
3667
3680
|
/*
|
3668
3681
|
* The event is fired on changing a panel visibility.
|
3669
|
-
*
|
3670
|
-
*
|
3671
|
-
*
|
3682
|
+
* `sender` - the survey object that fires the event.
|
3683
|
+
* `options.panel` - a panel which visibility has been changed.
|
3684
|
+
* `options.visible` - a panel `visible` boolean value.
|
3672
3685
|
*/
|
3673
3686
|
onPanelVisibleChanged: EventBase<SurveyModel>;
|
3674
3687
|
/*
|
@@ -3677,88 +3690,88 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3677
3690
|
* or inside a matrix cell or it can be a text question in multiple text items or inside a panel of a panel dynamic.
|
3678
3691
|
* You can use this event to set up properties to a question based on it's type for all questions, regardless where they are located, on the page or inside a matrix cell.
|
3679
3692
|
* Please note: If you want to use this event for questions loaded from JSON then you have to create survey with empty/null JSON parameter, assign the event and call survey.fromJSON(yourJSON) function.
|
3680
|
-
*
|
3681
|
-
*
|
3693
|
+
* `sender` - the survey object that fires the event.
|
3694
|
+
* `options.question` - a newly created question object.
|
3682
3695
|
*/
|
3683
3696
|
onQuestionCreated: EventBase<SurveyModel>;
|
3684
3697
|
/*
|
3685
3698
|
* The event is fired on adding a new question into survey.
|
3686
|
-
*
|
3687
|
-
*
|
3688
|
-
*
|
3689
|
-
*
|
3690
|
-
*
|
3691
|
-
*
|
3699
|
+
* `sender` - the survey object that fires the event.
|
3700
|
+
* `options.question` - a newly added question object.
|
3701
|
+
* `options.name` - a question name.
|
3702
|
+
* `options.index` - an index of the question in the container (page or panel).
|
3703
|
+
* `options.parentPanel` - a container where a new question is located. It can be a page or panel.
|
3704
|
+
* `options.rootPanel` - typically, it is a page.
|
3692
3705
|
*/
|
3693
3706
|
onQuestionAdded: EventBase<SurveyModel>;
|
3694
3707
|
/*
|
3695
3708
|
* The event is fired on removing a question from survey.
|
3696
|
-
*
|
3697
|
-
*
|
3698
|
-
*
|
3709
|
+
* `sender` - the survey object that fires the event.
|
3710
|
+
* `options.question` - a removed question object.
|
3711
|
+
* `options.name` - a question name.
|
3699
3712
|
*/
|
3700
3713
|
onQuestionRemoved: EventBase<SurveyModel>;
|
3701
3714
|
/*
|
3702
3715
|
* The event is fired on adding a panel into survey.
|
3703
|
-
*
|
3704
|
-
*
|
3705
|
-
*
|
3706
|
-
*
|
3707
|
-
*
|
3708
|
-
*
|
3716
|
+
* `sender` - the survey object that fires the event.
|
3717
|
+
* `options.panel` - a newly added panel object.
|
3718
|
+
* `options.name` - a panel name.
|
3719
|
+
* `options.index` - an index of the panel in the container (a page or panel).
|
3720
|
+
* `options.parentPanel` - a container (a page or panel) where a new panel is located.
|
3721
|
+
* `options.rootPanel` - a root container, typically it is a page.
|
3709
3722
|
*/
|
3710
3723
|
onPanelAdded: EventBase<SurveyModel>;
|
3711
3724
|
/*
|
3712
3725
|
* The event is fired on removing a panel from survey.
|
3713
|
-
*
|
3714
|
-
*
|
3715
|
-
*
|
3726
|
+
* `sender` - the survey object that fires the event.
|
3727
|
+
* `options.panel` - a removed panel object.
|
3728
|
+
* `options.name` - a panel name.
|
3716
3729
|
*/
|
3717
3730
|
onPanelRemoved: EventBase<SurveyModel>;
|
3718
3731
|
/*
|
3719
3732
|
* The event is fired on adding a page into survey.
|
3720
|
-
*
|
3721
|
-
*
|
3733
|
+
* `sender` - the survey object that fires the event.
|
3734
|
+
* `options.page` - a newly added `panel` object.
|
3722
3735
|
*/
|
3723
3736
|
onPageAdded: EventBase<SurveyModel>;
|
3724
3737
|
/*
|
3725
3738
|
* The event is fired on validating value in a question. You can specify a custom error message using `options.error`. The survey blocks completing the survey or going to the next page when the error messages are displayed.
|
3726
|
-
*
|
3727
|
-
*
|
3728
|
-
*
|
3729
|
-
*
|
3730
|
-
*
|
3739
|
+
* `sender` - the survey object that fires the event.
|
3740
|
+
* `options.question` - a validated question.
|
3741
|
+
* `options.name` - a question name.
|
3742
|
+
* `options.value` - the current question value (answer).
|
3743
|
+
* `options.error` - an error string. It is empty by default.
|
3731
3744
|
*/
|
3732
3745
|
onValidateQuestion: EventBase<SurveyModel>;
|
3733
3746
|
/*
|
3734
3747
|
* The event is fired before errors are assigned to a question. You may add/remove/modify errors for a question.
|
3735
|
-
*
|
3736
|
-
*
|
3737
|
-
*
|
3748
|
+
* `sender` - the survey object that fires the event.
|
3749
|
+
* `options.question` - a validated question.
|
3750
|
+
* `options.errors` - the list of errors. The list is empty by default and remains empty if a validated question has no errors.
|
3738
3751
|
*/
|
3739
3752
|
onSettingQuestionErrors: EventBase<SurveyModel>;
|
3740
3753
|
/*
|
3741
3754
|
* Use this event to validate data on your server.
|
3742
|
-
*
|
3743
|
-
*
|
3744
|
-
*
|
3745
|
-
*
|
3755
|
+
* `sender` - the survey object that fires the event.
|
3756
|
+
* `options.data` - the values of all non-empty questions on the current page. You can get a question value as `options.data["myQuestionName"]`.
|
3757
|
+
* `options.errors` - set your errors to this object as: `options.errors["myQuestionName"] = "Error text";`. It will be shown as a question error.
|
3758
|
+
* `options.complete()` - call this function to tell survey that your server callback has been processed.
|
3746
3759
|
*/
|
3747
3760
|
onServerValidateQuestions: any;
|
3748
3761
|
/*
|
3749
3762
|
* The event is fired on validating a panel. Set your error to `options.error` and survey will show the error for the panel and block completing the survey or going to the next page.
|
3750
|
-
*
|
3751
|
-
*
|
3752
|
-
*
|
3763
|
+
* `sender` - the survey object that fires the event.
|
3764
|
+
* `options.name` - a panel name.
|
3765
|
+
* `options.error` - an error string. It is empty by default.
|
3753
3766
|
*/
|
3754
3767
|
onValidatePanel: EventBase<SurveyModel>;
|
3755
3768
|
/*
|
3756
3769
|
* Use the event to change the default error text.
|
3757
|
-
*
|
3758
|
-
*
|
3759
|
-
*
|
3760
|
-
*
|
3761
|
-
*
|
3770
|
+
* `sender` - the survey object that fires the event.
|
3771
|
+
* `options.text` - an error text.
|
3772
|
+
* `options.error` - an instance of the `SurveyError` object.
|
3773
|
+
* `options.obj` - an instance of Question, Panel or Survey object to where error is located.
|
3774
|
+
* `options.name` - the error name. The following error names are available:
|
3762
3775
|
* required, requireoneanswer, requirenumeric, exceedsize, webrequest, webrequestempty, otherempty,
|
3763
3776
|
* uploadingfile, requiredinallrowserror, minrowcounterror, keyduplicationerror, custom
|
3764
3777
|
*/
|
@@ -3777,201 +3790,201 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3777
3790
|
onProcessHtml: EventBase<SurveyModel>;
|
3778
3791
|
/*
|
3779
3792
|
* Use this event to change the question title in code. If you want to remove question numbering then set showQuestionNumbers to "off".
|
3780
|
-
*
|
3781
|
-
*
|
3782
|
-
*
|
3793
|
+
* `sender` - the survey object that fires the event.
|
3794
|
+
* `options.title` - a calculated question title, based on question `title`, `name`.
|
3795
|
+
* `options.question` - a question object.
|
3783
3796
|
*/
|
3784
3797
|
onGetQuestionTitle: EventBase<SurveyModel>;
|
3785
3798
|
/*
|
3786
3799
|
* Use this event to change the element title tag name that renders by default.
|
3787
|
-
*
|
3788
|
-
*
|
3789
|
-
*
|
3800
|
+
* `sender` - the survey object that fires the event.
|
3801
|
+
* `options.element` - an element (question, panel, page and survey) that SurveyJS is going to render.
|
3802
|
+
* `options.tagName` - an element title tagName that are used to render a title. You can change it from the default value.
|
3790
3803
|
*/
|
3791
3804
|
onGetTitleTagName: EventBase<SurveyModel>;
|
3792
3805
|
/*
|
3793
3806
|
* Use this event to change the question no in code. If you want to remove question numbering then set showQuestionNumbers to "off".
|
3794
|
-
*
|
3795
|
-
*
|
3796
|
-
*
|
3807
|
+
* `sender` - the survey object that fires the event.
|
3808
|
+
* `options.no` - a calculated question no, based on question `visibleIndex`, survey `.questionStartIndex` properties. You can change it.
|
3809
|
+
* `options.question` - a question object.
|
3797
3810
|
*/
|
3798
3811
|
onGetQuestionNo: EventBase<SurveyModel>;
|
3799
3812
|
/*
|
3800
3813
|
* Use this event to change the progress text in code.
|
3801
|
-
*
|
3802
|
-
*
|
3803
|
-
*
|
3804
|
-
*
|
3805
|
-
*
|
3806
|
-
*
|
3814
|
+
* `sender` - the survey object that fires the event.
|
3815
|
+
* `options.text` - a progress text, that SurveyJS will render in progress bar.
|
3816
|
+
* `options.questionCount` - a number of questions that have input(s). We do not count html or expression questions
|
3817
|
+
* `options.answeredQuestionCount` - a number of questions that have input(s) and an user has answered.
|
3818
|
+
* `options.requiredQuestionCount` - a number of required questions that have input(s). We do not count html or expression questions
|
3819
|
+
* `options.requiredAnsweredQuestionCount` - a number of required questions that have input(s) and an user has answered.
|
3807
3820
|
*/
|
3808
3821
|
onProgressText: EventBase<SurveyModel>;
|
3809
3822
|
/*
|
3810
3823
|
* Use this event to process the markdown text.
|
3811
|
-
*
|
3812
|
-
*
|
3813
|
-
*
|
3814
|
-
*
|
3815
|
-
*
|
3824
|
+
* `sender` - the survey object that fires the event.
|
3825
|
+
* `options.element` - SurveyJS element (a question, panel, page, or survey) where the string is going to be rendered.
|
3826
|
+
* `options.name` - a property name is going to be rendered.
|
3827
|
+
* `options.text` - a text that is going to be rendered.
|
3828
|
+
* `options.html` - an HTML content. It is `null` by default. Use this property to specify the HTML content rendered instead of `options.text`.
|
3816
3829
|
*/
|
3817
3830
|
onTextMarkdown: EventBase<SurveyModel>;
|
3818
3831
|
/*
|
3819
3832
|
* Use this event to specity render component name used for text rendering.
|
3820
|
-
*
|
3821
|
-
*
|
3822
|
-
*
|
3823
|
-
*
|
3833
|
+
* `sender` - the survey object that fires the event.
|
3834
|
+
* `options.element` - SurveyJS element (a question, panel, page, or survey) where the string is going to be rendered.
|
3835
|
+
* `options.name` - a property name is going to be rendered.
|
3836
|
+
* `options.renderAs` - a component name used for text rendering.
|
3824
3837
|
*/
|
3825
3838
|
onTextRenderAs: EventBase<SurveyModel>;
|
3826
3839
|
/*
|
3827
3840
|
* The event fires when it gets response from the [api.surveyjs.io](https://api.surveyjs.io) service on saving survey results. Use it to find out if the results have been saved successfully.
|
3828
|
-
*
|
3829
|
-
*
|
3830
|
-
*
|
3841
|
+
* `sender` - the survey object that fires the event.
|
3842
|
+
* `options.success` - it is `true` if the results has been sent to the service successfully.
|
3843
|
+
* `options.response` - a response from the service.
|
3831
3844
|
*/
|
3832
3845
|
onSendResult: EventBase<SurveyModel>;
|
3833
3846
|
/*
|
3834
3847
|
* Use it to get results after calling the `getResult` method. It returns a simple analytics from [api.surveyjs.io](https://api.surveyjs.io) service.
|
3835
|
-
*
|
3836
|
-
*
|
3837
|
-
*
|
3838
|
-
*
|
3839
|
-
*
|
3848
|
+
* `sender` - the survey object that fires the event.
|
3849
|
+
* `options.success` - it is `true` if the results were got from the service successfully.
|
3850
|
+
* `options.data` - the object `{AnswersCount, QuestionResult : {} }`. `AnswersCount` is the number of posted survey results. `QuestionResult` is an object with all possible unique answers to the question and number of these answers.
|
3851
|
+
* `options.dataList` - an array of objects `{name, value}`, where `name` is a unique value/answer to the question and `value` is a number/count of such answers.
|
3852
|
+
* `options.response` - the server response.
|
3840
3853
|
*/
|
3841
3854
|
onGetResult: EventBase<SurveyModel>;
|
3842
3855
|
/*
|
3843
3856
|
* The event is fired on uploading the file in QuestionFile when `storeDataAsText` is set to `false`. Use this event to change the uploaded file name or to prevent a particular file from being uploaded.
|
3844
|
-
*
|
3845
|
-
*
|
3846
|
-
*
|
3847
|
-
*
|
3848
|
-
*
|
3857
|
+
* `sender` - the survey object that fires the event.
|
3858
|
+
* `options.question` - the file question instance.
|
3859
|
+
* `options.name` - the question name.
|
3860
|
+
* `options.files` - the Javascript File objects array to upload.
|
3861
|
+
* `options.callback` - a callback function to get the file upload status and the updloaded file content.
|
3849
3862
|
*/
|
3850
3863
|
onUploadFiles: EventBase<SurveyModel>;
|
3851
3864
|
/*
|
3852
3865
|
* The event is fired on downloading a file in QuestionFile. Use this event to pass the file to a preview.
|
3853
|
-
*
|
3854
|
-
*
|
3855
|
-
*
|
3856
|
-
*
|
3857
|
-
*
|
3866
|
+
* `sender` - the survey object that fires the event.
|
3867
|
+
* `options.name` - the question name.
|
3868
|
+
* `options.content` - the file content.
|
3869
|
+
* `options.fileValue` - single file question value.
|
3870
|
+
* `options.callback` - a callback function to get the file downloading status and the downloaded file content.
|
3858
3871
|
*/
|
3859
3872
|
onDownloadFile: EventBase<SurveyModel>;
|
3860
3873
|
/*
|
3861
3874
|
* This event is fired on clearing the value in a QuestionFile. Use this event to remove files stored on your server.
|
3862
|
-
*
|
3863
|
-
*
|
3864
|
-
*
|
3865
|
-
*
|
3866
|
-
*
|
3867
|
-
*
|
3875
|
+
* `sender` - the survey object that fires the event.
|
3876
|
+
* `question` - the question instance.
|
3877
|
+
* `options.name` - the question name.
|
3878
|
+
* `options.value` - the question value.
|
3879
|
+
* `options.fileName` - a removed file's name, set it to `null` to clear all files.
|
3880
|
+
* `options.callback` - a callback function to get the operation status.
|
3868
3881
|
*/
|
3869
3882
|
onClearFiles: EventBase<SurveyModel>;
|
3870
3883
|
/*
|
3871
3884
|
* The event is fired after choices for radiogroup, checkbox, and dropdown has been loaded from a RESTful service and before they are assigned to a question.
|
3872
3885
|
* You may change the choices, before they are assigned or disable/enabled make visible/invisible question, based on loaded results.
|
3873
|
-
*
|
3874
|
-
*
|
3875
|
-
*
|
3876
|
-
*
|
3886
|
+
* `sender` - the survey object that fires the event.
|
3887
|
+
* `question` - the question where loaded choices are going to be assigned.
|
3888
|
+
* `choices` - the loaded choices. You can change the loaded choices to before they are assigned to question.
|
3889
|
+
* `serverResult` - a result that comes from the server as it is.
|
3877
3890
|
*/
|
3878
3891
|
onLoadChoicesFromServer: EventBase<SurveyModel>;
|
3879
3892
|
/*
|
3880
3893
|
* The event is fired after survey is loaded from api.surveyjs.io service.
|
3881
3894
|
* You can use this event to perform manipulation with the survey model after it was loaded from the web service.
|
3882
|
-
*
|
3895
|
+
* `sender` - the survey object that fires the event.
|
3883
3896
|
*/
|
3884
3897
|
onLoadedSurveyFromService: EventBase<SurveyModel>;
|
3885
3898
|
/*
|
3886
3899
|
* The event is fired on processing the text when it finds a text in brackets: `{somevalue}`. By default, it uses the value of survey question values and variables.
|
3887
3900
|
* For example, you may use the text processing in loading choices from the web. If your `choicesByUrl.url` equals to "UrlToServiceToGetAllCities/{country}/{state}",
|
3888
3901
|
* you may set on this event `options.value` to "all" or empty string when the "state" value/question is non selected by a user.
|
3889
|
-
*
|
3890
|
-
*
|
3891
|
-
*
|
3892
|
-
*
|
3902
|
+
* `sender` - the survey object that fires the event.
|
3903
|
+
* `options.name` - the name of the processing value, for example, "state" in our example.
|
3904
|
+
* `options.value` - the value of the processing text.
|
3905
|
+
* `options.isExists` - a boolean value. Set it to `true` if you want to use the value and set it to `false` if you don't.
|
3893
3906
|
*/
|
3894
3907
|
onProcessTextValue: EventBase<SurveyModel>;
|
3895
3908
|
/*
|
3896
3909
|
* The event is fired before rendering a question. Use it to override the default question CSS classes.
|
3897
|
-
*
|
3898
|
-
*
|
3899
|
-
*
|
3910
|
+
* `sender` - the survey object that fires the event.
|
3911
|
+
* `options.question` - a question for which you can change the CSS classes.
|
3912
|
+
* `options.cssClasses` - an object with CSS classes. For example `{root: "table", button: "button"}`. You can change them to your own CSS classes.
|
3900
3913
|
*/
|
3901
3914
|
onUpdateQuestionCssClasses: EventBase<SurveyModel>;
|
3902
3915
|
/*
|
3903
3916
|
* The event is fired before rendering a panel. Use it to override the default panel CSS classes.
|
3904
|
-
*
|
3905
|
-
*
|
3906
|
-
*
|
3917
|
+
* `sender` - the survey object that fires the event.
|
3918
|
+
* `options.panel` - a panel for which you can change the CSS classes.
|
3919
|
+
* `options.cssClasses` - an object with CSS classes. For example `{title: "sv_p_title", description: "small"}`. You can change them to your own CSS classes.
|
3907
3920
|
*/
|
3908
3921
|
onUpdatePanelCssClasses: EventBase<SurveyModel>;
|
3909
3922
|
/*
|
3910
3923
|
* The event is fired before rendering a page. Use it to override the default page CSS classes.
|
3911
|
-
*
|
3912
|
-
*
|
3913
|
-
*
|
3924
|
+
* `sender` - the survey object that fires the event.
|
3925
|
+
* `options.page` - a page for which you can change the CSS classes.
|
3926
|
+
* `options.cssClasses` - an object with CSS classes. For example `{title: "sv_p_title", description: "small"}`. You can change them to your own CSS classes.
|
3914
3927
|
*/
|
3915
3928
|
onUpdatePageCssClasses: EventBase<SurveyModel>;
|
3916
3929
|
/*
|
3917
3930
|
* The event is fired before rendering a choice item in radiogroup, checkbox or dropdown questions. Use it to override the default choice item css.
|
3918
|
-
*
|
3919
|
-
*
|
3920
|
-
*
|
3921
|
-
*
|
3931
|
+
* `sender` - the survey object that fires the event.
|
3932
|
+
* `options.question` - a question where choice item is rendered.
|
3933
|
+
* `options.item` - a choice item of ItemValue type. You can get value or text choice properties as options.item.value or options.choice.text
|
3934
|
+
* `options.css` - a string with css classes divided by space. You can change it.
|
3922
3935
|
*/
|
3923
3936
|
onUpdateChoiceItemCss: EventBase<SurveyModel>;
|
3924
3937
|
/*
|
3925
3938
|
* The event is fired right after survey is rendered in DOM.
|
3926
|
-
*
|
3927
|
-
*
|
3939
|
+
* `sender` - the survey object that fires the event.
|
3940
|
+
* `options.htmlElement` - a root HTML element bound to the survey object.
|
3928
3941
|
*/
|
3929
3942
|
onAfterRenderSurvey: EventBase<SurveyModel>;
|
3930
3943
|
/*
|
3931
3944
|
* The event is fired right after a page is rendered in DOM. Use it to modify HTML elements.
|
3932
|
-
*
|
3933
|
-
*
|
3945
|
+
* `sender` - the survey object that fires the event.
|
3946
|
+
* `options.htmlElement` - an HTML element bound to the survey header object.
|
3934
3947
|
*/
|
3935
3948
|
onAfterRenderHeader: EventBase<SurveyModel>;
|
3936
3949
|
/*
|
3937
3950
|
* The event is fired right after a page is rendered in DOM. Use it to modify HTML elements.
|
3938
|
-
*
|
3939
|
-
*
|
3940
|
-
*
|
3951
|
+
* `sender` - the survey object that fires the event.
|
3952
|
+
* `options.page` - a page object for which the event is fired. Typically the current/active page.
|
3953
|
+
* `options.htmlElement` - an HTML element bound to the page object.
|
3941
3954
|
*/
|
3942
3955
|
onAfterRenderPage: EventBase<SurveyModel>;
|
3943
3956
|
/*
|
3944
3957
|
* The event is fired right after a question is rendered in DOM. Use it to modify HTML elements.
|
3945
|
-
*
|
3946
|
-
*
|
3947
|
-
*
|
3958
|
+
* `sender` - the survey object that fires the event.
|
3959
|
+
* `options.question` - a question object for which the event is fired.
|
3960
|
+
* `options.htmlElement` - an HTML element bound to the question object.
|
3948
3961
|
*/
|
3949
3962
|
onAfterRenderQuestion: EventBase<SurveyModel>;
|
3950
3963
|
/*
|
3951
3964
|
* The event is fired right after a non-composite question (text, comment, dropdown, radiogroup, checkbox) is rendered in DOM. Use it to modify HTML elements.
|
3952
3965
|
* This event is not fired for matrices, panels, multiple text and image picker.
|
3953
|
-
*
|
3954
|
-
*
|
3955
|
-
*
|
3966
|
+
* `sender` - the survey object that fires the event.
|
3967
|
+
* `options.question` - a question object for which the event is fired.
|
3968
|
+
* `options.htmlElement` - an HTML element bound to the question object.
|
3956
3969
|
*/
|
3957
3970
|
onAfterRenderQuestionInput: EventBase<SurveyModel>;
|
3958
3971
|
/*
|
3959
3972
|
* The event is fired right after a panel is rendered in DOM. Use it to modify HTML elements.
|
3960
|
-
*
|
3961
|
-
*
|
3962
|
-
*
|
3973
|
+
* `sender` - the survey object that fires the event
|
3974
|
+
* `options.panel` - a panel object for which the event is fired
|
3975
|
+
* `options.htmlElement` - an HTML element bound to the panel object
|
3963
3976
|
*/
|
3964
3977
|
onAfterRenderPanel: EventBase<SurveyModel>;
|
3965
3978
|
/*
|
3966
3979
|
* The event occurs when an element within a question gets focus.
|
3967
|
-
*
|
3968
|
-
*
|
3980
|
+
* `sender` - A [survey](https://surveyjs.io/Documentation/Library?id=surveymodel) object that fires the event.
|
3981
|
+
* `options.question` - A [question](https://surveyjs.io/Documentation/Library?id=Question) whose child element gets focus.
|
3969
3982
|
*/
|
3970
3983
|
onFocusInQuestion: EventBase<SurveyModel>;
|
3971
3984
|
/*
|
3972
3985
|
* The event occurs when an element within a panel gets focus.
|
3973
|
-
*
|
3974
|
-
*
|
3986
|
+
* `sender` - A [survey](https://surveyjs.io/Documentation/Library?id=surveymodel) object that fires the event.
|
3987
|
+
* `options.panel` - A [panel](https://surveyjs.io/Documentation/Library?id=PanelModelBase) whose child element gets focus.
|
3975
3988
|
*/
|
3976
3989
|
onFocusInPanel: EventBase<SurveyModel>;
|
3977
3990
|
/*
|
@@ -3987,123 +4000,123 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3987
4000
|
onShowingChoiceItem: EventBase<SurveyModel>;
|
3988
4001
|
/*
|
3989
4002
|
* The event is fired on adding a new row in Matrix Dynamic question.
|
3990
|
-
*
|
3991
|
-
*
|
3992
|
-
*
|
4003
|
+
* `sender` - the survey object that fires the event
|
4004
|
+
* `options.question` - a matrix question.
|
4005
|
+
* `options.row` - a new added row.
|
3993
4006
|
*/
|
3994
4007
|
onMatrixRowAdded: EventBase<SurveyModel>;
|
3995
4008
|
/*
|
3996
4009
|
* The event is fired before adding a new row in Matrix Dynamic question.
|
3997
|
-
*
|
3998
|
-
*
|
3999
|
-
*
|
4010
|
+
* `sender` - the survey object that fires the event
|
4011
|
+
* `options.question` - a matrix question.
|
4012
|
+
* `options.canAddRow` - specifies whether a new row can be added
|
4000
4013
|
*/
|
4001
4014
|
onMatrixBeforeRowAdded: EventBase<SurveyModel>;
|
4002
4015
|
/*
|
4003
4016
|
* The event is fired before removing a row from Matrix Dynamic question. You can disable removing and clear the data instead.
|
4004
|
-
*
|
4005
|
-
*
|
4006
|
-
*
|
4007
|
-
*
|
4008
|
-
*
|
4017
|
+
* `sender` - the survey object that fires the event
|
4018
|
+
* `options.question` - a matrix question.
|
4019
|
+
* `options.rowIndex` - a row index.
|
4020
|
+
* `options.row` - a row object.
|
4021
|
+
* `options.allow` - a boolean property. Set it to `false` to disable the row removing.
|
4009
4022
|
*/
|
4010
4023
|
onMatrixRowRemoving: EventBase<SurveyModel>;
|
4011
4024
|
/*
|
4012
4025
|
* The event is fired on removing a row from Matrix Dynamic question.
|
4013
|
-
*
|
4014
|
-
*
|
4015
|
-
*
|
4016
|
-
*
|
4026
|
+
* `sender` - the survey object that fires the event
|
4027
|
+
* `options.question` - a matrix question
|
4028
|
+
* `options.rowIndex` - a removed row index
|
4029
|
+
* `options.row` - a removed row object
|
4017
4030
|
*/
|
4018
4031
|
onMatrixRowRemoved: EventBase<SurveyModel>;
|
4019
4032
|
/*
|
4020
4033
|
* The event is fired before rendering "Remove" button for removing a row from Matrix Dynamic question.
|
4021
|
-
*
|
4022
|
-
*
|
4023
|
-
*
|
4024
|
-
*
|
4025
|
-
*
|
4034
|
+
* `sender` - the survey object that fires the event
|
4035
|
+
* `options.question` - a matrix question.
|
4036
|
+
* `options.rowIndex` - a row index.
|
4037
|
+
* `options.row` - a row object.
|
4038
|
+
* `options.allow` - a boolean property. Set it to `false` to disable the row removing.
|
4026
4039
|
*/
|
4027
4040
|
onMatrixAllowRemoveRow: EventBase<SurveyModel>;
|
4028
4041
|
/*
|
4029
4042
|
* The event is fired before creating cell question in the matrix. You can change the cell question type by setting different options.cellType.
|
4030
|
-
*
|
4031
|
-
*
|
4032
|
-
*
|
4033
|
-
*
|
4034
|
-
*
|
4035
|
-
*
|
4036
|
-
*
|
4043
|
+
* `sender` - the survey object that fires the event.
|
4044
|
+
* `options.question` - the matrix question.
|
4045
|
+
* `options.cellType` - the cell question type. You can change it.
|
4046
|
+
* `options.rowValue` - the value of the current row. To access a particular column's value within the current row, use: `options.rowValue["columnValue"]`.
|
4047
|
+
* `options.column` - the matrix column object.
|
4048
|
+
* `options.columnName` - the matrix column name.
|
4049
|
+
* `options.row` - the matrix row object.
|
4037
4050
|
*/
|
4038
4051
|
onMatrixCellCreating: EventBase<SurveyModel>;
|
4039
4052
|
/*
|
4040
4053
|
* The event is fired for every cell created in Matrix Dynamic and Matrix Dropdown questions.
|
4041
|
-
*
|
4042
|
-
*
|
4043
|
-
*
|
4044
|
-
*
|
4045
|
-
*
|
4046
|
-
*
|
4047
|
-
*
|
4048
|
-
*
|
4054
|
+
* `sender` - the survey object that fires the event.
|
4055
|
+
* `options.question` - the matrix question.
|
4056
|
+
* `options.cell` - the matrix cell.
|
4057
|
+
* `options.cellQuestion` - the question/editor in the cell. You may customize it, change it's properties, like choices or visible.
|
4058
|
+
* `options.rowValue` - the value of the current row. To access a particular column's value within the current row, use: `options.rowValue["columnValue"]`.
|
4059
|
+
* `options.column` - the matrix column object.
|
4060
|
+
* `options.columnName` - the matrix column name.
|
4061
|
+
* `options.row` - the matrix row object.
|
4049
4062
|
*/
|
4050
4063
|
onMatrixCellCreated: EventBase<SurveyModel>;
|
4051
4064
|
/*
|
4052
4065
|
* The event is fired for every cell after is has been rendered in DOM.
|
4053
|
-
*
|
4054
|
-
*
|
4055
|
-
*
|
4056
|
-
*
|
4057
|
-
*
|
4058
|
-
*
|
4059
|
-
*
|
4066
|
+
* `sender` - the survey object that fires the event.
|
4067
|
+
* `options.question` - the matrix question.
|
4068
|
+
* `options.cell` - the matrix cell.
|
4069
|
+
* `options.cellQuestion` - the question/editor in the cell.
|
4070
|
+
* `options.htmlElement` - an HTML element bound to the `cellQuestion` object.
|
4071
|
+
* `options.column` - the matrix column object.
|
4072
|
+
* `options.row` - the matrix row object.
|
4060
4073
|
*/
|
4061
4074
|
onMatrixAfterCellRender: EventBase<SurveyModel>;
|
4062
4075
|
/*
|
4063
4076
|
* The event is fired when cell value is changed in Matrix Dynamic and Matrix Dropdown questions.
|
4064
|
-
*
|
4065
|
-
*
|
4066
|
-
*
|
4067
|
-
*
|
4068
|
-
*
|
4069
|
-
*
|
4077
|
+
* `sender` - the survey object that fires the event.
|
4078
|
+
* `options.question` - the matrix question.
|
4079
|
+
* `options.columnName` - the matrix column name.
|
4080
|
+
* `options.value` - a new value.
|
4081
|
+
* `options.row` - the matrix row object.
|
4082
|
+
* `options.getCellQuestion(columnName)` - the function that returns the cell question by column name.
|
4070
4083
|
*/
|
4071
4084
|
onMatrixCellValueChanged: EventBase<SurveyModel>;
|
4072
4085
|
/*
|
4073
4086
|
* The event is fired on changing cell value in Matrix Dynamic and Matrix Dropdown questions. You may change the `options.value` property to change a cell value.
|
4074
|
-
*
|
4075
|
-
*
|
4076
|
-
*
|
4077
|
-
*
|
4078
|
-
*
|
4079
|
-
*
|
4080
|
-
*
|
4087
|
+
* `sender` - the survey object that fires the event.
|
4088
|
+
* `options.question` - the matrix question.
|
4089
|
+
* `options.columnName` - the matrix column name.
|
4090
|
+
* `options.value` - a new value.
|
4091
|
+
* `options.oldValue` - the old value.
|
4092
|
+
* `options.row` - the matrix row object.
|
4093
|
+
* `options.getCellQuestion(columnName)` - the function that returns a cell question by column name.
|
4081
4094
|
*/
|
4082
4095
|
onMatrixCellValueChanging: EventBase<SurveyModel>;
|
4083
4096
|
/*
|
4084
4097
|
* The event is fired when Matrix Dynamic and Matrix Dropdown questions validate the cell value.
|
4085
|
-
*
|
4086
|
-
*
|
4087
|
-
*
|
4088
|
-
*
|
4089
|
-
*
|
4090
|
-
*
|
4091
|
-
*
|
4098
|
+
* `sender` - the survey object that fires the event.
|
4099
|
+
* `options.error` - an error string. It is empty by default.
|
4100
|
+
* `options.question` - the matrix question.
|
4101
|
+
* `options.columnName` - the matrix column name.
|
4102
|
+
* `options.value` - a cell value.
|
4103
|
+
* `options.row` - the matrix row object.
|
4104
|
+
* `options.getCellQuestion(columnName)` - the function that returns the cell question by column name.
|
4092
4105
|
*/
|
4093
4106
|
onMatrixCellValidate: EventBase<SurveyModel>;
|
4094
4107
|
/*
|
4095
4108
|
* The event is fired on adding a new panel in Panel Dynamic question.
|
4096
|
-
*
|
4097
|
-
*
|
4098
|
-
*
|
4109
|
+
* `sender` - the survey object that fires the event.
|
4110
|
+
* `options.question` - a panel question.
|
4111
|
+
* `options.panel` - an added panel.
|
4099
4112
|
*/
|
4100
4113
|
onDynamicPanelAdded: EventBase<SurveyModel>;
|
4101
4114
|
/*
|
4102
4115
|
* The event is fired on removing a panel from Panel Dynamic question.
|
4103
|
-
*
|
4104
|
-
*
|
4105
|
-
*
|
4106
|
-
*
|
4116
|
+
* `sender` - the survey object that fires the event.
|
4117
|
+
* `options.question` - a panel question.
|
4118
|
+
* `options.panelIndex` - a removed panel index.
|
4119
|
+
* `options.panel` - a removed panel.
|
4107
4120
|
*/
|
4108
4121
|
onDynamicPanelRemoved: EventBase<SurveyModel>;
|
4109
4122
|
/*
|
@@ -4112,92 +4125,92 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4112
4125
|
onTimer: EventBase<SurveyModel>;
|
4113
4126
|
/*
|
4114
4127
|
* The event is fired before displaying a new information in the Timer Panel. Use it to change the default text.
|
4115
|
-
*
|
4116
|
-
*
|
4128
|
+
* `sender` - the survey object that fires the event.
|
4129
|
+
* `options.text` - the timer panel info text.
|
4117
4130
|
*/
|
4118
4131
|
onTimerPanelInfoText: EventBase<SurveyModel>;
|
4119
4132
|
/*
|
4120
4133
|
* The event is fired when item value is changed in Panel Dynamic question.
|
4121
|
-
*
|
4122
|
-
*
|
4123
|
-
*
|
4124
|
-
*
|
4125
|
-
*
|
4126
|
-
*
|
4127
|
-
*
|
4134
|
+
* `sender` - the survey object that fires the event.
|
4135
|
+
* `options.question` - the panel question.
|
4136
|
+
* `options.panel` - the dynamic panel item.
|
4137
|
+
* `options.name` - the item name.
|
4138
|
+
* `options.value` - a new value.
|
4139
|
+
* `options.itemIndex` - the panel item index.
|
4140
|
+
* `options.itemValue` - the panel item object.
|
4128
4141
|
*/
|
4129
4142
|
onDynamicPanelItemValueChanged: EventBase<SurveyModel>;
|
4130
4143
|
/*
|
4131
4144
|
* Use this event to define, whether an answer to a question is correct or not.
|
4132
|
-
*
|
4133
|
-
*
|
4134
|
-
*
|
4135
|
-
*
|
4145
|
+
* `sender` - the survey object that fires the event.
|
4146
|
+
* `options.question` - a question on which you have to decide if the answer is correct or not.
|
4147
|
+
* `options.result` - returns `true`, if an answer is correct, or `false`, if the answer is not correct. Use questions' `value` and `correctAnswer` properties to return the correct value.
|
4148
|
+
* `options.correctAnswers` - you may change the default number of correct or incorrect answers in the question, for example for matrix, where each row is a quiz question.
|
4136
4149
|
*/
|
4137
4150
|
onIsAnswerCorrect: EventBase<SurveyModel>;
|
4138
4151
|
/*
|
4139
4152
|
* Use this event to control drag&drop operations during design mode.
|
4140
|
-
*
|
4141
|
-
*
|
4142
|
-
*
|
4143
|
-
*
|
4144
|
-
*
|
4145
|
-
*
|
4146
|
-
*
|
4153
|
+
* `sender` - the survey object that fires the event.
|
4154
|
+
* `options.allow` - set it to `false` to disable dragging.
|
4155
|
+
* `options.target` - a target element that is dragged.
|
4156
|
+
* `options.source` - a source element. It can be `null`, if it is a new element, dragging from toolbox.
|
4157
|
+
* `options.parent` - a page or panel where target element is dragging.
|
4158
|
+
* `options.insertBefore` - an element before the target element is dragging. It can be `null` if parent container (page or panel) is empty or dragging an element after the last element in a container.
|
4159
|
+
* `options.insertAfter` - an element after the target element is dragging. It can be `null` if parent container (page or panel) is empty or dragging element to the first position within the parent container.
|
4147
4160
|
*/
|
4148
4161
|
onDragDropAllow: EventBase<SurveyModel>;
|
4149
4162
|
/*
|
4150
4163
|
* Use this event to control scrolling element to top. You can cancel the default behavior by setting options.cancel property to true.
|
4151
|
-
*
|
4152
|
-
*
|
4153
|
-
*
|
4154
|
-
*
|
4155
|
-
*
|
4156
|
-
*
|
4164
|
+
* `sender` - the survey object that fires the event.
|
4165
|
+
* `options.element` - an element that is going to be scrolled on top.
|
4166
|
+
* `options.question` - a question that is going to be scrolled on top. It can be null if options.page is not null.
|
4167
|
+
* `options.page` - a page that is going to be scrolled on top. It can be null if options.question is not null.
|
4168
|
+
* `options.elementId` - the unique element DOM Id.
|
4169
|
+
* `options.cancel` - set this property to true to cancel the default scrolling.
|
4157
4170
|
*/
|
4158
4171
|
onScrollingElementToTop: EventBase<SurveyModel>;
|
4159
4172
|
onLocaleChangedEvent: EventBase<SurveyModel>;
|
4160
4173
|
/*
|
4161
4174
|
* Use this event to create/customize actions to be displayed in a question's title.
|
4162
|
-
*
|
4163
|
-
*
|
4164
|
-
*
|
4175
|
+
* `sender` - A [Survey](https://surveyjs.io/Documentation/Library?id=SurveyModel) object that fires the event.
|
4176
|
+
* `options.question` - A [Question](https://surveyjs.io/Documentation/Library?id=Question) object for which the event is fired.
|
4177
|
+
* `options.titleActions` - A list of actions ([IAction](https://surveyjs.io/Documentation/Library?id=IAction) objects) associated with the processed question.
|
4165
4178
|
*/
|
4166
4179
|
onGetQuestionTitleActions: EventBase<SurveyModel>;
|
4167
4180
|
/*
|
4168
4181
|
* Use this event to create/customize actions to be displayed in a panel's title.
|
4169
|
-
*
|
4170
|
-
*
|
4171
|
-
*
|
4182
|
+
* `sender` - A survey object that fires the event.
|
4183
|
+
* `options.panel` - A panel ([PanelModel](https://surveyjs.io/Documentation/Library?id=panelmodel) object) for which the event is fired.
|
4184
|
+
* `options.titleActions` - A list of actions ([IAction](https://surveyjs.io/Documentation/Library?id=IAction) objects) associated with the processed panel.
|
4172
4185
|
*/
|
4173
4186
|
onGetPanelTitleActions: EventBase<SurveyModel>;
|
4174
4187
|
/*
|
4175
4188
|
* Use this event to create/customize actions to be displayed in a page's title.
|
4176
|
-
*
|
4177
|
-
*
|
4178
|
-
*
|
4189
|
+
* `sender` - A survey object that fires the event.
|
4190
|
+
* `options.page` - A page ([PageModel](https://surveyjs.io/Documentation/Library?id=pagemodel) object) for which the event is fired.
|
4191
|
+
* `options.titleActions` - A list of actions ([IAction](https://surveyjs.io/Documentation/Library?id=IAction) objects) associated with the processed page.
|
4179
4192
|
*/
|
4180
4193
|
onGetPageTitleActions: EventBase<SurveyModel>;
|
4181
4194
|
/*
|
4182
4195
|
* Use this event to create/customize actions to be displayed in a matrix question's row.
|
4183
|
-
*
|
4184
|
-
*
|
4185
|
-
*
|
4186
|
-
*
|
4196
|
+
* `sender` - A survey object that fires the event.
|
4197
|
+
* `options.question` - A matrix question ([QuestionMatrixBaseModel](https://surveyjs.io/Documentation/Library?id=questionmatrixbasemodel) object) for which the event is fired.
|
4198
|
+
* `options.row` - A matrix row for which the event is fired.
|
4199
|
+
* `options.actions` - A list of actions ([IAction](https://surveyjs.io/Documentation/Library?id=IAction) objects) associated with the processed matrix question and row.
|
4187
4200
|
*/
|
4188
4201
|
onGetMatrixRowActions: EventBase<SurveyModel>;
|
4189
4202
|
/*
|
4190
4203
|
* The event is fired after the survey element content was collapsed or expanded.
|
4191
|
-
*
|
4192
|
-
*
|
4204
|
+
* `sender` - the survey object that fires the event.
|
4205
|
+
* `options.element` - Specifies which survey element content was collapsed or expanded.
|
4193
4206
|
*/
|
4194
4207
|
onElementContentVisibilityChanged: EventBase<SurveyModel>;
|
4195
4208
|
/*
|
4196
4209
|
* The event is fired before expression question convert it's value into display value for rendering.
|
4197
|
-
*
|
4198
|
-
*
|
4199
|
-
*
|
4200
|
-
*
|
4210
|
+
* `sender` - the survey object that fires the event.
|
4211
|
+
* `options.question` - The expression question.
|
4212
|
+
* `options.value` - The question value.
|
4213
|
+
* `options.displayValue` - the display value that you can change before rendering.
|
4201
4214
|
*/
|
4202
4215
|
onGetExpressionDisplayValue: EventBase<SurveyModel>;
|
4203
4216
|
/*
|
@@ -5358,6 +5371,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5358
5371
|
getObjects(pages: any, questions: any): Array<any>;
|
5359
5372
|
setTriggerValue(name: string, value: any, isVariable: boolean): void;
|
5360
5373
|
copyTriggerValue(name: string, fromName: string): void;
|
5374
|
+
triggerExecuted(trigger: Trigger): void;
|
5361
5375
|
isFocusingQuestion: boolean;
|
5362
5376
|
isMovingQuestion: boolean;
|
5363
5377
|
startMovingQuestion(): void;
|
@@ -5705,6 +5719,7 @@ export declare class SurveyTrigger extends Trigger {
|
|
5705
5719
|
setOwner(owner: ISurveyTriggerOwner): void;
|
5706
5720
|
getSurvey(live?: boolean): ISurvey;
|
5707
5721
|
get isOnNextPage(): boolean;
|
5722
|
+
protected onSuccessExecuted(): void;
|
5708
5723
|
}
|
5709
5724
|
export declare class SurveyWindow extends Survey {
|
5710
5725
|
constructor(props: any);
|
@@ -5769,7 +5784,7 @@ export declare class Variable extends Const {
|
|
5769
5784
|
protected isContentEqual(op: Operand): boolean;
|
5770
5785
|
}
|
5771
5786
|
export declare class DragDropRankingChoices extends DragDropChoices {
|
5772
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
5787
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
5773
5788
|
protected get draggedElementType(): string;
|
5774
5789
|
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
5775
5790
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
@@ -6100,9 +6115,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6100
6115
|
commentElement: any;
|
6101
6116
|
/*
|
6102
6117
|
* The event is fired when isReady property of question is changed.
|
6103
|
-
*
|
6104
|
-
*
|
6105
|
-
*
|
6118
|
+
* options.question - the question
|
6119
|
+
* options.isReady - current value of isReady
|
6120
|
+
* options.oldIsReady - old value of isReady
|
6106
6121
|
*/
|
6107
6122
|
onReadyChanged: EventBase<Question>;
|
6108
6123
|
isReadOnlyRenderDiv(): boolean;
|
@@ -6830,6 +6845,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
|
|
6830
6845
|
get isStarted(): boolean;
|
6831
6846
|
protected calcCssClasses(css: any): any;
|
6832
6847
|
get cssTitle(): string;
|
6848
|
+
get cssRoot(): string;
|
6833
6849
|
num: number;
|
6834
6850
|
/*
|
6835
6851
|
* Set this property to "hide" to make "Prev", "Next" and "Complete" buttons are invisible for this page. Set this property to "show" to make these buttons visible, even if survey showNavigationButtons property is false.
|
@@ -7104,7 +7120,7 @@ export declare class QuestionExpressionModel extends Question {
|
|
7104
7120
|
get locFormat(): LocalizableString;
|
7105
7121
|
/*
|
7106
7122
|
* The Expression that used to calculate the question value. You may use standard operators like +, -, * and /, squares (). Here is the example of accessing the question value {questionname}.
|
7107
|
-
*
|
7123
|
+
* Example: "({quantity} * {price}) * (100 - {discount}) / 100"
|
7108
7124
|
*/
|
7109
7125
|
get expression(): string;
|
7110
7126
|
set expression(val: string);
|
@@ -7157,8 +7173,8 @@ export declare class QuestionFileModel extends Question {
|
|
7157
7173
|
isDragging: boolean;
|
7158
7174
|
/*
|
7159
7175
|
* The event is fired after question state has been changed.
|
7160
|
-
*
|
7161
|
-
*
|
7176
|
+
* sender the question object that fires the event
|
7177
|
+
* options.state new question state value.
|
7162
7178
|
*/
|
7163
7179
|
onStateChanged: EventBase<QuestionFileModel>;
|
7164
7180
|
previewValue: any;
|
@@ -7288,6 +7304,11 @@ export declare class QuestionFileModel extends Question {
|
|
7288
7304
|
* Clear value programmatically.
|
7289
7305
|
*/
|
7290
7306
|
clear(doneCallback?: any): void;
|
7307
|
+
get multipleRendered(): string;
|
7308
|
+
get showRemoveButton(): any;
|
7309
|
+
get showRemoveButtonBottom(): any;
|
7310
|
+
defaultImage(data: any): boolean;
|
7311
|
+
get imageWidthRendered(): string;
|
7291
7312
|
/*
|
7292
7313
|
* Remove file item programmatically.
|
7293
7314
|
*/
|
@@ -7596,10 +7617,10 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
7596
7617
|
set panelCount(val: number);
|
7597
7618
|
/*
|
7598
7619
|
* Use this property to allow the end-user to collapse/expand the panels. It works only if the renderMode property equals to "list" and templateTitle property is not empty. The following values are available:
|
7599
|
-
*
|
7600
|
-
*
|
7601
|
-
*
|
7602
|
-
*
|
7620
|
+
* default - the default value. User can't collapse/expand panels
|
7621
|
+
* expanded - User can collapse/expand panels and all panels are expanded by default
|
7622
|
+
* collapsed - User can collapse/expand panels and all panels are collapsed by default
|
7623
|
+
* firstExpanded - User can collapse/expand panels. The first panel is expanded and others are collapsed
|
7603
7624
|
*/
|
7604
7625
|
get panelsState(): string;
|
7605
7626
|
set panelsState(val: string);
|
@@ -7794,6 +7815,7 @@ export declare class QuestionRatingModel extends Question {
|
|
7794
7815
|
get renderedRateItems(): any;
|
7795
7816
|
getType(): string;
|
7796
7817
|
protected getFirstInputElementId(): string;
|
7818
|
+
getInputId(index: number): string;
|
7797
7819
|
supportGoNextPageAutomatic(): boolean;
|
7798
7820
|
supportComment(): boolean;
|
7799
7821
|
supportOther(): boolean;
|
@@ -7814,13 +7836,8 @@ export declare class QuestionRatingModel extends Question {
|
|
7814
7836
|
get hasMinLabel(): boolean;
|
7815
7837
|
get hasMaxLabel(): boolean;
|
7816
7838
|
/*
|
7817
|
-
* Specifies whether a Rating question displays the [minRateDescription](https://surveyjs.io/Documentation/Library?id=questionratingmodel#minRateDescription)
|
7818
|
-
* and [maxRateDescription](https://surveyjs.io/Documentation/Library?id=questionratingmodel#maxRateDescription)
|
7819
|
-
* the extreme (first and last) rate items. If any of these properties is empty, the corresponding rate item's value/text is used for display.<br/>
|
7820
|
-
* When the `displayRateDescriptionsAsExtremeItems` property is disabled, the texts defined through
|
7821
|
-
* the [minRateDescription](https://surveyjs.io/Documentation/Library?id=questionratingmodel#minRateDescription)
|
7822
|
-
* and [maxRateDescription](https://surveyjs.io/Documentation/Library?id=questionratingmodel#maxRateDescription) properties
|
7823
|
-
* are displayed as plain non-clickable texts.
|
7839
|
+
* Specifies whether a Rating question displays the [minRateDescription](https://surveyjs.io/Documentation/Library?id=questionratingmodel#minRateDescription) and [maxRateDescription](https://surveyjs.io/Documentation/Library?id=questionratingmodel#maxRateDescription) property texts as buttons that correspond to the extreme (first and last) rate items. If any of these properties is empty, the corresponding rate item's value/text is used for display.
|
7840
|
+
* When the `displayRateDescriptionsAsExtremeItems` property is disabled, the texts defined through the [minRateDescription](https://surveyjs.io/Documentation/Library?id=questionratingmodel#minRateDescription) and [maxRateDescription](https://surveyjs.io/Documentation/Library?id=questionratingmodel#maxRateDescription) properties are displayed as plain non-clickable texts.
|
7824
7841
|
*/
|
7825
7842
|
displayRateDescriptionsAsExtremeItems: boolean;
|
7826
7843
|
useDropdown: "auto" | "always" | "never";
|
@@ -8019,6 +8036,7 @@ export declare class QuestionSelectBase extends Question {
|
|
8019
8036
|
protected updateVisibleChoices(): void;
|
8020
8037
|
protected canUseFilteredChoices(): boolean;
|
8021
8038
|
setCanShowOptionItemCallback(func: (item: ItemValue) => boolean): void;
|
8039
|
+
get newItem(): ItemValue;
|
8022
8040
|
protected addToVisibleChoices(items: any, isAddAll: boolean): void;
|
8023
8041
|
protected canShowOptionItem(item: ItemValue, isAddAll: boolean, hasItem: boolean): boolean;
|
8024
8042
|
/*
|
@@ -8122,13 +8140,15 @@ export declare class QuestionSignaturePadModel extends Question {
|
|
8122
8140
|
/*
|
8123
8141
|
* Use it to set the specific width for the signature pad.
|
8124
8142
|
*/
|
8125
|
-
get
|
8126
|
-
set
|
8143
|
+
get signatureWidth(): number;
|
8144
|
+
set signatureWidth(val: number);
|
8127
8145
|
/*
|
8128
8146
|
* Use it to set the specific height for the signature pad.
|
8129
8147
|
*/
|
8130
|
-
get
|
8131
|
-
set
|
8148
|
+
get signatureHeight(): number;
|
8149
|
+
set signatureHeight(val: number);
|
8150
|
+
get height(): number;
|
8151
|
+
set height(val: number);
|
8132
8152
|
/*
|
8133
8153
|
* Use it to clear content of the signature pad.
|
8134
8154
|
*/
|
@@ -8151,6 +8171,7 @@ export declare class QuestionSignaturePadModel extends Question {
|
|
8151
8171
|
get clearButtonCaption(): string;
|
8152
8172
|
needShowPlaceholder(): boolean;
|
8153
8173
|
get placeHolderText(): string;
|
8174
|
+
endLoadingFromJson(): void;
|
8154
8175
|
}
|
8155
8176
|
/*
|
8156
8177
|
* A Base Model for a comment and text questions
|
@@ -8349,8 +8370,6 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
8349
8370
|
*/
|
8350
8371
|
export declare class QuestionDropdownModel extends QuestionSelectBase {
|
8351
8372
|
constructor(name: string);
|
8352
|
-
onOpened: EventBase<QuestionDropdownModel>;
|
8353
|
-
onOpenedCallBack(): void;
|
8354
8373
|
/*
|
8355
8374
|
* This flag controls whether to show options caption item ('Choose...').
|
8356
8375
|
*/
|
@@ -8388,13 +8407,19 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8388
8407
|
*/
|
8389
8408
|
get autoComplete(): string;
|
8390
8409
|
set autoComplete(val: string);
|
8410
|
+
showClearButton: boolean;
|
8411
|
+
itemComponent: string;
|
8391
8412
|
denySearch: boolean;
|
8392
8413
|
dropdownWidthMode: "contentWidth" | "editorWidth";
|
8393
8414
|
getControlClass(): string;
|
8394
8415
|
get readOnlyText(): any;
|
8416
|
+
onClear(event: any): void;
|
8395
8417
|
protected onVisibleChoicesChanged(): void;
|
8396
8418
|
_popupModel: any;
|
8397
8419
|
get popupModel(): any;
|
8420
|
+
onOpened: EventBase<QuestionDropdownModel>;
|
8421
|
+
onOpenedCallBack(): void;
|
8422
|
+
onClick(event: any): void;
|
8398
8423
|
}
|
8399
8424
|
/*
|
8400
8425
|
* A Model for html question. Unlike other questions it doesn't have value and title.
|
@@ -8862,6 +8887,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
8862
8887
|
export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
|
8863
8888
|
constructor(props: any);
|
8864
8889
|
protected renderSelect(cssClasses: any): JSX.Element;
|
8890
|
+
createClearButton(): JSX.Element;
|
8865
8891
|
}
|
8866
8892
|
/*
|
8867
8893
|
* A Model for a button group question.
|
@@ -8884,6 +8910,12 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
8884
8910
|
protected onCreating(): void;
|
8885
8911
|
protected getFirstInputElementId(): string;
|
8886
8912
|
/*
|
8913
|
+
* Set this property if you want to store the checkbox value as array of objects instead of array of values
|
8914
|
+
* For example: if "valuePropertyName" equals car, then instead of having ["Ford", "Tesla"], you will have [{car: "Ford"}, {car: "Tesla"}]
|
8915
|
+
*/
|
8916
|
+
get valuePropertyName(): string;
|
8917
|
+
set valuePropertyName(val: string);
|
8918
|
+
/*
|
8887
8919
|
* Returns the select all item. By using this property, you may change programmatically it's value and text.
|
8888
8920
|
*/
|
8889
8921
|
get selectAllItem(): ItemValue;
|
@@ -8951,6 +8983,10 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
8951
8983
|
protected setDefaultValueWithOthers(): void;
|
8952
8984
|
protected getHasOther(val: any): boolean;
|
8953
8985
|
protected valueFromData(val: any): any;
|
8986
|
+
protected rendredValueFromData(val: any): any;
|
8987
|
+
protected rendredValueToData(val: any): any;
|
8988
|
+
protected convertValueFromObject(val: any): any;
|
8989
|
+
protected convertValueToObject(val: any): any;
|
8954
8990
|
protected renderedValueFromDataCore(val: any): any;
|
8955
8991
|
protected rendredValueToDataCore(val: any): any;
|
8956
8992
|
get checkBoxSvgPath(): string;
|
@@ -9184,7 +9220,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9184
9220
|
set addRowText(val: string);
|
9185
9221
|
get locAddRowText(): LocalizableString;
|
9186
9222
|
/*
|
9187
|
-
* By default the 'Add Row' button is shown on bottom if columnLayout is horizontal and on top if columnLayout is vertical.
|
9223
|
+
* By default the 'Add Row' button is shown on bottom if columnLayout is horizontal and on top if columnLayout is vertical.
|
9188
9224
|
* You may set it to "top", "bottom" or "topBottom" (to show on top and bottom).
|
9189
9225
|
*/
|
9190
9226
|
get addRowLocation(): string;
|
@@ -9284,6 +9320,11 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
9284
9320
|
setGhostText: (text: string) => void;
|
9285
9321
|
getIconHoverCss(): string;
|
9286
9322
|
getIconFocusCss(): string;
|
9323
|
+
/*
|
9324
|
+
* For mobile devices. Set this property to false, to disable the "long tap" before drag start. Default is true.
|
9325
|
+
*/
|
9326
|
+
get longTap(): boolean;
|
9327
|
+
set longTap(val: boolean);
|
9287
9328
|
}
|
9288
9329
|
export declare function property(options?: any): (target: any, key: string) => void;
|
9289
9330
|
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
@@ -9307,6 +9348,11 @@ export declare var settings: {
|
|
9307
9348
|
caseSensitive: boolean,
|
9308
9349
|
},
|
9309
9350
|
/*
|
9351
|
+
* Set this value to false, if you want to have UTC fuctions, for example setUTCHours inside our functions, like today.
|
9352
|
+
* By default it uses setHours function, with local date
|
9353
|
+
*/
|
9354
|
+
useLocalTimeZone: boolean,
|
9355
|
+
/*
|
9310
9356
|
* The prefix that uses to store the question comment, as {questionName} + {commentPrefix}.
|
9311
9357
|
* The default
|
9312
9358
|
*/
|
@@ -9622,6 +9668,7 @@ export declare var defaultStandardCss: {
|
|
9622
9668
|
rootRadio: string,
|
9623
9669
|
item: string,
|
9624
9670
|
control: string,
|
9671
|
+
controlCheckbox: string,
|
9625
9672
|
itemChecked: string,
|
9626
9673
|
itemIndeterminate: string,
|
9627
9674
|
itemDisabled: string,
|
@@ -9673,6 +9720,10 @@ export declare var defaultStandardCss: {
|
|
9673
9720
|
control: string,
|
9674
9721
|
selectWrapper: string,
|
9675
9722
|
other: string,
|
9723
|
+
cleanButton: string,
|
9724
|
+
cleanButtonSvg: string,
|
9725
|
+
cleanButtonIconId: string,
|
9726
|
+
controlValue: string,
|
9676
9727
|
},
|
9677
9728
|
html: {
|
9678
9729
|
root: string,
|
@@ -9980,6 +10031,7 @@ export declare var defaultBootstrapCss: {
|
|
9980
10031
|
rootRadio: string,
|
9981
10032
|
item: string,
|
9982
10033
|
control: string,
|
10034
|
+
controlCheckbox: string,
|
9983
10035
|
itemChecked: string,
|
9984
10036
|
itemIndeterminate: string,
|
9985
10037
|
itemDisabled: string,
|
@@ -10300,6 +10352,7 @@ export declare var defaultBootstrapMaterialCss: {
|
|
10300
10352
|
rootRadio: string,
|
10301
10353
|
item: string,
|
10302
10354
|
control: string,
|
10355
|
+
controlCheckbox: string,
|
10303
10356
|
itemChecked: string,
|
10304
10357
|
itemIndeterminate: string,
|
10305
10358
|
itemDisabled: string,
|
@@ -10544,6 +10597,7 @@ export declare var defaultV2Css: {
|
|
10544
10597
|
logo: string,
|
10545
10598
|
logoImage: string,
|
10546
10599
|
headerText: string,
|
10600
|
+
headerClose: string,
|
10547
10601
|
navigationButton: string,
|
10548
10602
|
bodyNavigationButton: string,
|
10549
10603
|
completedPage: string,
|
@@ -10620,6 +10674,7 @@ export declare var defaultV2Css: {
|
|
10620
10674
|
progressTextInBar: string,
|
10621
10675
|
page: {
|
10622
10676
|
root: string,
|
10677
|
+
emptyHeaderRoot: string,
|
10623
10678
|
title: string,
|
10624
10679
|
description: string,
|
10625
10680
|
},
|
@@ -10658,7 +10713,6 @@ export declare var defaultV2Css: {
|
|
10658
10713
|
footer: string,
|
10659
10714
|
formGroup: string,
|
10660
10715
|
hasError: string,
|
10661
|
-
disabled: string,
|
10662
10716
|
collapsed: string,
|
10663
10717
|
nested: string,
|
10664
10718
|
invisible: string,
|
@@ -10736,6 +10790,7 @@ export declare var defaultV2Css: {
|
|
10736
10790
|
radioFieldset: string,
|
10737
10791
|
itemOnError: string,
|
10738
10792
|
control: string,
|
10793
|
+
controlCheckbox: string,
|
10739
10794
|
itemChecked: string,
|
10740
10795
|
itemIndeterminate: string,
|
10741
10796
|
itemDisabled: string,
|
@@ -10778,7 +10833,11 @@ export declare var defaultV2Css: {
|
|
10778
10833
|
itemHover: string,
|
10779
10834
|
itemControl: string,
|
10780
10835
|
itemDecorator: string,
|
10836
|
+
cleanButton: string,
|
10837
|
+
cleanButtonSvg: string,
|
10838
|
+
cleanButtonIconId: string,
|
10781
10839
|
control: string,
|
10840
|
+
controlValue: string,
|
10782
10841
|
controlDisabled: string,
|
10783
10842
|
controlEmpty: string,
|
10784
10843
|
controlLabel: string,
|
@@ -10814,6 +10873,7 @@ export declare var defaultV2Css: {
|
|
10814
10873
|
rowError: string,
|
10815
10874
|
cell: string,
|
10816
10875
|
headerCell: string,
|
10876
|
+
rowTextCell: string,
|
10817
10877
|
label: string,
|
10818
10878
|
itemOnError: string,
|
10819
10879
|
itemValue: string,
|
@@ -11212,6 +11272,7 @@ export declare var modernCss: {
|
|
11212
11272
|
small: string,
|
11213
11273
|
item: string,
|
11214
11274
|
control: string,
|
11275
|
+
controlCheckbox: string,
|
11215
11276
|
itemChecked: string,
|
11216
11277
|
itemIndeterminate: string,
|
11217
11278
|
itemDisabled: string,
|
@@ -11224,6 +11285,9 @@ export declare var modernCss: {
|
|
11224
11285
|
checkedPath: string,
|
11225
11286
|
uncheckedPath: string,
|
11226
11287
|
indeterminatePath: string,
|
11288
|
+
svgIconCheckedId: string,
|
11289
|
+
svgIconUncheckedId: string,
|
11290
|
+
svgIconIndId: string,
|
11227
11291
|
},
|
11228
11292
|
text: {
|
11229
11293
|
root: string,
|
@@ -11245,6 +11309,10 @@ export declare var modernCss: {
|
|
11245
11309
|
selectWrapper: string,
|
11246
11310
|
other: string,
|
11247
11311
|
onError: string,
|
11312
|
+
cleanButton: string,
|
11313
|
+
cleanButtonSvg: string,
|
11314
|
+
cleanButtonIconId: string,
|
11315
|
+
controlValue: string,
|
11248
11316
|
},
|
11249
11317
|
imagepicker: {
|
11250
11318
|
root: string,
|