sprof 0.0.130 → 0.0.132

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.
@@ -1,5 +1,3 @@
1
- import { default as AuthModal } from './AuthModal';
2
- import { default as AuthStatus } from './AuthStatus';
3
1
  declare class Auth<UserT> {
4
2
  static instance: unknown | undefined;
5
3
  private form;
@@ -25,22 +23,35 @@ declare class Auth<UserT> {
25
23
  id: string;
26
24
  text: string;
27
25
  isSubmit: boolean;
28
- disabled: boolean;
29
26
  chunk: import('.').AuthChunks;
27
+ isLink: boolean;
30
28
  GetChunk: () => import('.').AuthChunks;
31
29
  type?: import('../types').Statuses | undefined;
32
30
  condition?: boolean | undefined;
33
31
  action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
32
+ disabled: boolean;
34
33
  } | {
35
34
  id: string;
36
35
  text: string;
37
36
  isSubmit: boolean;
37
+ chunk: import('.').AuthChunks;
38
+ isLink: boolean;
39
+ GetChunk: () => import('.').AuthChunks;
40
+ type?: import('../types').Statuses | undefined;
41
+ condition?: boolean | undefined;
42
+ action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
38
43
  disabled: boolean;
44
+ } | {
45
+ id: string;
46
+ text: string;
47
+ isSubmit: boolean;
39
48
  chunk: import('.').AuthChunks;
49
+ isLink: boolean;
40
50
  GetChunk: () => import('.').AuthChunks;
41
51
  type?: import('../types').Statuses | undefined;
42
52
  condition?: boolean | undefined;
43
53
  action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
54
+ disabled: boolean;
44
55
  })[];
45
56
  fields: ({
46
57
  id: string;
@@ -80,22 +91,35 @@ declare class Auth<UserT> {
80
91
  id: string;
81
92
  text: string;
82
93
  isSubmit: boolean;
83
- disabled: boolean;
84
94
  chunk: import('.').AuthChunks;
95
+ isLink: boolean;
85
96
  GetChunk: () => import('.').AuthChunks;
86
97
  type?: import('../types').Statuses | undefined;
87
98
  condition?: boolean | undefined;
88
99
  action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
100
+ disabled: boolean;
89
101
  } | {
90
102
  id: string;
91
103
  text: string;
92
104
  isSubmit: boolean;
105
+ chunk: import('.').AuthChunks;
106
+ isLink: boolean;
107
+ GetChunk: () => import('.').AuthChunks;
108
+ type?: import('../types').Statuses | undefined;
109
+ condition?: boolean | undefined;
110
+ action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
93
111
  disabled: boolean;
112
+ } | {
113
+ id: string;
114
+ text: string;
115
+ isSubmit: boolean;
94
116
  chunk: import('.').AuthChunks;
117
+ isLink: boolean;
95
118
  GetChunk: () => import('.').AuthChunks;
96
119
  type?: import('../types').Statuses | undefined;
97
120
  condition?: boolean | undefined;
98
121
  action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
122
+ disabled: boolean;
99
123
  })[];
100
124
  fields: ({
101
125
  id: string;
@@ -146,7 +170,18 @@ declare class Auth<UserT> {
146
170
  action: string;
147
171
  successMessage: string;
148
172
  errorMessage: string;
149
- buttons: never[];
173
+ buttons: {
174
+ id: string;
175
+ text: string;
176
+ isSubmit: boolean;
177
+ chunk: import('.').AuthChunks;
178
+ isLink: boolean;
179
+ GetChunk: () => import('.').AuthChunks;
180
+ type?: import('../types').Statuses | undefined;
181
+ condition?: boolean | undefined;
182
+ action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
183
+ disabled: boolean;
184
+ }[];
150
185
  fields: {
151
186
  id: string;
152
187
  label: string;
@@ -168,7 +203,18 @@ declare class Auth<UserT> {
168
203
  action: string;
169
204
  successMessage: string;
170
205
  errorMessage: string;
171
- buttons: never[];
206
+ buttons: {
207
+ id: string;
208
+ text: string;
209
+ isSubmit: boolean;
210
+ chunk: import('.').AuthChunks;
211
+ isLink: boolean;
212
+ GetChunk: () => import('.').AuthChunks;
213
+ type?: import('../types').Statuses | undefined;
214
+ condition?: boolean | undefined;
215
+ action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
216
+ disabled: boolean;
217
+ }[];
172
218
  fields: {
173
219
  label: string;
174
220
  validator?: {
@@ -198,8 +244,22 @@ declare class Auth<UserT> {
198
244
  ResetFields: () => void;
199
245
  Reset: () => void;
200
246
  };
201
- get Status(): AuthStatus<UserT>;
202
- get Modal(): AuthModal;
247
+ get Status(): {
248
+ DeprecateLogout: () => void;
249
+ AllowLogout: () => void;
250
+ readonly IsAuth: boolean;
251
+ readonly User: import('vue').UnwrapRef<UserT> | undefined;
252
+ SetUserConstructor: (c: import('../helpers/Classes').Constructable<import('../interfaces/IWithId').default>) => void;
253
+ SetState: (authInfo: import('../types/AuthInfo').AuthInfo) => void;
254
+ Logout: () => void;
255
+ Actualize: () => void;
256
+ };
257
+ get Modal(): {
258
+ IsClosable: () => boolean;
259
+ IsVisible: () => boolean;
260
+ Close: () => void;
261
+ Open: (closable?: boolean | undefined) => void;
262
+ };
203
263
  }
204
264
  declare const _default: Auth<unknown>;
205
265
  export default _default;
@@ -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: never[];
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: never[];
52
+ buttons: import('.').AuthButtonRefresh[];
53
53
  fields: import('.').PasswordField[];
54
54
  };
55
55
  };
@@ -4,5 +4,6 @@ export default class AuthButton extends Button {
4
4
  id: string;
5
5
  chunk: AuthChunks;
6
6
  isSubmit: boolean;
7
+ isLink: boolean;
7
8
  GetChunk(): AuthChunks;
8
9
  }
@@ -4,6 +4,5 @@ export default class AuthButtonLogin extends AuthButton {
4
4
  id: string;
5
5
  text: string;
6
6
  isSubmit: boolean;
7
- disabled: boolean;
8
7
  chunk: AuthChunks;
9
8
  }
@@ -0,0 +1,8 @@
1
+ import { default as AuthChunks } from '../types/AuthChunks';
2
+ import { default as AuthButton } from './AuthButton';
3
+ export default class AuthButtonRefresh extends AuthButton {
4
+ id: string;
5
+ text: string;
6
+ isSubmit: boolean;
7
+ chunk: AuthChunks;
8
+ }
@@ -4,6 +4,5 @@ export default class AuthButtonLogin extends AuthButton {
4
4
  id: string;
5
5
  text: string;
6
6
  isSubmit: boolean;
7
- disabled: boolean;
8
7
  chunk: AuthChunks;
9
8
  }
@@ -0,0 +1,8 @@
1
+ import { default as AuthChunks } from '../types/AuthChunks';
2
+ import { default as AuthButton } from './AuthButton';
3
+ export default class AuthButtonRestore extends AuthButton {
4
+ id: string;
5
+ text: string;
6
+ isSubmit: boolean;
7
+ chunk: AuthChunks;
8
+ }
@@ -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: never[];
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: never[];
44
+ buttons: AuthButtonRefresh[];
43
45
  fields: PasswordField[];
44
46
  };
45
47
  };
@@ -91,6 +91,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
91
91
  onClose?: ((...args: any[]) => any) | undefined;
92
92
  onSave?: ((...args: any[]) => any) | undefined;
93
93
  }>, {
94
+ closable: boolean;
94
95
  title: string;
95
96
  top: string;
96
97
  margin: string;
@@ -98,7 +99,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
98
99
  width: string;
99
100
  maxHeight: string;
100
101
  show: boolean;
101
- closable: boolean;
102
102
  showClose: boolean;
103
103
  showCloseDialog: boolean;
104
104
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
@@ -24,22 +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;
28
+ isLink: boolean;
29
29
  GetChunk: () => import('./auth').AuthChunks;
30
30
  type?: import('./types').Statuses | undefined;
31
31
  condition?: boolean | undefined;
32
32
  action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
33
+ disabled: boolean;
33
34
  } | {
34
35
  id: string;
35
36
  text: string;
36
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;
37
44
  disabled: boolean;
45
+ } | {
46
+ id: string;
47
+ text: string;
48
+ isSubmit: boolean;
38
49
  chunk: import('./auth').AuthChunks;
50
+ isLink: boolean;
39
51
  GetChunk: () => import('./auth').AuthChunks;
40
52
  type?: import('./types').Statuses | undefined;
41
53
  condition?: boolean | undefined;
42
54
  action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
55
+ disabled: boolean;
43
56
  })[];
44
57
  fields: ({
45
58
  id: string;
@@ -79,22 +92,35 @@ export default abstract class PF {
79
92
  id: string;
80
93
  text: string;
81
94
  isSubmit: boolean;
82
- disabled: boolean;
83
95
  chunk: import('./auth').AuthChunks;
96
+ isLink: boolean;
84
97
  GetChunk: () => import('./auth').AuthChunks;
85
98
  type?: import('./types').Statuses | undefined;
86
99
  condition?: boolean | undefined;
87
100
  action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
101
+ disabled: boolean;
88
102
  } | {
89
103
  id: string;
90
104
  text: string;
91
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;
92
112
  disabled: boolean;
113
+ } | {
114
+ id: string;
115
+ text: string;
116
+ isSubmit: boolean;
93
117
  chunk: import('./auth').AuthChunks;
118
+ isLink: boolean;
94
119
  GetChunk: () => import('./auth').AuthChunks;
95
120
  type?: import('./types').Statuses | undefined;
96
121
  condition?: boolean | undefined;
97
122
  action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
123
+ disabled: boolean;
98
124
  })[];
99
125
  fields: ({
100
126
  id: string;
@@ -145,7 +171,18 @@ export default abstract class PF {
145
171
  action: string;
146
172
  successMessage: string;
147
173
  errorMessage: string;
148
- buttons: never[];
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
+ }[];
149
186
  fields: {
150
187
  id: string;
151
188
  label: string;
@@ -167,7 +204,18 @@ export default abstract class PF {
167
204
  action: string;
168
205
  successMessage: string;
169
206
  errorMessage: string;
170
- buttons: never[];
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
+ }[];
171
219
  fields: {
172
220
  label: string;
173
221
  validator?: {