survey-react 1.8.70 → 1.8.74
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 +407 -237
- package/survey.react.js +4439 -3481
- 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.74
|
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
|
|
@@ -2233,6 +2242,10 @@ export declare class MatrixRow extends SurveyElementBase<IMAtrixRowProps, any> {
|
|
2233
2242
|
}
|
2234
2243
|
export {};
|
2235
2244
|
|
2245
|
+
export declare class Skeleton extends React.Component<any, any> {
|
2246
|
+
render(): JSX.Element;
|
2247
|
+
}
|
2248
|
+
|
2236
2249
|
export declare class SurveyLocStringViewer extends React.Component<any, any> {
|
2237
2250
|
constructor(props: any);
|
2238
2251
|
componentDidMount(): void;
|
@@ -2285,6 +2298,12 @@ export declare var settings: {
|
|
2285
2298
|
* separator that can allow to set value and text of ItemValue object in one string as: "value|text"
|
2286
2299
|
*/
|
2287
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;
|
2288
2307
|
/**
|
2289
2308
|
* default locale name for localizable strings that uses during serialization, {"default": "My text", "de": "Mein Text"}
|
2290
2309
|
*/
|
@@ -2342,9 +2361,13 @@ export declare var settings: {
|
|
2342
2361
|
*/
|
2343
2362
|
executeSkipTriggerOnValueChanged: boolean;
|
2344
2363
|
/**
|
2345
|
-
* Set this property to change readOnlyCommentRenderMode: "textarea" (default) or
|
2364
|
+
* Set this property to change readOnlyCommentRenderMode: "textarea" (default) or "div"
|
2346
2365
|
*/
|
2347
2366
|
readOnlyCommentRenderMode: string;
|
2367
|
+
/**
|
2368
|
+
* Set this property to change readOnlyTextRenderMode: "input" (default) or "div"
|
2369
|
+
*/
|
2370
|
+
readOnlyTextRenderMode: string;
|
2348
2371
|
/**
|
2349
2372
|
* Override this function, set your function, if you want to show your own dialog confirm window instead of standard browser window.
|
2350
2373
|
* @param message
|
@@ -2439,6 +2462,8 @@ export declare class Helpers {
|
|
2439
2462
|
static getNumberByIndex(index: number, startIndexStr: string): string;
|
2440
2463
|
static isCharNotLetterAndDigit(ch: string): boolean;
|
2441
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;
|
2442
2467
|
}
|
2443
2468
|
|
2444
2469
|
export declare class ValidatorResult {
|
@@ -2466,6 +2491,7 @@ export declare class SurveyValidator extends Base {
|
|
2466
2491
|
getLocale(): string;
|
2467
2492
|
getMarkdownHtml(text: string, name: string): string;
|
2468
2493
|
getRenderer(name: string): string;
|
2494
|
+
getRendererContext(locStr: LocalizableString): any;
|
2469
2495
|
getProcessedText(text: string): string;
|
2470
2496
|
protected createCustomError(name: string): SurveyError;
|
2471
2497
|
toString(): string;
|
@@ -2650,10 +2676,35 @@ export declare class Bindings {
|
|
2650
2676
|
getJson(): any;
|
2651
2677
|
setJson(value: any): void;
|
2652
2678
|
}
|
2679
|
+
export declare class Dependencies {
|
2680
|
+
currentDependency: () => void;
|
2681
|
+
target: Base;
|
2682
|
+
property: string;
|
2683
|
+
constructor(currentDependency: () => void, target: Base, property: string);
|
2684
|
+
dependencies: Array<{
|
2685
|
+
obj: Base;
|
2686
|
+
prop: string;
|
2687
|
+
id: string;
|
2688
|
+
}>;
|
2689
|
+
id: string;
|
2690
|
+
addDependency(target: Base, property: string): void;
|
2691
|
+
dispose(): void;
|
2692
|
+
}
|
2693
|
+
export declare class ComputedUpdater<T = any> {
|
2694
|
+
static readonly ComputedUpdaterType = "__dependency_computed";
|
2695
|
+
constructor(_updater: () => T);
|
2696
|
+
readonly type = "__dependency_computed";
|
2697
|
+
get updater(): () => T;
|
2698
|
+
setDependencies(dependencies: Dependencies): void;
|
2699
|
+
protected getDependencies(): Dependencies;
|
2700
|
+
dispose(): any;
|
2701
|
+
}
|
2653
2702
|
/**
|
2654
2703
|
* The base class for SurveyJS objects.
|
2655
2704
|
*/
|
2656
2705
|
export declare class Base {
|
2706
|
+
static finishCollectDependencies(): Dependencies;
|
2707
|
+
static startCollectDependencies(updater: () => void, target: Base, property: string): void;
|
2657
2708
|
static get commentPrefix(): string;
|
2658
2709
|
static set commentPrefix(val: string);
|
2659
2710
|
static createItemValue: (item: any, type?: string) => any;
|
@@ -2764,6 +2815,7 @@ export declare class Base {
|
|
2764
2815
|
* @param val new property value
|
2765
2816
|
*/
|
2766
2817
|
setPropertyValue(name: string, val: any): void;
|
2818
|
+
protected setPropertyValueDirectly(name: string, val: any): void;
|
2767
2819
|
protected clearPropertyValue(name: string): void;
|
2768
2820
|
onPropertyValueChangedCallback(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void;
|
2769
2821
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
@@ -2854,6 +2906,7 @@ export interface ISurveyErrorOwner extends ILocalizableOwner {
|
|
2854
2906
|
getErrorCustomText(text: string, error: SurveyError): string;
|
2855
2907
|
}
|
2856
2908
|
export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
2909
|
+
getSkeletonComponentName(element: ISurveyElement): string;
|
2857
2910
|
currentPage: IPage;
|
2858
2911
|
pages: Array<IPage>;
|
2859
2912
|
getCss(): any;
|
@@ -2879,6 +2932,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
2879
2932
|
processHtml(html: string): string;
|
2880
2933
|
getSurveyMarkdownHtml(element: Base, text: string, name: string): string;
|
2881
2934
|
getRendererForString(element: Base, name: string): string;
|
2935
|
+
getRendererContextForString(element: Base, locStr: LocalizableString): any;
|
2882
2936
|
getExpressionDisplayValue(question: IQuestion, value: any, displayValue: string): string;
|
2883
2937
|
isDisplayMode: boolean;
|
2884
2938
|
isDesignMode: boolean;
|
@@ -2917,6 +2971,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
2917
2971
|
updateQuestionCssClasses(question: IQuestion, cssClasses: any): any;
|
2918
2972
|
updatePanelCssClasses(panel: IPanel, cssClasses: any): any;
|
2919
2973
|
updatePageCssClasses(panel: IPanel, cssClasses: any): any;
|
2974
|
+
updateChoiceItemCss(question: IQuestion, options: any): any;
|
2920
2975
|
afterRenderQuestion(question: IQuestion, htmlElement: HTMLElement): any;
|
2921
2976
|
afterRenderQuestionInput(question: IQuestion, htmlElement: HTMLElement): any;
|
2922
2977
|
afterRenderPanel(panel: IElement, htmlElement: HTMLElement): any;
|
@@ -2930,6 +2985,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
2930
2985
|
matrixRowRemoved(question: IQuestion, rowIndex: number, row: any): any;
|
2931
2986
|
matrixRowRemoving(question: IQuestion, rowIndex: number, row: any): boolean;
|
2932
2987
|
matrixAllowRemoveRow(question: IQuestion, rowIndex: number, row: any): boolean;
|
2988
|
+
matrixCellCreating(question: IQuestion, options: any): any;
|
2933
2989
|
matrixCellCreated(question: IQuestion, options: any): any;
|
2934
2990
|
matrixAfterCellRender(question: IQuestion, options: any): any;
|
2935
2991
|
matrixCellValueChanged(question: IQuestion, options: any): any;
|
@@ -2960,6 +3016,7 @@ export interface ISurveyElement {
|
|
2960
3016
|
isPanel: boolean;
|
2961
3017
|
containsErrors: boolean;
|
2962
3018
|
parent: IPanel;
|
3019
|
+
skeletonComponentName: string;
|
2963
3020
|
setSurveyImpl(value: ISurveyImpl): any;
|
2964
3021
|
onSurveyLoad(): any;
|
2965
3022
|
onFirstRendering(): any;
|
@@ -2992,6 +3049,7 @@ export interface IElement extends IConditionRunner, ISurveyElement {
|
|
2992
3049
|
clearIncorrectValues(): any;
|
2993
3050
|
clearErrors(): any;
|
2994
3051
|
dispose(): void;
|
3052
|
+
needResponsiveWidth(): boolean;
|
2995
3053
|
}
|
2996
3054
|
export interface IQuestion extends IElement, ISurveyErrorOwner {
|
2997
3055
|
hasTitle: boolean;
|
@@ -3104,6 +3162,7 @@ export declare abstract class SurveyElementCore extends Base implements ILocaliz
|
|
3104
3162
|
abstract getLocale(): string;
|
3105
3163
|
abstract getMarkdownHtml(text: string, name: string): string;
|
3106
3164
|
abstract getRenderer(name: string): string;
|
3165
|
+
abstract getRendererContext(locStr: LocalizableString): any;
|
3107
3166
|
abstract getProcessedText(text: string): string;
|
3108
3167
|
}
|
3109
3168
|
/**
|
@@ -3121,6 +3180,8 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3121
3180
|
disableDesignActions: boolean;
|
3122
3181
|
constructor(name: string);
|
3123
3182
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
3183
|
+
protected getSkeletonComponentNameCore(): string;
|
3184
|
+
get skeletonComponentName(): string;
|
3124
3185
|
/**
|
3125
3186
|
* Set this property to "collapsed" to render only Panel title and expanded button and to "expanded" to render the collapsed button in the Panel caption
|
3126
3187
|
*/
|
@@ -3259,6 +3320,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3259
3320
|
getLocale(): string;
|
3260
3321
|
getMarkdownHtml(text: string, name: string): string;
|
3261
3322
|
getRenderer(name: string): string;
|
3323
|
+
getRendererContext(locStr: LocalizableString): any;
|
3262
3324
|
getProcessedText(text: string): string;
|
3263
3325
|
protected getUseDisplayValuesInTitle(): boolean;
|
3264
3326
|
protected removeSelfFromList(list: Array<any>): void;
|
@@ -3388,6 +3450,7 @@ export interface ILocalizableOwner {
|
|
3388
3450
|
getMarkdownHtml(text: string, name: string): string;
|
3389
3451
|
getProcessedText(text: string): string;
|
3390
3452
|
getRenderer(name: string): string;
|
3453
|
+
getRendererContext(locStr: LocalizableString): any;
|
3391
3454
|
}
|
3392
3455
|
export interface ILocalizableString {
|
3393
3456
|
getLocaleText(loc: string): string;
|
@@ -3411,6 +3474,7 @@ export declare class LocalizableString implements ILocalizableString {
|
|
3411
3474
|
static editableRenderer: string;
|
3412
3475
|
localizationName: string;
|
3413
3476
|
onGetTextCallback: (str: string) => string;
|
3477
|
+
onGetDefaultTextCallback: () => string;
|
3414
3478
|
onStrChanged: (oldValue: string, newValue: string) => void;
|
3415
3479
|
onSearchChanged: () => void;
|
3416
3480
|
sharedData: LocalizableString;
|
@@ -3436,6 +3500,7 @@ export declare class LocalizableString implements ILocalizableString {
|
|
3436
3500
|
getJson(): any;
|
3437
3501
|
setJson(value: any): void;
|
3438
3502
|
get renderAs(): string;
|
3503
|
+
get renderAsData(): any;
|
3439
3504
|
equals(obj: any): boolean;
|
3440
3505
|
setFindText(text: string): boolean;
|
3441
3506
|
onChanged(): void;
|
@@ -3480,6 +3545,7 @@ export declare class ExpressionItem extends Base implements ILocalizableOwner {
|
|
3480
3545
|
getLocale(): string;
|
3481
3546
|
getMarkdownHtml(text: string, name: string): string;
|
3482
3547
|
getRenderer(name: string): string;
|
3548
|
+
getRendererContext(locStr: LocalizableString): any;
|
3483
3549
|
getProcessedText(text: string): string;
|
3484
3550
|
}
|
3485
3551
|
/**
|
@@ -3554,7 +3620,7 @@ export declare class ChoicesRestful extends Base {
|
|
3554
3620
|
getData(): any;
|
3555
3621
|
/**
|
3556
3622
|
* Gets or sets a link to a web service. You can use text preprocessing here.
|
3557
|
-
* 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.
|
3558
3624
|
* SurveyJS automatically gets data from the web service when the value of the _region_ question changes.
|
3559
3625
|
* @see path
|
3560
3626
|
* @see valueName
|
@@ -3666,6 +3732,9 @@ export declare abstract class Operand {
|
|
3666
3732
|
hasFunction(): boolean;
|
3667
3733
|
hasAsyncFunction(): boolean;
|
3668
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;
|
3669
3738
|
}
|
3670
3739
|
export declare class BinaryOperand extends Operand {
|
3671
3740
|
constructor(operatorName: string, left?: any, right?: any, isArithmeticOp?: boolean);
|
@@ -3676,6 +3745,7 @@ export declare class BinaryOperand extends Operand {
|
|
3676
3745
|
get operator(): string;
|
3677
3746
|
get leftOperand(): any;
|
3678
3747
|
get rightOperand(): any;
|
3748
|
+
protected isContentEqual(op: Operand): boolean;
|
3679
3749
|
evaluate(processValue?: ProcessValue): any;
|
3680
3750
|
toString(func?: (op: Operand) => string): string;
|
3681
3751
|
setVariables(variables: Array<string>): void;
|
@@ -3689,6 +3759,7 @@ export declare class UnaryOperand extends Operand {
|
|
3689
3759
|
get expression(): Operand;
|
3690
3760
|
getType(): string;
|
3691
3761
|
toString(func?: (op: Operand) => string): string;
|
3762
|
+
protected isContentEqual(op: Operand): boolean;
|
3692
3763
|
evaluate(processValue?: ProcessValue): boolean;
|
3693
3764
|
setVariables(variables: Array<string>): void;
|
3694
3765
|
}
|
@@ -3702,6 +3773,7 @@ export declare class ArrayOperand extends Operand {
|
|
3702
3773
|
hasFunction(): boolean;
|
3703
3774
|
hasAsyncFunction(): boolean;
|
3704
3775
|
addToAsyncList(list: Array<FunctionOperand>): void;
|
3776
|
+
protected isContentEqual(op: Operand): boolean;
|
3705
3777
|
}
|
3706
3778
|
export declare class Const extends Operand {
|
3707
3779
|
constructor(value: any);
|
@@ -3711,6 +3783,7 @@ export declare class Const extends Operand {
|
|
3711
3783
|
evaluate(): any;
|
3712
3784
|
setVariables(variables: Array<string>): void;
|
3713
3785
|
protected getCorrectValue(value: any): any;
|
3786
|
+
protected isContentEqual(op: Operand): boolean;
|
3714
3787
|
}
|
3715
3788
|
export declare class Variable extends Const {
|
3716
3789
|
static DisableConversionChar: string;
|
@@ -3721,6 +3794,7 @@ export declare class Variable extends Const {
|
|
3721
3794
|
evaluate(processValue?: ProcessValue): any;
|
3722
3795
|
setVariables(variables: Array<string>): void;
|
3723
3796
|
protected getCorrectValue(value: any): any;
|
3797
|
+
protected isContentEqual(op: Operand): boolean;
|
3724
3798
|
}
|
3725
3799
|
export declare class FunctionOperand extends Operand {
|
3726
3800
|
onAsyncReady: () => void;
|
@@ -3734,6 +3808,7 @@ export declare class FunctionOperand extends Operand {
|
|
3734
3808
|
hasFunction(): boolean;
|
3735
3809
|
hasAsyncFunction(): boolean;
|
3736
3810
|
addToAsyncList(list: Array<FunctionOperand>): void;
|
3811
|
+
protected isContentEqual(op: Operand): boolean;
|
3737
3812
|
}
|
3738
3813
|
export declare class OperandMaker {
|
3739
3814
|
static throwInvalidOperatorError(op: string): void;
|
@@ -3742,6 +3817,8 @@ export declare class OperandMaker {
|
|
3742
3817
|
static isSpaceString(str: string): boolean;
|
3743
3818
|
static isNumeric(value: string): boolean;
|
3744
3819
|
static isBooleanValue(value: string): boolean;
|
3820
|
+
static countDecimals(value: number): number;
|
3821
|
+
static plusMinus(a: number, b: number, res: number): number;
|
3745
3822
|
static unaryFunctions: HashTable<Function>;
|
3746
3823
|
static binaryFunctions: HashTable<Function>;
|
3747
3824
|
static isTwoValueEquals(x: any, y: any): boolean;
|
@@ -3775,8 +3852,9 @@ export interface IPropertyDecoratorOptions {
|
|
3775
3852
|
defaultValue?: any;
|
3776
3853
|
defaultSource?: string;
|
3777
3854
|
localizable?: {
|
3778
|
-
name
|
3855
|
+
name?: string;
|
3779
3856
|
onGetTextCallback?: (str: string) => string;
|
3857
|
+
defaultStr?: string;
|
3780
3858
|
} | boolean;
|
3781
3859
|
onSet?: (val: any, target: any) => void;
|
3782
3860
|
}
|
@@ -3902,6 +3980,7 @@ export declare class JsonMetadata {
|
|
3902
3980
|
getDynamicPropertiesByObj(obj: any, dynamicType?: string): Array<JsonObjectProperty>;
|
3903
3981
|
hasOriginalProperty(obj: Base, propName: string): boolean;
|
3904
3982
|
getOriginalProperty(obj: Base, propName: string): JsonObjectProperty;
|
3983
|
+
getProperty(className: string, propertyName: string): JsonObjectProperty;
|
3905
3984
|
findProperty(className: string, propertyName: string): JsonObjectProperty;
|
3906
3985
|
findProperties(className: string, propertyNames: Array<string>): Array<JsonObjectProperty>;
|
3907
3986
|
getAllPropertiesByName(propertyName: string): Array<JsonObjectProperty>;
|
@@ -3986,143 +4065,12 @@ export interface IMatrixDropdownData {
|
|
3986
4065
|
getLocale(): string;
|
3987
4066
|
getMarkdownHtml(text: string, name: string): string;
|
3988
4067
|
getRenderer(name: string): string;
|
4068
|
+
getRendererContext(locStr: LocalizableString): any;
|
3989
4069
|
getProcessedText(text: string): string;
|
3990
4070
|
getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
|
3991
4071
|
onTotalValueChanged(): any;
|
3992
4072
|
getSurvey(): ISurvey;
|
3993
4073
|
}
|
3994
|
-
export interface IMatrixColumnOwner extends ILocalizableOwner {
|
3995
|
-
getRequiredText(): string;
|
3996
|
-
onColumnPropertyChanged(column: MatrixDropdownColumn, name: string, newValue: any): void;
|
3997
|
-
onColumnItemValuePropertyChanged(column: MatrixDropdownColumn, propertyName: string, obj: ItemValue, name: string, newValue: any, oldValue: any): void;
|
3998
|
-
onShowInMultipleColumnsChanged(column: MatrixDropdownColumn): void;
|
3999
|
-
getCellType(): string;
|
4000
|
-
onColumnCellTypeChanged(column: MatrixDropdownColumn): void;
|
4001
|
-
}
|
4002
|
-
export declare var matrixDropdownColumnTypes: {
|
4003
|
-
dropdown: {
|
4004
|
-
properties: string[];
|
4005
|
-
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4006
|
-
};
|
4007
|
-
checkbox: {
|
4008
|
-
properties: string[];
|
4009
|
-
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4010
|
-
};
|
4011
|
-
radiogroup: {
|
4012
|
-
properties: string[];
|
4013
|
-
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4014
|
-
};
|
4015
|
-
text: {
|
4016
|
-
properties: string[];
|
4017
|
-
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4018
|
-
};
|
4019
|
-
comment: {
|
4020
|
-
properties: string[];
|
4021
|
-
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4022
|
-
};
|
4023
|
-
boolean: {
|
4024
|
-
properties: string[];
|
4025
|
-
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4026
|
-
};
|
4027
|
-
expression: {
|
4028
|
-
properties: string[];
|
4029
|
-
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4030
|
-
};
|
4031
|
-
rating: {
|
4032
|
-
properties: string[];
|
4033
|
-
};
|
4034
|
-
};
|
4035
|
-
export declare class MatrixDropdownColumn extends Base implements ILocalizableOwner, IWrapperObject {
|
4036
|
-
static getColumnTypes(): Array<string>;
|
4037
|
-
constructor(name: string, title?: string);
|
4038
|
-
getOriginalObj(): Base;
|
4039
|
-
getClassNameProperty(): string;
|
4040
|
-
getSurvey(live?: boolean): ISurvey;
|
4041
|
-
endLoadingFromJson(): void;
|
4042
|
-
getDynamicPropertyName(): string;
|
4043
|
-
getDynamicType(): string;
|
4044
|
-
get colOwner(): IMatrixColumnOwner;
|
4045
|
-
set colOwner(value: IMatrixColumnOwner);
|
4046
|
-
locStrsChanged(): void;
|
4047
|
-
addUsedLocales(locales: Array<string>): void;
|
4048
|
-
get index(): number;
|
4049
|
-
setIndex(val: number): void;
|
4050
|
-
getType(): string;
|
4051
|
-
get cellType(): string;
|
4052
|
-
set cellType(val: string);
|
4053
|
-
get templateQuestion(): Question;
|
4054
|
-
get value(): string;
|
4055
|
-
get isVisible(): boolean;
|
4056
|
-
setIsVisible(newVal: boolean): void;
|
4057
|
-
get hasVisibleCell(): boolean;
|
4058
|
-
set hasVisibleCell(newVal: boolean);
|
4059
|
-
get name(): string;
|
4060
|
-
set name(val: string);
|
4061
|
-
get title(): string;
|
4062
|
-
set title(val: string);
|
4063
|
-
get locTitle(): LocalizableString;
|
4064
|
-
get fullTitle(): string;
|
4065
|
-
get isRequired(): boolean;
|
4066
|
-
set isRequired(val: boolean);
|
4067
|
-
get requiredText(): string;
|
4068
|
-
get requiredErrorText(): string;
|
4069
|
-
set requiredErrorText(val: string);
|
4070
|
-
get locRequiredErrorText(): LocalizableString;
|
4071
|
-
get readOnly(): boolean;
|
4072
|
-
set readOnly(val: boolean);
|
4073
|
-
get hasOther(): boolean;
|
4074
|
-
set hasOther(val: boolean);
|
4075
|
-
get visibleIf(): string;
|
4076
|
-
set visibleIf(val: string);
|
4077
|
-
get enableIf(): string;
|
4078
|
-
set enableIf(val: string);
|
4079
|
-
get requiredIf(): string;
|
4080
|
-
set requiredIf(val: string);
|
4081
|
-
get isUnique(): boolean;
|
4082
|
-
set isUnique(val: boolean);
|
4083
|
-
get showInMultipleColumns(): boolean;
|
4084
|
-
set showInMultipleColumns(val: boolean);
|
4085
|
-
get isSupportMultipleColumns(): boolean;
|
4086
|
-
get isShowInMultipleColumns(): boolean;
|
4087
|
-
get validators(): Array<SurveyValidator>;
|
4088
|
-
set validators(val: Array<SurveyValidator>);
|
4089
|
-
get totalType(): string;
|
4090
|
-
set totalType(val: string);
|
4091
|
-
get totalExpression(): string;
|
4092
|
-
set totalExpression(val: string);
|
4093
|
-
get hasTotal(): boolean;
|
4094
|
-
get totalFormat(): string;
|
4095
|
-
set totalFormat(val: string);
|
4096
|
-
get locTotalFormat(): LocalizableString;
|
4097
|
-
get renderAs(): string;
|
4098
|
-
set renderAs(val: string);
|
4099
|
-
get totalMaximumFractionDigits(): number;
|
4100
|
-
set totalMaximumFractionDigits(val: number);
|
4101
|
-
get totalMinimumFractionDigits(): number;
|
4102
|
-
set totalMinimumFractionDigits(val: number);
|
4103
|
-
get totalDisplayStyle(): string;
|
4104
|
-
set totalDisplayStyle(val: string);
|
4105
|
-
get totalCurrency(): string;
|
4106
|
-
set totalCurrency(val: string);
|
4107
|
-
get minWidth(): string;
|
4108
|
-
set minWidth(val: string);
|
4109
|
-
get width(): string;
|
4110
|
-
set width(val: string);
|
4111
|
-
get colCount(): number;
|
4112
|
-
set colCount(val: number);
|
4113
|
-
getLocale(): string;
|
4114
|
-
getMarkdownHtml(text: string, name: string): string;
|
4115
|
-
getRenderer(name: string): string;
|
4116
|
-
getProcessedText(text: string): string;
|
4117
|
-
createCellQuestion(data: any): Question;
|
4118
|
-
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: (json: any) => any): void;
|
4119
|
-
defaultCellTypeChanged(): void;
|
4120
|
-
protected calcCellQuestionType(): string;
|
4121
|
-
protected updateTemplateQuestion(): void;
|
4122
|
-
protected createNewQuestion(cellType: string): Question;
|
4123
|
-
protected setQuestionProperties(question: Question, onUpdateJson?: (json: any) => any): void;
|
4124
|
-
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
4125
|
-
}
|
4126
4074
|
export declare class MatrixDropdownCell {
|
4127
4075
|
column: MatrixDropdownColumn;
|
4128
4076
|
row: MatrixDropdownRowModelBase;
|
@@ -4193,6 +4141,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
4193
4141
|
getLocale(): string;
|
4194
4142
|
getMarkdownHtml(text: string, name: string): string;
|
4195
4143
|
getRenderer(name: string): string;
|
4144
|
+
getRendererContext(locStr: LocalizableString): any;
|
4196
4145
|
getProcessedText(text: string): string;
|
4197
4146
|
locStrsChanged(): void;
|
4198
4147
|
updateCellQuestionOnColumnChanged(column: MatrixDropdownColumn, name: string, newValue: any): void;
|
@@ -4218,84 +4167,6 @@ export declare class MatrixDropdownTotalRowModel extends MatrixDropdownRowModelB
|
|
4218
4167
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
4219
4168
|
protected updateCellOnColumnChanged(cell: MatrixDropdownCell, name: string, newValue: any): void;
|
4220
4169
|
}
|
4221
|
-
export declare class QuestionMatrixDropdownRenderedCell {
|
4222
|
-
minWidth: string;
|
4223
|
-
width: string;
|
4224
|
-
locTitle: LocalizableString;
|
4225
|
-
cell: MatrixDropdownCell;
|
4226
|
-
column: MatrixDropdownColumn;
|
4227
|
-
row: MatrixDropdownRowModelBase;
|
4228
|
-
question: Question;
|
4229
|
-
isRemoveRow: boolean;
|
4230
|
-
choiceIndex: number;
|
4231
|
-
matrix: QuestionMatrixDropdownModelBase;
|
4232
|
-
requiredText: string;
|
4233
|
-
isEmpty: boolean;
|
4234
|
-
colSpans: number;
|
4235
|
-
panel: PanelModel;
|
4236
|
-
isShowHideDetail: boolean;
|
4237
|
-
isActionsCell: boolean;
|
4238
|
-
className: string;
|
4239
|
-
isDragHandlerCell: boolean;
|
4240
|
-
constructor();
|
4241
|
-
get hasQuestion(): boolean;
|
4242
|
-
get hasTitle(): boolean;
|
4243
|
-
get hasPanel(): boolean;
|
4244
|
-
get id(): number;
|
4245
|
-
get showErrorOnTop(): boolean;
|
4246
|
-
get showErrorOnBottom(): boolean;
|
4247
|
-
get item(): ItemValue;
|
4248
|
-
set item(val: ItemValue);
|
4249
|
-
get isChoice(): boolean;
|
4250
|
-
get choiceValue(): any;
|
4251
|
-
get isCheckbox(): boolean;
|
4252
|
-
get isFirstChoice(): boolean;
|
4253
|
-
get css(): string;
|
4254
|
-
get headers(): string;
|
4255
|
-
calculateFinalClassName(matrixCssClasses: any): string;
|
4256
|
-
}
|
4257
|
-
export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
4258
|
-
cssClasses: any;
|
4259
|
-
ghostPosition: string;
|
4260
|
-
isDetailRow: boolean;
|
4261
|
-
row: MatrixDropdownRowModelBase;
|
4262
|
-
cells: Array<QuestionMatrixDropdownRenderedCell>;
|
4263
|
-
className: string;
|
4264
|
-
constructor(cssClasses: any);
|
4265
|
-
onCreating(): void;
|
4266
|
-
get id(): number;
|
4267
|
-
get attributes(): {
|
4268
|
-
"data-sv-drop-target-matrix-row"?: undefined;
|
4269
|
-
} | {
|
4270
|
-
"data-sv-drop-target-matrix-row": string;
|
4271
|
-
};
|
4272
|
-
get ghostPositionCssClass(): any;
|
4273
|
-
}
|
4274
|
-
export declare class QuestionMatrixDropdownRenderedTable extends Base {
|
4275
|
-
matrix: QuestionMatrixDropdownModelBase;
|
4276
|
-
constructor(matrix: QuestionMatrixDropdownModelBase);
|
4277
|
-
get showTable(): boolean;
|
4278
|
-
get showHeader(): boolean;
|
4279
|
-
get showAddRowOnTop(): boolean;
|
4280
|
-
get showAddRowOnBottom(): boolean;
|
4281
|
-
get showFooter(): boolean;
|
4282
|
-
get hasFooter(): boolean;
|
4283
|
-
get hasRemoveRows(): boolean;
|
4284
|
-
isRequireReset(): boolean;
|
4285
|
-
get headerRow(): QuestionMatrixDropdownRenderedRow;
|
4286
|
-
get footerRow(): QuestionMatrixDropdownRenderedRow;
|
4287
|
-
get rows(): Array<QuestionMatrixDropdownRenderedRow>;
|
4288
|
-
protected build(): void;
|
4289
|
-
updateShowTableAndAddRow(): void;
|
4290
|
-
onAddedRow(): void;
|
4291
|
-
onRemovedRow(row: MatrixDropdownRowModelBase): void;
|
4292
|
-
onDetailPanelChangeVisibility(row: MatrixDropdownRowModelBase, isShowing: boolean): void;
|
4293
|
-
protected buildRowsActions(): void;
|
4294
|
-
protected buildHeader(): void;
|
4295
|
-
protected buildFooter(): void;
|
4296
|
-
protected buildRows(): void;
|
4297
|
-
protected setDefaultRowActions(row: MatrixDropdownRowModelBase, actions: Array<IAction>): void;
|
4298
|
-
}
|
4299
4170
|
/**
|
4300
4171
|
* A base class for matrix dropdown and matrix dynamic questions.
|
4301
4172
|
*/
|
@@ -4318,6 +4189,10 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
4318
4189
|
dispose(): void;
|
4319
4190
|
get hasSingleInput(): boolean;
|
4320
4191
|
get isRowsDynamic(): boolean;
|
4192
|
+
protected get isUpdateLocked(): boolean;
|
4193
|
+
beginUpdate(): void;
|
4194
|
+
endUpdate(): void;
|
4195
|
+
protected updateColumnsAndRows(): void;
|
4321
4196
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
4322
4197
|
/**
|
4323
4198
|
* Set columnLayout to 'vertical' to place columns vertically and rows horizontally. It makes sense when we have many columns and few rows.
|
@@ -4387,6 +4262,11 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
4387
4262
|
*/
|
4388
4263
|
get horizontalScroll(): boolean;
|
4389
4264
|
set horizontalScroll(val: boolean);
|
4265
|
+
/**
|
4266
|
+
* The Matrix toolbar and inner panel toolbars get adaptive if the property is set to true.
|
4267
|
+
*/
|
4268
|
+
get allowAdaptiveActions(): boolean;
|
4269
|
+
set allowAdaptiveActions(val: boolean);
|
4390
4270
|
getRequiredText(): string;
|
4391
4271
|
onColumnPropertyChanged(column: MatrixDropdownColumn, name: string, newValue: any): void;
|
4392
4272
|
onColumnItemValuePropertyChanged(column: MatrixDropdownColumn, propertyName: string, obj: ItemValue, name: string, newValue: any, oldValue: any): void;
|
@@ -4400,6 +4280,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
4400
4280
|
protected updateHasFooter(): void;
|
4401
4281
|
get hasTotal(): boolean;
|
4402
4282
|
getCellType(): string;
|
4283
|
+
getCustomCellType(column: MatrixDropdownColumn, row: MatrixDropdownRowModelBase, cellType: string): string;
|
4403
4284
|
getConditionJson(operator?: string, path?: string): any;
|
4404
4285
|
clearIncorrectValues(): void;
|
4405
4286
|
clearErrors(): void;
|
@@ -4512,6 +4393,220 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
4512
4393
|
getRowHeaderWrapperComponentData(cell: MatrixDropdownCell): any;
|
4513
4394
|
}
|
4514
4395
|
|
4396
|
+
export interface IMatrixColumnOwner extends ILocalizableOwner {
|
4397
|
+
getRequiredText(): string;
|
4398
|
+
onColumnPropertyChanged(column: MatrixDropdownColumn, name: string, newValue: any): void;
|
4399
|
+
onColumnItemValuePropertyChanged(column: MatrixDropdownColumn, propertyName: string, obj: ItemValue, name: string, newValue: any, oldValue: any): void;
|
4400
|
+
onShowInMultipleColumnsChanged(column: MatrixDropdownColumn): void;
|
4401
|
+
getCellType(): string;
|
4402
|
+
getCustomCellType(column: MatrixDropdownColumn, row: MatrixDropdownRowModelBase, cellType: string): string;
|
4403
|
+
onColumnCellTypeChanged(column: MatrixDropdownColumn): void;
|
4404
|
+
}
|
4405
|
+
export declare var matrixDropdownColumnTypes: {
|
4406
|
+
dropdown: {
|
4407
|
+
properties: string[];
|
4408
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4409
|
+
};
|
4410
|
+
checkbox: {
|
4411
|
+
properties: string[];
|
4412
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4413
|
+
};
|
4414
|
+
radiogroup: {
|
4415
|
+
properties: string[];
|
4416
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4417
|
+
};
|
4418
|
+
text: {
|
4419
|
+
properties: string[];
|
4420
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4421
|
+
};
|
4422
|
+
comment: {
|
4423
|
+
properties: string[];
|
4424
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4425
|
+
};
|
4426
|
+
boolean: {
|
4427
|
+
properties: string[];
|
4428
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4429
|
+
};
|
4430
|
+
expression: {
|
4431
|
+
properties: string[];
|
4432
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void;
|
4433
|
+
};
|
4434
|
+
rating: {
|
4435
|
+
properties: string[];
|
4436
|
+
};
|
4437
|
+
};
|
4438
|
+
export declare class MatrixDropdownColumn extends Base implements ILocalizableOwner, IWrapperObject {
|
4439
|
+
static getColumnTypes(): Array<string>;
|
4440
|
+
constructor(name: string, title?: string);
|
4441
|
+
getOriginalObj(): Base;
|
4442
|
+
getClassNameProperty(): string;
|
4443
|
+
getSurvey(live?: boolean): ISurvey;
|
4444
|
+
endLoadingFromJson(): void;
|
4445
|
+
getDynamicPropertyName(): string;
|
4446
|
+
getDynamicType(): string;
|
4447
|
+
get colOwner(): IMatrixColumnOwner;
|
4448
|
+
set colOwner(value: IMatrixColumnOwner);
|
4449
|
+
locStrsChanged(): void;
|
4450
|
+
addUsedLocales(locales: Array<string>): void;
|
4451
|
+
get index(): number;
|
4452
|
+
setIndex(val: number): void;
|
4453
|
+
getType(): string;
|
4454
|
+
get cellType(): string;
|
4455
|
+
set cellType(val: string);
|
4456
|
+
get templateQuestion(): Question;
|
4457
|
+
get value(): string;
|
4458
|
+
get isVisible(): boolean;
|
4459
|
+
setIsVisible(newVal: boolean): void;
|
4460
|
+
get hasVisibleCell(): boolean;
|
4461
|
+
set hasVisibleCell(newVal: boolean);
|
4462
|
+
get name(): string;
|
4463
|
+
set name(val: string);
|
4464
|
+
get title(): string;
|
4465
|
+
set title(val: string);
|
4466
|
+
get locTitle(): LocalizableString;
|
4467
|
+
get fullTitle(): string;
|
4468
|
+
get isRequired(): boolean;
|
4469
|
+
set isRequired(val: boolean);
|
4470
|
+
get requiredText(): string;
|
4471
|
+
get requiredErrorText(): string;
|
4472
|
+
set requiredErrorText(val: string);
|
4473
|
+
get locRequiredErrorText(): LocalizableString;
|
4474
|
+
get readOnly(): boolean;
|
4475
|
+
set readOnly(val: boolean);
|
4476
|
+
get hasOther(): boolean;
|
4477
|
+
set hasOther(val: boolean);
|
4478
|
+
get visibleIf(): string;
|
4479
|
+
set visibleIf(val: string);
|
4480
|
+
get enableIf(): string;
|
4481
|
+
set enableIf(val: string);
|
4482
|
+
get requiredIf(): string;
|
4483
|
+
set requiredIf(val: string);
|
4484
|
+
get isUnique(): boolean;
|
4485
|
+
set isUnique(val: boolean);
|
4486
|
+
get showInMultipleColumns(): boolean;
|
4487
|
+
set showInMultipleColumns(val: boolean);
|
4488
|
+
get isSupportMultipleColumns(): boolean;
|
4489
|
+
get isShowInMultipleColumns(): boolean;
|
4490
|
+
get validators(): Array<SurveyValidator>;
|
4491
|
+
set validators(val: Array<SurveyValidator>);
|
4492
|
+
get totalType(): string;
|
4493
|
+
set totalType(val: string);
|
4494
|
+
get totalExpression(): string;
|
4495
|
+
set totalExpression(val: string);
|
4496
|
+
get hasTotal(): boolean;
|
4497
|
+
get totalFormat(): string;
|
4498
|
+
set totalFormat(val: string);
|
4499
|
+
get locTotalFormat(): LocalizableString;
|
4500
|
+
get renderAs(): string;
|
4501
|
+
set renderAs(val: string);
|
4502
|
+
get totalMaximumFractionDigits(): number;
|
4503
|
+
set totalMaximumFractionDigits(val: number);
|
4504
|
+
get totalMinimumFractionDigits(): number;
|
4505
|
+
set totalMinimumFractionDigits(val: number);
|
4506
|
+
get totalDisplayStyle(): string;
|
4507
|
+
set totalDisplayStyle(val: string);
|
4508
|
+
get totalCurrency(): string;
|
4509
|
+
set totalCurrency(val: string);
|
4510
|
+
get minWidth(): string;
|
4511
|
+
set minWidth(val: string);
|
4512
|
+
get width(): string;
|
4513
|
+
set width(val: string);
|
4514
|
+
get colCount(): number;
|
4515
|
+
set colCount(val: number);
|
4516
|
+
getLocale(): string;
|
4517
|
+
getMarkdownHtml(text: string, name: string): string;
|
4518
|
+
getRenderer(name: string): string;
|
4519
|
+
getRendererContext(locStr: LocalizableString): any;
|
4520
|
+
getProcessedText(text: string): string;
|
4521
|
+
createCellQuestion(row: MatrixDropdownRowModelBase): Question;
|
4522
|
+
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: (json: any) => any): void;
|
4523
|
+
defaultCellTypeChanged(): void;
|
4524
|
+
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
4525
|
+
protected updateTemplateQuestion(): void;
|
4526
|
+
protected createNewQuestion(cellType: string): Question;
|
4527
|
+
protected setQuestionProperties(question: Question, onUpdateJson?: (json: any) => any): void;
|
4528
|
+
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
4529
|
+
}
|
4530
|
+
|
4531
|
+
export declare class QuestionMatrixDropdownRenderedCell {
|
4532
|
+
minWidth: string;
|
4533
|
+
width: string;
|
4534
|
+
locTitle: LocalizableString;
|
4535
|
+
cell: MatrixDropdownCell;
|
4536
|
+
column: MatrixDropdownColumn;
|
4537
|
+
row: MatrixDropdownRowModelBase;
|
4538
|
+
question: Question;
|
4539
|
+
isRemoveRow: boolean;
|
4540
|
+
choiceIndex: number;
|
4541
|
+
matrix: QuestionMatrixDropdownModelBase;
|
4542
|
+
requiredText: string;
|
4543
|
+
isEmpty: boolean;
|
4544
|
+
colSpans: number;
|
4545
|
+
panel: PanelModel;
|
4546
|
+
isShowHideDetail: boolean;
|
4547
|
+
isActionsCell: boolean;
|
4548
|
+
isDragHandlerCell: boolean;
|
4549
|
+
constructor();
|
4550
|
+
get hasQuestion(): boolean;
|
4551
|
+
get hasTitle(): boolean;
|
4552
|
+
get hasPanel(): boolean;
|
4553
|
+
get id(): number;
|
4554
|
+
get showErrorOnTop(): boolean;
|
4555
|
+
get showErrorOnBottom(): boolean;
|
4556
|
+
get item(): ItemValue;
|
4557
|
+
set item(val: ItemValue);
|
4558
|
+
get isChoice(): boolean;
|
4559
|
+
get choiceValue(): any;
|
4560
|
+
get isCheckbox(): boolean;
|
4561
|
+
get isFirstChoice(): boolean;
|
4562
|
+
set className(val: string);
|
4563
|
+
get className(): string;
|
4564
|
+
get headers(): string;
|
4565
|
+
calculateFinalClassName(matrixCssClasses: any): string;
|
4566
|
+
}
|
4567
|
+
export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
4568
|
+
cssClasses: any;
|
4569
|
+
isDetailRow: boolean;
|
4570
|
+
ghostPosition: string;
|
4571
|
+
isAdditionalClasses: boolean;
|
4572
|
+
row: MatrixDropdownRowModelBase;
|
4573
|
+
cells: Array<QuestionMatrixDropdownRenderedCell>;
|
4574
|
+
constructor(cssClasses: any, isDetailRow?: boolean);
|
4575
|
+
onCreating(): void;
|
4576
|
+
get id(): number;
|
4577
|
+
get attributes(): {
|
4578
|
+
"data-sv-drop-target-matrix-row"?: undefined;
|
4579
|
+
} | {
|
4580
|
+
"data-sv-drop-target-matrix-row": string;
|
4581
|
+
};
|
4582
|
+
get className(): string;
|
4583
|
+
}
|
4584
|
+
export declare class QuestionMatrixDropdownRenderedTable extends Base {
|
4585
|
+
matrix: QuestionMatrixDropdownModelBase;
|
4586
|
+
constructor(matrix: QuestionMatrixDropdownModelBase);
|
4587
|
+
get showTable(): boolean;
|
4588
|
+
get showHeader(): boolean;
|
4589
|
+
get showAddRowOnTop(): boolean;
|
4590
|
+
get showAddRowOnBottom(): boolean;
|
4591
|
+
get showFooter(): boolean;
|
4592
|
+
get hasFooter(): boolean;
|
4593
|
+
get hasRemoveRows(): boolean;
|
4594
|
+
isRequireReset(): boolean;
|
4595
|
+
get headerRow(): QuestionMatrixDropdownRenderedRow;
|
4596
|
+
get footerRow(): QuestionMatrixDropdownRenderedRow;
|
4597
|
+
get rows(): Array<QuestionMatrixDropdownRenderedRow>;
|
4598
|
+
protected build(): void;
|
4599
|
+
updateShowTableAndAddRow(): void;
|
4600
|
+
onAddedRow(): void;
|
4601
|
+
onRemovedRow(row: MatrixDropdownRowModelBase): void;
|
4602
|
+
onDetailPanelChangeVisibility(row: MatrixDropdownRowModelBase, isShowing: boolean): void;
|
4603
|
+
protected buildRowsActions(): void;
|
4604
|
+
protected buildHeader(): void;
|
4605
|
+
protected buildFooter(): void;
|
4606
|
+
protected buildRows(): void;
|
4607
|
+
protected setDefaultRowActions(row: MatrixDropdownRowModelBase, actions: Array<IAction>): void;
|
4608
|
+
}
|
4609
|
+
|
4515
4610
|
export declare class MatrixDropdownRowModel extends MatrixDropdownRowModelBase {
|
4516
4611
|
name: string;
|
4517
4612
|
constructor(name: string, item: ItemValue, data: IMatrixDropdownData, value: any);
|
@@ -5060,6 +5155,7 @@ export declare class QuestionRowModel extends Base {
|
|
5060
5155
|
get index(): number;
|
5061
5156
|
setElementMaxMinWidth(el: IElement): void;
|
5062
5157
|
dispose(): void;
|
5158
|
+
getRowCss(): string;
|
5063
5159
|
}
|
5064
5160
|
/**
|
5065
5161
|
* A base class for a Panel and Page objects.
|
@@ -5345,8 +5441,9 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5345
5441
|
onAnyValueChanged(name: string): void;
|
5346
5442
|
checkBindings(valueName: string, value: any): void;
|
5347
5443
|
protected dragDropAddTarget(dragDropInfo: DragDropInfo): void;
|
5348
|
-
|
5444
|
+
dragDropFindRow(findElement: ISurveyElement): QuestionRowModel;
|
5349
5445
|
dragDropMoveElement(src: IElement, target: IElement, targetIndex: number): void;
|
5446
|
+
needResponsiveWidth(): boolean;
|
5350
5447
|
get no(): string;
|
5351
5448
|
dispose(): void;
|
5352
5449
|
}
|
@@ -5450,6 +5547,11 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
5450
5547
|
*/
|
5451
5548
|
get rightIndent(): number;
|
5452
5549
|
set rightIndent(val: number);
|
5550
|
+
/**
|
5551
|
+
* The Panel toolbar gets adaptive if the property is set to true.
|
5552
|
+
*/
|
5553
|
+
get allowAdaptiveActions(): boolean;
|
5554
|
+
set allowAdaptiveActions(val: boolean);
|
5453
5555
|
get paddingLeft(): string;
|
5454
5556
|
set paddingLeft(val: string);
|
5455
5557
|
get innerPaddingLeft(): string;
|
@@ -5458,13 +5560,14 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
5458
5560
|
set paddingRight(val: string);
|
5459
5561
|
clearOnDeletingContainer(): void;
|
5460
5562
|
get footerActions(): Array<IAction>;
|
5461
|
-
getFooterToolbar():
|
5563
|
+
getFooterToolbar(): ActionContainer;
|
5462
5564
|
get hasEditButton(): boolean;
|
5463
5565
|
cancelPreview(): void;
|
5464
5566
|
get cssTitle(): string;
|
5465
5567
|
get cssError(): string;
|
5466
5568
|
protected getCssError(cssClasses: any): string;
|
5467
5569
|
protected onVisibleChanged(): void;
|
5570
|
+
needResponsiveWidth(): boolean;
|
5468
5571
|
}
|
5469
5572
|
|
5470
5573
|
/**
|
@@ -6145,6 +6248,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6145
6248
|
get validatedValue(): any;
|
6146
6249
|
set validatedValue(val: any);
|
6147
6250
|
getAllValues(): any;
|
6251
|
+
needResponsiveWidth(): boolean;
|
6148
6252
|
}
|
6149
6253
|
|
6150
6254
|
/**
|
@@ -6401,6 +6505,7 @@ export declare class QuestionSelectBase extends Question {
|
|
6401
6505
|
getColumnClass(): string;
|
6402
6506
|
getItemIndex(item: any): number;
|
6403
6507
|
getItemClass(item: any): string;
|
6508
|
+
protected getItemClassCore(item: any, options: any): string;
|
6404
6509
|
getLabelClass(item: ItemValue): string;
|
6405
6510
|
getControlLabelClass(item: ItemValue): string;
|
6406
6511
|
get columns(): ItemValue[][];
|
@@ -6484,7 +6589,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
6484
6589
|
get selectedItems(): Array<ItemValue>;
|
6485
6590
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
6486
6591
|
protected onAfterRunItemsEnableCondition(): void;
|
6487
|
-
|
6592
|
+
protected getItemClassCore(item: any, options: any): string;
|
6488
6593
|
protected setNewValue(newValue: any): void;
|
6489
6594
|
protected getIsMultipleValue(): boolean;
|
6490
6595
|
protected getCommentFromValue(newValue: any): string;
|
@@ -6518,7 +6623,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
6518
6623
|
constructor(name: string);
|
6519
6624
|
getType(): string;
|
6520
6625
|
get rootClass(): string;
|
6521
|
-
|
6626
|
+
protected getItemClassCore(item: ItemValue, options: any): string;
|
6522
6627
|
protected isItemCurrentDropTarget(item: ItemValue): boolean;
|
6523
6628
|
get ghostPositionCssClass(): string;
|
6524
6629
|
getNumberByIndex(index: number): string;
|
@@ -6560,10 +6665,10 @@ export declare class QuestionCommentModel extends QuestionTextBase {
|
|
6560
6665
|
get cols(): number;
|
6561
6666
|
set cols(val: number);
|
6562
6667
|
/**
|
6563
|
-
*
|
6668
|
+
* Accepts pressing the Enter key by end-users and accepts carriage return symbols - \n - in the question value assigned.
|
6564
6669
|
*/
|
6565
|
-
get
|
6566
|
-
set
|
6670
|
+
get acceptCarriageReturn(): boolean;
|
6671
|
+
set acceptCarriageReturn(val: boolean);
|
6567
6672
|
/**
|
6568
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.
|
6569
6674
|
* Default value is false.
|
@@ -7058,6 +7163,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
7058
7163
|
protected setNewValue(newValue: any): void;
|
7059
7164
|
protected correctValueType(newValue: any): any;
|
7060
7165
|
protected hasPlaceHolder(): boolean;
|
7166
|
+
isReadOnlyRenderDiv(): boolean;
|
7061
7167
|
get inputStyle(): any;
|
7062
7168
|
}
|
7063
7169
|
|
@@ -7141,6 +7247,7 @@ export declare class ImageItemValue extends ItemValue implements ILocalizableOwn
|
|
7141
7247
|
getLocale(): string;
|
7142
7248
|
getMarkdownHtml(text: string, name: string): string;
|
7143
7249
|
getRenderer(name: string): string;
|
7250
|
+
getRendererContext(locStr: LocalizableString): any;
|
7144
7251
|
getProcessedText(text: string): string;
|
7145
7252
|
}
|
7146
7253
|
/**
|
@@ -7836,6 +7943,16 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
7836
7943
|
* @see onMatrixCellValueChanged
|
7837
7944
|
*/
|
7838
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>;
|
7839
7956
|
/**
|
7840
7957
|
* The event is fired when a question visibility has been changed.
|
7841
7958
|
* <br/> `sender` - the survey object that fires the event.
|
@@ -8144,6 +8261,14 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
8144
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.
|
8145
8262
|
*/
|
8146
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>;
|
8147
8272
|
/**
|
8148
8273
|
* The event is fired right after survey is rendered in DOM.
|
8149
8274
|
* <br/> `sender` - the survey object that fires the event.
|
@@ -8240,20 +8365,36 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
8240
8365
|
*/
|
8241
8366
|
onMatrixAllowRemoveRow: EventBase<SurveyModel>;
|
8242
8367
|
/**
|
8243
|
-
* The event is fired
|
8368
|
+
* The event is fired before creating cell question in the matrix. You can change the cell question type by setting different options.cellType.
|
8244
8369
|
* <br/> `sender` - the survey object that fires the event.
|
8245
8370
|
* <br/> `options.question` - the matrix question.
|
8246
|
-
* <br/> `options.
|
8247
|
-
* <br/> `options.cellQuestion` - the question/editor in the cell. You may customize it, change it's properties, like choices or visible.
|
8371
|
+
* <br/> `options.cellType` - the cell question type. You can change it.
|
8248
8372
|
* <br/> `options.rowValue` - the value of the current row. To access a particular column's value within the current row, use: `options.rowValue["columnValue"]`.
|
8249
8373
|
* <br/> `options.column` - the matrix column object.
|
8250
8374
|
* <br/> `options.columnName` - the matrix column name.
|
8251
8375
|
* <br/> `options.row` - the matrix row object.
|
8252
8376
|
* @see onMatrixBeforeRowAdded
|
8253
|
-
* @see
|
8377
|
+
* @see onMatrixCellCreated
|
8254
8378
|
* @see QuestionMatrixDynamicModel
|
8255
8379
|
* @see QuestionMatrixDropdownModel
|
8256
8380
|
*/
|
8381
|
+
onMatrixCellCreating: EventBase<SurveyModel>;
|
8382
|
+
/**
|
8383
|
+
* The event is fired for every cell created in Matrix Dynamic and Matrix Dropdown questions.
|
8384
|
+
* <br/> `sender` - the survey object that fires the event.
|
8385
|
+
* <br/> `options.question` - the matrix question.
|
8386
|
+
* <br/> `options.cell` - the matrix cell.
|
8387
|
+
* <br/> `options.cellQuestion` - the question/editor in the cell. You may customize it, change it's properties, like choices or visible.
|
8388
|
+
* <br/> `options.rowValue` - the value of the current row. To access a particular column's value within the current row, use: `options.rowValue["columnValue"]`.
|
8389
|
+
* <br/> `options.column` - the matrix column object.
|
8390
|
+
* <br/> `options.columnName` - the matrix column name.
|
8391
|
+
* <br/> `options.row` - the matrix row object.
|
8392
|
+
* @see onMatrixBeforeRowAdded
|
8393
|
+
* @see onMatrixCellCreating
|
8394
|
+
* @see onMatrixRowAdded
|
8395
|
+
* @see QuestionMatrixDynamicModel
|
8396
|
+
* @see QuestionMatrixDropdownModel
|
8397
|
+
*/
|
8257
8398
|
onMatrixCellCreated: EventBase<SurveyModel>;
|
8258
8399
|
/**
|
8259
8400
|
* The event is fired for every cell after is has been rendered in DOM.
|
@@ -8727,7 +8868,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
8727
8868
|
locStrsChanged(): void;
|
8728
8869
|
getMarkdownHtml(text: string, name: string): string;
|
8729
8870
|
getRenderer(name: string): string;
|
8871
|
+
getRendererContext(locStr: LocalizableString): LocalizableString;
|
8730
8872
|
getRendererForString(element: Base, name: string): string;
|
8873
|
+
getRendererContextForString(element: Base, locStr: LocalizableString): LocalizableString;
|
8731
8874
|
getExpressionDisplayValue(question: IQuestion, value: any, displayValue: string): string;
|
8732
8875
|
getProcessedText(text: string): string;
|
8733
8876
|
getLocString(str: string): any;
|
@@ -8776,6 +8919,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
8776
8919
|
get logoFit(): string;
|
8777
8920
|
set logoFit(val: string);
|
8778
8921
|
setIsMobile(newVal?: boolean): void;
|
8922
|
+
protected isLogoImageChoosen(): string;
|
8779
8923
|
get titleMaxWidth(): string;
|
8780
8924
|
/**
|
8781
8925
|
* Gets or sets the HTML content displayed on the complete page. Use this property to change the default complete page text.
|
@@ -9417,6 +9561,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
9417
9561
|
updateQuestionCssClasses(question: IQuestion, cssClasses: any): void;
|
9418
9562
|
updatePanelCssClasses(panel: IPanel, cssClasses: any): void;
|
9419
9563
|
updatePageCssClasses(page: IPage, cssClasses: any): void;
|
9564
|
+
updateChoiceItemCss(question: IQuestion, options: any): void;
|
9420
9565
|
afterRenderPage(htmlElement: HTMLElement): void;
|
9421
9566
|
afterRenderHeader(htmlElement: HTMLElement): void;
|
9422
9567
|
afterRenderQuestion(question: IQuestion, htmlElement: HTMLElement): void;
|
@@ -9428,6 +9573,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
9428
9573
|
matrixRowRemoved(question: IQuestion, rowIndex: number, row: any): void;
|
9429
9574
|
matrixRowRemoving(question: IQuestion, rowIndex: number, row: any): boolean;
|
9430
9575
|
matrixAllowRemoveRow(question: IQuestion, rowIndex: number, row: any): boolean;
|
9576
|
+
matrixCellCreating(question: IQuestion, options: any): void;
|
9431
9577
|
matrixCellCreated(question: IQuestion, options: any): void;
|
9432
9578
|
matrixAfterCellRender(question: IQuestion, options: any): void;
|
9433
9579
|
matrixCellValueChanged(question: IQuestion, options: any): void;
|
@@ -9736,6 +9882,18 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
9736
9882
|
*/
|
9737
9883
|
get showTimerPanelMode(): string;
|
9738
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;
|
9739
9897
|
get timerInfoText(): string;
|
9740
9898
|
/**
|
9741
9899
|
* Starts a timer that will calculate how much time end-user spends on the survey or on pages.
|
@@ -9790,6 +9948,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
9790
9948
|
getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase): any;
|
9791
9949
|
getMatrixCellTemplateData(cell: any): any;
|
9792
9950
|
searchText(text: string): Array<IFindElement>;
|
9951
|
+
skeletonComponentName: string;
|
9952
|
+
getSkeletonComponentName(element: ISurveyElement): string;
|
9793
9953
|
/**
|
9794
9954
|
* Use this method to dispose survey model properly.
|
9795
9955
|
*/
|
@@ -10110,6 +10270,7 @@ export declare var englishStrings: {
|
|
10110
10270
|
questionTitlePatternText: string;
|
10111
10271
|
modalCancelButtonText: string;
|
10112
10272
|
modalApplyButtonText: string;
|
10273
|
+
filteredTextPlaceholder: string;
|
10113
10274
|
};
|
10114
10275
|
|
10115
10276
|
export declare var surveyLocalization: {
|
@@ -10210,6 +10371,7 @@ export declare var surveyStrings: {
|
|
10210
10371
|
questionTitlePatternText: string;
|
10211
10372
|
modalCancelButtonText: string;
|
10212
10373
|
modalApplyButtonText: string;
|
10374
|
+
filteredTextPlaceholder: string;
|
10213
10375
|
};
|
10214
10376
|
|
10215
10377
|
export declare class QuestionCustomWidget {
|
@@ -10405,21 +10567,25 @@ export declare class StylesManager {
|
|
10405
10567
|
initializeStyles(sheet: CSSStyleSheet): void;
|
10406
10568
|
}
|
10407
10569
|
|
10408
|
-
export declare class ListModel extends
|
10409
|
-
onItemSelect: (item:
|
10570
|
+
export declare class ListModel extends ActionContainer {
|
10571
|
+
onItemSelect: (item: Action) => void;
|
10410
10572
|
allowSelection: boolean;
|
10573
|
+
needFilter: boolean;
|
10411
10574
|
isExpanded: boolean;
|
10412
10575
|
selectedItem: IAction;
|
10576
|
+
filteredText: string;
|
10413
10577
|
static INDENT: number;
|
10414
|
-
|
10415
|
-
|
10416
|
-
|
10417
|
-
selectItem: (itemValue:
|
10418
|
-
isItemDisabled: (itemValue:
|
10419
|
-
isItemSelected: (itemValue:
|
10420
|
-
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;
|
10421
10585
|
getItemIndent: (itemValue: any) => string;
|
10586
|
+
get filteredTextPlaceholder(): any;
|
10422
10587
|
onKeyDown(event: KeyboardEvent): void;
|
10588
|
+
refresh(): void;
|
10423
10589
|
}
|
10424
10590
|
|
10425
10591
|
export declare class PopupModel<T = any> extends Base {
|
@@ -10567,6 +10733,7 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
|
10567
10733
|
protected calculateIsBottom(clientY: number): boolean;
|
10568
10734
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
10569
10735
|
protected doDrop(): any;
|
10736
|
+
protected doClear(): void;
|
10570
10737
|
}
|
10571
10738
|
|
10572
10739
|
export declare class SurveyPanelBase extends SurveyElementBase<any, any> {
|
@@ -10656,6 +10823,7 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
|
|
10656
10823
|
protected clearGeneratedRows(): void;
|
10657
10824
|
clearIncorrectValues(): void;
|
10658
10825
|
protected clearInvisibleValuesInRows(): void;
|
10826
|
+
needResponsiveWidth(): boolean;
|
10659
10827
|
}
|
10660
10828
|
|
10661
10829
|
export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
|
@@ -10664,11 +10832,13 @@ export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynam
|
|
10664
10832
|
protected getShortcutText(draggedElement: any): string;
|
10665
10833
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
|
10666
10834
|
protected isDropTargetValid(dropTarget: any): boolean;
|
10835
|
+
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
10667
10836
|
protected calculateIsBottom(clientY: number): boolean;
|
10668
10837
|
protected doDrop: () => QuestionMatrixDynamicModel;
|
10669
10838
|
}
|
10670
10839
|
|
10671
10840
|
export declare class DragDropRankingChoices extends DragDropChoices {
|
10841
|
+
protected get draggedElementType(): string;
|
10672
10842
|
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
|
10673
10843
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
10674
10844
|
protected isDropTargetValid(dropTarget: ItemValue, isBottom: boolean, dropTargetNode?: HTMLElement): boolean;
|
@@ -10763,7 +10933,7 @@ export declare abstract class DragDropCore<T> extends Base {
|
|
10763
10933
|
dropTarget: any;
|
10764
10934
|
protected get dropTargetDataAttributeName(): string;
|
10765
10935
|
protected get survey(): SurveyModel;
|
10766
|
-
|
10936
|
+
prevDropTarget: any;
|
10767
10937
|
protected draggedElementShortcut: HTMLElement;
|
10768
10938
|
constructor(surveyValue?: ISurvey, creator?: any);
|
10769
10939
|
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
|