survey-core 1.9.135 → 1.9.137
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 +385 -19
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +385 -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 +2 -2
- package/i18n/german.js.map +1 -1
- package/i18n/german.min.js +2 -2
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +2 -2
- package/i18n/hebrew.js.map +1 -1
- package/i18n/hebrew.min.js +2 -2
- 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 +3 -3
- package/i18n/index.js.map +1 -1
- package/i18n/index.min.js +2 -2
- 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/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 +187 -1
- package/modern.css.map +1 -1
- package/modern.fontless.css +187 -1
- 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 +1140 -196
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.css.map +1 -1
- package/survey.i18n.js +3 -3
- package/survey.i18n.js.map +1 -1
- package/survey.i18n.min.js +2 -2
- package/survey.min.css +1 -1
- 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/base.d.ts +4 -4
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +17 -0
- package/ts3.4/typings/dragdrop/dom-adapter.d.ts +2 -0
- package/ts3.4/typings/dragdrop/ranking-choices.d.ts +1 -1
- package/ts3.4/typings/dragdrop/ranking-select-to-rank.d.ts +6 -3
- package/ts3.4/typings/entries/core-wo-model.d.ts +1 -0
- package/ts3.4/typings/panel.d.ts +17 -4
- package/ts3.4/typings/popup-view-model.d.ts +14 -5
- package/ts3.4/typings/question_checkbox.d.ts +1 -0
- package/ts3.4/typings/question_custom.d.ts +9 -0
- package/ts3.4/typings/question_matrixdropdowncolumn.d.ts +2 -3
- package/ts3.4/typings/question_multipletext.d.ts +67 -20
- package/ts3.4/typings/question_paneldynamic.d.ts +1 -1
- package/ts3.4/typings/question_ranking.d.ts +12 -3
- package/ts3.4/typings/question_text.d.ts +4 -0
- package/ts3.4/typings/survey-element.d.ts +12 -1
- package/ts3.4/typings/utils/animation.d.ts +54 -0
- package/ts3.4/typings/utils/taskmanager.d.ts +28 -0
- package/typings/base.d.ts +4 -4
- package/typings/defaultCss/defaultV2Css.d.ts +17 -0
- package/typings/dragdrop/dom-adapter.d.ts +2 -0
- package/typings/dragdrop/ranking-choices.d.ts +1 -1
- package/typings/dragdrop/ranking-select-to-rank.d.ts +6 -3
- package/typings/entries/core-wo-model.d.ts +1 -0
- package/typings/panel.d.ts +18 -3
- package/typings/popup-view-model.d.ts +15 -5
- package/typings/question_checkbox.d.ts +1 -0
- package/typings/question_custom.d.ts +9 -0
- package/typings/question_matrixdropdowncolumn.d.ts +3 -4
- package/typings/question_multipletext.d.ts +70 -20
- package/typings/question_paneldynamic.d.ts +1 -1
- package/typings/question_ranking.d.ts +12 -1
- package/typings/question_text.d.ts +4 -0
- package/typings/survey-element.d.ts +15 -1
- package/typings/utils/animation.d.ts +50 -0
- package/typings/utils/taskmanager.d.ts +28 -0
|
@@ -324,7 +324,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
324
324
|
protected setPage(parent: IPanel, newPage: IPage): void;
|
|
325
325
|
protected getSearchableLocKeys(keys: Array<string>): void;
|
|
326
326
|
get isDefaultV2Theme(): boolean;
|
|
327
|
-
get hasParent():
|
|
327
|
+
get hasParent(): boolean;
|
|
328
328
|
isSingleInRow: boolean;
|
|
329
329
|
private shouldAddRunnerStyles;
|
|
330
330
|
protected get isCompact(): boolean;
|
|
@@ -399,5 +399,19 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
399
399
|
protected getAdditionalTitleToolbar(): ActionContainer | null;
|
|
400
400
|
protected getCssTitle(cssClasses: any): string;
|
|
401
401
|
localeChanged(): void;
|
|
402
|
+
private wrapperElement?;
|
|
403
|
+
setWrapperElement(element?: HTMLElement): void;
|
|
404
|
+
getWrapperElement(): HTMLElement;
|
|
405
|
+
private _renderedIsExpanded;
|
|
406
|
+
private _isAnimatingCollapseExpand;
|
|
407
|
+
private set isAnimatingCollapseExpand(value);
|
|
408
|
+
private get isAnimatingCollapseExpand();
|
|
409
|
+
private getExpandCollapseAnimationOptions;
|
|
410
|
+
private animationCollapsed;
|
|
411
|
+
set renderedIsExpanded(val: boolean);
|
|
412
|
+
get renderedIsExpanded(): boolean;
|
|
413
|
+
private animationAllowedValue;
|
|
414
|
+
get animationAllowed(): boolean;
|
|
415
|
+
set animationAllowed(val: boolean);
|
|
402
416
|
dispose(): void;
|
|
403
417
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface AnimationOptions {
|
|
2
|
+
cssClass: string;
|
|
3
|
+
onBeforeRunAnimation?: (element: HTMLElement) => void;
|
|
4
|
+
onAfterRunAnimation?: (element: HTMLElement) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface IAnimationConsumer<T extends Array<any> = []> {
|
|
7
|
+
getLeaveOptions(...args: T): AnimationOptions;
|
|
8
|
+
getEnterOptions(...args: T): AnimationOptions;
|
|
9
|
+
getAnimatedElement(...args: T): HTMLElement;
|
|
10
|
+
isAnimationEnabled(): boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class AnimationUtils {
|
|
13
|
+
private getMsFromRule;
|
|
14
|
+
private getAnimationsCount;
|
|
15
|
+
private getAnimationDuration;
|
|
16
|
+
private cancelQueue;
|
|
17
|
+
protected onAnimationEnd(element: HTMLElement, callback: (isCancel?: boolean) => void, options: AnimationOptions): void;
|
|
18
|
+
protected beforeAnimationRun(element: HTMLElement, options: AnimationOptions | AnimationOptions): void;
|
|
19
|
+
protected runLeaveAnimation(element: HTMLElement, options: AnimationOptions, callback: () => void): void;
|
|
20
|
+
protected runEnterAnimation(element: HTMLElement, options: AnimationOptions): void;
|
|
21
|
+
cancel(): void;
|
|
22
|
+
}
|
|
23
|
+
export declare class AnimationPropertyUtils extends AnimationUtils {
|
|
24
|
+
onEnter(getElement: () => HTMLElement, options: AnimationOptions): void;
|
|
25
|
+
onLeave(getElement: () => HTMLElement, callback: () => void, options: AnimationOptions): void;
|
|
26
|
+
}
|
|
27
|
+
export declare class AnimationGroupUtils<T> extends AnimationUtils {
|
|
28
|
+
onEnter(getElement: (el: T) => HTMLElement, getOptions: (el: T) => AnimationOptions, elements: Array<T>): void;
|
|
29
|
+
onLeave(getElement: (el: T) => HTMLElement, callback: () => void, getOptions: (el: T) => AnimationOptions, elements: Array<T>): void;
|
|
30
|
+
}
|
|
31
|
+
declare abstract class AnimationProperty<T, S extends Array<any> = []> {
|
|
32
|
+
protected animationOptions: IAnimationConsumer<S>;
|
|
33
|
+
protected update: (val: T) => void;
|
|
34
|
+
protected getCurrentValue: () => T;
|
|
35
|
+
constructor(animationOptions: IAnimationConsumer<S>, update: (val: T) => void, getCurrentValue: () => T);
|
|
36
|
+
protected animation: AnimationUtils;
|
|
37
|
+
protected abstract _sync(newValue: T): void;
|
|
38
|
+
private _debouncedSync;
|
|
39
|
+
sync(newValue: T): void;
|
|
40
|
+
cancel(): void;
|
|
41
|
+
}
|
|
42
|
+
export declare class AnimationBoolean extends AnimationProperty<boolean> {
|
|
43
|
+
protected animation: AnimationPropertyUtils;
|
|
44
|
+
protected _sync(newValue: boolean): void;
|
|
45
|
+
}
|
|
46
|
+
export declare class AnimationGroup<T> extends AnimationProperty<Array<T>, [T]> {
|
|
47
|
+
protected animation: AnimationGroupUtils<T>;
|
|
48
|
+
protected _sync(newValue: Array<T>): void;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface IExecutable {
|
|
2
|
+
id?: string;
|
|
3
|
+
execute: () => void;
|
|
4
|
+
isCompleted: boolean;
|
|
5
|
+
dispose?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare class Task implements IExecutable {
|
|
8
|
+
private func;
|
|
9
|
+
private isMultiple;
|
|
10
|
+
private _isCompleted;
|
|
11
|
+
constructor(func: () => void, isMultiple?: boolean);
|
|
12
|
+
execute: () => void;
|
|
13
|
+
discard(): void;
|
|
14
|
+
get isCompleted(): boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class TaskManger {
|
|
17
|
+
private interval;
|
|
18
|
+
private static instance;
|
|
19
|
+
private static tasks;
|
|
20
|
+
private constructor();
|
|
21
|
+
static Instance(): TaskManger;
|
|
22
|
+
private tick;
|
|
23
|
+
static schedule(task: IExecutable): void;
|
|
24
|
+
}
|
|
25
|
+
export declare function debounce<T extends (...args: any) => void>(func: T): {
|
|
26
|
+
run: T;
|
|
27
|
+
cancel: () => void;
|
|
28
|
+
};
|