sprof 0.0.129 → 0.0.131
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/dist/core/auth/Auth.d.ts +52 -8
- package/dist/core/auth/AuthForm.d.ts +4 -4
- package/dist/core/auth/buttons/AuthButton.d.ts +2 -1
- package/dist/core/auth/buttons/AuthButtonLogin.d.ts +0 -1
- package/dist/core/auth/buttons/AuthButtonRefresh.d.ts +8 -0
- package/dist/core/auth/buttons/AuthButtonRegister.d.ts +0 -1
- package/dist/core/auth/buttons/AuthButtonRestore.d.ts +8 -0
- package/dist/core/auth/index.d.ts +3 -1
- package/dist/core/auth/settings/AuthFormSettings.d.ts +6 -4
- package/dist/core/index.d.ts +52 -8
- package/dist/core/store/AuthStore.d.ts +7 -6
- package/dist/core/store/index.d.ts +10 -4
- package/dist/sprof.js +2491 -2470
- package/dist/sprof.umd.cjs +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/core/auth/Auth.d.ts
CHANGED
|
@@ -25,24 +25,35 @@ declare class Auth<UserT> {
|
|
|
25
25
|
id: string;
|
|
26
26
|
text: string;
|
|
27
27
|
isSubmit: boolean;
|
|
28
|
-
disabled: boolean;
|
|
29
28
|
chunk: import('.').AuthChunks;
|
|
30
|
-
|
|
29
|
+
isLink: boolean;
|
|
31
30
|
GetChunk: () => import('.').AuthChunks;
|
|
32
31
|
type?: import('../types').Statuses | undefined;
|
|
33
32
|
condition?: boolean | undefined;
|
|
34
33
|
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
34
|
+
disabled: boolean;
|
|
35
35
|
} | {
|
|
36
36
|
id: string;
|
|
37
37
|
text: string;
|
|
38
38
|
isSubmit: boolean;
|
|
39
|
+
chunk: import('.').AuthChunks;
|
|
40
|
+
isLink: boolean;
|
|
41
|
+
GetChunk: () => import('.').AuthChunks;
|
|
42
|
+
type?: import('../types').Statuses | undefined;
|
|
43
|
+
condition?: boolean | undefined;
|
|
44
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
39
45
|
disabled: boolean;
|
|
46
|
+
} | {
|
|
47
|
+
id: string;
|
|
48
|
+
text: string;
|
|
49
|
+
isSubmit: boolean;
|
|
40
50
|
chunk: import('.').AuthChunks;
|
|
41
|
-
|
|
51
|
+
isLink: boolean;
|
|
42
52
|
GetChunk: () => import('.').AuthChunks;
|
|
43
53
|
type?: import('../types').Statuses | undefined;
|
|
44
54
|
condition?: boolean | undefined;
|
|
45
55
|
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
56
|
+
disabled: boolean;
|
|
46
57
|
})[];
|
|
47
58
|
fields: ({
|
|
48
59
|
id: string;
|
|
@@ -82,24 +93,35 @@ declare class Auth<UserT> {
|
|
|
82
93
|
id: string;
|
|
83
94
|
text: string;
|
|
84
95
|
isSubmit: boolean;
|
|
85
|
-
disabled: boolean;
|
|
86
96
|
chunk: import('.').AuthChunks;
|
|
87
|
-
|
|
97
|
+
isLink: boolean;
|
|
88
98
|
GetChunk: () => import('.').AuthChunks;
|
|
89
99
|
type?: import('../types').Statuses | undefined;
|
|
90
100
|
condition?: boolean | undefined;
|
|
91
101
|
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
102
|
+
disabled: boolean;
|
|
92
103
|
} | {
|
|
93
104
|
id: string;
|
|
94
105
|
text: string;
|
|
95
106
|
isSubmit: boolean;
|
|
107
|
+
chunk: import('.').AuthChunks;
|
|
108
|
+
isLink: boolean;
|
|
109
|
+
GetChunk: () => import('.').AuthChunks;
|
|
110
|
+
type?: import('../types').Statuses | undefined;
|
|
111
|
+
condition?: boolean | undefined;
|
|
112
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
96
113
|
disabled: boolean;
|
|
114
|
+
} | {
|
|
115
|
+
id: string;
|
|
116
|
+
text: string;
|
|
117
|
+
isSubmit: boolean;
|
|
97
118
|
chunk: import('.').AuthChunks;
|
|
98
|
-
|
|
119
|
+
isLink: boolean;
|
|
99
120
|
GetChunk: () => import('.').AuthChunks;
|
|
100
121
|
type?: import('../types').Statuses | undefined;
|
|
101
122
|
condition?: boolean | undefined;
|
|
102
123
|
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
124
|
+
disabled: boolean;
|
|
103
125
|
})[];
|
|
104
126
|
fields: ({
|
|
105
127
|
id: string;
|
|
@@ -150,7 +172,18 @@ declare class Auth<UserT> {
|
|
|
150
172
|
action: string;
|
|
151
173
|
successMessage: string;
|
|
152
174
|
errorMessage: string;
|
|
153
|
-
buttons:
|
|
175
|
+
buttons: {
|
|
176
|
+
id: string;
|
|
177
|
+
text: string;
|
|
178
|
+
isSubmit: boolean;
|
|
179
|
+
chunk: import('.').AuthChunks;
|
|
180
|
+
isLink: boolean;
|
|
181
|
+
GetChunk: () => import('.').AuthChunks;
|
|
182
|
+
type?: import('../types').Statuses | undefined;
|
|
183
|
+
condition?: boolean | undefined;
|
|
184
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
185
|
+
disabled: boolean;
|
|
186
|
+
}[];
|
|
154
187
|
fields: {
|
|
155
188
|
id: string;
|
|
156
189
|
label: string;
|
|
@@ -172,7 +205,18 @@ declare class Auth<UserT> {
|
|
|
172
205
|
action: string;
|
|
173
206
|
successMessage: string;
|
|
174
207
|
errorMessage: string;
|
|
175
|
-
buttons:
|
|
208
|
+
buttons: {
|
|
209
|
+
id: string;
|
|
210
|
+
text: string;
|
|
211
|
+
isSubmit: boolean;
|
|
212
|
+
chunk: import('.').AuthChunks;
|
|
213
|
+
isLink: boolean;
|
|
214
|
+
GetChunk: () => import('.').AuthChunks;
|
|
215
|
+
type?: import('../types').Statuses | undefined;
|
|
216
|
+
condition?: boolean | undefined;
|
|
217
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
218
|
+
disabled: boolean;
|
|
219
|
+
}[];
|
|
176
220
|
fields: {
|
|
177
221
|
label: string;
|
|
178
222
|
validator?: {
|
|
@@ -20,7 +20,7 @@ export default class AuthForm {
|
|
|
20
20
|
methods: AuthMethods[];
|
|
21
21
|
title: string;
|
|
22
22
|
action: string;
|
|
23
|
-
buttons: (import('.').AuthButtonLogin | import('.').AuthButtonRegister)[];
|
|
23
|
+
buttons: (import('.').AuthButtonLogin | import('.').AuthButtonRegister | import('.').AuthButtonRestore)[];
|
|
24
24
|
fields: (import('.').EmailField | import('.').PasswordField)[];
|
|
25
25
|
errorMessage: string;
|
|
26
26
|
successMessage: string;
|
|
@@ -29,7 +29,7 @@ export default class AuthForm {
|
|
|
29
29
|
methods: never[];
|
|
30
30
|
title: string;
|
|
31
31
|
action: string;
|
|
32
|
-
buttons: (import('.').AuthButtonLogin | import('.').AuthButtonRegister)[];
|
|
32
|
+
buttons: (import('.').AuthButtonLogin | import('.').AuthButtonRegister | import('.').AuthButtonRestore)[];
|
|
33
33
|
fields: (import('.').EmailField | import('.').PasswordField | import('.').PasswordRepeatField)[];
|
|
34
34
|
errorMessage: string;
|
|
35
35
|
successMessage: string;
|
|
@@ -40,7 +40,7 @@ export default class AuthForm {
|
|
|
40
40
|
action: string;
|
|
41
41
|
successMessage: string;
|
|
42
42
|
errorMessage: string;
|
|
43
|
-
buttons:
|
|
43
|
+
buttons: import('.').AuthButtonRestore[];
|
|
44
44
|
fields: import('.').EmailField[];
|
|
45
45
|
};
|
|
46
46
|
refresh: {
|
|
@@ -49,7 +49,7 @@ export default class AuthForm {
|
|
|
49
49
|
action: string;
|
|
50
50
|
successMessage: string;
|
|
51
51
|
errorMessage: string;
|
|
52
|
-
buttons:
|
|
52
|
+
buttons: import('.').AuthButtonRefresh[];
|
|
53
53
|
fields: import('.').PasswordField[];
|
|
54
54
|
};
|
|
55
55
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { default as Auth } from './Auth';
|
|
2
2
|
import { default as AuthButtonLogin } from './buttons/AuthButtonLogin';
|
|
3
|
+
import { default as AuthButtonRefresh } from './buttons/AuthButtonRefresh';
|
|
3
4
|
import { default as AuthButtonRegister } from './buttons/AuthButtonRegister';
|
|
5
|
+
import { default as AuthButtonRestore } from './buttons/AuthButtonRestore';
|
|
4
6
|
import { default as EmailField } from './fields/EmailField';
|
|
5
7
|
import { default as LoginField } from './fields/LoginField';
|
|
6
8
|
import { default as PasswordField } from './fields/PasswordField';
|
|
@@ -9,4 +11,4 @@ import { default as AuthFormSettings } from './settings/AuthFormSettings';
|
|
|
9
11
|
import { default as AuthChunks } from './types/AuthChunks';
|
|
10
12
|
import { default as AuthFormSettingsType } from './types/AuthFormSettingsType';
|
|
11
13
|
import { default as AuthMethods } from './types/AuthMethods';
|
|
12
|
-
export { Auth, AuthButtonLogin, AuthButtonRegister, AuthChunks, AuthFormSettings, AuthFormSettingsType, AuthMethods, EmailField, LoginField, PasswordField, PasswordRepeatField, };
|
|
14
|
+
export { Auth, AuthButtonLogin, AuthButtonRefresh, AuthButtonRegister, AuthButtonRestore, AuthChunks, AuthFormSettings, AuthFormSettingsType, AuthMethods, EmailField, LoginField, PasswordField, PasswordRepeatField, };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { default as AuthButtonLogin } from '../buttons/AuthButtonLogin';
|
|
2
|
+
import { default as AuthButtonRefresh } from '../buttons/AuthButtonRefresh';
|
|
2
3
|
import { default as AuthButtonRegister } from '../buttons/AuthButtonRegister';
|
|
4
|
+
import { default as AuthButtonRestore } from '../buttons/AuthButtonRestore';
|
|
3
5
|
import { default as EmailField } from '../fields/EmailField';
|
|
4
6
|
import { default as PasswordField } from '../fields/PasswordField';
|
|
5
7
|
import { default as PasswordRepeatField } from '../fields/PasswordRepeatField';
|
|
@@ -10,7 +12,7 @@ declare const AuthFormSettings: {
|
|
|
10
12
|
methods: AuthMethods[];
|
|
11
13
|
title: string;
|
|
12
14
|
action: string;
|
|
13
|
-
buttons: (AuthButtonLogin | AuthButtonRegister)[];
|
|
15
|
+
buttons: (AuthButtonLogin | AuthButtonRegister | AuthButtonRestore)[];
|
|
14
16
|
fields: (EmailField | PasswordField)[];
|
|
15
17
|
errorMessage: string;
|
|
16
18
|
successMessage: string;
|
|
@@ -19,7 +21,7 @@ declare const AuthFormSettings: {
|
|
|
19
21
|
methods: never[];
|
|
20
22
|
title: string;
|
|
21
23
|
action: string;
|
|
22
|
-
buttons: (AuthButtonLogin | AuthButtonRegister)[];
|
|
24
|
+
buttons: (AuthButtonLogin | AuthButtonRegister | AuthButtonRestore)[];
|
|
23
25
|
fields: (EmailField | PasswordField | PasswordRepeatField)[];
|
|
24
26
|
errorMessage: string;
|
|
25
27
|
successMessage: string;
|
|
@@ -30,7 +32,7 @@ declare const AuthFormSettings: {
|
|
|
30
32
|
action: string;
|
|
31
33
|
successMessage: string;
|
|
32
34
|
errorMessage: string;
|
|
33
|
-
buttons:
|
|
35
|
+
buttons: AuthButtonRestore[];
|
|
34
36
|
fields: EmailField[];
|
|
35
37
|
};
|
|
36
38
|
refresh: {
|
|
@@ -39,7 +41,7 @@ declare const AuthFormSettings: {
|
|
|
39
41
|
action: string;
|
|
40
42
|
successMessage: string;
|
|
41
43
|
errorMessage: string;
|
|
42
|
-
buttons:
|
|
44
|
+
buttons: AuthButtonRefresh[];
|
|
43
45
|
fields: PasswordField[];
|
|
44
46
|
};
|
|
45
47
|
};
|
package/dist/core/index.d.ts
CHANGED
|
@@ -24,24 +24,35 @@ export default abstract class PF {
|
|
|
24
24
|
id: string;
|
|
25
25
|
text: string;
|
|
26
26
|
isSubmit: boolean;
|
|
27
|
-
disabled: boolean;
|
|
28
27
|
chunk: import('./auth').AuthChunks;
|
|
29
|
-
|
|
28
|
+
isLink: boolean;
|
|
30
29
|
GetChunk: () => import('./auth').AuthChunks;
|
|
31
30
|
type?: import('./types').Statuses | undefined;
|
|
32
31
|
condition?: boolean | undefined;
|
|
33
32
|
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
33
|
+
disabled: boolean;
|
|
34
34
|
} | {
|
|
35
35
|
id: string;
|
|
36
36
|
text: string;
|
|
37
37
|
isSubmit: boolean;
|
|
38
|
+
chunk: import('./auth').AuthChunks;
|
|
39
|
+
isLink: boolean;
|
|
40
|
+
GetChunk: () => import('./auth').AuthChunks;
|
|
41
|
+
type?: import('./types').Statuses | undefined;
|
|
42
|
+
condition?: boolean | undefined;
|
|
43
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
38
44
|
disabled: boolean;
|
|
45
|
+
} | {
|
|
46
|
+
id: string;
|
|
47
|
+
text: string;
|
|
48
|
+
isSubmit: boolean;
|
|
39
49
|
chunk: import('./auth').AuthChunks;
|
|
40
|
-
|
|
50
|
+
isLink: boolean;
|
|
41
51
|
GetChunk: () => import('./auth').AuthChunks;
|
|
42
52
|
type?: import('./types').Statuses | undefined;
|
|
43
53
|
condition?: boolean | undefined;
|
|
44
54
|
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
55
|
+
disabled: boolean;
|
|
45
56
|
})[];
|
|
46
57
|
fields: ({
|
|
47
58
|
id: string;
|
|
@@ -81,24 +92,35 @@ export default abstract class PF {
|
|
|
81
92
|
id: string;
|
|
82
93
|
text: string;
|
|
83
94
|
isSubmit: boolean;
|
|
84
|
-
disabled: boolean;
|
|
85
95
|
chunk: import('./auth').AuthChunks;
|
|
86
|
-
|
|
96
|
+
isLink: boolean;
|
|
87
97
|
GetChunk: () => import('./auth').AuthChunks;
|
|
88
98
|
type?: import('./types').Statuses | undefined;
|
|
89
99
|
condition?: boolean | undefined;
|
|
90
100
|
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
101
|
+
disabled: boolean;
|
|
91
102
|
} | {
|
|
92
103
|
id: string;
|
|
93
104
|
text: string;
|
|
94
105
|
isSubmit: boolean;
|
|
106
|
+
chunk: import('./auth').AuthChunks;
|
|
107
|
+
isLink: boolean;
|
|
108
|
+
GetChunk: () => import('./auth').AuthChunks;
|
|
109
|
+
type?: import('./types').Statuses | undefined;
|
|
110
|
+
condition?: boolean | undefined;
|
|
111
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
95
112
|
disabled: boolean;
|
|
113
|
+
} | {
|
|
114
|
+
id: string;
|
|
115
|
+
text: string;
|
|
116
|
+
isSubmit: boolean;
|
|
96
117
|
chunk: import('./auth').AuthChunks;
|
|
97
|
-
|
|
118
|
+
isLink: boolean;
|
|
98
119
|
GetChunk: () => import('./auth').AuthChunks;
|
|
99
120
|
type?: import('./types').Statuses | undefined;
|
|
100
121
|
condition?: boolean | undefined;
|
|
101
122
|
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
123
|
+
disabled: boolean;
|
|
102
124
|
})[];
|
|
103
125
|
fields: ({
|
|
104
126
|
id: string;
|
|
@@ -149,7 +171,18 @@ export default abstract class PF {
|
|
|
149
171
|
action: string;
|
|
150
172
|
successMessage: string;
|
|
151
173
|
errorMessage: string;
|
|
152
|
-
buttons:
|
|
174
|
+
buttons: {
|
|
175
|
+
id: string;
|
|
176
|
+
text: string;
|
|
177
|
+
isSubmit: boolean;
|
|
178
|
+
chunk: import('./auth').AuthChunks;
|
|
179
|
+
isLink: boolean;
|
|
180
|
+
GetChunk: () => import('./auth').AuthChunks;
|
|
181
|
+
type?: import('./types').Statuses | undefined;
|
|
182
|
+
condition?: boolean | undefined;
|
|
183
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
184
|
+
disabled: boolean;
|
|
185
|
+
}[];
|
|
153
186
|
fields: {
|
|
154
187
|
id: string;
|
|
155
188
|
label: string;
|
|
@@ -171,7 +204,18 @@ export default abstract class PF {
|
|
|
171
204
|
action: string;
|
|
172
205
|
successMessage: string;
|
|
173
206
|
errorMessage: string;
|
|
174
|
-
buttons:
|
|
207
|
+
buttons: {
|
|
208
|
+
id: string;
|
|
209
|
+
text: string;
|
|
210
|
+
isSubmit: boolean;
|
|
211
|
+
chunk: import('./auth').AuthChunks;
|
|
212
|
+
isLink: boolean;
|
|
213
|
+
GetChunk: () => import('./auth').AuthChunks;
|
|
214
|
+
type?: import('./types').Statuses | undefined;
|
|
215
|
+
condition?: boolean | undefined;
|
|
216
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
217
|
+
disabled: boolean;
|
|
218
|
+
}[];
|
|
175
219
|
fields: {
|
|
176
220
|
label: string;
|
|
177
221
|
validator?: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
type authDataT = {
|
|
2
|
+
[k: string]: string;
|
|
3
|
+
};
|
|
1
4
|
declare class S {
|
|
2
|
-
Login(data?:
|
|
3
|
-
[k: string]: string;
|
|
4
|
-
}): Promise<void>;
|
|
5
|
+
Login(data?: authDataT): Promise<void>;
|
|
5
6
|
LoginAs(email: string): Promise<void>;
|
|
6
|
-
Register(): Promise<void>;
|
|
7
|
-
RestorePassword(): Promise<void>;
|
|
8
|
-
|
|
7
|
+
Register(data?: authDataT): Promise<void>;
|
|
8
|
+
RestorePassword(data?: authDataT): Promise<void>;
|
|
9
|
+
PasswordChange(data?: authDataT): Promise<void>;
|
|
9
10
|
RefreshToken(): Promise<void>;
|
|
10
11
|
CheckUuid(checkObj: {
|
|
11
12
|
userId: string;
|
|
@@ -2,11 +2,17 @@ export default abstract class S {
|
|
|
2
2
|
static Auth: {
|
|
3
3
|
Login(data?: {
|
|
4
4
|
[k: string]: string;
|
|
5
|
-
}
|
|
5
|
+
}): Promise<void>;
|
|
6
6
|
LoginAs(email: string): Promise<void>;
|
|
7
|
-
Register(
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
Register(data?: {
|
|
8
|
+
[k: string]: string;
|
|
9
|
+
}): Promise<void>;
|
|
10
|
+
RestorePassword(data?: {
|
|
11
|
+
[k: string]: string;
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
PasswordChange(data?: {
|
|
14
|
+
[k: string]: string;
|
|
15
|
+
}): Promise<void>;
|
|
10
16
|
RefreshToken(): Promise<void>;
|
|
11
17
|
CheckUuid(checkObj: {
|
|
12
18
|
userId: string;
|