valtech-components 2.0.665 → 2.0.668

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,117 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { WelcomeCardMetadata, WelcomeCardClickEvent } from './types';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * val-welcome-card
6
- *
7
- * A modern welcome/greeting card with avatar, animated gradient background,
8
- * and optional action buttons. Perfect for dashboard headers.
9
- *
10
- * @example Basic usage
11
- * ```html
12
- * <val-welcome-card
13
- * [props]="{
14
- * greeting: 'Welcome back',
15
- * user: { name: 'John Doe', email: 'john@example.com' }
16
- * }"
17
- * />
18
- * ```
19
- *
20
- * @example With gradient variant
21
- * ```html
22
- * <val-welcome-card
23
- * [props]="{
24
- * variant: 'gradient',
25
- * greeting: 'Good morning',
26
- * user: { name: 'Jane', email: 'jane@example.com' },
27
- * gradientFrom: 'primary',
28
- * gradientTo: 'tertiary'
29
- * }"
30
- * />
31
- * ```
32
- *
33
- * @example With i18n
34
- * ```html
35
- * <val-welcome-card
36
- * [props]="{
37
- * greetingKey: 'welcome',
38
- * i18nNamespace: 'Dashboard',
39
- * user: user()
40
- * }"
41
- * />
42
- * ```
43
- */
44
- export declare class WelcomeCardComponent {
45
- private i18n;
46
- private themeService;
47
- /** Component configuration */
48
- readonly props: import("@angular/core").InputSignal<Partial<WelcomeCardMetadata>>;
49
- /** Event emitted when card elements are clicked */
50
- cardClick: EventEmitter<WelcomeCardClickEvent>;
51
- /** Merged configuration with defaults */
52
- config: import("@angular/core").Signal<{
53
- variant: import("./types").WelcomeCardVariant;
54
- user?: import("./types").WelcomeUserData;
55
- greeting?: string;
56
- greetingKey?: string;
57
- i18nNamespace?: string;
58
- subtitle?: string;
59
- subtitleKey?: string;
60
- avatar: import("./types").WelcomeAvatarConfig | Required<Pick<import("./types").WelcomeAvatarConfig, "size" | "mode" | "showRing">>;
61
- gradientFrom?: string | (string & Record<never, never>);
62
- gradientTo?: string | (string & Record<never, never>);
63
- gradientAngle: number;
64
- backgroundColor?: string | (string & Record<never, never>);
65
- showParticles: boolean;
66
- actions?: import("./types").WelcomeCardAction[];
67
- loading: boolean;
68
- token?: string;
69
- }>;
70
- /** Avatar configuration with defaults */
71
- avatarConfig: import("@angular/core").Signal<{
72
- mode: import("./types").WelcomeAvatarMode;
73
- imageUrl?: string;
74
- icon?: string;
75
- initials?: string;
76
- size: import("./types").WelcomeAvatarSize;
77
- showRing: boolean;
78
- ringColor?: string | (string & Record<never, never>);
79
- }>;
80
- /** Current theme mode */
81
- isDark: import("@angular/core").Signal<boolean>;
82
- /** Color index based on user name hash */
83
- private colorIndex;
84
- /** Get initials from user name */
85
- getInitials(): string;
86
- /** Get greeting text with i18n support */
87
- getGreeting(): string;
88
- /** Get subtitle text with i18n support */
89
- getSubtitle(): string;
90
- /** Get action label with i18n support */
91
- getActionLabel(action: {
92
- label?: string;
93
- labelKey?: string;
94
- }): string;
95
- /** Resolve color value */
96
- private resolveColor;
97
- /** Get gradient start color */
98
- getGradientFrom(): string;
99
- /** Get gradient end color */
100
- getGradientTo(): string;
101
- /** Get background color (for non-gradient variants) */
102
- getBackgroundColor(): string | null;
103
- /** Get avatar background based on user name */
104
- getAvatarBackground(): string;
105
- /** Get avatar text color */
106
- getAvatarTextColor(): string;
107
- /** Get ring color */
108
- getRingColor(): string;
109
- /** Handle card click */
110
- onCardClick(event: MouseEvent): void;
111
- /** Handle avatar click */
112
- onAvatarClick(event: MouseEvent): void;
113
- /** Handle action click */
114
- onActionClick(event: MouseEvent, token?: string): void;
115
- static ɵfac: i0.ɵɵFactoryDeclaration<WelcomeCardComponent, never>;
116
- static ɵcmp: i0.ɵɵComponentDeclaration<WelcomeCardComponent, "val-welcome-card", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; }, { "cardClick": "cardClick"; }, never, never, true, never>;
117
- }