alytus-ff 0.1.25 → 0.1.27
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/README.md +1 -0
- package/dist/App.vue.d.ts +206 -4
- package/dist/alytus-ff.js +430 -82
- package/dist/alytus-ff.umd.cjs +1 -1
- package/dist/components/Nav/UserMenu.vue.d.ts +154 -0
- package/dist/index.d.ts +10 -3
- package/dist/style.css +1 -1
- package/dist/types/Account.d.ts +1 -0
- package/dist/types/Address.d.ts +7 -0
- package/dist/types/Api.d.ts +4 -0
- package/dist/types/Base.d.ts +9 -0
- package/dist/types/Lang.d.ts +7 -0
- package/dist/types/Nav.d.ts +6 -0
- package/dist/types/User.d.ts +2 -0
- package/dist/utils/LangUtil.d.ts +3 -0
- package/dist/utils/NavUtil.d.ts +1 -0
- package/dist/utils/StringUtil.d.ts +4 -0
- package/package.json +1 -1
- package/src/components/Nav/UserMenu.vue +178 -0
package/README.md
CHANGED
package/dist/App.vue.d.ts
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
|
+
import { IUser } from './types/User.ts';
|
|
2
|
+
import { LanguageAndFlag } from './types/Lang.ts';
|
|
3
|
+
import { IAccount } from './types/Account.ts';
|
|
1
4
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
5
|
showDialog: import('vue').Ref<boolean, boolean>;
|
|
6
|
+
showDialog2: import('vue').Ref<boolean, boolean>;
|
|
7
|
+
baseUrl: import('vue').Ref<string, string>;
|
|
8
|
+
currentUser: import('vue').Ref<{
|
|
9
|
+
name: string;
|
|
10
|
+
surname: string | null;
|
|
11
|
+
initials: string;
|
|
12
|
+
color: string;
|
|
13
|
+
avatar_thumb: string | null;
|
|
14
|
+
email: string;
|
|
15
|
+
locale: string;
|
|
16
|
+
}, IUser | {
|
|
17
|
+
name: string;
|
|
18
|
+
surname: string | null;
|
|
19
|
+
initials: string;
|
|
20
|
+
color: string;
|
|
21
|
+
avatar_thumb: string | null;
|
|
22
|
+
email: string;
|
|
23
|
+
locale: string;
|
|
24
|
+
}>;
|
|
25
|
+
currentAccount: import('vue').Ref<{
|
|
26
|
+
id: number;
|
|
27
|
+
name: string;
|
|
28
|
+
surname: string | null;
|
|
29
|
+
initials: string;
|
|
30
|
+
}, IAccount | {
|
|
31
|
+
id: number;
|
|
32
|
+
name: string;
|
|
33
|
+
surname: string | null;
|
|
34
|
+
initials: string;
|
|
35
|
+
}>;
|
|
36
|
+
accounts: import('vue').Ref<{
|
|
37
|
+
id: number;
|
|
38
|
+
name: string;
|
|
39
|
+
surname: string | null;
|
|
40
|
+
initials: string;
|
|
41
|
+
}[], IAccount[] | {
|
|
42
|
+
id: number;
|
|
43
|
+
name: string;
|
|
44
|
+
surname: string | null;
|
|
45
|
+
initials: string;
|
|
46
|
+
}[]>;
|
|
47
|
+
langs: import('vue').Ref<{
|
|
48
|
+
title: string;
|
|
49
|
+
value: string;
|
|
50
|
+
icon: string;
|
|
51
|
+
}[], LanguageAndFlag[] | {
|
|
52
|
+
title: string;
|
|
53
|
+
value: string;
|
|
54
|
+
icon: string;
|
|
55
|
+
}[]>;
|
|
3
56
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
4
57
|
PageSubtitle: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
58
|
subtitle: {
|
|
@@ -24,7 +77,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
24
77
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
78
|
UserAvatar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
26
79
|
user: {
|
|
27
|
-
type: import('vue').PropType<
|
|
80
|
+
type: import('vue').PropType<IUser>;
|
|
28
81
|
required: true;
|
|
29
82
|
};
|
|
30
83
|
size: {
|
|
@@ -39,7 +92,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
39
92
|
fullName: import('vue').ComputedRef<string>;
|
|
40
93
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
41
94
|
user: {
|
|
42
|
-
type: import('vue').PropType<
|
|
95
|
+
type: import('vue').PropType<IUser>;
|
|
43
96
|
required: true;
|
|
44
97
|
};
|
|
45
98
|
size: {
|
|
@@ -53,7 +106,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
53
106
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
54
107
|
AccountAvatar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
55
108
|
item: {
|
|
56
|
-
type: import('vue').PropType<
|
|
109
|
+
type: import('vue').PropType<IAccount>;
|
|
57
110
|
required: true;
|
|
58
111
|
};
|
|
59
112
|
size: {
|
|
@@ -62,7 +115,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
62
115
|
};
|
|
63
116
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
64
117
|
item: {
|
|
65
|
-
type: import('vue').PropType<
|
|
118
|
+
type: import('vue').PropType<IAccount>;
|
|
66
119
|
required: true;
|
|
67
120
|
};
|
|
68
121
|
size: {
|
|
@@ -152,5 +205,154 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
152
205
|
noFullScreen: boolean;
|
|
153
206
|
fullHeight: boolean;
|
|
154
207
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
208
|
+
UserMenu: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
209
|
+
currentUser: {
|
|
210
|
+
type: import('vue').PropType<IUser>;
|
|
211
|
+
required: true;
|
|
212
|
+
};
|
|
213
|
+
currentAccounts: {
|
|
214
|
+
type: import('vue').PropType<IAccount[]>;
|
|
215
|
+
required: true;
|
|
216
|
+
};
|
|
217
|
+
currentLang: {
|
|
218
|
+
type: import('vue').PropType<LanguageAndFlag>;
|
|
219
|
+
required: true;
|
|
220
|
+
};
|
|
221
|
+
accounts: {
|
|
222
|
+
type: import('vue').PropType<IAccount[]>;
|
|
223
|
+
required: true;
|
|
224
|
+
};
|
|
225
|
+
langs: {
|
|
226
|
+
type: import('vue').PropType<LanguageAndFlag[]>;
|
|
227
|
+
required: true;
|
|
228
|
+
};
|
|
229
|
+
baseUrl: {
|
|
230
|
+
type: StringConstructor;
|
|
231
|
+
required: true;
|
|
232
|
+
};
|
|
233
|
+
texts: {
|
|
234
|
+
type: import('vue').PropType<{
|
|
235
|
+
[key: string]: string;
|
|
236
|
+
}>;
|
|
237
|
+
required: true;
|
|
238
|
+
};
|
|
239
|
+
multipleAccounts: {
|
|
240
|
+
type: BooleanConstructor;
|
|
241
|
+
default: boolean;
|
|
242
|
+
};
|
|
243
|
+
}>, {
|
|
244
|
+
isOpen: import('vue').Ref<boolean, boolean>;
|
|
245
|
+
userName: import('vue').ComputedRef<string>;
|
|
246
|
+
langMenu: import('vue').Ref<boolean, boolean>;
|
|
247
|
+
accountIds: import('vue').ComputedRef<number[]>;
|
|
248
|
+
accountTitle: import('vue').ComputedRef<string>;
|
|
249
|
+
selectAccount: (account: IAccount) => void;
|
|
250
|
+
openProfile: () => void;
|
|
251
|
+
switchLang: (lang: LanguageAndFlag) => void;
|
|
252
|
+
logOut: () => void;
|
|
253
|
+
}, {}, {}, {
|
|
254
|
+
mdiLogout(): string;
|
|
255
|
+
mdiAccount(): string;
|
|
256
|
+
mdiMenuDown(): string;
|
|
257
|
+
mdiCheck(): string;
|
|
258
|
+
formatFullName: (obj: {
|
|
259
|
+
name: string;
|
|
260
|
+
surname: string | null;
|
|
261
|
+
}) => string;
|
|
262
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("open-profile" | "select-account" | "unselect-account" | "switch-lang" | "log-out")[], "open-profile" | "select-account" | "unselect-account" | "switch-lang" | "log-out", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
263
|
+
currentUser: {
|
|
264
|
+
type: import('vue').PropType<IUser>;
|
|
265
|
+
required: true;
|
|
266
|
+
};
|
|
267
|
+
currentAccounts: {
|
|
268
|
+
type: import('vue').PropType<IAccount[]>;
|
|
269
|
+
required: true;
|
|
270
|
+
};
|
|
271
|
+
currentLang: {
|
|
272
|
+
type: import('vue').PropType<LanguageAndFlag>;
|
|
273
|
+
required: true;
|
|
274
|
+
};
|
|
275
|
+
accounts: {
|
|
276
|
+
type: import('vue').PropType<IAccount[]>;
|
|
277
|
+
required: true;
|
|
278
|
+
};
|
|
279
|
+
langs: {
|
|
280
|
+
type: import('vue').PropType<LanguageAndFlag[]>;
|
|
281
|
+
required: true;
|
|
282
|
+
};
|
|
283
|
+
baseUrl: {
|
|
284
|
+
type: StringConstructor;
|
|
285
|
+
required: true;
|
|
286
|
+
};
|
|
287
|
+
texts: {
|
|
288
|
+
type: import('vue').PropType<{
|
|
289
|
+
[key: string]: string;
|
|
290
|
+
}>;
|
|
291
|
+
required: true;
|
|
292
|
+
};
|
|
293
|
+
multipleAccounts: {
|
|
294
|
+
type: BooleanConstructor;
|
|
295
|
+
default: boolean;
|
|
296
|
+
};
|
|
297
|
+
}>> & Readonly<{
|
|
298
|
+
"onOpen-profile"?: ((...args: any[]) => any) | undefined;
|
|
299
|
+
"onSelect-account"?: ((...args: any[]) => any) | undefined;
|
|
300
|
+
"onUnselect-account"?: ((...args: any[]) => any) | undefined;
|
|
301
|
+
"onSwitch-lang"?: ((...args: any[]) => any) | undefined;
|
|
302
|
+
"onLog-out"?: ((...args: any[]) => any) | undefined;
|
|
303
|
+
}>, {
|
|
304
|
+
multipleAccounts: boolean;
|
|
305
|
+
}, {}, {
|
|
306
|
+
AccountAvatar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
307
|
+
item: {
|
|
308
|
+
type: import('vue').PropType<IAccount>;
|
|
309
|
+
required: true;
|
|
310
|
+
};
|
|
311
|
+
size: {
|
|
312
|
+
type: NumberConstructor;
|
|
313
|
+
default: number;
|
|
314
|
+
};
|
|
315
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
316
|
+
item: {
|
|
317
|
+
type: import('vue').PropType<IAccount>;
|
|
318
|
+
required: true;
|
|
319
|
+
};
|
|
320
|
+
size: {
|
|
321
|
+
type: NumberConstructor;
|
|
322
|
+
default: number;
|
|
323
|
+
};
|
|
324
|
+
}>> & Readonly<{}>, {
|
|
325
|
+
size: number;
|
|
326
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
327
|
+
UserAvatar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
328
|
+
user: {
|
|
329
|
+
type: import('vue').PropType<IUser>;
|
|
330
|
+
required: true;
|
|
331
|
+
};
|
|
332
|
+
size: {
|
|
333
|
+
type: NumberConstructor;
|
|
334
|
+
required: true;
|
|
335
|
+
};
|
|
336
|
+
baseUrl: {
|
|
337
|
+
type: StringConstructor;
|
|
338
|
+
required: true;
|
|
339
|
+
};
|
|
340
|
+
}>, {
|
|
341
|
+
fullName: import('vue').ComputedRef<string>;
|
|
342
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
343
|
+
user: {
|
|
344
|
+
type: import('vue').PropType<IUser>;
|
|
345
|
+
required: true;
|
|
346
|
+
};
|
|
347
|
+
size: {
|
|
348
|
+
type: NumberConstructor;
|
|
349
|
+
required: true;
|
|
350
|
+
};
|
|
351
|
+
baseUrl: {
|
|
352
|
+
type: StringConstructor;
|
|
353
|
+
required: true;
|
|
354
|
+
};
|
|
355
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
356
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
155
357
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
156
358
|
export default _default;
|