survey-react 1.9.47 → 1.9.49
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 +90 -10
- package/defaultV2.min.css +2 -2
- package/modern.css +131 -9
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +129 -101
- package/survey.min.css +2 -2
- package/survey.react.d.ts +275 -124
- package/survey.react.js +1513 -522
- 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.49
|
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
|
*/
|
@@ -101,7 +101,7 @@ export interface IListModel {
|
|
101
101
|
onSelectionChanged: (item: Action, ...params: any) => void;
|
102
102
|
allowSelection?: boolean;
|
103
103
|
selectedItem?: IAction;
|
104
|
-
|
104
|
+
onFilterStringChangedCallback?: (text: string) => void;
|
105
105
|
}
|
106
106
|
export interface IPosition {
|
107
107
|
left?: string | number;
|
@@ -371,7 +371,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
371
371
|
maxOthersLength: number;
|
372
372
|
clearValueOnDisableItems: boolean;
|
373
373
|
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: (status: string, data: any) => any): any;
|
374
|
-
downloadFile(name: string, content: string, callback: (status: string, data: any) => any): any;
|
374
|
+
downloadFile(question: IQuestion, name: string, content: string, callback: (status: string, data: any) => any): any;
|
375
375
|
clearFiles(question: IQuestion, name: string, value: any, fileName: string, clearCallback: (status: string, data: any) => any): any;
|
376
376
|
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<any>;
|
377
377
|
loadedChoicesFromServer(question: IQuestion): void;
|
@@ -710,6 +710,10 @@ export interface ISurveyCreator {
|
|
710
710
|
export interface ISurveyHeaderProps {
|
711
711
|
survey: any;
|
712
712
|
}
|
713
|
+
export interface ITagboxFilterProps {
|
714
|
+
model: any;
|
715
|
+
question: any;
|
716
|
+
}
|
713
717
|
export interface IMatrixRowProps {
|
714
718
|
model: any;
|
715
719
|
parentMatrix: any;
|
@@ -738,7 +742,7 @@ export declare class ArrayChanges {
|
|
738
742
|
deletedItems: any;
|
739
743
|
}
|
740
744
|
/*
|
741
|
-
*
|
745
|
+
* A base class for all SurveyJS objects.
|
742
746
|
*/
|
743
747
|
export declare class Base {
|
744
748
|
constructor();
|
@@ -750,11 +754,11 @@ export declare class Base {
|
|
750
754
|
static createItemValue: (item: any, type?: string) => any;
|
751
755
|
static itemValueLocStrChanged: (arr: any) => void;
|
752
756
|
/*
|
753
|
-
* Returns true if a value
|
757
|
+
* Returns `true` if a passed `value` is an empty string, array, or object or if it equals to `undefined` or `null`.
|
754
758
|
*/
|
755
759
|
isValueEmpty(value: any, trimString?: boolean): boolean;
|
756
760
|
protected trimValue(value: any): any;
|
757
|
-
protected
|
761
|
+
protected isPropertyEmpty(value: any): boolean;
|
758
762
|
propertyHash: any;
|
759
763
|
localizableStrings: any;
|
760
764
|
arraysInfo: any;
|
@@ -766,21 +770,26 @@ export declare class Base {
|
|
766
770
|
protected isLoadingFromJsonValue: boolean;
|
767
771
|
loadingOwner: Base;
|
768
772
|
/*
|
769
|
-
*
|
770
|
-
*
|
771
|
-
*
|
772
|
-
*
|
773
|
-
*
|
773
|
+
* An event that is raised when a property of this SurveyJS object has changed.
|
774
|
+
*
|
775
|
+
* Parameters:
|
776
|
+
*
|
777
|
+
* - `sender` - A SurveyJS object whose property has changed.
|
778
|
+
* - `options.name` - The name of the changed property.
|
779
|
+
* - `options.oldValue` - An old value of the property. If the property is an array, `oldValue` contains the same array as `newValue` does.
|
780
|
+
* - `options.newValue` - A new value for the property.
|
774
781
|
*/
|
775
782
|
onPropertyChanged: EventBase<Base>;
|
776
783
|
/*
|
777
|
-
*
|
778
|
-
*
|
779
|
-
*
|
780
|
-
*
|
781
|
-
*
|
782
|
-
* options.
|
783
|
-
* options.
|
784
|
+
* An event that is raised when an [ItemValue](https://surveyjs.io/form-library/documentation/itemvalue) property is changed.
|
785
|
+
*
|
786
|
+
* Parameters:
|
787
|
+
*
|
788
|
+
* - `sender` - A SurveyJS object whose property contains an array of `ItemValue` objects.
|
789
|
+
* - `options.obj` - An `ItemValue` object.
|
790
|
+
* - `options.propertyName` - The name of the property to which an array of `ItemValue` objects is assigned (for example, `"choices"` or `"rows"`).
|
791
|
+
* - `options.name` - The name of the changed property: `"text"` or `"value"`.
|
792
|
+
* - `options.newValue` - A new value for the property.
|
784
793
|
*/
|
785
794
|
onItemValuePropertyChanged: Event<(sender: Base, options: any) => any, any>;
|
786
795
|
getPropertyValueCoreHandler: (propertiesHash: any, name: string) => any;
|
@@ -793,52 +802,55 @@ export declare class Base {
|
|
793
802
|
protected addEvent<T>(): EventBase<T>;
|
794
803
|
protected onBaseCreating(): void;
|
795
804
|
/*
|
796
|
-
* Returns the
|
805
|
+
* Returns the object type as it is used in the JSON schema.
|
797
806
|
*/
|
798
807
|
getType(): string;
|
799
808
|
/*
|
800
|
-
* Use this method to find out if the current
|
809
|
+
* Use this method to find out if the current object is of a given `typeName` or inherited from it.
|
801
810
|
*/
|
802
811
|
isDescendantOf(typeName: string): boolean;
|
803
812
|
getSurvey(isLive?: boolean): ISurvey;
|
804
813
|
/*
|
805
|
-
* Returns true if the
|
814
|
+
* Returns `true` if the survey is being designed in Survey Creator.
|
806
815
|
*/
|
807
816
|
get isDesignMode(): boolean;
|
808
817
|
/*
|
809
|
-
* Returns true if the object is
|
818
|
+
* Returns `true` if the object is included in a survey.
|
819
|
+
*
|
820
|
+
* This method may return `false`, for example, when you [create a survey model dynamically](https://surveyjs.io/form-library/documentation/design-survey-create-a-simple-survey#create-or-change-a-survey-model-dynamically).
|
810
821
|
*/
|
811
822
|
get inSurvey(): boolean;
|
812
823
|
get bindings(): Bindings;
|
813
824
|
checkBindings(valueName: string, value: any): void;
|
814
825
|
protected updateBindings(propertyName: string, value: any): void;
|
815
826
|
protected updateBindingValue(valueName: string, value: any): void;
|
816
|
-
/*
|
817
|
-
* Returns the element template name without prefix. Typically it equals to getType().
|
818
|
-
*/
|
819
827
|
getTemplate(): string;
|
820
828
|
/*
|
821
|
-
* Returns true if the object is
|
829
|
+
* Returns `true` if the object configuration is being loaded from JSON.
|
822
830
|
*/
|
823
831
|
get isLoadingFromJson(): boolean;
|
824
832
|
protected getIsLoadingFromJson(): boolean;
|
825
833
|
startLoadingFromJson(json?: any): void;
|
826
834
|
endLoadingFromJson(): void;
|
827
835
|
/*
|
828
|
-
*
|
836
|
+
* Returns a JSON object that corresponds to the current SurveyJS object.
|
829
837
|
*/
|
830
838
|
toJSON(): any;
|
831
839
|
/*
|
832
|
-
*
|
840
|
+
* Assigns a new configuration to the current SurveyJS object. This configuration is taken from a passed JSON object.
|
841
|
+
*
|
842
|
+
* The JSON object should contain only serializable properties of this SurveyJS object. Event handlers and properties that do not belong to the SurveyJS object are ignored.
|
833
843
|
*/
|
834
844
|
fromJSON(json: any): void;
|
835
845
|
onSurveyLoad(): void;
|
836
846
|
/*
|
837
|
-
*
|
847
|
+
* Creates a new object that has the same type and properties as the current SurveyJS object.
|
838
848
|
*/
|
839
849
|
clone(): Base;
|
840
850
|
/*
|
841
|
-
* Returns
|
851
|
+
* Returns a `JsonObjectProperty` object with metadata about a serializable property that belongs to the current SurveyJS object.
|
852
|
+
*
|
853
|
+
* If the property is not found, this method returns `null`.
|
842
854
|
*/
|
843
855
|
getPropertyByName(propName: string): JsonObjectProperty;
|
844
856
|
isPropertyVisible(propName: string): boolean;
|
@@ -847,7 +859,9 @@ export declare class Base {
|
|
847
859
|
localeChanged(): void;
|
848
860
|
locStrsChanged(): void;
|
849
861
|
/*
|
850
|
-
* Returns the property
|
862
|
+
* Returns the value of a property with a specified name.
|
863
|
+
*
|
864
|
+
* If the property is not found or does not have a value, this method returns either `undefined`, `defaultValue` specified in the property configuration, or a value passed as the `defaultValue` parameter.
|
851
865
|
*/
|
852
866
|
getPropertyValue(name: string, defaultValue?: any): any;
|
853
867
|
protected getPropertyValueCore(propertiesHash: any, name: string): any;
|
@@ -861,7 +875,7 @@ export declare class Base {
|
|
861
875
|
*/
|
862
876
|
checkAndSetPropertyValue(name: string, val: any): void;
|
863
877
|
/*
|
864
|
-
*
|
878
|
+
* Assigns a new value to a specified property.
|
865
879
|
*/
|
866
880
|
setPropertyValue(name: string, val: any): void;
|
867
881
|
protected setArrayPropertyDirectly(name: string, val: any, sendNotification?: boolean): void;
|
@@ -1165,6 +1179,7 @@ export declare class JsonMetadata {
|
|
1165
1179
|
childrenClasses: any;
|
1166
1180
|
classProperties: any;
|
1167
1181
|
classHashProperties: any;
|
1182
|
+
onSerializingProperty: (obj: Base, prop: JsonObjectProperty, value: any, json: any) => boolean;
|
1168
1183
|
getObjPropertyValue(obj: any, name: string): any;
|
1169
1184
|
setObjPropertyValue(obj: any, name: string, val: any): void;
|
1170
1185
|
addClass(name: string, properties: any, creator?: (json?: any) => any, parentName?: string): JsonMetadataClass;
|
@@ -1281,7 +1296,6 @@ export declare class PopupUtils {
|
|
1281
1296
|
static updateVerticalPosition(targetRect: any, height: number, verticalPosition: any, showPointer: boolean, windowHeight: number): any;
|
1282
1297
|
static calculatePopupDirection(verticalPosition: any, horizontalPosition: any): string;
|
1283
1298
|
static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any, marginLeft?: number, marginRight?: number): INumberPosition;
|
1284
|
-
static updatePopupWidthBeforeShow(popupModel: any, target: JSX.Element): void;
|
1285
1299
|
}
|
1286
1300
|
export declare class ProcessValue {
|
1287
1301
|
constructor();
|
@@ -1458,7 +1472,7 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
1458
1472
|
protected getStateElements(): Array<Base>;
|
1459
1473
|
protected getStateElement(): Base;
|
1460
1474
|
protected get isDisplayMode(): boolean;
|
1461
|
-
protected renderLocString(locStr: any, style?: any): JSX.Element;
|
1475
|
+
protected renderLocString(locStr: any, style?: any, key?: string): JSX.Element;
|
1462
1476
|
protected canUsePropInState(key: string): boolean;
|
1463
1477
|
}
|
1464
1478
|
export declare class SurveyElementHeader extends React.Component<any, any> {
|
@@ -1637,10 +1651,12 @@ export declare class dxSurveyService {
|
|
1637
1651
|
getResult(resultId: string, name: string, onGetResult: (success: boolean, data: any, dataList: any, response: any) => void): void;
|
1638
1652
|
isCompleted(resultId: string, clientId: string, onIsCompleted: (success: boolean, result: string, response: any) => void): void;
|
1639
1653
|
}
|
1640
|
-
export declare class Action extends Base implements IAction {
|
1654
|
+
export declare class Action extends Base implements IAction, ILocalizableOwner {
|
1641
1655
|
constructor(innerItem: IAction);
|
1642
1656
|
innerItem: IAction;
|
1657
|
+
locTitleValue: any;
|
1643
1658
|
updateCallback: any;
|
1659
|
+
owner: any;
|
1644
1660
|
location: string;
|
1645
1661
|
id: string;
|
1646
1662
|
iconName: string;
|
@@ -1666,10 +1682,10 @@ export declare class Action extends Base implements IAction {
|
|
1666
1682
|
disableShrink: boolean;
|
1667
1683
|
disableHide: boolean;
|
1668
1684
|
needSpace: boolean;
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1685
|
+
title: string;
|
1686
|
+
get locTitle(): any;
|
1687
|
+
set locTitle(val: any);
|
1688
|
+
locTitleChanged: any;
|
1673
1689
|
cssClassesValue: any;
|
1674
1690
|
get cssClasses(): any;
|
1675
1691
|
get disabled(): boolean;
|
@@ -1679,6 +1695,11 @@ export declare class Action extends Base implements IAction {
|
|
1679
1695
|
getActionRootCss(): string;
|
1680
1696
|
getActionBarItemTitleCss(): string;
|
1681
1697
|
getActionBarItemCss(): string;
|
1698
|
+
getLocale(): string;
|
1699
|
+
getMarkdownHtml(text: string, name: string): string;
|
1700
|
+
getProcessedText(text: string): string;
|
1701
|
+
getRenderer(name: string): string;
|
1702
|
+
getRendererContext(locStr: any): any;
|
1682
1703
|
minDimension: number;
|
1683
1704
|
maxDimension: number;
|
1684
1705
|
}
|
@@ -1984,8 +2005,12 @@ export declare class DropdownListModel extends Base {
|
|
1984
2005
|
focusFirstInputSelector: string;
|
1985
2006
|
protected listModel: ListModel;
|
1986
2007
|
protected popupCssClasses: string;
|
2008
|
+
protected onHidePopup(): void;
|
1987
2009
|
protected getAvailableItems(): Array<Action>;
|
1988
2010
|
protected createListModel(): ListModel;
|
2011
|
+
protected resetFilterString(): void;
|
2012
|
+
searchEnabled: boolean;
|
2013
|
+
filterString: string;
|
1989
2014
|
get popupModel(): any;
|
1990
2015
|
setSearchEnabled(newValue: boolean): void;
|
1991
2016
|
updateItems(): void;
|
@@ -1993,6 +2018,7 @@ export declare class DropdownListModel extends Base {
|
|
1993
2018
|
onClear(event: any): void;
|
1994
2019
|
onKeyUp(event: any): void;
|
1995
2020
|
onBlur(event: any): void;
|
2021
|
+
scrollToFocusedItem(): void;
|
1996
2022
|
}
|
1997
2023
|
export declare class EventBase<T> extends Event<any, any> {
|
1998
2024
|
}
|
@@ -2075,8 +2101,6 @@ export declare class ItemValue extends Base implements ILocalizableOwner, IShort
|
|
2075
2101
|
getProcessedText(text: string): string;
|
2076
2102
|
static get Separator(): string;
|
2077
2103
|
static set Separator(val: string);
|
2078
|
-
static createArray(locOwner: ILocalizableOwner): Array<ItemValue>;
|
2079
|
-
static setupArray(items: any, locOwner: ILocalizableOwner): void;
|
2080
2104
|
/*
|
2081
2105
|
* Resets the input array and fills it with values from the values array
|
2082
2106
|
*/
|
@@ -2148,6 +2172,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
2148
2172
|
baseValue: any;
|
2149
2173
|
isRequiredValue: boolean;
|
2150
2174
|
isUniqueValue: boolean;
|
2175
|
+
uniquePropertyValue: string;
|
2151
2176
|
readOnlyValue: boolean;
|
2152
2177
|
visibleValue: boolean;
|
2153
2178
|
isLocalizableValue: boolean;
|
@@ -2190,6 +2215,8 @@ export declare class JsonObjectProperty implements IObject {
|
|
2190
2215
|
set isRequired(val: boolean);
|
2191
2216
|
get isUnique(): boolean;
|
2192
2217
|
set isUnique(val: boolean);
|
2218
|
+
get uniquePropertyName(): string;
|
2219
|
+
set uniquePropertyName(val: string);
|
2193
2220
|
get hasToUseGetValue(): any;
|
2194
2221
|
get defaultValue(): any;
|
2195
2222
|
set defaultValue(val: any);
|
@@ -2244,6 +2271,7 @@ export declare class List extends SurveyElementBase<IListProps, any> {
|
|
2244
2271
|
constructor(props: any);
|
2245
2272
|
get model(): any;
|
2246
2273
|
handleKeydown: (event: any) => void;
|
2274
|
+
handleMouseMove: (event: any) => void;
|
2247
2275
|
getStateElement(): any;
|
2248
2276
|
renderElement(): JSX.Element;
|
2249
2277
|
renderItems(): any;
|
@@ -2697,6 +2725,7 @@ export declare class PopupBaseViewModel extends Base {
|
|
2697
2725
|
get contentComponentData(): any;
|
2698
2726
|
get showPointer(): boolean;
|
2699
2727
|
get isModal(): boolean;
|
2728
|
+
get isFocusedContent(): boolean;
|
2700
2729
|
get showFooter(): boolean;
|
2701
2730
|
get isOverlay(): boolean;
|
2702
2731
|
get styleClass(): string;
|
@@ -2731,7 +2760,7 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
|
|
2731
2760
|
}
|
2732
2761
|
export declare class PopupModel<T = any> extends Base {
|
2733
2762
|
constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: any, horizontalPosition?: any, showPointer?: boolean, isModal?: boolean, onCancel?: any, onApply?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string);
|
2734
|
-
|
2763
|
+
setWidthByTarget: boolean;
|
2735
2764
|
focusFirstInputSelector: string;
|
2736
2765
|
contentComponentName: string;
|
2737
2766
|
contentComponentData: T;
|
@@ -2739,6 +2768,7 @@ export declare class PopupModel<T = any> extends Base {
|
|
2739
2768
|
horizontalPosition: any;
|
2740
2769
|
showPointer: boolean;
|
2741
2770
|
isModal: boolean;
|
2771
|
+
isFocusedContent: boolean;
|
2742
2772
|
onCancel: any;
|
2743
2773
|
onApply: any;
|
2744
2774
|
onHide: any;
|
@@ -2748,9 +2778,11 @@ export declare class PopupModel<T = any> extends Base {
|
|
2748
2778
|
displayMode: "popup" | "overlay";
|
2749
2779
|
positionMode: any;
|
2750
2780
|
onVisibilityChanged: EventBase<PopupModel<any>>;
|
2781
|
+
onTargetModified: EventBase<Base>;
|
2751
2782
|
get isVisible(): boolean;
|
2752
2783
|
set isVisible(val: boolean);
|
2753
2784
|
toggleVisibility(): void;
|
2785
|
+
targetModified(): void;
|
2754
2786
|
}
|
2755
2787
|
/*
|
2756
2788
|
* A Model for a survey running in the Popup Window.
|
@@ -2826,7 +2858,6 @@ export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
|
2826
2858
|
static counter: number;
|
2827
2859
|
idValue: number;
|
2828
2860
|
cells: any;
|
2829
|
-
onCreating(): void;
|
2830
2861
|
get id(): number;
|
2831
2862
|
get attributes(): { "data-sv-drop-target-matrix-row"?: undefined; } | { "data-sv-drop-target-matrix-row": string; };
|
2832
2863
|
get className(): string;
|
@@ -2857,6 +2888,7 @@ export declare class QuestionMatrixDropdownRenderedTable extends Base {
|
|
2857
2888
|
onRemovedRow(row: MatrixDropdownRowModelBase): void;
|
2858
2889
|
onDetailPanelChangeVisibility(row: MatrixDropdownRowModelBase, isShowing: boolean): void;
|
2859
2890
|
protected buildRowsActions(): void;
|
2891
|
+
protected createRenderedRow(cssClasses: any, isDetailRow?: boolean): QuestionMatrixDropdownRenderedRow;
|
2860
2892
|
protected buildHeader(): void;
|
2861
2893
|
protected buildFooter(): void;
|
2862
2894
|
protected buildRows(): void;
|
@@ -2930,6 +2962,7 @@ export declare class QuestionTextProcessor implements ITextProcessor {
|
|
2930
2962
|
protected getQuestionByName(name: string): Question;
|
2931
2963
|
protected getParentTextProcessor(): ITextProcessor;
|
2932
2964
|
protected onCustomProcessText(textValue: TextPreProcessorValue): boolean;
|
2965
|
+
protected getQuestionDisplayText(question: Question): string;
|
2933
2966
|
processText(text: string, returnDisplayValue: boolean): string;
|
2934
2967
|
processTextEx(text: string, returnDisplayValue: boolean): any;
|
2935
2968
|
}
|
@@ -3029,24 +3062,27 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
|
3029
3062
|
protected renderCaption(): JSX.Element;
|
3030
3063
|
}
|
3031
3064
|
/*
|
3032
|
-
*
|
3065
|
+
* A base class for the [`SurveyElement`](https://surveyjs.io/form-library/documentation/surveyelement) and [`SurveyModel`](https://surveyjs.io/form-library/documentation/surveymodel) classes.
|
3033
3066
|
*/
|
3034
3067
|
export declare class SurveyElementCore extends Base implements ILocalizableOwner {
|
3035
3068
|
constructor();
|
3036
3069
|
protected createLocTitleProperty(): LocalizableString;
|
3037
3070
|
/*
|
3038
|
-
*
|
3039
|
-
*
|
3071
|
+
* A title for the survey element. If `title` is undefined, the `name` property value is displayed instead.
|
3072
|
+
*
|
3073
|
+
* Empty pages and panels do not display their titles or names.
|
3040
3074
|
*/
|
3041
3075
|
get title(): string;
|
3042
3076
|
set title(val: string);
|
3043
3077
|
get locTitle(): LocalizableString;
|
3044
3078
|
protected getDefaultTitleValue(): string;
|
3045
3079
|
/*
|
3046
|
-
*
|
3047
|
-
* Please note, this property is hidden for questions without input, for example html question.
|
3080
|
+
* Returns `true` if the survey element has a description.
|
3048
3081
|
*/
|
3049
3082
|
hasDescription: boolean;
|
3083
|
+
/*
|
3084
|
+
* Explanatory text displayed under the title.
|
3085
|
+
*/
|
3050
3086
|
get description(): string;
|
3051
3087
|
set description(val: string);
|
3052
3088
|
updateDescriptionVisibility(newDescription: any): void;
|
@@ -3203,6 +3239,20 @@ export declare class SurveyValidator extends Base {
|
|
3203
3239
|
protected createCustomError(name: string): SurveyError;
|
3204
3240
|
toString(): string;
|
3205
3241
|
}
|
3242
|
+
export declare class TagboxFilterString extends SurveyElementBase<ITagboxFilterProps, any> {
|
3243
|
+
constructor(props: any);
|
3244
|
+
inputElement: any;
|
3245
|
+
get model(): any;
|
3246
|
+
get question(): any;
|
3247
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
3248
|
+
componentDidMount(): void;
|
3249
|
+
updateDomElement(): void;
|
3250
|
+
onChange(e: any): void;
|
3251
|
+
onKeyUp(e: any): void;
|
3252
|
+
onBlur(e: any): void;
|
3253
|
+
getStateElement(): any;
|
3254
|
+
render(): JSX.Element;
|
3255
|
+
}
|
3206
3256
|
/*
|
3207
3257
|
* A base class for all triggers.
|
3208
3258
|
* A trigger calls a method when the expression change the result: from false to true or from true to false.
|
@@ -3396,6 +3446,7 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
3396
3446
|
}
|
3397
3447
|
export declare class DropdownMultiSelectListModel extends DropdownListModel {
|
3398
3448
|
constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any) => void);
|
3449
|
+
filterStringPlaceholder: string;
|
3399
3450
|
protected override: any;
|
3400
3451
|
createListModel(): MultiSelectListModel;
|
3401
3452
|
selectAllItems(): void;
|
@@ -3404,6 +3455,8 @@ export declare class DropdownMultiSelectListModel extends DropdownListModel {
|
|
3404
3455
|
deselectItem(id: string): void;
|
3405
3456
|
onClear(event: any): void;
|
3406
3457
|
setHideSelectedItems(newValue: boolean): void;
|
3458
|
+
removeLastSelectedItem(): void;
|
3459
|
+
inputKeyUpHandler(event: any): void;
|
3407
3460
|
}
|
3408
3461
|
/*
|
3409
3462
|
* Validate e-mail address in the text input
|
@@ -3477,32 +3530,43 @@ export declare class JsonMissingTypeError extends JsonMissingTypeErrorBase {
|
|
3477
3530
|
baseClassName: string;
|
3478
3531
|
}
|
3479
3532
|
export declare class ListModel extends ActionContainer {
|
3480
|
-
constructor(items: any, onSelectionChanged: (item: Action, ...params: any) => void, allowSelection: boolean, selectedItem?: IAction,
|
3533
|
+
constructor(items: any, onSelectionChanged: (item: Action, ...params: any) => void, allowSelection: boolean, selectedItem?: IAction, onFilterStringChangedCallback?: (text: string) => void);
|
3481
3534
|
onSelectionChanged: (item: Action, ...params: any) => void;
|
3482
3535
|
allowSelection: boolean;
|
3483
3536
|
searchEnabled: boolean;
|
3484
|
-
|
3537
|
+
showFilter: boolean;
|
3485
3538
|
isEmpty: boolean;
|
3486
3539
|
isExpanded: boolean;
|
3487
3540
|
selectedItem: IAction;
|
3488
|
-
|
3541
|
+
focusedItem: Action;
|
3542
|
+
filterString: string;
|
3489
3543
|
static INDENT: number;
|
3490
3544
|
static MINELEMENTCOUNT: number;
|
3491
3545
|
isItemVisible(item: Action): boolean;
|
3546
|
+
get visibleItems(): any;
|
3492
3547
|
protected onSet(): void;
|
3493
3548
|
protected getDefaultCssClasses(): any;
|
3494
3549
|
protected updateItemActiveState(): void;
|
3495
3550
|
onItemClick: (itemValue: Action) => void;
|
3496
3551
|
isItemDisabled: (itemValue: Action) => boolean;
|
3497
3552
|
isItemSelected: (itemValue: Action) => boolean;
|
3553
|
+
isItemFocused: (itemValue: Action) => boolean;
|
3498
3554
|
getItemClass: (itemValue: Action) => string;
|
3499
3555
|
getItemIndent: (itemValue: any) => string;
|
3500
|
-
get
|
3556
|
+
get filterStringPlaceholder(): string;
|
3501
3557
|
get emptyMessage(): string;
|
3502
3558
|
goToItems(event: any): void;
|
3559
|
+
onMouseMove(event: any): void;
|
3503
3560
|
onKeyDown(event: any): void;
|
3504
3561
|
onPointerDown(event: any, item: any): void;
|
3505
3562
|
refresh(): void;
|
3563
|
+
resetFocusedItem(): void;
|
3564
|
+
focusFirstVisibleItem(): void;
|
3565
|
+
focusLastVisibleItem(): void;
|
3566
|
+
initFocusedItem(): void;
|
3567
|
+
focusNextVisibleItem(): void;
|
3568
|
+
focusPrevVisibleItem(): void;
|
3569
|
+
selectFocusedItem(): void;
|
3506
3570
|
}
|
3507
3571
|
export declare class MatrixDropdownRowModel extends MatrixDropdownRowModelBase {
|
3508
3572
|
constructor(name: string, item: ItemValue, data: IMatrixDropdownData, value: any);
|
@@ -3576,10 +3640,12 @@ export declare class QuestionMatrixDynamicRenderedTable extends QuestionMatrixDr
|
|
3576
3640
|
}
|
3577
3641
|
export declare class QuestionPanelDynamicItemTextProcessor extends QuestionTextProcessor {
|
3578
3642
|
constructor(data: IQuestionPanelDynamicData, panelItem: QuestionPanelDynamicItem, variableName: string);
|
3643
|
+
sharedQuestions: any;
|
3579
3644
|
protected get survey(): ISurvey;
|
3580
3645
|
protected get panel(): PanelModel;
|
3581
3646
|
protected getValues(): any;
|
3582
3647
|
protected getQuestionByName(name: string): Question;
|
3648
|
+
protected getQuestionDisplayText(question: Question): string;
|
3583
3649
|
protected onCustomProcessText(textValue: TextPreProcessorValue): boolean;
|
3584
3650
|
}
|
3585
3651
|
/*
|
@@ -3611,7 +3677,7 @@ export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
|
3611
3677
|
protected renderElement(): JSX.Element;
|
3612
3678
|
}
|
3613
3679
|
/*
|
3614
|
-
*
|
3680
|
+
* A base class for all survey elements.
|
3615
3681
|
*/
|
3616
3682
|
export declare class SurveyElement extends SurveyElementCore implements ISurveyElement {
|
3617
3683
|
constructor(name: string);
|
@@ -3634,28 +3700,35 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3634
3700
|
protected getSkeletonComponentNameCore(): string;
|
3635
3701
|
get skeletonComponentName(): string;
|
3636
3702
|
/*
|
3637
|
-
*
|
3703
|
+
* Gets and sets the survey element's expand state.
|
3704
|
+
*
|
3705
|
+
* Possible values:
|
3706
|
+
*
|
3707
|
+
* - `"collapsed"` - The survey element displays only `title` and `description`.
|
3708
|
+
* - `"expanded"` - The survey element is displayed in full.
|
3638
3709
|
*/
|
3639
3710
|
get state(): string;
|
3640
3711
|
set state(val: string);
|
3641
3712
|
/*
|
3642
|
-
* Returns true if the
|
3713
|
+
* Returns `true` if the survey element is collapsed.
|
3643
3714
|
*/
|
3644
3715
|
get isCollapsed(): boolean;
|
3645
3716
|
/*
|
3646
|
-
* Returns true if the
|
3717
|
+
* Returns `true` if the survey element is expanded.
|
3647
3718
|
*/
|
3648
3719
|
get isExpanded(): boolean;
|
3649
3720
|
/*
|
3650
|
-
*
|
3721
|
+
* Collapses the survey element.
|
3722
|
+
*
|
3723
|
+
* In collapsed state, the element displays only `title` and `description`.
|
3651
3724
|
*/
|
3652
3725
|
collapse(): void;
|
3653
3726
|
/*
|
3654
|
-
*
|
3727
|
+
* Expands the survey element.
|
3655
3728
|
*/
|
3656
3729
|
expand(): void;
|
3657
3730
|
/*
|
3658
|
-
*
|
3731
|
+
* Toggles the survey element's `state` between collapsed and expanded.
|
3659
3732
|
*/
|
3660
3733
|
toggleState(): boolean;
|
3661
3734
|
get hasStateButton(): boolean;
|
@@ -3690,18 +3763,25 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3690
3763
|
protected get isInternal(): boolean;
|
3691
3764
|
get areInvisibleElementsShowing(): boolean;
|
3692
3765
|
get isVisible(): boolean;
|
3766
|
+
/*
|
3767
|
+
* Returns `true` if the survey element or its parent element is read-only.
|
3768
|
+
*/
|
3693
3769
|
get isReadOnly(): boolean;
|
3694
3770
|
/*
|
3695
|
-
*
|
3696
|
-
* Please note, this property is hidden for question without input, for example html question.
|
3771
|
+
* Makes the survey element read-only.
|
3697
3772
|
*/
|
3698
3773
|
get readOnly(): boolean;
|
3699
3774
|
set readOnly(val: boolean);
|
3700
3775
|
protected onReadOnlyChanged(): void;
|
3701
3776
|
cssClassesValue: any;
|
3702
3777
|
/*
|
3703
|
-
* Returns
|
3704
|
-
*
|
3778
|
+
* Returns an object in which keys are UI elements and values are CSS classes applied to them.
|
3779
|
+
*
|
3780
|
+
* Use the following events of the [`SurveyModel`](https://surveyjs.io/form-library/documentation/surveymodel) object to override CSS classes:
|
3781
|
+
*
|
3782
|
+
* - [`onUpdatePageCssClasses`](https://surveyjs.io/form-library/documentation/surveymodel#onUpdatePageCssClasses)
|
3783
|
+
* - [`onUpdatePanelCssClasses`](https://surveyjs.io/form-library/documentation/surveymodel#onUpdatePanelCssClasses)
|
3784
|
+
* - [`onUpdateQuestionCssClasses`](https://surveyjs.io/form-library/documentation/surveymodel#onUpdateQuestionCssClasses)
|
3705
3785
|
*/
|
3706
3786
|
get cssClasses(): any;
|
3707
3787
|
protected calcCssClasses(css: any): any;
|
@@ -3711,7 +3791,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3711
3791
|
protected clearCssClasses(): void;
|
3712
3792
|
protected getIsLoadingFromJson(): boolean;
|
3713
3793
|
/*
|
3714
|
-
*
|
3794
|
+
* A survey element identifier.
|
3715
3795
|
*/
|
3716
3796
|
get name(): string;
|
3717
3797
|
set name(val: string);
|
@@ -3719,14 +3799,15 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3719
3799
|
protected onNameChanged(oldValue: string): void;
|
3720
3800
|
protected updateBindingValue(valueName: string, value: any): void;
|
3721
3801
|
/*
|
3722
|
-
*
|
3802
|
+
* Validation errors. Call the `hasErrors()` method to validate survey element data.
|
3723
3803
|
*/
|
3724
3804
|
get errors(): any;
|
3725
3805
|
set errors(val: any);
|
3726
3806
|
hasVisibleErrors: boolean;
|
3727
3807
|
/*
|
3728
|
-
* Returns true if
|
3729
|
-
*
|
3808
|
+
* Returns `true` if the survey element or its child elements have a validation error.
|
3809
|
+
*
|
3810
|
+
* This property contains the result of the most recent validation. This result may be outdated. Call the `hasErrors` method to get an up-to-date value.
|
3730
3811
|
*/
|
3731
3812
|
get containsErrors(): boolean;
|
3732
3813
|
updateContainsErrors(): void;
|
@@ -3740,21 +3821,21 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3740
3821
|
endLoadingFromJson(): void;
|
3741
3822
|
setVisibleIndex(index: number): number;
|
3742
3823
|
/*
|
3743
|
-
* Returns true if
|
3824
|
+
* Returns `true` if the survey element is a page.
|
3744
3825
|
*/
|
3745
3826
|
get isPage(): boolean;
|
3746
3827
|
/*
|
3747
|
-
* Returns true if
|
3828
|
+
* Returns `true` if the survey element is a panel.
|
3748
3829
|
*/
|
3749
3830
|
get isPanel(): boolean;
|
3750
3831
|
/*
|
3751
|
-
* Returns true if
|
3832
|
+
* Returns `true` if the survey element is a question.
|
3752
3833
|
*/
|
3753
3834
|
get isQuestion(): boolean;
|
3754
3835
|
delete(): void;
|
3755
3836
|
locOwner: ILocalizableOwner;
|
3756
3837
|
/*
|
3757
|
-
* Returns the
|
3838
|
+
* Returns the survey's [locale](https://surveyjs.io/form-library/documentation/surveymodel#locale).
|
3758
3839
|
*/
|
3759
3840
|
getLocale(): string;
|
3760
3841
|
getMarkdownHtml(text: string, name: string): string;
|
@@ -3779,32 +3860,38 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3779
3860
|
isSingleInRow: boolean;
|
3780
3861
|
protected get hasFrameV2(): boolean;
|
3781
3862
|
/*
|
3782
|
-
*
|
3863
|
+
* Sets survey element width in CSS values.
|
3864
|
+
*
|
3865
|
+
* Default value: ""
|
3783
3866
|
*/
|
3784
3867
|
get width(): string;
|
3785
3868
|
set width(val: string);
|
3786
3869
|
/*
|
3787
|
-
*
|
3870
|
+
* Gets or sets minimum survey element width in CSS values.
|
3871
|
+
*
|
3872
|
+
* Default value: "300px" (taken from [`settings.minWidth`](https://surveyjs.io/form-library/documentation/settings#minWidth))
|
3788
3873
|
*/
|
3789
3874
|
get minWidth(): string;
|
3790
3875
|
set minWidth(val: string);
|
3791
3876
|
/*
|
3792
|
-
*
|
3877
|
+
* Gets or sets maximum survey element width in CSS values.
|
3878
|
+
*
|
3879
|
+
* Default value: "100%" (taken from [`settings.maxWidth`](https://surveyjs.io/form-library/documentation/settings#maxWidth))
|
3793
3880
|
*/
|
3794
3881
|
get maxWidth(): string;
|
3795
3882
|
set maxWidth(val: string);
|
3796
3883
|
/*
|
3797
|
-
*
|
3884
|
+
* Returns a calculated width of the rendered survey element in CSS values.
|
3798
3885
|
*/
|
3799
3886
|
get renderWidth(): string;
|
3800
3887
|
set renderWidth(val: string);
|
3801
3888
|
/*
|
3802
|
-
*
|
3889
|
+
* Increases or decreases indent of the survey element content from the left edge. Accepts positive integer values and 0.
|
3803
3890
|
*/
|
3804
3891
|
get indent(): number;
|
3805
3892
|
set indent(val: number);
|
3806
3893
|
/*
|
3807
|
-
*
|
3894
|
+
* Increases or decreases indent of the survey element content from the right edge. Accepts positive integer values and 0.
|
3808
3895
|
*/
|
3809
3896
|
get rightIndent(): number;
|
3810
3897
|
set rightIndent(val: number);
|
@@ -4147,6 +4234,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4147
4234
|
/*
|
4148
4235
|
* The event is fired on downloading a file in QuestionFile. Use this event to pass the file to a preview.
|
4149
4236
|
* - `sender` - the survey object that fires the event.
|
4237
|
+
* - `question` - the question instance.
|
4150
4238
|
* - `options.name` - the question name.
|
4151
4239
|
* - `options.content` - the file content.
|
4152
4240
|
* - `options.fileValue` - single file question value.
|
@@ -4403,12 +4491,15 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4403
4491
|
*/
|
4404
4492
|
onDynamicPanelRemoved: EventBase<SurveyModel>;
|
4405
4493
|
/*
|
4406
|
-
*
|
4407
|
-
*
|
4408
|
-
*
|
4409
|
-
*
|
4410
|
-
* - `
|
4411
|
-
* - `options.
|
4494
|
+
* An event that is raised before a panel is removed from a Dynamic Panel question. Use this event to cancel the removal.
|
4495
|
+
*
|
4496
|
+
* Parameters:
|
4497
|
+
*
|
4498
|
+
* - `sender` - A Survey instance that raised the event.
|
4499
|
+
* - `options.question` - A [Panel Dynamic](https://surveyjs.io/Documentation/Library?id=questionpaneldynamicmodel) question instance.
|
4500
|
+
* - `options.panelIndex` - The index of the removed panel.
|
4501
|
+
* - `options.panel` - The [instance of the removed panel](https://surveyjs.io/Documentation/Library?id=panelmodel).
|
4502
|
+
* - `options.allow` - A Boolean property that you should set to `false` if you want to cancel the panel removal.
|
4412
4503
|
*/
|
4413
4504
|
onDynamicPanelRemoving: EventBase<SurveyModel>;
|
4414
4505
|
/*
|
@@ -5396,7 +5487,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5396
5487
|
/*
|
5397
5488
|
* Downloads a file from server
|
5398
5489
|
*/
|
5399
|
-
downloadFile(questionName: string, fileValue: any, callback: (status: string, data: any) => any): void;
|
5490
|
+
downloadFile(question: IQuestion, questionName: string, fileValue: any, callback: (status: string, data: any) => any): void;
|
5400
5491
|
/*
|
5401
5492
|
* Clears files from server.
|
5402
5493
|
*/
|
@@ -5462,7 +5553,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5462
5553
|
/*
|
5463
5554
|
* Returns a panel by its name.
|
5464
5555
|
*/
|
5465
|
-
getPanelByName(name: string, caseInsensitive?: boolean):
|
5556
|
+
getPanelByName(name: string, caseInsensitive?: boolean): PanelModel;
|
5466
5557
|
/*
|
5467
5558
|
* Returns a list of all survey's panels.
|
5468
5559
|
*/
|
@@ -5636,7 +5727,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5636
5727
|
calculatedWidthMode: string;
|
5637
5728
|
calculateWidthMode(): string;
|
5638
5729
|
/*
|
5639
|
-
*
|
5730
|
+
* A survey width in CSS values.
|
5731
|
+
*
|
5732
|
+
* Default value: `undefined` (the survey inherits the width from its container)
|
5640
5733
|
*/
|
5641
5734
|
get width(): string;
|
5642
5735
|
set width(val: string);
|
@@ -6123,13 +6216,15 @@ export declare class DragDropRankingChoices extends DragDropChoices {
|
|
6123
6216
|
protected doClear: any;
|
6124
6217
|
}
|
6125
6218
|
export declare class MultiSelectListModel extends ListModel {
|
6126
|
-
constructor(items: any, onSelectionChanged: (item: Action, status: string) => void, allowSelection: boolean, selectedItems?: any,
|
6219
|
+
constructor(items: any, onSelectionChanged: (item: Action, status: string) => void, allowSelection: boolean, selectedItems?: any, onFilterStringChangedCallback?: (text: string) => void);
|
6127
6220
|
selectedItems: any;
|
6128
6221
|
hideSelectedItems: boolean;
|
6129
6222
|
onItemClick: (item: Action) => void;
|
6130
6223
|
isItemDisabled: (itemValue: Action) => boolean;
|
6131
6224
|
isItemSelected: (itemValue: Action) => boolean;
|
6132
6225
|
setSelectedItems(newItems: any): void;
|
6226
|
+
initFocusedItem(): void;
|
6227
|
+
selectFocusedItem(): void;
|
6133
6228
|
}
|
6134
6229
|
/*
|
6135
6230
|
* A base class for a Panel and Page objects.
|
@@ -6144,7 +6239,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
6144
6239
|
removeElementCallback: (element: IElement) => void;
|
6145
6240
|
onGetQuestionTitleLocation: any;
|
6146
6241
|
/*
|
6147
|
-
* Returns the
|
6242
|
+
* Returns the object type as it is used in the JSON schema.
|
6148
6243
|
*/
|
6149
6244
|
getType(): string;
|
6150
6245
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
@@ -6335,9 +6430,6 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
6335
6430
|
protected beforeSetVisibleIndex(index: number): number;
|
6336
6431
|
protected getPanelStartIndex(index: number): number;
|
6337
6432
|
protected isContinueNumbering(): boolean;
|
6338
|
-
/*
|
6339
|
-
* Returns true if readOnly property is true or survey is in display mode or parent panel/page is readOnly.
|
6340
|
-
*/
|
6341
6433
|
get isReadOnly(): boolean;
|
6342
6434
|
protected onReadOnlyChanged(): void;
|
6343
6435
|
updateElementCss(reNew?: boolean): void;
|
@@ -6727,9 +6819,6 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6727
6819
|
set hasOther(val: boolean);
|
6728
6820
|
protected hasOtherChanged(): void;
|
6729
6821
|
get requireUpdateCommentValue(): boolean;
|
6730
|
-
/*
|
6731
|
-
* Returns true if readOnly property is true or survey is in display mode or parent panel/page is readOnly.
|
6732
|
-
*/
|
6733
6822
|
get isReadOnly(): boolean;
|
6734
6823
|
get isInputReadOnly(): boolean;
|
6735
6824
|
get renderedInputReadOnly(): string;
|
@@ -7020,6 +7109,7 @@ export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElem
|
|
7020
7109
|
}
|
7021
7110
|
export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
|
7022
7111
|
constructor(props: any);
|
7112
|
+
inputElement: any;
|
7023
7113
|
click: (event: any) => void;
|
7024
7114
|
clear: (event: any) => void;
|
7025
7115
|
keyup: (event: any) => void;
|
@@ -7027,9 +7117,12 @@ export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontr
|
|
7027
7117
|
protected setValueCore(newValue: any): void;
|
7028
7118
|
protected getValueCore(): any;
|
7029
7119
|
protected renderSelect(cssClasses: any): JSX.Element;
|
7030
|
-
protected renderInput(): JSX.Element;
|
7120
|
+
protected renderInput(dropdownListModel: any): JSX.Element;
|
7031
7121
|
createClearButton(): JSX.Element;
|
7032
7122
|
protected renderOther(cssClasses: any): JSX.Element;
|
7123
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
7124
|
+
componentDidMount(): void;
|
7125
|
+
updateInputDomElement(): void;
|
7033
7126
|
}
|
7034
7127
|
export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
|
7035
7128
|
constructor(props: any);
|
@@ -7395,6 +7488,7 @@ export declare class QuestionBooleanModel extends Question {
|
|
7395
7488
|
protected setDefaultValue(): void;
|
7396
7489
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
7397
7490
|
getItemCss(): string;
|
7491
|
+
getCheckboxItemCss(): string;
|
7398
7492
|
getLabelCss(checked: boolean): string;
|
7399
7493
|
get svgIcon(): string;
|
7400
7494
|
get allowClick(): boolean;
|
@@ -8376,7 +8470,7 @@ export declare class QuestionSelectBase extends Question {
|
|
8376
8470
|
set otherText(val: string);
|
8377
8471
|
get locOtherText(): LocalizableString;
|
8378
8472
|
/*
|
8379
|
-
*
|
8473
|
+
* Displays the "Select All", "None", and "Other" choices on individual rows.
|
8380
8474
|
*/
|
8381
8475
|
separateSpecialChoices: boolean;
|
8382
8476
|
/*
|
@@ -8611,7 +8705,7 @@ export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdown
|
|
8611
8705
|
export declare class SurveyQuestionTagbox extends SurveyQuestionDropdownBase<QuestionTagboxModel> {
|
8612
8706
|
constructor(props: any);
|
8613
8707
|
protected renderItem(key: string, item: any): JSX.Element;
|
8614
|
-
protected renderInput(): JSX.Element;
|
8708
|
+
protected renderInput(dropdownListModel: any): JSX.Element;
|
8615
8709
|
protected renderElement(): JSX.Element;
|
8616
8710
|
}
|
8617
8711
|
/*
|
@@ -8797,7 +8891,7 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8797
8891
|
*/
|
8798
8892
|
itemComponent: string;
|
8799
8893
|
/*
|
8800
|
-
* Specifies whether
|
8894
|
+
* Specifies whether users can enter a value into the input field to filter the drop-down list.
|
8801
8895
|
*/
|
8802
8896
|
searchEnabled: boolean;
|
8803
8897
|
/*
|
@@ -8807,11 +8901,13 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8807
8901
|
set cleanButtonCaption(val: string);
|
8808
8902
|
get locCleanButtonCaption(): LocalizableString;
|
8809
8903
|
getControlClass(): string;
|
8810
|
-
get readOnlyText():
|
8904
|
+
get readOnlyText(): string;
|
8811
8905
|
get popupModel(): any;
|
8812
8906
|
onOpened: EventBase<QuestionDropdownModel>;
|
8813
8907
|
onOpenedCallBack(): void;
|
8814
8908
|
protected onVisibleChoicesChanged(): void;
|
8909
|
+
protected getFirstInputElementId(): string;
|
8910
|
+
getInputId(): string;
|
8815
8911
|
onClick(e: any): void;
|
8816
8912
|
onKeyUp(event: any): void;
|
8817
8913
|
}
|
@@ -8997,7 +9093,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8997
9093
|
get columnColCount(): number;
|
8998
9094
|
set columnColCount(val: number);
|
8999
9095
|
/*
|
9000
|
-
*
|
9096
|
+
* Minimum column width in CSS values.
|
9001
9097
|
*/
|
9002
9098
|
get columnMinWidth(): string;
|
9003
9099
|
set columnMinWidth(val: string);
|
@@ -9340,6 +9436,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
9340
9436
|
*/
|
9341
9437
|
get valuePropertyName(): string;
|
9342
9438
|
set valuePropertyName(val: string);
|
9439
|
+
getQuestionFromArray(name: string, index: number): IQuestion;
|
9343
9440
|
/*
|
9344
9441
|
* Returns the select all item. By using this property, you may change programmatically it's value and text.
|
9345
9442
|
*/
|
@@ -9521,6 +9618,7 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
9521
9618
|
protected getConditionObjectRowName(index: number): string;
|
9522
9619
|
protected getConditionObjectRowText(index: number): string;
|
9523
9620
|
protected getConditionObjectsRowIndeces(): Array<any>;
|
9621
|
+
protected setNewValue(newValue: any): void;
|
9524
9622
|
clearIncorrectValues(): void;
|
9525
9623
|
protected clearValueIfInvisibleCore(): void;
|
9526
9624
|
protected generateRows(): Array<MatrixDropdownRowModel>;
|
@@ -9767,16 +9865,23 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
9767
9865
|
export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
9768
9866
|
constructor(name: string);
|
9769
9867
|
dropdownListModel: DropdownMultiSelectListModel;
|
9770
|
-
get readOnlyText():
|
9868
|
+
get readOnlyText(): any;
|
9771
9869
|
onSurveyLoad(): void;
|
9772
9870
|
/*
|
9773
9871
|
* Specifies whether to display a button that clears the selected value.
|
9774
9872
|
*/
|
9775
9873
|
allowClear: boolean;
|
9776
9874
|
/*
|
9777
|
-
* Specifies whether
|
9875
|
+
* Specifies whether users can enter a value into the input field to filter the drop-down list.
|
9778
9876
|
*/
|
9779
9877
|
searchEnabled: boolean;
|
9878
|
+
/*
|
9879
|
+
* The name of a component used to render drop-down menu items.
|
9880
|
+
*/
|
9881
|
+
itemComponent: string;
|
9882
|
+
/*
|
9883
|
+
* Specifies whether to remove selected items from the drop-down list.
|
9884
|
+
*/
|
9780
9885
|
hideSelectedItems: boolean;
|
9781
9886
|
/*
|
9782
9887
|
* The clean files button caption.
|
@@ -9796,6 +9901,8 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
9796
9901
|
onOpened: EventBase<QuestionTagboxModel>;
|
9797
9902
|
onOpenedCallBack(): void;
|
9798
9903
|
protected onVisibleChoicesChanged(): void;
|
9904
|
+
protected getFirstInputElementId(): string;
|
9905
|
+
getInputId(): string;
|
9799
9906
|
}
|
9800
9907
|
export declare function property(options?: any): (target: any, key: string) => void;
|
9801
9908
|
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
@@ -10058,6 +10165,7 @@ export declare var defaultListCss: {
|
|
10058
10165
|
itemSelected: string,
|
10059
10166
|
itemWithIcon: string,
|
10060
10167
|
itemDisabled: string,
|
10168
|
+
itemFocused: string,
|
10061
10169
|
itemIcon: string,
|
10062
10170
|
itemsContainer: string,
|
10063
10171
|
filter: string,
|
@@ -10169,7 +10277,6 @@ export declare var defaultStandardCss: {
|
|
10169
10277
|
rootRadio: string,
|
10170
10278
|
item: string,
|
10171
10279
|
control: string,
|
10172
|
-
controlCheckbox: string,
|
10173
10280
|
itemChecked: string,
|
10174
10281
|
itemIndeterminate: string,
|
10175
10282
|
itemDisabled: string,
|
@@ -10177,11 +10284,15 @@ export declare var defaultStandardCss: {
|
|
10177
10284
|
slider: string,
|
10178
10285
|
label: string,
|
10179
10286
|
disabledLabel: string,
|
10180
|
-
|
10181
|
-
|
10182
|
-
|
10183
|
-
|
10184
|
-
|
10287
|
+
rootCheckbox: string,
|
10288
|
+
checkboxItem: string,
|
10289
|
+
checkboxItemChecked: string,
|
10290
|
+
controlCheckbox: string,
|
10291
|
+
checkboxControlLabel: string,
|
10292
|
+
checkboxItemIndeterminate: string,
|
10293
|
+
checkboxItemDisabled: string,
|
10294
|
+
checkboxMaterialDecorator: string,
|
10295
|
+
checkboxItemDecorator: string,
|
10185
10296
|
},
|
10186
10297
|
checkbox: {
|
10187
10298
|
root: string,
|
@@ -10225,6 +10336,7 @@ export declare var defaultStandardCss: {
|
|
10225
10336
|
cleanButtonSvg: string,
|
10226
10337
|
cleanButtonIconId: string,
|
10227
10338
|
controlValue: string,
|
10339
|
+
filterStringInput: string,
|
10228
10340
|
},
|
10229
10341
|
html: {
|
10230
10342
|
root: string,
|
@@ -10416,6 +10528,8 @@ export declare var defaultStandardCss: {
|
|
10416
10528
|
control: string,
|
10417
10529
|
controlValue: string,
|
10418
10530
|
controlEmpty: string,
|
10531
|
+
placeholderInput: string,
|
10532
|
+
filterStringInput: string,
|
10419
10533
|
},
|
10420
10534
|
};
|
10421
10535
|
export declare var surveyTimerFunctions: {
|
@@ -11337,27 +11451,36 @@ export declare var defaultV2Css: {
|
|
11337
11451
|
root: string,
|
11338
11452
|
rootRadio: string,
|
11339
11453
|
item: string,
|
11340
|
-
radioItem: string,
|
11341
|
-
radioItemChecked: string,
|
11342
|
-
radioLabel: string,
|
11343
|
-
radioControlLabel: string,
|
11344
|
-
radioFieldset: string,
|
11345
11454
|
itemOnError: string,
|
11346
11455
|
control: string,
|
11347
|
-
controlCheckbox: string,
|
11348
11456
|
itemChecked: string,
|
11349
11457
|
itemIndeterminate: string,
|
11350
11458
|
itemDisabled: string,
|
11351
11459
|
label: string,
|
11352
11460
|
switch: string,
|
11353
11461
|
disabledLabel: string,
|
11354
|
-
itemDecorator: string,
|
11355
|
-
materialDecorator: string,
|
11356
|
-
itemRadioDecorator: string,
|
11357
|
-
materialRadioDecorator: string,
|
11358
11462
|
sliderText: string,
|
11359
11463
|
slider: string,
|
11360
|
-
|
11464
|
+
radioItem: string,
|
11465
|
+
radioItemChecked: string,
|
11466
|
+
radioLabel: string,
|
11467
|
+
radioControlLabel: string,
|
11468
|
+
radioFieldset: string,
|
11469
|
+
itemRadioDecorator: string,
|
11470
|
+
materialRadioDecorator: string,
|
11471
|
+
itemRadioControl: string,
|
11472
|
+
rootCheckbox: string,
|
11473
|
+
checkboxItem: string,
|
11474
|
+
checkboxLabel: string,
|
11475
|
+
checkboxItemOnError: string,
|
11476
|
+
checkboxItemIndeterminate: string,
|
11477
|
+
checkboxItemChecked: string,
|
11478
|
+
checkboxItemDecorator: string,
|
11479
|
+
checkboxItemDisabled: string,
|
11480
|
+
controlCheckbox: string,
|
11481
|
+
checkboxMaterialDecorator: string,
|
11482
|
+
checkboxControlLabel: string,
|
11483
|
+
svgIconCheckedId: string,
|
11361
11484
|
},
|
11362
11485
|
text: {
|
11363
11486
|
root: string,
|
@@ -11395,6 +11518,7 @@ export declare var defaultV2Css: {
|
|
11395
11518
|
controlDisabled: string,
|
11396
11519
|
controlEmpty: string,
|
11397
11520
|
controlLabel: string,
|
11521
|
+
filterStringInput: string,
|
11398
11522
|
materialDecorator: string,
|
11399
11523
|
},
|
11400
11524
|
imagepicker: {
|
@@ -11517,6 +11641,7 @@ export declare var defaultV2Css: {
|
|
11517
11641
|
controlValue: string,
|
11518
11642
|
controlDisabled: string,
|
11519
11643
|
controlEmpty: string,
|
11644
|
+
filterStringInput: string,
|
11520
11645
|
onError: string,
|
11521
11646
|
},
|
11522
11647
|
comment: {
|
@@ -11661,9 +11786,12 @@ export declare var defaultV2Css: {
|
|
11661
11786
|
cleanItemButtonIconId: string,
|
11662
11787
|
control: string,
|
11663
11788
|
controlValue: string,
|
11789
|
+
controlValueItems: string,
|
11790
|
+
placeholderInput: string,
|
11664
11791
|
controlDisabled: string,
|
11665
11792
|
controlEmpty: string,
|
11666
11793
|
controlLabel: string,
|
11794
|
+
filterStringInput: string,
|
11667
11795
|
materialDecorator: string,
|
11668
11796
|
},
|
11669
11797
|
};
|
@@ -11869,7 +11997,6 @@ export declare var modernCss: {
|
|
11869
11997
|
small: string,
|
11870
11998
|
item: string,
|
11871
11999
|
control: string,
|
11872
|
-
controlCheckbox: string,
|
11873
12000
|
itemChecked: string,
|
11874
12001
|
itemIndeterminate: string,
|
11875
12002
|
itemDisabled: string,
|
@@ -11877,10 +12004,15 @@ export declare var modernCss: {
|
|
11877
12004
|
slider: string,
|
11878
12005
|
label: string,
|
11879
12006
|
disabledLabel: string,
|
11880
|
-
|
11881
|
-
|
11882
|
-
|
11883
|
-
|
12007
|
+
rootCheckbox: string,
|
12008
|
+
checkboxItem: string,
|
12009
|
+
checkboxItemChecked: string,
|
12010
|
+
controlCheckbox: string,
|
12011
|
+
checkboxControlLabel: string,
|
12012
|
+
checkboxItemIndeterminate: string,
|
12013
|
+
checkboxItemDisabled: string,
|
12014
|
+
checkboxMaterialDecorator: string,
|
12015
|
+
checkboxItemDecorator: string,
|
11884
12016
|
indeterminatePath: string,
|
11885
12017
|
svgIconCheckedId: string,
|
11886
12018
|
svgIconUncheckedId: string,
|
@@ -11909,8 +12041,26 @@ export declare var modernCss: {
|
|
11909
12041
|
cleanButton: string,
|
11910
12042
|
cleanButtonSvg: string,
|
11911
12043
|
cleanButtonIconId: string,
|
12044
|
+
filterStringInput: string,
|
11912
12045
|
controlValue: string,
|
11913
12046
|
},
|
12047
|
+
tagbox: {
|
12048
|
+
root: string,
|
12049
|
+
small: string,
|
12050
|
+
selectWrapper: string,
|
12051
|
+
other: string,
|
12052
|
+
cleanButton: string,
|
12053
|
+
cleanButtonSvg: string,
|
12054
|
+
cleanButtonIconId: string,
|
12055
|
+
cleanItemButton: string,
|
12056
|
+
cleanItemButtonSvg: string,
|
12057
|
+
cleanItemButtonIconId: string,
|
12058
|
+
control: string,
|
12059
|
+
controlValue: string,
|
12060
|
+
controlEmpty: string,
|
12061
|
+
placeholderInput: string,
|
12062
|
+
filterStringInput: string,
|
12063
|
+
},
|
11914
12064
|
imagepicker: {
|
11915
12065
|
root: string,
|
11916
12066
|
column: string,
|
@@ -11995,6 +12145,7 @@ export declare var modernCss: {
|
|
11995
12145
|
itemText: string,
|
11996
12146
|
maxText: string,
|
11997
12147
|
itemDisabled: string,
|
12148
|
+
filterStringInput: string,
|
11998
12149
|
},
|
11999
12150
|
comment: {
|
12000
12151
|
root: string,
|