sprof 0.0.128 → 0.0.129
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 +196 -2
- package/dist/core/auth/buttons/AuthButtonLogin.d.ts +2 -0
- package/dist/core/auth/buttons/AuthButtonRegister.d.ts +2 -0
- package/dist/core/components/atoms/PButton/PButton.stories.d.ts +6 -6
- package/dist/core/components/atoms/PButton/PButton.vue.d.ts +1 -1
- package/dist/core/components/atoms/PCheckbox/PCheckBox.stories.d.ts +2 -2
- package/dist/core/components/atoms/PCheckbox/PCheckBox.vue.d.ts +1 -1
- package/dist/core/components/atoms/PRadio/PRadio.stories.d.ts +2 -2
- package/dist/core/components/atoms/PRadio/PRadio.vue.d.ts +1 -1
- package/dist/sprof.js +199 -197
- package/dist/sprof.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/core/auth/Auth.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as AuthForm } from './AuthForm';
|
|
2
1
|
import { default as AuthModal } from './AuthModal';
|
|
3
2
|
import { default as AuthStatus } from './AuthStatus';
|
|
4
3
|
declare class Auth<UserT> {
|
|
@@ -7,7 +6,202 @@ declare class Auth<UserT> {
|
|
|
7
6
|
private status;
|
|
8
7
|
private modal;
|
|
9
8
|
constructor();
|
|
10
|
-
get Form():
|
|
9
|
+
get Form(): {
|
|
10
|
+
Block: (fn: () => Promise<void>) => Promise<void>;
|
|
11
|
+
GetValues: () => {
|
|
12
|
+
[k: string]: string;
|
|
13
|
+
};
|
|
14
|
+
Validate: () => string[];
|
|
15
|
+
GetFields: () => import('./fields/AuthField').default[];
|
|
16
|
+
GetMethods: () => import('.').AuthMethods[];
|
|
17
|
+
Chunk: () => import('.').AuthChunks;
|
|
18
|
+
readonly Settings: {
|
|
19
|
+
allowRestore: boolean;
|
|
20
|
+
login: {
|
|
21
|
+
methods: import('.').AuthMethods[];
|
|
22
|
+
title: string;
|
|
23
|
+
action: string;
|
|
24
|
+
buttons: ({
|
|
25
|
+
id: string;
|
|
26
|
+
text: string;
|
|
27
|
+
isSubmit: boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
chunk: import('.').AuthChunks;
|
|
30
|
+
submit: boolean;
|
|
31
|
+
GetChunk: () => import('.').AuthChunks;
|
|
32
|
+
type?: import('../types').Statuses | undefined;
|
|
33
|
+
condition?: boolean | undefined;
|
|
34
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
35
|
+
} | {
|
|
36
|
+
id: string;
|
|
37
|
+
text: string;
|
|
38
|
+
isSubmit: boolean;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
chunk: import('.').AuthChunks;
|
|
41
|
+
submit: boolean;
|
|
42
|
+
GetChunk: () => import('.').AuthChunks;
|
|
43
|
+
type?: import('../types').Statuses | undefined;
|
|
44
|
+
condition?: boolean | undefined;
|
|
45
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
46
|
+
})[];
|
|
47
|
+
fields: ({
|
|
48
|
+
id: string;
|
|
49
|
+
label: string;
|
|
50
|
+
name: string;
|
|
51
|
+
placeholder: string;
|
|
52
|
+
validator?: {
|
|
53
|
+
errors: string[];
|
|
54
|
+
validate: (value?: string | number | undefined) => string[];
|
|
55
|
+
} | undefined;
|
|
56
|
+
method: import('.').AuthMethods;
|
|
57
|
+
value: string;
|
|
58
|
+
Validate: () => string[];
|
|
59
|
+
Reset: () => void;
|
|
60
|
+
} | {
|
|
61
|
+
label: string;
|
|
62
|
+
validator?: {
|
|
63
|
+
errors: string[];
|
|
64
|
+
validate: (value?: string | number | undefined) => string[];
|
|
65
|
+
} | undefined;
|
|
66
|
+
name: string;
|
|
67
|
+
placeholder: string;
|
|
68
|
+
id: string;
|
|
69
|
+
method?: import('.').AuthMethods | undefined;
|
|
70
|
+
value: string;
|
|
71
|
+
Validate: () => string[];
|
|
72
|
+
Reset: () => void;
|
|
73
|
+
})[];
|
|
74
|
+
errorMessage: string;
|
|
75
|
+
successMessage: string;
|
|
76
|
+
};
|
|
77
|
+
register: {
|
|
78
|
+
methods: never[];
|
|
79
|
+
title: string;
|
|
80
|
+
action: string;
|
|
81
|
+
buttons: ({
|
|
82
|
+
id: string;
|
|
83
|
+
text: string;
|
|
84
|
+
isSubmit: boolean;
|
|
85
|
+
disabled: boolean;
|
|
86
|
+
chunk: import('.').AuthChunks;
|
|
87
|
+
submit: boolean;
|
|
88
|
+
GetChunk: () => import('.').AuthChunks;
|
|
89
|
+
type?: import('../types').Statuses | undefined;
|
|
90
|
+
condition?: boolean | undefined;
|
|
91
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
92
|
+
} | {
|
|
93
|
+
id: string;
|
|
94
|
+
text: string;
|
|
95
|
+
isSubmit: boolean;
|
|
96
|
+
disabled: boolean;
|
|
97
|
+
chunk: import('.').AuthChunks;
|
|
98
|
+
submit: boolean;
|
|
99
|
+
GetChunk: () => import('.').AuthChunks;
|
|
100
|
+
type?: import('../types').Statuses | undefined;
|
|
101
|
+
condition?: boolean | undefined;
|
|
102
|
+
action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
|
|
103
|
+
})[];
|
|
104
|
+
fields: ({
|
|
105
|
+
id: string;
|
|
106
|
+
label: string;
|
|
107
|
+
name: string;
|
|
108
|
+
placeholder: string;
|
|
109
|
+
validator?: {
|
|
110
|
+
errors: string[];
|
|
111
|
+
validate: (value?: string | number | undefined) => string[];
|
|
112
|
+
} | undefined;
|
|
113
|
+
method: import('.').AuthMethods;
|
|
114
|
+
value: string;
|
|
115
|
+
Validate: () => string[];
|
|
116
|
+
Reset: () => void;
|
|
117
|
+
} | {
|
|
118
|
+
label: string;
|
|
119
|
+
validator?: {
|
|
120
|
+
errors: string[];
|
|
121
|
+
validate: (value?: string | number | undefined) => string[];
|
|
122
|
+
} | undefined;
|
|
123
|
+
name: string;
|
|
124
|
+
placeholder: string;
|
|
125
|
+
id: string;
|
|
126
|
+
method?: import('.').AuthMethods | undefined;
|
|
127
|
+
value: string;
|
|
128
|
+
Validate: () => string[];
|
|
129
|
+
Reset: () => void;
|
|
130
|
+
} | {
|
|
131
|
+
label: string;
|
|
132
|
+
id: string;
|
|
133
|
+
method?: import('.').AuthMethods | undefined;
|
|
134
|
+
name: string;
|
|
135
|
+
value: string;
|
|
136
|
+
placeholder: string;
|
|
137
|
+
validator?: {
|
|
138
|
+
errors: string[];
|
|
139
|
+
validate: (value?: string | number | undefined) => string[];
|
|
140
|
+
} | undefined;
|
|
141
|
+
Validate: () => string[];
|
|
142
|
+
Reset: () => void;
|
|
143
|
+
})[];
|
|
144
|
+
errorMessage: string;
|
|
145
|
+
successMessage: string;
|
|
146
|
+
};
|
|
147
|
+
restore: {
|
|
148
|
+
title: string;
|
|
149
|
+
methods: never[];
|
|
150
|
+
action: string;
|
|
151
|
+
successMessage: string;
|
|
152
|
+
errorMessage: string;
|
|
153
|
+
buttons: never[];
|
|
154
|
+
fields: {
|
|
155
|
+
id: string;
|
|
156
|
+
label: string;
|
|
157
|
+
name: string;
|
|
158
|
+
placeholder: string;
|
|
159
|
+
validator?: {
|
|
160
|
+
errors: string[];
|
|
161
|
+
validate: (value?: string | number | undefined) => string[];
|
|
162
|
+
} | undefined;
|
|
163
|
+
method: import('.').AuthMethods;
|
|
164
|
+
value: string;
|
|
165
|
+
Validate: () => string[];
|
|
166
|
+
Reset: () => void;
|
|
167
|
+
}[];
|
|
168
|
+
};
|
|
169
|
+
refresh: {
|
|
170
|
+
methods: never[];
|
|
171
|
+
title: string;
|
|
172
|
+
action: string;
|
|
173
|
+
successMessage: string;
|
|
174
|
+
errorMessage: string;
|
|
175
|
+
buttons: never[];
|
|
176
|
+
fields: {
|
|
177
|
+
label: string;
|
|
178
|
+
validator?: {
|
|
179
|
+
errors: string[];
|
|
180
|
+
validate: (value?: string | number | undefined) => string[];
|
|
181
|
+
} | undefined;
|
|
182
|
+
name: string;
|
|
183
|
+
placeholder: string;
|
|
184
|
+
id: string;
|
|
185
|
+
method?: import('.').AuthMethods | undefined;
|
|
186
|
+
value: string;
|
|
187
|
+
Validate: () => string[];
|
|
188
|
+
Reset: () => void;
|
|
189
|
+
}[];
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
IsLogin: () => boolean;
|
|
193
|
+
IsRegister: () => boolean;
|
|
194
|
+
IsRestore: () => boolean;
|
|
195
|
+
IsRefresh: () => boolean;
|
|
196
|
+
SetChunk: (chunk: import('.').AuthChunks) => void;
|
|
197
|
+
GetTitle: () => string;
|
|
198
|
+
GetButtons: () => import('./buttons/AuthButton').default[];
|
|
199
|
+
GetSuccessMessage: () => string;
|
|
200
|
+
GetErrorMessage: () => string;
|
|
201
|
+
GetAction: () => string;
|
|
202
|
+
ResetFields: () => void;
|
|
203
|
+
Reset: () => void;
|
|
204
|
+
};
|
|
11
205
|
get Status(): AuthStatus<UserT>;
|
|
12
206
|
get Modal(): AuthModal;
|
|
13
207
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { default as AuthChunks } from '../types/AuthChunks';
|
|
1
2
|
import { default as AuthButton } from './AuthButton';
|
|
2
3
|
export default class AuthButtonLogin extends AuthButton {
|
|
3
4
|
id: string;
|
|
4
5
|
text: string;
|
|
5
6
|
isSubmit: boolean;
|
|
6
7
|
disabled: boolean;
|
|
8
|
+
chunk: AuthChunks;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { default as AuthChunks } from '../types/AuthChunks';
|
|
1
2
|
import { default as AuthButton } from './AuthButton';
|
|
2
3
|
export default class AuthButtonLogin extends AuthButton {
|
|
3
4
|
id: string;
|
|
4
5
|
text: string;
|
|
5
6
|
isSubmit: boolean;
|
|
6
7
|
disabled: boolean;
|
|
8
|
+
chunk: AuthChunks;
|
|
7
9
|
}
|
|
@@ -53,8 +53,8 @@ declare const _default: Meta<{
|
|
|
53
53
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
54
54
|
click: (...args: any[]) => void;
|
|
55
55
|
}, import('vue').PublicProps, {
|
|
56
|
-
type: Statuses;
|
|
57
56
|
size: Sizes;
|
|
57
|
+
type: Statuses;
|
|
58
58
|
text: string;
|
|
59
59
|
height: string;
|
|
60
60
|
margin: string;
|
|
@@ -118,8 +118,8 @@ declare const _default: Meta<{
|
|
|
118
118
|
}>> & Readonly<{
|
|
119
119
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
120
120
|
}>, {}, {}, {}, {}, {
|
|
121
|
-
type: Statuses;
|
|
122
121
|
size: Sizes;
|
|
122
|
+
type: Statuses;
|
|
123
123
|
text: string;
|
|
124
124
|
height: string;
|
|
125
125
|
margin: string;
|
|
@@ -182,8 +182,8 @@ declare const _default: Meta<{
|
|
|
182
182
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
183
183
|
click: (...args: any[]) => void;
|
|
184
184
|
}, string, {
|
|
185
|
-
type: Statuses;
|
|
186
185
|
size: Sizes;
|
|
186
|
+
type: Statuses;
|
|
187
187
|
text: string;
|
|
188
188
|
height: string;
|
|
189
189
|
margin: string;
|
|
@@ -249,8 +249,8 @@ export declare const Base: StoryFn<{
|
|
|
249
249
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
250
250
|
click: (...args: any[]) => void;
|
|
251
251
|
}, import('vue').PublicProps, {
|
|
252
|
-
type: Statuses;
|
|
253
252
|
size: Sizes;
|
|
253
|
+
type: Statuses;
|
|
254
254
|
text: string;
|
|
255
255
|
height: string;
|
|
256
256
|
margin: string;
|
|
@@ -314,8 +314,8 @@ export declare const Base: StoryFn<{
|
|
|
314
314
|
}>> & Readonly<{
|
|
315
315
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
316
316
|
}>, {}, {}, {}, {}, {
|
|
317
|
-
type: Statuses;
|
|
318
317
|
size: Sizes;
|
|
318
|
+
type: Statuses;
|
|
319
319
|
text: string;
|
|
320
320
|
height: string;
|
|
321
321
|
margin: string;
|
|
@@ -378,8 +378,8 @@ export declare const Base: StoryFn<{
|
|
|
378
378
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
379
379
|
click: (...args: any[]) => void;
|
|
380
380
|
}, string, {
|
|
381
|
-
type: Statuses;
|
|
382
381
|
size: Sizes;
|
|
382
|
+
type: Statuses;
|
|
383
383
|
text: string;
|
|
384
384
|
height: string;
|
|
385
385
|
margin: string;
|
|
@@ -97,8 +97,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
|
|
|
97
97
|
}>> & Readonly<{
|
|
98
98
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
}>, {
|
|
100
|
-
type: Statuses;
|
|
101
100
|
size: Sizes;
|
|
101
|
+
type: Statuses;
|
|
102
102
|
text: string;
|
|
103
103
|
height: string;
|
|
104
104
|
margin: string;
|
|
@@ -80,8 +80,8 @@ declare const _default: {
|
|
|
80
80
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
81
81
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
|
-
label: string;
|
|
84
83
|
size: string;
|
|
84
|
+
label: string;
|
|
85
85
|
value: string | boolean;
|
|
86
86
|
margin: string;
|
|
87
87
|
padding: string;
|
|
@@ -212,8 +212,8 @@ export declare const Default: StoryFn<import('vue').DefineComponent<globalThis.E
|
|
|
212
212
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
213
213
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
214
214
|
}>, {
|
|
215
|
-
label: string;
|
|
216
215
|
size: string;
|
|
216
|
+
label: string;
|
|
217
217
|
value: string | boolean;
|
|
218
218
|
margin: string;
|
|
219
219
|
padding: string;
|
|
@@ -77,8 +77,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
77
77
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
78
78
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
79
79
|
}>, {
|
|
80
|
-
label: string;
|
|
81
80
|
size: string;
|
|
81
|
+
label: string;
|
|
82
82
|
value: string | boolean;
|
|
83
83
|
margin: string;
|
|
84
84
|
padding: string;
|
|
@@ -88,8 +88,8 @@ declare const _default: {
|
|
|
88
88
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
89
89
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
90
90
|
}>, {
|
|
91
|
-
label: string;
|
|
92
91
|
size: string;
|
|
92
|
+
label: string;
|
|
93
93
|
name: string;
|
|
94
94
|
value: string | boolean;
|
|
95
95
|
margin: string;
|
|
@@ -225,8 +225,8 @@ export declare const DefaultRadio: StoryFn<import('vue').DefineComponent<globalT
|
|
|
225
225
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
226
226
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
227
227
|
}>, {
|
|
228
|
-
label: string;
|
|
229
228
|
size: string;
|
|
229
|
+
label: string;
|
|
230
230
|
name: string;
|
|
231
231
|
value: string | boolean;
|
|
232
232
|
margin: string;
|
|
@@ -85,8 +85,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
85
85
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
86
86
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
87
87
|
}>, {
|
|
88
|
-
label: string;
|
|
89
88
|
size: string;
|
|
89
|
+
label: string;
|
|
90
90
|
name: string;
|
|
91
91
|
value: string | boolean;
|
|
92
92
|
margin: string;
|