survey-react 1.8.71 → 1.8.75
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/modern.css +29 -6
- 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 +110 -24
- package/survey.react.js +786 -287
- package/survey.react.min.js +4 -4
package/survey.react.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*Type definitions for Survey JavaScript library v1.8.
|
1
|
+
/*Type definitions for Survey JavaScript library v1.8.75
|
2
2
|
Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
|
3
3
|
Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
|
4
4
|
*/
|
@@ -180,6 +180,7 @@ export declare var defaultStandardCss: {
|
|
180
180
|
cell: string;
|
181
181
|
headerCell: string;
|
182
182
|
row: string;
|
183
|
+
rowAdditional: string;
|
183
184
|
detailRow: string;
|
184
185
|
detailRowText: string;
|
185
186
|
detailCell: string;
|
@@ -491,6 +492,7 @@ export declare var defaultBootstrapCss: {
|
|
491
492
|
cell: string;
|
492
493
|
headerCell: string;
|
493
494
|
row: string;
|
495
|
+
rowAdditional: string;
|
494
496
|
detailRow: string;
|
495
497
|
detailRowText: string;
|
496
498
|
detailCell: string;
|
@@ -803,6 +805,7 @@ export declare var defaultBootstrapMaterialCss: {
|
|
803
805
|
itemValue: string;
|
804
806
|
headerCell: string;
|
805
807
|
row: string;
|
808
|
+
rowAdditional: string;
|
806
809
|
detailRow: string;
|
807
810
|
detailRowText: string;
|
808
811
|
detailCell: string;
|
@@ -1212,6 +1215,7 @@ export declare var modernCss: {
|
|
1212
1215
|
cell: string;
|
1213
1216
|
headerCell: string;
|
1214
1217
|
row: string;
|
1218
|
+
rowAdditional: string;
|
1215
1219
|
detailRow: string;
|
1216
1220
|
detailRowText: string;
|
1217
1221
|
detailCell: string;
|
@@ -1456,8 +1460,9 @@ export interface IAction {
|
|
1456
1460
|
visibleIndex?: number;
|
1457
1461
|
}
|
1458
1462
|
export declare class Action extends Base implements IAction {
|
1463
|
+
innerItem: IAction;
|
1459
1464
|
updateCallback: () => void;
|
1460
|
-
constructor(
|
1465
|
+
constructor(innerItem: IAction);
|
1461
1466
|
location?: string;
|
1462
1467
|
id: string;
|
1463
1468
|
iconName: string;
|
@@ -1494,6 +1499,7 @@ export declare class Action extends Base implements IAction {
|
|
1494
1499
|
export declare class AdaptiveActionContainer<T extends Action = Action> extends ActionContainer<T> {
|
1495
1500
|
protected dotsItem: Action;
|
1496
1501
|
protected dotsItemPopupModel: PopupModel;
|
1502
|
+
minVisibleItemsCount: number;
|
1497
1503
|
constructor();
|
1498
1504
|
protected onSet(): void;
|
1499
1505
|
protected onPush(item: T): void;
|
@@ -1630,7 +1636,7 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
|
|
1630
1636
|
componentDidMount(): void;
|
1631
1637
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
1632
1638
|
componentWillUnmount(): void;
|
1633
|
-
protected createElement(element: IElement): JSX.Element;
|
1639
|
+
protected createElement(element: IElement, elementIndex?: number): JSX.Element;
|
1634
1640
|
}
|
1635
1641
|
|
1636
1642
|
export declare class SurveyPanel extends SurveyPanelBase {
|
@@ -2094,6 +2100,7 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
|
2094
2100
|
|
2095
2101
|
export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement<QuestionCustomModel> {
|
2096
2102
|
constructor(props: any);
|
2103
|
+
protected getStateElements(): Array<Base>;
|
2097
2104
|
protected renderElement(): JSX.Element;
|
2098
2105
|
}
|
2099
2106
|
export declare class SurveyQuestionComposite extends SurveyQuestionUncontrolledElement<QuestionCompositeModel> {
|
@@ -2118,6 +2125,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
2118
2125
|
protected getStateElement(): PopupModel<any>;
|
2119
2126
|
componentDidMount(): void;
|
2120
2127
|
componentWillUnmount(): void;
|
2128
|
+
shouldComponentUpdate(nextProps: IPopupProps): boolean;
|
2121
2129
|
render(): JSX.Element;
|
2122
2130
|
}
|
2123
2131
|
export declare class PopupContainer extends SurveyElementBase<any, any> {
|
@@ -2147,6 +2155,7 @@ export declare class List extends SurveyElementBase<IListProps, any> {
|
|
2147
2155
|
getStateElement(): ListModel;
|
2148
2156
|
render(): JSX.Element;
|
2149
2157
|
renderItems(): JSX.Element[];
|
2158
|
+
searchElementContent(): JSX.Element;
|
2150
2159
|
}
|
2151
2160
|
export {};
|
2152
2161
|
|
@@ -2289,6 +2298,12 @@ export declare var settings: {
|
|
2289
2298
|
* separator that can allow to set value and text of ItemValue object in one string as: "value|text"
|
2290
2299
|
*/
|
2291
2300
|
itemValueSeparator: string;
|
2301
|
+
/**
|
2302
|
+
* Set it to true to serialize itemvalue instance always as object even if text property is empty
|
2303
|
+
* const item = new Survey.ItemValue(5);
|
2304
|
+
* item.toJSON(); //will return {value: 5}, instead of 5 by default.
|
2305
|
+
*/
|
2306
|
+
itemValueAlwaysSerializeAsObject: boolean;
|
2292
2307
|
/**
|
2293
2308
|
* default locale name for localizable strings that uses during serialization, {"default": "My text", "de": "Mein Text"}
|
2294
2309
|
*/
|
@@ -2346,9 +2361,13 @@ export declare var settings: {
|
|
2346
2361
|
*/
|
2347
2362
|
executeSkipTriggerOnValueChanged: boolean;
|
2348
2363
|
/**
|
2349
|
-
* Set this property to change readOnlyCommentRenderMode: "textarea" (default) or
|
2364
|
+
* Set this property to change readOnlyCommentRenderMode: "textarea" (default) or "div"
|
2350
2365
|
*/
|
2351
2366
|
readOnlyCommentRenderMode: string;
|
2367
|
+
/**
|
2368
|
+
* Set this property to change readOnlyTextRenderMode: "input" (default) or "div"
|
2369
|
+
*/
|
2370
|
+
readOnlyTextRenderMode: string;
|
2352
2371
|
/**
|
2353
2372
|
* Override this function, set your function, if you want to show your own dialog confirm window instead of standard browser window.
|
2354
2373
|
* @param message
|
@@ -2443,6 +2462,8 @@ export declare class Helpers {
|
|
2443
2462
|
static getNumberByIndex(index: number, startIndexStr: string): string;
|
2444
2463
|
static isCharNotLetterAndDigit(ch: string): boolean;
|
2445
2464
|
static isCharDigit(ch: string): boolean;
|
2465
|
+
static correctAfterPlusMinis(a: number, b: number, res: number): number;
|
2466
|
+
static correctAfterMultiple(a: number, b: number, res: number): number;
|
2446
2467
|
}
|
2447
2468
|
|
2448
2469
|
export declare class ValidatorResult {
|
@@ -2950,6 +2971,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
2950
2971
|
updateQuestionCssClasses(question: IQuestion, cssClasses: any): any;
|
2951
2972
|
updatePanelCssClasses(panel: IPanel, cssClasses: any): any;
|
2952
2973
|
updatePageCssClasses(panel: IPanel, cssClasses: any): any;
|
2974
|
+
updateChoiceItemCss(question: IQuestion, options: any): any;
|
2953
2975
|
afterRenderQuestion(question: IQuestion, htmlElement: HTMLElement): any;
|
2954
2976
|
afterRenderQuestionInput(question: IQuestion, htmlElement: HTMLElement): any;
|
2955
2977
|
afterRenderPanel(panel: IElement, htmlElement: HTMLElement): any;
|
@@ -3027,6 +3049,7 @@ export interface IElement extends IConditionRunner, ISurveyElement {
|
|
3027
3049
|
clearIncorrectValues(): any;
|
3028
3050
|
clearErrors(): any;
|
3029
3051
|
dispose(): void;
|
3052
|
+
needResponsiveWidth(): boolean;
|
3030
3053
|
}
|
3031
3054
|
export interface IQuestion extends IElement, ISurveyErrorOwner {
|
3032
3055
|
hasTitle: boolean;
|
@@ -3451,6 +3474,7 @@ export declare class LocalizableString implements ILocalizableString {
|
|
3451
3474
|
static editableRenderer: string;
|
3452
3475
|
localizationName: string;
|
3453
3476
|
onGetTextCallback: (str: string) => string;
|
3477
|
+
onGetDefaultTextCallback: () => string;
|
3454
3478
|
onStrChanged: (oldValue: string, newValue: string) => void;
|
3455
3479
|
onSearchChanged: () => void;
|
3456
3480
|
sharedData: LocalizableString;
|
@@ -3596,7 +3620,7 @@ export declare class ChoicesRestful extends Base {
|
|
3596
3620
|
getData(): any;
|
3597
3621
|
/**
|
3598
3622
|
* Gets or sets a link to a web service. You can use text preprocessing here.
|
3599
|
-
* For example, the following url: _https://
|
3623
|
+
* For example, the following url: _https://surveyjs.io/api/CountriesExample?region={region}_ is changed based on the _region_ question's value.
|
3600
3624
|
* SurveyJS automatically gets data from the web service when the value of the _region_ question changes.
|
3601
3625
|
* @see path
|
3602
3626
|
* @see valueName
|
@@ -3708,6 +3732,9 @@ export declare abstract class Operand {
|
|
3708
3732
|
hasFunction(): boolean;
|
3709
3733
|
hasAsyncFunction(): boolean;
|
3710
3734
|
addToAsyncList(list: Array<FunctionOperand>): void;
|
3735
|
+
isEqual(op: Operand): boolean;
|
3736
|
+
protected abstract isContentEqual(op: Operand): boolean;
|
3737
|
+
protected areOperatorsEquals(op1: Operand, op2: Operand): boolean;
|
3711
3738
|
}
|
3712
3739
|
export declare class BinaryOperand extends Operand {
|
3713
3740
|
constructor(operatorName: string, left?: any, right?: any, isArithmeticOp?: boolean);
|
@@ -3718,6 +3745,7 @@ export declare class BinaryOperand extends Operand {
|
|
3718
3745
|
get operator(): string;
|
3719
3746
|
get leftOperand(): any;
|
3720
3747
|
get rightOperand(): any;
|
3748
|
+
protected isContentEqual(op: Operand): boolean;
|
3721
3749
|
evaluate(processValue?: ProcessValue): any;
|
3722
3750
|
toString(func?: (op: Operand) => string): string;
|
3723
3751
|
setVariables(variables: Array<string>): void;
|
@@ -3731,6 +3759,7 @@ export declare class UnaryOperand extends Operand {
|
|
3731
3759
|
get expression(): Operand;
|
3732
3760
|
getType(): string;
|
3733
3761
|
toString(func?: (op: Operand) => string): string;
|
3762
|
+
protected isContentEqual(op: Operand): boolean;
|
3734
3763
|
evaluate(processValue?: ProcessValue): boolean;
|
3735
3764
|
setVariables(variables: Array<string>): void;
|
3736
3765
|
}
|
@@ -3744,6 +3773,7 @@ export declare class ArrayOperand extends Operand {
|
|
3744
3773
|
hasFunction(): boolean;
|
3745
3774
|
hasAsyncFunction(): boolean;
|
3746
3775
|
addToAsyncList(list: Array<FunctionOperand>): void;
|
3776
|
+
protected isContentEqual(op: Operand): boolean;
|
3747
3777
|
}
|
3748
3778
|
export declare class Const extends Operand {
|
3749
3779
|
constructor(value: any);
|
@@ -3753,6 +3783,7 @@ export declare class Const extends Operand {
|
|
3753
3783
|
evaluate(): any;
|
3754
3784
|
setVariables(variables: Array<string>): void;
|
3755
3785
|
protected getCorrectValue(value: any): any;
|
3786
|
+
protected isContentEqual(op: Operand): boolean;
|
3756
3787
|
}
|
3757
3788
|
export declare class Variable extends Const {
|
3758
3789
|
static DisableConversionChar: string;
|
@@ -3763,6 +3794,7 @@ export declare class Variable extends Const {
|
|
3763
3794
|
evaluate(processValue?: ProcessValue): any;
|
3764
3795
|
setVariables(variables: Array<string>): void;
|
3765
3796
|
protected getCorrectValue(value: any): any;
|
3797
|
+
protected isContentEqual(op: Operand): boolean;
|
3766
3798
|
}
|
3767
3799
|
export declare class FunctionOperand extends Operand {
|
3768
3800
|
onAsyncReady: () => void;
|
@@ -3776,6 +3808,7 @@ export declare class FunctionOperand extends Operand {
|
|
3776
3808
|
hasFunction(): boolean;
|
3777
3809
|
hasAsyncFunction(): boolean;
|
3778
3810
|
addToAsyncList(list: Array<FunctionOperand>): void;
|
3811
|
+
protected isContentEqual(op: Operand): boolean;
|
3779
3812
|
}
|
3780
3813
|
export declare class OperandMaker {
|
3781
3814
|
static throwInvalidOperatorError(op: string): void;
|
@@ -3819,8 +3852,9 @@ export interface IPropertyDecoratorOptions {
|
|
3819
3852
|
defaultValue?: any;
|
3820
3853
|
defaultSource?: string;
|
3821
3854
|
localizable?: {
|
3822
|
-
name
|
3855
|
+
name?: string;
|
3823
3856
|
onGetTextCallback?: (str: string) => string;
|
3857
|
+
defaultStr?: string;
|
3824
3858
|
} | boolean;
|
3825
3859
|
onSet?: (val: any, target: any) => void;
|
3826
3860
|
}
|
@@ -4155,6 +4189,10 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
4155
4189
|
dispose(): void;
|
4156
4190
|
get hasSingleInput(): boolean;
|
4157
4191
|
get isRowsDynamic(): boolean;
|
4192
|
+
protected get isUpdateLocked(): boolean;
|
4193
|
+
beginUpdate(): void;
|
4194
|
+
endUpdate(): void;
|
4195
|
+
protected updateColumnsAndRows(): void;
|
4158
4196
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
4159
4197
|
/**
|
4160
4198
|
* Set columnLayout to 'vertical' to place columns vertically and rows horizontally. It makes sense when we have many columns and few rows.
|
@@ -4507,7 +4545,6 @@ export declare class QuestionMatrixDropdownRenderedCell {
|
|
4507
4545
|
panel: PanelModel;
|
4508
4546
|
isShowHideDetail: boolean;
|
4509
4547
|
isActionsCell: boolean;
|
4510
|
-
className: string;
|
4511
4548
|
isDragHandlerCell: boolean;
|
4512
4549
|
constructor();
|
4513
4550
|
get hasQuestion(): boolean;
|
@@ -4522,7 +4559,8 @@ export declare class QuestionMatrixDropdownRenderedCell {
|
|
4522
4559
|
get choiceValue(): any;
|
4523
4560
|
get isCheckbox(): boolean;
|
4524
4561
|
get isFirstChoice(): boolean;
|
4525
|
-
|
4562
|
+
set className(val: string);
|
4563
|
+
get className(): string;
|
4526
4564
|
get headers(): string;
|
4527
4565
|
calculateFinalClassName(matrixCssClasses: any): string;
|
4528
4566
|
}
|
@@ -4530,6 +4568,7 @@ export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
|
4530
4568
|
cssClasses: any;
|
4531
4569
|
isDetailRow: boolean;
|
4532
4570
|
ghostPosition: string;
|
4571
|
+
isAdditionalClasses: boolean;
|
4533
4572
|
row: MatrixDropdownRowModelBase;
|
4534
4573
|
cells: Array<QuestionMatrixDropdownRenderedCell>;
|
4535
4574
|
constructor(cssClasses: any, isDetailRow?: boolean);
|
@@ -5402,8 +5441,9 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5402
5441
|
onAnyValueChanged(name: string): void;
|
5403
5442
|
checkBindings(valueName: string, value: any): void;
|
5404
5443
|
protected dragDropAddTarget(dragDropInfo: DragDropInfo): void;
|
5405
|
-
|
5444
|
+
dragDropFindRow(findElement: ISurveyElement): QuestionRowModel;
|
5406
5445
|
dragDropMoveElement(src: IElement, target: IElement, targetIndex: number): void;
|
5446
|
+
needResponsiveWidth(): boolean;
|
5407
5447
|
get no(): string;
|
5408
5448
|
dispose(): void;
|
5409
5449
|
}
|
@@ -5527,6 +5567,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
5527
5567
|
get cssError(): string;
|
5528
5568
|
protected getCssError(cssClasses: any): string;
|
5529
5569
|
protected onVisibleChanged(): void;
|
5570
|
+
needResponsiveWidth(): boolean;
|
5530
5571
|
}
|
5531
5572
|
|
5532
5573
|
/**
|
@@ -6207,6 +6248,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6207
6248
|
get validatedValue(): any;
|
6208
6249
|
set validatedValue(val: any);
|
6209
6250
|
getAllValues(): any;
|
6251
|
+
needResponsiveWidth(): boolean;
|
6210
6252
|
}
|
6211
6253
|
|
6212
6254
|
/**
|
@@ -6463,6 +6505,7 @@ export declare class QuestionSelectBase extends Question {
|
|
6463
6505
|
getColumnClass(): string;
|
6464
6506
|
getItemIndex(item: any): number;
|
6465
6507
|
getItemClass(item: any): string;
|
6508
|
+
protected getItemClassCore(item: any, options: any): string;
|
6466
6509
|
getLabelClass(item: ItemValue): string;
|
6467
6510
|
getControlLabelClass(item: ItemValue): string;
|
6468
6511
|
get columns(): ItemValue[][];
|
@@ -6546,7 +6589,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
6546
6589
|
get selectedItems(): Array<ItemValue>;
|
6547
6590
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
6548
6591
|
protected onAfterRunItemsEnableCondition(): void;
|
6549
|
-
|
6592
|
+
protected getItemClassCore(item: any, options: any): string;
|
6550
6593
|
protected setNewValue(newValue: any): void;
|
6551
6594
|
protected getIsMultipleValue(): boolean;
|
6552
6595
|
protected getCommentFromValue(newValue: any): string;
|
@@ -6580,7 +6623,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
6580
6623
|
constructor(name: string);
|
6581
6624
|
getType(): string;
|
6582
6625
|
get rootClass(): string;
|
6583
|
-
|
6626
|
+
protected getItemClassCore(item: ItemValue, options: any): string;
|
6584
6627
|
protected isItemCurrentDropTarget(item: ItemValue): boolean;
|
6585
6628
|
get ghostPositionCssClass(): string;
|
6586
6629
|
getNumberByIndex(index: number): string;
|
@@ -6622,10 +6665,10 @@ export declare class QuestionCommentModel extends QuestionTextBase {
|
|
6622
6665
|
get cols(): number;
|
6623
6666
|
set cols(val: number);
|
6624
6667
|
/**
|
6625
|
-
*
|
6668
|
+
* Accepts pressing the Enter key by end-users and accepts carriage return symbols - \n - in the question value assigned.
|
6626
6669
|
*/
|
6627
|
-
get
|
6628
|
-
set
|
6670
|
+
get acceptCarriageReturn(): boolean;
|
6671
|
+
set acceptCarriageReturn(val: boolean);
|
6629
6672
|
/**
|
6630
6673
|
* Specifies whether the question's text area automatically expands its height to avoid the vertical scrollbar and to display the entire multi-line contents entered by respondents.
|
6631
6674
|
* Default value is false.
|
@@ -7120,6 +7163,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
7120
7163
|
protected setNewValue(newValue: any): void;
|
7121
7164
|
protected correctValueType(newValue: any): any;
|
7122
7165
|
protected hasPlaceHolder(): boolean;
|
7166
|
+
isReadOnlyRenderDiv(): boolean;
|
7123
7167
|
get inputStyle(): any;
|
7124
7168
|
}
|
7125
7169
|
|
@@ -7899,6 +7943,16 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
7899
7943
|
* @see onMatrixCellValueChanged
|
7900
7944
|
*/
|
7901
7945
|
onValueChanged: EventBase<SurveyModel>;
|
7946
|
+
/**
|
7947
|
+
* The event is fired when setVariable function is called. It can be called on changing a calculated value.
|
7948
|
+
* <br/> `sender` - the survey object that fires the event.
|
7949
|
+
* <br/> `options.name` - the variable name that has been changed.
|
7950
|
+
* <br/> `options.value` - a new value.
|
7951
|
+
* @see setVariable
|
7952
|
+
* @see onValueChanged
|
7953
|
+
* @see calculatedValues
|
7954
|
+
*/
|
7955
|
+
onVariableChanged: EventBase<SurveyModel>;
|
7902
7956
|
/**
|
7903
7957
|
* The event is fired when a question visibility has been changed.
|
7904
7958
|
* <br/> `sender` - the survey object that fires the event.
|
@@ -8207,6 +8261,14 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
8207
8261
|
* <br/> `options.cssClasses` - an object with CSS classes. For example `{title: "sv_p_title", description: "small"}`. You can change them to your own CSS classes.
|
8208
8262
|
*/
|
8209
8263
|
onUpdatePageCssClasses: EventBase<SurveyModel>;
|
8264
|
+
/**
|
8265
|
+
* The event is fired before rendering a choice item in radiogroup, checkbox or dropdown questions. Use it to override the default choice item css.
|
8266
|
+
* <br/> `sender` - the survey object that fires the event.
|
8267
|
+
* <br/> `options.question` - a question where choice item is rendered.
|
8268
|
+
* <br/> `options.item` - a choice item of ItemValue type. You can get value or text choice properties as options.item.value or options.choice.text
|
8269
|
+
* <br/> `options.css` - a string with css classes divided by space. You can change it.
|
8270
|
+
*/
|
8271
|
+
onUpdateChoiceItemCss: EventBase<SurveyModel>;
|
8210
8272
|
/**
|
8211
8273
|
* The event is fired right after survey is rendered in DOM.
|
8212
8274
|
* <br/> `sender` - the survey object that fires the event.
|
@@ -8857,6 +8919,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
8857
8919
|
get logoFit(): string;
|
8858
8920
|
set logoFit(val: string);
|
8859
8921
|
setIsMobile(newVal?: boolean): void;
|
8922
|
+
protected isLogoImageChoosen(): string;
|
8860
8923
|
get titleMaxWidth(): string;
|
8861
8924
|
/**
|
8862
8925
|
* Gets or sets the HTML content displayed on the complete page. Use this property to change the default complete page text.
|
@@ -9498,6 +9561,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
9498
9561
|
updateQuestionCssClasses(question: IQuestion, cssClasses: any): void;
|
9499
9562
|
updatePanelCssClasses(panel: IPanel, cssClasses: any): void;
|
9500
9563
|
updatePageCssClasses(page: IPage, cssClasses: any): void;
|
9564
|
+
updateChoiceItemCss(question: IQuestion, options: any): void;
|
9501
9565
|
afterRenderPage(htmlElement: HTMLElement): void;
|
9502
9566
|
afterRenderHeader(htmlElement: HTMLElement): void;
|
9503
9567
|
afterRenderQuestion(question: IQuestion, htmlElement: HTMLElement): void;
|
@@ -9818,6 +9882,18 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
9818
9882
|
*/
|
9819
9883
|
get showTimerPanelMode(): string;
|
9820
9884
|
set showTimerPanelMode(val: string);
|
9885
|
+
/**
|
9886
|
+
* Gets or sets a value that specifies how the survey width is calculated.
|
9887
|
+
*
|
9888
|
+
* The available options:
|
9889
|
+
*
|
9890
|
+
* - `static` - A survey has a fixed width that mostly depends upon the applied theme. Resizing a browser window does not affect the survey width.
|
9891
|
+
* - `responsive` - A survey takes all available horizontal space. A survey stretches or shrinks horizonally according to the screen size.
|
9892
|
+
* - `auto` - Depends on the question type and corresponds to the static or responsive mode.
|
9893
|
+
*/
|
9894
|
+
get widthMode(): string;
|
9895
|
+
set widthMode(val: string);
|
9896
|
+
calculateWidthMode(): string;
|
9821
9897
|
get timerInfoText(): string;
|
9822
9898
|
/**
|
9823
9899
|
* Starts a timer that will calculate how much time end-user spends on the survey or on pages.
|
@@ -10194,6 +10270,7 @@ export declare var englishStrings: {
|
|
10194
10270
|
questionTitlePatternText: string;
|
10195
10271
|
modalCancelButtonText: string;
|
10196
10272
|
modalApplyButtonText: string;
|
10273
|
+
filteredTextPlaceholder: string;
|
10197
10274
|
};
|
10198
10275
|
|
10199
10276
|
export declare var surveyLocalization: {
|
@@ -10294,6 +10371,7 @@ export declare var surveyStrings: {
|
|
10294
10371
|
questionTitlePatternText: string;
|
10295
10372
|
modalCancelButtonText: string;
|
10296
10373
|
modalApplyButtonText: string;
|
10374
|
+
filteredTextPlaceholder: string;
|
10297
10375
|
};
|
10298
10376
|
|
10299
10377
|
export declare class QuestionCustomWidget {
|
@@ -10489,21 +10567,25 @@ export declare class StylesManager {
|
|
10489
10567
|
initializeStyles(sheet: CSSStyleSheet): void;
|
10490
10568
|
}
|
10491
10569
|
|
10492
|
-
export declare class ListModel extends
|
10493
|
-
onItemSelect: (item:
|
10570
|
+
export declare class ListModel extends ActionContainer {
|
10571
|
+
onItemSelect: (item: Action) => void;
|
10494
10572
|
allowSelection: boolean;
|
10573
|
+
needFilter: boolean;
|
10495
10574
|
isExpanded: boolean;
|
10496
10575
|
selectedItem: IAction;
|
10576
|
+
filteredText: string;
|
10497
10577
|
static INDENT: number;
|
10498
|
-
|
10499
|
-
|
10500
|
-
|
10501
|
-
selectItem: (itemValue:
|
10502
|
-
isItemDisabled: (itemValue:
|
10503
|
-
isItemSelected: (itemValue:
|
10504
|
-
getItemClass: (itemValue:
|
10578
|
+
static MINELEMENTCOUNT: number;
|
10579
|
+
constructor(items: Array<IAction>, onItemSelect: (item: Action) => void, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChange?: (text: string) => void);
|
10580
|
+
protected onSet(): void;
|
10581
|
+
selectItem: (itemValue: Action) => void;
|
10582
|
+
isItemDisabled: (itemValue: Action) => boolean;
|
10583
|
+
isItemSelected: (itemValue: Action) => boolean;
|
10584
|
+
getItemClass: (itemValue: Action) => string;
|
10505
10585
|
getItemIndent: (itemValue: any) => string;
|
10586
|
+
get filteredTextPlaceholder(): any;
|
10506
10587
|
onKeyDown(event: KeyboardEvent): void;
|
10588
|
+
refresh(): void;
|
10507
10589
|
}
|
10508
10590
|
|
10509
10591
|
export declare class PopupModel<T = any> extends Base {
|
@@ -10651,6 +10733,7 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
|
10651
10733
|
protected calculateIsBottom(clientY: number): boolean;
|
10652
10734
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
10653
10735
|
protected doDrop(): any;
|
10736
|
+
protected doClear(): void;
|
10654
10737
|
}
|
10655
10738
|
|
10656
10739
|
export declare class SurveyPanelBase extends SurveyElementBase<any, any> {
|
@@ -10740,6 +10823,7 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
|
|
10740
10823
|
protected clearGeneratedRows(): void;
|
10741
10824
|
clearIncorrectValues(): void;
|
10742
10825
|
protected clearInvisibleValuesInRows(): void;
|
10826
|
+
needResponsiveWidth(): boolean;
|
10743
10827
|
}
|
10744
10828
|
|
10745
10829
|
export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
|
@@ -10748,11 +10832,13 @@ export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynam
|
|
10748
10832
|
protected getShortcutText(draggedElement: any): string;
|
10749
10833
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
|
10750
10834
|
protected isDropTargetValid(dropTarget: any): boolean;
|
10835
|
+
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
10751
10836
|
protected calculateIsBottom(clientY: number): boolean;
|
10752
10837
|
protected doDrop: () => QuestionMatrixDynamicModel;
|
10753
10838
|
}
|
10754
10839
|
|
10755
10840
|
export declare class DragDropRankingChoices extends DragDropChoices {
|
10841
|
+
protected get draggedElementType(): string;
|
10756
10842
|
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
|
10757
10843
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
10758
10844
|
protected isDropTargetValid(dropTarget: ItemValue, isBottom: boolean, dropTargetNode?: HTMLElement): boolean;
|
@@ -10847,7 +10933,7 @@ export declare abstract class DragDropCore<T> extends Base {
|
|
10847
10933
|
dropTarget: any;
|
10848
10934
|
protected get dropTargetDataAttributeName(): string;
|
10849
10935
|
protected get survey(): SurveyModel;
|
10850
|
-
|
10936
|
+
prevDropTarget: any;
|
10851
10937
|
protected draggedElementShortcut: HTMLElement;
|
10852
10938
|
constructor(surveyValue?: ISurvey, creator?: any);
|
10853
10939
|
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
|