survey-react 1.9.52 → 1.9.54
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 +72 -28
- package/defaultV2.min.css +2 -2
- package/modern.css +13 -10
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +368 -230
- package/survey.react.js +1403 -765
- 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.54
|
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
|
*/
|
@@ -891,11 +891,11 @@ export declare class Base {
|
|
891
891
|
protected runConditionCore(values: any, properties: any): void;
|
892
892
|
protected canRunConditions(): boolean;
|
893
893
|
/*
|
894
|
-
*
|
894
|
+
* Registers a function to call when a property value changes.
|
895
895
|
*/
|
896
896
|
registerPropertyChangedHandlers(propertyNames: any, handler: any, key?: string): void;
|
897
897
|
/*
|
898
|
-
*
|
898
|
+
* Unregisters value change event handlers for the specified properties.
|
899
899
|
*/
|
900
900
|
unregisterPropertyChangedHandlers(propertyNames: any, key?: string): void;
|
901
901
|
registerFunctionOnPropertyValueChanged(name: string, func: any, key?: string): void;
|
@@ -923,6 +923,7 @@ export declare class Base {
|
|
923
923
|
protected setArray(name: string, src: any, dest: any, isItemValues: boolean, onPush: any): void;
|
924
924
|
protected isTwoValueEquals(x: any, y: any, caseInSensitive?: boolean, trimString?: boolean): boolean;
|
925
925
|
protected copyCssClasses(dest: any, source: any): void;
|
926
|
+
getElementsInDesign(includeHidden?: boolean): Array<IElement>;
|
926
927
|
}
|
927
928
|
export declare class Bindings {
|
928
929
|
constructor(obj: Base);
|
@@ -2709,7 +2710,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
2709
2710
|
popup: any;
|
2710
2711
|
containerRef: any;
|
2711
2712
|
get model(): any;
|
2712
|
-
protected getStateElement():
|
2713
|
+
protected getStateElement(): Base;
|
2713
2714
|
componentDidMount(): void;
|
2714
2715
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2715
2716
|
componentWillUnmount(): void;
|
@@ -2717,40 +2718,43 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
2717
2718
|
render(): JSX.Element;
|
2718
2719
|
}
|
2719
2720
|
export declare class PopupBaseViewModel extends Base {
|
2720
|
-
constructor(model: any
|
2721
|
-
|
2722
|
-
|
2723
|
-
prevActiveElement: any;
|
2724
|
-
scrollEventCallBack: any;
|
2721
|
+
constructor(model: any);
|
2722
|
+
protected prevActiveElement: any;
|
2723
|
+
protected footerToolbarValue: any;
|
2725
2724
|
top: string;
|
2726
2725
|
left: string;
|
2727
2726
|
height: string;
|
2728
2727
|
width: string;
|
2729
2728
|
minWidth: string;
|
2730
2729
|
isVisible: boolean;
|
2731
|
-
popupDirection: string;
|
2732
|
-
pointerTarget: IPosition;
|
2733
2730
|
container: any;
|
2731
|
+
protected hidePopup(): void;
|
2732
|
+
protected getStyleClass(): CssClassBuilder;
|
2733
|
+
protected getShowFooter(): boolean;
|
2734
|
+
protected getShowHeader(): boolean;
|
2735
|
+
protected getPopupHeaderTemplate(): string;
|
2736
|
+
protected createFooterActionBar(): void;
|
2734
2737
|
_model: any;
|
2735
2738
|
get model(): any;
|
2736
2739
|
set model(val: any);
|
2737
2740
|
get title(): string;
|
2738
2741
|
get contentComponentName(): string;
|
2739
2742
|
get contentComponentData(): any;
|
2740
|
-
get showPointer(): boolean;
|
2741
2743
|
get isModal(): boolean;
|
2742
2744
|
get isFocusedContent(): boolean;
|
2743
2745
|
get showFooter(): boolean;
|
2746
|
+
get showHeader(): boolean;
|
2747
|
+
get popupHeaderTemplate(): string;
|
2744
2748
|
get isOverlay(): boolean;
|
2745
2749
|
get styleClass(): string;
|
2750
|
+
get cancelButtonText(): string;
|
2751
|
+
get footerToolbar(): any;
|
2746
2752
|
onKeyDown(event: any): void;
|
2753
|
+
switchFocus(): void;
|
2747
2754
|
updateOnShowing(): void;
|
2748
2755
|
updateOnHiding(): void;
|
2749
2756
|
clickOutside(): void;
|
2750
2757
|
cancel(): void;
|
2751
|
-
apply(): void;
|
2752
|
-
get cancelButtonText(): string;
|
2753
|
-
get applyButtonText(): string;
|
2754
2758
|
dispose(): void;
|
2755
2759
|
initializePopupContainer(): void;
|
2756
2760
|
unmountPopupContainer(): void;
|
@@ -2760,16 +2764,14 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
|
|
2760
2764
|
prevIsVisible: boolean;
|
2761
2765
|
handleKeydown: (event: any) => void;
|
2762
2766
|
get model(): any;
|
2763
|
-
protected getStateElement():
|
2767
|
+
protected getStateElement(): Base;
|
2764
2768
|
clickInside: (ev: any) => void;
|
2765
2769
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2766
|
-
renderContainer(): JSX.Element;
|
2767
|
-
|
2768
|
-
renderHeader(): JSX.Element;
|
2770
|
+
renderContainer(PopupBaseViewModel: any): JSX.Element;
|
2771
|
+
renderHeaderContent(): JSX.Element;
|
2769
2772
|
renderContent(): JSX.Element;
|
2770
|
-
|
2771
|
-
|
2772
|
-
renderFooter(): JSX.Element;
|
2773
|
+
protected renderHeaderPopup(popupModel: any): JSX.Element;
|
2774
|
+
protected renderFooter(popuModel: any): JSX.Element;
|
2773
2775
|
render(): JSX.Element;
|
2774
2776
|
}
|
2775
2777
|
export declare class PopupModel<T = any> extends Base {
|
@@ -3633,6 +3635,34 @@ export declare class NumericValidator extends SurveyValidator {
|
|
3633
3635
|
get maxValue(): number;
|
3634
3636
|
set maxValue(val: number);
|
3635
3637
|
}
|
3638
|
+
export declare class PopupDropdownContainer extends PopupContainer {
|
3639
|
+
constructor(props: any);
|
3640
|
+
protected renderHeaderPopup(popupModel: any): JSX.Element;
|
3641
|
+
}
|
3642
|
+
export declare class PopupDropdownViewModel extends PopupBaseViewModel {
|
3643
|
+
constructor(model: any, targetElement?: any);
|
3644
|
+
targetElement: any;
|
3645
|
+
isAutoScroll: boolean;
|
3646
|
+
scrollEventCallBack: any;
|
3647
|
+
protected hidePopup(): void;
|
3648
|
+
protected getStyleClass(): CssClassBuilder;
|
3649
|
+
protected getShowHeader(): boolean;
|
3650
|
+
protected getPopupHeaderTemplate(): string;
|
3651
|
+
popupDirection: string;
|
3652
|
+
pointerTarget: IPosition;
|
3653
|
+
updateOnShowing(): void;
|
3654
|
+
updateOnHiding(): void;
|
3655
|
+
}
|
3656
|
+
export declare class PopupModalViewModel extends PopupBaseViewModel {
|
3657
|
+
constructor(model: any);
|
3658
|
+
protected getStyleClass(): CssClassBuilder;
|
3659
|
+
protected getShowFooter(): boolean;
|
3660
|
+
protected createFooterActionBar(): void;
|
3661
|
+
get applyButtonText(): string;
|
3662
|
+
apply(): void;
|
3663
|
+
clickOutside(): void;
|
3664
|
+
onKeyDown(event: any): void;
|
3665
|
+
}
|
3636
3666
|
export declare class PopupSurvey extends Survey {
|
3637
3667
|
constructor(props: any);
|
3638
3668
|
protected popup: any;
|
@@ -3695,7 +3725,7 @@ export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
|
3695
3725
|
/*
|
3696
3726
|
* A base class for all survey elements.
|
3697
3727
|
*/
|
3698
|
-
export declare class SurveyElement extends SurveyElementCore implements ISurveyElement {
|
3728
|
+
export declare class SurveyElement<E = any> extends SurveyElementCore implements ISurveyElement {
|
3699
3729
|
constructor(name: string);
|
3700
3730
|
stateChangedCallback: any;
|
3701
3731
|
static getProgressInfoByElements(children: any, isRequired: boolean): IProgressInfo;
|
@@ -3703,7 +3733,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3703
3733
|
surveyDataValue: ISurveyData;
|
3704
3734
|
surveyValue: ISurvey;
|
3705
3735
|
textProcessorValue: ITextProcessor;
|
3706
|
-
selectedElementInDesignValue:
|
3736
|
+
selectedElementInDesignValue: any;
|
3707
3737
|
dragTypeOverMe: DragTypeOverMeEnum;
|
3708
3738
|
isDragMe: boolean;
|
3709
3739
|
readOnlyChangedCallback: any;
|
@@ -3714,6 +3744,15 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3714
3744
|
disableDesignActions: boolean;
|
3715
3745
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
3716
3746
|
protected getSkeletonComponentNameCore(): string;
|
3747
|
+
parentQuestionValue: any;
|
3748
|
+
/*
|
3749
|
+
* A Dynamic Panel, Dynamic Matrix, or Dropdown Matrix that includes the current question.
|
3750
|
+
*
|
3751
|
+
* This property is `null` for standalone questions.
|
3752
|
+
*/
|
3753
|
+
get parentQuestion(): any;
|
3754
|
+
setParentQuestion(val: any): void;
|
3755
|
+
protected onParentQuestionChanged(): void;
|
3717
3756
|
get skeletonComponentName(): string;
|
3718
3757
|
/*
|
3719
3758
|
* Gets and sets the survey element's expand state.
|
@@ -3833,9 +3872,8 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3833
3872
|
get containsErrors(): boolean;
|
3834
3873
|
updateContainsErrors(): void;
|
3835
3874
|
protected getContainsErrors(): boolean;
|
3836
|
-
|
3837
|
-
|
3838
|
-
set selectedElementInDesign(val: SurveyElement);
|
3875
|
+
get selectedElementInDesign(): any;
|
3876
|
+
set selectedElementInDesign(val: any);
|
3839
3877
|
updateCustomWidgets(): void;
|
3840
3878
|
onSurveyLoad(): void;
|
3841
3879
|
onFirstRendering(): void;
|
@@ -3884,6 +3922,8 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3884
3922
|
protected get isDefaultV2Theme(): boolean;
|
3885
3923
|
get isErrorsModeTooltip(): boolean;
|
3886
3924
|
protected getIsErrorsModeTooltip(): boolean;
|
3925
|
+
protected getIsTooltipErrorSupportedByParent(): boolean;
|
3926
|
+
protected getIsTooltipErrorInsideSupported(): boolean;
|
3887
3927
|
get hasParent(): boolean;
|
3888
3928
|
isSingleInRow: boolean;
|
3889
3929
|
protected get hasFrameV2(): boolean;
|
@@ -6119,6 +6159,7 @@ export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
|
|
6119
6159
|
protected get handlePointerDown(): (event: any) => void;
|
6120
6160
|
protected get cssClasses(): any;
|
6121
6161
|
protected get itemClass(): string;
|
6162
|
+
protected get itemTabIndex(): number;
|
6122
6163
|
protected get question(): any;
|
6123
6164
|
protected renderElement(): JSX.Element;
|
6124
6165
|
}
|
@@ -6257,7 +6298,7 @@ export declare class MultiSelectListModel extends ListModel {
|
|
6257
6298
|
/*
|
6258
6299
|
* A base class for a Panel and Page objects.
|
6259
6300
|
*/
|
6260
|
-
export declare class PanelModelBase extends SurveyElement implements IPanel, IConditionRunner, ISurveyErrorOwner, ITitleOwner {
|
6301
|
+
export declare class PanelModelBase extends SurveyElement<Question> implements IPanel, IConditionRunner, ISurveyErrorOwner, ITitleOwner {
|
6261
6302
|
constructor(name?: string);
|
6262
6303
|
static panelCounter: number;
|
6263
6304
|
elementsValue: any;
|
@@ -6389,7 +6430,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
6389
6430
|
protected hasErrorsCore(rec: any): void;
|
6390
6431
|
protected getContainsErrors(): boolean;
|
6391
6432
|
updateElementVisibility(): void;
|
6392
|
-
getFirstQuestionToFocus(withError?: boolean): Question;
|
6433
|
+
getFirstQuestionToFocus(withError?: boolean, ignoreCollapseState?: boolean): Question;
|
6393
6434
|
/*
|
6394
6435
|
* Call it to focus the input on the first question
|
6395
6436
|
*/
|
@@ -6519,7 +6560,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
6519
6560
|
/*
|
6520
6561
|
* A base class for all questions.
|
6521
6562
|
*/
|
6522
|
-
export declare class Question extends SurveyElement implements IQuestion, IConditionRunner, IValidatorOwner, ITitleOwner {
|
6563
|
+
export declare class Question extends SurveyElement<Question> implements IQuestion, IConditionRunner, IValidatorOwner, ITitleOwner {
|
6523
6564
|
constructor(name: string);
|
6524
6565
|
static TextPreprocessorValuesMap: any;
|
6525
6566
|
static questionCounter: number;
|
@@ -6666,15 +6707,6 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6666
6707
|
*/
|
6667
6708
|
get parent(): IPanel;
|
6668
6709
|
set parent(val: IPanel);
|
6669
|
-
parentQuestionValue: Question;
|
6670
|
-
/*
|
6671
|
-
* A Dynamic Panel, Dynamic Matrix, or Dropdown Matrix that includes the current question.
|
6672
|
-
*
|
6673
|
-
* This property is `null` for standalone questions.
|
6674
|
-
*/
|
6675
|
-
get parentQuestion(): Question;
|
6676
|
-
setParentQuestion(val: Question): void;
|
6677
|
-
protected onParentQuestionChanged(): void;
|
6678
6710
|
protected onParentChanged(): void;
|
6679
6711
|
/*
|
6680
6712
|
* Returns `false` if the `titleLocation` property is set to `"hidden"` or if the question cannot have a title (for example, an [HTML](https://surveyjs.io/form-library/documentation/questionhtmlmodel) question).
|
@@ -6741,13 +6773,13 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6741
6773
|
set requiredErrorText(val: string);
|
6742
6774
|
get locRequiredErrorText(): LocalizableString;
|
6743
6775
|
/*
|
6744
|
-
* Specifies a caption displayed above the comment area. Applies when the `
|
6776
|
+
* Specifies a caption displayed above the comment area. Applies when the `showCommentArea` property is `true`.
|
6745
6777
|
*/
|
6746
6778
|
get commentText(): string;
|
6747
6779
|
set commentText(val: string);
|
6748
6780
|
get locCommentText(): LocalizableString;
|
6749
6781
|
/*
|
6750
|
-
* A placeholder for the comment area. Applies when the `
|
6782
|
+
* A placeholder for the comment area. Applies when the `showCommentArea` property is `true`.
|
6751
6783
|
*/
|
6752
6784
|
get commentPlaceholder(): string;
|
6753
6785
|
set commentPlaceholder(val: string);
|
@@ -6798,6 +6830,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6798
6830
|
showErrorOnCore(location: string): boolean;
|
6799
6831
|
get showErrorOnTop(): boolean;
|
6800
6832
|
get showErrorOnBottom(): boolean;
|
6833
|
+
protected getIsTooltipErrorSupportedByParent(): boolean;
|
6801
6834
|
get showErrorsAboveQuestion(): boolean;
|
6802
6835
|
get showErrorsBelowQuestion(): boolean;
|
6803
6836
|
get cssError(): string;
|
@@ -6839,8 +6872,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6839
6872
|
get requiredIf(): string;
|
6840
6873
|
set requiredIf(val: string);
|
6841
6874
|
/*
|
6842
|
-
* Specifies whether to display a comment area. Incompatible with the `
|
6875
|
+
* Specifies whether to display a comment area. Incompatible with the `showOtherItem` property.
|
6843
6876
|
*/
|
6877
|
+
get showCommentArea(): boolean;
|
6878
|
+
set showCommentArea(val: boolean);
|
6844
6879
|
get hasComment(): boolean;
|
6845
6880
|
set hasComment(val: boolean);
|
6846
6881
|
/*
|
@@ -6851,8 +6886,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6851
6886
|
get ariaTitleId(): string;
|
6852
6887
|
get ariaRole(): string;
|
6853
6888
|
/*
|
6854
|
-
* Specifies whether to display the "Other" choice item. Incompatible with the `
|
6889
|
+
* Specifies whether to display the "Other" choice item. Incompatible with the `showCommentArea` property.
|
6855
6890
|
*/
|
6891
|
+
get showOtherItem(): boolean;
|
6892
|
+
set showOtherItem(val: boolean);
|
6856
6893
|
get hasOther(): boolean;
|
6857
6894
|
set hasOther(val: boolean);
|
6858
6895
|
protected hasOtherChanged(): void;
|
@@ -6983,7 +7020,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6983
7020
|
protected isValueExpression(val: any): boolean;
|
6984
7021
|
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: (val: any) => void, values?: any, properties?: any): void;
|
6985
7022
|
/*
|
6986
|
-
* A comment to the selected question value. Enable the `
|
7023
|
+
* A comment to the selected question value. Enable the `showCommentArea` property to allow users to leave comments.
|
6987
7024
|
*/
|
6988
7025
|
get comment(): string;
|
6989
7026
|
set comment(val: string);
|
@@ -7222,6 +7259,7 @@ export declare class SurveyTriggerComplete extends SurveyTrigger {
|
|
7222
7259
|
*/
|
7223
7260
|
export declare class SurveyTriggerCopyValue extends SurveyTrigger {
|
7224
7261
|
constructor();
|
7262
|
+
protected canBeExecuted(isOnNextPage: boolean): boolean;
|
7225
7263
|
get setToName(): string;
|
7226
7264
|
set setToName(val: string);
|
7227
7265
|
get fromName(): string;
|
@@ -7247,6 +7285,7 @@ export declare class SurveyTriggerRunExpression extends SurveyTrigger {
|
|
7247
7285
|
export declare class SurveyTriggerSetValue extends SurveyTrigger {
|
7248
7286
|
constructor();
|
7249
7287
|
getType(): string;
|
7288
|
+
protected canBeExecuted(isOnNextPage: boolean): boolean;
|
7250
7289
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
7251
7290
|
get setToName(): string;
|
7252
7291
|
set setToName(val: string);
|
@@ -7459,60 +7498,62 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
7459
7498
|
getContainerCss(): string;
|
7460
7499
|
}
|
7461
7500
|
/*
|
7462
|
-
* A
|
7501
|
+
* A class that describes the Boolean question type.
|
7502
|
+
*
|
7503
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-boolean/ (linkStyle))
|
7463
7504
|
*/
|
7464
7505
|
export declare class QuestionBooleanModel extends Question {
|
7465
7506
|
constructor(name: string);
|
7466
7507
|
getType(): string;
|
7467
7508
|
isLayoutTypeSupported(layoutType: string): boolean;
|
7468
7509
|
supportGoNextPageAutomatic(): boolean;
|
7469
|
-
/*
|
7470
|
-
* Returns true if the question check will be rendered in indeterminate mode. value is empty.
|
7471
|
-
*/
|
7472
7510
|
get isIndeterminate(): boolean;
|
7473
7511
|
get hasTitle(): boolean;
|
7474
7512
|
/*
|
7475
|
-
*
|
7513
|
+
* Gets or sets the question value as a Boolean value.
|
7514
|
+
*
|
7515
|
+
* If you set the `valueTrue` and `valueFalse` properties, the `value` property contains their values instead of Boolean values. This may be inconvenient when you operate the question value in code. To access the standard Boolean values, use the `booleanValue` property.
|
7476
7516
|
*/
|
7517
|
+
get booleanValue(): any;
|
7518
|
+
set booleanValue(val: any);
|
7477
7519
|
get checkedValue(): any;
|
7478
7520
|
set checkedValue(val: any);
|
7479
|
-
/*
|
7480
|
-
* Set the default state of the check: "indeterminate" - default (value is empty/null), "true" - value equals valueTrue or true, "false" - value equals valueFalse or false.
|
7481
|
-
*/
|
7482
7521
|
get defaultValue(): any;
|
7483
7522
|
set defaultValue(val: any);
|
7484
7523
|
getDefaultValue(): any;
|
7485
7524
|
get locTitle(): LocalizableString;
|
7486
|
-
/*
|
7487
|
-
* The checkbox label. If it is empty and showTitle is false then title is rendered
|
7488
|
-
*/
|
7489
7525
|
get label(): string;
|
7490
7526
|
set label(val: string);
|
7491
7527
|
get locLabel(): LocalizableString;
|
7492
7528
|
get locDisplayLabel(): LocalizableString;
|
7493
7529
|
/*
|
7494
|
-
*
|
7530
|
+
* Gets or sets a text label that corresponds to a positive answer.
|
7531
|
+
*
|
7532
|
+
* Default value: "Yes"
|
7495
7533
|
*/
|
7496
7534
|
get labelTrue(): any;
|
7497
7535
|
set labelTrue(val: any);
|
7498
7536
|
get locLabelTrue(): LocalizableString;
|
7499
7537
|
get isDeterminated(): boolean;
|
7500
7538
|
/*
|
7501
|
-
*
|
7539
|
+
* Gets or sets a text label that corresponds to a negative answer.
|
7540
|
+
*
|
7541
|
+
* Default value: "No"
|
7502
7542
|
*/
|
7503
7543
|
get labelFalse(): any;
|
7504
7544
|
set labelFalse(val: any);
|
7505
7545
|
get locLabelFalse(): LocalizableString;
|
7506
|
-
/*
|
7507
|
-
* Set this property to true to show the question title. It is hidden by default.
|
7508
|
-
*/
|
7509
7546
|
showTitle: boolean;
|
7510
7547
|
/*
|
7511
|
-
*
|
7548
|
+
* A value to save in survey results when respondents give a positive answer.
|
7549
|
+
*
|
7550
|
+
* Default value: `true`
|
7512
7551
|
*/
|
7513
7552
|
valueTrue: any;
|
7514
7553
|
/*
|
7515
|
-
*
|
7554
|
+
* A value to save in survey results when respondents give a negative answer.
|
7555
|
+
*
|
7556
|
+
* Default value: `false`
|
7516
7557
|
*/
|
7517
7558
|
valueFalse: any;
|
7518
7559
|
protected setDefaultValue(): void;
|
@@ -7541,7 +7582,7 @@ export declare class QuestionCustomModelBase extends Question implements ISurvey
|
|
7541
7582
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
7542
7583
|
onFirstRendering(): void;
|
7543
7584
|
protected getElement(): SurveyElement;
|
7544
|
-
protected initElement(el:
|
7585
|
+
protected initElement(el: any): void;
|
7545
7586
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
7546
7587
|
onSurveyLoad(): void;
|
7547
7588
|
afterRenderQuestionElement(el: any): void;
|
@@ -7580,7 +7621,9 @@ export declare class QuestionEmptyModel extends Question {
|
|
7580
7621
|
getType(): string;
|
7581
7622
|
}
|
7582
7623
|
/*
|
7583
|
-
* A
|
7624
|
+
* A class that describes the Expression question type. It is a read-only question type that calculates a value based on a specified expression.
|
7625
|
+
*
|
7626
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-expression/ (linkStyle))
|
7584
7627
|
*/
|
7585
7628
|
export declare class QuestionExpressionModel extends Question {
|
7586
7629
|
constructor(name: string);
|
@@ -7589,14 +7632,15 @@ export declare class QuestionExpressionModel extends Question {
|
|
7589
7632
|
getType(): string;
|
7590
7633
|
get hasInput(): boolean;
|
7591
7634
|
/*
|
7592
|
-
*
|
7635
|
+
* A string that formats a question value. Use `{0}` to reference the question value in the format string.
|
7593
7636
|
*/
|
7594
7637
|
get format(): string;
|
7595
7638
|
set format(val: string);
|
7596
7639
|
get locFormat(): LocalizableString;
|
7597
7640
|
/*
|
7598
|
-
*
|
7599
|
-
*
|
7641
|
+
* An expression used to calculate the question value.
|
7642
|
+
*
|
7643
|
+
* Refer to the following help topic for more information: [Expressions](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#expressions).
|
7600
7644
|
*/
|
7601
7645
|
get expression(): string;
|
7602
7646
|
set expression(val: string);
|
@@ -7606,12 +7650,16 @@ export declare class QuestionExpressionModel extends Question {
|
|
7606
7650
|
protected canCollectErrors(): boolean;
|
7607
7651
|
protected hasRequiredError(): boolean;
|
7608
7652
|
/*
|
7609
|
-
* The maximum number of fraction digits
|
7653
|
+
* The maximum number of fraction digits. Applies only if the `displayStyle` property is not `"none"`. Accepts values in the range from -1 to 20, where -1 disables the property.
|
7654
|
+
*
|
7655
|
+
* Default value: -1
|
7610
7656
|
*/
|
7611
7657
|
get maximumFractionDigits(): number;
|
7612
7658
|
set maximumFractionDigits(val: number);
|
7613
7659
|
/*
|
7614
|
-
* The minimum number of fraction digits
|
7660
|
+
* The minimum number of fraction digits. Applies only if the `displayStyle` property is not `"none"`. Accepts values in the range from -1 to 20, where -1 disables the property.
|
7661
|
+
*
|
7662
|
+
* Default value: -1
|
7615
7663
|
*/
|
7616
7664
|
get minimumFractionDigits(): number;
|
7617
7665
|
set minimumFractionDigits(val: number);
|
@@ -7624,33 +7672,52 @@ export declare class QuestionExpressionModel extends Question {
|
|
7624
7672
|
updateValueFromSurvey(newValue: any): void;
|
7625
7673
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
7626
7674
|
/*
|
7627
|
-
*
|
7675
|
+
* Specifies a display style for the question value.
|
7676
|
+
*
|
7677
|
+
* Possible values:
|
7678
|
+
*
|
7679
|
+
* - `"decimal"`
|
7680
|
+
* - `"currency"`
|
7681
|
+
* - `"percent"`
|
7682
|
+
* - `"date"`
|
7683
|
+
* - `"none"` (default)
|
7684
|
+
*
|
7685
|
+
* If you use the `"currency"` display style, you can also set the `currency` property to specify a currency other than USD.
|
7628
7686
|
*/
|
7629
7687
|
get displayStyle(): string;
|
7630
7688
|
set displayStyle(val: string);
|
7631
7689
|
/*
|
7632
|
-
*
|
7690
|
+
* A three-letter currency code. Applies only if the `displayStyle` property is set to `"currency"`.
|
7691
|
+
*
|
7692
|
+
* Default value: "USD".
|
7633
7693
|
*/
|
7634
7694
|
get currency(): string;
|
7635
7695
|
set currency(val: string);
|
7636
7696
|
/*
|
7637
|
-
*
|
7697
|
+
* Specifies whether to use grouping separators in number representation. Separators depend on the selected [locale](https://surveyjs.io/form-library/documentation/surveymodel#locale).
|
7698
|
+
*
|
7699
|
+
* Default value: `true`
|
7638
7700
|
*/
|
7639
7701
|
get useGrouping(): boolean;
|
7640
7702
|
set useGrouping(val: boolean);
|
7641
7703
|
protected getValueAsStr(val: any): string;
|
7642
7704
|
}
|
7643
7705
|
/*
|
7644
|
-
* A
|
7706
|
+
* A class that describes the File question type.
|
7707
|
+
*
|
7708
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-file/ (linkStyle))
|
7645
7709
|
*/
|
7646
7710
|
export declare class QuestionFileModel extends Question {
|
7647
7711
|
constructor(name: string);
|
7648
7712
|
isUploading: boolean;
|
7649
7713
|
isDragging: boolean;
|
7650
7714
|
/*
|
7651
|
-
*
|
7652
|
-
*
|
7653
|
-
*
|
7715
|
+
* An event that is raised after the upload state has changed.
|
7716
|
+
*
|
7717
|
+
* Parameters:
|
7718
|
+
*
|
7719
|
+
* - `sender` - A question instance that raised the event.
|
7720
|
+
* - `options.state` - Current upload state: `"empty"`, `"loading"`, `"loaded"`, or `"error"`.
|
7654
7721
|
*/
|
7655
7722
|
onStateChanged: EventBase<QuestionFileModel>;
|
7656
7723
|
previewValue: any;
|
@@ -7658,21 +7725,25 @@ export declare class QuestionFileModel extends Question {
|
|
7658
7725
|
indexToShow: number;
|
7659
7726
|
containsMultiplyFiles: boolean;
|
7660
7727
|
mobileFileNavigator: any;
|
7661
|
-
prevFileAction: Action;
|
7662
|
-
nextFileAction: Action;
|
7663
|
-
fileIndexAction: Action;
|
7728
|
+
protected prevFileAction: Action;
|
7729
|
+
protected nextFileAction: Action;
|
7730
|
+
protected fileIndexAction: Action;
|
7664
7731
|
get mobileFileNavigatorVisible(): boolean;
|
7665
7732
|
protected updateElementCssCore(cssClasses: any): void;
|
7666
7733
|
isPreviewVisible(index: number): boolean;
|
7667
7734
|
getType(): string;
|
7668
7735
|
clearOnDeletingContainer(): void;
|
7669
7736
|
/*
|
7670
|
-
*
|
7737
|
+
* Disable this property only to implement a custom preview.
|
7738
|
+
*
|
7739
|
+
* [View "Custom Preview" Demo](https://surveyjs.io/form-library/examples/file-custom-preview/ (linkStyle))
|
7671
7740
|
*/
|
7672
7741
|
get showPreview(): boolean;
|
7673
7742
|
set showPreview(val: boolean);
|
7674
7743
|
/*
|
7675
|
-
*
|
7744
|
+
* Specifies whether users can upload multiple files.
|
7745
|
+
*
|
7746
|
+
* Default value: `false`
|
7676
7747
|
*/
|
7677
7748
|
get allowMultiple(): boolean;
|
7678
7749
|
set allowMultiple(val: boolean);
|
@@ -7687,98 +7758,72 @@ export declare class QuestionFileModel extends Question {
|
|
7687
7758
|
get imageWidth(): string;
|
7688
7759
|
set imageWidth(val: string);
|
7689
7760
|
/*
|
7690
|
-
*
|
7761
|
+
* An [accept](https://www.w3schools.com/tags/att_input_accept.asp) attribute value for the underlying `<input>` element.
|
7691
7762
|
*/
|
7692
7763
|
get acceptedTypes(): string;
|
7693
7764
|
set acceptedTypes(val: string);
|
7694
7765
|
/*
|
7695
|
-
*
|
7696
|
-
*
|
7766
|
+
* Specifies whether to store file content as text in `SurveyModel`'s [`data`](https://surveyjs.io/form-library/documentation/surveymodel#data) property.
|
7767
|
+
*
|
7768
|
+
* If you disable this property, implement `SurveyModel`'s [`onUploadFiles`](https://surveyjs.io/form-library/documentation/surveymodel#onUploadFiles) event handler to specify how to store file content.
|
7697
7769
|
*/
|
7698
7770
|
get storeDataAsText(): boolean;
|
7699
7771
|
set storeDataAsText(val: boolean);
|
7700
7772
|
/*
|
7701
|
-
*
|
7773
|
+
* Enable this property if you want to wait until files are uploaded to complete the survey.
|
7774
|
+
*
|
7775
|
+
* Default value: `false`
|
7702
7776
|
*/
|
7703
7777
|
get waitForUpload(): boolean;
|
7704
7778
|
set waitForUpload(val: boolean);
|
7705
7779
|
/*
|
7706
|
-
*
|
7780
|
+
* Specifies whether to show a preview of image files.
|
7707
7781
|
*/
|
7708
7782
|
get allowImagesPreview(): boolean;
|
7709
7783
|
set allowImagesPreview(val: boolean);
|
7710
7784
|
/*
|
7711
|
-
*
|
7785
|
+
* Maximum allowed file size, measured in bytes.
|
7786
|
+
*
|
7787
|
+
* Default value: 0 (unlimited)
|
7712
7788
|
*/
|
7713
7789
|
get maxSize(): number;
|
7714
7790
|
set maxSize(val: number);
|
7715
7791
|
/*
|
7716
|
-
*
|
7792
|
+
* Specifies whether users should confirm file deletion.
|
7793
|
+
*
|
7794
|
+
* Default value: `false`
|
7717
7795
|
*/
|
7718
7796
|
get needConfirmRemoveFile(): boolean;
|
7719
7797
|
set needConfirmRemoveFile(val: boolean);
|
7720
|
-
/*
|
7721
|
-
* The remove file confirmation message.
|
7722
|
-
*/
|
7723
7798
|
getConfirmRemoveMessage(fileName: string): string;
|
7724
|
-
/*
|
7725
|
-
* The remove file confirmation message template.
|
7726
|
-
*/
|
7727
7799
|
get confirmRemoveMessage(): string;
|
7728
7800
|
set confirmRemoveMessage(val: string);
|
7729
7801
|
get locConfirmRemoveMessage(): LocalizableString;
|
7730
|
-
/*
|
7731
|
-
* The remove all files confirmation message.
|
7732
|
-
*/
|
7733
7802
|
get confirmRemoveAllMessage(): string;
|
7734
7803
|
set confirmRemoveAllMessage(val: string);
|
7735
7804
|
get locConfirmRemoveAllMessage(): LocalizableString;
|
7736
|
-
/*
|
7737
|
-
* The no file chosen caption for modern theme.
|
7738
|
-
*/
|
7739
7805
|
get noFileChosenCaption(): string;
|
7740
7806
|
set noFileChosenCaption(val: string);
|
7741
7807
|
get locNoFileChosenCaption(): LocalizableString;
|
7742
|
-
/*
|
7743
|
-
* The choose files button caption for modern theme.
|
7744
|
-
*/
|
7745
7808
|
get chooseButtonCaption(): string;
|
7746
7809
|
set chooseButtonCaption(val: string);
|
7747
7810
|
get locChooseButtonCaption(): LocalizableString;
|
7748
|
-
|
7749
|
-
|
7750
|
-
|
7751
|
-
get cleanButtonCaption(): string;
|
7752
|
-
set cleanButtonCaption(val: string);
|
7753
|
-
get locCleanButtonCaption(): LocalizableString;
|
7754
|
-
/*
|
7755
|
-
* The remove file button caption.
|
7756
|
-
*/
|
7811
|
+
get clearButtonCaption(): string;
|
7812
|
+
set clearButtonCaption(val: string);
|
7813
|
+
get locClearButtonCaption(): LocalizableString;
|
7757
7814
|
get removeFileCaption(): string;
|
7758
7815
|
set removeFileCaption(val: string);
|
7759
7816
|
get locRemoveFileCaption(): LocalizableString;
|
7760
|
-
/*
|
7761
|
-
* The loading file input title.
|
7762
|
-
*/
|
7763
7817
|
get loadingFileTitle(): string;
|
7764
7818
|
set loadingFileTitle(val: string);
|
7765
7819
|
get locLoadingFileTitle(): LocalizableString;
|
7766
|
-
/*
|
7767
|
-
* The choose file input title.
|
7768
|
-
*/
|
7769
7820
|
get chooseFileTitle(): string;
|
7770
7821
|
set chooseFileTitle(val: string);
|
7771
7822
|
get locChooseFileTitle(): LocalizableString;
|
7772
7823
|
get dragAreaPlaceholder(): string;
|
7773
7824
|
set dragAreaPlaceholder(val: string);
|
7774
7825
|
get locDragAreaPlaceholder(): LocalizableString;
|
7775
|
-
/*
|
7776
|
-
* The input title value.
|
7777
|
-
*/
|
7778
7826
|
get inputTitle(): string;
|
7779
|
-
/*
|
7780
|
-
* Clear value programmatically.
|
7781
|
-
*/
|
7782
7827
|
clear(doneCallback?: any): void;
|
7783
7828
|
get multipleRendered(): string;
|
7784
7829
|
get showRemoveButton(): any;
|
@@ -7786,11 +7831,12 @@ export declare class QuestionFileModel extends Question {
|
|
7786
7831
|
defaultImage(data: any): boolean;
|
7787
7832
|
get imageWidthRendered(): string;
|
7788
7833
|
/*
|
7789
|
-
*
|
7834
|
+
* Removes a file with a specified name.
|
7790
7835
|
*/
|
7791
|
-
removeFile(
|
7836
|
+
removeFile(name: string): void;
|
7837
|
+
protected removeFileByContent(content: any): void;
|
7792
7838
|
/*
|
7793
|
-
*
|
7839
|
+
* Loads multiple files into the question.
|
7794
7840
|
*/
|
7795
7841
|
loadFiles(files: any): void;
|
7796
7842
|
canPreviewImage(fileItem: any): boolean;
|
@@ -7804,6 +7850,10 @@ export declare class QuestionFileModel extends Question {
|
|
7804
7850
|
getReadOnlyFileCss(): string;
|
7805
7851
|
get fileRootCss(): string;
|
7806
7852
|
getFileDecoratorCss(): string;
|
7853
|
+
rootElement: any;
|
7854
|
+
afterRender(el: any): void;
|
7855
|
+
dragCounter: number;
|
7856
|
+
onDragEnter: (event: any) => void;
|
7807
7857
|
onDragOver: (event: any) => boolean;
|
7808
7858
|
onDrop: (event: any) => void;
|
7809
7859
|
onDragLeave: (event: any) => void;
|
@@ -7952,9 +8002,12 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
7952
8002
|
getItemLabelCss(item: MultipleTextItemModel): string;
|
7953
8003
|
getItemCss(): string;
|
7954
8004
|
getItemTitleCss(): string;
|
8005
|
+
protected getIsTooltipErrorInsideSupported(): boolean;
|
7955
8006
|
}
|
7956
8007
|
/*
|
7957
|
-
* A
|
8008
|
+
* A base class for question types that cannot have a value ([Html](https://surveyjs.io/form-library/documentation/questionhtmlmodel), [Image](https://surveyjs.io/form-library/documentation/questionimagemodel)).
|
8009
|
+
*
|
8010
|
+
* This class does not implement new functionality—it only redefines default values of certain properties inherited from the [`Question`](https://surveyjs.io/form-library/documentation/question) class.
|
7958
8011
|
*/
|
7959
8012
|
export declare class QuestionNonValue extends Question {
|
7960
8013
|
constructor(name: string);
|
@@ -8275,9 +8328,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
8275
8328
|
*/
|
8276
8329
|
export declare class QuestionRatingModel extends Question {
|
8277
8330
|
constructor(name: string);
|
8278
|
-
rateValuesChangedCallback: any;
|
8279
8331
|
endLoadingFromJson(): void;
|
8280
|
-
onSurveyLoad(): void;
|
8281
8332
|
/*
|
8282
8333
|
* The list of rate items. Every item has value and text. If text is empty, the value is rendered. The item text supports markdown. If it is empty the array is generated by using rateMin, rateMax and rateStep properties.
|
8283
8334
|
*/
|
@@ -8300,7 +8351,8 @@ export declare class QuestionRatingModel extends Question {
|
|
8300
8351
|
set rateStep(val: number);
|
8301
8352
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
8302
8353
|
get visibleRateValues(): any;
|
8303
|
-
|
8354
|
+
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
8355
|
+
renderedRateItems: any;
|
8304
8356
|
getType(): string;
|
8305
8357
|
protected getFirstInputElementId(): string;
|
8306
8358
|
getInputId(index: number): string;
|
@@ -8360,7 +8412,7 @@ export declare class QuestionRatingModel extends Question {
|
|
8360
8412
|
protected getDesktopRenderAs(): string;
|
8361
8413
|
}
|
8362
8414
|
/*
|
8363
|
-
*
|
8415
|
+
* A base class for multiple-choice question types ([Checkbox](https://surveyjs.io/form-library/documentation/questioncheckboxmodel), [Dropdown](https://surveyjs.io/form-library/documentation/questiondropdownmodel), [Radiogroup](https://surveyjs.io/form-library/documentation/questionradiogroupmodel), etc.).
|
8364
8416
|
*/
|
8365
8417
|
export declare class QuestionSelectBase extends Question {
|
8366
8418
|
constructor(name: string);
|
@@ -8389,35 +8441,51 @@ export declare class QuestionSelectBase extends Question {
|
|
8389
8441
|
localeChanged(): void;
|
8390
8442
|
locStrsChanged(): void;
|
8391
8443
|
/*
|
8392
|
-
* Returns the
|
8444
|
+
* Returns the "Other" choice item. Use this property to change the item's `value` or `text`.
|
8393
8445
|
*/
|
8394
8446
|
get otherItem(): ItemValue;
|
8395
8447
|
/*
|
8396
|
-
* Returns true if
|
8448
|
+
* Returns `true` if the "Other" choice item is selected.
|
8397
8449
|
*/
|
8398
8450
|
get isOtherSelected(): boolean;
|
8399
8451
|
/*
|
8400
|
-
*
|
8452
|
+
* Specifies whether to display the "None" choice item.
|
8453
|
+
*
|
8454
|
+
* When users select the "None" item in multi-select questions, all other items become unselected.
|
8401
8455
|
*/
|
8456
|
+
get showNoneItem(): boolean;
|
8457
|
+
set showNoneItem(val: boolean);
|
8402
8458
|
get hasNone(): boolean;
|
8403
8459
|
set hasNone(val: boolean);
|
8404
8460
|
/*
|
8405
|
-
* Returns the
|
8461
|
+
* Returns the "None" choice item. Use this property to change the item's `value` or `text`.
|
8406
8462
|
*/
|
8407
8463
|
get noneItem(): ItemValue;
|
8408
8464
|
/*
|
8409
|
-
*
|
8465
|
+
* Gets or sets a caption for the "None" choice item.
|
8410
8466
|
*/
|
8411
8467
|
get noneText(): string;
|
8412
8468
|
set noneText(val: string);
|
8413
8469
|
get locNoneText(): LocalizableString;
|
8414
8470
|
/*
|
8415
|
-
*
|
8471
|
+
* A Boolean expression that is evaluated against each choice item. If the expression evaluates to `false`, the choice item becomes hidden.
|
8472
|
+
*
|
8473
|
+
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
8474
|
+
*
|
8475
|
+
* Use the `{item}` placeholder to reference the current choice item in the expression.
|
8476
|
+
*
|
8477
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
8416
8478
|
*/
|
8417
8479
|
get choicesVisibleIf(): string;
|
8418
8480
|
set choicesVisibleIf(val: string);
|
8419
8481
|
/*
|
8420
|
-
*
|
8482
|
+
* A Boolean expression that is evaluated against each choice item. If the expression evaluates to `false`, the choice item becomes read-only.
|
8483
|
+
*
|
8484
|
+
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
8485
|
+
*
|
8486
|
+
* Use the `{item}` placeholder to reference the current choice item in the expression.
|
8487
|
+
*
|
8488
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
8421
8489
|
*/
|
8422
8490
|
get choicesEnableIf(): string;
|
8423
8491
|
set choicesEnableIf(val: string);
|
@@ -8461,50 +8529,78 @@ export declare class QuestionSelectBase extends Question {
|
|
8461
8529
|
*/
|
8462
8530
|
clearIncorrectValuesCallback: any;
|
8463
8531
|
/*
|
8464
|
-
*
|
8532
|
+
* Configures access to a RESTful service that returns choice items. Refer to the [ChoicesRestful](https://surveyjs.io/form-library/documentation/choicesrestful) class description for more information.
|
8533
|
+
*
|
8534
|
+
* [View "Dropdown + RESTful" demo](https://surveyjs.io/form-library/examples/questiontype-dropdownrestfull/ (linkStyle))
|
8465
8535
|
*/
|
8466
8536
|
get choicesByUrl(): ChoicesRestful;
|
8467
8537
|
set choicesByUrl(val: ChoicesRestful);
|
8468
8538
|
/*
|
8469
|
-
*
|
8539
|
+
* Gets or sets choice items. This property accepts an array of objects with the following structure:
|
8540
|
+
*
|
8541
|
+
* ```js
|
8542
|
+
* {
|
8543
|
+
* "value": any, // A value to be saved in the survey results
|
8544
|
+
* "text": String, // A display text. This property supports Markdown. When `text` is undefined, `value` is used.
|
8545
|
+
* "imageLink": String // A link to the image or video that represents this choice value. Applies only to Image Picker questions.
|
8546
|
+
* "customProperty": any // Any property that you find useful
|
8547
|
+
* }
|
8548
|
+
* ```
|
8549
|
+
*
|
8550
|
+
* Refer to the following help topic for information on how to add custom properties so that they are serialized into JSON: [Add Custom Properties to Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid#add-custom-properties-to-the-property-grid).
|
8551
|
+
*
|
8552
|
+
* If you need to specify only the `value` property, you can set the `choices` property to an array of primitive values, for example, `[ "item1", "item2", "item3" ]`. These values are both saved in survey results and used as display text.
|
8470
8553
|
*/
|
8471
8554
|
get choices(): any;
|
8472
8555
|
set choices(val: any);
|
8473
8556
|
/*
|
8474
|
-
*
|
8475
|
-
*
|
8476
|
-
*
|
8557
|
+
* Inherits choice items from a specified question. Accepts a question name.
|
8558
|
+
*
|
8559
|
+
* If you specify this property, the `choices`, `choicesVisibleIf`, `choicesEnableIf`, and `choicesOrder` properties do not apply because their values are inherited.
|
8560
|
+
*
|
8561
|
+
* In addition, you can specify the `choicesFromQuestionMode` property if you do not want to inherit all choice items.
|
8477
8562
|
*/
|
8478
8563
|
get choicesFromQuestion(): string;
|
8479
8564
|
set choicesFromQuestion(val: string);
|
8480
8565
|
/*
|
8481
|
-
*
|
8482
|
-
*
|
8566
|
+
* Specifies which choice items to inherit from another question. Applies only when the `choicesFromQuestion` property is specified.
|
8567
|
+
*
|
8568
|
+
* Possible values:
|
8569
|
+
*
|
8570
|
+
* - `"all"` (default) - Inherits all choice items.
|
8571
|
+
* - `"selected"` - Inherits only selected choice items.
|
8572
|
+
* - `"unselected"` - Inherits only unselected choice items.
|
8573
|
+
*
|
8574
|
+
* Use the `visibleChoices` property to access inherited choice items.
|
8483
8575
|
*/
|
8484
8576
|
get choicesFromQuestionMode(): string;
|
8485
8577
|
set choicesFromQuestionMode(val: string);
|
8486
8578
|
/*
|
8487
|
-
*
|
8579
|
+
* Specifies whether to hide the question if no choice items are visible.
|
8580
|
+
*
|
8581
|
+
* This property is useful if you show or hide choice items at runtime based on a [condition](https://surveyjs.io/form-library/documentation/questionselectbase#choicesVisibleIf).
|
8488
8582
|
*/
|
8489
8583
|
get hideIfChoicesEmpty(): boolean;
|
8490
8584
|
set hideIfChoicesEmpty(val: boolean);
|
8491
8585
|
get keepIncorrectValues(): boolean;
|
8492
8586
|
set keepIncorrectValues(val: boolean);
|
8493
|
-
/*
|
8494
|
-
* Please use survey.storeOthersAsComment to change the behavior on the survey level. This property is depricated and invisible in Survey Creator.
|
8495
|
-
* By default the entered text in the others input in the checkbox/radiogroup/dropdown are stored as "question name " + "-Comment". The value itself is "question name": "others". Set this property to false, to store the entered text directly in the "question name" key.
|
8496
|
-
* Possible values are: "default", true, false
|
8497
|
-
*/
|
8498
8587
|
get storeOthersAsComment(): any;
|
8499
8588
|
set storeOthersAsComment(val: any);
|
8500
8589
|
protected hasOtherChanged(): void;
|
8501
8590
|
/*
|
8502
|
-
*
|
8591
|
+
* Specifies the sort order of choice items.
|
8592
|
+
*
|
8593
|
+
* Possible values:
|
8594
|
+
*
|
8595
|
+
* - `"none"` (default) - Preserves the original order of choice items.
|
8596
|
+
* - `"asc"`- Sorts choice items in ascending order.
|
8597
|
+
* - `"desc"`- Sorts choice items in ascending order.
|
8598
|
+
* - `"random"` - Displays choice items in random order.
|
8503
8599
|
*/
|
8504
8600
|
get choicesOrder(): string;
|
8505
8601
|
set choicesOrder(val: string);
|
8506
8602
|
/*
|
8507
|
-
*
|
8603
|
+
* Gets or sets a caption for the "Other" choice item.
|
8508
8604
|
*/
|
8509
8605
|
get otherText(): string;
|
8510
8606
|
set otherText(val: string);
|
@@ -8514,7 +8610,7 @@ export declare class QuestionSelectBase extends Question {
|
|
8514
8610
|
*/
|
8515
8611
|
separateSpecialChoices: boolean;
|
8516
8612
|
/*
|
8517
|
-
*
|
8613
|
+
* A placeholder for the comment area. Applies when the `showOtherItem` or `showCommentArea` property is `true`.
|
8518
8614
|
*/
|
8519
8615
|
get otherPlaceholder(): string;
|
8520
8616
|
set otherPlaceholder(val: string);
|
@@ -8522,17 +8618,17 @@ export declare class QuestionSelectBase extends Question {
|
|
8522
8618
|
get otherPlaceHolder(): string;
|
8523
8619
|
set otherPlaceHolder(val: string);
|
8524
8620
|
/*
|
8525
|
-
*
|
8621
|
+
* Get or sets an error message displayed when users select the "Other" choice item but leave the comment area empty.
|
8526
8622
|
*/
|
8527
8623
|
get otherErrorText(): string;
|
8528
8624
|
set otherErrorText(val: string);
|
8529
8625
|
get locOtherErrorText(): LocalizableString;
|
8530
8626
|
/*
|
8531
|
-
*
|
8627
|
+
* An array of visible choice items. Includes the "Select All", "Other", and "None" choice items if they are visible. Items are sorted according to the `choicesOrder` value.
|
8532
8628
|
*/
|
8533
8629
|
get visibleChoices(): any;
|
8534
8630
|
/*
|
8535
|
-
*
|
8631
|
+
* An array of choice items with which users can interact. Includes the "Select All", "Other", and "None" choice items if they are not disabled. Items are sorted according to the `choicesOrder` value.
|
8536
8632
|
*/
|
8537
8633
|
get enabledChoices(): any;
|
8538
8634
|
protected updateVisibleChoices(): void;
|
@@ -8541,15 +8637,9 @@ export declare class QuestionSelectBase extends Question {
|
|
8541
8637
|
get newItem(): ItemValue;
|
8542
8638
|
protected addToVisibleChoices(items: any, isAddAll: boolean): void;
|
8543
8639
|
protected canShowOptionItem(item: ItemValue, isAddAll: boolean, hasItem: boolean): boolean;
|
8544
|
-
/*
|
8545
|
-
* For internal use in SurveyJS Creator V2.
|
8546
|
-
*/
|
8547
8640
|
isItemInList(item: ItemValue): boolean;
|
8548
8641
|
protected get isAddDefaultItems(): boolean;
|
8549
8642
|
getPlainData(options?: any): any;
|
8550
|
-
/*
|
8551
|
-
* Returns the text for the current value. If the value is null then returns empty string. If 'other' is selected then returns the text for other value.
|
8552
|
-
*/
|
8553
8643
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
8554
8644
|
protected getDisplayValueEmpty(): string;
|
8555
8645
|
protected getChoicesDisplayValue(items: any, val: any): any;
|
@@ -8586,7 +8676,9 @@ export declare class QuestionSelectBase extends Question {
|
|
8586
8676
|
protected hasValueToClearIncorrectValues(): boolean;
|
8587
8677
|
protected clearValueIfInvisibleCore(): void;
|
8588
8678
|
/*
|
8589
|
-
* Returns true if item is selected
|
8679
|
+
* Returns `true` if a passed choice item is selected.
|
8680
|
+
*
|
8681
|
+
* To obtain a choice item to check, use the `noneItem` or `otherItem` property or the `choices` array.
|
8590
8682
|
*/
|
8591
8683
|
isItemSelected(item: ItemValue): boolean;
|
8592
8684
|
protected isItemSelectedCore(item: ItemValue): boolean;
|
@@ -8688,20 +8780,21 @@ export declare class QuestionSignaturePadModel extends Question {
|
|
8688
8780
|
endLoadingFromJson(): void;
|
8689
8781
|
}
|
8690
8782
|
/*
|
8691
|
-
* A
|
8783
|
+
* A base class for the [Text](https://surveyjs.io/form-library/documentation/questiontextmodel) and [Comment](https://surveyjs.io/form-library/documentation/questioncommentmodel) question types.
|
8692
8784
|
*/
|
8693
8785
|
export declare class QuestionTextBase extends Question {
|
8694
8786
|
constructor(name: string);
|
8695
8787
|
protected isTextValue(): boolean;
|
8696
8788
|
/*
|
8697
|
-
* The maximum text length
|
8698
|
-
*
|
8789
|
+
* The maximum text length measured in characters. Assign 0 if the length should be unlimited.
|
8790
|
+
*
|
8791
|
+
* Default value: -1 (inherits the actual value from the `SurveyModel`'s [`maxTextLength`](https://surveyjs.io/form-library/documentation/surveymodel#maxTextLength) property).
|
8699
8792
|
*/
|
8700
8793
|
get maxLength(): number;
|
8701
8794
|
set maxLength(val: number);
|
8702
8795
|
getMaxLength(): any;
|
8703
8796
|
/*
|
8704
|
-
*
|
8797
|
+
* A placeholder for the input field.
|
8705
8798
|
*/
|
8706
8799
|
get placeholder(): string;
|
8707
8800
|
set placeholder(val: string);
|
@@ -8712,14 +8805,15 @@ export declare class QuestionTextBase extends Question {
|
|
8712
8805
|
getType(): string;
|
8713
8806
|
isEmpty(): boolean;
|
8714
8807
|
/*
|
8715
|
-
* Gets or sets a value that specifies
|
8808
|
+
* Gets or sets a value that specifies when to update the question value.
|
8716
8809
|
*
|
8717
|
-
*
|
8718
|
-
* - `default` - get the value from survey.textUpdateMode
|
8719
|
-
* - `onBlur` - the value is updated after an input loses the focus.
|
8720
|
-
* - `onTyping` - update the value of text questions, "text" and "comment", on every key press.
|
8810
|
+
* Possible values:
|
8721
8811
|
*
|
8722
|
-
*
|
8812
|
+
* - `"onBlur"` - Updates the value after the input field loses focus.
|
8813
|
+
* - `"onTyping"` - Updates the value on every key press.
|
8814
|
+
* - `"default"` (default) - Inherits the value from the `SurveyModel`'s [`textUpdateMode`](https://surveyjs.io/form-library/documentation/surveymodel#textUpdateMode) property.
|
8815
|
+
*
|
8816
|
+
* > NOTE: Do not use the `"onTyping"` mode if your survey contains many expressions. Expressions are reevaluated each time a question value is changed. In `"onTyping"` mode, the question value changes frequently. This may cause performance degradation.
|
8723
8817
|
*/
|
8724
8818
|
get textUpdateMode(): string;
|
8725
8819
|
set textUpdateMode(val: string);
|
@@ -8786,13 +8880,15 @@ export declare class FlowPanelModel extends PanelModel {
|
|
8786
8880
|
getElementContentText(element: IElement): string;
|
8787
8881
|
}
|
8788
8882
|
/*
|
8789
|
-
* A base class for
|
8883
|
+
* A base class for multiple-selection question types that can display choice items in multiple columns ([Checkbox](https://surveyjs.io/form-library/documentation/questioncheckboxmodel), [Radiogroup](https://surveyjs.io/form-library/documentation/questionradiogroupmodel), [Image Picker](https://surveyjs.io/form-library/documentation/questionimagepickermodel)).
|
8790
8884
|
*/
|
8791
8885
|
export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
8792
8886
|
constructor(name: string);
|
8793
8887
|
colCountChangedCallback: any;
|
8794
8888
|
/*
|
8795
|
-
*
|
8889
|
+
* Get or sets the number of columns used to arrange choice items.
|
8890
|
+
*
|
8891
|
+
* Set this property to 0 if you want to display all items in one line. The default value depends on the available width.
|
8796
8892
|
*/
|
8797
8893
|
get colCount(): number;
|
8798
8894
|
set colCount(val: number);
|
@@ -8801,29 +8897,38 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
|
8801
8897
|
protected getSearchableItemValueKeys(keys: any): void;
|
8802
8898
|
}
|
8803
8899
|
/*
|
8804
|
-
* A
|
8900
|
+
* A class that describes the Comment question type.
|
8901
|
+
*
|
8902
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-comment/ (linkStyle))
|
8805
8903
|
*/
|
8806
8904
|
export declare class QuestionCommentModel extends QuestionTextBase {
|
8807
8905
|
constructor(name: string);
|
8808
8906
|
element: any;
|
8809
8907
|
/*
|
8810
|
-
*
|
8908
|
+
* Specifies the visible height of the comment area, measured in lines.
|
8909
|
+
*
|
8910
|
+
* The value of this property is passed on to the `rows` attribute of the underlying `<textarea>` element.
|
8811
8911
|
*/
|
8812
8912
|
get rows(): number;
|
8813
8913
|
set rows(val: number);
|
8814
8914
|
/*
|
8815
|
-
*
|
8915
|
+
* Specifies the visible width of the comment area, measured in average character width.
|
8916
|
+
*
|
8917
|
+
* The value of this property is passed on to the `cols` attribute of the underlying `<textarea>` element.
|
8816
8918
|
*/
|
8817
8919
|
get cols(): number;
|
8818
8920
|
set cols(val: number);
|
8819
8921
|
/*
|
8820
|
-
*
|
8922
|
+
* Specifies whether the question allows line breaks.
|
8923
|
+
*
|
8924
|
+
* When this property is enabled, a user can press Enter to insert line breaks. They are saved as `\n` in survey results. The Comment question also recognizes and interprets the `\n` sequence as a line break when you set the question `value` in code.
|
8821
8925
|
*/
|
8822
8926
|
get acceptCarriageReturn(): boolean;
|
8823
8927
|
set acceptCarriageReturn(val: boolean);
|
8824
8928
|
/*
|
8825
|
-
* Specifies whether the
|
8826
|
-
*
|
8929
|
+
* Specifies whether the comment area automatically increases its height to accomodate multi-line content.
|
8930
|
+
*
|
8931
|
+
* Default value: `false` (inherited from `SurveyModel`'s [`autoGrowComment`](https://surveyjs.io/form-library/documentation/surveymodel#autoGrowComment) property)
|
8827
8932
|
*/
|
8828
8933
|
get autoGrow(): boolean;
|
8829
8934
|
set autoGrow(val: boolean);
|
@@ -8885,13 +8990,15 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
8885
8990
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
8886
8991
|
onSurveyValueChanged(newValue: any): void;
|
8887
8992
|
protected getValueCore(): any;
|
8888
|
-
protected initElement(el:
|
8993
|
+
protected initElement(el: any): void;
|
8889
8994
|
updateElementCss(reNew?: boolean): void;
|
8890
8995
|
protected updateElementCssCore(cssClasses: any): void;
|
8891
8996
|
protected getDisplayValueCore(keyAsText: boolean, value: any): any;
|
8892
8997
|
}
|
8893
8998
|
/*
|
8894
|
-
* A
|
8999
|
+
* A class that describes the Dropdown question type.
|
9000
|
+
*
|
9001
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-dropdown/ (linkStyle))
|
8895
9002
|
*/
|
8896
9003
|
export declare class QuestionDropdownModel extends QuestionSelectBase {
|
8897
9004
|
constructor(name: string);
|
@@ -8903,34 +9010,56 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8903
9010
|
get optionsCaption(): string;
|
8904
9011
|
set optionsCaption(val: string);
|
8905
9012
|
/*
|
8906
|
-
* A
|
9013
|
+
* A placeholder for the input field.
|
8907
9014
|
*/
|
8908
9015
|
get placeholder(): string;
|
8909
9016
|
set placeholder(val: string);
|
8910
9017
|
get locPlaceholder(): LocalizableString;
|
9018
|
+
get clearCaption(): string;
|
9019
|
+
set clearCaption(val: string);
|
9020
|
+
get locClearCaption(): LocalizableString;
|
8911
9021
|
getType(): string;
|
8912
9022
|
get selectedItem(): ItemValue;
|
8913
9023
|
supportGoNextPageAutomatic(): boolean;
|
8914
9024
|
minMaxChoices: any;
|
8915
9025
|
protected getChoices(): Array<ItemValue>;
|
8916
9026
|
/*
|
8917
|
-
* Use
|
9027
|
+
* Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
|
9028
|
+
*
|
9029
|
+
* ```js
|
9030
|
+
* "choicesMin": 10,
|
9031
|
+
* "choicesMax": 30
|
9032
|
+
* "choicesStep": 10
|
9033
|
+
* ```
|
8918
9034
|
*/
|
8919
9035
|
get choicesMin(): number;
|
8920
9036
|
set choicesMin(val: number);
|
8921
9037
|
/*
|
8922
|
-
* Use
|
9038
|
+
* Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
|
9039
|
+
*
|
9040
|
+
* ```js
|
9041
|
+
* "choicesMin": 10,
|
9042
|
+
* "choicesMax": 30
|
9043
|
+
* "choicesStep": 10
|
9044
|
+
* ```
|
8923
9045
|
*/
|
8924
9046
|
get choicesMax(): number;
|
8925
9047
|
set choicesMax(val: number);
|
8926
9048
|
/*
|
8927
|
-
*
|
8928
|
-
*
|
9049
|
+
* Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
|
9050
|
+
*
|
9051
|
+
* ```js
|
9052
|
+
* "choicesMin": 10,
|
9053
|
+
* "choicesMax": 30
|
9054
|
+
* "choicesStep": 10
|
9055
|
+
* ```
|
9056
|
+
*
|
9057
|
+
* The default value of the `choicesStep` property is 1.
|
8929
9058
|
*/
|
8930
9059
|
get choicesStep(): number;
|
8931
9060
|
set choicesStep(val: number);
|
8932
9061
|
/*
|
8933
|
-
*
|
9062
|
+
* An [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute value for the underlying `<input>` element.
|
8934
9063
|
*/
|
8935
9064
|
get autoComplete(): string;
|
8936
9065
|
set autoComplete(val: string);
|
@@ -8942,12 +9071,6 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8942
9071
|
* Specifies whether users can enter a value into the input field to filter the drop-down list.
|
8943
9072
|
*/
|
8944
9073
|
searchEnabled: boolean;
|
8945
|
-
/*
|
8946
|
-
* The clean files button caption.
|
8947
|
-
*/
|
8948
|
-
get cleanButtonCaption(): string;
|
8949
|
-
set cleanButtonCaption(val: string);
|
8950
|
-
get locCleanButtonCaption(): LocalizableString;
|
8951
9074
|
inputHasValue: boolean;
|
8952
9075
|
readOnlyText: string;
|
8953
9076
|
getControlClass(): string;
|
@@ -8998,9 +9121,9 @@ export declare class QuestionImageModel extends QuestionNonValue {
|
|
8998
9121
|
/*
|
8999
9122
|
* The image alt text.
|
9000
9123
|
*/
|
9001
|
-
get
|
9002
|
-
set
|
9003
|
-
get
|
9124
|
+
get altText(): string;
|
9125
|
+
set altText(val: string);
|
9126
|
+
get locAltText(): LocalizableString;
|
9004
9127
|
/*
|
9005
9128
|
* The image height.
|
9006
9129
|
*/
|
@@ -9289,6 +9412,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
9289
9412
|
getRowHeaderWrapperComponentData(cell: MatrixDropdownCell): any;
|
9290
9413
|
get showHorizontalScroll(): boolean;
|
9291
9414
|
getRootCss(): string;
|
9415
|
+
protected getIsTooltipErrorInsideSupported(): boolean;
|
9292
9416
|
}
|
9293
9417
|
/*
|
9294
9418
|
* A Model for a simple matrix question.
|
@@ -9473,7 +9597,9 @@ export declare class QuestionButtonGroupModel extends QuestionCheckboxBase {
|
|
9473
9597
|
supportOther(): boolean;
|
9474
9598
|
}
|
9475
9599
|
/*
|
9476
|
-
* A
|
9600
|
+
* A class that describes the Checkbox question type.
|
9601
|
+
*
|
9602
|
+
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-checkbox/ (linkStyle))
|
9477
9603
|
*/
|
9478
9604
|
export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
9479
9605
|
constructor(name: string);
|
@@ -9485,52 +9611,56 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
9485
9611
|
protected onCreating(): void;
|
9486
9612
|
protected getFirstInputElementId(): string;
|
9487
9613
|
/*
|
9488
|
-
*
|
9489
|
-
*
|
9614
|
+
* Specifies a property name used to store selected values.
|
9615
|
+
*
|
9616
|
+
* Set this property if you want to store selected values in an array of objects instead of an array of primitive values. For example, if you set `valuePropertyName` to `"car"`, the `value` property will contain an array of objects `[{ car: "Ford" }, { car: "Tesla" }]`, not an array of string values `[ "Ford", "Tesla" ]`.
|
9490
9617
|
*/
|
9491
9618
|
get valuePropertyName(): string;
|
9492
9619
|
set valuePropertyName(val: string);
|
9493
9620
|
getQuestionFromArray(name: string, index: number): IQuestion;
|
9494
9621
|
/*
|
9495
|
-
* Returns the
|
9622
|
+
* Returns the "Select All" choice item. Use this property to change the item's `value` or `text`.
|
9496
9623
|
*/
|
9497
9624
|
get selectAllItem(): ItemValue;
|
9498
9625
|
/*
|
9499
|
-
*
|
9626
|
+
* Gets or sets a caption for the "Select All" choice item.
|
9500
9627
|
*/
|
9501
9628
|
get selectAllText(): string;
|
9502
9629
|
set selectAllText(val: string);
|
9503
9630
|
get locSelectAllText(): LocalizableString;
|
9504
9631
|
/*
|
9505
|
-
*
|
9632
|
+
* Enable this property to display a "Select All" item. When users select it, all other choice items, except "Other" and "None", also become selected.
|
9506
9633
|
*/
|
9634
|
+
get showSelectAllItem(): boolean;
|
9635
|
+
set showSelectAllItem(val: boolean);
|
9507
9636
|
get hasSelectAll(): boolean;
|
9508
9637
|
set hasSelectAll(val: boolean);
|
9509
9638
|
/*
|
9510
|
-
* Returns true if all items are selected
|
9639
|
+
* Returns `true` if all choice items, except "Other" and "None", are selected.
|
9511
9640
|
*/
|
9512
9641
|
get isAllSelected(): boolean;
|
9513
9642
|
set isAllSelected(val: boolean);
|
9514
|
-
/*
|
9515
|
-
* It will select all items, except other and none. If all items have been already selected then it will clear the value
|
9516
|
-
*/
|
9517
9643
|
toggleSelectAll(): void;
|
9518
9644
|
/*
|
9519
|
-
*
|
9645
|
+
* Selects all choice items, except "Other" and "None".
|
9646
|
+
*
|
9647
|
+
* To clear selection, call the `clearValue()` method.
|
9520
9648
|
*/
|
9521
9649
|
selectAll(): void;
|
9650
|
+
protected isItemSelectedCore(item: ItemValue): boolean;
|
9522
9651
|
/*
|
9523
|
-
*
|
9524
|
-
|
9525
|
-
|
9526
|
-
|
9527
|
-
*
|
9652
|
+
* Sets a limit on the number of selected choices.
|
9653
|
+
*
|
9654
|
+
* Default value: 0 (unlimited)
|
9655
|
+
*
|
9656
|
+
* > NOTE: This property only limits the number of choice items that can be selected by users. You can select any number of choice items in code, regardless of the `maxSelectedChoices` value.
|
9528
9657
|
*/
|
9529
9658
|
get maxSelectedChoices(): number;
|
9530
9659
|
set maxSelectedChoices(val: number);
|
9531
9660
|
/*
|
9532
|
-
*
|
9661
|
+
* An array of selected choice items. Includes the "Other" and "None" choice items if they are selected, but not "Select All". Items are sorted in the order they were selected.
|
9533
9662
|
*/
|
9663
|
+
get selectedChoices(): any;
|
9534
9664
|
get selectedItems(): any;
|
9535
9665
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
9536
9666
|
protected onAfterRunItemsEnableCondition(): void;
|
@@ -9546,9 +9676,6 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
9546
9676
|
protected supportSelectAll(): boolean;
|
9547
9677
|
protected addToVisibleChoices(items: any, isAddAll: boolean): void;
|
9548
9678
|
protected isHeadChoice(item: ItemValue, question: QuestionSelectBase): boolean;
|
9549
|
-
/*
|
9550
|
-
* For internal use in SurveyJS Creator V2.
|
9551
|
-
*/
|
9552
9679
|
isItemInList(item: ItemValue): boolean;
|
9553
9680
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
9554
9681
|
protected clearIncorrectValuesCore(): void;
|
@@ -9878,6 +10005,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
9878
10005
|
domNode: any;
|
9879
10006
|
protected getDefaultItemComponent(): string;
|
9880
10007
|
getType(): string;
|
10008
|
+
getItemTabIndex(item: ItemValue): number;
|
9881
10009
|
get rootClass(): string;
|
9882
10010
|
protected getItemClassCore(item: ItemValue, options: any): string;
|
9883
10011
|
protected isItemCurrentDropTarget(item: ItemValue): boolean;
|
@@ -9938,17 +10066,14 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
9938
10066
|
*/
|
9939
10067
|
hideSelectedItems: boolean;
|
9940
10068
|
/*
|
9941
|
-
* The clean files button caption.
|
9942
|
-
*/
|
9943
|
-
get cleanButtonCaption(): string;
|
9944
|
-
set cleanButtonCaption(val: string);
|
9945
|
-
get locCleanButtonCaption(): LocalizableString;
|
9946
|
-
/*
|
9947
10069
|
* A text displayed in the input field when it doesn't have a value.
|
9948
10070
|
*/
|
9949
10071
|
get placeholder(): string;
|
9950
10072
|
set placeholder(val: string);
|
9951
10073
|
get locPlaceholder(): LocalizableString;
|
10074
|
+
get clearCaption(): string;
|
10075
|
+
set clearCaption(val: string);
|
10076
|
+
get locClearCaption(): LocalizableString;
|
9952
10077
|
getType(): string;
|
9953
10078
|
get popupModel(): any;
|
9954
10079
|
getControlClass(): string;
|
@@ -9967,13 +10092,14 @@ export declare function doKey2ClickUp(evt: any, options?: IAttachKey2clickOption
|
|
9967
10092
|
export declare function doKey2ClickDown(evt: any, options?: IAttachKey2clickOptions): void;
|
9968
10093
|
export declare function sanitizeEditableContent(element: any): void;
|
9969
10094
|
export declare function createDialogOptions(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
|
9970
|
-
export declare function createPopupModalViewModel(options: IDialogOptions): PopupBaseViewModel;
|
9971
10095
|
export declare function createDropdownActionModel(actionOptions: IAction, dropdownOptions: IActionDropdownPopupOptions, locOwner?: any): Action;
|
9972
10096
|
export declare function createDropdownActionModelAdvanced(actionOptions: IAction, listOptions: IListModel, popupOptions?: IPopupOptionsBase, locOwner?: any): Action;
|
9973
10097
|
export declare function getCurrecyCodes(): Array<any>;
|
10098
|
+
export declare function createPopupModalViewModel(options: IDialogOptions): PopupBaseViewModel;
|
10099
|
+
export declare function createPopupViewModel(model: any, targetElement: any): PopupBaseViewModel;
|
9974
10100
|
export declare function checkLibraryVersion(ver: string, libraryName: string): void;
|
9975
|
-
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"):
|
9976
|
-
export declare function showDialog(dialogOptions: any):
|
10101
|
+
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
10102
|
+
export declare function showDialog(dialogOptions: any): PopupBaseViewModel;
|
9977
10103
|
export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: IAttachKey2clickOptions): JSX.Element;
|
9978
10104
|
/*
|
9979
10105
|
* Global survey settings
|
@@ -10033,6 +10159,10 @@ export declare var settings: {
|
|
10033
10159
|
*/
|
10034
10160
|
defaultLocaleName: string,
|
10035
10161
|
/*
|
10162
|
+
* By default we do not store a value for a locale if it equals to "default" locale value
|
10163
|
+
*/
|
10164
|
+
storeDuplicatedTranslations: boolean,
|
10165
|
+
/*
|
10036
10166
|
* Default row name for matrix (single choice)
|
10037
10167
|
*/
|
10038
10168
|
matrixDefaultRowName: string,
|
@@ -10235,7 +10365,6 @@ export declare var defaultListCss: {
|
|
10235
10365
|
emptyContainer: string,
|
10236
10366
|
emptyText: string,
|
10237
10367
|
};
|
10238
|
-
export declare var FOCUS_INPUT_SELECTOR: any;
|
10239
10368
|
export declare var surveyCss: {
|
10240
10369
|
currentType: string,
|
10241
10370
|
getCss: any,
|
@@ -10629,6 +10758,7 @@ export declare var youtubeUrl: any;
|
|
10629
10758
|
export declare var youtubeEmbed: any;
|
10630
10759
|
export declare var defaultWidth: number;
|
10631
10760
|
export declare var defaultHeight: number;
|
10761
|
+
export declare var FOCUS_INPUT_SELECTOR: any;
|
10632
10762
|
export declare var Version: string;
|
10633
10763
|
export declare var defaultBootstrapCss: {
|
10634
10764
|
root: string,
|
@@ -10698,6 +10828,7 @@ export declare var defaultBootstrapCss: {
|
|
10698
10828
|
hasError: string,
|
10699
10829
|
indent: number,
|
10700
10830
|
formGroup: string,
|
10831
|
+
disabled: string,
|
10701
10832
|
},
|
10702
10833
|
panel: {
|
10703
10834
|
title: string,
|
@@ -11035,6 +11166,7 @@ export declare var defaultBootstrapMaterialCss: {
|
|
11035
11166
|
hasError: string,
|
11036
11167
|
indent: number,
|
11037
11168
|
formGroup: string,
|
11169
|
+
disabled: string,
|
11038
11170
|
},
|
11039
11171
|
panel: {
|
11040
11172
|
title: string,
|
@@ -11313,6 +11445,7 @@ export declare var defaultBootstrapMaterialCss: {
|
|
11313
11445
|
export declare var defaultV2Css: {
|
11314
11446
|
root: string,
|
11315
11447
|
rootMobile: string,
|
11448
|
+
rootReadOnly: string,
|
11316
11449
|
container: string,
|
11317
11450
|
header: string,
|
11318
11451
|
body: string,
|
@@ -11341,6 +11474,7 @@ export declare var defaultV2Css: {
|
|
11341
11474
|
titleExpandable: string,
|
11342
11475
|
titleExpanded: string,
|
11343
11476
|
titleCollapsed: string,
|
11477
|
+
titleDisabled: string,
|
11344
11478
|
titleOnExpand: string,
|
11345
11479
|
titleOnError: string,
|
11346
11480
|
titleBar: string,
|
@@ -11430,6 +11564,7 @@ export declare var defaultV2Css: {
|
|
11430
11564
|
titleExpandable: string,
|
11431
11565
|
titleExpanded: string,
|
11432
11566
|
titleCollapsed: string,
|
11567
|
+
titleDisabled: string,
|
11433
11568
|
titleBar: string,
|
11434
11569
|
requiredText: string,
|
11435
11570
|
number: string,
|
@@ -11448,6 +11583,7 @@ export declare var defaultV2Css: {
|
|
11448
11583
|
nested: string,
|
11449
11584
|
invisible: string,
|
11450
11585
|
composite: string,
|
11586
|
+
disabled: string,
|
11451
11587
|
},
|
11452
11588
|
image: {
|
11453
11589
|
mainRoot: string,
|
@@ -11728,6 +11864,8 @@ export declare var defaultV2Css: {
|
|
11728
11864
|
fileSign: string,
|
11729
11865
|
fileList: string,
|
11730
11866
|
fileSignBottom: string,
|
11867
|
+
dragArea: string,
|
11868
|
+
dragAreaActive: string,
|
11731
11869
|
fileDecorator: string,
|
11732
11870
|
onError: string,
|
11733
11871
|
fileDecoratorDrag: string,
|