survey-core 1.10.6 → 1.11.2
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 +147 -19
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +147 -19
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/philippines.js +1 -1
- package/i18n/philippines.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/modern.css +77 -9
- package/modern.css.map +1 -1
- package/modern.fontless.css +77 -9
- package/modern.fontless.css.map +1 -1
- package/modern.fontless.min.css +2 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/plugins/bootstrap-integration.js +1 -1
- package/plugins/bootstrap-integration.min.js +1 -1
- package/plugins/bootstrap-material-integration.js +1 -1
- package/plugins/bootstrap-material-integration.min.js +1 -1
- package/survey.core.js +1083 -453
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +17 -1
- package/survey.css.map +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +2 -2
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/actions/action.d.ts +18 -0
- package/ts3.4/typings/actions/adaptive-container.d.ts +0 -1
- package/ts3.4/typings/actions/container.d.ts +4 -0
- package/ts3.4/typings/base-interfaces.d.ts +1 -1
- package/ts3.4/typings/base.d.ts +7 -0
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +2 -0
- package/ts3.4/typings/dragdrop/ranking-choices.d.ts +7 -1
- package/ts3.4/typings/dragdrop/ranking-select-to-rank.d.ts +0 -9
- package/ts3.4/typings/functionsfactory.d.ts +3 -3
- package/ts3.4/typings/list.d.ts +9 -1
- package/ts3.4/typings/panel.d.ts +1 -1
- package/ts3.4/typings/popup-dropdown-view-model.d.ts +6 -3
- package/ts3.4/typings/popup-view-model.d.ts +2 -1
- package/ts3.4/typings/popup.d.ts +2 -0
- package/ts3.4/typings/question.d.ts +6 -2
- package/ts3.4/typings/question_baseselect.d.ts +2 -0
- package/ts3.4/typings/question_boolean.d.ts +2 -0
- package/ts3.4/typings/question_file.d.ts +2 -1
- package/ts3.4/typings/question_matrix.d.ts +4 -0
- package/ts3.4/typings/question_matrixdropdown.d.ts +3 -0
- package/ts3.4/typings/question_matrixdropdownbase.d.ts +2 -0
- package/ts3.4/typings/question_matrixdropdownrendered.d.ts +0 -1
- package/ts3.4/typings/question_matrixdynamic.d.ts +4 -5
- package/ts3.4/typings/question_paneldynamic.d.ts +2 -4
- package/ts3.4/typings/question_ranking.d.ts +13 -5
- package/ts3.4/typings/question_text.d.ts +1 -0
- package/ts3.4/typings/question_textbase.d.ts +1 -1
- package/ts3.4/typings/questionfactory.d.ts +5 -3
- package/ts3.4/typings/survey-element.d.ts +3 -1
- package/ts3.4/typings/survey-events-api.d.ts +12 -0
- package/ts3.4/typings/survey.d.ts +7 -3
- package/ts3.4/typings/surveyToc.d.ts +4 -0
- package/ts3.4/typings/utils/animation.d.ts +33 -19
- package/ts3.4/typings/utils/popup.d.ts +16 -4
- package/ts3.4/typings/utils/utils.d.ts +9 -0
- package/typings/actions/action.d.ts +18 -0
- package/typings/actions/adaptive-container.d.ts +0 -1
- package/typings/actions/container.d.ts +4 -0
- package/typings/base-interfaces.d.ts +1 -1
- package/typings/base.d.ts +7 -0
- package/typings/defaultCss/defaultV2Css.d.ts +2 -0
- package/typings/dragdrop/ranking-choices.d.ts +7 -1
- package/typings/dragdrop/ranking-select-to-rank.d.ts +0 -9
- package/typings/functionsfactory.d.ts +3 -3
- package/typings/list.d.ts +9 -1
- package/typings/panel.d.ts +1 -1
- package/typings/popup-dropdown-view-model.d.ts +6 -3
- package/typings/popup-view-model.d.ts +2 -1
- package/typings/popup.d.ts +2 -0
- package/typings/question.d.ts +6 -2
- package/typings/question_baseselect.d.ts +2 -0
- package/typings/question_boolean.d.ts +2 -0
- package/typings/question_file.d.ts +2 -1
- package/typings/question_matrix.d.ts +4 -0
- package/typings/question_matrixdropdown.d.ts +3 -0
- package/typings/question_matrixdropdownbase.d.ts +2 -0
- package/typings/question_matrixdropdownrendered.d.ts +0 -1
- package/typings/question_matrixdynamic.d.ts +4 -5
- package/typings/question_paneldynamic.d.ts +2 -2
- package/typings/question_ranking.d.ts +18 -9
- package/typings/question_text.d.ts +1 -0
- package/typings/question_textbase.d.ts +1 -1
- package/typings/questionfactory.d.ts +5 -3
- package/typings/survey-element.d.ts +3 -1
- package/typings/survey-events-api.d.ts +12 -0
- package/typings/survey.d.ts +7 -3
- package/typings/surveyToc.d.ts +4 -0
- package/typings/utils/animation.d.ts +31 -10
- package/typings/utils/popup.d.ts +16 -4
- package/typings/utils/utils.d.ts +9 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventBase, Base } from "../base";
|
|
1
2
|
export interface AnimationOptions {
|
|
2
3
|
cssClass: string;
|
|
3
4
|
onBeforeRunAnimation?: (element: HTMLElement) => void;
|
|
@@ -5,10 +6,25 @@ export interface AnimationOptions {
|
|
|
5
6
|
}
|
|
6
7
|
export interface IAnimationConsumer<T extends Array<any> = [
|
|
7
8
|
]> {
|
|
8
|
-
getLeaveOptions(...args: T): AnimationOptions;
|
|
9
|
-
getEnterOptions(...args: T): AnimationOptions;
|
|
9
|
+
getLeaveOptions?(...args: T): AnimationOptions;
|
|
10
|
+
getEnterOptions?(...args: T): AnimationOptions;
|
|
10
11
|
getAnimatedElement(...args: T): HTMLElement;
|
|
11
12
|
isAnimationEnabled(): boolean;
|
|
13
|
+
getRerenderEvent(): EventBase<Base>;
|
|
14
|
+
}
|
|
15
|
+
interface IGroupAnimationInfo {
|
|
16
|
+
isReorderingRunning: boolean;
|
|
17
|
+
isDeletingRunning: boolean;
|
|
18
|
+
isAddingRunning: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface IAnimationGroupConsumer<T> extends IAnimationConsumer<[
|
|
21
|
+
T
|
|
22
|
+
]> {
|
|
23
|
+
getLeaveOptions?(item: T, info?: IGroupAnimationInfo): AnimationOptions;
|
|
24
|
+
getEnterOptions?(item: T, info?: IGroupAnimationInfo): AnimationOptions;
|
|
25
|
+
getReorderOptions?(item: T, movedForward: boolean, info?: IGroupAnimationInfo): AnimationOptions;
|
|
26
|
+
getKey?: (item: T) => any;
|
|
27
|
+
allowSyncRemovalAddition?: boolean;
|
|
12
28
|
}
|
|
13
29
|
export declare class AnimationUtils {
|
|
14
30
|
private getMsFromRule;
|
|
@@ -19,11 +35,12 @@ export declare class AnimationUtils {
|
|
|
19
35
|
private addCancelCallback;
|
|
20
36
|
private removeCancelCallback;
|
|
21
37
|
protected onAnimationEnd(element: HTMLElement, callback: (isCancel?: boolean) => void, options: AnimationOptions): void;
|
|
38
|
+
protected afterAnimationRun(element: HTMLElement, options: AnimationOptions | AnimationOptions): void;
|
|
22
39
|
protected beforeAnimationRun(element: HTMLElement, options: AnimationOptions | AnimationOptions): void;
|
|
23
40
|
private getCssClasses;
|
|
24
41
|
protected runAnimation(element: HTMLElement, options: AnimationOptions, callback: (isCancel?: boolean) => void): void;
|
|
25
42
|
protected clearHtmlElement(element: HTMLElement, options: AnimationOptions): void;
|
|
26
|
-
protected onNextRender(callback: (
|
|
43
|
+
protected onNextRender(callback: (isCancel?: boolean) => void, isCancel?: boolean): void;
|
|
27
44
|
cancel(): void;
|
|
28
45
|
}
|
|
29
46
|
export declare class AnimationPropertyUtils extends AnimationUtils {
|
|
@@ -31,41 +48,38 @@ export declare class AnimationPropertyUtils extends AnimationUtils {
|
|
|
31
48
|
onLeave(options: IAnimationConsumer, callback: () => void): void;
|
|
32
49
|
}
|
|
33
50
|
export declare class AnimationGroupUtils<T> extends AnimationUtils {
|
|
34
|
-
runGroupAnimation(options:
|
|
35
|
-
T
|
|
36
|
-
|
|
51
|
+
runGroupAnimation(options: IAnimationGroupConsumer<T>, addedItems: Array<T>, removedItems: Array<T>, reorderedItems: Array<{
|
|
52
|
+
item: T;
|
|
53
|
+
movedForward: boolean;
|
|
54
|
+
}>, callback?: () => void): void;
|
|
37
55
|
}
|
|
38
|
-
export declare abstract class AnimationProperty<T, S extends
|
|
39
|
-
|
|
40
|
-
protected animationOptions: IAnimationConsumer<S>;
|
|
56
|
+
export declare abstract class AnimationProperty<T, S extends IAnimationConsumer<any> = IAnimationConsumer> {
|
|
57
|
+
protected animationOptions: S;
|
|
41
58
|
protected update: (val: T, isTempUpdate?: boolean) => void;
|
|
42
59
|
protected getCurrentValue: () => T;
|
|
43
|
-
constructor(animationOptions:
|
|
60
|
+
constructor(animationOptions: S, update: (val: T, isTempUpdate?: boolean) => void, getCurrentValue: () => T);
|
|
44
61
|
protected animation: AnimationUtils;
|
|
62
|
+
protected onNextRender(callback: () => void, onCancel?: () => void): void;
|
|
45
63
|
protected abstract _sync(newValue: T): void;
|
|
46
64
|
private _debouncedSync;
|
|
47
65
|
sync(newValue: T): void;
|
|
66
|
+
private cancelCallback;
|
|
48
67
|
cancel(): void;
|
|
49
68
|
}
|
|
50
69
|
export declare class AnimationBoolean extends AnimationProperty<boolean> {
|
|
51
70
|
protected animation: AnimationPropertyUtils;
|
|
52
71
|
protected _sync(newValue: boolean): void;
|
|
53
72
|
}
|
|
54
|
-
export declare class AnimationGroup<T> extends AnimationProperty<Array<T>,
|
|
55
|
-
T
|
|
56
|
-
]> {
|
|
73
|
+
export declare class AnimationGroup<T> extends AnimationProperty<Array<T>, IAnimationGroupConsumer<T>> {
|
|
57
74
|
protected animation: AnimationGroupUtils<T>;
|
|
58
75
|
protected _sync(newValue: Array<T>): void;
|
|
59
76
|
}
|
|
60
|
-
export declare class AnimationTab<T> extends AnimationProperty<Array<T>,
|
|
61
|
-
T
|
|
62
|
-
]> {
|
|
77
|
+
export declare class AnimationTab<T> extends AnimationProperty<Array<T>, IAnimationGroupConsumer<T>> {
|
|
63
78
|
protected mergeValues?: (newValue: Array<T>, oldValue: Array<T>) => Array<T>;
|
|
64
79
|
protected animation: AnimationGroupUtils<T>;
|
|
65
|
-
constructor(animationOptions:
|
|
66
|
-
T
|
|
67
|
-
]>, update: (val: Array<T>, isTempUpdate?: boolean) => void, getCurrentValue: () => Array<T>, mergeValues?: (newValue: Array<T>, oldValue: Array<T>) => Array<T>);
|
|
80
|
+
constructor(animationOptions: IAnimationGroupConsumer<T>, update: (val: Array<T>, isTempUpdate?: boolean) => void, getCurrentValue: () => Array<T>, mergeValues?: (newValue: Array<T>, oldValue: Array<T>) => Array<T>);
|
|
68
81
|
protected _sync(newValue: [
|
|
69
82
|
T
|
|
70
83
|
]): void;
|
|
71
84
|
}
|
|
85
|
+
export {};
|
|
@@ -13,10 +13,21 @@ export interface ISize {
|
|
|
13
13
|
width: number;
|
|
14
14
|
height: number;
|
|
15
15
|
}
|
|
16
|
+
export declare class Rect implements ISize, INumberPosition {
|
|
17
|
+
private x;
|
|
18
|
+
private y;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
constructor(x: number, y: number, width: number, height: number);
|
|
22
|
+
readonly left: number;
|
|
23
|
+
readonly top: number;
|
|
24
|
+
readonly right: number;
|
|
25
|
+
readonly bottom: number;
|
|
26
|
+
}
|
|
16
27
|
export declare class PopupUtils {
|
|
17
28
|
static bottomIndent: number;
|
|
18
|
-
static calculatePosition(targetRect:
|
|
19
|
-
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition): any;
|
|
29
|
+
static calculatePosition(targetRect: Rect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, positionMode?: PositionMode): INumberPosition;
|
|
30
|
+
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition, canShrink?: boolean): any;
|
|
20
31
|
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition, positionMode?: PositionMode, margins?: {
|
|
21
32
|
left: number;
|
|
22
33
|
right: number;
|
|
@@ -24,7 +35,8 @@ export declare class PopupUtils {
|
|
|
24
35
|
width: number;
|
|
25
36
|
left: number;
|
|
26
37
|
};
|
|
27
|
-
static updateVerticalPosition(targetRect:
|
|
38
|
+
static updateVerticalPosition(targetRect: Rect, height: number, horizontalPosition: HorizontalPosition, verticalPosition: VerticalPosition, windowHeight: number): VerticalPosition;
|
|
39
|
+
static updateHorizontalPosition(targetRect: Rect, width: number, horizontalPosition: HorizontalPosition, windowWidth: number): HorizontalPosition;
|
|
28
40
|
static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
|
|
29
|
-
static calculatePointerTarget(targetRect:
|
|
41
|
+
static calculatePointerTarget(targetRect: Rect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, marginLeft?: number, marginRight?: number): INumberPosition;
|
|
30
42
|
}
|
|
@@ -44,4 +44,13 @@ export declare class Logger {
|
|
|
44
44
|
export declare function showConfirmDialog(message: string, callback: (res: boolean) => void, applyTitle?: string, locale?: string, rootElement?: HTMLElement): boolean;
|
|
45
45
|
export declare function configConfirmDialog(popupViewModel: PopupBaseViewModel): void;
|
|
46
46
|
declare function chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void): void;
|
|
47
|
+
export declare function compareArrays<T>(oldValue: Array<T>, newValue: Array<T>, getKey: (item: T) => any): {
|
|
48
|
+
addedItems: Array<T>;
|
|
49
|
+
deletedItems: Array<T>;
|
|
50
|
+
reorderedItems: Array<{
|
|
51
|
+
item: T;
|
|
52
|
+
movedForward: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
mergedItems: Array<T>;
|
|
55
|
+
};
|
|
47
56
|
export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles };
|
|
@@ -146,6 +146,11 @@ export interface IAction {
|
|
|
146
146
|
ariaExpanded?: boolean;
|
|
147
147
|
ariaRole?: string;
|
|
148
148
|
elementId?: string;
|
|
149
|
+
items?: Array<IAction>;
|
|
150
|
+
markerIconName?: string;
|
|
151
|
+
markerIconSize?: number;
|
|
152
|
+
showPopup?: () => void;
|
|
153
|
+
hidePopup?: () => void;
|
|
149
154
|
}
|
|
150
155
|
export interface IActionDropdownPopupOptions extends IListModel, IPopupOptionsBase {
|
|
151
156
|
}
|
|
@@ -154,6 +159,7 @@ export declare function createDropdownActionModelAdvanced(actionOptions: IAction
|
|
|
154
159
|
export declare function createPopupModelWithListModel(listOptions: IListModel, popupOptions: IPopupOptionsBase): PopupModel;
|
|
155
160
|
export declare function getActionDropdownButtonTarget(container: HTMLElement): HTMLElement;
|
|
156
161
|
export declare abstract class BaseAction extends Base implements IAction {
|
|
162
|
+
items?: IAction[];
|
|
157
163
|
private static renderedId;
|
|
158
164
|
private static getNextRendredId;
|
|
159
165
|
private cssClassesValue;
|
|
@@ -181,6 +187,8 @@ export declare abstract class BaseAction extends Base implements IAction {
|
|
|
181
187
|
removePriority: number;
|
|
182
188
|
iconName: string;
|
|
183
189
|
iconSize: number;
|
|
190
|
+
markerIconName: string;
|
|
191
|
+
markerIconSize: number;
|
|
184
192
|
css?: string;
|
|
185
193
|
minDimension: number;
|
|
186
194
|
maxDimension: number;
|
|
@@ -208,6 +216,15 @@ export declare abstract class BaseAction extends Base implements IAction {
|
|
|
208
216
|
getActionRootCss(): string;
|
|
209
217
|
getTooltip(): string;
|
|
210
218
|
getIsTrusted(args: any): boolean;
|
|
219
|
+
showPopup(): void;
|
|
220
|
+
hidePopup(): void;
|
|
221
|
+
isPressed: boolean;
|
|
222
|
+
isHovered: boolean;
|
|
223
|
+
private showPopupTimeout;
|
|
224
|
+
private hidePopupTimeout;
|
|
225
|
+
private clearPopupTimeouts;
|
|
226
|
+
showPopupDelayed(delay: number): void;
|
|
227
|
+
hidePopupDelayed(delay: number): void;
|
|
211
228
|
protected abstract getEnabled(): boolean;
|
|
212
229
|
protected abstract setEnabled(val: boolean): void;
|
|
213
230
|
protected abstract getVisible(): boolean;
|
|
@@ -226,6 +243,7 @@ export declare class Action extends BaseAction implements IAction, ILocalizableO
|
|
|
226
243
|
private raiseUpdate;
|
|
227
244
|
constructor(innerItem: IAction);
|
|
228
245
|
private createLocTitle;
|
|
246
|
+
setItems(items: Array<IAction>, onSelectionChanged?: (item: Action, ...params: any[]) => void): void;
|
|
229
247
|
location?: string;
|
|
230
248
|
id: string;
|
|
231
249
|
private _visible;
|
|
@@ -13,7 +13,6 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
|
13
13
|
private static ContainerID;
|
|
14
14
|
constructor();
|
|
15
15
|
get hiddenItemsListModel(): ListModel;
|
|
16
|
-
protected hiddenItemSelected(item: T): void;
|
|
17
16
|
protected onSet(): void;
|
|
18
17
|
protected onPush(item: T): void;
|
|
19
18
|
protected getRenderedActions(): Array<T>;
|
|
@@ -45,6 +45,10 @@ export declare class ActionContainer<T extends BaseAction = Action> extends Base
|
|
|
45
45
|
addAction(val: IAction, sortByVisibleIndex?: boolean): T;
|
|
46
46
|
private sortItems;
|
|
47
47
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
|
48
|
+
subItemsShowDelay: number;
|
|
49
|
+
subItemsHideDelay: number;
|
|
50
|
+
protected popupAfterShowCallback(itemValue: T): void;
|
|
51
|
+
mouseOverHandler(itemValue: T): void;
|
|
48
52
|
initResponsivityManager(container: HTMLDivElement, delayedUpdateFunction?: (callback: () => void) => void): void;
|
|
49
53
|
resetResponsivityManager(): void;
|
|
50
54
|
getActionById(id: string): T;
|
|
@@ -153,7 +153,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
153
153
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
|
|
154
154
|
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
|
155
155
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
|
156
|
-
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean): any;
|
|
156
|
+
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): any;
|
|
157
157
|
runExpression(expression: string): any;
|
|
158
158
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
|
159
159
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
package/typings/base.d.ts
CHANGED
|
@@ -302,6 +302,13 @@ export declare class Base {
|
|
|
302
302
|
private animationAllowedLock;
|
|
303
303
|
blockAnimations(): void;
|
|
304
304
|
releaseAnimations(): void;
|
|
305
|
+
supportOnElementRenderedEvent: boolean;
|
|
306
|
+
onElementRenderedEventEnabled: boolean;
|
|
307
|
+
enableOnElementRenderedEvent(): void;
|
|
308
|
+
disableOnElementRenderedEvent(): void;
|
|
309
|
+
protected _onElementRerendered: EventBase<Base>;
|
|
310
|
+
get onElementRerendered(): EventBase<Base>;
|
|
311
|
+
afterRerender(): void;
|
|
305
312
|
}
|
|
306
313
|
export declare class ArrayChanges<T = any> {
|
|
307
314
|
index: number;
|
|
@@ -166,6 +166,7 @@ export declare var defaultV2Css: {
|
|
|
166
166
|
rowMultiple: string;
|
|
167
167
|
rowCompact: string;
|
|
168
168
|
rowFadeIn: string;
|
|
169
|
+
rowDelayedFadeIn: string;
|
|
169
170
|
rowFadeOut: string;
|
|
170
171
|
pageRow: string;
|
|
171
172
|
question: {
|
|
@@ -225,6 +226,7 @@ export declare var defaultV2Css: {
|
|
|
225
226
|
disabled: string;
|
|
226
227
|
readOnly: string;
|
|
227
228
|
preview: string;
|
|
229
|
+
noPointerEventsMode: string;
|
|
228
230
|
errorsContainer: string;
|
|
229
231
|
errorsContainerTop: string;
|
|
230
232
|
errorsContainerBottom: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ItemValue } from "../itemvalue";
|
|
2
2
|
import { DragDropChoices } from "./choices";
|
|
3
|
+
import { QuestionRankingModel } from "../question_ranking";
|
|
3
4
|
export declare class DragDropRankingChoices extends DragDropChoices {
|
|
4
5
|
protected get draggedElementType(): string;
|
|
5
6
|
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
|
|
@@ -9,9 +10,14 @@ export declare class DragDropRankingChoices extends DragDropChoices {
|
|
|
9
10
|
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
|
10
11
|
private getIsDragOverRootNode;
|
|
11
12
|
protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
|
|
12
|
-
protected calculateIsBottom(clientY: number): boolean;
|
|
13
|
+
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
|
13
14
|
protected doDragOver: () => any;
|
|
15
|
+
getIndixies(model: any, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>): {
|
|
16
|
+
fromIndex: number;
|
|
17
|
+
toIndex: number;
|
|
18
|
+
};
|
|
14
19
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
|
20
|
+
reorderRankedItem: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number) => void;
|
|
15
21
|
protected updateDraggedElementShortcut(newIndex: number): void;
|
|
16
22
|
protected ghostPositionChanged(): void;
|
|
17
23
|
protected doBanDropHere: () => any;
|
|
@@ -8,19 +8,10 @@ export declare class DragDropRankingSelectToRank extends DragDropRankingChoices
|
|
|
8
8
|
protected isDropTargetValid(dropTarget: ItemValue | string, dropTargetNode?: HTMLElement): boolean;
|
|
9
9
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
|
10
10
|
doRankBetween(dropTargetNode: HTMLElement, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>, rankFunction: Function): void;
|
|
11
|
-
getIndixies(model: any, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>): {
|
|
12
|
-
fromIndex: number;
|
|
13
|
-
toIndex: number;
|
|
14
|
-
};
|
|
15
|
-
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
|
16
|
-
private doUIEffects;
|
|
17
11
|
private get isDraggedElementRanked();
|
|
18
12
|
private get isDropTargetRanked();
|
|
19
13
|
private get isDraggedElementUnranked();
|
|
20
|
-
private get isDropTargetUnranked();
|
|
21
14
|
private updateChoices;
|
|
22
15
|
selectToRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number) => void;
|
|
23
16
|
unselectFromRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex?: number) => void;
|
|
24
|
-
reorderRankedItem: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number, dropTargetNode?: HTMLElement) => void;
|
|
25
|
-
clear(): void;
|
|
26
17
|
}
|
|
@@ -3,12 +3,12 @@ export declare class FunctionFactory {
|
|
|
3
3
|
static Instance: FunctionFactory;
|
|
4
4
|
private functionHash;
|
|
5
5
|
private isAsyncHash;
|
|
6
|
-
register(name: string, func: (params: any[]) => any, isAsync?: boolean): void;
|
|
6
|
+
register(name: string, func: (params: any[], originalParams?: any[]) => any, isAsync?: boolean): void;
|
|
7
7
|
unregister(name: string): void;
|
|
8
8
|
hasFunction(name: string): boolean;
|
|
9
9
|
isAsyncFunction(name: string): boolean;
|
|
10
10
|
clear(): void;
|
|
11
11
|
getAll(): Array<string>;
|
|
12
|
-
run(name: string, params: any[], properties
|
|
12
|
+
run(name: string, params: any[], properties: HashTable<any>, originalParams: any[]): any;
|
|
13
13
|
}
|
|
14
|
-
export declare var registerFunction: (name: string, func: (params: any[]) => any, isAsync?: boolean) => void;
|
|
14
|
+
export declare var registerFunction: (name: string, func: (params: any[], originalParams?: any[]) => any, isAsync?: boolean) => void;
|
package/typings/list.d.ts
CHANGED
|
@@ -10,8 +10,10 @@ export declare let defaultListCss: {
|
|
|
10
10
|
itemWithIcon: string;
|
|
11
11
|
itemDisabled: string;
|
|
12
12
|
itemFocused: string;
|
|
13
|
+
itemHovered: string;
|
|
13
14
|
itemTextWrap: string;
|
|
14
15
|
itemIcon: string;
|
|
16
|
+
itemMarkerIcon: string;
|
|
15
17
|
itemSeparator: string;
|
|
16
18
|
itemBody: string;
|
|
17
19
|
itemsContainer: string;
|
|
@@ -24,7 +26,7 @@ export declare let defaultListCss: {
|
|
|
24
26
|
};
|
|
25
27
|
export interface IListModel {
|
|
26
28
|
items: Array<IAction>;
|
|
27
|
-
onSelectionChanged
|
|
29
|
+
onSelectionChanged?: (item: IAction, ...params: any[]) => void;
|
|
28
30
|
allowSelection?: boolean;
|
|
29
31
|
searchEnabled?: boolean;
|
|
30
32
|
selectedItem?: IAction;
|
|
@@ -59,6 +61,7 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
59
61
|
areSameItemsCallback: (item1: IAction, item2: IAction) => boolean;
|
|
60
62
|
private hasText;
|
|
61
63
|
isItemVisible(item: T): boolean;
|
|
64
|
+
protected getRenderedActions(): Array<T>;
|
|
62
65
|
get visibleItems(): Array<T>;
|
|
63
66
|
private get shouldProcessFilter();
|
|
64
67
|
private onFilterStringChanged;
|
|
@@ -77,8 +80,10 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
77
80
|
itemWithIcon: string;
|
|
78
81
|
itemDisabled: string;
|
|
79
82
|
itemFocused: string;
|
|
83
|
+
itemHovered: string;
|
|
80
84
|
itemTextWrap: string;
|
|
81
85
|
itemIcon: string;
|
|
86
|
+
itemMarkerIcon: string;
|
|
82
87
|
itemSeparator: string;
|
|
83
88
|
itemBody: string;
|
|
84
89
|
itemsContainer: string;
|
|
@@ -90,6 +95,9 @@ export declare class ListModel<T extends BaseAction = Action> extends ActionCont
|
|
|
90
95
|
emptyText: string;
|
|
91
96
|
};
|
|
92
97
|
onItemClick: (itemValue: T) => void;
|
|
98
|
+
protected popupAfterShowCallback(itemValue: T): void;
|
|
99
|
+
onItemHover: (itemValue: T) => void;
|
|
100
|
+
onItemLeave(itemValue: T): void;
|
|
93
101
|
isItemDisabled: (itemValue: T) => boolean;
|
|
94
102
|
isItemSelected: (itemValue: T) => boolean;
|
|
95
103
|
isItemFocused: (itemValue: T) => boolean;
|
package/typings/panel.d.ts
CHANGED
|
@@ -524,7 +524,6 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
524
524
|
protected getPanelStartIndex(index: number): number;
|
|
525
525
|
protected isContinueNumbering(): boolean;
|
|
526
526
|
private notifySurveyOnVisibilityChanged;
|
|
527
|
-
protected hasErrorsCore(rec: any): void;
|
|
528
527
|
protected getRenderedTitle(str: string): string;
|
|
529
528
|
/**
|
|
530
529
|
* Increases or decreases an indent of panel content from the left edge. Accepts positive integer values and 0.
|
|
@@ -559,6 +558,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
559
558
|
protected getHasFrameV2(): boolean;
|
|
560
559
|
protected getIsNested(): boolean;
|
|
561
560
|
get showPanelAsPage(): boolean;
|
|
561
|
+
protected onElementExpanded(elementIsRendered: boolean): void;
|
|
562
562
|
protected getCssRoot(cssClasses: {
|
|
563
563
|
[index: string]: string;
|
|
564
564
|
}): string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { IPosition } from "./utils/popup";
|
|
1
|
+
import { IPosition, Rect } from "./utils/popup";
|
|
2
2
|
import { CssClassBuilder } from "./utils/cssClassBuilder";
|
|
3
3
|
import { PopupModel } from "./popup";
|
|
4
4
|
import { PopupBaseViewModel } from "./popup-view-model";
|
|
5
5
|
export declare class PopupDropdownViewModel extends PopupBaseViewModel {
|
|
6
6
|
targetElement?: HTMLElement;
|
|
7
|
+
areaElement?: HTMLElement;
|
|
7
8
|
private scrollEventCallBack;
|
|
8
9
|
private static readonly tabletSizeBreakpoint;
|
|
9
10
|
private calculateIsTablet;
|
|
@@ -13,6 +14,8 @@ export declare class PopupDropdownViewModel extends PopupBaseViewModel {
|
|
|
13
14
|
private isTablet;
|
|
14
15
|
private touchStartEventCallback;
|
|
15
16
|
private touchMoveEventCallback;
|
|
17
|
+
protected getAvailableAreaRect(): Rect;
|
|
18
|
+
protected getTargetElementRect(): Rect;
|
|
16
19
|
private _updatePosition;
|
|
17
20
|
protected getActualHorizontalPosition(): "left" | "center" | "right";
|
|
18
21
|
protected getStyleClass(): CssClassBuilder;
|
|
@@ -21,8 +24,8 @@ export declare class PopupDropdownViewModel extends PopupBaseViewModel {
|
|
|
21
24
|
popupDirection: string;
|
|
22
25
|
pointerTarget: IPosition;
|
|
23
26
|
private recalculatePositionHandler;
|
|
24
|
-
constructor(model: PopupModel, targetElement?: HTMLElement);
|
|
25
|
-
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null): void;
|
|
27
|
+
constructor(model: PopupModel, targetElement?: HTMLElement, areaElement?: HTMLElement);
|
|
28
|
+
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null, areaElement?: HTMLElement | null): void;
|
|
26
29
|
resetComponentElement(): void;
|
|
27
30
|
updateOnShowing(): void;
|
|
28
31
|
private get shouldCreateResizeCallback();
|
|
@@ -26,6 +26,7 @@ export declare class PopupBaseViewModel extends Base implements IAnimationConsum
|
|
|
26
26
|
getEnterOptions(): AnimationOptions;
|
|
27
27
|
getAnimatedElement(): HTMLElement;
|
|
28
28
|
isAnimationEnabled(): boolean;
|
|
29
|
+
getRerenderEvent(): EventBase<Base>;
|
|
29
30
|
private getAnimationContainer;
|
|
30
31
|
get isVisible(): boolean;
|
|
31
32
|
set isVisible(val: boolean);
|
|
@@ -74,7 +75,7 @@ export declare class PopupBaseViewModel extends Base implements IAnimationConsum
|
|
|
74
75
|
cancel(): void;
|
|
75
76
|
dispose(): void;
|
|
76
77
|
initializePopupContainer(): void;
|
|
77
|
-
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null): void;
|
|
78
|
+
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null, areaElement?: HTMLElement | null): void;
|
|
78
79
|
resetComponentElement(): void;
|
|
79
80
|
protected preventScrollOuside(event: any, deltaY: number): void;
|
|
80
81
|
}
|
package/typings/popup.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface IPopupOptionsBase {
|
|
|
12
12
|
horizontalPosition?: HorizontalPosition;
|
|
13
13
|
showPointer?: boolean;
|
|
14
14
|
isModal?: boolean;
|
|
15
|
+
canShrink?: boolean;
|
|
15
16
|
displayMode?: "popup" | "overlay";
|
|
16
17
|
}
|
|
17
18
|
export interface IDialogOptions extends IPopupOptionsBase {
|
|
@@ -35,6 +36,7 @@ export declare class PopupModel<T = any> extends Base implements IPopupOptionsBa
|
|
|
35
36
|
horizontalPosition: HorizontalPosition;
|
|
36
37
|
showPointer: boolean;
|
|
37
38
|
isModal: boolean;
|
|
39
|
+
canShrink: boolean;
|
|
38
40
|
isFocusedContent: boolean;
|
|
39
41
|
isFocusedContainer: boolean;
|
|
40
42
|
cssClass: string;
|
package/typings/question.d.ts
CHANGED
|
@@ -427,7 +427,8 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
427
427
|
*/
|
|
428
428
|
focus(onError?: boolean, scrollIfVisible?: boolean): void;
|
|
429
429
|
private focuscore;
|
|
430
|
-
|
|
430
|
+
expandAllParents(): void;
|
|
431
|
+
private expandAllParentsCore;
|
|
431
432
|
focusIn(): void;
|
|
432
433
|
protected fireCallback(callback: () => void): void;
|
|
433
434
|
getOthersMaxLength(): any;
|
|
@@ -492,6 +493,8 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
492
493
|
get isInputReadOnly(): boolean;
|
|
493
494
|
get renderedInputReadOnly(): string;
|
|
494
495
|
get renderedInputDisabled(): string;
|
|
496
|
+
get isReadOnlyAttr(): boolean;
|
|
497
|
+
get isDisabledAttr(): boolean;
|
|
495
498
|
protected onReadOnlyChanged(): void;
|
|
496
499
|
/**
|
|
497
500
|
* A Boolean expression. If it evaluates to `false`, this question becomes read-only.
|
|
@@ -712,6 +715,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
712
715
|
*/
|
|
713
716
|
isAnswerCorrect(): boolean;
|
|
714
717
|
updateValueWithDefaults(): void;
|
|
718
|
+
get isValueDefault(): boolean;
|
|
715
719
|
protected get isClearValueOnHidden(): boolean;
|
|
716
720
|
getQuestionFromArray(name: string, index: number): IQuestion;
|
|
717
721
|
getDefaultValue(): any;
|
|
@@ -802,7 +806,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
802
806
|
protected isNewValueCorrect(val: any): boolean;
|
|
803
807
|
protected isNewValueEqualsToValue(newValue: any): boolean;
|
|
804
808
|
protected isTextValue(): boolean;
|
|
805
|
-
|
|
809
|
+
protected getIsInputTextUpdate(): boolean;
|
|
806
810
|
get requireStrictCompare(): boolean;
|
|
807
811
|
private getDataLocNotification;
|
|
808
812
|
get isInputTextUpdate(): boolean;
|
|
@@ -45,6 +45,8 @@ export declare class QuestionSelectBase extends Question {
|
|
|
45
45
|
isLayoutTypeSupported(layoutType: string): boolean;
|
|
46
46
|
localeChanged(): void;
|
|
47
47
|
locStrsChanged(): void;
|
|
48
|
+
private prevOtherErrorValue;
|
|
49
|
+
private updatePrevOtherErrorValue;
|
|
48
50
|
get otherValue(): string;
|
|
49
51
|
set otherValue(val: string);
|
|
50
52
|
protected get otherValueCore(): string;
|
|
@@ -96,6 +96,8 @@ export declare class QuestionBooleanModel extends Question {
|
|
|
96
96
|
getItemCss(): string;
|
|
97
97
|
getCheckboxItemCss(): string;
|
|
98
98
|
getLabelCss(checked: boolean): string;
|
|
99
|
+
updateValueFromSurvey(newValue: any, clearData?: boolean): void;
|
|
100
|
+
protected onValueChanged(): void;
|
|
99
101
|
get svgIcon(): string;
|
|
100
102
|
get itemSvgIcon(): string;
|
|
101
103
|
get allowClick(): boolean;
|
|
@@ -263,8 +263,9 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
|
|
|
263
263
|
doChange: (event: any) => void;
|
|
264
264
|
doClean: () => void;
|
|
265
265
|
private clearFilesCore;
|
|
266
|
-
doRemoveFile(data: any): void;
|
|
266
|
+
doRemoveFile(data: any, event: any): void;
|
|
267
267
|
private removeFileCore;
|
|
268
|
+
doDownloadFileFromContainer: (event: MouseEvent) => void;
|
|
268
269
|
doDownloadFile: (event: any, data: any) => void;
|
|
269
270
|
dispose(): void;
|
|
270
271
|
}
|
|
@@ -12,6 +12,8 @@ export interface IMatrixData {
|
|
|
12
12
|
cssClasses: any;
|
|
13
13
|
isDisabledStyle: boolean;
|
|
14
14
|
isInputReadOnly: boolean;
|
|
15
|
+
isDisabledAttr: boolean;
|
|
16
|
+
isReadOnlyAttr: boolean;
|
|
15
17
|
hasErrorInRow(row: MatrixRowModel): boolean;
|
|
16
18
|
}
|
|
17
19
|
export declare class MatrixRowModel extends Base {
|
|
@@ -27,6 +29,8 @@ export declare class MatrixRowModel extends Base {
|
|
|
27
29
|
set value(val: any);
|
|
28
30
|
setValueDirectly(val: any): void;
|
|
29
31
|
get isReadOnly(): boolean;
|
|
32
|
+
get isReadOnlyAttr(): boolean;
|
|
33
|
+
get isDisabledAttr(): boolean;
|
|
30
34
|
get rowTextClasses(): string;
|
|
31
35
|
get hasError(): boolean;
|
|
32
36
|
set hasError(val: boolean);
|
|
@@ -41,6 +41,9 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
|
41
41
|
protected isNewValueCorrect(val: any): boolean;
|
|
42
42
|
clearIncorrectValues(): void;
|
|
43
43
|
protected clearValueIfInvisibleCore(reason: string): void;
|
|
44
|
+
private defaultValuesInRows;
|
|
45
|
+
protected clearGeneratedRows(): void;
|
|
46
|
+
private getRowValueForCreation;
|
|
44
47
|
protected generateRows(): Array<MatrixDropdownRowModel>;
|
|
45
48
|
protected createMatrixRow(item: ItemValue, value: any): MatrixDropdownRowModel;
|
|
46
49
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
|
@@ -98,7 +98,9 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
|
98
98
|
getAllValues(): any;
|
|
99
99
|
getFilteredValues(): any;
|
|
100
100
|
getFilteredProperties(): any;
|
|
101
|
+
private applyRowVariablesToValues;
|
|
101
102
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
103
|
+
getNamesWithDefaultValues(): Array<string>;
|
|
102
104
|
clearValue(keepComment?: boolean): void;
|
|
103
105
|
onAnyValueChanged(name: string, questionName: string): void;
|
|
104
106
|
getDataValueCore(valuesHash: any, key: string): any;
|
|
@@ -91,7 +91,6 @@ export declare class QuestionMatrixDropdownRenderedTable extends Base {
|
|
|
91
91
|
private hasRemoveRowsValue;
|
|
92
92
|
private rowsActions;
|
|
93
93
|
private cssClasses;
|
|
94
|
-
renderedRowsChangedCallback: () => void;
|
|
95
94
|
rows: Array<QuestionMatrixDropdownRenderedRow>;
|
|
96
95
|
protected getIsAnimationAllowed(): boolean;
|
|
97
96
|
private getRenderedRowsAnimationOptions;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { QuestionMatrixDropdownModelBase, MatrixDropdownRowModelBase, IMatrixDropdownData } from "./question_matrixdropdownbase";
|
|
2
|
-
import { LocalizableString } from "./localizablestring";
|
|
3
2
|
import { SurveyError } from "./survey-error";
|
|
4
3
|
import { DragDropMatrixRows } from "./dragdrop/matrix-rows";
|
|
5
4
|
import { IShortcutText, ISurveyImpl, IProgressInfo } from "./base-interfaces";
|
|
@@ -200,14 +199,14 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
200
199
|
*/
|
|
201
200
|
get confirmDeleteText(): string;
|
|
202
201
|
set confirmDeleteText(val: string);
|
|
203
|
-
get locConfirmDeleteText(): LocalizableString;
|
|
202
|
+
get locConfirmDeleteText(): import("./localizablestring").LocalizableString;
|
|
204
203
|
/**
|
|
205
204
|
* A caption for the Add Row button.
|
|
206
205
|
* @see addRowLocation
|
|
207
206
|
*/
|
|
208
207
|
get addRowText(): string;
|
|
209
208
|
set addRowText(val: string);
|
|
210
|
-
get locAddRowText(): LocalizableString;
|
|
209
|
+
get locAddRowText(): import("./localizablestring").LocalizableString;
|
|
211
210
|
private get defaultAddRowText();
|
|
212
211
|
/**
|
|
213
212
|
* Specifies the location of the Add Row button.
|
|
@@ -238,14 +237,14 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
238
237
|
*/
|
|
239
238
|
get removeRowText(): string;
|
|
240
239
|
set removeRowText(val: string);
|
|
241
|
-
get locRemoveRowText(): LocalizableString;
|
|
240
|
+
get locRemoveRowText(): import("./localizablestring").LocalizableString;
|
|
242
241
|
/**
|
|
243
242
|
* A message displayed when the matrix does not contain any rows. Applies only if `hideColumnsIfEmpty` is enabled.
|
|
244
243
|
* @see hideColumnsIfEmpty
|
|
245
244
|
*/
|
|
246
245
|
get emptyRowsText(): string;
|
|
247
246
|
set emptyRowsText(val: string);
|
|
248
|
-
get locEmptyRowsText(): LocalizableString;
|
|
247
|
+
get locEmptyRowsText(): import("./localizablestring").LocalizableString;
|
|
249
248
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
|
250
249
|
protected getConditionObjectRowName(index: number): string;
|
|
251
250
|
protected getConditionObjectsRowIndeces(): Array<number>;
|
|
@@ -8,7 +8,7 @@ import { ActionContainer } from "./actions/container";
|
|
|
8
8
|
import { IAction } from "./actions/action";
|
|
9
9
|
import { AdaptiveActionContainer } from "./actions/adaptive-container";
|
|
10
10
|
import { ITheme } from "./themes";
|
|
11
|
-
import { AnimationProperty } from "./utils/animation";
|
|
11
|
+
import { AnimationProperty, IAnimationGroupConsumer } from "./utils/animation";
|
|
12
12
|
export interface IQuestionPanelDynamicData {
|
|
13
13
|
getItemIndex(item: ISurveyData): number;
|
|
14
14
|
getVisibleItemIndex(item: ISurveyData): number;
|
|
@@ -202,7 +202,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
202
202
|
private disablePanelsAnimations;
|
|
203
203
|
private enablePanelsAnimations;
|
|
204
204
|
private updatePanelsAnimation;
|
|
205
|
-
get panelsAnimation(): AnimationProperty<Array<PanelModel>,
|
|
205
|
+
get panelsAnimation(): AnimationProperty<Array<PanelModel>, IAnimationGroupConsumer<PanelModel>>;
|
|
206
206
|
onHidingContent(): void;
|
|
207
207
|
/**
|
|
208
208
|
* Specifies whether to display a confirmation dialog when a respondent wants to delete a panel.
|