survey-react 1.9.40 → 1.9.43
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 +170 -67
- package/defaultV2.min.css +2 -2
- package/modern.css +66 -26
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +27 -4
- package/survey.min.css +2 -2
- package/survey.react.d.ts +208 -33
- package/survey.react.js +1697 -729
- 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.43
|
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
|
*/
|
@@ -209,9 +209,21 @@ export interface ISize {
|
|
209
209
|
width: number;
|
210
210
|
height: number;
|
211
211
|
}
|
212
|
+
export interface IDialogOptions {
|
213
|
+
componentName: string;
|
214
|
+
data: any;
|
215
|
+
onApply: any;
|
216
|
+
onCancel?: any;
|
217
|
+
onHide?: any;
|
218
|
+
onShow?: any;
|
219
|
+
cssClass?: string;
|
220
|
+
title?: string;
|
221
|
+
displayMode?: "popup" | "overlay";
|
222
|
+
}
|
212
223
|
export interface ISurveyTriggerOwner {
|
213
224
|
getObjects(pages: any, questions: any): Array<any>;
|
214
|
-
setCompleted():
|
225
|
+
setCompleted(): void;
|
226
|
+
canBeCompleted(): void;
|
215
227
|
triggerExecuted(trigger: Trigger): void;
|
216
228
|
setTriggerValue(name: string, value: any, isVariable: boolean): any;
|
217
229
|
copyTriggerValue(name: string, fromName: string): any;
|
@@ -677,7 +689,7 @@ export interface ISurveyCreator {
|
|
677
689
|
export interface ISurveyHeaderProps {
|
678
690
|
survey: any;
|
679
691
|
}
|
680
|
-
export interface
|
692
|
+
export interface IMatrixRowProps {
|
681
693
|
model: any;
|
682
694
|
parentMatrix: any;
|
683
695
|
}
|
@@ -810,7 +822,7 @@ export declare class Base {
|
|
810
822
|
*/
|
811
823
|
get isLoadingFromJson(): boolean;
|
812
824
|
protected getIsLoadingFromJson(): boolean;
|
813
|
-
startLoadingFromJson(): void;
|
825
|
+
startLoadingFromJson(json?: any): void;
|
814
826
|
endLoadingFromJson(): void;
|
815
827
|
/*
|
816
828
|
* Deserialized the current object into JSON
|
@@ -1260,13 +1272,13 @@ export declare class OperandMaker {
|
|
1260
1272
|
}
|
1261
1273
|
export declare class PopupUtils {
|
1262
1274
|
static bottomIndent: number;
|
1263
|
-
static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean): INumberPosition;
|
1275
|
+
static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean, positionMode?: any): INumberPosition;
|
1264
1276
|
static updateVerticalDimensions(top: number, height: number, windowHeight: number): any;
|
1265
|
-
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any): any;
|
1277
|
+
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any, positionMode?: any, margins?: any): any;
|
1266
1278
|
static updateVerticalPosition(targetRect: any, height: number, verticalPosition: any, showPointer: boolean, windowHeight: number): any;
|
1267
1279
|
static calculatePopupDirection(verticalPosition: any, horizontalPosition: any): string;
|
1268
1280
|
static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any, marginLeft?: number, marginRight?: number): INumberPosition;
|
1269
|
-
static updatePopupWidthBeforeShow(popupModel: any, target: JSX.Element
|
1281
|
+
static updatePopupWidthBeforeShow(popupModel: any, target: JSX.Element): void;
|
1270
1282
|
}
|
1271
1283
|
export declare class ProcessValue {
|
1272
1284
|
constructor();
|
@@ -1461,6 +1473,8 @@ export declare class SurveyError {
|
|
1461
1473
|
protected getDefaultText(): string;
|
1462
1474
|
protected getLocale(): string;
|
1463
1475
|
protected getLocalizationString(locStrName: string): string;
|
1476
|
+
onUpdateErrorTextCallback: (error: SurveyError) => void;
|
1477
|
+
updateText(): void;
|
1464
1478
|
}
|
1465
1479
|
export declare class SurveyHeader extends React.Component<ISurveyHeaderProps, any> {
|
1466
1480
|
constructor(props: ISurveyHeaderProps);
|
@@ -1478,10 +1492,12 @@ export declare class SurveyLocStringEditor extends React.Component<any, any> {
|
|
1478
1492
|
}
|
1479
1493
|
export declare class SurveyLocStringViewer extends React.Component<any, any> {
|
1480
1494
|
constructor(props: any);
|
1495
|
+
rootRef: any;
|
1481
1496
|
componentDidMount(): void;
|
1482
1497
|
componentWillUnmount(): void;
|
1483
1498
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
1484
1499
|
isRendering: boolean;
|
1500
|
+
onChangedHandler: (sender: any, options: any) => void;
|
1485
1501
|
render(): JSX.Element;
|
1486
1502
|
protected renderString(): JSX.Element;
|
1487
1503
|
}
|
@@ -1895,8 +1911,8 @@ export declare class DragDropCore<T> extends Base {
|
|
1895
1911
|
protected getShortcutText(draggedElement: IShortcutText): string;
|
1896
1912
|
protected createDraggedElementShortcut(text: string, draggedElementNode?: any, event?: any): any;
|
1897
1913
|
protected getDraggedElementClass(): string;
|
1898
|
-
protected doDragOver(dropTargetNode?: any): void;
|
1899
|
-
protected afterDragOver(dropTargetNode?: any): void;
|
1914
|
+
protected doDragOver(dropTargetNode?: any, event?: any): void;
|
1915
|
+
protected afterDragOver(dropTargetNode?: any, event?: any): void;
|
1900
1916
|
getGhostPosition(item: any): string;
|
1901
1917
|
protected isDropTargetValid(dropTarget: any, dropTargetNode?: any): boolean;
|
1902
1918
|
handlePointerCancel: (event: any) => void;
|
@@ -1906,7 +1922,8 @@ export declare class DragDropCore<T> extends Base {
|
|
1906
1922
|
protected getDataAttributeValueByNode(node: any): any;
|
1907
1923
|
protected getDropTargetByNode(dropTargetNode: any, event: any): any;
|
1908
1924
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode?: any, event?: any): any;
|
1909
|
-
protected
|
1925
|
+
protected calculateVerticalMiddleOfHTMLElement(HTMLElement: any): number;
|
1926
|
+
protected calculateHorizontalMiddleOfHTMLElement(HTMLElement: any): number;
|
1910
1927
|
protected calculateIsBottom(clientY: number, dropTargetNode?: any): boolean;
|
1911
1928
|
protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
|
1912
1929
|
protected doDrop(): any;
|
@@ -1914,9 +1931,13 @@ export declare class DragDropCore<T> extends Base {
|
|
1914
1931
|
protected doClear(): void;
|
1915
1932
|
}
|
1916
1933
|
export declare class DropdownListModel extends Base {
|
1917
|
-
constructor(question: Question);
|
1934
|
+
constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any) => void);
|
1918
1935
|
_popupModel: any;
|
1936
|
+
protected listModel: ListModel;
|
1937
|
+
protected getAvailableItems(): Array<Action>;
|
1938
|
+
protected createListModel(): ListModel;
|
1919
1939
|
get popupModel(): any;
|
1940
|
+
setSearchEnabled(newValue: boolean): void;
|
1920
1941
|
updateItems(): void;
|
1921
1942
|
onClick(event: any): void;
|
1922
1943
|
onClear(event: any): void;
|
@@ -2018,7 +2039,6 @@ export declare class ItemValue extends Base implements ILocalizableOwner, IShort
|
|
2018
2039
|
static runEnabledConditionsForItems(items: any, runner: ConditionRunner, values: any, properties: any, onItemCallBack?: (item: ItemValue, val: boolean) => boolean): boolean;
|
2019
2040
|
ownerPropertyName: string;
|
2020
2041
|
locTextValue: LocalizableString;
|
2021
|
-
isVisibleValue: boolean;
|
2022
2042
|
visibleConditionRunner: ConditionRunner;
|
2023
2043
|
enableConditionRunner: ConditionRunner;
|
2024
2044
|
onCreating(): any;
|
@@ -2046,7 +2066,7 @@ export declare class ItemValue extends Base implements ILocalizableOwner, IShort
|
|
2046
2066
|
set visibleIf(val: string);
|
2047
2067
|
get enableIf(): string;
|
2048
2068
|
set enableIf(val: string);
|
2049
|
-
get isVisible():
|
2069
|
+
get isVisible(): any;
|
2050
2070
|
setIsVisible(val: boolean): void;
|
2051
2071
|
get isEnabled(): any;
|
2052
2072
|
setIsEnabled(val: boolean): void;
|
@@ -2239,6 +2259,7 @@ export declare class LocalizableString implements ILocalizableString {
|
|
2239
2259
|
searchableText: string;
|
2240
2260
|
setFindText(text: string): boolean;
|
2241
2261
|
onChanged(): void;
|
2262
|
+
onStringChanged: EventBase<LocalizableString>;
|
2242
2263
|
protected onCreating(): void;
|
2243
2264
|
getHtmlValue(): string;
|
2244
2265
|
}
|
@@ -2361,6 +2382,7 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
2361
2382
|
getRendererContext(locStr: LocalizableString): any;
|
2362
2383
|
getProcessedText(text: string): string;
|
2363
2384
|
createCellQuestion(row: MatrixDropdownRowModelBase): Question;
|
2385
|
+
startLoadingFromJson(json?: any): void;
|
2364
2386
|
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: (json: any) => any): void;
|
2365
2387
|
defaultCellTypeChanged(): void;
|
2366
2388
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
@@ -2454,8 +2476,8 @@ export declare class MatrixDropdownTotalCell extends MatrixDropdownCell {
|
|
2454
2476
|
updateCellQuestion(): void;
|
2455
2477
|
getTotalExpression(): string;
|
2456
2478
|
}
|
2457
|
-
export declare class MatrixRow extends SurveyElementBase<
|
2458
|
-
constructor(props:
|
2479
|
+
export declare class MatrixRow extends SurveyElementBase<IMatrixRowProps, any> {
|
2480
|
+
constructor(props: IMatrixRowProps);
|
2459
2481
|
get model(): any;
|
2460
2482
|
get parentMatrix(): any;
|
2461
2483
|
protected getStateElement(): any;
|
@@ -2607,6 +2629,7 @@ export declare class PopupBaseViewModel extends Base {
|
|
2607
2629
|
top: string;
|
2608
2630
|
left: string;
|
2609
2631
|
height: string;
|
2632
|
+
width: string;
|
2610
2633
|
minWidth: string;
|
2611
2634
|
isVisible: boolean;
|
2612
2635
|
popupDirection: string;
|
@@ -2668,6 +2691,7 @@ export declare class PopupModel<T = any> extends Base {
|
|
2668
2691
|
cssClass: string;
|
2669
2692
|
title: string;
|
2670
2693
|
displayMode: "popup" | "overlay";
|
2694
|
+
positionMode: any;
|
2671
2695
|
onVisibilityChanged: EventBase<PopupModel<any>>;
|
2672
2696
|
get isVisible(): boolean;
|
2673
2697
|
set isVisible(val: boolean);
|
@@ -2880,7 +2904,7 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
|
2880
2904
|
get question(): any;
|
2881
2905
|
get item(): any;
|
2882
2906
|
getStateElement(): any;
|
2883
|
-
|
2907
|
+
renderElement(): JSX.Element;
|
2884
2908
|
protected renderIcon(): JSX.Element;
|
2885
2909
|
protected renderInput(): JSX.Element;
|
2886
2910
|
protected renderCaption(): JSX.Element;
|
@@ -3143,7 +3167,9 @@ export declare class Trigger extends Base {
|
|
3143
3167
|
set name(val: string);
|
3144
3168
|
get expression(): string;
|
3145
3169
|
set expression(val: string);
|
3146
|
-
|
3170
|
+
protected canBeExecuted(isOnNextPage: boolean): boolean;
|
3171
|
+
protected isExecutingOnNextPage: boolean;
|
3172
|
+
checkExpression(isOnNextPage: boolean, keys: any, values: any, properties?: any): void;
|
3147
3173
|
check(value: any): void;
|
3148
3174
|
protected onSuccess(values: any, properties: any): void;
|
3149
3175
|
protected onFailure(): void;
|
@@ -3195,6 +3221,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
3195
3221
|
minVisibleItemsCount: number;
|
3196
3222
|
isResponsivenessDisabled: boolean;
|
3197
3223
|
protected invisibleItemsListModel: ListModel;
|
3224
|
+
static ContainerID: number;
|
3198
3225
|
protected onSet(): void;
|
3199
3226
|
protected onPush(item: T): void;
|
3200
3227
|
protected getRenderedActions(): Array<T>;
|
@@ -3205,6 +3232,9 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
3205
3232
|
setActionsMode(mode: any): void;
|
3206
3233
|
dispose(): void;
|
3207
3234
|
}
|
3235
|
+
/*
|
3236
|
+
* Validates the number of answers.
|
3237
|
+
*/
|
3208
3238
|
export declare class AnswerCountValidator extends SurveyValidator {
|
3209
3239
|
constructor(minCount?: number, maxCount?: number);
|
3210
3240
|
getType(): string;
|
@@ -3249,7 +3279,9 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
|
3249
3279
|
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
3250
3280
|
protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
|
3251
3281
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
3282
|
+
protected doDragOver: any;
|
3252
3283
|
protected isDropTargetValid(dropTarget: ItemValue): boolean;
|
3284
|
+
protected doBanDropHere: any;
|
3253
3285
|
protected calculateIsBottom(clientY: number): boolean;
|
3254
3286
|
protected afterDragOver(dropTargetNode: any): void;
|
3255
3287
|
protected doDrop(): any;
|
@@ -3281,6 +3313,8 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
3281
3313
|
protected ghostSurveyElement: IElement;
|
3282
3314
|
protected get draggedElementType(): string;
|
3283
3315
|
protected isDraggedElementSelected: boolean;
|
3316
|
+
isRight: boolean;
|
3317
|
+
protected prevIsRight: boolean;
|
3284
3318
|
startDragToolboxItem(event: any, draggedElementJson: JsonObject, toolboxItemTitle: string): void;
|
3285
3319
|
startDragSurveyElement(event: any, draggedElement: any, isElementSelected?: boolean): void;
|
3286
3320
|
protected getShortcutText(draggedElement: IShortcutText): string;
|
@@ -3291,9 +3325,11 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
3291
3325
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: any, event: any): any;
|
3292
3326
|
protected isDropTargetValid(): boolean;
|
3293
3327
|
protected calculateIsBottom(clientY: number, dropTargetNode?: any): boolean;
|
3328
|
+
protected calculateIsRight(clientX: number, dropTargetNode?: any): boolean;
|
3294
3329
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
3295
3330
|
protected findDeepestDropTargetChild(parent: any): any;
|
3296
|
-
protected
|
3331
|
+
protected doDragOver(dropTargetNode?: any, event?: any): void;
|
3332
|
+
protected afterDragOver(dropTargetNode: any, event: any): void;
|
3297
3333
|
protected onStartDrag(): void;
|
3298
3334
|
protected doBanDropHere: any;
|
3299
3335
|
protected doDrop: any;
|
@@ -3301,6 +3337,16 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
3301
3337
|
protected insertGhostElementIntoSurvey(): boolean;
|
3302
3338
|
protected removeGhostElementFromSurvey(): void;
|
3303
3339
|
}
|
3340
|
+
export declare class DropdownMultiSelectListModel extends DropdownListModel {
|
3341
|
+
constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any) => void);
|
3342
|
+
protected override: any;
|
3343
|
+
createListModel(): MultiSelectListModel;
|
3344
|
+
selectAllItems(): void;
|
3345
|
+
selectNoneItem(): void;
|
3346
|
+
selectItem(id: string): void;
|
3347
|
+
deselectItem(id: string): void;
|
3348
|
+
onClear(event: any): void;
|
3349
|
+
}
|
3304
3350
|
/*
|
3305
3351
|
* Validate e-mail address in the text input
|
3306
3352
|
*/
|
@@ -3373,10 +3419,10 @@ export declare class JsonMissingTypeError extends JsonMissingTypeErrorBase {
|
|
3373
3419
|
baseClassName: string;
|
3374
3420
|
}
|
3375
3421
|
export declare class ListModel extends ActionContainer {
|
3376
|
-
constructor(items: any,
|
3377
|
-
|
3422
|
+
constructor(items: any, onSelectionChanged: (item: Action, ...params: any) => void, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChangedCallback?: (text: string) => void);
|
3423
|
+
onSelectionChanged: (item: Action, ...params: any) => void;
|
3378
3424
|
allowSelection: boolean;
|
3379
|
-
|
3425
|
+
searchEnabled: boolean;
|
3380
3426
|
needFilter: boolean;
|
3381
3427
|
isExpanded: boolean;
|
3382
3428
|
selectedItem: IAction;
|
@@ -3385,7 +3431,7 @@ export declare class ListModel extends ActionContainer {
|
|
3385
3431
|
static MINELEMENTCOUNT: number;
|
3386
3432
|
isItemVisible(item: Action): boolean;
|
3387
3433
|
protected onSet(): void;
|
3388
|
-
|
3434
|
+
onItemClick: (itemValue: Action) => void;
|
3389
3435
|
isItemDisabled: (itemValue: Action) => boolean;
|
3390
3436
|
isItemSelected: (itemValue: Action) => boolean;
|
3391
3437
|
getItemClass: (itemValue: Action) => string;
|
@@ -3657,6 +3703,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3657
3703
|
get isErrorsModeTooltip(): boolean;
|
3658
3704
|
protected getIsErrorsModeTooltip(): boolean;
|
3659
3705
|
get hasParent(): boolean;
|
3706
|
+
isSingleInRow: boolean;
|
3660
3707
|
protected get hasFrameV2(): boolean;
|
3661
3708
|
/*
|
3662
3709
|
* Use it to set the specific width to the survey element like css style (%, px, em etc).
|
@@ -3697,6 +3744,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3697
3744
|
get clickTitleFunction(): any;
|
3698
3745
|
protected needClickTitleFunction(): boolean;
|
3699
3746
|
protected processTitleClick(): void;
|
3747
|
+
localeChanged(): void;
|
3700
3748
|
}
|
3701
3749
|
export declare class SurveyElementErrors extends ReactSurveyElement {
|
3702
3750
|
constructor(props: any);
|
@@ -4392,6 +4440,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4392
4440
|
cssValue: any;
|
4393
4441
|
get css(): any;
|
4394
4442
|
set css(val: any);
|
4443
|
+
setCss(value: any, needMerge?: boolean): void;
|
4395
4444
|
get cssTitle(): string;
|
4396
4445
|
get cssNavigationComplete(): string;
|
4397
4446
|
get cssNavigationPreview(): string;
|
@@ -5195,6 +5244,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5195
5244
|
protected doServerValidation(doComplete: boolean, isPreview?: boolean): boolean;
|
5196
5245
|
protected doNextPage(): void;
|
5197
5246
|
setCompleted(): void;
|
5247
|
+
canBeCompleted(): void;
|
5198
5248
|
/*
|
5199
5249
|
* Returns the HTML content for the complete page.
|
5200
5250
|
*/
|
@@ -5500,6 +5550,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5500
5550
|
*/
|
5501
5551
|
get widthMode(): string;
|
5502
5552
|
set widthMode(val: string);
|
5553
|
+
calculatedWidthMode: string;
|
5503
5554
|
calculateWidthMode(): string;
|
5504
5555
|
get timerInfoText(): string;
|
5505
5556
|
get timerModel(): SurveyTimerModel;
|
@@ -5629,7 +5680,7 @@ export declare class SurveyQuestionButtonGroup extends SurveyQuestionElementBase
|
|
5629
5680
|
constructor(props: any);
|
5630
5681
|
protected get question(): any;
|
5631
5682
|
getStateElement(): any;
|
5632
|
-
|
5683
|
+
renderElement(): JSX.Element;
|
5633
5684
|
renderItems(): any;
|
5634
5685
|
}
|
5635
5686
|
export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
@@ -5640,7 +5691,8 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
|
5640
5691
|
protected getFooter(): any;
|
5641
5692
|
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5642
5693
|
protected getColumns(cssClasses: any): any;
|
5643
|
-
protected
|
5694
|
+
protected getBody(cssClasses: any): JSX.Element;
|
5695
|
+
protected getItems(cssClasses: any, choices: any): Array<any>;
|
5644
5696
|
protected get textStyle(): any;
|
5645
5697
|
protected renderOther(): JSX.Element;
|
5646
5698
|
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): JSX.Element;
|
@@ -5755,6 +5807,12 @@ export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElem
|
|
5755
5807
|
renderRow(keyValue: any, row: any, cssClasses: any): JSX.Element;
|
5756
5808
|
renderCell(cell: any, index: number, cssClasses: any): JSX.Element;
|
5757
5809
|
}
|
5810
|
+
export declare class SurveyQuestionMatrixDynamicAddButton extends ReactSurveyElement {
|
5811
|
+
constructor(props: any);
|
5812
|
+
protected get matrix(): any;
|
5813
|
+
handleOnRowAddClick(event: any): void;
|
5814
|
+
protected renderElement(): JSX.Element;
|
5815
|
+
}
|
5758
5816
|
export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
|
5759
5817
|
constructor(props: any);
|
5760
5818
|
protected renderElement(): JSX.Element;
|
@@ -5832,7 +5890,8 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
|
|
5832
5890
|
protected getFooter(): any;
|
5833
5891
|
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5834
5892
|
protected getColumns(cssClasses: any): any;
|
5835
|
-
protected
|
5893
|
+
protected getBody(cssClasses: any): JSX.Element;
|
5894
|
+
protected getItems(cssClasses: any, choices: any): Array<any>;
|
5836
5895
|
protected get textStyle(): any;
|
5837
5896
|
protected renderOther(cssClasses: any): JSX.Element;
|
5838
5897
|
}
|
@@ -5868,6 +5927,14 @@ export declare class SurveyQuestionSignaturePad extends SurveyQuestionElementBas
|
|
5868
5927
|
protected renderElement(): JSX.Element;
|
5869
5928
|
renderCleanButton(): JSX.Element;
|
5870
5929
|
}
|
5930
|
+
export declare class SurveyQuestionTagboxItem extends ReactSurveyElement {
|
5931
|
+
constructor(props: any);
|
5932
|
+
protected getStateElement(): Base;
|
5933
|
+
protected get question(): any;
|
5934
|
+
protected get item(): ItemValue;
|
5935
|
+
protected canRender(): boolean;
|
5936
|
+
protected renderElement(): JSX.Element;
|
5937
|
+
}
|
5871
5938
|
export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestionElementBase {
|
5872
5939
|
constructor(props: any);
|
5873
5940
|
protected get question(): T;
|
@@ -5891,7 +5958,7 @@ export declare class SurveyTrigger extends Trigger {
|
|
5891
5958
|
get owner(): ISurveyTriggerOwner;
|
5892
5959
|
setOwner(owner: ISurveyTriggerOwner): void;
|
5893
5960
|
getSurvey(live?: boolean): ISurvey;
|
5894
|
-
|
5961
|
+
protected isRealExecution(): boolean;
|
5895
5962
|
protected onSuccessExecuted(): void;
|
5896
5963
|
}
|
5897
5964
|
export declare class SurveyWindow extends Survey {
|
@@ -5972,6 +6039,14 @@ export declare class DragDropRankingChoices extends DragDropChoices {
|
|
5972
6039
|
protected doDrop: any;
|
5973
6040
|
protected doClear: any;
|
5974
6041
|
}
|
6042
|
+
export declare class MultiSelectListModel extends ListModel {
|
6043
|
+
constructor(items: any, onSelectionChanged: (item: Action, status: string) => void, allowSelection: boolean, selectedItems?: any, onFilteredTextChangedCallback?: (text: string) => void);
|
6044
|
+
selectedItems: any;
|
6045
|
+
onItemClick: (item: Action) => void;
|
6046
|
+
isItemDisabled: (itemValue: Action) => boolean;
|
6047
|
+
isItemSelected: (itemValue: Action) => boolean;
|
6048
|
+
setSelectedItems(newItems: any): void;
|
6049
|
+
}
|
5975
6050
|
/*
|
5976
6051
|
* A base class for a Panel and Page objects.
|
5977
6052
|
*/
|
@@ -6866,7 +6941,9 @@ export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontr
|
|
6866
6941
|
protected setValueCore(newValue: any): void;
|
6867
6942
|
protected getValueCore(): any;
|
6868
6943
|
protected renderSelect(cssClasses: any): JSX.Element;
|
6944
|
+
protected renderInput(): JSX.Element;
|
6869
6945
|
createClearButton(): JSX.Element;
|
6946
|
+
protected renderOther(cssClasses: any): JSX.Element;
|
6870
6947
|
}
|
6871
6948
|
export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
|
6872
6949
|
constructor(props: any);
|
@@ -6924,7 +7001,7 @@ export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElemen
|
|
6924
7001
|
export declare class SurveyTriggerComplete extends SurveyTrigger {
|
6925
7002
|
constructor();
|
6926
7003
|
getType(): string;
|
6927
|
-
|
7004
|
+
protected isRealExecution(): boolean;
|
6928
7005
|
protected onSuccess(values: any, properties: any): void;
|
6929
7006
|
}
|
6930
7007
|
/*
|
@@ -6974,7 +7051,7 @@ export declare class SurveyTriggerSkip extends SurveyTrigger {
|
|
6974
7051
|
getType(): string;
|
6975
7052
|
get gotoName(): string;
|
6976
7053
|
set gotoName(val: string);
|
6977
|
-
|
7054
|
+
protected canBeExecuted(isOnNextPage: boolean): boolean;
|
6978
7055
|
protected onSuccess(values: any, properties: any): void;
|
6979
7056
|
}
|
6980
7057
|
/*
|
@@ -8293,10 +8370,14 @@ export declare class QuestionSelectBase extends Question {
|
|
8293
8370
|
getControlLabelClass(item: ItemValue): string;
|
8294
8371
|
get headItems(): any;
|
8295
8372
|
get footItems(): any;
|
8373
|
+
get dataChoices(): any;
|
8374
|
+
get bodyItems(): any;
|
8296
8375
|
get hasHeadItems(): boolean;
|
8297
8376
|
get hasFootItems(): boolean;
|
8298
8377
|
get columns(): any;
|
8299
8378
|
get hasColumns(): boolean;
|
8379
|
+
get rowLayout(): boolean;
|
8380
|
+
get blockedRow(): boolean;
|
8300
8381
|
choicesLoaded(): void;
|
8301
8382
|
getItemValueWrapperComponentName(item: ItemValue): string;
|
8302
8383
|
getItemValueWrapperComponentData(item: ItemValue): any;
|
@@ -8409,14 +8490,15 @@ export declare class QuestionTextBase extends Question {
|
|
8409
8490
|
protected calcRenderedPlaceHolder(): void;
|
8410
8491
|
protected hasPlaceHolder(): boolean;
|
8411
8492
|
getControlClass(): string;
|
8493
|
+
get ariaRole(): string;
|
8412
8494
|
}
|
8413
8495
|
export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
|
8414
8496
|
constructor(props: any);
|
8415
8497
|
protected renderElement(): JSX.Element;
|
8416
|
-
protected renderOther(cssClasses: any): JSX.Element;
|
8417
8498
|
}
|
8418
8499
|
export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
|
8419
8500
|
constructor(props: any);
|
8501
|
+
protected get itemCss(): string;
|
8420
8502
|
protected getQuestion(): Question;
|
8421
8503
|
protected doAfterRender(): void;
|
8422
8504
|
protected getShowErrors(): boolean;
|
@@ -8428,6 +8510,12 @@ export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdown
|
|
8428
8510
|
constructor(props: any);
|
8429
8511
|
protected renderElement(): JSX.Element;
|
8430
8512
|
}
|
8513
|
+
export declare class SurveyQuestionTagbox extends SurveyQuestionDropdownBase<QuestionTagboxModel> {
|
8514
|
+
constructor(props: any);
|
8515
|
+
protected renderItem(key: string, item: any): JSX.Element;
|
8516
|
+
protected renderInput(): JSX.Element;
|
8517
|
+
protected renderElement(): JSX.Element;
|
8518
|
+
}
|
8431
8519
|
/*
|
8432
8520
|
* The flow panel object. It is a container with flow layout where you can mix questions with markdown text.
|
8433
8521
|
*/
|
@@ -8515,6 +8603,7 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
|
|
8515
8603
|
protected createWrapper(): void;
|
8516
8604
|
getTemplate(): string;
|
8517
8605
|
protected getElement(): SurveyElement;
|
8606
|
+
protected getCssRoot(cssClasses: any): string;
|
8518
8607
|
get contentPanel(): PanelModel;
|
8519
8608
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
8520
8609
|
updateElementCss(reNew?: boolean): void;
|
@@ -8570,7 +8659,7 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8570
8659
|
get optionsCaption(): string;
|
8571
8660
|
set optionsCaption(val: string);
|
8572
8661
|
/*
|
8573
|
-
*
|
8662
|
+
* A text displayed in the input field when it doesn't have a value.
|
8574
8663
|
*/
|
8575
8664
|
get placeholder(): string;
|
8576
8665
|
set placeholder(val: string);
|
@@ -8602,11 +8691,17 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8602
8691
|
get autoComplete(): string;
|
8603
8692
|
set autoComplete(val: string);
|
8604
8693
|
/*
|
8605
|
-
*
|
8694
|
+
* Specifies whether to display a button that clears the selected value.
|
8606
8695
|
*/
|
8607
8696
|
allowClear: boolean;
|
8697
|
+
/*
|
8698
|
+
* The name of a component used to render drop-down menu items.
|
8699
|
+
*/
|
8608
8700
|
itemComponent: string;
|
8609
|
-
|
8701
|
+
/*
|
8702
|
+
* Specifies whether to display a search bar in the drop-down menu.
|
8703
|
+
*/
|
8704
|
+
searchEnabled: boolean;
|
8610
8705
|
getControlClass(): string;
|
8611
8706
|
get readOnlyText(): any;
|
8612
8707
|
get popupModel(): any;
|
@@ -9538,13 +9633,48 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
9538
9633
|
get longTap(): boolean;
|
9539
9634
|
set longTap(val: boolean);
|
9540
9635
|
}
|
9636
|
+
/*
|
9637
|
+
* A Model for a tagbox question
|
9638
|
+
*/
|
9639
|
+
export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
9640
|
+
constructor(name: string);
|
9641
|
+
dropdownListModel: DropdownMultiSelectListModel;
|
9642
|
+
get readOnlyText(): string;
|
9643
|
+
onSurveyLoad(): void;
|
9644
|
+
/*
|
9645
|
+
* Specifies whether to display a button that clears the selected value.
|
9646
|
+
*/
|
9647
|
+
allowClear: boolean;
|
9648
|
+
/*
|
9649
|
+
* Specifies whether to display a search bar in the drop-down menu.
|
9650
|
+
*/
|
9651
|
+
searchEnabled: boolean;
|
9652
|
+
/*
|
9653
|
+
* A text displayed in the input field when it doesn't have a value.
|
9654
|
+
*/
|
9655
|
+
get placeholder(): string;
|
9656
|
+
set placeholder(val: string);
|
9657
|
+
get locPlaceholder(): LocalizableString;
|
9658
|
+
getType(): string;
|
9659
|
+
get popupModel(): any;
|
9660
|
+
getControlClass(): string;
|
9661
|
+
onOpened: EventBase<QuestionTagboxModel>;
|
9662
|
+
onOpenedCallBack(): void;
|
9663
|
+
protected onVisibleChoicesChanged(): void;
|
9664
|
+
}
|
9541
9665
|
export declare function property(options?: any): (target: any, key: string) => void;
|
9542
9666
|
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
9543
9667
|
export declare function unwrap<T>(value: any): T;
|
9544
9668
|
export declare function getSize(value: any): any;
|
9545
|
-
export declare function
|
9669
|
+
export declare function doKey2ClickBlur(evt: any): void;
|
9670
|
+
export declare function doKey2ClickUp(evt: any, options?: IAttachKey2clickOptions): void;
|
9671
|
+
export declare function doKey2ClickDown(evt: any, options?: IAttachKey2clickOptions): void;
|
9672
|
+
export declare function sanitizeEditableContent(element: any): void;
|
9673
|
+
export declare function createDialogOptions(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
|
9674
|
+
export declare function createPopupModalViewModel(options: IDialogOptions): PopupBaseViewModel;
|
9546
9675
|
export declare function getCurrecyCodes(): Array<any>;
|
9547
9676
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
9677
|
+
export declare function showDialog(dialogOptions: any): void;
|
9548
9678
|
export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: IAttachKey2clickOptions): JSX.Element;
|
9549
9679
|
/*
|
9550
9680
|
* Global survey settings
|
@@ -10119,6 +10249,21 @@ export declare var defaultStandardCss: {
|
|
10119
10249
|
variables: {
|
10120
10250
|
themeMark: string,
|
10121
10251
|
},
|
10252
|
+
tagbox: {
|
10253
|
+
root: string,
|
10254
|
+
small: string,
|
10255
|
+
selectWrapper: string,
|
10256
|
+
other: string,
|
10257
|
+
cleanButton: string,
|
10258
|
+
cleanButtonSvg: string,
|
10259
|
+
cleanButtonIconId: string,
|
10260
|
+
cleanItemButton: string,
|
10261
|
+
cleanItemButtonSvg: string,
|
10262
|
+
cleanItemButtonIconId: string,
|
10263
|
+
control: string,
|
10264
|
+
controlValue: string,
|
10265
|
+
controlEmpty: string,
|
10266
|
+
},
|
10122
10267
|
};
|
10123
10268
|
export declare var surveyTimerFunctions: {
|
10124
10269
|
setTimeout: (func: any) => any,
|
@@ -10902,6 +11047,7 @@ export declare var defaultV2Css: {
|
|
10902
11047
|
pageDescription: string,
|
10903
11048
|
row: string,
|
10904
11049
|
rowMultiple: string,
|
11050
|
+
pageRow: string,
|
10905
11051
|
question: {
|
10906
11052
|
mainRoot: string,
|
10907
11053
|
flowRoot: string,
|
@@ -10938,6 +11084,7 @@ export declare var defaultV2Css: {
|
|
10938
11084
|
expanded: string,
|
10939
11085
|
nested: string,
|
10940
11086
|
invisible: string,
|
11087
|
+
composite: string,
|
10941
11088
|
},
|
10942
11089
|
image: {
|
10943
11090
|
mainRoot: string,
|
@@ -10964,6 +11111,7 @@ export declare var defaultV2Css: {
|
|
10964
11111
|
},
|
10965
11112
|
checkbox: {
|
10966
11113
|
root: string,
|
11114
|
+
rootRow: string,
|
10967
11115
|
rootMultiColumn: string,
|
10968
11116
|
item: string,
|
10969
11117
|
itemOnError: string,
|
@@ -10985,6 +11133,7 @@ export declare var defaultV2Css: {
|
|
10985
11133
|
},
|
10986
11134
|
radiogroup: {
|
10987
11135
|
root: string,
|
11136
|
+
rootRow: string,
|
10988
11137
|
rootMultiColumn: string,
|
10989
11138
|
item: string,
|
10990
11139
|
itemOnError: string,
|
@@ -11303,6 +11452,32 @@ export declare var defaultV2Css: {
|
|
11303
11452
|
imagepickerGapBetweenItems: string,
|
11304
11453
|
themeMark: string,
|
11305
11454
|
},
|
11455
|
+
tagbox: {
|
11456
|
+
root: string,
|
11457
|
+
small: string,
|
11458
|
+
selectWrapper: string,
|
11459
|
+
other: string,
|
11460
|
+
onError: string,
|
11461
|
+
label: string,
|
11462
|
+
item: string,
|
11463
|
+
itemDisabled: string,
|
11464
|
+
itemChecked: string,
|
11465
|
+
itemHover: string,
|
11466
|
+
itemControl: string,
|
11467
|
+
itemDecorator: string,
|
11468
|
+
cleanButton: string,
|
11469
|
+
cleanButtonSvg: string,
|
11470
|
+
cleanButtonIconId: string,
|
11471
|
+
cleanItemButton: string,
|
11472
|
+
cleanItemButtonSvg: string,
|
11473
|
+
cleanItemButtonIconId: string,
|
11474
|
+
control: string,
|
11475
|
+
controlValue: string,
|
11476
|
+
controlDisabled: string,
|
11477
|
+
controlEmpty: string,
|
11478
|
+
controlLabel: string,
|
11479
|
+
materialDecorator: string,
|
11480
|
+
},
|
11306
11481
|
};
|
11307
11482
|
export declare var modernCss: {
|
11308
11483
|
root: string,
|