@club-employes/utopia 4.215.0 → 4.217.0

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,7 +1,17 @@
1
1
  import { GrantUsersSelectionProps, GrantUsersSelectionUser, GrantUsersSelectionGroup } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<GrantUsersSelectionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ 'users-list'?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLDivElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: DefineComponent<GrantUsersSelectionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
13
  "update:modelValue": (value: string) => any;
14
+ "category-change": (category: "all" | "group" | "manual") => any;
5
15
  "search-users": (query: string) => any;
6
16
  "page-change-users": (page: number) => any;
7
17
  "page-size-change-users": (size: number) => any;
@@ -10,6 +20,7 @@ declare const _default: DefineComponent<GrantUsersSelectionProps, {}, {}, {}, {}
10
20
  "page-size-change-groups": (size: number) => any;
11
21
  }, string, PublicProps, Readonly<GrantUsersSelectionProps> & Readonly<{
12
22
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
23
+ "onCategory-change"?: ((category: "all" | "group" | "manual") => any) | undefined;
13
24
  "onSearch-users"?: ((query: string) => any) | undefined;
14
25
  "onPage-change-users"?: ((page: number) => any) | undefined;
15
26
  "onPage-size-change-users"?: ((size: number) => any) | undefined;
@@ -33,4 +44,10 @@ declare const _default: DefineComponent<GrantUsersSelectionProps, {}, {}, {}, {}
33
44
  usersLoading: boolean;
34
45
  groupsLoading: boolean;
35
46
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
47
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
48
  export default _default;
49
+ type __VLS_WithTemplateSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -0,0 +1,30 @@
1
+ import { UserCardProps, UserCardFeature, UserCardLink, UserCardTab, UserCardLocale } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = UserCardProps;
4
+ type __VLS_PublicProps = {
5
+ 'show'?: boolean;
6
+ } & __VLS_Props;
7
+ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
+ "update:activeTab": (key: string) => any;
9
+ "select-feature": (feature: UserCardFeature) => any;
10
+ "select-link": (link: UserCardLink) => any;
11
+ "update:activeLocale": (code: string) => any;
12
+ logout: () => any;
13
+ "update:show": (value: boolean) => any;
14
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
+ "onUpdate:activeTab"?: ((key: string) => any) | undefined;
16
+ "onSelect-feature"?: ((feature: UserCardFeature) => any) | undefined;
17
+ "onSelect-link"?: ((link: UserCardLink) => any) | undefined;
18
+ "onUpdate:activeLocale"?: ((code: string) => any) | undefined;
19
+ onLogout?: (() => any) | undefined;
20
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
21
+ }>, {
22
+ tabs: UserCardTab[];
23
+ features: UserCardFeature[];
24
+ links: UserCardLink[];
25
+ locales: UserCardLocale[];
26
+ languageLabel: string;
27
+ logoutLabel: string;
28
+ emptyFeaturesLabel: string;
29
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
30
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as UserCard } from './UserCard';
2
+ export type { UserCardProps, UserCardTab, UserCardFeature, UserCardLocale, UserCardLink } from './types';
@@ -0,0 +1,58 @@
1
+ export interface UserCardTab {
2
+ /** Unique key for this tab */
3
+ key: string;
4
+ /** Display label */
5
+ label: string;
6
+ }
7
+ export interface UserCardFeature {
8
+ /** Unique identifier */
9
+ id: string;
10
+ /** Icon name (Lucide) */
11
+ icon: string;
12
+ /** Display label */
13
+ label: string;
14
+ /** Whether this feature links to an external site */
15
+ external?: boolean;
16
+ }
17
+ export interface UserCardLocale {
18
+ /** Locale code (e.g. 'fr', 'en') */
19
+ code: string;
20
+ /** Display label (e.g. 'FR', 'EN') */
21
+ label: string;
22
+ }
23
+ export interface UserCardLink {
24
+ /** Unique identifier */
25
+ id: string;
26
+ /** Icon name (Lucide) */
27
+ icon: string;
28
+ /** Display label */
29
+ label: string;
30
+ }
31
+ export interface UserCardProps {
32
+ /** User's full name */
33
+ fullName: string;
34
+ /** User's email address */
35
+ email: string;
36
+ /** User's initials for the avatar (e.g. 'BJ') */
37
+ initials: string;
38
+ /** Available role tabs */
39
+ tabs?: UserCardTab[];
40
+ /** Currently active tab key */
41
+ activeTab?: string;
42
+ /** Features to display in the grid */
43
+ features?: UserCardFeature[];
44
+ /** Currently active feature id */
45
+ activeFeatureId?: string;
46
+ /** Action links displayed before logout (e.g. "Mon compte") */
47
+ links?: UserCardLink[];
48
+ /** Available locales */
49
+ locales?: UserCardLocale[];
50
+ /** Currently active locale code */
51
+ activeLocale?: string;
52
+ /** Label for the language section */
53
+ languageLabel?: string;
54
+ /** Label for the logout button */
55
+ logoutLabel?: string;
56
+ /** Text shown when no features are available */
57
+ emptyFeaturesLabel?: string;
58
+ }
@@ -49,3 +49,5 @@ export { Toast, ToastService, ToastServiceKey, useToast } from './Toast';
49
49
  export type { ToastProps, ToastOptions, ToastItem, ToastAction, ToastPosition, ToastSize, ToastVariant, ToastServiceApi, ToastServiceOptions } from './Toast';
50
50
  export { EmptyState } from './EmptyState';
51
51
  export type { EmptyStateProps } from './EmptyState';
52
+ export { UserCard } from './UserCard';
53
+ export type { UserCardProps, UserCardTab, UserCardFeature, UserCardLocale, UserCardLink } from './UserCard';