-
Notifications
You must be signed in to change notification settings - Fork 106
/
Copy pathconstants.js
47 lines (43 loc) · 1.29 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// constants
export const DIALOG_TYPES = {
ALERT: 'alert', // ex: Congrats! record created
CONFIRM: 'confirm', // ex: Please confirm delete
PROMPT: 'prompt' // ex: Type your password to save changes
}
export const CONFIRM_TYPES = {
BASIC: 'basic', // ex: click to confirm
SOFT: 'soft', // ex: click 3 times to confirm
HARD: 'hard' // ex: enter verification, then click to confirm
}
export const ANIMATION_TYPES = {
FADE: 'dg-fade',
ZOOM: 'dg-zoom',
BOUNCE: 'dg-bounce'
}
export const CLASS_TYPES = {
MAIN_CONTENT: 'mainContent',
BODY: 'body',
TITLE: 'title',
FOOTER: 'footer',
OK_BTN: 'okBtn',
CANCEL_BTN: 'cancelBtn'
}
export const DEFAULT_OPTIONS = {
html : false,
loader : false,
reverse : false,
backdropClose : false,
okText : 'Continue',
cancelText : 'Close',
view : null,
type : CONFIRM_TYPES.BASIC,
window : DIALOG_TYPES.CONFIRM,
message : 'Proceed with the request?',
clicksCount : 3,
animation : 'zoom',
customClass : '',
verification : 'continue',
verificationHelp : 'Type "[+:verification]" below to confirm',
promptHelp : 'Type in the box below and click "[+:okText]"',
forwardPlugin : {}
}