survey-core 1.9.138 → 1.10.1
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 +646 -66
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +646 -66
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +5 -2
- package/i18n/arabic.js.map +1 -1
- package/i18n/arabic.min.js +2 -2
- package/i18n/basque.js +5 -2
- package/i18n/basque.js.map +1 -1
- package/i18n/basque.min.js +2 -2
- package/i18n/bulgarian.js +5 -2
- package/i18n/bulgarian.js.map +1 -1
- package/i18n/bulgarian.min.js +2 -2
- package/i18n/catalan.js +5 -2
- package/i18n/catalan.js.map +1 -1
- package/i18n/catalan.min.js +2 -2
- package/i18n/croatian.js +5 -2
- package/i18n/croatian.js.map +1 -1
- package/i18n/croatian.min.js +2 -2
- package/i18n/czech.js +5 -2
- package/i18n/czech.js.map +1 -1
- package/i18n/czech.min.js +2 -2
- package/i18n/danish.js +5 -2
- package/i18n/danish.js.map +1 -1
- package/i18n/danish.min.js +2 -2
- package/i18n/dutch.js +5 -2
- package/i18n/dutch.js.map +1 -1
- package/i18n/dutch.min.js +2 -2
- package/i18n/english.js +5 -3
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +2 -2
- package/i18n/estonian.js +5 -2
- package/i18n/estonian.js.map +1 -1
- package/i18n/estonian.min.js +2 -2
- package/i18n/finnish.js +5 -2
- package/i18n/finnish.js.map +1 -1
- package/i18n/finnish.min.js +2 -2
- package/i18n/french.js +5 -2
- package/i18n/french.js.map +1 -1
- package/i18n/french.min.js +2 -2
- package/i18n/georgian.js +5 -2
- package/i18n/georgian.js.map +1 -1
- package/i18n/georgian.min.js +2 -2
- package/i18n/german.js +5 -1
- package/i18n/german.js.map +1 -1
- package/i18n/german.min.js +2 -2
- package/i18n/greek.js +5 -2
- package/i18n/greek.js.map +1 -1
- package/i18n/greek.min.js +2 -2
- package/i18n/hebrew.js +5 -1
- package/i18n/hebrew.js.map +1 -1
- package/i18n/hebrew.min.js +2 -2
- package/i18n/hindi.js +5 -2
- package/i18n/hindi.js.map +1 -1
- package/i18n/hindi.min.js +2 -2
- package/i18n/hungarian.js +5 -2
- package/i18n/hungarian.js.map +1 -1
- package/i18n/hungarian.min.js +2 -2
- package/i18n/icelandic.js +5 -2
- package/i18n/icelandic.js.map +1 -1
- package/i18n/icelandic.min.js +2 -2
- package/i18n/index.js +189 -46
- package/i18n/index.js.map +1 -1
- package/i18n/index.min.js +2 -2
- package/i18n/indonesian.js +5 -2
- package/i18n/indonesian.js.map +1 -1
- package/i18n/indonesian.min.js +2 -2
- package/i18n/italian.js +5 -2
- package/i18n/italian.js.map +1 -1
- package/i18n/italian.min.js +2 -2
- package/i18n/japanese.js +5 -2
- package/i18n/japanese.js.map +1 -1
- package/i18n/japanese.min.js +2 -2
- package/i18n/kazakh.js +5 -2
- package/i18n/kazakh.js.map +1 -1
- package/i18n/kazakh.min.js +2 -2
- package/i18n/korean.js +5 -2
- package/i18n/korean.js.map +1 -1
- package/i18n/korean.min.js +2 -2
- package/i18n/latvian.js +5 -2
- package/i18n/latvian.js.map +1 -1
- package/i18n/latvian.min.js +2 -2
- package/i18n/lithuanian.js +5 -2
- package/i18n/lithuanian.js.map +1 -1
- package/i18n/lithuanian.min.js +2 -2
- package/i18n/macedonian.js +5 -2
- package/i18n/macedonian.js.map +1 -1
- package/i18n/macedonian.min.js +2 -2
- package/i18n/malay.js +5 -2
- package/i18n/malay.js.map +1 -1
- package/i18n/malay.min.js +2 -2
- package/i18n/nl-BE.js +5 -2
- package/i18n/nl-BE.js.map +1 -1
- package/i18n/nl-BE.min.js +2 -2
- package/i18n/norwegian.js +5 -2
- package/i18n/norwegian.js.map +1 -1
- package/i18n/norwegian.min.js +2 -2
- package/i18n/persian.js +5 -2
- package/i18n/persian.js.map +1 -1
- package/i18n/persian.min.js +2 -2
- package/i18n/polish.js +5 -2
- package/i18n/polish.js.map +1 -1
- package/i18n/polish.min.js +2 -2
- package/i18n/portuguese-br.js +5 -2
- package/i18n/portuguese-br.js.map +1 -1
- package/i18n/portuguese-br.min.js +2 -2
- package/i18n/portuguese.js +5 -2
- package/i18n/portuguese.js.map +1 -1
- package/i18n/portuguese.min.js +2 -2
- package/i18n/romanian.js +5 -2
- package/i18n/romanian.js.map +1 -1
- package/i18n/romanian.min.js +2 -2
- package/i18n/russian.js +5 -2
- package/i18n/russian.js.map +1 -1
- package/i18n/russian.min.js +2 -2
- package/i18n/serbian.js +5 -2
- package/i18n/serbian.js.map +1 -1
- package/i18n/serbian.min.js +2 -2
- package/i18n/simplified-chinese.js +5 -2
- package/i18n/simplified-chinese.js.map +1 -1
- package/i18n/simplified-chinese.min.js +2 -2
- package/i18n/slovak.js +5 -2
- package/i18n/slovak.js.map +1 -1
- package/i18n/slovak.min.js +2 -2
- package/i18n/spanish.js +5 -2
- package/i18n/spanish.js.map +1 -1
- package/i18n/spanish.min.js +2 -2
- package/i18n/swahili.js +5 -2
- package/i18n/swahili.js.map +1 -1
- package/i18n/swahili.min.js +2 -2
- package/i18n/swedish.js +5 -2
- package/i18n/swedish.js.map +1 -1
- package/i18n/swedish.min.js +2 -2
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +5 -2
- package/i18n/telugu.js.map +1 -1
- package/i18n/telugu.min.js +2 -2
- package/i18n/thai.js +5 -2
- package/i18n/thai.js.map +1 -1
- package/i18n/thai.min.js +2 -2
- package/i18n/traditional-chinese.js +5 -2
- package/i18n/traditional-chinese.js.map +1 -1
- package/i18n/traditional-chinese.min.js +2 -2
- package/i18n/turkish.js +5 -2
- package/i18n/turkish.js.map +1 -1
- package/i18n/turkish.min.js +2 -2
- package/i18n/ukrainian.js +5 -2
- package/i18n/ukrainian.js.map +1 -1
- package/i18n/ukrainian.min.js +2 -2
- package/i18n/urdu.js +5 -2
- package/i18n/urdu.js.map +1 -1
- package/i18n/urdu.min.js +2 -2
- package/i18n/vietnamese.js +5 -2
- package/i18n/vietnamese.js.map +1 -1
- package/i18n/vietnamese.min.js +2 -2
- package/i18n/welsh.js +5 -2
- package/i18n/welsh.js.map +1 -1
- package/i18n/welsh.min.js +2 -2
- package/modern.css +20 -3
- package/modern.css.map +1 -1
- package/modern.fontless.css +20 -3
- 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 +1116 -264
- 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 +189 -46
- 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/actions/action.d.ts +6 -1
- package/ts3.4/typings/base-interfaces.d.ts +1 -1
- package/ts3.4/typings/base.d.ts +5 -0
- package/ts3.4/typings/defaultCss/cssmodern.d.ts +1 -1
- package/ts3.4/typings/defaultCss/cssstandard.d.ts +1 -1
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +60 -1
- package/ts3.4/typings/dxSurveyService.d.ts +5 -1
- package/ts3.4/typings/knockout/kobase.d.ts +8 -0
- package/ts3.4/typings/knockout/kopage.d.ts +37 -0
- package/ts3.4/typings/localization/english.d.ts +2 -0
- package/ts3.4/typings/mask/input_element_adapter.d.ts +1 -1
- package/ts3.4/typings/mask/mask_base.d.ts +1 -0
- package/ts3.4/typings/mask/mask_datetime.d.ts +16 -1
- package/ts3.4/typings/mask/mask_numeric.d.ts +3 -2
- package/ts3.4/typings/mask/mask_pattern.d.ts +9 -1
- package/ts3.4/typings/mask/mask_utils.d.ts +1 -0
- package/ts3.4/typings/panel.d.ts +2 -1
- package/ts3.4/typings/popup-view-model.d.ts +2 -0
- package/ts3.4/typings/popup.d.ts +1 -0
- package/ts3.4/typings/question.d.ts +2 -0
- package/ts3.4/typings/question_boolean.d.ts +8 -0
- package/ts3.4/typings/question_checkbox.d.ts +1 -0
- package/ts3.4/typings/question_custom.d.ts +1 -0
- package/ts3.4/typings/question_matrix.d.ts +1 -0
- package/ts3.4/typings/question_matrixdropdownrendered.d.ts +10 -0
- package/ts3.4/typings/question_paneldynamic.d.ts +18 -0
- package/ts3.4/typings/question_ranking.d.ts +7 -1
- package/ts3.4/typings/question_rating.d.ts +1 -0
- package/ts3.4/typings/question_signaturepad.d.ts +9 -2
- package/ts3.4/typings/survey-element.d.ts +8 -3
- package/ts3.4/typings/survey.d.ts +1 -1
- package/ts3.4/typings/surveyStrings.d.ts +2 -0
- package/ts3.4/typings/trigger.d.ts +2 -1
- package/ts3.4/typings/utils/animation.d.ts +26 -10
- package/typings/actions/action.d.ts +7 -1
- package/typings/base-interfaces.d.ts +1 -1
- package/typings/base.d.ts +5 -0
- package/typings/defaultCss/cssmodern.d.ts +1 -1
- package/typings/defaultCss/cssstandard.d.ts +1 -1
- package/typings/defaultCss/defaultV2Css.d.ts +60 -1
- package/typings/dxSurveyService.d.ts +5 -1
- package/typings/knockout/kobase.d.ts +8 -0
- package/typings/knockout/kopage.d.ts +37 -0
- package/typings/localization/english.d.ts +2 -0
- package/typings/mask/input_element_adapter.d.ts +1 -1
- package/typings/mask/mask_base.d.ts +1 -0
- package/typings/mask/mask_datetime.d.ts +16 -1
- package/typings/mask/mask_numeric.d.ts +3 -2
- package/typings/mask/mask_pattern.d.ts +9 -1
- package/typings/mask/mask_utils.d.ts +1 -0
- package/typings/panel.d.ts +2 -1
- package/typings/popup-view-model.d.ts +2 -0
- package/typings/popup.d.ts +1 -0
- package/typings/question.d.ts +2 -0
- package/typings/question_boolean.d.ts +8 -0
- package/typings/question_checkbox.d.ts +1 -0
- package/typings/question_custom.d.ts +1 -0
- package/typings/question_matrix.d.ts +1 -0
- package/typings/question_matrixdropdownrendered.d.ts +11 -0
- package/typings/question_paneldynamic.d.ts +17 -0
- package/typings/question_ranking.d.ts +7 -1
- package/typings/question_rating.d.ts +1 -0
- package/typings/question_signaturepad.d.ts +9 -2
- package/typings/survey-element.d.ts +8 -4
- package/typings/survey.d.ts +1 -1
- package/typings/surveyStrings.d.ts +2 -0
- package/typings/trigger.d.ts +2 -1
- package/typings/utils/animation.d.ts +18 -10
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PageModel } from "survey-core";
|
|
2
|
+
import { PanelModelBase, PanelModel, QuestionRowModel } from "survey-core";
|
|
3
|
+
import { SurveyElement } from "survey-core";
|
|
4
|
+
import { ImplementorBase } from "./kobase";
|
|
5
|
+
export declare class QuestionRow extends QuestionRowModel {
|
|
6
|
+
panel: PanelModelBase;
|
|
7
|
+
koElementAfterRender: any;
|
|
8
|
+
constructor(panel: PanelModelBase);
|
|
9
|
+
getElementType(el: any): "survey-panel" | "survey-question";
|
|
10
|
+
koAfterRender(htmlElements: any, element: SurveyElement): void;
|
|
11
|
+
private elementAfterRender;
|
|
12
|
+
rowAfterRender(elements: HTMLElement[], model: QuestionRow): void;
|
|
13
|
+
dispose(): void;
|
|
14
|
+
}
|
|
15
|
+
export declare class PanelImplementorBase extends ImplementorBase {
|
|
16
|
+
panel: PanelModelBase;
|
|
17
|
+
constructor(panel: PanelModelBase);
|
|
18
|
+
}
|
|
19
|
+
export declare class Panel extends PanelModel {
|
|
20
|
+
private _implementor;
|
|
21
|
+
koElementType: any;
|
|
22
|
+
constructor(name?: string);
|
|
23
|
+
protected onBaseCreating(): void;
|
|
24
|
+
createRow(): QuestionRowModel;
|
|
25
|
+
protected onCreating(): void;
|
|
26
|
+
protected onNumChanged(value: number): void;
|
|
27
|
+
dispose(): void;
|
|
28
|
+
}
|
|
29
|
+
export declare class Page extends PageModel {
|
|
30
|
+
private _implementor;
|
|
31
|
+
constructor(name?: string);
|
|
32
|
+
protected onBaseCreating(): void;
|
|
33
|
+
createRow(): QuestionRowModel;
|
|
34
|
+
protected onCreating(): void;
|
|
35
|
+
protected onNumChanged(value: number): void;
|
|
36
|
+
dispose(): void;
|
|
37
|
+
}
|
|
@@ -67,6 +67,7 @@ export declare var englishStrings: {
|
|
|
67
67
|
savingData: string;
|
|
68
68
|
savingDataError: string;
|
|
69
69
|
savingDataSuccess: string;
|
|
70
|
+
savingExceedSize: string;
|
|
70
71
|
saveAgainButton: string;
|
|
71
72
|
timerMin: string;
|
|
72
73
|
timerSec: string;
|
|
@@ -78,6 +79,7 @@ export declare var englishStrings: {
|
|
|
78
79
|
timerLimitSurvey: string;
|
|
79
80
|
clearCaption: string;
|
|
80
81
|
signaturePlaceHolder: string;
|
|
82
|
+
signaturePlaceHolderReadOnly: string;
|
|
81
83
|
chooseFileCaption: string;
|
|
82
84
|
takePhotoCaption: string;
|
|
83
85
|
photoPlaceholder: string;
|
|
@@ -4,7 +4,7 @@ export declare class InputElementAdapter {
|
|
|
4
4
|
private inputMaskInstance;
|
|
5
5
|
private inputElement;
|
|
6
6
|
private prevUnmaskedValue;
|
|
7
|
-
constructor(inputMaskInstance: InputMaskBase, inputElement: HTMLInputElement, value?:
|
|
7
|
+
constructor(inputMaskInstance: InputMaskBase, inputElement: HTMLInputElement, value?: any);
|
|
8
8
|
inputMaskInstancePropertyChangedHandler: (sender: any, options: any) => void;
|
|
9
9
|
clickHandler: (event: any) => void;
|
|
10
10
|
beforeInputHandler: (event: any) => void;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { InputMaskPattern } from "./mask_pattern";
|
|
2
2
|
import { IMaskedInputResult, ITextInputParams } from "./mask_utils";
|
|
3
|
+
declare type DateTimeMaskLexemType = "month" | "day" | "year" | "hour" | "minute" | "second" | "timeMarker" | "separator";
|
|
3
4
|
export interface IDateTimeMaskLexem {
|
|
4
|
-
type:
|
|
5
|
+
type: DateTimeMaskLexemType;
|
|
5
6
|
value: any;
|
|
6
7
|
count: number;
|
|
7
8
|
maxCount: number;
|
|
9
|
+
upperCase: boolean;
|
|
8
10
|
}
|
|
9
11
|
interface IDateTimeComposition {
|
|
10
12
|
day: number;
|
|
@@ -13,6 +15,7 @@ interface IDateTimeComposition {
|
|
|
13
15
|
hour?: number;
|
|
14
16
|
minute?: number;
|
|
15
17
|
second?: number;
|
|
18
|
+
timeMarker?: string;
|
|
16
19
|
min?: Date;
|
|
17
20
|
max?: Date;
|
|
18
21
|
}
|
|
@@ -38,9 +41,12 @@ export declare function getDateTimeLexems(pattern: string): Array<IDateTimeMaskL
|
|
|
38
41
|
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
|
39
42
|
*/
|
|
40
43
|
export declare class InputMaskDateTime extends InputMaskPattern {
|
|
44
|
+
private defaultDate;
|
|
41
45
|
private turnOfTheCentury;
|
|
46
|
+
private twelve;
|
|
42
47
|
private lexems;
|
|
43
48
|
private inputDateTimeData;
|
|
49
|
+
private validBeginningOfNumbers;
|
|
44
50
|
/**
|
|
45
51
|
* A minimum date and time value that respondents can enter.
|
|
46
52
|
* @see max
|
|
@@ -51,6 +57,9 @@ export declare class InputMaskDateTime extends InputMaskPattern {
|
|
|
51
57
|
* @see min
|
|
52
58
|
*/
|
|
53
59
|
max: string;
|
|
60
|
+
get hasDatePart(): boolean;
|
|
61
|
+
get hasTimePart(): boolean;
|
|
62
|
+
private get is12Hours();
|
|
54
63
|
getType(): string;
|
|
55
64
|
protected updateLiterals(): void;
|
|
56
65
|
private leaveOnlyNumbers;
|
|
@@ -58,13 +67,19 @@ export declare class InputMaskDateTime extends InputMaskPattern {
|
|
|
58
67
|
private initInputDateTimeData;
|
|
59
68
|
getISO_8601Format(dateTime: IDateTimeComposition): string;
|
|
60
69
|
private isYearValid;
|
|
70
|
+
private createIDateTimeCompositionWithDefaults;
|
|
71
|
+
private getMaxDateForMonth;
|
|
61
72
|
private isDateValid;
|
|
62
73
|
private getPlaceholder;
|
|
74
|
+
private isDateValid12;
|
|
75
|
+
private updateTimeMarkerInputDateTimeData;
|
|
63
76
|
private updateInputDateTimeData;
|
|
77
|
+
private checkValidationDateTimePart;
|
|
64
78
|
private getCorrectDatePartFormat;
|
|
65
79
|
private createIDateTimeComposition;
|
|
66
80
|
private parseTwoDigitYear;
|
|
67
81
|
private getFormatedString;
|
|
82
|
+
private cleanTimeMarker;
|
|
68
83
|
private setInputDateTimeData;
|
|
69
84
|
_getMaskedValue(src: string, matchWholeMask?: boolean): string;
|
|
70
85
|
private getParts;
|
|
@@ -76,9 +76,10 @@ export declare class InputMaskNumeric extends InputMaskBase {
|
|
|
76
76
|
displayNumber(parsedNumber: INumericalComposition, insertThousandsSeparator?: boolean, matchWholeMask?: boolean): string;
|
|
77
77
|
convertNumber(parsedNumber: INumericalComposition): number;
|
|
78
78
|
validateNumber(number: INumericalComposition, matchWholeMask: boolean): boolean;
|
|
79
|
-
parseNumber(src: string
|
|
80
|
-
getNumberMaskedValue(src: string
|
|
79
|
+
parseNumber(src: string): INumericalComposition;
|
|
80
|
+
getNumberMaskedValue(src: string, matchWholeMask?: boolean): string;
|
|
81
81
|
private getNumberUnmaskedValue;
|
|
82
|
+
getTextAlignment(): "left" | "right" | "auto";
|
|
82
83
|
getMaskedValue(src: any): string;
|
|
83
84
|
getUnmaskedValue(src: string): any;
|
|
84
85
|
processInput(args: ITextInputParams): IMaskedInputResult;
|
|
@@ -51,8 +51,16 @@ export declare class InputMaskPattern extends InputMaskBase {
|
|
|
51
51
|
* - `dd` - Day of the month, with leading zero for single-digit values.
|
|
52
52
|
* - `yy` - Last two digits of the year.
|
|
53
53
|
* - `yyyy` - A four-digit year.
|
|
54
|
+
* - `H` - Hours in 24-hour format.
|
|
55
|
+
* - `HH` - Hours in 24-hour format, with leading zero for single-digit values.
|
|
56
|
+
* - `h` - Hours in 12-hour format.
|
|
57
|
+
* - `hh` - Hours in 12-hour format, with leading zero for single-digit values.
|
|
58
|
+
* - `MM` - Minutes.
|
|
59
|
+
* - `ss` - Seconds.
|
|
60
|
+
* - `TT` - 12-hour clock period in upper case (AM/PM).
|
|
61
|
+
* - `tt` - 12-hour clock period in lower case (am/pm).
|
|
54
62
|
*
|
|
55
|
-
* Example: `mm/dd/yyyy`
|
|
63
|
+
* Example: `mm/dd/yyyy HH:MM:ss`
|
|
56
64
|
*
|
|
57
65
|
* [View Demo](https://surveyjs.io/form-library/examples/masked-input-fields/ (linkStyle))
|
|
58
66
|
* @see [settings.maskSettings](https://surveyjs.io/form-library/documentation/api-reference/settings#maskSettings)
|
package/typings/panel.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare class QuestionRowModel extends Base {
|
|
|
27
27
|
get id(): string;
|
|
28
28
|
protected equalsCore(obj: Base): boolean;
|
|
29
29
|
get elements(): Array<IElement>;
|
|
30
|
+
protected getIsAnimationAllowed(): boolean;
|
|
30
31
|
private getVisibleElementsAnimationOptions;
|
|
31
32
|
visibleElementsAnimation: AnimationGroup<IElement>;
|
|
32
33
|
set visibleElements(val: Array<IElement>);
|
|
@@ -555,7 +556,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
555
556
|
focusIn(): void;
|
|
556
557
|
protected getHasFrameV2(): boolean;
|
|
557
558
|
protected getIsNested(): boolean;
|
|
558
|
-
|
|
559
|
+
get showPanelAsPage(): boolean;
|
|
559
560
|
protected getCssRoot(cssClasses: {
|
|
560
561
|
[index: string]: string;
|
|
561
562
|
}): string;
|
|
@@ -62,6 +62,8 @@ export declare class PopupBaseViewModel extends Base implements IAnimationConsum
|
|
|
62
62
|
onKeyDown(event: any): void;
|
|
63
63
|
private trapFocus;
|
|
64
64
|
switchFocus(): void;
|
|
65
|
+
protected _isPositionSetValue: boolean;
|
|
66
|
+
get isPositionSet(): boolean;
|
|
65
67
|
updateOnShowing(): void;
|
|
66
68
|
updateOnHiding(): void;
|
|
67
69
|
private focusContainer;
|
package/typings/popup.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare class PopupModel<T = any> extends Base {
|
|
|
28
28
|
private onDispose;
|
|
29
29
|
setWidthByTarget: boolean;
|
|
30
30
|
focusFirstInputSelector: string;
|
|
31
|
+
locale: string;
|
|
31
32
|
contentComponentName: string;
|
|
32
33
|
contentComponentData: T;
|
|
33
34
|
verticalPosition: VerticalPosition;
|
package/typings/question.d.ts
CHANGED
|
@@ -271,6 +271,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
271
271
|
set titleLocation(value: string);
|
|
272
272
|
getTitleOwner(): ITitleOwner;
|
|
273
273
|
protected getIsTitleRenderedAsString(): boolean;
|
|
274
|
+
protected notifySurveyOnChildrenVisibilityChanged(): boolean;
|
|
274
275
|
private notifySurveyVisibilityChanged;
|
|
275
276
|
protected clearValueOnHidding(isClearOnHidden: boolean): void;
|
|
276
277
|
/**
|
|
@@ -562,6 +563,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
562
563
|
set value(newValue: any);
|
|
563
564
|
get hasFilteredValue(): boolean;
|
|
564
565
|
getFilteredValue(): any;
|
|
566
|
+
getFilteredName(): any;
|
|
565
567
|
get valueForSurvey(): any;
|
|
566
568
|
/**
|
|
567
569
|
* Sets the question's `value` and `comment` properties to `undefined`.
|
|
@@ -46,6 +46,13 @@ export declare class QuestionBooleanModel extends Question {
|
|
|
46
46
|
set labelTrue(val: string);
|
|
47
47
|
get locLabelTrue(): LocalizableString;
|
|
48
48
|
get isDeterminated(): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Specifies whether to swap the order of the Yes and No answers.
|
|
51
|
+
*
|
|
52
|
+
* Default value: `false`
|
|
53
|
+
*
|
|
54
|
+
* By default, the order is [ "No", "Yes"]. Enable this property to reorder the answers as follows: [ "Yes", "No" ].
|
|
55
|
+
*/
|
|
49
56
|
swapOrder: boolean;
|
|
50
57
|
get locLabelLeft(): LocalizableString;
|
|
51
58
|
get locLabelRight(): LocalizableString;
|
|
@@ -85,6 +92,7 @@ export declare class QuestionBooleanModel extends Question {
|
|
|
85
92
|
getCheckboxItemCss(): string;
|
|
86
93
|
getLabelCss(checked: boolean): string;
|
|
87
94
|
get svgIcon(): string;
|
|
95
|
+
get itemSvgIcon(): string;
|
|
88
96
|
get allowClick(): boolean;
|
|
89
97
|
getCheckedLabel(): LocalizableString;
|
|
90
98
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
|
@@ -93,6 +93,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
93
93
|
get selectedChoices(): Array<ItemValue>;
|
|
94
94
|
get selectedItems(): Array<ItemValue>;
|
|
95
95
|
get hasFilteredValue(): boolean;
|
|
96
|
+
getFilteredName(): any;
|
|
96
97
|
getFilteredValue(): any;
|
|
97
98
|
protected getMultipleSelectedItems(): Array<ItemValue>;
|
|
98
99
|
protected validateItemValues(itemValues: Array<ItemValue>): Array<ItemValue>;
|
|
@@ -355,6 +355,7 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
|
355
355
|
afterRenderCore(el: any): void;
|
|
356
356
|
get contentQuestion(): Question;
|
|
357
357
|
protected createQuestion(): Question;
|
|
358
|
+
private checkCreatedQuestion;
|
|
358
359
|
onSurveyLoad(): void;
|
|
359
360
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
|
360
361
|
protected convertDataName(name: string): string;
|
|
@@ -58,6 +58,7 @@ export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
|
|
58
58
|
isGhostRow: boolean;
|
|
59
59
|
isAdditionalClasses: boolean;
|
|
60
60
|
visible: boolean;
|
|
61
|
+
onVisibilityChangedCallback: () => void;
|
|
61
62
|
hasEndActions: boolean;
|
|
62
63
|
row: MatrixDropdownRowModelBase;
|
|
63
64
|
isErrorsRow: boolean;
|
|
@@ -72,6 +73,9 @@ export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
|
|
72
73
|
"data-sv-drop-target-matrix-row": string;
|
|
73
74
|
};
|
|
74
75
|
get className(): string;
|
|
76
|
+
private rootElement;
|
|
77
|
+
setRootElement(val: HTMLTableRowElement): void;
|
|
78
|
+
getRootElement(): HTMLTableRowElement;
|
|
75
79
|
}
|
|
76
80
|
export declare class QuestionMatrixDropdownRenderedErrorRow extends QuestionMatrixDropdownRenderedRow {
|
|
77
81
|
isErrorsRow: boolean;
|
|
@@ -89,6 +93,13 @@ export declare class QuestionMatrixDropdownRenderedTable extends Base {
|
|
|
89
93
|
private cssClasses;
|
|
90
94
|
renderedRowsChangedCallback: () => void;
|
|
91
95
|
rows: Array<QuestionMatrixDropdownRenderedRow>;
|
|
96
|
+
protected getIsAnimationAllowed(): boolean;
|
|
97
|
+
private getRenderedRowsAnimationOptions;
|
|
98
|
+
private _renderedRows;
|
|
99
|
+
updateRenderedRows(): void;
|
|
100
|
+
private renderedRowsAnimation;
|
|
101
|
+
get renderedRows(): Array<QuestionMatrixDropdownRenderedRow>;
|
|
102
|
+
set renderedRows(val: Array<QuestionMatrixDropdownRenderedRow>);
|
|
92
103
|
constructor(matrix: QuestionMatrixDropdownModelBase);
|
|
93
104
|
get showTable(): boolean;
|
|
94
105
|
get showHeader(): boolean;
|
|
@@ -8,6 +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
12
|
export interface IQuestionPanelDynamicData {
|
|
12
13
|
getItemIndex(item: ISurveyData): number;
|
|
13
14
|
getVisibleItemIndex(item: ISurveyData): number;
|
|
@@ -191,6 +192,17 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
191
192
|
*/
|
|
192
193
|
get currentPanel(): PanelModel;
|
|
193
194
|
set currentPanel(val: PanelModel);
|
|
195
|
+
private _renderedPanels;
|
|
196
|
+
private updateRenderedPanels;
|
|
197
|
+
set renderedPanels(val: Array<PanelModel>);
|
|
198
|
+
get renderedPanels(): Array<PanelModel>;
|
|
199
|
+
private isPanelsAnimationRunning;
|
|
200
|
+
private getPanelsAnimationOptions;
|
|
201
|
+
private _panelsAnimations;
|
|
202
|
+
private disablePanelsAnimations;
|
|
203
|
+
private enablePanelsAnimations;
|
|
204
|
+
private updatePanelsAnimation;
|
|
205
|
+
get panelsAnimation(): AnimationProperty<Array<PanelModel>, [PanelModel]>;
|
|
194
206
|
onHidingContent(): void;
|
|
195
207
|
/**
|
|
196
208
|
* Specifies whether to display a confirmation dialog when a respondent wants to delete a panel.
|
|
@@ -398,6 +410,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
398
410
|
*/
|
|
399
411
|
get showQuestionNumbers(): string;
|
|
400
412
|
set showQuestionNumbers(val: string);
|
|
413
|
+
protected notifySurveyOnChildrenVisibilityChanged(): boolean;
|
|
401
414
|
/**
|
|
402
415
|
* Specifies the location of the Delete Panel button relative to panel content.
|
|
403
416
|
*
|
|
@@ -497,6 +510,8 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
497
510
|
* @see canAddPanel
|
|
498
511
|
*/
|
|
499
512
|
addPanelUI(): PanelModel;
|
|
513
|
+
private focusNewPanelCallback;
|
|
514
|
+
private focusNewPanel;
|
|
500
515
|
/**
|
|
501
516
|
* Adds a new panel based on the [template](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#template).
|
|
502
517
|
* @param index *(Optional)* An index at which to insert the new panel. `undefined` adds the panel to the end or inserts it after the current panel if [`renderMode`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#renderMode) is `"tab"`. A negative index (for instance, -1) adds the panel to the end in all cases, regardless of the `renderMode` value.
|
|
@@ -535,6 +550,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
535
550
|
* @see panels
|
|
536
551
|
* @see template
|
|
537
552
|
*/
|
|
553
|
+
private removedPanelIndex;
|
|
538
554
|
removePanel(value: any): void;
|
|
539
555
|
private getVisualPanelIndex;
|
|
540
556
|
private getPanelIndexById;
|
|
@@ -620,6 +636,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
620
636
|
getShowNoEntriesPlaceholder(): boolean;
|
|
621
637
|
needResponsiveWidth(): boolean;
|
|
622
638
|
private additionalTitleToolbarValue;
|
|
639
|
+
get hasAdditionalTitleToolbar(): boolean;
|
|
623
640
|
protected getAdditionalTitleToolbar(): AdaptiveActionContainer | null;
|
|
624
641
|
private footerToolbarValue;
|
|
625
642
|
get footerToolbar(): ActionContainer;
|
|
@@ -11,12 +11,14 @@ import { AnimationGroup } from "./utils/animation";
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
13
13
|
private domNode;
|
|
14
|
+
private dragOrClickHelper;
|
|
14
15
|
constructor(name: string);
|
|
15
16
|
protected getDefaultItemComponent(): string;
|
|
16
17
|
getType(): string;
|
|
17
18
|
getItemTabIndex(item: ItemValue): number;
|
|
18
19
|
protected supportContainerQueries(): boolean;
|
|
19
20
|
get rootClass(): string;
|
|
21
|
+
protected isItemSelectedCore(item: ItemValue): boolean;
|
|
20
22
|
protected getItemClassCore(item: ItemValue, options: any): string;
|
|
21
23
|
getContainerClasses(containerType?: string): string;
|
|
22
24
|
protected isItemCurrentDropTarget(item: ItemValue): boolean;
|
|
@@ -50,7 +52,11 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
|
50
52
|
endLoadingFromJson(): void;
|
|
51
53
|
private setDragDropRankingChoices;
|
|
52
54
|
protected createDragDropRankingChoices(): DragDropRankingChoices | DragDropRankingSelectToRank;
|
|
55
|
+
private draggedChoise;
|
|
56
|
+
private draggedTargetNode;
|
|
53
57
|
handlePointerDown: (event: PointerEvent, choice: ItemValue, node: HTMLElement) => void;
|
|
58
|
+
startDrag: (event: PointerEvent) => void;
|
|
59
|
+
handlePointerUp: (event: PointerEvent, choice: ItemValue, node: HTMLElement) => void;
|
|
54
60
|
private isDragStartNodeValid;
|
|
55
61
|
private get allowStartDrag();
|
|
56
62
|
private canStartDragDueMaxSelectedChoices;
|
|
@@ -65,7 +71,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
|
65
71
|
supportRefuse(): boolean;
|
|
66
72
|
supportDontKnow(): boolean;
|
|
67
73
|
private handleArrowKeys;
|
|
68
|
-
handleKeydownSelectToRank(event: KeyboardEvent, movedElement: ItemValue): void;
|
|
74
|
+
handleKeydownSelectToRank(event: KeyboardEvent, movedElement: ItemValue, hardKey?: string, isNeedFocus?: boolean): void;
|
|
69
75
|
private setValueAfterKeydown;
|
|
70
76
|
private focusItem;
|
|
71
77
|
isValueSetByUser: boolean;
|
|
@@ -123,6 +123,7 @@ export declare class QuestionRatingModel extends Question {
|
|
|
123
123
|
getType(): string;
|
|
124
124
|
protected getFirstInputElementId(): string;
|
|
125
125
|
getInputId(index: number): string;
|
|
126
|
+
get questionName(): string;
|
|
126
127
|
supportGoNextPageAutomatic(): boolean;
|
|
127
128
|
supportOther(): boolean;
|
|
128
129
|
protected getPlainDataCalculatedValue(propName: string): any;
|
|
@@ -119,17 +119,24 @@ export declare class QuestionSignaturePadModel extends QuestionFileModelBase {
|
|
|
119
119
|
set backgroundImage(val: string);
|
|
120
120
|
get clearButtonCaption(): string;
|
|
121
121
|
/**
|
|
122
|
-
* A Boolean value that specifies whether to show the
|
|
122
|
+
* A Boolean value that specifies whether to show the placeholder text in the signature area.
|
|
123
123
|
*
|
|
124
124
|
* Default value: `true`
|
|
125
|
+
*
|
|
126
|
+
* Use the [`placeholder`](#placeholder) and [`placeholderReadOnly`](#placeholderReadOnly) properties to specify placeholder texts for the signature area in edit mode and in read-only or preview mode.
|
|
125
127
|
*/
|
|
126
128
|
showPlaceholder: boolean;
|
|
129
|
+
get locRenderedPlaceholder(): any;
|
|
127
130
|
nothingIsDrawn(): boolean;
|
|
128
131
|
needShowPlaceholder(): boolean;
|
|
129
132
|
/**
|
|
130
|
-
* A placeholder for the signature area. Applies when the [`showPlaceholder`](#showPlaceholder) property is `true`.
|
|
133
|
+
* A placeholder text for the signature area. Applies when the [`showPlaceholder`](#showPlaceholder) property is `true`.
|
|
131
134
|
*/
|
|
132
135
|
placeholder: string;
|
|
136
|
+
/**
|
|
137
|
+
* A placeholder text for the signature area in read-only or preview mode. Applies when the [`showPlaceholder`](#showPlaceholder) property is `true`.
|
|
138
|
+
*/
|
|
139
|
+
placeholderReadOnly: string;
|
|
133
140
|
onBlur: (event: any) => void;
|
|
134
141
|
protected uploadResultItemToValue(r: any): any;
|
|
135
142
|
protected setValueFromResult(arg: any): void;
|
|
@@ -84,7 +84,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
84
84
|
isDragMe: boolean;
|
|
85
85
|
readOnlyChangedCallback: () => void;
|
|
86
86
|
static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean): boolean;
|
|
87
|
-
|
|
87
|
+
static ScrollElementToViewCore(el: HTMLElement, checkLeft: boolean, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): boolean;
|
|
88
88
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
|
89
89
|
static FocusElement(elementId: string): boolean;
|
|
90
90
|
private static focusElementCore;
|
|
@@ -328,6 +328,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
328
328
|
isSingleInRow: boolean;
|
|
329
329
|
private shouldAddRunnerStyles;
|
|
330
330
|
protected get isCompact(): boolean;
|
|
331
|
+
private canHaveFrameStyles;
|
|
331
332
|
protected getHasFrameV2(): boolean;
|
|
332
333
|
protected getIsNested(): boolean;
|
|
333
334
|
protected getCssRoot(cssClasses: {
|
|
@@ -395,9 +396,14 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
395
396
|
get clickTitleFunction(): any;
|
|
396
397
|
protected needClickTitleFunction(): boolean;
|
|
397
398
|
protected processTitleClick(): void;
|
|
399
|
+
get hasAdditionalTitleToolbar(): boolean;
|
|
398
400
|
get additionalTitleToolbar(): ActionContainer;
|
|
399
401
|
protected getAdditionalTitleToolbar(): ActionContainer | null;
|
|
400
402
|
protected getCssTitle(cssClasses: any): string;
|
|
403
|
+
get isDisabledStyle(): boolean;
|
|
404
|
+
get isReadOnlyStyle(): boolean;
|
|
405
|
+
protected getIsDisableAndReadOnlyStyles(itemReadOnly: boolean): Array<boolean>;
|
|
406
|
+
get isPreviewStyle(): boolean;
|
|
401
407
|
localeChanged(): void;
|
|
402
408
|
private wrapperElement?;
|
|
403
409
|
setWrapperElement(element?: HTMLElement): void;
|
|
@@ -410,8 +416,6 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
410
416
|
private animationCollapsed;
|
|
411
417
|
set renderedIsExpanded(val: boolean);
|
|
412
418
|
get renderedIsExpanded(): boolean;
|
|
413
|
-
|
|
414
|
-
get animationAllowed(): boolean;
|
|
415
|
-
set animationAllowed(val: boolean);
|
|
419
|
+
protected getIsAnimationAllowed(): boolean;
|
|
416
420
|
dispose(): void;
|
|
417
421
|
}
|
package/typings/survey.d.ts
CHANGED
|
@@ -2557,7 +2557,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2557
2557
|
get clearValueOnDisableItems(): boolean;
|
|
2558
2558
|
set clearValueOnDisableItems(val: boolean);
|
|
2559
2559
|
getQuestionClearIfInvisible(questionClearIf: string): string;
|
|
2560
|
-
questionVisibilityChanged(question: Question, newValue: boolean): void;
|
|
2560
|
+
questionVisibilityChanged(question: Question, newValue: boolean, resetIndexes: boolean): void;
|
|
2561
2561
|
pageVisibilityChanged(page: PageModel, newValue: boolean): void;
|
|
2562
2562
|
panelVisibilityChanged(panel: PanelModel, newValue: boolean): void;
|
|
2563
2563
|
questionCreated(question: Question): any;
|
|
@@ -84,6 +84,7 @@ export declare var surveyStrings: {
|
|
|
84
84
|
savingData: string;
|
|
85
85
|
savingDataError: string;
|
|
86
86
|
savingDataSuccess: string;
|
|
87
|
+
savingExceedSize: string;
|
|
87
88
|
saveAgainButton: string;
|
|
88
89
|
timerMin: string;
|
|
89
90
|
timerSec: string;
|
|
@@ -95,6 +96,7 @@ export declare var surveyStrings: {
|
|
|
95
96
|
timerLimitSurvey: string;
|
|
96
97
|
clearCaption: string;
|
|
97
98
|
signaturePlaceHolder: string;
|
|
99
|
+
signaturePlaceHolderReadOnly: string;
|
|
98
100
|
chooseFileCaption: string;
|
|
99
101
|
takePhotoCaption: string;
|
|
100
102
|
photoPlaceholder: string;
|
package/typings/trigger.d.ts
CHANGED
|
@@ -132,7 +132,8 @@ export declare class SurveyTriggerRunExpression extends SurveyTrigger {
|
|
|
132
132
|
set setToName(val: string);
|
|
133
133
|
get runExpression(): string;
|
|
134
134
|
set runExpression(val: string);
|
|
135
|
-
protected
|
|
135
|
+
protected canBeExecuted(isOnNextPage: boolean): boolean;
|
|
136
|
+
protected onSuccess(values: HashTable<any>, properties: HashTable<any>): boolean;
|
|
136
137
|
private onCompleteRunExpression;
|
|
137
138
|
}
|
|
138
139
|
/**
|
|
@@ -11,28 +11,31 @@ export interface IAnimationConsumer<T extends Array<any> = []> {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class AnimationUtils {
|
|
13
13
|
private getMsFromRule;
|
|
14
|
+
private reflow;
|
|
14
15
|
private getAnimationsCount;
|
|
15
16
|
private getAnimationDuration;
|
|
16
17
|
private cancelQueue;
|
|
18
|
+
private addCancelCallback;
|
|
19
|
+
private removeCancelCallback;
|
|
17
20
|
protected onAnimationEnd(element: HTMLElement, callback: (isCancel?: boolean) => void, options: AnimationOptions): void;
|
|
18
21
|
protected beforeAnimationRun(element: HTMLElement, options: AnimationOptions | AnimationOptions): void;
|
|
19
|
-
protected
|
|
20
|
-
protected
|
|
22
|
+
protected runAnimation(element: HTMLElement, options: AnimationOptions, callback: (isCancel?: boolean) => void): void;
|
|
23
|
+
protected clearHtmlElement(element: HTMLElement, options: AnimationOptions): void;
|
|
24
|
+
protected onNextRender(callback: () => void, runEarly?: () => boolean, isCancel?: boolean): void;
|
|
21
25
|
cancel(): void;
|
|
22
26
|
}
|
|
23
27
|
export declare class AnimationPropertyUtils extends AnimationUtils {
|
|
24
|
-
onEnter(
|
|
25
|
-
onLeave(
|
|
28
|
+
onEnter(options: IAnimationConsumer): void;
|
|
29
|
+
onLeave(options: IAnimationConsumer, callback: () => void): void;
|
|
26
30
|
}
|
|
27
31
|
export declare class AnimationGroupUtils<T> extends AnimationUtils {
|
|
28
|
-
|
|
29
|
-
onLeave(getElement: (el: T) => HTMLElement, callback: () => void, getOptions: (el: T) => AnimationOptions, elements: Array<T>): void;
|
|
32
|
+
runGroupAnimation(options: IAnimationConsumer<[T]>, addedElements: Array<T>, removedElements: Array<T>, callback?: () => void): void;
|
|
30
33
|
}
|
|
31
|
-
declare abstract class AnimationProperty<T, S extends Array<any> = []> {
|
|
34
|
+
export declare abstract class AnimationProperty<T, S extends Array<any> = []> {
|
|
32
35
|
protected animationOptions: IAnimationConsumer<S>;
|
|
33
|
-
protected update: (val: T) => void;
|
|
36
|
+
protected update: (val: T, isTempUpdate?: boolean) => void;
|
|
34
37
|
protected getCurrentValue: () => T;
|
|
35
|
-
constructor(animationOptions: IAnimationConsumer<S>, update: (val: T) => void, getCurrentValue: () => T);
|
|
38
|
+
constructor(animationOptions: IAnimationConsumer<S>, update: (val: T, isTempUpdate?: boolean) => void, getCurrentValue: () => T);
|
|
36
39
|
protected animation: AnimationUtils;
|
|
37
40
|
protected abstract _sync(newValue: T): void;
|
|
38
41
|
private _debouncedSync;
|
|
@@ -47,4 +50,9 @@ export declare class AnimationGroup<T> extends AnimationProperty<Array<T>, [T]>
|
|
|
47
50
|
protected animation: AnimationGroupUtils<T>;
|
|
48
51
|
protected _sync(newValue: Array<T>): void;
|
|
49
52
|
}
|
|
50
|
-
export {
|
|
53
|
+
export declare class AnimationTab<T> extends AnimationProperty<Array<T>, [T]> {
|
|
54
|
+
protected mergeValues?: (newValue: Array<T>, oldValue: Array<T>) => Array<T>;
|
|
55
|
+
protected animation: AnimationGroupUtils<T>;
|
|
56
|
+
constructor(animationOptions: IAnimationConsumer<[T]>, update: (val: Array<T>, isTempUpdate?: boolean) => void, getCurrentValue: () => Array<T>, mergeValues?: (newValue: Array<T>, oldValue: Array<T>) => Array<T>);
|
|
57
|
+
protected _sync(newValue: [T]): void;
|
|
58
|
+
}
|